All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Koppuravuri, Ravi Kishore" <ravi.kishore.koppuravuri@intel.com>
To: "Tauro, Riana" <riana.tauro@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <soham.purkait@intel.com>, <raag.jadav@intel.com>,
	<anshuman.gupta@intel.com>, <mallesh.koujalagi@intel.com>
Subject: Re: [PATCH v1 1/1] drm/xe/xe_ras: Skip gpu_health sysfs commands during reset or wedged
Date: Mon, 23 Nov 2026 12:26:31 +0530	[thread overview]
Message-ID: <0b508bb7-e989-46e5-98ce-81adb3101000@intel.com> (raw)
In-Reply-To: <7c6a255a-6e1b-4fc0-a952-3526783abf80@intel.com>

Hi Riana,

On 23-11-2026 10:15, Tauro, Riana wrote:
>
> On 19-11-2026 22:09, Ravi Kishore Koppuravuri wrote:
>> Accessing gpu_health sysfs attribute sends a command to the system
>> controller. Add a guard to verify and skip if the device is wedged or in
>> reset. It protects against touching the fw or device when it is not in
>> usable state.
> There is no need of a cover letter for a single patch.
sure Riana.
>> Signed-off-by: Ravi Kishore Koppuravuri 
>> <ravi.kishore.koppuravuri@intel.com>
>> ---
>>   drivers/gpu/drm/xe/xe_ras.c | 11 +++++++++++
>>   1 file changed, 11 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
>> index 0fb891d00b36..47f6b91edd9c 100644
>> --- a/drivers/gpu/drm/xe/xe_ras.c
>> +++ b/drivers/gpu/drm/xe/xe_ras.c
>> @@ -1134,6 +1134,12 @@ static ssize_t gpu_health_show(struct device 
>> *dev, struct device_attribute *attr
>>       size_t rlen;
>>       int ret;
>>   +    if (xe_wedged(xe) || xe_device_is_in_reset(xe)) {
>
> Lets not use xe_device_is_in_reset . I will be removing 
> xe_device_is_in_reset in later patches. Please take a look at this 
> series 
> https://lore.kernel.org/intel-xe/20261119102344.2053821-1-raag.jadav@intel.com/ 
>
>
> Also add a skip for no_reset case.
>
Sure. will update accordingly
>
>> +        xe_err(xe, "[RAS]: GPU is wedged or in reset\n");
>
> Log is unnecessary. If there is application which keeps reading, this 
> will unnecessarily cause
> a lot of error logs
>
ok. Will remove the log.
> Thanks
> Riana
>
>
>> +        return -ECANCELED;
>> +    }
>> +
>> +
>>       xe_sysctrl_create_command(&command, XE_SYSCTRL_GROUP_GFSP, 
>> XE_SYSCTRL_CMD_GET_HEALTH,
>>                     &request, sizeof(request), &response, 
>> sizeof(response));
>>       guard(xe_pm_runtime)(xe);
>> @@ -1177,6 +1183,11 @@ static ssize_t gpu_health_store(struct device 
>> *dev, struct device_attribute *att
>>       if (state < 0)
>>           return -EINVAL;
>>   +    if (xe_wedged(xe) || xe_device_is_in_reset(xe)) {
>> +        xe_err(xe, "[RAS]: GPU is wedged or in reset\n");
>> +        return -ECANCELED;
>> +    }
>> +
>>       request.health = state;
>>         xe_sysctrl_create_command(&command, XE_SYSCTRL_GROUP_GFSP, 
>> XE_SYSCTRL_CMD_SET_HEALTH,

  reply	other threads:[~2026-11-23  6:57 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 16:39 [PATCH v1 0/1] drm/xe/xe_ras: Skip gpu_health sysfs commands during reset or wedged Ravi Kishore Koppuravuri
2026-11-19 16:39 ` [PATCH v1 1/1] " Ravi Kishore Koppuravuri
2026-11-19 16:57   ` sashiko-bot
2026-11-21  7:21   ` Mallesh, Koujalagi
2026-11-23  6:43     ` Koppuravuri, Ravi Kishore
2026-11-23  4:45   ` Tauro, Riana
2026-11-23  6:56     ` Koppuravuri, Ravi Kishore [this message]
2026-11-23  6:57   ` [PATCH v2] drm/xe/xe_ras: Skip gpu_health sysfs commands when wedged Ravi Kishore Koppuravuri
2026-11-23 14:50     ` Mallesh, Koujalagi
2026-11-24  6:04     ` [PATCH v3] " Ravi Kishore Koppuravuri
2026-11-24  6:07       ` Mallesh, Koujalagi
2026-11-24  6:30         ` Tauro, Riana
2026-11-24  6:12       ` sashiko-bot
2026-11-19 20:57 ` ✗ CI.checkpatch: warning for drm/xe/xe_ras: Skip gpu_health sysfs commands during reset or wedged Patchwork
2026-11-19 20:59 ` ✓ CI.KUnit: success " Patchwork
2026-11-19 21:37 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-21  7:34 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-23  7:06 ` ✗ CI.KUnit: failure for drm/xe/xe_ras: Skip gpu_health sysfs commands during reset or wedged (rev2) Patchwork
2026-11-24  6:13 ` ✗ CI.KUnit: failure for drm/xe/xe_ras: Skip gpu_health sysfs commands during reset or wedged (rev3) Patchwork

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=0b508bb7-e989-46e5-98ce-81adb3101000@intel.com \
    --to=ravi.kishore.koppuravuri@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=soham.purkait@intel.com \
    /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 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.