drm/amdgpu: don't read DF register for SRIOV
Subsystems (2)
PATCH 1/1 drm/amdgpu: don't read DF register for SRIOV
Under SRIOV, reading DF register has chance to lead to AER error in host side, just skip reading it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
@@ -837,7 +837,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)if (amdgpu_emu_mode !=1 ) adev->gmc.vram_width =amdgpu_atomfirmware_get_vram_width (adev); -if (!adev->gmc.vram_width) { +if (!adev->gmc.vram_width && !amdgpu_sriov_vf (adev)) {/* hbm memory channel size */ if (adev->flags &AMD_IS_APU ) chansize =64 ;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1558008651-21099-1-git-send-email-yttao-5C7GfCeVMHo@public.gmane.org
Ping...
Hi Christian and Alex
Can you help review this? Thanks in advance.
Best Regards
Yintian Tao
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yintian Tao
Sent: Thursday, May 16, 2019 8:11 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>; Tao, Yintian <[email protected]>
Subject: [PATCH] drm/amdgpu: don't read DF register for SRIOV
[CAUTION: External Email]
Under SRIOV, reading DF register has chance to lead to AER error in host side, just skip reading it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
@@ -837,7 +837,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)if (amdgpu_emu_mode !=1 ) adev->gmc.vram_width =amdgpu_atomfirmware_get_vram_width (adev); -if (!adev->gmc.vram_width) { +if (!adev->gmc.vram_width && !amdgpu_sriov_vf (adev)) {/* hbm memory channel size */ if (adev->flags &AMD_IS_APU ) chansize =64 ;
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): MN2PR12MB3039577B5F8263EFC7E9BF97E50B0-rweVpJHSKTr/[email protected]
Hi Yintian,
sorry I have not the slightest idea how this part of the hw works. Maybe try to explain more what the DF register is actually doing in the commit message. I suspect that it is only about detecting which VRAM connection is used, but I'm not 100% sure.
Regards,
Christian.
Am 17.05.19 um 04:38 schrieb Tao, Yintian:
Quoted 44 lines
Ping...
Hi Christian and Alex
Can you help review this? Thanks in advance.
Best Regards
Yintian Tao-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yintian Tao
Sent: Thursday, May 16, 2019 8:11 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>; Tao, Yintian <[email protected]>
Subject: [PATCH] drm/amdgpu: don't read DF register for SRIOV[CAUTION: External Email]
Under SRIOV, reading DF register has chance to lead to AER error in host side, just skip reading it.
Signed-off-by Monk Liu <[email protected]>Signed-off-by Yintian Tao <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1
-2@@ -837,7 +837,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)if (amdgpu_emu_mode !=1 ) adev->gmc.vram_width =amdgpu_atomfirmware_get_vram_width (adev); -if (!adev->gmc.vram_width) { +if (!adev->gmc.vram_width && !amdgpu_sriov_vf (adev)) {/* hbm memory channel size */ if (adev->flags &AMD_IS_APU ) chansize =64 ; --2.7.4
Quoted 4 lines
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx