* [PATCH] drm/amdgpu: Use real_vram_size in GDDR training BO placement
@ 2026-10-02 8:32 Natalie Vock
0 siblings, 0 replies; only message in thread
From: Natalie Vock @ 2026-10-02 8:32 UTC (permalink / raw)
To: Christian König, Alex Deucher; +Cc: amd-gfx
Otherwise amdgpu.vramlimit breaks on GFX10.3 because the BO offset is
out of bounds.
Signed-off-by: Natalie Vock <nat@pixelcluster.dev>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 3d620ec2937f4..b77c94178296e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1798,7 +1798,7 @@ static void amdgpu_ttm_init_mem_train_resv_region(struct amdgpu_device *adev)
return;
reserve_size = adev->mman.resv_region[AMDGPU_RESV_FW].size;
- offset = ALIGN((adev->gmc.mc_vram_size - reserve_size - SZ_1M), SZ_1M);
+ offset = ALIGN((adev->gmc.real_vram_size - reserve_size - SZ_1M), SZ_1M);
amdgpu_ttm_init_vram_resv(adev, AMDGPU_RESV_MEM_TRAIN,
offset,
GDDR6_MEM_TRAINING_DATA_SIZE_IN_BYTES,
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-02 8:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 8:32 [PATCH] drm/amdgpu: Use real_vram_size in GDDR training BO placement Natalie Vock
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.