diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-05-21 16:22:57 +0200 |
---|---|---|
committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2024-05-28 16:08:24 +0200 |
commit | 0aa256252dbe74f48300824b9e65d5e93fe631ff (patch) | |
tree | fbef3c6ecabf412713a23b07f2e659bc1304a3bd /drivers/gpu/drm/xe/xe_assert.h | |
parent | 6ca728975654a7247b2e4aa2e9eb61043c833570 (diff) |
drm/xe: Use platform name in xe_assert()
We can now use more user-friendly platform name instead of
previosly used magic platform enumerator value:
[ ] xe 0000:00:02.0: [drm] Assertion `false` failed!
platform: ALDERLAKE_S ...
[ ] xe 0000:03:00.0: [drm] Assertion `false` failed!
platform: DG2 ...
vs
[ ] xe 0000:00:02.0: [drm] Assertion `false` failed!
platform: 3 ...
[ ] xe 0000:03:00.0: [drm] Assertion `false` failed!
platform: 7 ...
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521142257.756-4-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_assert.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_assert.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_assert.h b/drivers/gpu/drm/xe/xe_assert.h index 34c142e6cfb0..8b0cc1bc9327 100644 --- a/drivers/gpu/drm/xe/xe_assert.h +++ b/drivers/gpu/drm/xe/xe_assert.h @@ -109,11 +109,11 @@ #define xe_assert_msg(xe, condition, msg, arg...) ({ \ const struct xe_device *__xe = (xe); \ __xe_assert_msg(__xe, condition, \ - "platform: %d subplatform: %d\n" \ + "platform: %s subplatform: %d\n" \ "graphics: %s %u.%02u step %s\n" \ "media: %s %u.%02u step %s\n" \ msg, \ - __xe->info.platform, __xe->info.subplatform, \ + __xe->info.platform_name, __xe->info.subplatform, \ __xe->info.graphics_name, \ __xe->info.graphics_verx100 / 100, \ __xe->info.graphics_verx100 % 100, \ |