All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH v3] drm/xe/display: Print display ip version
@ 2023-09-11 10:41 Balasubramani Vivekanandan
  2023-09-11 10:39 ` [Intel-xe] ✓ CI.Patch_applied: success for drm/xe/display: Print display ip version (rev4) Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Balasubramani Vivekanandan @ 2023-09-11 10:41 UTC (permalink / raw)
  To: intel-xe; +Cc: Matt Roper, Lucas De Marchi, Rodrigo Vivi

Print display ip version and flags during module load

v3:
Use the existing intel_display_device_info_print() function to print the
display information. (Jani)

Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
---
 drivers/gpu/drm/xe/xe_display.c | 9 +++++++++
 drivers/gpu/drm/xe/xe_display.h | 4 ++++
 drivers/gpu/drm/xe/xe_pci.c     | 2 ++
 3 files changed, 15 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_display.c b/drivers/gpu/drm/xe/xe_display.c
index a453946ad108..45ffc418e636 100644
--- a/drivers/gpu/drm/xe/xe_display.c
+++ b/drivers/gpu/drm/xe/xe_display.c
@@ -417,6 +417,15 @@ void xe_display_pm_resume(struct xe_device *xe)
 	intel_power_domains_enable(xe);
 }
 
+void xe_display_info_print(struct xe_device *xe)
+{
+	struct drm_printer p = drm_info_printer(xe->drm.dev);
+
+	if (xe->info.enable_display)
+		intel_display_device_info_print(xe->info.display,
+						&xe->info.display_runtime, &p);
+}
+
 /* Display info initialization */
 __diag_push();
 __diag_ignore_all("-Woverride-init", "Allow field overrides in table");
diff --git a/drivers/gpu/drm/xe/xe_display.h b/drivers/gpu/drm/xe/xe_display.h
index 9e29de012df7..b18bf5583229 100644
--- a/drivers/gpu/drm/xe/xe_display.h
+++ b/drivers/gpu/drm/xe/xe_display.h
@@ -19,6 +19,8 @@ int xe_display_create(struct xe_device *xe);
 
 void xe_display_info_init(struct xe_device *xe);
 
+void xe_display_info_print(struct xe_device *xe);
+
 int xe_display_init_nommio(struct xe_device *xe);
 void xe_display_fini_nommio(struct drm_device *dev, void *dummy);
 
@@ -57,6 +59,8 @@ xe_display_create(struct xe_device *xe) { return 0; }
 
 static inline void xe_display_info_init(struct xe_device *xe) { }
 
+static inline void xe_display_info_print(struct xe_device *xe) { }
+
 static inline int
 xe_display_enable(struct pci_dev *pdev, struct drm_driver *driver) { return 0; }
 
diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 24b16863bf3d..a4886ea8794f 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -724,6 +724,8 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 		xe_step_name(xe->info.step.display),
 		xe_step_name(xe->info.step.basedie));
 
+	xe_display_info_print(xe);
+
 	err = xe_device_probe(xe);
 	if (err)
 		goto err_pci_disable;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-21  7:21 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11 10:41 [Intel-xe] [PATCH v3] drm/xe/display: Print display ip version Balasubramani Vivekanandan
2023-09-11 10:39 ` [Intel-xe] ✓ CI.Patch_applied: success for drm/xe/display: Print display ip version (rev4) Patchwork
2023-09-11 10:39 ` [Intel-xe] ✓ CI.checkpatch: " Patchwork
2023-09-11 10:40 ` [Intel-xe] ✓ CI.KUnit: " Patchwork
2023-09-11 10:47 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-09-11 10:48 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-09-11 10:49 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-09-11 11:04 ` [Intel-xe] [PATCH v3] drm/xe/display: Print display ip version Jani Nikula
2023-09-11 14:01   ` Lucas De Marchi
2023-09-13  7:55     ` Balasubramani Vivekanandan
2023-09-14 14:35       ` Jani Nikula
2023-09-21  7:21         ` Balasubramani Vivekanandan
2023-09-11 11:25 ` [Intel-xe] ✓ CI.BAT: success for drm/xe/display: Print display ip version (rev4) Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.