From: Lucas De Marchi <lucas.demarchi@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Subject: [PATCH 1/2] FOR_CI: pcode-fix
Date: Thu, 26 Jun 2025 13:56:18 -0700 [thread overview]
Message-ID: <20250626-xe-kunit-v1-1-2440e6d9a4b5@intel.com> (raw)
In-Reply-To: <20250626-xe-kunit-v1-0-2440e6d9a4b5@intel.com>
Just to test/validate second patch. The solution is being discussed
at https://lore.kernel.org/intel-xe/gbisrh7ep2gn2fxv7xz4g4sy75qjpmcr5yqdx5atlab2oxevlx@j3zwx3k4o4x4/
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
---
drivers/gpu/drm/xe/xe_pcode.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c
index 87323ad0cbbb2..08aee78ff08ed 100644
--- a/drivers/gpu/drm/xe/xe_pcode.c
+++ b/drivers/gpu/drm/xe/xe_pcode.c
@@ -337,7 +337,10 @@ int xe_pcode_probe_early(struct xe_device *xe)
}
ALLOW_ERROR_INJECTION(xe_pcode_probe_early, ERRNO); /* See xe_pci_probe */
-/* Helpers with drm device */
+
+/* Helpers with drm device. These should only be called by the display side */
+#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
+
int intel_pcode_read(struct drm_device *drm, u32 mbox, u32 *val, u32 *val1)
{
struct xe_device *xe = to_xe_device(drm);
@@ -362,3 +365,5 @@ int intel_pcode_request(struct drm_device *drm, u32 mbox, u32 request,
return xe_pcode_request(tile, mbox, request, reply_mask, reply, timeout_base_ms);
}
+
+#endif
--
2.49.0
next prev parent reply other threads:[~2025-06-26 20:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-26 20:56 [PATCH 0/2] drm/xe: xe with/without kunit Lucas De Marchi
2025-06-26 20:56 ` Lucas De Marchi [this message]
2025-06-27 9:07 ` [PATCH 1/2] FOR_CI: pcode-fix Jani Nikula
2025-06-26 20:56 ` [PATCH 2/2] drm/xe: Allow dropping kunit dependency as built-in Lucas De Marchi
2025-06-26 21:22 ` ✗ CI.checkpatch: warning for drm/xe: xe with/without kunit Patchwork
2025-06-26 21:23 ` ✓ CI.KUnit: success " Patchwork
2025-06-26 22:18 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-01 1:56 ` ✗ 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=20250626-xe-kunit-v1-1-2440e6d9a4b5@intel.com \
--to=lucas.demarchi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/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