drm/xe: i2c support
Subsystems (5)
v2 cover drm/xe: i2c support
Hi,
Changed since v1:
- Now rebased on top of drm-tip.
- No longer ignoring errors from xe_i2c_probe().
- Cleanups pointed out by Lucas.
I've also included followup patches from Raag and Riana to this series.
Original cover letter:
Some of the future GPUs will provide access to the on-board Synopsys DesignWare I2C host adapter. The i2c is used to connect various microcontrollers. The initially supported microcontroller unit is called Add-In Management Controller (AMC).
Thanks,
Heikki Krogerus (2):
i2c: designware: Add quirk for Intel Xe
drm/xe: Support for I2C attached MCUs
Raag Jadav (1):
drm/xe/pm: Wire up suspend/resume for I2C controller
Riana Tauro (1):
drm/xe/xe_i2c: Add support for i2c in survivability mode
drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_i2c_regs.h | 20 ++ drivers/gpu/drm/xe/regs/xe_irq_regs.h | 1 + drivers/gpu/drm/xe/regs/xe_pmt.h | 2 +- drivers/gpu/drm/xe/regs/xe_regs.h | 2 + drivers/gpu/drm/xe/xe_device.c | 5 + drivers/gpu/drm/xe/xe_device_types.h | 4 + drivers/gpu/drm/xe/xe_i2c.c | 299 ++++++++++++++++++++ drivers/gpu/drm/xe/xe_i2c.h | 62 ++++ drivers/gpu/drm/xe/xe_irq.c | 2 + drivers/gpu/drm/xe/xe_pm.c | 9 + drivers/gpu/drm/xe/xe_survivability_mode.c | 23 +- drivers/i2c/busses/i2c-designware-platdrv.c | 18 +- 13 files changed, 433 insertions(+), 15 deletions(-) create mode 100644 drivers/gpu/drm/xe/regs/xe_i2c_regs.h create mode 100644 drivers/gpu/drm/xe/xe_i2c.c create mode 100644 drivers/gpu/drm/xe/xe_i2c.h
Signature · 1 line
2.47.2
PATCH v2 1/4 i2c: designware: Add quirk for Intel Xe
The regmap is coming from the parent also in case of Xe GPUs. Reusing the Wangxun quirk for that.
--- drivers/i2c/busses/i2c-designware-platdrv.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
drivers/i2c/busses/i2c-designware-platdrv.c +12 -6
@@ -101,7 +101,7 @@ static int bt1_i2c_request_regs(struct dw_i2c_dev *dev) }#endif -static int txgbe_i2c_request_regs (struct dw_i2c_dev *dev) +static int dw_i2c_get_parent_regmap (struct dw_i2c_dev *dev) { dev->map =dev_get_regmap (dev->dev->parent,NULL );if (!dev->map)
@@ -123,12 +123,15 @@ static int dw_i2c_plat_request_regs(struct dw_i2c_dev *dev)struct platform_device *pdev =to_platform_device (dev->dev);int ret; +if (device_is_compatible (dev->dev,"intel,xe-i2c" )) +return dw_i2c_get_parent_regmap (dev); +switch (dev->flags &MODEL_MASK ) {case MODEL_BAIKAL_BT1 : ret =bt1_i2c_request_regs (dev);break ;case MODEL_WANGXUN_SP : - ret =txgbe_i2c_request_regs (dev); + ret =dw_i2c_get_parent_regmap (dev);break ;default : dev->base =devm_platform_ioremap_resource (pdev,0 );
@@ -205,25 +208,28 @@ static void i2c_dw_remove_lock_support(struct dw_i2c_dev *dev)static int dw_i2c_plat_probe (struct platform_device *pdev) { +u32 flags = (uintptr_t )device_get_match_data (&pdev->dev);struct device *device = &pdev->dev;struct i2c_adapter *adap;struct dw_i2c_dev *dev;int irq, ret; - irq =platform_get_irq (pdev,0 ); -if (irq <0 ) + irq =platform_get_irq_optional (pdev,0 ); +if (irq == -ENXIO ) + flags |=ACCESS_POLLING ; +else if (irq <0 )return irq; dev =devm_kzalloc (device,sizeof (*dev),GFP_KERNEL );if (!dev)return -ENOMEM ; - dev->flags = (uintptr_t )device_get_match_data (device);if (device_property_present (device,"wx,i2c-snps-model" )) - dev->flags =MODEL_WANGXUN_SP |ACCESS_POLLING ; + flags =MODEL_WANGXUN_SP |ACCESS_POLLING ; dev->dev = device; dev->irq = irq; + dev->flags = flags;platform_set_drvdata (pdev, dev); ret =dw_i2c_plat_request_regs (dev);
Signature · 1 line
2.47.2
Re: [PATCH v2 1/4] i2c: designware: Add quirk for Intel Xe
Quoted 9 lines · Heikki Krogerus
The regmap is coming from the parent also in case of Xe GPUs. Reusing the Wangxun quirk for that.
Originally-by Michael J. Ruhl <[email protected]>Signed-off-by Heikki Krogerus <[email protected]>--- drivers/i2c/busses/i2c-designware-platdrv.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
PATCH v2 2/4 drm/xe: Support for I2C attached MCUs
In reply to Heikki KrogerusAdding adaption/glue layer where the I2C host adapter (Synopsys DesignWare I2C adapter) and the I2C clients (the microcontroller units) are enumerated.
The microcontroller units (MCU) that are attached to the GPU depend on the OEM. The initially supported MCU will be the Add-In Management Controller (AMC).
--- drivers/gpu/drm/xe/Makefile | 1 + drivers/gpu/drm/xe/regs/xe_i2c_regs.h | 15 ++ drivers/gpu/drm/xe/regs/xe_irq_regs.h | 1 + drivers/gpu/drm/xe/regs/xe_pmt.h | 2 +- drivers/gpu/drm/xe/regs/xe_regs.h | 2 + drivers/gpu/drm/xe/xe_device.c | 5 + drivers/gpu/drm/xe/xe_device_types.h | 4 + drivers/gpu/drm/xe/xe_i2c.c | 270 ++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_i2c.h | 58 ++++++ drivers/gpu/drm/xe/xe_irq.c | 2 + 10 files changed, 359 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/xe/regs/xe_i2c_regs.h create mode 100644 drivers/gpu/drm/xe/xe_i2c.c create mode 100644 drivers/gpu/drm/xe/xe_i2c.h
drivers/gpu/drm/xe/Makefile +1 -0
@@ -124,6 +124,7 @@ xe-y += xe_bb.o \ xe_wait_user_fence.o \ xe_wopcm.o +xe-$(CONFIG_I2C) += xe_i2c.o xe-$(CONFIG_HMM_MIRROR) += xe_hmm.o xe-$(CONFIG_DRM_XE_GPUSVM) += xe_svm.o
drivers/gpu/drm/xe/regs/xe_i2c_regs.h new file +15 -0
@@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _XE_I2C_REGS_H_ +#define _XE_I2C_REGS_H_ + +#include "xe_reg_defs.h" +#include "xe_regs.h" + +#define I2C_CONFIG_SPACE_OFFSET (SOC_BASE + 0xf6000) +#define I2C_MEM_SPACE_OFFSET (SOC_BASE + 0xf7400) +#define I2C_BRIDGE_OFFSET (SOC_BASE + 0xd9000) + +#define CLIENT_DISC_COOKIE XE_REG(SOC_BASE + 0x0164) +#define CLIENT_DISC_ADDRESS XE_REG(SOC_BASE + 0x0168) + +#endif /* _XE_I2C_REGS_H_ */
drivers/gpu/drm/xe/regs/xe_irq_regs.h +1 -0
@@ -19,6 +19,7 @@#define MASTER_IRQ REG_BIT(31)#define GU_MISC_IRQ REG_BIT(29)#define DISPLAY_IRQ REG_BIT(16) +#define I2C_IRQ REG_BIT(12)#define GT_DW_IRQ (x) REG_BIT(x)/*
drivers/gpu/drm/xe/regs/xe_pmt.h +1 -1
@@ -5,7 +5,7 @@#ifndef _XE_PMT_H_#define _XE_PMT_H_ -#define SOC_BASE 0x280000 +#include "xe_regs.h" #define BMG_PMT_BASE_OFFSET 0xDB000#define BMG_DISCOVERY_OFFSET (SOC_BASE + BMG_PMT_BASE_OFFSET)
drivers/gpu/drm/xe/regs/xe_regs.h +2 -0
@@ -7,6 +7,8 @@#include "regs/xe_reg_defs.h" +#define SOC_BASE 0x280000 +#define GU_CNTL_PROTECTED XE_REG(0x10100C)#define DRIVERINT_FLR_DIS REG_BIT(31)
drivers/gpu/drm/xe/xe_device.c +5 -0
@@ -42,6 +42,7 @@#include "xe_guc.h" #include "xe_hw_engine_group.h" #include "xe_hwmon.h" +#include "xe_i2c.h" #include "xe_irq.h" #include "xe_memirq.h" #include "xe_mmio.h"
@@ -921,6 +922,10 @@ int xe_device_probe(struct xe_device *xe)if (err) goto err_unregister_display; + err =xe_i2c_probe (xe); +if (err) + goto err_unregister_display; +for_each_gt (gt, xe, id)xe_gt_sanitize_freq (gt);
drivers/gpu/drm/xe/xe_device_types.h +4 -0
@@ -33,6 +33,7 @@struct dram_info ;struct intel_display ;struct xe_ggtt ; +struct xe_i2c ;struct xe_pat_ops ;struct xe_pxp ;
@@ -573,6 +574,9 @@ struct xe_device {/** @pmu: performance monitoring unit */ struct xe_pmu pmu; +/** @i2c: I2C host controller */ +struct xe_i2c *i2c; +/** @atomic_svm_timeslice_ms: Atomic SVM fault timeslice MS */ u32 atomic_svm_timeslice_ms;
drivers/gpu/drm/xe/xe_i2c.c new file +270 -0
270 lines not on this page · raw message
drivers/gpu/drm/xe/xe_i2c.h new file +58 -0
58 lines not on this page · raw message
drivers/gpu/drm/xe/xe_irq.c +2 -0
@@ -18,6 +18,7 @@#include "xe_gt.h" #include "xe_guc.h" #include "xe_hw_engine.h" +#include "xe_i2c.h" #include "xe_memirq.h" #include "xe_mmio.h" #include "xe_pxp.h"
@@ -476,6 +477,7 @@ static irqreturn_t dg1_irq_handler(int irq, void *arg)if (xe->info.has_heci_cscfi)xe_heci_csc_irq_handler (xe, master_ctl);xe_display_irq_handler (xe, master_ctl); +xe_i2c_irq_handler (xe, master_ctl); gu_misc_iir =gu_misc_irq_ack (xe, master_ctl); } }
Signature · 1 line
2.47.2
PATCH v2 3/4 drm/xe/pm: Wire up suspend/resume for I2C controller
In reply to Heikki KrogerusFrom: Raag Jadav <[email protected]>
Wire up suspend/resume handles for I2C controller to match its power state with SGUnit.
--- drivers/gpu/drm/xe/regs/xe_i2c_regs.h | 5 +++++ drivers/gpu/drm/xe/xe_i2c.c | 29 +++++++++++++++++++++++++++ drivers/gpu/drm/xe/xe_i2c.h | 4 ++++ drivers/gpu/drm/xe/xe_pm.c | 9 +++++++++ 4 files changed, 47 insertions(+)
drivers/gpu/drm/xe/regs/xe_i2c_regs.h +5 -0
@@ -2,6 +2,8 @@#ifndef _XE_I2C_REGS_H_#define _XE_I2C_REGS_H_ +#include <linux/pci_regs.h> +#include "xe_reg_defs.h" #include "xe_regs.h"
@@ -12,4 +14,7 @@#define CLIENT_DISC_COOKIE XE_REG(SOC_BASE + 0x0164)#define CLIENT_DISC_ADDRESS XE_REG(SOC_BASE + 0x0168) +#define I2C_CONFIG_CMD XE_REG(I2C_CONFIG_SPACE_OFFSET + PCI_COMMAND) +#define I2C_CONFIG_PMCSR XE_REG(I2C_CONFIG_SPACE_OFFSET + 0x84) +#endif /* _XE_I2C_REGS_H_ */
drivers/gpu/drm/xe/xe_i2c.c +29 -0
@@ -208,6 +208,31 @@ static const struct regmap_config i2c_regmap_config = { .fast_io = true, }; +void xe_i2c_pm_suspend (struct xe_device *xe) +{ +struct xe_mmio *mmio =xe_root_tile_mmio (xe); + +if (!xe->i2c || xe->i2c->ep.cookie !=XE_I2C_EP_COOKIE_DEVICE ) +return ; + +xe_mmio_rmw32 (mmio,I2C_CONFIG_PMCSR ,PCI_PM_CTRL_STATE_MASK , PCI_D3hot); +drm_dbg (&xe->drm,"pmcsr: 0x%08x\n" ,xe_mmio_read32 (mmio,I2C_CONFIG_PMCSR )); +} + +void xe_i2c_pm_resume (struct xe_device *xe,bool d3cold) +{ +struct xe_mmio *mmio =xe_root_tile_mmio (xe); + +if (!xe->i2c || xe->i2c->ep.cookie !=XE_I2C_EP_COOKIE_DEVICE ) +return ; + +if (d3cold) +xe_mmio_rmw32 (mmio,I2C_CONFIG_CMD ,0 ,PCI_COMMAND_MEMORY ); + +xe_mmio_rmw32 (mmio,I2C_CONFIG_PMCSR ,PCI_PM_CTRL_STATE_MASK ,PCI_D0 ); +drm_dbg (&xe->drm,"pmcsr: 0x%08x\n" ,xe_mmio_read32 (mmio,I2C_CONFIG_PMCSR )); +} +static void xe_i2c_remove (void *data) {struct xe_i2c *i2c = data;
@@ -240,6 +265,10 @@ int xe_i2c_probe(struct xe_device *xe) i2c->mmio =xe_root_tile_mmio (xe); i2c->drm_dev = xe->drm.dev; i2c->ep = ep; + xe->i2c = i2c; + +/* PCI PM isn't aware of this device, bring it up and match it with SGUnit state. */ +xe_i2c_pm_resume (xe, true); regmap =devm_regmap_init (i2c->drm_dev,NULL , i2c, &i2c_regmap_config);if (IS_ERR (regmap))
drivers/gpu/drm/xe/xe_i2c.h +4 -0
@@ -50,9 +50,13 @@ struct xe_i2c {#if IS_ENABLED (CONFIG_I2C )int xe_i2c_probe (struct xe_device *xe);void xe_i2c_irq_handler (struct xe_device *xe,u32 master_ctl); +void xe_i2c_pm_suspend (struct xe_device *xe); +void xe_i2c_pm_resume (struct xe_device *xe,bool d3cold);#else static inline int xe_i2c_probe (struct xe_device *xe) {return 0 ; }static inline void xe_i2c_irq_handler (struct xe_device *xe,u32 master_ctl) { } +static inline void xe_i2c_pm_suspend (struct xe_device *xe) { } +static inline void xe_i2c_pm_resume (struct xe_device *xe,bool d3cold) { }#endif #endif
drivers/gpu/drm/xe/xe_pm.c +9 -0
@@ -19,6 +19,7 @@#include "xe_ggtt.h" #include "xe_gt.h" #include "xe_guc.h" +#include "xe_i2c.h" #include "xe_irq.h" #include "xe_pcode.h" #include "xe_pxp.h"
@@ -146,6 +147,8 @@ int xe_pm_suspend(struct xe_device *xe)xe_display_pm_suspend_late (xe); +xe_i2c_pm_suspend (xe); +drm_dbg (&xe->drm,"Device suspended\n" );return 0 ;
@@ -191,6 +194,8 @@ int xe_pm_resume(struct xe_device *xe)if (err) goto err; +xe_i2c_pm_resume (xe, xe->d3cold.allowed); +xe_irq_resume (xe);for_each_gt (gt, xe, id)
@@ -484,6 +489,8 @@ int xe_pm_runtime_suspend(struct xe_device *xe)xe_display_pm_runtime_suspend_late (xe); +xe_i2c_pm_suspend (xe); +xe_rpm_lockmap_release (xe);xe_pm_write_callback_task (xe,NULL );return 0 ;
@@ -531,6 +538,8 @@ int xe_pm_runtime_resume(struct xe_device *xe) goto out; } +xe_i2c_pm_resume (xe, xe->d3cold.allowed); +xe_irq_resume (xe);for_each_gt (gt, xe, id)
Signature · 1 line
2.47.2
PATCH v2 4/4 drm/xe/xe_i2c: Add support for i2c in survivability mode
In reply to Heikki KrogerusFrom: Riana Tauro <[email protected]>
Initialize i2c in survivability mode to allow firmware update of Add-In Management Controller (AMC) in survivability mode
--- drivers/gpu/drm/xe/xe_survivability_mode.c | 23 ++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-)
drivers/gpu/drm/xe/xe_survivability_mode.c +15 -8
@@ -14,6 +14,7 @@#include "xe_device.h" #include "xe_gt.h" #include "xe_heci_gsc.h" +#include "xe_i2c.h" #include "xe_mmio.h" #include "xe_pcode_api.h" #include "xe_vsec.h"
@@ -173,20 +174,26 @@ static int enable_survivability_mode(struct pci_dev *pdev) survivability->mode = true; ret =xe_heci_gsc_init (xe); -if (ret) { -/* -* But if it fails, device can't enter survivability -* so move it back for correct error handling -*/ - survivability->mode = false; -return ret; - } +if (ret) + goto err;xe_vsec_init (xe); + ret =xe_i2c_probe (xe); +if (ret) + goto err; +dev_err (dev,"In Survivability Mode\n" );return 0 ; + +err: +/* +* But if it fails, device can't enter survivability +* so move it back for correct error handling +*/ + survivability->mode = false; +return ret; }/**
Signature · 1 line
2.47.2
Patchwork
CI✓ CI.Patch_applied: success for drm/xe: i2c support (rev2)
In reply to Heikki Krogerus== Series Details ==
== Series Details ==
Series: drm/xe: i2c support (rev2)
URL : https://patchwork.freedesktop.org/series/149699/
State : success
== Summary ==
=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 52ecbb6a6878 drm-tip: 2025y-06m-09d-17h-17m-28s UTC integration manifest === git am output follows ===
Applying: i2c: designware: Add quirk for Intel Xe
Applying: drm/xe: Support for I2C attached MCUs
Applying: drm/xe/pm: Wire up suspend/resume for I2C controller
Applying: drm/xe/xe_i2c: Add support for i2c in survivability mode
✗ CI.checkpatch: warning for drm/xe: i2c support (rev2)
In reply to Heikki Krogerus== Series Details ==
== Series Details ==
Series: drm/xe: i2c support (rev2)
URL : https://patchwork.freedesktop.org/series/149699/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master 202708c00696422fd217223bb679a353a5936e23
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 98a024d58c0836d03aff9e5ae93e1fdfadcce2da
Author: Riana Tauro <[email protected]> Date: Tue Jun 10 13:03:10 2025 +0300
drm/xe/xe_i2c: Add support for i2c in survivability mode
Initialize i2c in survivability mode to allow firmware update of Add-In Management Controller (AMC) in survivability mode
+ /mt/dim checkpatch 52ecbb6a68785860c776b29f58792d9807243979 drm-intel 2dd1145b5a4d i2c: designware: Add quirk for Intel Xe
-:9: WARNING:BAD_SIGN_OFF: Non-standard signature: Originally-by:
#9:
total: 0 errors, 1 warnings, 0 checks, 56 lines checked 83e4529c6351 drm/xe: Support for I2C attached MCUs -:14: WARNING:BAD_SIGN_OFF: Non-standard signature: Originally-by:
#14:
-:30: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #30:
new file mode 100644
total: 0 errors, 2 warnings, 0 checks, 420 lines checked 4cf3cdd83410 drm/xe/pm: Wire up suspend/resume for I2C controller 98a024d58c08 drm/xe/xe_i2c: Add support for i2c in survivability mode
Patchwork
CI✗ CI.KUnit: failure for drm/xe: i2c support (rev2)
In reply to Heikki Krogerus== Series Details ==
== Series Details ==
Series: drm/xe: i2c support (rev2)
URL : https://patchwork.freedesktop.org/series/149699/
State : failure
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig ERROR:root:../drivers/gpu/drm/xe/xe_i2c.c:203:21: error: variable ‘i2c_regmap_config’ has initializer but incomplete type
203 | static const struct regmap_config i2c_regmap_config = {
| ^~~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_i2c.c:204:10: error: ‘const struct regmap_config’ has no member named ‘reg_bits’
204 | .reg_bits = 32,
| ^~~~~~~~../drivers/gpu/drm/xe/xe_i2c.c:204:21: warning: excess elements in struct initializer
204 | .reg_bits = 32,
| ^~../drivers/gpu/drm/xe/xe_i2c.c:204:21: note: (near initialization for ‘i2c_regmap_config’) ../drivers/gpu/drm/xe/xe_i2c.c:205:10: error: ‘const struct regmap_config’ has no member named ‘val_bits’
205 | .val_bits = 32,
| ^~~~~~~~
../drivers/gpu/drm/xe/xe_i2c.c:205:21: warning: excess elements in struct initializer
205 | .val_bits = 32,
| ^~../drivers/gpu/drm/xe/xe_i2c.c:205:21: note: (near initialization for ‘i2c_regmap_config’) ../drivers/gpu/drm/xe/xe_i2c.c:206:10: error: ‘const struct regmap_config’ has no member named ‘reg_read’
206 | .reg_read = xe_i2c_read,
| ^~~~~~~~
../drivers/gpu/drm/xe/xe_i2c.c:206:21: warning: excess elements in struct initializer
206 | .reg_read = xe_i2c_read,
| ^~~~~~~~~~~
../drivers/gpu/drm/xe/xe_i2c.c:206:21: note: (near initialization for ‘i2c_regmap_config’)
../drivers/gpu/drm/xe/xe_i2c.c:207:10: error: ‘const struct regmap_config’ has no member named ‘reg_write’
207 | .reg_write = xe_i2c_write,
| ^~~~~~~~~
../drivers/gpu/drm/xe/xe_i2c.c:207:22: warning: excess elements in struct initializer
207 | .reg_write = xe_i2c_write,
| ^~~~~~~~~~~~
../drivers/gpu/drm/xe/xe_i2c.c:207:22: note: (near initialization for ‘i2c_regmap_config’)
../drivers/gpu/drm/xe/xe_i2c.c:208:10: error: ‘const struct regmap_config’ has no member named ‘fast_io’
208 | .fast_io = true,
| ^~~~~~~../drivers/gpu/drm/xe/xe_i2c.c:208:20: warning: excess elements in struct initializer
208 | .fast_io = true,
| ^~~~../drivers/gpu/drm/xe/xe_i2c.c:208:20: note: (near initialization for ‘i2c_regmap_config’) ../drivers/gpu/drm/xe/xe_i2c.c: In function ‘xe_i2c_probe’:../drivers/gpu/drm/xe/xe_i2c.c:273:18: error: implicit declaration of function ‘devm_regmap_init’ [-Werror=implicit-function-declaration]
273 | regmap = devm_regmap_init(i2c->drm_dev, NULL, i2c, &i2c_regmap_config);
| ^~~~~~~~~~~~~~~~../drivers/gpu/drm/xe/xe_i2c.c:273:16: warning: assignment to ‘struct regmap *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
273 | regmap = devm_regmap_init(i2c->drm_dev, NULL, i2c, &i2c_regmap_config);
| ^../drivers/gpu/drm/xe/xe_i2c.c: At top level:../drivers/gpu/drm/xe/xe_i2c.c:203:35: error: storage size of ‘i2c_regmap_config’ isn’t known
203 | static const struct regmap_config i2c_regmap_config = {
| ^~~~~~~~~~~~~~~~~cc1: some warnings being treated as errors
make[7]: *** [../scripts/Makefile.build:287: drivers/gpu/drm/xe/xe_i2c.o] Error 1 make[7]: *** Waiting for unfinished jobs....
make[6]: *** [../scripts/Makefile.build:554: drivers/gpu/drm/xe] Error 2 make[5]: *** [../scripts/Makefile.build:554: drivers/gpu/drm] Error 2 make[4]: *** [../scripts/Makefile.build:554: drivers/gpu] Error 2 make[3]: *** [../scripts/Makefile.build:554: drivers] Error 2 make[2]: *** [/kernel/Makefile:2006: .] Error 2
make[1]: *** [/kernel/Makefile:248: __sub-make] Error 2
make: *** [Makefile:248: __sub-make] Error 2
[11:04:39] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig [11:04:43] Building KUnit Kernel ... Populating config with: $ make ARCH=um O=.kunit olddefconfig Building with: $ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48 + cleanup ++ stat -c %u:%g /kernel + chown -R 1003:1003 /kernel