* [PATCH Review V3 1/2] drm/amdgpu: Enable aqua vanjaram RAS
@ 2023-07-14 3:42 Stanley.Yang
2023-07-14 3:42 ` [PATCH Review V3 2/2] drm/amdgpu: Disable RAS by default on APU flatform Stanley.Yang
0 siblings, 1 reply; 3+ messages in thread
From: Stanley.Yang @ 2023-07-14 3:42 UTC (permalink / raw)
To: amd-gfx, Hawking.Zhang, Tao.Zhou1, YiPeng.Chai, Candice.Li; +Cc: Stanley.Yang
Enable RAS for aqua vanjaram.
Changed from V1:
Split the change in amdgpu_ras_asic_supported into a
separated patch.
Changed from V2:
Avoid to modify global variable amdgpu_ras_enable.
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 5371fbd3fe17..8673d9790bb0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2422,6 +2422,7 @@ static bool amdgpu_ras_asic_supported(struct amdgpu_device *adev)
if (adev->asic_type == CHIP_IP_DISCOVERY) {
switch (adev->ip_versions[MP0_HWIP][0]) {
case IP_VERSION(13, 0, 0):
+ case IP_VERSION(13, 0, 6):
case IP_VERSION(13, 0, 10):
return true;
default:
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH Review V3 2/2] drm/amdgpu: Disable RAS by default on APU flatform
2023-07-14 3:42 [PATCH Review V3 1/2] drm/amdgpu: Enable aqua vanjaram RAS Stanley.Yang
@ 2023-07-14 3:42 ` Stanley.Yang
2023-07-14 4:06 ` Zhou1, Tao
0 siblings, 1 reply; 3+ messages in thread
From: Stanley.Yang @ 2023-07-14 3:42 UTC (permalink / raw)
To: amd-gfx, Hawking.Zhang, Tao.Zhou1, YiPeng.Chai, Candice.Li; +Cc: Stanley.Yang
Disable RAS feature by default for aqua vanjaram on APU platform.
Changed from V1:
Splite Disable RAS by default on APU platform into a
separated patch.
Changed from V2:
Avoid to modify global variable amdgpu_ras_enable.
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 8673d9790bb0..c46e0ed9165e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2524,8 +2524,17 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)
/* hw_supported needs to be aligned with RAS block mask. */
adev->ras_hw_enabled &= AMDGPU_RAS_BLOCK_MASK;
- adev->ras_enabled = amdgpu_ras_enable == 0 ? 0 :
- adev->ras_hw_enabled & amdgpu_ras_mask;
+
+ /*
+ * Disable ras feature for aqua vanjaram
+ * by default on apu platform.
+ */
+ if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6))
+ adev->ras_enabled = amdgpu_ras_enable != 1 ? 0 :
+ adev->ras_hw_enabled & amdgpu_ras_mask;
+ else
+ adev->ras_enabled = amdgpu_ras_enable == 0 ? 0 :
+ adev->ras_hw_enabled & amdgpu_ras_mask;
}
static void amdgpu_ras_counte_dw(struct work_struct *work)
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH Review V3 2/2] drm/amdgpu: Disable RAS by default on APU flatform
2023-07-14 3:42 ` [PATCH Review V3 2/2] drm/amdgpu: Disable RAS by default on APU flatform Stanley.Yang
@ 2023-07-14 4:06 ` Zhou1, Tao
0 siblings, 0 replies; 3+ messages in thread
From: Zhou1, Tao @ 2023-07-14 4:06 UTC (permalink / raw)
To: Yang, Stanley, amd-gfx, Zhang, Hawking, Chai, Thomas, Li, Candice
Cc: Yang, Stanley
[AMD Official Use Only - General]
The series is:
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
> -----Original Message-----
> From: Stanley.Yang <Stanley.Yang@amd.com>
> Sent: Friday, July 14, 2023 11:42 AM
> To: amd-gfx@lists.freedesktop.org; Zhang, Hawking <Hawking.Zhang@amd.com>;
> Zhou1, Tao <Tao.Zhou1@amd.com>; Chai, Thomas <YiPeng.Chai@amd.com>; Li,
> Candice <Candice.Li@amd.com>
> Cc: Yang, Stanley <Stanley.Yang@amd.com>
> Subject: [PATCH Review V3 2/2] drm/amdgpu: Disable RAS by default on APU
> flatform
>
> Disable RAS feature by default for aqua vanjaram on APU platform.
>
> Changed from V1:
> Splite Disable RAS by default on APU platform into a
> separated patch.
>
> Changed from V2:
> Avoid to modify global variable amdgpu_ras_enable.
>
> Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 8673d9790bb0..c46e0ed9165e 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -2524,8 +2524,17 @@ static void amdgpu_ras_check_supported(struct
> amdgpu_device *adev)
> /* hw_supported needs to be aligned with RAS block mask. */
> adev->ras_hw_enabled &= AMDGPU_RAS_BLOCK_MASK;
>
> - adev->ras_enabled = amdgpu_ras_enable == 0 ? 0 :
> - adev->ras_hw_enabled & amdgpu_ras_mask;
> +
> + /*
> + * Disable ras feature for aqua vanjaram
> + * by default on apu platform.
> + */
> + if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6))
> + adev->ras_enabled = amdgpu_ras_enable != 1 ? 0 :
> + adev->ras_hw_enabled & amdgpu_ras_mask;
> + else
> + adev->ras_enabled = amdgpu_ras_enable == 0 ? 0 :
> + adev->ras_hw_enabled & amdgpu_ras_mask;
> }
>
> static void amdgpu_ras_counte_dw(struct work_struct *work)
> --
> 2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-14 4:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-14 3:42 [PATCH Review V3 1/2] drm/amdgpu: Enable aqua vanjaram RAS Stanley.Yang
2023-07-14 3:42 ` [PATCH Review V3 2/2] drm/amdgpu: Disable RAS by default on APU flatform Stanley.Yang
2023-07-14 4:06 ` Zhou1, Tao
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.