OSDN Git Service

drm/amdgpu: Enable scatter gather display support
authorSamuel Li <Samuel.Li@amd.com>
Wed, 18 Apr 2018 20:15:52 +0000 (16:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:49 +0000 (13:43 -0500)
commit6c8d74caa2fa33908ecd07fb1cf1b7bc629b367a
treeb3e668a051e8b537b919920ae938070dc78f5c31
parent9e70b539292652d31091568f89e73b54e3a4f79d
drm/amdgpu: Enable scatter gather display support

Enables sg display if vram size <= THRESHOLD(256M); otherwise
still use vram as display buffer.
This patch fixed some potention issues introduced by change
"allow framebuffer in GART memory as well" due to CZ/ST hardware
limitation.

v2: Change default setting to auto.
v3: Move some logic from amdgpu_display_framebuffer_domains()
    to pin function, suggested by Christian.
v4: Split into several patches.
v5: Drop module parameter for now.

Signed-off-by: Samuel Li <Samuel.Li@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c