From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/xe/ggtt: hold FORCEWAKE while updating GGTT PTEs on LNL
Date: Mon, 25 May 2026 20:52:12 +1000 [thread overview]
Message-ID: <review-overall-20260520194426.1334262-1-sonny@milton.pro> (raw)
In-Reply-To: <20260520194426.1334262-1-sonny@milton.pro>
Overall Series Review
Subject: drm/xe/ggtt: hold FORCEWAKE while updating GGTT PTEs on LNL
Author: Nikolay Mikhaylov <sonny@milton.pro>
Patches: 1
Reviewed: 2026-05-25T20:52:12.654181
---
This is a single-patch series that adds FORCEWAKE protection around GGTT PTE writes in the xe driver to prevent hangs on Lunar Lake (LNL) systems. The problem is well-understood: `xe_pm_runtime_get_noresume()` prevents D3 entry but doesn't prevent RC6, and on LNL the GuC autonomously enters RC6 via `GUCRC_FIRMWARE_CONTROL`. When the GT is in RC6, `writeq()` to GSM hangs.
The patch is well-motivated with real user testing backing it. The approach of wrapping PTE write batches in `xe_with_force_wake()` is reasonable and narrowly targeted.
**Concern:** There are additional GGTT PTE write paths in the same file that are **not** wrapped with FORCEWAKE:
1. **`xe_ggtt_map_bo_unlocked()`** (line 735–744) — called from `xe_bo_evict.c` to restore GGTT mappings after suspend. This calls `xe_ggtt_map_bo()` which writes PTEs via `ggtt_set_pte`. This path is not protected.
2. **`xe_ggtt_assign_locked()`** (line 971–987) — SR-IOV PF path that writes PTEs in a loop. Not protected.
3. **`xe_ggtt_node_load()`** (line 1053–1080) — SR-IOV node load path that writes PTEs in a loop. Not protected.
The commit message acknowledges the change is limited to "paths where the hang has been observed," which is a defensible position for a targeted fix. However, `xe_ggtt_map_bo_unlocked()` is called during resume from suspend and seems like it could plausibly hit the same issue on LNL if the GT re-enters RC6 quickly after resume.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-05-25 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-20 19:44 [PATCH v2] drm/xe/ggtt: hold FORCEWAKE while updating GGTT PTEs on LNL Nikolay Mikhaylov
2026-05-25 10:52 ` Claude Code Review Bot [this message]
2026-05-25 10:52 ` Claude review: " Claude Code Review Bot
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=review-overall-20260520194426.1334262-1-sonny@milton.pro \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.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