]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu/vce1: Check if VRAM address is lower than GART.
authorTimur Kristóf <timur.kristof@gmail.com>
Wed, 13 May 2026 20:04:11 +0000 (22:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 May 2026 22:16:31 +0000 (18:16 -0400)
commitf370ec9b164698a9ca1a7b59bfbea07f70df769d
tree4ba3f26a8c84dcc00de9f5a02de320e583e29ca2
parentc1dc555e760dbfc4a4710f7270f525a03d433af8
drm/amdgpu/vce1: Check if VRAM address is lower than GART.

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.

When the VCPU BO is already located in a low 32-bit address
in VRAM (eg. when VRAM is mapped to the low address space),
don't do the workaround.

Fixes: 71aec08f80e7 ("amdgpu/vce: use amdgpu_gtt_mgr_alloc_entries")
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>
drivers/gpu/drm/amd/amdgpu/vce_v1_0.c