]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Refuse to pin or change acceptable domains of prime BOs to VRAM. (v2)
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Mon, 3 Apr 2017 03:31:22 +0000 (13:31 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Apr 2017 16:20:39 +0000 (12:20 -0400)
commita16a981855603dc7c39dc6e978aca2a28cc7a184
treec1dbe6e11f0417731240688e2c77fdcf374967ea
parentfaa63a9732ac9b1c4b5f5bfdf6b253a29cd45a1d
drm/amdgpu: Refuse to pin or change acceptable domains of prime BOs to VRAM. (v2)

Migration to VRAM will break the sharing, resulting in rendering on the exporting GPU never becoming
visible on the importing GPU.

v2: Don't pin BOs to GTT. Instead, refuse to migrate them out of GTT.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c