mirror of https://gitee.com/openkylin/linux.git
drm/amd/display: Check hyperV flag in DC.
[Why] hyperV flag should be passed from dm to DC, and override the nv12 flip workaround flag. [How] Add flag to phy address config struct and pass the value in dm. Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a39a581669
commit
32caf90618
|
@ -47,6 +47,9 @@ int dc_setup_system_context(struct dc *dc, struct dc_phy_addr_space_config *pa_c
|
|||
*/
|
||||
memcpy(&dc->vm_pa_config, pa_config, sizeof(struct dc_phy_addr_space_config));
|
||||
dc->vm_pa_config.valid = true;
|
||||
|
||||
if (pa_config->is_hvm_enabled == 0)
|
||||
dc->debug.nv12_iflip_vm_wa = false;
|
||||
}
|
||||
|
||||
return num_vmids;
|
||||
|
|
|
@ -453,6 +453,7 @@ struct dc_phy_addr_space_config {
|
|||
} gart_config;
|
||||
|
||||
bool valid;
|
||||
bool is_hvm_enabled;
|
||||
uint64_t page_table_default_page_addr;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue