Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177607361
D34907.1794830045.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D34907.1794830045.diff
View Options
Index: sys/x86/iommu/intel_ctx.c
===================================================================
--- sys/x86/iommu/intel_ctx.c
+++ sys/x86/iommu/intel_ctx.c
@@ -631,10 +631,6 @@
* to avoid unneeded command.
*/
if (enable && !rmrr_init && (dmar->hw_gcmd & DMAR_GCMD_TE) == 0) {
- error = dmar_disable_protected_regions(dmar);
- if (error != 0)
- printf("dmar%d: Failed to disable protected regions\n",
- dmar->iommu.unit);
error = dmar_enable_translation(dmar);
if (error == 0) {
if (bootverbose) {
Index: sys/x86/iommu/intel_drv.c
===================================================================
--- sys/x86/iommu/intel_drv.c
+++ sys/x86/iommu/intel_drv.c
@@ -528,6 +528,10 @@
dmar_release_resources(dev, unit);
return (error);
}
+ error = dmar_disable_protected_regions(unit);
+ if (error != 0 && bootverbose)
+ device_printf(dev, "Failed to disable protected regions\n");
+
error = iommu_init_busdma(&unit->iommu);
if (error != 0) {
dmar_release_resources(dev, unit);
@@ -1065,10 +1069,6 @@
KASSERT((dmar->hw_gcmd & DMAR_GCMD_TE) == 0,
("dmar%d: RMRR not handled but translation is already enabled",
dmar->iommu.unit));
- error = dmar_disable_protected_regions(dmar);
- if (error != 0)
- printf("dmar%d: Failed to disable protected regions\n",
- dmar->iommu.unit);
error = dmar_enable_translation(dmar);
if (bootverbose) {
if (error == 0) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 16, 11:54 AM (1 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41776427
Default Alt Text
D34907.1794830045.diff (1 KB)
Attached To
Mode
D34907: dmar: Disable PMR in driver attach routine
Attached
Detach File
Event Timeline