Intel-XE Archive on 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>,
	<aravind.iddamsetty@linux.intel.com>, <raag.jadav@intel.com>,
	<mallesh.koujalagi@intel.com>, <badal.nilawar@intel.com>
Subject: Re: [PATCH] drm/xe/ras: Remove unnecessary SIGID logging
Date: Tue, 10 Nov 2026 11:59:06 -0500	[thread overview]
Message-ID: <avNNWgTo_tNr94Ew@intel.com> (raw)
In-Reply-To: <20261104090701.1748619-2-riana.tauro@intel.com>

On Wed, Nov 04, 2026 at 02:37:02PM +0530, Riana Tauro wrote:
> Remove SIGID logging for all Double-bit ecc memory errors

Please take a look to the commit message of my duplicated attempt:
https://lore.kernel.org/intel-xe/20261109161733.3769906-2-rodrigo.vivi@intel.com/

I believe we could improve this message a bit here.

> 
> No functional changes.

In a way I'd say we do have some functional changes.


> 
> Fixes: 12b427cf8bb0 ("drm/xe/xe_ras: Handle page offline requests for device memory ecc errors")
> Fixes: 6d8ad0217f9d ("drm/xe/xe_ras: Add support to query page offline queue and list")
> Suggested-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_ras.c | 57 ++++++++++++++-----------------------
>  1 file changed, 21 insertions(+), 36 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 2c01c183d02b..46e2a40eee95 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -269,32 +269,29 @@ static int send_page_offline_cmd(struct xe_device *xe, u64 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);
> +		xe_info(xe, "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_info(xe, "Requesting firmware to remove page 0x%llx from queue\n", page_address);

should we use info or dbg here?!

>  
>  	xe_sysctrl_create_command(&command, XE_SYSCTRL_GROUP_GFSP, XE_SYSCTRL_CMD_PAGE_OFFLINE,
>  				  &request, sizeof(request), &response, sizeof(response));
>  
>  	ret = xe_sysctrl_send_command(&xe->sc, &command, &rlen);
>  	if (ret) {
> -		xe_log_err(xe, SYSCTRL, ret, "failed to send page offline command\n");
> +		xe_err(xe, "sysctrl: failed to send page offline command %d\n", ret);

This err is an error pointer and should be handled differently.

But, anyway...
I believe we should only remove the 202 (DEVICE_MEMORY) entries and not the fw
related ones (105 - SYSCTRL).

>  		return ret;
>  	}
>  
>  	if (rlen != sizeof(response)) {
> -		xe_log_err(xe, SYSCTRL, -EINVAL,
> -			   "unexpected page offline response length %zu (expected %zu)\n",
> -			   rlen, sizeof(response));
> +		xe_err(xe, "sysctrl: unexpected page offline response length %zu (expected %zu)\n",
> +		       rlen, sizeof(response));
>  		return -EINVAL;
>  	}
>  
>  	ret = ras_status_to_errno(response.status);
>  	if (ret) {
> -		xe_log_err(xe, SYSCTRL, ret, "page offline command failed with status %u\n",
> -			   response.status);
> +		xe_err(xe, "sysctrl: page offline command failed with status %#x\n",
> +		       response.status);
>  		return ret;
>  	}
>  
> @@ -318,15 +315,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, "Unaligned physical 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_info(xe, "User policy set to disable page offlining\n");
>  		goto notify;
>  	}
>  
> @@ -346,33 +342,24 @@ 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, "Physical page address 0x%llx belongs to critical BO and cannot be soft-offlined\n",
> +		       page_address);
>  		return ret;
>  	case -EEXIST:
>  		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);
> +		xe_err(xe, "Failed to soft-offline page at physical address 0x%llx\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);
> +		xe_err(xe, "Failed to handle address fault at physical address 0x%llx\n",
> +		       page_address);
>  		return 0;
>  	}
>  
> @@ -433,15 +420,14 @@ static void process_offline_pages(struct xe_device *xe, u32 cmd, void *req, size
>  
>  		ret = xe_sysctrl_send_command(&xe->sc, &command, &rlen);
>  		if (ret) {
> -			xe_log_err(xe, SYSCTRL, ret, "failed to get page offline data, cmd=%#x\n",
> -				   cmd);
> +			xe_err(xe, "sysctrl: failed to get page offline data for cmd %#x, ret %d\n",
> +			       cmd, ret);
>  			return;
>  		}
>  
>  		if (rlen != resp_size) {
> -			xe_log_err(xe, SYSCTRL, -EINVAL,
> -				   "unexpected page offline response length %zu (expected %zu), cmd=%#x\n",
> -				   rlen, resp_size, cmd);
> +			xe_err(xe, "sysctrl: unexpected page offline response length %zu (expected %zu) for cmd %#x\n",
> +			       rlen, resp_size, cmd);
>  			return;
>  		}
>  
> @@ -471,9 +457,8 @@ static void process_offline_pages(struct xe_device *xe, u32 cmd, void *req, size
>  			total_pages = common->total_pages;
>  
>  		if (count > total_pages) {
> -			xe_log_err(xe, SYSCTRL, -EINVAL,
> -				   "Pages returned exceed total pages %u, returned %u, cmd=%#x\n",
> -				   total_pages, count, cmd);
> +			xe_err(xe, "Pages returned exceed total pages %u, returned %u, cmd=%#x\n",
> +			       total_pages, count, cmd);
>  			return;
>  		}
>  	} while (common->additional_data);
> -- 
> 2.47.1
> 

  parent reply	other threads:[~2026-11-10 17:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04  9:07 [PATCH] drm/xe/ras: Remove unnecessary SIGID logging Riana Tauro
2026-11-04  9:16 ` ✓ CI.KUnit: success for " Patchwork
2026-11-04  9:52 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-05  0:49 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-10 16:59 ` Rodrigo Vivi [this message]
2026-11-11  4:20   ` [PATCH] " Tauro, Riana
2026-11-11 15:44     ` Vivi, Rodrigo
2026-11-12  8:36       ` Tauro, Riana

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=avNNWgTo_tNr94Ew@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=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