Commit 6f1d80d
udc: aspeed: manage TX/RX DMA buffer cache coherency explicitly
RX buffers used NON_CACHED_BSS_ALIGN16 to avoid cache coherency
issues, but that non-cached memory region isn't available here
anymore. Switch to plain aligned buffers and manage coherency with
sys_cache_data_flush_range() before TX DMA and
sys_cache_data_invd_range() before reading RX data, in both the
legacy and next USB device stacks.
Signed-off-by: Joe Wang <[email protected]>
Change-Id: I09730e12b0a41e9bfa8cef45383ca669989e73e21 parent 56f413c commit 6f1d80d
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| 1331 | + | |
1331 | 1332 | | |
1332 | 1333 | | |
1333 | 1334 | | |
| |||
1349 | 1350 | | |
1350 | 1351 | | |
1351 | 1352 | | |
| 1353 | + | |
1352 | 1354 | | |
1353 | 1355 | | |
1354 | 1356 | | |
| |||
1517 | 1519 | | |
1518 | 1520 | | |
1519 | 1521 | | |
| 1522 | + | |
1520 | 1523 | | |
1521 | 1524 | | |
1522 | 1525 | | |
| |||
1539 | 1542 | | |
1540 | 1543 | | |
1541 | 1544 | | |
| 1545 | + | |
| 1546 | + | |
1542 | 1547 | | |
1543 | 1548 | | |
1544 | 1549 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
471 | 473 | | |
472 | 474 | | |
473 | 475 | | |
| 476 | + | |
474 | 477 | | |
475 | 478 | | |
476 | 479 | | |
| |||
1078 | 1081 | | |
1079 | 1082 | | |
1080 | 1083 | | |
1081 | | - | |
| 1084 | + | |
1082 | 1085 | | |
1083 | 1086 | | |
1084 | 1087 | | |
| |||
0 commit comments