Commit 924bd96
Christoph Hellwig
nvme-pci: set the DMA mask earlier
Set the DMA mask before calling dma_addressing_limited, which depends on it.
Note that this stop checking the return value of dma_set_mask_and_coherent
as this function can only fail for masks < 32-bit.
Fixes: 3f30a79 ("nvme-pci: set constant paramters in nvme_pci_alloc_ctrl")
Reported-by: Michael Kelley <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Tested-by: Michael Kelley <[email protected]>1 parent 5f69f00 commit 924bd96
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2509 | 2509 | | |
2510 | 2510 | | |
2511 | 2511 | | |
2512 | | - | |
2513 | 2512 | | |
2514 | 2513 | | |
2515 | 2514 | | |
2516 | 2515 | | |
2517 | 2516 | | |
2518 | 2517 | | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
2522 | | - | |
2523 | | - | |
2524 | 2518 | | |
2525 | 2519 | | |
2526 | 2520 | | |
| |||
2998 | 2992 | | |
2999 | 2993 | | |
3000 | 2994 | | |
3001 | | - | |
| 2995 | + | |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
3002 | 3000 | | |
3003 | 3001 | | |
3004 | 3002 | | |
| |||
0 commit comments