drm/amdgpu: disable ECC check for Raven to avoid error message annoyance
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable ECC check for Raven to avoid error message annoyance
It should be enabled until ECC is supported for Raven.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +4 -0
@@ -533,6 +533,10 @@ static int gmc_v9_0_ecc_available(struct amdgpu_device *adev)DRM_DEBUG ("ecc: gmc_v9_0_ecc_available()\n" ); +/* Temporally skip ECC for Raven to avoid error message annoyance */ +if (adev->asic_type ==CHIP_RAVEN ) +return 0 ; + lost_sheep =0 ;for (i =0 ; i <ARRAY_SIZE (ecc_umclocalcap_addrs); ++i) { reg_addr = ecc_umclocalcap_addrs[i];
Signature · 6 lines
1.9.1 _______________________________________________ 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): 1516172538-27374-1-git-send-email-Jerry.Zhang-5C7GfCeVMHo@public.gmane.org
The check should be moved up into late_init where the call to ecc_available is and we should make it explicit since only vega10 supports it, that way we don't get any false messages from RV. How about the attached patch?
Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Junwei Zhang <[email protected]>
Sent: Wednesday, January 17, 2018 2:02 AM
To: [email protected]
Cc: Zhang, Jerry
Subject: [PATCH] drm/amdgpu: disable ECC check for Raven to avoid error message annoyance
It should be enabled until ECC is supported for Raven.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +4 -0
@@ -533,6 +533,10 @@ static int gmc_v9_0_ecc_available(struct amdgpu_device *adev)DRM_DEBUG ("ecc: gmc_v9_0_ecc_available()\n" ); +/* Temporally skip ECC for Raven to avoid error message annoyance */ +if (adev->asic_type ==CHIP_RAVEN ) +return 0 ; + lost_sheep =0 ;for (i =0 ; i <ARRAY_SIZE (ecc_umclocalcap_addrs); ++i) { reg_addr = ecc_umclocalcap_addrs[i];
--
1.9.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
From 6f8ac365d0face24876aa18cf9dfa1c893066556 Mon Sep 17 00:00:00 2001
From: Alex Deucher <[email protected]>
Date: Wed, 17 Jan 2018 09:07:29 -0500
Subject: [PATCH] drm/amdgpu: only check for ECC on Vega10
RV doesn't support it.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +10 -8
@@ -629,14 +629,16 @@ static int gmc_v9_0_late_init(void *handle)for (i =0 ; i <AMDGPU_MAX_VMHUBS ; ++i)BUG_ON (vm_inv_eng[i] >16 ); - r =gmc_v9_0_ecc_available (adev); -if (r ==1 ) { -DRM_INFO ("ECC is active.\n" ); - }else if (r ==0 ) { -DRM_INFO ("ECC is not present.\n" ); - }else { -DRM_ERROR ("gmc_v9_0_ecc_available() failed. r: %d\n" , r); -return r; +if (adev->asic_type ==CHIP_VEGA10 ) { + r =gmc_v9_0_ecc_available (adev); +if (r ==1 ) { +DRM_INFO ("ECC is active.\n" ); + }else if (r ==0 ) { +DRM_INFO ("ECC is not present.\n" ); + }else { +DRM_ERROR ("gmc_v9_0_ecc_available() failed. r: %d\n" , r); +return r; + } }return amdgpu_irq_get (adev, &adev->gmc.vm_fault,0 );
Signature · 1 line
2.13.6
_______________________________________________
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): BN6PR12MB1652BC4DA2E56C4B5828D281F7E90-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org
Zhang, Jerry
Reviewed-byThanks Alex,
That's fine for me.
Regards,
Jerry (Junwei Zhang)
Linux Base Graphics
SRDC Software Development
_____________________________________
From: Deucher, Alexander
Sent: Wednesday, January 17, 2018 22:12
To: Zhang, Jerry; [email protected]
Subject: Re: [PATCH] drm/amdgpu: disable ECC check for Raven to avoid error message annoyance
The check should be moved up into late_init where the call to ecc_available is and we should make it explicit since only vega10 supports it, that way we don't get any false messages from RV. How about the attached patch?
Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Junwei Zhang <[email protected]<mailto:[email protected]>>
Sent: Wednesday, January 17, 2018 2:02 AM
To: [email protected]<mailto:[email protected]>
Cc: Zhang, Jerry
Subject: [PATCH] drm/amdgpu: disable ECC check for Raven to avoid error message annoyance
It should be enabled until ECC is supported for Raven.
--- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +4 -0
@@ -533,6 +533,10 @@ static int gmc_v9_0_ecc_available(struct amdgpu_device *adev)DRM_DEBUG ("ecc: gmc_v9_0_ecc_available()\n" ); +/* Temporally skip ECC for Raven to avoid error message annoyance */ +if (adev->asic_type ==CHIP_RAVEN ) +return 0 ; + lost_sheep =0 ;for (i =0 ; i <ARRAY_SIZE (ecc_umclocalcap_addrs); ++i) { reg_addr = ecc_umclocalcap_addrs[i];
--
1.9.1
_______________________________________________
amd-gfx mailing list [email protected]<mailto:[email protected]>
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx