From: Raag Jadav <raag.jadav@intel.com>
To: lucas.demarchi@intel.com, rodrigo.vivi@intel.com, jani.nikula@intel.com
Cc: intel-xe@lists.freedesktop.org, riana.tauro@intel.com,
matthew.brost@intel.com, michal.wajdeczko@intel.com,
badal.nilawar@intel.com, ville.syrjala@linux.intel.com,
karthik.poosa@intel.com, anshuman.gupta@intel.com,
Raag Jadav <raag.jadav@intel.com>
Subject: [PATCH v1 2/4] drm/xe/sysfs: Use xe_pcode_read_probe() to check for mailbox command support
Date: Tue, 18 Nov 2025 14:29:18 +0530 [thread overview]
Message-ID: <20251118090012.608250-3-raag.jadav@intel.com> (raw)
In-Reply-To: <20251118090012.608250-1-raag.jadav@intel.com>
Use xe_pcode_read_probe() to check for mailbox command support on the
device while exposing respective sysfs attributes.
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
drivers/gpu/drm/xe/xe_device_sysfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_device_sysfs.c b/drivers/gpu/drm/xe/xe_device_sysfs.c
index ec9c06b06fb5..30326de826a7 100644
--- a/drivers/gpu/drm/xe/xe_device_sysfs.c
+++ b/drivers/gpu/drm/xe/xe_device_sysfs.c
@@ -168,8 +168,8 @@ static umode_t late_bind_attr_is_visible(struct kobject *kobj,
u32 cap = 0;
int ret;
- ret = xe_pcode_read(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
- &cap, NULL);
+ ret = xe_pcode_read_probe(root, PCODE_MBOX(PCODE_LATE_BINDING, GET_CAPABILITY_STATUS, 0),
+ &cap, NULL);
if (ret)
return 0;
--
2.43.0
next prev parent reply other threads:[~2025-11-18 9:02 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 8:59 [PATCH v1 0/4] Introduce xe_pcode_read_probe() Raag Jadav
2025-11-18 8:59 ` [PATCH v1 1/4] drm/xe/pcode: " Raag Jadav
2025-11-18 13:42 ` Rodrigo Vivi
2025-11-18 15:38 ` Raag Jadav
2025-11-18 15:47 ` Rodrigo Vivi
2025-11-20 15:02 ` Lucas De Marchi
2025-11-21 8:33 ` Raag Jadav
2025-11-25 5:04 ` Raag Jadav
2025-11-25 17:41 ` Rodrigo Vivi
2025-11-27 4:51 ` Raag Jadav
2025-12-01 5:06 ` Raag Jadav
2025-11-18 19:38 ` Michal Wajdeczko
2025-11-18 8:59 ` Raag Jadav [this message]
2025-11-18 8:59 ` [PATCH v1 3/4] drm/xe/hwmon: Use xe_pcode_read_probe() to check for mailbox command support Raag Jadav
2025-11-18 8:59 ` [PATCH v1 4/4] drm/xe/late_bind: " Raag Jadav
2025-11-18 9:09 ` ✓ CI.KUnit: success for Introduce xe_pcode_read_probe() Patchwork
2025-11-18 9:47 ` ✓ Xe.CI.BAT: " Patchwork
2025-11-18 11: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=20251118090012.608250-3-raag.jadav@intel.com \
--to=raag.jadav@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=badal.nilawar@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=karthik.poosa@intel.com \
--cc=lucas.demarchi@intel.com \
--cc=matthew.brost@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=riana.tauro@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=ville.syrjala@linux.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