All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Rodrigo Vivi" <rodrigo.vivi@intel.com>, dri-devel@lists.freedesktop.org
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v8 3/3] drm/xe: Expose retired VRAM pages via drm-ras
Date: Wed, 02 Dec 2026 16:48:48 +0000	[thread overview]
Message-ID: <sashiko-outbox-246253@kernel.org> (raw)
In-Reply-To: <20261202150056.337399-8-rodrigo.vivi@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/xe: undeclared xe_ras_get_enable_vram_page_offline() call
  breaks build
--

commit fe6d6924e6a6983daf191b8300cdc00db07eaaa0
Author: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>

drm/xe: Expose retired VRAM pages via drm-ras

This commit registers a drm-ras retired-pages node to expose offlined and
queued VRAM pages, along with the maximum number of pages that can be
retired, to userspace.

> diff --git a/drivers/gpu/drm/xe/xe_drm_ras.c b/drivers/gpu/drm/xe/xe_drm_ras.c
> index 86c589437a9ff..adc7793ffcd33 100644
> --- a/drivers/gpu/drm/xe/xe_drm_ras.c
> +++ b/drivers/gpu/drm/xe/xe_drm_ras.c

[ ... ]

> @@ -272,6 +273,83 @@ static int register_nodes(struct xe_device *xe)
>  	return ret;
>  }
>  
> +static int query_retired_pages(struct drm_ras_node *node, struct drm_ras_retired_pages *list)

[ ... ]

> +int xe_drm_ras_register_retired_pages(struct xe_device *xe)
> +{
> +	struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
> +	struct drm_ras_node *node;
> +	int ret;
> +
> +	if (!xe->info.has_drm_ras || !xe_ras_get_enable_vram_page_offline(xe))
> +		return 0;

[Severity: High]
Does calling xe_ras_get_enable_vram_page_offline() break the build?

No such function exists in the tree; xe_ras.h declares
xe_ras_get_disable_vram_page_offline(xe), which returns true when VRAM
page offlining is disabled.  Should this check
xe_ras_get_disable_vram_page_offline(xe) without negation instead?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202150056.337399-5-rodrigo.vivi@intel.com?part=3

  reply	other threads:[~2026-12-02 16:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 15:00 [PATCH v8 0/3] drm/xe: Expose retired VRAM pages via drm-ras Rodrigo Vivi
2026-12-02 15:00 ` [PATCH v8 1/3] drm/ras: Check the node type in node lookups Rodrigo Vivi
2026-12-02 15:00 ` [PATCH v8 2/3] drm/ras: Add retired-pages node type Rodrigo Vivi
2026-12-02 15:01 ` [PATCH v8 3/3] drm/xe: Expose retired VRAM pages via drm-ras Rodrigo Vivi
2026-12-02 16:48   ` sashiko-bot [this message]
2026-12-02 16:47 ` ✗ CI.checkpatch: warning for drm/xe: Expose retired VRAM pages via drm-ras (rev8) Patchwork
2026-12-02 16:49 ` ✓ CI.KUnit: success " Patchwork
2026-12-02 17:22 ` ✓ Xe.CI.BAT: " 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-246253@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=rodrigo.vivi@intel.com \
    --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 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.