OSDN Git Service

drm/amdgpu: make display pinning more flexible (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Dec 2022 16:08:53 +0000 (11:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Dec 2022 21:50:30 +0000 (16:50 -0500)
commit81d0bcf9900932633d270d5bc4a54ff599c6ebdb
treeb2c106c3d990639147b4ff66a329ab92735e156f
parent2165359b7ed4e0b93fc23f49ede38d76e91fffe1
drm/amdgpu: make display pinning more flexible (v2)

Only apply the static threshold for Stoney and Carrizo.
This hardware has certain requirements that don't allow
mixing of GTT and VRAM.  Newer asics do not have these
requirements so we should be able to be more flexible
with where buffers end up.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2270
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2291
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2255
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c