]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13e7fd5de3b9265e4b69d03833466a499e1d4fde
treede53dc3638c9a8da7646c6fefffe5f3ea24636eb
parent6e651635bdf62f6ef8185b145477084f7b3b7f61
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