Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/6] drm/xe: Support xe_log_* helpers in atomic context
@ 2026-11-26 13:57 Mallesh Koujalagi
  2026-11-26 13:57 ` [RFC PATCH v1 1/6] drm/xe/cper: Software CPER-Do not review Mallesh Koujalagi
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Mallesh Koujalagi @ 2026-11-26 13:57 UTC (permalink / raw)
  To: intel-xe
  Cc: rodrigo.vivi, anshuman.gupta, badal.nilawar, vinay.belgaumkar,
	riana.tauro, karthik.poosa, sk.anirban, raag.jadav,
	aravind.iddamsetty, jani.nikula, daniele.ceraolospurio,
	Mallesh Koujalagi

xe_log_* currently uses GFP_KERNEL for CPER allocations and cannot be
safely used from atomic context.

Add atomic logging helpers and pass GFP flags through the CPER emission
path so callers can choose the appropriate allocation mode. Convert the
existing atomic-context users to use the new helpers.

The series builds on top of:
https://patchwork.freedesktop.org/series/176576
The dependency is included only so the series compiles.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Badal Nilawar <badal.nilawar@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Raag Jadav <raag.jadav@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>

Mallesh Koujalagi (6):
  drm/xe/cper: Software CPER-Do not review
  drm/xe/log: Add xe_log_* logging helpers for atomic context
  drm/xe/cper: Add gfp argument to xe_cper_emit()
  drm/xe/tests: Update log tests for atomic logging support
  drm/xe/pagefault: Use xe_log_err_atomic() for queue full errors
  drm/xe/guc_ct: Use atomic logging under ct->fast_lock

 drivers/gpu/drm/xe/tests/xe_log_kunit.c | 143 +++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_cper.c            |  84 +++++++++++---
 drivers/gpu/drm/xe/xe_cper.h            |  10 +-
 drivers/gpu/drm/xe/xe_cper_types.h      |  39 ++++++-
 drivers/gpu/drm/xe/xe_device_types.h    |   2 +
 drivers/gpu/drm/xe/xe_guc_ct.c          |  24 ++--
 drivers/gpu/drm/xe/xe_log.c             |  30 ++++-
 drivers/gpu/drm/xe/xe_log.h             |  61 ++++++++++
 drivers/gpu/drm/xe/xe_pagefault.c       |   2 +-
 drivers/gpu/drm/xe/xe_pci.c             |   2 +
 drivers/gpu/drm/xe/xe_pci_types.h       |   1 +
 drivers/gpu/drm/xe/xe_printk.h          |   3 +
 drivers/gpu/drm/xe/xe_ras.c             |   3 +-
 13 files changed, 369 insertions(+), 35 deletions(-)

-- 
2.48.1


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

end of thread, other threads:[~2026-11-26 14:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 13:57 [RFC PATCH v1 0/6] drm/xe: Support xe_log_* helpers in atomic context Mallesh Koujalagi
2026-11-26 13:57 ` [RFC PATCH v1 1/6] drm/xe/cper: Software CPER-Do not review Mallesh Koujalagi
2026-11-26 14:18   ` sashiko-bot
2026-11-26 13:57 ` [RFC PATCH v1 2/6] drm/xe/log: Add xe_log_* logging helpers for atomic context Mallesh Koujalagi
2026-11-26 13:57 ` [RFC PATCH v1 3/6] drm/xe/cper: Add gfp argument to xe_cper_emit() Mallesh Koujalagi
2026-11-26 14:13   ` sashiko-bot
2026-11-26 13:57 ` [RFC PATCH v1 4/6] drm/xe/tests: Update log tests for atomic logging support Mallesh Koujalagi
2026-11-26 13:57 ` [RFC PATCH v1 5/6] drm/xe/pagefault: Use xe_log_err_atomic() for queue full errors Mallesh Koujalagi
2026-11-26 13:57 ` [RFC PATCH v1 6/6] drm/xe/guc_ct: Use atomic logging under ct->fast_lock Mallesh Koujalagi
2026-11-26 14:10   ` sashiko-bot

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