Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: "Michal Wajdeczko" <michal.wajdeczko@intel.com>,
	"Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
	"Rodrigo Vivi" <rodrigo.vivi@intel.com>,
	"Matthew Brost" <matthew.brost@intel.com>,
	"Daniele Ceraolo Spurio" <daniele.ceraolospurio@intel.com>
Subject: [PATCH v3 0/4] PF: Add handling for new adverse event thresholds
Date: Tue, 16 Dec 2025 22:48:55 +0100	[thread overview]
Message-ID: <20251216214902.1429-1-michal.wajdeczko@intel.com> (raw)

We want to extend our macro-based KLV list definitions with new
information about the version from which given KLV is supported.

Instead of using magic version like 0.0.0 for legacy KLVs, add
utility IF_ARGS macro that can be used in code generators to emit
different code based on the presence of any additional arguments.

This series cherry-picks one patch from the EGS series [1] and
can be merged separately.

v1: https://patchwork.freedesktop.org/series/158874/#rev1
v2: https://patchwork.freedesktop.org/series/158874/#rev2
    new patch with GUC_FIRMWARE_VER_AT_LEAST macro
v3: alternate implementation of IF_ARGS macro for older GCC
    as kernel test robot reported errors on GCC 8.5.0 and
    same errors were seen locally on 9.5.0 but not on 10.1.0

Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>

[1] https://patchwork.freedesktop.org/series/158142/#rev3

Daniele Ceraolo Spurio (1):
  drm/xe/pf: Add handling for MLRC adverse event threshold

Michal Wajdeczko (3):
  drm/xe: Introduce IF_ARGS macro utility
  drm/xe/guc: Introduce GUC_FIRMWARE_VER_AT_LEAST helper
  drm/xe/pf: Prepare for new threshold KLVs

 drivers/gpu/drm/xe/abi/guc_klvs_abi.h         |  9 ++++
 drivers/gpu/drm/xe/tests/xe_args_test.c       | 54 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_args.h                  | 27 ++++++++++
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c    | 19 ++++---
 drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c   |  9 ++--
 drivers/gpu/drm/xe/xe_gt_sriov_pf_migration.c |  2 +-
 drivers/gpu/drm/xe/xe_guc.h                   | 21 ++++++++
 drivers/gpu/drm/xe/xe_guc_ads.c               |  4 +-
 .../drm/xe/xe_guc_klv_thresholds_set_types.h  |  6 +++
 9 files changed, 138 insertions(+), 13 deletions(-)

-- 
2.47.1


             reply	other threads:[~2025-12-16 21:49 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-16 21:48 Michal Wajdeczko [this message]
2025-12-16 21:48 ` [PATCH v3 1/4] drm/xe: Introduce IF_ARGS macro utility Michal Wajdeczko
2025-12-17 22:40   ` [PATCH v4 " Michal Wajdeczko
2025-12-16 21:48 ` [PATCH v3 2/4] drm/xe/guc: Introduce GUC_FIRMWARE_VER_AT_LEAST helper Michal Wajdeczko
2025-12-16 21:48 ` [PATCH v3 3/4] drm/xe/pf: Prepare for new threshold KLVs Michal Wajdeczko
2025-12-16 21:48 ` [PATCH v3 4/4] drm/xe/pf: Add handling for MLRC adverse event threshold Michal Wajdeczko
2025-12-17  2:14 ` ✗ CI.checkpatch: warning for PF: Add handling for new adverse event thresholds (rev4) Patchwork
2025-12-17  2:15 ` ✓ CI.KUnit: success " Patchwork
2025-12-17  2:48 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-17 22:46 ` ✗ CI.checkpatch: warning for PF: Add handling for new adverse event thresholds (rev5) Patchwork
2025-12-17 22:47 ` ✓ CI.KUnit: success " Patchwork
2025-12-17 23:27 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-18 23:19 ` ✗ Xe.CI.Full: failure " 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=20251216214902.1429-1-michal.wajdeczko@intel.com \
    --to=michal.wajdeczko@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=matthew.brost@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=thomas.hellstrom@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox