Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112054973
D34763.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34763.diff
View Options
diff --git a/sys/arm64/arm64/busdma_bounce.c b/sys/arm64/arm64/busdma_bounce.c
--- a/sys/arm64/arm64/busdma_bounce.c
+++ b/sys/arm64/arm64/busdma_bounce.c
@@ -228,6 +228,18 @@
if ((flags & BUS_DMA_COHERENT) != 0) {
newtag->bounce_flags |= BF_COHERENT;
+ }
+
+ if (parent != NULL) {
+ if ((newtag->common.filter != NULL ||
+ (parent->bounce_flags & BF_COULD_BOUNCE) != 0))
+ newtag->bounce_flags |= BF_COULD_BOUNCE;
+
+ /* Copy some flags from the parent */
+ newtag->bounce_flags |= parent->bounce_flags & BF_COHERENT;
+ }
+
+ if ((newtag->bounce_flags & BF_COHERENT) != 0) {
newtag->alloc_alignment = newtag->common.alignment;
newtag->alloc_size = newtag->common.maxsize;
} else {
@@ -243,15 +255,6 @@
dcache_line_size);
}
- if (parent != NULL) {
- if ((newtag->common.filter != NULL ||
- (parent->bounce_flags & BF_COULD_BOUNCE) != 0))
- newtag->bounce_flags |= BF_COULD_BOUNCE;
-
- /* Copy some flags from the parent */
- newtag->bounce_flags |= parent->bounce_flags & BF_COHERENT;
- }
-
if (newtag->common.lowaddr < ptoa((vm_paddr_t)Maxmem) ||
newtag->common.alignment > 1)
newtag->bounce_flags |= BF_COULD_BOUNCE;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 13, 4:31 AM (15 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17130021
Default Alt Text
D34763.diff (1 KB)
Attached To
Mode
D34763: Fix a coherent bus check in the arm64 busdma
Attached
Detach File
Event Timeline
Log In to Comment