mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-25 17:53:34 -05:00
drm/amdgpu: add judgement for dc support
Drop DC initialization when DCN is harvested in VBIOS. The way doesn't affect virtual display ip initialization. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Signed-off-by: Asher Song <Asher.Song@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a53085c1d2
commit
147feb0076
1 changed files with 3 additions and 1 deletions
|
@ -3118,7 +3118,9 @@ bool amdgpu_device_asic_has_dc_support(enum amd_asic_type asic_type)
|
||||||
*/
|
*/
|
||||||
bool amdgpu_device_has_dc_support(struct amdgpu_device *adev)
|
bool amdgpu_device_has_dc_support(struct amdgpu_device *adev)
|
||||||
{
|
{
|
||||||
if (amdgpu_sriov_vf(adev) || adev->enable_virtual_display)
|
if (amdgpu_sriov_vf(adev) ||
|
||||||
|
adev->enable_virtual_display ||
|
||||||
|
(adev->harvest_ip_mask & AMD_HARVEST_IP_DMU_MASK))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return amdgpu_device_asic_has_dc_support(adev->asic_type);
|
return amdgpu_device_asic_has_dc_support(adev->asic_type);
|
||||||
|
|
Loading…
Add table
Reference in a new issue