This repository was archived by the owner on Sep 24, 2020. It is now read-only.
Commit a5008b5
Christoph Hellwig
dma-direct: only limit the mapping size if swiotlb could be used
Don't just check for a swiotlb buffer, but also if buffering might
be required for this particular device.
Fixes: 133d624 ("dma: Introduce dma_max_mapping_size()")
Reported-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Tested-by: Benjamin Herrenschmidt <[email protected]>1 parent b866455 commit a5008b5
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | | - | |
404 | 402 | | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
409 | 407 | | |
0 commit comments