Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170822605
D19729.id55516.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
514 B
Referenced Files
None
Subscribers
None
D19729.id55516.diff
View Options
Index: head/sys/x86/iommu/busdma_dmar.c
===================================================================
--- head/sys/x86/iommu/busdma_dmar.c
+++ head/sys/x86/iommu/busdma_dmar.c
@@ -527,7 +527,8 @@
gas_flags |= DMAR_GM_CANSPLIT;
error = dmar_gas_map(domain, &tag->common, size, offset,
- DMAR_MAP_ENTRY_READ | DMAR_MAP_ENTRY_WRITE,
+ DMAR_MAP_ENTRY_READ |
+ ((flags & BUS_DMA_NOWRITE) == 0 ? DMAR_MAP_ENTRY_WRITE : 0),
gas_flags, ma + idx, &entry);
if (error != 0)
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 8:39 PM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38438403
Default Alt Text
D19729.id55516.diff (514 B)
Attached To
Mode
D19729: use the BUS_DMA_NOWRITE flag to expose and create the read-only VT-d IOMMU mappings
Attached
Detach File
Event Timeline
Log In to Comment