AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Kuehling <felix.kuehling@amd.com>
To: "Stanley.Yang" <Stanley.Yang@amd.com>,
	amd-gfx@lists.freedesktop.org, Hawking.Zhang@amd.com,
	Tao.Zhou1@amd.com, YiPeng.Chai@amd.com, Candice.Li@amd.com
Subject: Re: [PATCH Review V2 2/2] drm/amdgpu: Disable RAS by default on APU flatform
Date: Thu, 13 Jul 2023 10:58:18 -0400	[thread overview]
Message-ID: <88161914-05f3-fb72-227b-3758e59208fa@amd.com> (raw)
In-Reply-To: <20230713145056.54876-2-Stanley.Yang@amd.com>


On 2023-07-13 10:50, Stanley.Yang wrote:
> 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.
>
> 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 | 9 +++++++++
>   1 file changed, 9 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 8673d9790bb0..ec5f60b64346 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -2517,6 +2517,15 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)
>   		adev->ras_hw_enabled |= (1 << AMDGPU_RAS_BLOCK__GFX |
>   					   1 << AMDGPU_RAS_BLOCK__SDMA |
>   					   1 << AMDGPU_RAS_BLOCK__MMHUB);
> +
> +		if (adev->ip_versions[MP0_HWIP][0] == IP_VERSION(13, 0, 6)) {
> +			/*
> +			 * Disable ras feature for aqua vanjaram
> +			 * by default on apu platform.
> +			 */
> +			if (-1 == amdgpu_ras_enable)
> +				amdgpu_ras_enable = 0;
Changing a global variable here is probably not appropriate. The 
condition above looks like this should affect a device-specific variable 
only.

Regards,
   Felix


> +		}
>   	}
>   
>   	amdgpu_ras_get_quirks(adev);

      reply	other threads:[~2023-07-13 14:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13 14:50 [PATCH Review V2 1/2] drm/amdgpu: Enable aqua vanjaram RAS Stanley.Yang
2023-07-13 14:50 ` [PATCH Review V2 2/2] drm/amdgpu: Disable RAS by default on APU flatform Stanley.Yang
2023-07-13 14:58   ` Felix Kuehling [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88161914-05f3-fb72-227b-3758e59208fa@amd.com \
    --to=felix.kuehling@amd.com \
    --cc=Candice.Li@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=Stanley.Yang@amd.com \
    --cc=Tao.Zhou1@amd.com \
    --cc=YiPeng.Chai@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox