All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <anshuman.gupta@intel.com>,
	<badal.nilawar@intel.com>, <aravind.iddamsetty@linux.intel.com>,
	<raag.jadav@intel.com>, <ravi.kishore.koppuravuri@intel.com>,
	<mallesh.koujalagi@intel.com>, <tejas.upadhyay@intel.com>
Subject: Re: [PATCH v2 1/2] drm/xe/ras: Drop SIGID logging in page offline flow
Date: Mon, 23 Nov 2026 14:13:56 -0500	[thread overview]
Message-ID: <awSQdJQLn769_IKh@intel.com> (raw)
In-Reply-To: <20261122153015.877434-5-riana.tauro@intel.com>

On Sun, Nov 22, 2026 at 09:00:17PM +0530, Riana Tauro wrote:
> The page offline flow reports multiple SIGIDs for a single error,
> generating multiple CPERs. Drop the repeated SIGID logging and replace with
> xe_err or xe_dbg.
> 
> Fixes: 12b427cf8bb0 ("drm/xe/xe_ras: Handle page offline requests for device memory ecc errors")
> Suggested-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> ---
> v2: split patches
>     add more detailed commit message
>     remove non-functional changes from commit
>     convert some logs to xe_dbg (Rodrigo)

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

> ---
>  drivers/gpu/drm/xe/xe_ras.c | 42 ++++++++++++-------------------------
>  1 file changed, 13 insertions(+), 29 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 0fb891d00b36..07c048149da6 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -272,13 +272,6 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
>  	request.page_address = page_address;
>  	request.action = action;
>  
> -	if (action == XE_RAS_PAGE_ACTION_OFFLINE)
> -		xe_log_err(xe, DEVICE_MEMORY, 0, "Requesting firmware to offline page 0x%llx\n",
> -			   page_address);
> -	else
> -		xe_log_err(xe, DEVICE_MEMORY, 0, "Requesting firmware to remove page 0x%llx from queue\n",
> -			   page_address);
> -
>  	xe_sysctrl_create_command(&command, XE_SYSCTRL_GROUP_GFSP, XE_SYSCTRL_CMD_PAGE_OFFLINE,
>  				  &request, sizeof(request), &response, sizeof(response));
>  
> @@ -303,12 +296,15 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 page_address,
>  	}
>  
>  	if (action == XE_RAS_PAGE_ACTION_OFFLINE) {
> +		xe_info(xe, "[RAS]: Page address 0x%llx offlined\n", page_address);
>  		ret = xa_err(xa_store(&state->offlined_pages,
>  				      page_address >> XE_PTE_SHIFT,
>  				      XE_RAS_PAGE_OFFLINED, GFP_KERNEL));
>  		if (ret)
> -			xe_err(xe, "Failed to store offlined page 0x%llx: %d\n", page_address,
> -			       ret);
> +			xe_err(xe, "[RAS]: Failed to store offlined page 0x%llx: %d\n",
> +			       page_address, ret);
> +	} else {
> +		xe_info(xe, "[RAS]: Page address 0x%llx removed from queue\n", page_address);
>  	}
>  
>  	return 0;
> @@ -322,15 +318,14 @@ static int handle_page_offline(struct xe_device *xe, u64 page_address, bool noti
>  	int ret;
>  
>  	if (!IS_ALIGNED(page_address, XE_PAGE_SIZE)) {
> -		xe_log_err(xe, SYSCTRL, -EINVAL, "Unaligned physical page address: 0x%llx\n",
> -			   page_address);
> +		xe_err(xe, "[RAS]: Unaligned page address: 0x%llx\n", page_address);
>  		return -EINVAL;
>  	}
>  
>  	/* User policy set to disable page offlining */
>  	if (xe_ras_get_disable_vram_page_offline(xe)) {
>  		action = XE_RAS_PAGE_ACTION_REMOVE;
> -		xe_log_err(xe, DEVICE_MEMORY, -EOPNOTSUPP, "User policy set to disable page offlining\n");
> +		xe_dbg(xe, "[RAS]: User policy set to disable page offlining\n");
>  		goto notify;
>  	}
>  
> @@ -350,34 +345,23 @@ static int handle_page_offline(struct xe_device *xe, u64 page_address, bool noti
>  	switch (ret) {
>  	case 0:
>  		action = XE_RAS_PAGE_ACTION_REMOVE;
> -		xe_log_err(xe, DEVICE_MEMORY, ret,
> -			   "Poison detected at physical address 0x%llx, page soft-offlined\n",
> -			   page_address);
>  		break;
>  	case -EIO:
> -		xe_log_err(xe, DEVICE_MEMORY, ret,
> -			   "Poison detected at physical address 0x%llx, page belongs to critical BO and cannot be soft-offlined\n",
> -			   page_address);
> +		xe_err(xe, "[RAS]: Page address 0x%llx belongs to critical BO\n", page_address);
>  		return ret;
>  	case -EEXIST:
> +		xe_dbg(xe, "[RAS]: Repeated error on already soft-offlined page address 0x%llx\n",
> +		       page_address);
>  		if (xa_load(&state->offlined_pages, page_address >> XE_PTE_SHIFT))
>  			action = XE_RAS_PAGE_ACTION_REMOVE;
>  		else
>  			action = XE_RAS_PAGE_ACTION_OFFLINE;
> -
> -		xe_log_err(xe, DEVICE_MEMORY, ret,
> -			   "Double-bit ECC error detected at physical address 0x%llx, page soft-offlined\n",
> -			   page_address);
>  		break;
>  	case -ENOMEM:
> -		xe_log_err(xe, DEVICE_MEMORY, ret,
> -			   "Poison detected at physical address 0x%llx, failed to soft-offline\n",
> -			   page_address);
> -		return ret;
>  	default:
> -		xe_log_err(xe, DEVICE_MEMORY, ret, "Failed to handle address fault at physical address 0x%llx\n",
> -			   page_address);
> -		return 0;
> +		xe_err(xe, "[RAS]: Failed to offline page address 0x%llx: %d\n", page_address, ret);
> +		/* Only allocation failure is propagated, other errors are not actionable */
> +		return ret == -ENOMEM ? ret : 0;
>  	}
>  
>   notify:
> -- 
> 2.47.1
> 

  reply	other threads:[~2026-11-23 19:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22 15:30 [PATCH v2 0/2] Drop repeated SIGID logging Riana Tauro
2026-11-22 15:30 ` [PATCH v2 1/2] drm/xe/ras: Drop SIGID logging in page offline flow Riana Tauro
2026-11-23 19:13   ` Rodrigo Vivi [this message]
2026-11-22 15:30 ` [PATCH v2 2/2] drm/xe/ras: Drop SIGID logging for sysctrl errors Riana Tauro
2026-11-23 19:14   ` Rodrigo Vivi
2026-11-22 15:38 ` ✗ CI.checkpatch: warning for Drop repeated SIGID logging Patchwork
2026-11-22 15:41 ` ✓ CI.KUnit: success " Patchwork
2026-11-22 16:15 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-23 15:14 ` ✓ Xe.CI.FULL: " 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=awSQdJQLn769_IKh@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=aravind.iddamsetty@linux.intel.com \
    --cc=badal.nilawar@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=mallesh.koujalagi@intel.com \
    --cc=raag.jadav@intel.com \
    --cc=ravi.kishore.koppuravuri@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=tejas.upadhyay@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.