OSDN Git Service

drm/amd/display: Add fallback to prefetch mode 1 if 0 fails
authorIsabel Zhang <isabel.zhang@amd.com>
Wed, 21 Oct 2020 18:01:26 +0000 (14:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Nov 2020 19:24:39 +0000 (14:24 -0500)
commit103cd0b1295c2bad29d5a6bc3ec4efc7d7fcd840
treede53dc3638c9a8da7646c6fefffe5f3ea24636eb
parent8301f6b990ada8f5e9b23ed7d4a0d60b00d49238
drm/amd/display: Add fallback to prefetch mode 1 if 0 fails

[Why]
In some cases, prefetch mode 0 is unsupported but prefetch 1 is
supported. Due to previous change always forcing prefetch mode to 0, we
are failing bandwidth validation in cases where we should not.

[How]
By default try prefetch mode 0 but in the case validation fails, attempt
to do prefetch mode 1 to see if it is supported.

Signed-off-by: Isabel Zhang <isabel.zhang@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c