Skip to contentSkip to conversation

irqchip/mbigen: add COMPILE_TEST support

PATCH Superseded Rosen Penev 2 participants 4 messages May 8 – May 9 irqchip drivers

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip/mbigen: add COMPILE_TEST support

Add description to bool to do so.

Remove ARM_GIC_V3 as the driver does not need it to compile.

---
 drivers/irqchip/Kconfig | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/irqchip/Kconfig +2 -3
index 46f4603eff1b..5b379415a817 100644
@@ -208,9 +208,8 @@ config FARADAY_FTINTC010
 	select SPARSE_IRQ
 
 config HISILICON_IRQ_MBIGEN
-	bool
-	select ARM_GIC_V3
-	select ARM_GIC_V3_ITS
+	bool "HiSilicon MBIGEN interrupt controller"
+	depends on ARCH_HISI || COMPILE_TEST
 
 config IMGPDC_IRQ
 	bool
Signature · 1 line
2.54.0
#1 lore raw
kernel test robot noticed the following build errors:

Hi Rosen,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/irq/core]
[also build test ERROR on linus/master v7.1-rc2 next-20260508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/irqchip-mbigen-add-COMPILE_TEST-support/20260509-194636
base:   tip/irq/core
patch link:    https://lore.kernel.org/r/20260508021352.1635187-1-rosenp%40gmail.com
patch subject: [PATCH] irqchip/mbigen: add COMPILE_TEST support
config: nios2-allmodconfig (https://download.01.org/0day-ci/archive/20260510/[email protected]/config)
compiler: nios2-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260510/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All error/warnings (new ones prefixed by >>):

>> drivers/irqchip/irq-mbigen.c:195:36: error: unknown type name 'msi_alloc_info_t'
     195 | static void mbigen_domain_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc)
         |                                    ^~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-mbigen.c:201:21: error: variable 'mbigen_msi_template' has initializer but incomplete type
     201 | static const struct msi_domain_template mbigen_msi_template = {
         |                     ^~~~~~~~~~~~~~~~~~~
>> drivers/irqchip/irq-mbigen.c:202:10: error: 'const struct msi_domain_template' has no member named 'chip'
     202 |         .chip = {
         |          ^~~~
>> drivers/irqchip/irq-mbigen.c:202:17: error: extra brace group at end of initializer
     202 |         .chip = {
         |                 ^
   drivers/irqchip/irq-mbigen.c:202:17: note: (near initialization for 'mbigen_msi_template')
>> drivers/irqchip/irq-mbigen.c:202:17: warning: excess elements in struct initializer
   drivers/irqchip/irq-mbigen.c:202:17: note: (near initialization for 'mbigen_msi_template')
>> drivers/irqchip/irq-mbigen.c:211:10: error: 'const struct msi_domain_template' has no member named 'ops'
     211 |         .ops = {
         |          ^~~
   drivers/irqchip/irq-mbigen.c:211:16: error: extra brace group at end of initializer
     211 |         .ops = {
         |                ^
   drivers/irqchip/irq-mbigen.c:211:16: note: (near initialization for 'mbigen_msi_template')
>> drivers/irqchip/irq-mbigen.c:212:43: error: 'mbigen_domain_set_desc' undeclared here (not in a function)
     212 |                 .set_desc               = mbigen_domain_set_desc,
         |                                           ^~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-mbigen.c:211:16: warning: excess elements in struct initializer
     211 |         .ops = {
         |                ^
   drivers/irqchip/irq-mbigen.c:211:16: note: (near initialization for 'mbigen_msi_template')
>> drivers/irqchip/irq-mbigen.c:216:10: error: 'const struct msi_domain_template' has no member named 'info'
     216 |         .info = {
         |          ^~~~
   drivers/irqchip/irq-mbigen.c:216:17: error: extra brace group at end of initializer
     216 |         .info = {
         |                 ^
   drivers/irqchip/irq-mbigen.c:216:17: note: (near initialization for 'mbigen_msi_template')
>> drivers/irqchip/irq-mbigen.c:218:43: error: 'MSI_FLAG_USE_DEV_FWNODE' undeclared here (not in a function)
     218 |                 .flags                  = MSI_FLAG_USE_DEV_FWNODE,
         |                                           ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-mbigen.c:216:17: warning: excess elements in struct initializer
     216 |         .info = {
         |                 ^
   drivers/irqchip/irq-mbigen.c:216:17: note: (near initialization for 'mbigen_msi_template')
   In file included from include/asm-generic/bug.h:7,
                    from ./arch/nios2/include/generated/asm/bug.h:1,
                    from include/linux/bug.h:5,
                    from include/linux/slab.h:15,
                    from include/linux/resource_ext.h:11,
                    from include/linux/acpi.h:14,
                    from drivers/irqchip/irq-mbigen.c:8:
   drivers/irqchip/irq-mbigen.c: In function 'mbigen_create_device_domain':
>> drivers/irqchip/irq-mbigen.c:225:35: error: 'struct dev_msi_info' has no member named 'domain'
     225 |         if (WARN_ON_ONCE(!dev->msi.domain))
         |                                   ^
   include/linux/once_lite.h:28:41: note: in definition of macro 'DO_ONCE_LITE_IF'
      28 |                 bool __ret_do_once = !!(condition);                     \
         |                                         ^~~~~~~~~
   drivers/irqchip/irq-mbigen.c:225:13: note: in expansion of macro 'WARN_ON_ONCE'
     225 |         if (WARN_ON_ONCE(!dev->msi.domain))
         |             ^~~~~~~~~~~~
>> drivers/irqchip/irq-mbigen.c:228:16: error: implicit declaration of function 'msi_create_device_irq_domain'; did you mean 'mbigen_create_device_domain'? [-Werror=implicit-function-declaration]
     228 |         return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                mbigen_create_device_domain
   drivers/irqchip/irq-mbigen.c: At top level:
>> drivers/irqchip/irq-mbigen.c:201:41: error: storage size of 'mbigen_msi_template' isn't known
     201 | static const struct msi_domain_template mbigen_msi_template = {
         |                                         ^~~~~~~~~~~~~~~~~~~

cc1: some warnings being treated as errors

vim +/msi_alloc_info_t +195 drivers/irqchip/irq-mbigen.c

9650c60ebfec05f Ma Jun 2015-12-17 194

fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @195  static void mbigen_domain_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc)
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  196  {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  197  	arg->desc = desc;
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  198  	arg->hwirq = (u32)desc->data.icookie.value;
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  199  }
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  200  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @201  static const struct msi_domain_template mbigen_msi_template = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @202  	.chip = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  203  		.name			= "mbigen-v2",
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  204  		.irq_mask		= irq_chip_mask_parent,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  205  		.irq_unmask		= irq_chip_unmask_parent,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  206  		.irq_eoi		= mbigen_eoi_irq,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  207  		.irq_set_type		= mbigen_set_type,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  208  		.irq_write_msi_msg	= mbigen_write_msi_msg,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  209  	},
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  210  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @211  	.ops = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @212  		.set_desc		= mbigen_domain_set_desc,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  213  		.msi_translate		= mbigen_domain_translate,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  214  	},
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  215  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @216  	.info = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  217  		.bus_token		= DOMAIN_BUS_WIRED_TO_MSI,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @218  		.flags			= MSI_FLAG_USE_DEV_FWNODE,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  219  	},
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  220  };
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  221  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  222  static bool mbigen_create_device_domain(struct device *dev, unsigned int size,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  223  					struct mbigen_device *mgn_chip)
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  224  {
752e021f5b9be0a Thomas Gleixner 2024-06-23 @225  	if (WARN_ON_ONCE(!dev->msi.domain))
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  226  		return false;
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  227  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @228  	return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  229  					    &mbigen_msi_template, size,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  230  					    NULL, mgn_chip->base);
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  231  }

fbfe7e13641efe8 Thomas Gleixner 2024-06-23 232

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#2 lore raw
In reply to Rosen Penev
kernel test robot noticed the following build errors:

Hi Rosen,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/irq/core]
[also build test ERROR on linus/master v7.1-rc2 next-20260508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/irqchip-mbigen-add-COMPILE_TEST-support/20260509-194636
base:   tip/irq/core
patch link:    https://lore.kernel.org/r/20260508021352.1635187-1-rosenp%40gmail.com
patch subject: [PATCH] irqchip/mbigen: add COMPILE_TEST support
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260510/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260510/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

drivers/irqchip/irq-mbigen.c:195:36: error: unknown type name 'msi_alloc_info_t'
195 | static void mbigen_domain_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc)
| ^

>> drivers/irqchip/irq-mbigen.c:218:14: error: use of undeclared identifier 'MSI_FLAG_USE_DEV_FWNODE'
     218 |                 .flags                  = MSI_FLAG_USE_DEV_FWNODE,
         |                                           ^
>> drivers/irqchip/irq-mbigen.c:201:41: error: variable has incomplete type 'const struct msi_domain_template'
     201 | static const struct msi_domain_template mbigen_msi_template = {
         |                                         ^
   drivers/irqchip/irq-mbigen.c:201:21: note: forward declaration of 'struct msi_domain_template'
     201 | static const struct msi_domain_template mbigen_msi_template = {
         |                     ^
>> drivers/irqchip/irq-mbigen.c:225:29: error: no member named 'domain' in 'struct dev_msi_info'
     225 |         if (WARN_ON_ONCE(!dev->msi.domain))
         |                           ~~~~~~~~ ^
   include/asm-generic/bug.h:180:18: note: expanded from macro 'WARN_ON_ONCE'
     180 |         DO_ONCE_LITE_IF(condition, WARN_ON, 1)
         |                         ^~~~~~~~~
   include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
      28 |                 bool __ret_do_once = !!(condition);                     \
         |                                         ^~~~~~~~~
>> drivers/irqchip/irq-mbigen.c:228:9: error: call to undeclared function 'msi_create_device_irq_domain'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     228 |         return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
         |                ^
   drivers/irqchip/irq-mbigen.c:228:9: note: did you mean 'mbigen_create_device_domain'?
   drivers/irqchip/irq-mbigen.c:222:13: note: 'mbigen_create_device_domain' declared here
     222 | static bool mbigen_create_device_domain(struct device *dev, unsigned int size,
         |             ^
     223 |                                         struct mbigen_device *mgn_chip)
     224 | {
     225 |         if (WARN_ON_ONCE(!dev->msi.domain))
     226 |                 return false;
     227 | 
     228 |         return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
         |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                mbigen_create_device_domain

5 errors generated.

vim +/MSI_FLAG_USE_DEV_FWNODE +218 drivers/irqchip/irq-mbigen.c

fbfe7e13641efe8 Thomas Gleixner 2024-06-23 200

fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @201  static const struct msi_domain_template mbigen_msi_template = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  202  	.chip = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  203  		.name			= "mbigen-v2",
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  204  		.irq_mask		= irq_chip_mask_parent,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  205  		.irq_unmask		= irq_chip_unmask_parent,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  206  		.irq_eoi		= mbigen_eoi_irq,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  207  		.irq_set_type		= mbigen_set_type,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  208  		.irq_write_msi_msg	= mbigen_write_msi_msg,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  209  	},
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  210  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  211  	.ops = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  212  		.set_desc		= mbigen_domain_set_desc,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  213  		.msi_translate		= mbigen_domain_translate,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  214  	},
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  215  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  216  	.info = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  217  		.bus_token		= DOMAIN_BUS_WIRED_TO_MSI,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @218  		.flags			= MSI_FLAG_USE_DEV_FWNODE,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  219  	},
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  220  };
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  221  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  222  static bool mbigen_create_device_domain(struct device *dev, unsigned int size,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  223  					struct mbigen_device *mgn_chip)
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  224  {
752e021f5b9be0a Thomas Gleixner 2024-06-23 @225  	if (WARN_ON_ONCE(!dev->msi.domain))
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  226  		return false;
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  227  
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @228  	return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  229  					    &mbigen_msi_template, size,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  230  					    NULL, mgn_chip->base);
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  231  }

fbfe7e13641efe8 Thomas Gleixner 2024-06-23 232

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#3 lore raw
Quoted 62 lines · kernel test robot

Hi Rosen,

kernel test robot noticed the following build errors:

[auto build test ERROR on tip/irq/core]
[also build test ERROR on linus/master v7.1-rc2 next-20260508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rosen-Penev/irqchip-mbigen-add-COMPILE_TEST-support/20260509-194636
base:   tip/irq/core
patch link:    https://lore.kernel.org/r/20260508021352.1635187-1-rosenp%40gmail.com
patch subject: [PATCH] irqchip/mbigen: add COMPILE_TEST support
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260510/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260510/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

drivers/irqchip/irq-mbigen.c:195:36: error: unknown type name 'msi_alloc_info_t'
195 | static void mbigen_domain_set_desc(msi_alloc_info_t *arg, struct msi_desc *desc)
| ^

Quoted 1 line
Quoted 1 line

drivers/irqchip/irq-mbigen.c:218:14: error: use of undeclared identifier 'MSI_FLAG_USE_DEV_FWNODE'

218 | .flags = MSI_FLAG_USE_DEV_FWNODE,
| ^

Quoted 1 line
Quoted 1 line

drivers/irqchip/irq-mbigen.c:201:41: error: variable has incomplete type 'const struct msi_domain_template'

     201 | static const struct msi_domain_template mbigen_msi_template = {
         |                                         ^
   drivers/irqchip/irq-mbigen.c:201:21: note: forward declaration of 'struct msi_domain_template'
     201 | static const struct msi_domain_template mbigen_msi_template = {
         |                     ^
Quoted 1 line
Quoted 1 line

drivers/irqchip/irq-mbigen.c:225:29: error: no member named 'domain' in 'struct dev_msi_info'

     225 |         if (WARN_ON_ONCE(!dev->msi.domain))
         |                           ~~~~~~~~ ^
   include/asm-generic/bug.h:180:18: note: expanded from macro 'WARN_ON_ONCE'
     180 |         DO_ONCE_LITE_IF(condition, WARN_ON, 1)
         |                         ^~~~~~~~~
   include/linux/once_lite.h:28:27: note: expanded from macro 'DO_ONCE_LITE_IF'
      28 |                 bool __ret_do_once = !!(condition);                     \
         |                                         ^~~~~~~~~
Quoted 1 line
Quoted 1 line

drivers/irqchip/irq-mbigen.c:228:9: error: call to undeclared function 'msi_create_device_irq_domain'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

228 | return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
| ^
drivers/irqchip/irq-mbigen.c:228:9: note: did you mean 'mbigen_create_device_domain'? drivers/irqchip/irq-mbigen.c:222:13: note: 'mbigen_create_device_domain' declared here

     222 | static bool mbigen_create_device_domain(struct device *dev, unsigned int size,
         |             ^
     223 |                                         struct mbigen_device *mgn_chip)
     224 | {
     225 |         if (WARN_ON_ONCE(!dev->msi.domain))
     226 |                 return false;
     227 |
     228 |         return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,
         |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                mbigen_create_device_domain
Quoted 1 line

5 errors generated.

Needs select GENERIC_MSI_IRQ looks like.

Quoted 41 lines

vim +/MSI_FLAG_USE_DEV_FWNODE +218 drivers/irqchip/irq-mbigen.c

fbfe7e13641efe8 Thomas Gleixner 2024-06-23 200
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @201 static const struct msi_domain_template mbigen_msi_template = {

fbfe7e13641efe8 Thomas Gleixner 2024-06-23  202         .chip = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  203                 .name                   = "mbigen-v2",
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  204                 .irq_mask               = irq_chip_mask_parent,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  205                 .irq_unmask             = irq_chip_unmask_parent,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  206                 .irq_eoi                = mbigen_eoi_irq,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  207                 .irq_set_type           = mbigen_set_type,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  208                 .irq_write_msi_msg      = mbigen_write_msi_msg,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  209         },
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  210
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  211         .ops = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  212                 .set_desc               = mbigen_domain_set_desc,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  213                 .msi_translate          = mbigen_domain_translate,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  214         },
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  215
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  216         .info = {
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  217                 .bus_token              = DOMAIN_BUS_WIRED_TO_MSI,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @218                 .flags                  = MSI_FLAG_USE_DEV_FWNODE,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  219         },
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  220  };
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  221
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  222  static bool mbigen_create_device_domain(struct device *dev, unsigned int size,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  223                                         struct mbigen_device *mgn_chip)
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  224  {

752e021f5b9be0a Thomas Gleixner 2024-06-23 @225 if (WARN_ON_ONCE(!dev->msi.domain))
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 226 return false;
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 227
fbfe7e13641efe8 Thomas Gleixner 2024-06-23 @228 return msi_create_device_irq_domain(dev, MSI_DEFAULT_DOMAIN,

fbfe7e13641efe8 Thomas Gleixner 2024-06-23  229                                             &mbigen_msi_template, size,
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  230                                             NULL, mgn_chip->base);
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  231  }
fbfe7e13641efe8 Thomas Gleixner 2024-06-23  232

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki