diff options
| author | Baochen Qiang <[email protected]> | 2025-03-07 03:03:50 +0000 |
|---|---|---|
| committer | Marek Szyprowski <[email protected]> | 2025-03-12 12:41:44 +0000 |
| commit | 8324993f60305e50f27b98358b01b9837e10d159 (patch) | |
| tree | 1cec449bb494b1631894e046c5a2a5003f68b56e /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c | |
| parent | Linux 6.14-rc1 (diff) | |
| download | kernel-8324993f60305e50f27b98358b01b9837e10d159.tar.gz kernel-8324993f60305e50f27b98358b01b9837e10d159.zip | |
dma-mapping: fix missing clear bdr in check_ram_in_range_map()
As discussed in [1], if 'bdr' is set once, it would never get
cleared, hence 0 is always returned.
Refactor the range check hunk into a new helper dma_find_range(),
which allows 'bdr' to be cleared in each iteration.
Link: https://lore.kernel.org/all/[email protected]/ # [1]
Fixes: a409d9600959 ("dma-mapping: fix dma_addressing_limited() if dma_range_map can't cover all system RAM")
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: Baochen Qiang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Marek Szyprowski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions
