OSDN Git Service

drm/amd/display: Populate hostvm parameter before DML calculation
authorSung Lee <sung.lee@amd.com>
Fri, 30 Oct 2020 23:31:51 +0000 (19:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2020 17:18:44 +0000 (12:18 -0500)
commit82df77ae4639af747adb223fb4678e3493e4a8b8
tree42143e6974a6bd5e15352b360a93aa4a5808de52
parentb8e0b3d611e3388361d86a19f27bf2a6d7366111
drm/amd/display: Populate hostvm parameter before DML calculation

[Why]
If the system does not have hostvm enabled, disabling it for
DML validation will allow more modes to pass at lower voltage
levels.

[How]
When initializing HostVM save state to hubbub and read back
when populating DML pipes from context.

Signed-off-by: Sung Lee <sung.lee@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_hubbub.c
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c
drivers/gpu/drm/amd/display/dc/inc/hw/dchubbub.h