From: YuBiao Wang Date: Fri, 28 Apr 2023 06:00:40 +0000 (+0800) Subject: drm/amdgpu: Enable mcbp under sriov by default X-Git-Tag: v6.6.7~2401^2~12^2~705 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d446127107e8185c2dc750cd4d0c5ff697a694f6;p=platform%2Fkernel%2Flinux-starfive.git drm/amdgpu: Enable mcbp under sriov by default Enable mcbp under sriov by default. Asics with soc21 supports mcbp now so we should set it enabled. Signed-off-by: YuBiao Wang Reviewed-by: Horace Chen Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c index 9dd4742..1311e42 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c @@ -65,8 +65,8 @@ void amdgpu_virt_init_setting(struct amdgpu_device *adev) adev->cg_flags = 0; adev->pg_flags = 0; - /* enable mcbp for sriov asic_type before soc21 */ - amdgpu_mcbp = (adev->asic_type < CHIP_IP_DISCOVERY) ? 1 : 0; + /* enable mcbp for sriov */ + amdgpu_mcbp = 1; }