Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] drm/xe: CRI support in gt_throttle + refactors
@ 2025-10-29 23:45 Lucas De Marchi
  2025-10-29 23:45 ` [PATCH v3 1/8] drm/xe/cri: Add new performance limit reasons bits Lucas De Marchi
                   ` (7 more replies)
  0 siblings, 8 replies; 17+ messages in thread
From: Lucas De Marchi @ 2025-10-29 23:45 UTC (permalink / raw)
  To: intel-xe; +Cc: Lucas De Marchi, Raag Jadav, Sk Anirban, Rodrigo Vivi

First patch was extracted from the rest of the CRI support series:
https://patch.msgid.link/20251021-cri-v1-0-bf11e61d9f49@intel.com

I did some minor tweaks for a v2 of that patch: something that could be
considered for merging since it follows the style of that file.

Patches on top are refactors to simplify the code and reduce its
verbosity/boilerplate.

Finally last patch tries to resolve the TOCTOU issue previously
discussed in a reasonable way.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
Changes in v3:
- Use space as separator for the reasons (Rodrigo)
- Link to v2: https://patch.msgid.link/20251026-gt-throttle-cri-v2-0-41f8288a71a7@intel.com

Changes in v2:
- Handle comments on v1, noted on individual patches
- Improve documentation, adding it to the html output
- Add patch to introduce status_reasons attribute to overcome the TOCTOU
  of the current API
- Link to v1: https://patch.msgid.link/20251023-gt-throttle-cri-v1-0-9f36f3c8861c@intel.com
---
Lucas De Marchi (7):
      drm/xe/gt_throttle: Tidy up perf reasons reading
      drm/xe/gt_throttle: Always read and mask
      drm/xe/gt_throttle: Add throttle_to_gt()
      drm/xe/gt_throttle: Tidy up attribute definition
      drm/xe: Improve freq and throttle documentation
      drm/xe/gt_throttle: Drop individual show functions
      drm/xe/gt_throttle: Avoid TOCTOU when monitoring reasons

Sk Anirban (1):
      drm/xe/cri: Add new performance limit reasons bits

 Documentation/gpu/xe/xe_gt_freq.rst  |   3 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h |  13 ++
 drivers/gpu/drm/xe/xe_gt_freq.c      |  30 +--
 drivers/gpu/drm/xe/xe_gt_throttle.c  | 349 ++++++++++++++++++-----------------
 4 files changed, 213 insertions(+), 182 deletions(-)

base-commit: cda2b0f6aac39752912adadfb0735f157598917c
change-id: 20251023-gt-throttle-cri-06f3c9d33c44

Lucas De Marchi


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-10-31  6:08 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-29 23:45 [PATCH v3 0/8] drm/xe: CRI support in gt_throttle + refactors Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 1/8] drm/xe/cri: Add new performance limit reasons bits Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 2/8] drm/xe/gt_throttle: Tidy up perf reasons reading Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 3/8] drm/xe/gt_throttle: Always read and mask Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 4/8] drm/xe/gt_throttle: Add throttle_to_gt() Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 5/8] drm/xe/gt_throttle: Tidy up attribute definition Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 6/8] drm/xe: Improve freq and throttle documentation Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 7/8] drm/xe/gt_throttle: Drop individual show functions Lucas De Marchi
2025-10-29 23:45 ` [PATCH v3 8/8] drm/xe/gt_throttle: Avoid TOCTOU when monitoring reasons Lucas De Marchi
2025-10-30  9:53   ` Raag Jadav
2025-10-30 14:55     ` Lucas De Marchi
2025-10-30 15:47       ` Rodrigo Vivi
2025-10-30 16:06         ` Raag Jadav
2025-10-30 18:43           ` Lucas De Marchi
2025-10-30 19:54             ` Vivi, Rodrigo
2025-10-31  6:08               ` Raag Jadav
2025-10-30 15:42   ` Rodrigo Vivi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox