]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: linear validate first then bind to GART
authorChristian König <christian.koenig@amd.com>
Mon, 16 Oct 2017 08:32:04 +0000 (10:32 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:21 +0000 (15:27 -0400)
commitcb6cef6d0b50f17a1e4c97671e0360033f339df8
tree3e2bd4e827f45c68c749e981f4d952615f3c50a3
parent7242ffe4aeb2677687c5c8c772f6835288546299
drm/amdgpu: linear validate first then bind to GART

For VM emulation for old UVD/VCE we need to validate the BO with linear
VRAM flag set first and then eventually bind it to GART.

Validating with linear VRAM flag set can move the BO to GART making
UVD/VCE read/write from an unbound GART BO.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c