diff options
author | Alistair Popple | 2017-07-26 15:26:40 +1000 |
---|---|---|
committer | Michael Ellerman | 2017-07-28 23:02:55 +1000 |
commit | 253fd51e2f533552ae35a0c661705da6c4842c1b (patch) | |
tree | 7165717bcfc44642ddf21a3fd5afa7877fb59840 /arch/h8300/include/asm/Kbuild | |
parent | 65c5ec11c25eff6ba6e9b1cbfff014875fddd1e0 (diff) |
powerpc/powernv/pci: Return failure for some uses of dma_set_mask()
Commit 8e3f1b1d8255 ("powerpc/powernv/pci: Enable 64-bit devices to access
>4GB DMA space") introduced the ability for PCI device drivers to request a
DMA mask between 64 and 32 bits and actually get a mask greater than
32-bits. However currently if certain machine configuration dependent
conditions are not meet the code silently falls back to a 32-bit mask.
This makes it hard for device drivers to detect which mask they actually
got. Instead we should return an error when the request could not be
fulfilled which allows drivers to either fallback or implement other
workarounds as documented in DMA-API-HOWTO.txt.
Signed-off-by: Alistair Popple <alistair@popple.id.au>
Acked-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/h8300/include/asm/Kbuild')
0 files changed, 0 insertions, 0 deletions