drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
Subsystems (2)
PATCH 1/1 drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
If RAS is disabled through amdgpu_ras_enable kernel parameter, we should quit the RAS initialization eariler to avoid initialization of some RAS data structure such as sysfs etc.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
@@ -2155,7 +2155,7 @@ int amdgpu_ras_init(struct amdgpu_device *adev)amdgpu_ras_check_supported (adev, &con->hw_supported, &con->supported); -if (!con->hw_supported || (adev->asic_type ==CHIP_VEGA10 )) { +if (!adev->ras_features || (adev->asic_type ==CHIP_VEGA10 )) {/* set gfx block ras context feature for VEGA20 Gaming * send ras disable cmd to ras ta during ras late init. */
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
Regards,
Hawking
-----Original Message-----
From: Zeng, Oak <[email protected]>
Sent: Friday, May 7, 2021 09:15
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Lazar, Lijo <[email protected]>; Clements, John <[email protected]>; Joshi, Mukul <[email protected]>; Zeng, Oak <[email protected]>
Subject: [PATCH] drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
If RAS is disabled through amdgpu_ras_enable kernel parameter, we should quit the RAS initialization eariler to avoid initialization of some RAS data structure such as sysfs etc.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +1 -1
@@ -2155,7 +2155,7 @@ int amdgpu_ras_init(struct amdgpu_device *adev)amdgpu_ras_check_supported (adev, &con->hw_supported, &con->supported); -if (!con->hw_supported || (adev->asic_type ==CHIP_VEGA10 )) { +if (!adev->ras_features || (adev->asic_type ==CHIP_VEGA10 )) {/* set gfx block ras context feature for VEGA20 Gaming * send ras disable cmd to ras ta during ras late init. */
--
2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Thank you Hawking for reviewing this. I made a mistake when I pushed this in. I forgot to add " Reviewed-by: Hawking Zhang <[email protected]>".
Regards,
Oak
On 2021-05-07, 9:05 AM, "Zhang, Hawking" <[email protected]> wrote:
[AMD Public Use]
Reviewed-by: Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Zeng, Oak <[email protected]>
Sent: Friday, May 7, 2021 09:15
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Lazar, Lijo <[email protected]>; Clements, John <[email protected]>; Joshi, Mukul <[email protected]>; Zeng, Oak <[email protected]>
Subject: [PATCH] drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
If RAS is disabled through amdgpu_ras_enable kernel parameter, we should quit the RAS initialization eariler to avoid initialization of some RAS data structure such as sysfs etc.
Signed-off-by: Oak Zeng <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index ebbe2c5..7e65b35 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2155,7 +2155,7 @@ int amdgpu_ras_init(struct amdgpu_device *adev)
amdgpu_ras_check_supported(adev, &con->hw_supported,
&con->supported);
- if (!con->hw_supported || (adev->asic_type == CHIP_VEGA10)) {
+ if (!adev->ras_features || (adev->asic_type == CHIP_VEGA10)) {
/* set gfx block ras context feature for VEGA20 Gaming
* send ras disable cmd to ras ta during ras late init.
*/
--
2.7.4_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
[AMD Public Use]
No worry. I made similar mistake before.
Regards,
Hawking
-----Original Message-----
From: Zeng, Oak <[email protected]>
Sent: Saturday, May 8, 2021 03:13
To: Zhang, Hawking <[email protected]>; [email protected]
Cc: Lazar, Lijo <[email protected]>; Clements, John <[email protected]>; Joshi, Mukul <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
Thank you Hawking for reviewing this. I made a mistake when I pushed this in. I forgot to add " Reviewed-by: Hawking Zhang <[email protected]>".
Regards,
Oak
On 2021-05-07, 9:05 AM, "Zhang, Hawking" <[email protected]> wrote:
[AMD Public Use]
Reviewed-by: Hawking Zhang <[email protected]>
Regards,
Hawking
-----Original Message-----
From: Zeng, Oak <[email protected]>
Sent: Friday, May 7, 2021 09:15
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Lazar, Lijo <[email protected]>; Clements, John <[email protected]>; Joshi, Mukul <[email protected]>; Zeng, Oak <[email protected]>
Subject: [PATCH] drm/amdgpu: Quit RAS initialization earlier if RAS is disabled
If RAS is disabled through amdgpu_ras_enable kernel parameter, we should quit the RAS initialization eariler to avoid initialization of some RAS data structure such as sysfs etc.
Signed-off-by: Oak Zeng <[email protected]>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index ebbe2c5..7e65b35 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2155,7 +2155,7 @@ int amdgpu_ras_init(struct amdgpu_device *adev)
amdgpu_ras_check_supported(adev, &con->hw_supported,
&con->supported);
- if (!con->hw_supported || (adev->asic_type == CHIP_VEGA10)) {
+ if (!adev->ras_features || (adev->asic_type == CHIP_VEGA10)) {
/* set gfx block ras context feature for VEGA20 Gaming
* send ras disable cmd to ras ta during ras late init.
*/
--
2.7.4_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx