From: sashiko-bot@kernel.org
To: "Badal Nilawar" <badal.nilawar@intel.com>,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 5/5] drm/xe: Request vendor recovery for AMC firmware download alert
Date: Fri, 27 Nov 2026 06:23:17 +0000 [thread overview]
Message-ID: <sashiko-outbox-236731@kernel.org> (raw)
In-Reply-To: <20261127061333.1019047-12-badal.nilawar@intel.com>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/xe: sysfs path mismatch for amc_alert_reason in xe_wedge.c
doc
--
commit d7afe86ab766654c2a68f433a70749b0b8d852e5
Author: Badal Nilawar <badal.nilawar@intel.com>
drm/xe: Request vendor recovery for AMC firmware download alert
This commit declares vendor-specific wedge recovery when an AMC firmware
download alert is received and documents the corresponding recovery
procedure.
> diff --git a/drivers/gpu/drm/xe/xe_wedge.c b/drivers/gpu/drm/xe/xe_wedge.c
> index 827fae058976a..633f12e7b48c8 100644
> --- a/drivers/gpu/drm/xe/xe_wedge.c
> +++ b/drivers/gpu/drm/xe/xe_wedge.c
> @@ -54,6 +54,26 @@
> *
> * - Admin/userspace consumer can use firmware flashing tools like fwupd to flash
> * firmware and restore device to normal operation.
> + *
> + * Case: Firmware Download (AMC alert)
> + * -----------------------------------
> + *
> + * Identification Hint
> + * +++++++++++++++++++
> + *
> + * ``WEDGED=vendor-specific`` drm device wedged uevent with
> + * ``/sys/bus/pci/devices/<device>/xe_amc_alert_reason`` reporting
> + * ``Firmware Download`` indicates that a firmware download is in progress and
> + * the AMC will reset the device when it completes.
[Severity: Low]
Should this sysfs path be /sys/bus/pci/devices/<device>/amc_alert_reason
(or should the sysfs attribute itself be renamed to xe_amc_alert_reason)?
In drivers/gpu/drm/xe/xe_amc.c, the attribute is defined with
DEVICE_ATTR_RO(amc_alert_reason) and registered on the PCI device via
amc_create_alert_sysfs(), so the file created in sysfs has no "xe_" prefix
and userspace looking up xe_amc_alert_reason will get -ENOENT.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127061333.1019047-7-badal.nilawar@intel.com?part=5
next prev parent reply other threads:[~2026-11-27 6:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 6:13 [PATCH 0/5] Process AMC alert Badal Nilawar
2026-11-27 6:13 ` [PATCH 1/5] drm/xe: Request cold-reset recovery on AMC thermal trip alert Badal Nilawar
2026-11-27 6:13 ` [PATCH 2/5] drm/xe: Request cold-reset recovery on AMC OOB request alert Badal Nilawar
2026-11-27 6:13 ` [PATCH 3/5] drm/xe: Request cold-reset recovery on AMC CATERR alert Badal Nilawar
2026-11-27 6:13 ` [PATCH 4/5] drm/xe/i2c: Expose AMC alert reason through sysfs Badal Nilawar
2026-11-27 6:30 ` sashiko-bot
2026-11-27 6:13 ` [PATCH 5/5] drm/xe: Request vendor recovery for AMC firmware download alert Badal Nilawar
2026-11-27 6:23 ` sashiko-bot [this message]
2026-11-27 6:58 ` ✗ CI.checkpatch: warning for Process AMC alert Patchwork
2026-11-27 7:00 ` ✓ CI.KUnit: success " 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=sashiko-outbox-236731@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=badal.nilawar@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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