diff options
| author | Timur Kristóf <timur.kristof@gmail.com> | 2026-04-19 00:49:30 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-04-24 18:09:11 +0300 |
| commit | 36d65da7570bf72ce28504fa9a81abfc728e6d96 (patch) | |
| tree | 5cb7cbb291c92abfab341f544380e02e0283df6a /scripts | |
| parent | 87612bab9656a63affa0e2788e0d7a4a1dffa89e (diff) | |
| download | linux-36d65da7570bf72ce28504fa9a81abfc728e6d96.tar.xz | |
drm/amdgpu/gmc: Fix AMDGPU_GART_PLACEMENT_LOW to not overlap with VRAM
When the GART placement is set to AMDGPU_GART_PLACEMENT_LOW:
Make sure that GART does not overlap with VRAM when
VRAM is configured to be in the low address space.
Solve this according to the following logic:
- When GART fits before VRAM, use zero address for GART
- Otherwise, put GART after the end of VRAM, aligned to 4 GiB
Previously, I had assumed this was not possible
so it was OK to not handle it, but now we got a report
from a user who has a board that is configured this way.
Fixes: 917f91d8d8e8 ("drm/amdgpu/gmc: add a way to force a particular placement for GART")
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 3d9de5d86a1658cadb311461b001eb1df67263ad)
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
