From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: [PATCH 1/3] drm/xe: Store platform name in xe_device.info
Date: Tue, 21 May 2024 16:22:55 +0200 [thread overview]
Message-ID: <20240521142257.756-2-michal.wajdeczko@intel.com> (raw)
In-Reply-To: <20240521142257.756-1-michal.wajdeczko@intel.com>
We already maintain the platform name as part of the device
descriptor, but in xe_device.info we only store platform enum,
which is not the best for use in any user-facing messages.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
---
drivers/gpu/drm/xe/xe_device_types.h | 2 ++
drivers/gpu/drm/xe/xe_pci.c | 1 +
2 files changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
index 5c5e36de452a..99edaebfcbfd 100644
--- a/drivers/gpu/drm/xe/xe_device_types.h
+++ b/drivers/gpu/drm/xe/xe_device_types.h
@@ -218,6 +218,8 @@ struct xe_device {
/** @info: device info */
struct intel_device_info {
+ /** @info.platform_name: platform name */
+ const char *platform_name;
/** @info.graphics_name: graphics IP name */
const char *graphics_name;
/** @info.media_name: media IP name */
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 682eafd84901..b30fe4849038 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -561,6 +561,7 @@ static int xe_info_init_early(struct xe_device *xe,
{
int err;
+ xe->info.platform_name = desc->platform_name;
xe->info.platform = desc->platform;
xe->info.subplatform = subplatform_desc ?
subplatform_desc->subplatform : XE_SUBPLATFORM_NONE;
--
2.43.0
next prev parent reply other threads:[~2024-05-21 14:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-21 14:22 [PATCH 0/3] Store platform name in xe_device.info Michal Wajdeczko
2024-05-21 14:22 ` Michal Wajdeczko [this message]
2024-05-22 16:28 ` [PATCH 1/3] drm/xe: " Rodrigo Vivi
2024-05-21 14:22 ` [PATCH 2/3] drm/xe: Drop undesired prefix from the platform name Michal Wajdeczko
2024-05-22 16:29 ` Rodrigo Vivi
2024-05-21 14:22 ` [PATCH 3/3] drm/xe: Use platform name in xe_assert() Michal Wajdeczko
2024-05-22 16:29 ` Rodrigo Vivi
2024-05-21 16:39 ` ✓ CI.Patch_applied: success for Store platform name in xe_device.info Patchwork
2024-05-21 16:39 ` ✓ CI.checkpatch: " Patchwork
2024-05-21 16:40 ` ✓ CI.KUnit: " Patchwork
2024-05-21 16:52 ` ✓ CI.Build: " Patchwork
2024-05-21 16:54 ` ✓ CI.Hooks: " Patchwork
2024-05-21 16:56 ` ✓ CI.checksparse: " Patchwork
2024-05-21 17:28 ` ✓ CI.BAT: " Patchwork
2024-05-21 22:53 ` ✗ CI.FULL: failure " Patchwork
2024-05-22 21:37 ` Michal Wajdeczko
2024-05-28 14:18 ` [PATCH 0/3] " Michal Wajdeczko
2024-05-29 17:29 ` Lucas De Marchi
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=20240521142257.756-2-michal.wajdeczko@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@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