From: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>,
Adam Miszczak <adam.miszczak@linux.intel.com>,
Jakub Kolakowski <jakub1.kolakowski@intel.com>,
Lucas De Marchi <lucas.demarchi@intel.com>,
Lukasz Laguna <lukasz.laguna@intel.com>,
Matt Roper <matthew.d.roper@intel.com>,
Michal Wajdeczko <michal.wajdeczko@intel.com>,
Michal Winiarski <michal.winiarski@intel.com>,
Narasimha C V <narasimha.c.v@intel.com>,
Piotr Piorkowski <piotr.piorkowski@intel.com>,
Satyanarayana K V P <satyanarayana.k.v.p@intel.com>,
Tomasz Lis <tomasz.lis@intel.com>
Subject: [PATCH 2/3] drm/xe/rtp: Add match helper to omit SR-IOV VF device
Date: Wed, 11 Dec 2024 07:42:10 +0100 [thread overview]
Message-ID: <20241211064211.781820-3-marcin.bernatowicz@linux.intel.com> (raw)
In-Reply-To: <20241211064211.781820-1-marcin.bernatowicz@linux.intel.com>
Add a match helper that allows the application of a workaround
when the device is not an SR-IOV VF (Virtual Function) device.
Signed-off-by: Marcin Bernatowicz <marcin.bernatowicz@linux.intel.com>
Cc: Adam Miszczak <adam.miszczak@linux.intel.com>
Cc: Jakub Kolakowski <jakub1.kolakowski@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Cc: Narasimha C V <narasimha.c.v@intel.com>
Cc: Piotr Piorkowski <piotr.piorkowski@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Tomasz Lis <tomasz.lis@intel.com>
---
drivers/gpu/drm/xe/xe_rtp.c | 5 +++++
drivers/gpu/drm/xe/xe_rtp.h | 11 +++++++++++
2 files changed, 16 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_rtp.c b/drivers/gpu/drm/xe/xe_rtp.c
index b13d4d62f0b1..7a1c78fdfc92 100644
--- a/drivers/gpu/drm/xe/xe_rtp.c
+++ b/drivers/gpu/drm/xe/xe_rtp.c
@@ -340,3 +340,8 @@ bool xe_rtp_match_first_gslice_fused_off(const struct xe_gt *gt,
return dss >= dss_per_gslice;
}
+bool xe_rtp_match_not_sriov_vf(const struct xe_gt *gt,
+ const struct xe_hw_engine *hwe)
+{
+ return !IS_SRIOV_VF(gt_to_xe(gt));
+}
diff --git a/drivers/gpu/drm/xe/xe_rtp.h b/drivers/gpu/drm/xe/xe_rtp.h
index 827d932b6908..7dea10d732d7 100644
--- a/drivers/gpu/drm/xe/xe_rtp.h
+++ b/drivers/gpu/drm/xe/xe_rtp.h
@@ -476,4 +476,15 @@ bool xe_rtp_match_first_render_or_compute(const struct xe_gt *gt,
bool xe_rtp_match_first_gslice_fused_off(const struct xe_gt *gt,
const struct xe_hw_engine *hwe);
+/*
+ * xe_rtp_match_not_sriov_vf - Match when not on SR-IOV VF device
+ *
+ * @gt: GT structure
+ * @hwe: Engine instance
+ *
+ * Returns: true if device is not VF, false otherwise.
+ */
+bool xe_rtp_match_not_sriov_vf(const struct xe_gt *gt,
+ const struct xe_hw_engine *hwe);
+
#endif
--
2.31.1
next prev parent reply other threads:[~2024-12-11 6:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-11 6:42 [PATCH v2 0/3] VF: Avoid reading inaccessible registers Marcin Bernatowicz
2024-12-11 6:42 ` [PATCH 1/3] drm/xe/vf: Don't check has flat ccs in bios on VF Marcin Bernatowicz
2025-01-07 23:13 ` Matt Roper
2024-12-11 6:42 ` Marcin Bernatowicz [this message]
2025-01-07 23:14 ` [PATCH 2/3] drm/xe/rtp: Add match helper to omit SR-IOV VF device Matt Roper
2024-12-11 6:42 ` [PATCH 3/3] drm/xe/vf: Don't apply Wa_22019338487 for VF Marcin Bernatowicz
2025-01-07 23:21 ` Matt Roper
2024-12-11 6:47 ` ✓ CI.Patch_applied: success for VF: Avoid reading inaccessible registers (rev2) Patchwork
2024-12-11 6:48 ` ✓ CI.checkpatch: " Patchwork
2024-12-11 6:49 ` ✓ CI.KUnit: " Patchwork
2024-12-11 7:07 ` ✓ CI.Build: " Patchwork
2024-12-11 7:09 ` ✓ CI.Hooks: " Patchwork
2024-12-11 7:11 ` ✓ CI.checksparse: " Patchwork
2024-12-11 7:36 ` ✓ Xe.CI.BAT: " Patchwork
2024-12-11 8:34 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-12 11:55 ` Bernatowicz, Marcin
2025-01-07 23:27 ` Matt Roper
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=20241211064211.781820-3-marcin.bernatowicz@linux.intel.com \
--to=marcin.bernatowicz@linux.intel.com \
--cc=adam.miszczak@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jakub1.kolakowski@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=lukasz.laguna@intel.com \
--cc=matthew.d.roper@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=michal.winiarski@intel.com \
--cc=narasimha.c.v@intel.com \
--cc=piotr.piorkowski@intel.com \
--cc=satyanarayana.k.v.p@intel.com \
--cc=tomasz.lis@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