OSDN Git Service

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)
commit4b6b691ee38abae8842aed61d442dfb315c45789
tree3e2bd4e827f45c68c749e981f4d952615f3c50a3
parent658b93913e7a8a8d418b6d1208e88ddacc4d245d
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