Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Badal Nilawar <badal.nilawar@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <anshuman.gupta@intel.com>,
	<raag.jadav@intel.com>, <riana.tauro@intel.com>,
	<mallesh.koujalagi@intel.com>, <aravind.iddamsetty@intel.com>,
	<heikki.krogerus@linux.intel.com>,
	<himal.prasad.ghimiray@intel.com>
Subject: Re: [PATCH v2 5/5] drm/xe: Request vendor recovery for AMC firmware download alert
Date: Tue, 1 Dec 2026 16:10:36 -0500	[thread overview]
Message-ID: <aw83zENwJ3WdZzz2@intel.com> (raw)
In-Reply-To: <20261201091109.1343470-12-badal.nilawar@intel.com>

On Tue, Dec 01, 2026 at 02:41:15PM +0530, Badal Nilawar wrote:
> AMC reports a firmware download alert when a device firmware update is
> in progress. Request vendor-specific recovery so userspace can identify
> the alert reason and perform the documented recovery.
> 
> Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
> ---
> v2:
>   - Rephrase recovery procedure (Rodrigo)
> ---
>  drivers/gpu/drm/xe/xe_amc.c   |  3 +++
>  drivers/gpu/drm/xe/xe_wedge.c | 19 +++++++++++++++++++
>  2 files changed, 22 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_amc.c b/drivers/gpu/drm/xe/xe_amc.c
> index f23abee5eb5c..e0ff01b1d0a5 100644
> --- a/drivers/gpu/drm/xe/xe_amc.c
> +++ b/drivers/gpu/drm/xe/xe_amc.c
> @@ -217,6 +217,9 @@ static void xe_amc_work(struct work_struct *work)
>  
>  	switch (alert_reason) {
>  	case AMC_ALERT_FW_DOWNLOAD:
> +		alert_str = amc_alert[alert_reason];
> +		recovery = DRM_WEDGE_RECOVERY_VENDOR;
> +		break;
>  	case AMC_ALERT_OOB_RESET:
>  		alert_str = amc_alert[alert_reason];
>  		recovery = DRM_WEDGE_RECOVERY_REBIND | DRM_WEDGE_RECOVERY_BUS_RESET;
> diff --git a/drivers/gpu/drm/xe/xe_wedge.c b/drivers/gpu/drm/xe/xe_wedge.c
> index e48cca34d660..7d58ca3b2f4b 100644
> --- a/drivers/gpu/drm/xe/xe_wedge.c
> +++ b/drivers/gpu/drm/xe/xe_wedge.c
> @@ -54,6 +54,25 @@
>   *
>   * - 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>/amc_alert_reason`` reporting
> + * ``Firmware Download`` indicates that a firmware download is in progress.
> + *
> + * Recovery Procedure
> + * ++++++++++++++++++
> + *
> + * Once ``WEDGED=vendor-specific`` drm device wedged uevent is received, follow
> + * the below steps
> + *
> + * - Check the AMC alert reason sysfs. If it reports ``Firmware Download``,
> + *   ensure device reset completes and re-enumerate the device.

Thank you

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

>   */
>  
>  /**
> -- 
> 2.56.0
> 

      parent reply	other threads:[~2026-12-01 21:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:11 [PATCH v2 0/5] Process AMC alert Badal Nilawar
2026-12-01  9:11 ` [PATCH v2 1/5] drm/xe: Request cold-reset recovery on AMC thermal trip alert Badal Nilawar
2026-12-01 10:58   ` Gupta, Anshuman
2026-12-01 11:12   ` Raag Jadav
2026-12-01  9:11 ` [PATCH v2 2/5] drm/xe: Request cold-reset recovery on AMC OOB request alert Badal Nilawar
2026-12-01 11:03   ` Gupta, Anshuman
2026-12-01  9:11 ` [PATCH v2 3/5] drm/xe: Request cold-reset recovery on AMC CATERR alert Badal Nilawar
2026-12-01 11:04   ` Gupta, Anshuman
2026-12-01  9:11 ` [PATCH v2 4/5] drm/xe/i2c: Expose AMC alert reason through sysfs Badal Nilawar
2026-12-01 15:54   ` Gupta, Anshuman
2026-12-01 21:10   ` Rodrigo Vivi
2026-12-01  9:11 ` [PATCH v2 5/5] drm/xe: Request vendor recovery for AMC firmware download alert Badal Nilawar
2026-12-01 16:24   ` Gupta, Anshuman
2026-12-01 21:10   ` Rodrigo Vivi [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=aw83zENwJ3WdZzz2@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=riana.tauro@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox