From: kernel test robot <lkp@intel.com>
To: Shanker Donthineni <sdonthineni@nvidia.com>,
Marc Zyngier <maz@kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>, Jonathan Corbet <corbet@lwn.net>,
Sudeep Holla <sudeep.holla@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Shanker Donthineni <sdonthineni@nvidia.com>
Subject: Re: [PATCH] irqchip/gic-v3: Allow unused SGIs for drivers/modules
Date: Thu, 15 Aug 2024 12:29:40 +0800 [thread overview]
Message-ID: <202408151208.vuvL1AtV-lkp@intel.com> (raw)
In-Reply-To: <20240813033925.925947-1-sdonthineni@nvidia.com>
Hi Shanker,
kernel test robot noticed the following build errors:
[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on tip/irq/core soc/for-next linus/master v6.11-rc3 next-20240814]
[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/Shanker-Donthineni/irqchip-gic-v3-Allow-unused-SGIs-for-drivers-modules/20240814-221122
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link: https://lore.kernel.org/r/20240813033925.925947-1-sdonthineni%40nvidia.com
patch subject: [PATCH] irqchip/gic-v3: Allow unused SGIs for drivers/modules
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240815/202408151208.vuvL1AtV-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240815/202408151208.vuvL1AtV-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408151208.vuvL1AtV-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/irqchip/irq-gic-v3.c:1658:26: error: use of undeclared identifier 'MAX_IPI'
if (fwspec->param[0] < MAX_IPI) {
^
1 error generated.
vim +/MAX_IPI +1658 drivers/irqchip/irq-gic-v3.c
1600
1601 static int gic_irq_domain_translate(struct irq_domain *d,
1602 struct irq_fwspec *fwspec,
1603 unsigned long *hwirq,
1604 unsigned int *type)
1605 {
1606 if (fwspec->param_count == 1 && fwspec->param[0] < 16) {
1607 *hwirq = fwspec->param[0];
1608 *type = IRQ_TYPE_EDGE_RISING;
1609 return 0;
1610 }
1611
1612 if (is_of_node(fwspec->fwnode)) {
1613 if (fwspec->param_count < 3)
1614 return -EINVAL;
1615
1616 switch (fwspec->param[0]) {
1617 case 0: /* SPI */
1618 *hwirq = fwspec->param[1] + 32;
1619 break;
1620 case 1: /* PPI */
1621 *hwirq = fwspec->param[1] + 16;
1622 break;
1623 case 2: /* ESPI */
1624 *hwirq = fwspec->param[1] + ESPI_BASE_INTID;
1625 break;
1626 case 3: /* EPPI */
1627 *hwirq = fwspec->param[1] + EPPI_BASE_INTID;
1628 break;
1629 case GIC_IRQ_TYPE_LPI: /* LPI */
1630 *hwirq = fwspec->param[1];
1631 break;
1632 case GIC_IRQ_TYPE_PARTITION:
1633 *hwirq = fwspec->param[1];
1634 if (fwspec->param[1] >= 16)
1635 *hwirq += EPPI_BASE_INTID - 16;
1636 else
1637 *hwirq += 16;
1638 break;
1639 default:
1640 return -EINVAL;
1641 }
1642
1643 *type = fwspec->param[2] & IRQ_TYPE_SENSE_MASK;
1644
1645 /*
1646 * Make it clear that broken DTs are... broken.
1647 * Partitioned PPIs are an unfortunate exception.
1648 */
1649 WARN_ON(*type == IRQ_TYPE_NONE &&
1650 fwspec->param[0] != GIC_IRQ_TYPE_PARTITION);
1651 return 0;
1652 }
1653
1654 if (is_fwnode_irqchip(fwspec->fwnode)) {
1655 if(fwspec->param_count != 2)
1656 return -EINVAL;
1657
> 1658 if (fwspec->param[0] < MAX_IPI) {
1659 pr_err(FW_BUG "Illegal GSI%d translation request\n",
1660 fwspec->param[0]);
1661 return -EINVAL;
1662 }
1663
1664 *hwirq = fwspec->param[0];
1665 *type = fwspec->param[1];
1666
1667 WARN_ON(*type == IRQ_TYPE_NONE);
1668 return 0;
1669 }
1670
1671 return -EINVAL;
1672 }
1673
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2024-08-15 4:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 3:39 [PATCH] irqchip/gic-v3: Allow unused SGIs for drivers/modules Shanker Donthineni
2024-08-13 8:44 ` Thomas Gleixner
2024-08-13 8:58 ` Marc Zyngier
2024-08-13 10:33 ` Sudeep Holla
2024-08-15 9:33 ` Marc Zyngier
2024-12-16 2:25 ` Kai-Heng Feng
2024-12-16 9:56 ` Sudeep Holla
2024-08-15 3:37 ` kernel test robot
2024-08-15 4:29 ` kernel test robot [this message]
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=202408151208.vuvL1AtV-lkp@intel.com \
--to=lkp@intel.com \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=maz@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sdonthineni@nvidia.com \
--cc=sudeep.holla@arm.com \
--cc=tglx@linutronix.de \
--cc=will@kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.