Repository navigation
Commit 2e05ea5
Christoph Hellwig
dma-mapping: implement dma_map_single_attrs using dma_map_page_attrs
And also switch the way we implement the unmap side around to stay
consistent. This ensures dma-debug works again because it records which
function we used for mapping to ensure it is also used for unmapping,
and also reduces further code duplication. Last but not least this
also officially allows calling dma_sync_single_* for mappings created
using dma_map_page, which is perfectly fine given that the sync calls
only take a dma_addr_t, but not a virtual address or struct page.
Fixes: 7f0fee2 ("dma-mapping: merge dma_unmap_page_attrs and dma_unmap_single_attrs")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: LABBE Corentin <clabbe.montjoie@gmail.com>1 parent 96d4f26 commit 2e05ea5
3 files changed
Lines changed: 32 additions & 62 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
| 97 | + | |
100 | 98 | | |
101 | 99 | | |
102 | 100 | | |
| |||
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
109 | | - | |
110 | | - | |
| 107 | + | |
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
291 | 290 | | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | | - | |
297 | 295 | | |
298 | | - | |
299 | | - | |
| 296 | + | |
300 | 297 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
306 | 301 | | |
307 | 302 | | |
308 | 303 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 304 | + | |
| 305 | + | |
313 | 306 | | |
314 | 307 | | |
315 | 308 | | |
| |||
318 | 311 | | |
319 | 312 | | |
320 | 313 | | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 314 | + | |
328 | 315 | | |
329 | 316 | | |
330 | 317 | | |
| |||
363 | 350 | | |
364 | 351 | | |
365 | 352 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | 353 | | |
386 | 354 | | |
387 | 355 | | |
| |||
488 | 456 | | |
489 | 457 | | |
490 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
491 | 473 | | |
492 | 474 | | |
493 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
1300 | 1299 | | |
1301 | 1300 | | |
1302 | 1301 | | |
1303 | | - | |
1304 | | - | |
| 1302 | + | |
1305 | 1303 | | |
1306 | 1304 | | |
1307 | 1305 | | |
| |||
1316 | 1314 | | |
1317 | 1315 | | |
1318 | 1316 | | |
1319 | | - | |
| 1317 | + | |
1320 | 1318 | | |
1321 | 1319 | | |
1322 | 1320 | | |
1323 | 1321 | | |
1324 | 1322 | | |
1325 | 1323 | | |
1326 | 1324 | | |
1327 | | - | |
1328 | | - | |
1329 | | - | |
1330 | 1325 | | |
1331 | 1326 | | |
1332 | 1327 | | |
| |||
1378 | 1373 | | |
1379 | 1374 | | |
1380 | 1375 | | |
1381 | | - | |
| 1376 | + | |
1382 | 1377 | | |
1383 | 1378 | | |
1384 | | - | |
| 1379 | + | |
1385 | 1380 | | |
1386 | 1381 | | |
1387 | 1382 | | |
| |||
1390 | 1385 | | |
1391 | 1386 | | |
1392 | 1387 | | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | 1388 | | |
1398 | 1389 | | |
1399 | 1390 | | |
| |||
0 commit comments