From: "Tauro, Riana" <riana.tauro@intel.com>
To: Sk Anirban <sk.anirban@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <anshuman.gupta@intel.com>, <badal.nilawar@intel.com>,
<karthik.poosa@intel.com>, <raag.jadav@intel.com>,
<soham.purkait@intel.com>, <mallesh.koujalagi@intel.com>,
<hiresh.kumar.yadav@intel.com>
Subject: Re: [PATCH v3] drm/xe/survivability: Fix infinite loop in aux info traversal
Date: Wed, 25 Nov 2026 19:50:32 +0530 [thread overview]
Message-ID: <87e188ab-efdc-424e-9d18-8ec610a7bbb0@intel.com> (raw)
In-Reply-To: <20261125093252.4188423-2-sk.anirban@intel.com>
On 25-11-2026 15:02, Sk Anirban wrote:
> AUX info register traversal can loop indefinitely when a register
> points back to itself. Avoid revisiting registers by reading each
> register once and collecting the entries that contain data.
>
> v2: Add fixes (Riana)
> Modify loop (Riana)
> v3: Remove non-zero check (Riana)
>
> Fixes: 5e940312a2ac ("drm/xe: Add functions and sysfs for boot survivability")
> Signed-off-by: Sk Anirban <sk.anirban@intel.com>
LGTM
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
> ---
> drivers/gpu/drm/xe/xe_survivability_mode.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_survivability_mode.c b/drivers/gpu/drm/xe/xe_survivability_mode.c
> index 91a0680e449b..2787ed952d2b 100644
> --- a/drivers/gpu/drm/xe/xe_survivability_mode.c
> +++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
> @@ -168,11 +168,9 @@ static void populate_survivability_info(struct xe_device *xe)
> set_survivability_info(mmio, info, POSTCODE_TRACE_OVERFLOW);
> }
>
> - /* Traverse the linked list of aux info registers */
> + /* Read all aux info registers */
> if (reg_value & AUXINFO_SUPPORT) {
> - for (id = REG_FIELD_GET(AUXINFO_REG_OFFSET, reg_value);
> - id >= AUX_INFO0 && id < MAX_SCRATCH_REG;
> - id = REG_FIELD_GET(AUXINFO_HISTORY_OFFSET, info[id]))
> + for (id = AUX_INFO0; id < MAX_SCRATCH_REG; id++)
> set_survivability_info(mmio, info, id);
> }
> }
prev parent reply other threads:[~2026-11-25 14:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 9:32 [PATCH v3] drm/xe/survivability: Fix infinite loop in aux info traversal Sk Anirban
2026-11-25 9:59 ` ✓ CI.KUnit: success for drm/xe/survivability: Fix infinite loop in aux info traversal (rev3) Patchwork
2026-11-25 10:40 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-25 12:55 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-25 14:20 ` Tauro, Riana [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=87e188ab-efdc-424e-9d18-8ec610a7bbb0@intel.com \
--to=riana.tauro@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=badal.nilawar@intel.com \
--cc=hiresh.kumar.yadav@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=karthik.poosa@intel.com \
--cc=mallesh.koujalagi@intel.com \
--cc=raag.jadav@intel.com \
--cc=sk.anirban@intel.com \
--cc=soham.purkait@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.