Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Soham Purkait <soham.purkait@intel.com>
To: igt-dev@lists.freedesktop.org, riana.tauro@intel.com,
	vinay.belgaumkar@intel.com, kamil.konieczny@intel.com
Cc: anshuman.gupta@intel.com, lucas.demarchi@intel.com,
	rodrigo.vivi@intel.com, soham.purkait@intel.com
Subject: [PATCH i-g-t v4 1/2] lib/igt_device_scan: Add driver field to igt_device_card struct
Date: Fri, 28 Mar 2025 19:39:59 +0530	[thread overview]
Message-ID: <20250328141000.1847594-2-soham.purkait@intel.com> (raw)
In-Reply-To: <20250328141000.1847594-1-soham.purkait@intel.com>

Add driver field to igt_device_card structure
for storing driver names.

v1 : Add driver field to igt_device_card struct

v2 : Reorder commit sequence (Riana)
     Include sign-off

Signed-off-by: Soham Purkait <soham.purkait@intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
---
 lib/igt_device_scan.c | 4 ++++
 lib/igt_device_scan.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/lib/igt_device_scan.c b/lib/igt_device_scan.c
index 711bedc5c..3f26a1737 100644
--- a/lib/igt_device_scan.c
+++ b/lib/igt_device_scan.c
@@ -774,6 +774,10 @@ __copy_dev_to_card(struct igt_device *dev, struct igt_device_card *card)
 		safe_strncpy(card->render, dev->drm_render,
 			     sizeof(card->render));
 
+	if (dev->driver != NULL)
+		safe_strncpy(card->driver, dev->driver,
+			     sizeof(card->driver));
+
 	if (dev->pci_slot_name != NULL)
 		safe_strncpy(card->pci_slot_name, dev->pci_slot_name,
 			     sizeof(card->pci_slot_name));
diff --git a/lib/igt_device_scan.h b/lib/igt_device_scan.h
index 92741fe3c..f1cd3b1e9 100644
--- a/lib/igt_device_scan.h
+++ b/lib/igt_device_scan.h
@@ -59,6 +59,7 @@ struct igt_device_card {
 	char subsystem[NAME_MAX];
 	char card[NAME_MAX];
 	char render[NAME_MAX];
+	char driver[NAME_MAX];
 	char pci_slot_name[PCI_SLOT_NAME_SIZE+1];
 	uint16_t pci_vendor, pci_device;
 };
-- 
2.34.1


  reply	other threads:[~2025-03-28 14:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-28 14:09 [PATCH i-g-t v4 0/2] Add support for Xe in runtime-pm Soham Purkait
2025-03-28 14:09 ` Soham Purkait [this message]
2025-03-28 14:10 ` [PATCH i-g-t v4 2/2] tools/intel_pm_rpm: Add support for xe in runtime pm Soham Purkait
2025-03-29  1:21 ` ✓ Xe.CI.BAT: success for Add support for Xe in runtime-pm (rev5) Patchwork
2025-03-29  1:42 ` ✓ i915.CI.BAT: " Patchwork
2025-03-29  7:14 ` ✓ i915.CI.Full: " Patchwork
2025-03-29 19:52 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-06 19:44 ` 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=20250328141000.1847594-2-soham.purkait@intel.com \
    --to=soham.purkait@intel.com \
    --cc=anshuman.gupta@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@intel.com \
    --cc=lucas.demarchi@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=vinay.belgaumkar@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