From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Raag Jadav <raag.jadav@intel.com>
Cc: intel-xe@lists.freedesktop.org, rodrigo.vivi@intel.com,
andi.shyti@linux.intel.com
Subject: Re: [PATCH v1] drm/xe/cri: Enable I2C controller
Date: Thu, 4 Dec 2025 15:25:07 +0200 [thread overview]
Message-ID: <aTGLsyt61I9RE5Mj@kuha> (raw)
In-Reply-To: <20251128084414.306265-1-raag.jadav@intel.com>
Fri, Nov 28, 2025 at 02:14:14PM +0530, Raag Jadav kirjoitti:
> Enable I2C controller for Crescent Island and while at it, rely on
> has_i2c flag instead of manual platform checks.
>
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>
FWIW:
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/gpu/drm/xe/xe_device_types.h | 2 ++
> drivers/gpu/drm/xe/xe_i2c.c | 2 +-
> drivers/gpu/drm/xe/xe_pci.c | 3 +++
> drivers/gpu/drm/xe/xe_pci_types.h | 1 +
> 4 files changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 9a9a8eb84a78..e23c50273c28 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -299,6 +299,8 @@ struct xe_device {
> u8 has_heci_cscfi:1;
> /** @info.has_heci_gscfi: device has heci gscfi */
> u8 has_heci_gscfi:1;
> + /** @info.has_i2c: Device has I2C controller */
> + u8 has_i2c:1;
> /** @info.has_late_bind: Device has firmware late binding support */
> u8 has_late_bind:1;
> /** @info.has_llc: Device has a shared CPU+GPU last level cache */
> diff --git a/drivers/gpu/drm/xe/xe_i2c.c b/drivers/gpu/drm/xe/xe_i2c.c
> index 0b5452be0c87..8eccbae05705 100644
> --- a/drivers/gpu/drm/xe/xe_i2c.c
> +++ b/drivers/gpu/drm/xe/xe_i2c.c
> @@ -319,7 +319,7 @@ int xe_i2c_probe(struct xe_device *xe)
> struct xe_i2c *i2c;
> int ret;
>
> - if (xe->info.platform != XE_BATTLEMAGE)
> + if (!xe->info.has_i2c)
> return 0;
>
> if (IS_SRIOV_VF(xe))
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index 763f588521d0..2e2e9158d621 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -366,6 +366,7 @@ static const struct xe_device_desc bmg_desc = {
> .has_mbx_power_limits = true,
> .has_gsc_nvm = 1,
> .has_heci_cscfi = 1,
> + .has_i2c = true,
> .has_late_bind = true,
> .has_sriov = true,
> .has_mem_copy_instr = true,
> @@ -411,6 +412,7 @@ static const struct xe_device_desc cri_desc = {
> .dma_mask_size = 52,
> .has_display = false,
> .has_flat_ccs = false,
> + .has_i2c = true,
> .has_mbx_power_limits = true,
> .has_mert = true,
> .has_sriov = true,
> @@ -676,6 +678,7 @@ static int xe_info_init_early(struct xe_device *xe,
> xe->info.has_gsc_nvm = desc->has_gsc_nvm;
> xe->info.has_heci_gscfi = desc->has_heci_gscfi;
> xe->info.has_heci_cscfi = desc->has_heci_cscfi;
> + xe->info.has_i2c = desc->has_i2c;
> xe->info.has_late_bind = desc->has_late_bind;
> xe->info.has_llc = desc->has_llc;
> xe->info.has_mert = desc->has_mert;
> diff --git a/drivers/gpu/drm/xe/xe_pci_types.h b/drivers/gpu/drm/xe/xe_pci_types.h
> index f19f35359696..6de23ddf6f68 100644
> --- a/drivers/gpu/drm/xe/xe_pci_types.h
> +++ b/drivers/gpu/drm/xe/xe_pci_types.h
> @@ -44,6 +44,7 @@ struct xe_device_desc {
> u8 has_gsc_nvm:1;
> u8 has_heci_gscfi:1;
> u8 has_heci_cscfi:1;
> + u8 has_i2c:1;
> u8 has_late_bind:1;
> u8 has_llc:1;
> u8 has_mbx_power_limits:1;
> --
> 2.43.0
--
heikki
next prev parent reply other threads:[~2025-12-04 13:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 8:44 [PATCH v1] drm/xe/cri: Enable I2C controller Raag Jadav
2025-11-28 8:52 ` ✓ CI.KUnit: success for " Patchwork
2025-12-01 20:27 ` [PATCH v1] " Rodrigo Vivi
2025-12-04 11:42 ` Raag Jadav
2025-12-04 20:22 ` Rodrigo Vivi
2025-12-05 5:41 ` Raag Jadav
2025-12-12 3:42 ` Raag Jadav
2025-12-12 16:52 ` Matt Roper
2025-12-01 20:27 ` ✓ CI.KUnit: success for drm/xe/cri: Enable I2C controller (rev2) Patchwork
2025-12-01 21:33 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-12-02 0:05 ` ✗ Xe.CI.Full: " Patchwork
2025-12-04 13:25 ` Heikki Krogerus [this message]
2025-12-05 4:28 ` ✓ CI.KUnit: success for drm/xe/cri: Enable I2C controller (rev3) Patchwork
2025-12-05 5:12 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-05 5:47 ` ✓ Xe.CI.Full: " 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=aTGLsyt61I9RE5Mj@kuha \
--to=heikki.krogerus@linux.intel.com \
--cc=andi.shyti@linux.intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=raag.jadav@intel.com \
--cc=rodrigo.vivi@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