[tglx-devel:devicemsi 18/38] arch/x86/kernel/apic/msi.c:247:6: warning: variable 'd' is used uninitialized whenever 'if' condition is false
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: c788f3e806861afdef54db59dc5be9afb5bc906f [18/38] x86/irq: Initialize PCI/MSI domain at PCI init time
config: x86_64-randconfig-a002-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/apic/msi.c:247:6: warning: variable 'd' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (fn) {
^~
arch/x86/kernel/apic/msi.c:251:7: note: uninitialized use occurs here
if (!d) {
^
arch/x86/kernel/apic/msi.c:247:2: note: remove the 'if' if its condition is always true
if (fn) {
^~~~~~~~
arch/x86/kernel/apic/msi.c:241:22: note: initialize the variable 'd' to silence this warning
struct irq_domain *d;
^
= NULL
1 warning generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout c788f3e806861afdef54db59dc5be9afb5bc906f
vim +247 arch/x86/kernel/apic/msi.c
443809828cb5ee0 Jiang Liu 2014-10-27 237
c788f3e806861af Thomas Gleixner 2020-08-21 238 struct irq_domain * __init native_create_pci_msi_domain(void)
52f518a3a7c2f80 Jiang Liu 2015-04-13 239 {
f8f37ca78915b51 Thomas Gleixner 2017-06-20 240 struct fwnode_handle *fn;
c788f3e806861af Thomas Gleixner 2020-08-21 241 struct irq_domain *d;
f8f37ca78915b51 Thomas Gleixner 2017-06-20 242
52f518a3a7c2f80 Jiang Liu 2015-04-13 243 if (disable_apic)
c788f3e806861af Thomas Gleixner 2020-08-21 244 return NULL;
443809828cb5ee0 Jiang Liu 2014-10-27 245
f8f37ca78915b51 Thomas Gleixner 2017-06-20 246 fn = irq_domain_alloc_named_fwnode("PCI-MSI");
f8f37ca78915b51 Thomas Gleixner 2017-06-20 @247 if (fn) {
c788f3e806861af Thomas Gleixner 2020-08-21 248 d = pci_msi_create_irq_domain(fn, &pci_msi_domain_info,
c788f3e806861af Thomas Gleixner 2020-08-21 249 x86_vector_domain);
f8f37ca78915b51 Thomas Gleixner 2017-06-20 250 }
c788f3e806861af Thomas Gleixner 2020-08-21 251 if (!d) {
e3beca48a45b5e0 Thomas Gleixner 2020-07-09 252 irq_domain_free_fwnode(fn);
c788f3e806861af Thomas Gleixner 2020-08-21 253 pr_warn("Failed to initialize PCI-MSI irqdomain.\n");
e3beca48a45b5e0 Thomas Gleixner 2020-07-09 254 } else {
c788f3e806861af Thomas Gleixner 2020-08-21 255 d->flags |= IRQ_DOMAIN_MSI_NOMASK_QUIRK;
c788f3e806861af Thomas Gleixner 2020-08-21 256 }
c788f3e806861af Thomas Gleixner 2020-08-21 257 return d;
443809828cb5ee0 Jiang Liu 2014-10-27 258 }
c788f3e806861af Thomas Gleixner 2020-08-21 259
:::::: The code at line 247 was first introduced by commit
:::::: f8f37ca78915b51a73bf240409fcda30d811b76b x86/msi: Create named irq domains
:::::: TO: Thomas Gleixner <tglx(a)linutronix.de>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [PATCH] x86/entry/64: Disallow RDPID in paranoid entry if KVM is enabled
by kernel test robot
Hi Sean,
I love your patch! Yet something to improve:
[auto build test ERROR on tip/auto-latest]
[also build test ERROR on v5.9-rc1 next-20200821]
[cannot apply to tip/x86/asm luto/next]
[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]
url: https://github.com/0day-ci/linux/commits/Sean-Christopherson/x86-entry-64...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git a9bd3a91d6e49ebd2d7d8ace91d4cc339c382a31
config: x86_64-randconfig-a005-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/entry/entry_64.S: Assembler messages:
>> arch/x86/entry/entry_64.S:851: Error: too many positional arguments
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
# https://github.com/0day-ci/linux/commit/bebb51882f9c18938e44b6a7b66fdf045...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sean-Christopherson/x86-entry-64-Disallow-RDPID-in-paranoid-entry-if-KVM-is-enabled/20200821-105339
git checkout bebb51882f9c18938e44b6a7b66fdf0452eea142
vim +851 arch/x86/entry/entry_64.S
794
795 /*
796 * Save all registers in pt_regs. Return GSBASE related information
797 * in EBX depending on the availability of the FSGSBASE instructions:
798 *
799 * FSGSBASE R/EBX
800 * N 0 -> SWAPGS on exit
801 * 1 -> no SWAPGS on exit
802 *
803 * Y GSBASE value at entry, must be restored in paranoid_exit
804 */
805 SYM_CODE_START_LOCAL(paranoid_entry)
806 UNWIND_HINT_FUNC
807 cld
808 PUSH_AND_CLEAR_REGS save_ret=1
809 ENCODE_FRAME_POINTER 8
810
811 /*
812 * Always stash CR3 in %r14. This value will be restored,
813 * verbatim, at exit. Needed if paranoid_entry interrupted
814 * another entry that already switched to the user CR3 value
815 * but has not yet returned to userspace.
816 *
817 * This is also why CS (stashed in the "iret frame" by the
818 * hardware at entry) can not be used: this may be a return
819 * to kernel code, but with a user CR3 value.
820 *
821 * Switching CR3 does not depend on kernel GSBASE so it can
822 * be done before switching to the kernel GSBASE. This is
823 * required for FSGSBASE because the kernel GSBASE has to
824 * be retrieved from a kernel internal table.
825 */
826 SAVE_AND_SWITCH_TO_KERNEL_CR3 scratch_reg=%rax save_reg=%r14
827
828 /*
829 * Handling GSBASE depends on the availability of FSGSBASE.
830 *
831 * Without FSGSBASE the kernel enforces that negative GSBASE
832 * values indicate kernel GSBASE. With FSGSBASE no assumptions
833 * can be made about the GSBASE value when entering from user
834 * space.
835 */
836 ALTERNATIVE "jmp .Lparanoid_entry_checkgs", "", X86_FEATURE_FSGSBASE
837
838 /*
839 * Read the current GSBASE and store it in %rbx unconditionally,
840 * retrieve and set the current CPUs kernel GSBASE. The stored value
841 * has to be restored in paranoid_exit unconditionally.
842 *
843 * The MSR write ensures that no subsequent load is based on a
844 * mispredicted GSBASE. No extra FENCE required.
845 *
846 * Disallow RDPID if KVM is enabled as it may consume a guest's TSC_AUX
847 * if an NMI arrives in KVM's run loop. KVM loads guest's TSC_AUX on
848 * VM-Enter and may not restore the host's value until the CPU returns
849 * to userspace, i.e. KVM depends on the kernel not using TSC_AUX.
850 */
> 851 SAVE_AND_SET_GSBASE scratch_reg=%rax save_reg=%rbx no_rdpid=IS_ENABLED(CONFIG_KVM)
852 ret
853
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[tglx-devel:devicemsi 10/38] arch/x86/kernel/devicetree.c:232:6: error: no member named 'ioapic_id' in 'struct irq_alloc_info'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: 92a04d4c74918f3dd5870d946b73b61161e1b161 [10/38] x86/ioapic: Consolidate IOAPIC allocation
config: x86_64-randconfig-a002-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 92a04d4c74918f3dd5870d946b73b61161e1b161
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/kernel/devicetree.c:232:6: error: no member named 'ioapic_id' in 'struct irq_alloc_info'; did you mean 'ioapic'?
tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
^~~~~~~~~
ioapic
arch/x86/include/asm/hw_irq.h:78:28: note: 'ioapic' declared here
struct ioapic_alloc_info ioapic;
^
>> arch/x86/kernel/devicetree.c:232:16: error: assigning to 'struct ioapic_alloc_info' from incompatible type 'int'
tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/kernel/devicetree.c:233:6: error: no member named 'ioapic_pin' in 'struct irq_alloc_info'
tmp.ioapic_pin = fwspec->param[0];
~~~ ^
3 errors generated.
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout 92a04d4c74918f3dd5870d946b73b61161e1b161
vim +232 arch/x86/kernel/devicetree.c
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 214
d32932d02e1869b Jiang Liu 2015-04-13 215 static int dt_irqdomain_alloc(struct irq_domain *domain, unsigned int virq,
d32932d02e1869b Jiang Liu 2015-04-13 216 unsigned int nr_irqs, void *arg)
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 217 {
0a5169add90e43a Ivan Gorinov 2018-03-07 218 struct irq_fwspec *fwspec = (struct irq_fwspec *)arg;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 219 struct of_ioapic_type *it;
d32932d02e1869b Jiang Liu 2015-04-13 220 struct irq_alloc_info tmp;
0a5169add90e43a Ivan Gorinov 2018-03-07 221 int type_index;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 222
0a5169add90e43a Ivan Gorinov 2018-03-07 223 if (WARN_ON(fwspec->param_count < 2))
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 224 return -EINVAL;
0a5169add90e43a Ivan Gorinov 2018-03-07 225
0a5169add90e43a Ivan Gorinov 2018-03-07 226 type_index = fwspec->param[1];
0a5169add90e43a Ivan Gorinov 2018-03-07 227 if (type_index >= ARRAY_SIZE(of_ioapic_type))
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 228 return -EINVAL;
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 229
0a5169add90e43a Ivan Gorinov 2018-03-07 230 it = &of_ioapic_type[type_index];
d32932d02e1869b Jiang Liu 2015-04-13 231 ioapic_set_alloc_attr(&tmp, NUMA_NO_NODE, it->trigger, it->polarity);
d32932d02e1869b Jiang Liu 2015-04-13 @232 tmp.ioapic_id = mpc_ioapic_id(mp_irqdomain_ioapic_idx(domain));
0a5169add90e43a Ivan Gorinov 2018-03-07 @233 tmp.ioapic_pin = fwspec->param[0];
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 234
d32932d02e1869b Jiang Liu 2015-04-13 235 return mp_irqdomain_alloc(domain, virq, nr_irqs, &tmp);
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 236 }
bcc7c1244fcfd85 Sebastian Andrzej Siewior 2011-02-22 237
:::::: The code at line 232 was first introduced by commit
:::::: d32932d02e1869be838cea3ace42467c360db377 x86/irq: Convert IOAPIC to use hierarchical irqdomain interfaces
:::::: TO: Jiang Liu <jiang.liu(a)linux.intel.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[chrome-os:chromeos-5.4 47/198] ld.lld: error: undefined symbol: usb_wakeup_enabled_descendants
by kernel test robot
TO: cros-kernel-buildreports(a)googlegroups.com
TO: Guenter Roeck <groeck(a)google.com>
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.4
head: 60239e0b2f03053b0443f32e577e6111638b7981
commit: 019b82a8838ce1601fa55ce41568a7e8569814fa [47/198] FROMLIST: usb: dwc3: core: Host wake up support from system suspend
config: arm64-randconfig-r001-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git checkout 019b82a8838ce1601fa55ce41568a7e8569814fa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: usb_hcd_is_primary_hcd
>>> referenced by xhci.h:1922 (drivers/usb/dwc3/../host/xhci.h:1922)
>>> usb/dwc3/core.o:(dwc3_suspend_common) in archive drivers/built-in.a
--
>> ld.lld: error: undefined symbol: usb_wakeup_enabled_descendants
>>> referenced by core.c:1645 (drivers/usb/dwc3/core.c:1645)
>>> usb/dwc3/core.o:(dwc3_suspend_common) in archive drivers/built-in.a
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [RFC PATCH v2 3/9] ext4: add freespace tree allocator
by kernel test robot
Hi Harshad,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on ext4/dev]
[also build test ERROR on next-20200820]
[cannot apply to tip/perf/core tytso-fscrypt/master v5.9-rc1]
[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]
url: https://github.com/0day-ci/linux/commits/Harshad-Shirwadkar/ext4-add-free...
base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev
config: i386-randconfig-s001-20200820 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-191-g10164920-dirty
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: fs/ext4/mballoc.o: in function `ext4_blkno_to_flex_offset':
>> fs/ext4/mballoc.c:407: undefined reference to `__umoddi3'
>> ld: fs/ext4/mballoc.c:407: undefined reference to `__umoddi3'
>> ld: fs/ext4/mballoc.c:407: undefined reference to `__umoddi3'
>> ld: fs/ext4/mballoc.c:407: undefined reference to `__umoddi3'
>> ld: fs/ext4/mballoc.c:407: undefined reference to `__umoddi3'
ld: fs/ext4/mballoc.o:fs/ext4/mballoc.c:407: more undefined references to `__umoddi3' follow
# https://github.com/0day-ci/linux/commit/db488bc7c0ef14f7ea22209b8faaddaff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Harshad-Shirwadkar/ext4-add-free-space-extent-based-allocator/20200821-095647
git checkout db488bc7c0ef14f7ea22209b8faaddaffcfabbd5
vim +407 fs/ext4/mballoc.c
403
404 static inline int ext4_blkno_to_flex_offset(struct super_block *sb,
405 ext4_fsblk_t blkno)
406 {
> 407 return blkno % (ext4_flex_bg_size(EXT4_SB(sb)) *
408 EXT4_SB(sb)->s_blocks_per_group);
409 }
410
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [patch RFC 27/38] iommm/vt-d: Store irq domain in struct device
by kernel test robot
Hi Thomas,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on pci/next]
[also build test WARNING on v5.9-rc1 next-20200820]
[cannot apply to tip/x86/core iommu/next]
[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]
url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-PCI-XEN-geni...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: x86_64-randconfig-r036-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/i915_scheduler.c:9:
In file included from drivers/gpu/drm/i915/i915_drv.h:41:
>> include/linux/intel-iommu.h:446:35: warning: declaration of 'struct dmar_pci_notify_info' will not be visible outside of this function [-Wvisibility]
intel_irq_remap_add_device(struct dmar_pci_notify_info *info) { }
^
1 warning generated.
--
In file included from drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:8:
In file included from drivers/gpu/drm/i915/gem/i915_gem_context.h:12:
In file included from drivers/gpu/drm/i915/gt/intel_context.h:15:
In file included from drivers/gpu/drm/i915/i915_drv.h:41:
>> include/linux/intel-iommu.h:446:35: warning: declaration of 'struct dmar_pci_notify_info' will not be visible outside of this function [-Wvisibility]
intel_irq_remap_add_device(struct dmar_pci_notify_info *info) { }
^
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:259:19: warning: unused function 'rq_prio' [-Wunused-function]
static inline int rq_prio(const struct i915_request *rq)
^
2 warnings generated.
--
In file included from drivers/gpu/drm/i915/gt/intel_workarounds.c:7:
In file included from drivers/gpu/drm/i915/i915_drv.h:41:
>> include/linux/intel-iommu.h:446:35: warning: declaration of 'struct dmar_pci_notify_info' will not be visible outside of this function [-Wvisibility]
intel_irq_remap_add_device(struct dmar_pci_notify_info *info) { }
^
drivers/gpu/drm/i915/gt/intel_workarounds.c:1331:20: warning: function 'is_nonpriv_flags_valid' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static inline bool is_nonpriv_flags_valid(u32 flags)
^
2 warnings generated.
--
In file included from drivers/gpu/drm/i915/i915_active.c:9:
In file included from drivers/gpu/drm/i915/gt/intel_context.h:15:
In file included from drivers/gpu/drm/i915/i915_drv.h:41:
>> include/linux/intel-iommu.h:446:35: warning: declaration of 'struct dmar_pci_notify_info' will not be visible outside of this function [-Wvisibility]
intel_irq_remap_add_device(struct dmar_pci_notify_info *info) { }
^
drivers/gpu/drm/i915/i915_active.c:123:20: warning: unused function 'debug_active_fini' [-Wunused-function]
static inline void debug_active_fini(struct i915_active *ref) { }
^
2 warnings generated.
# https://github.com/0day-ci/linux/commit/89c6ea0334d2ff88d8ad5d31f52bc5d0d...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Gleixner/x86-PCI-XEN-genirq-Prepare-for-device-MSI/20200821-102235
git checkout 89c6ea0334d2ff88d8ad5d31f52bc5d0d95e0f59
vim +446 include/linux/intel-iommu.h
442
443 void intel_irq_remap_add_device(struct dmar_pci_notify_info *info);
444 #else
445 static inline void
> 446 intel_irq_remap_add_device(struct dmar_pci_notify_info *info) { }
447 #endif
448
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
Re: [patch RFC 18/38] x86/irq: Initialize PCI/MSI domain at PCI init time
by kernel test robot
Hi Thomas,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on pci/next]
[also build test ERROR on v5.9-rc1 next-20200820]
[cannot apply to tip/x86/core iommu/next]
[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]
url: https://github.com/0day-ci/linux/commits/Thomas-Gleixner/x86-PCI-XEN-geni...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: x86_64-randconfig-r003-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/kernel/x86_init.c:80:28: error: use of undeclared identifier 'native_create_pci_msi_domain'
.create_pci_msi_domain = native_create_pci_msi_domain,
^
1 error generated.
# https://github.com/0day-ci/linux/commit/fabe814fb32fdba10f71d49fc11853fb7...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Thomas-Gleixner/x86-PCI-XEN-genirq-Prepare-for-device-MSI/20200821-102235
git checkout fabe814fb32fdba10f71d49fc11853fb7d455add
vim +/native_create_pci_msi_domain +80 arch/x86/kernel/x86_init.c
62
63 .resources = {
64 .probe_roms = probe_roms,
65 .reserve_resources = reserve_standard_io_resources,
66 .memory_setup = e820__memory_setup_default,
67 },
68
69 .mpparse = {
70 .setup_ioapic_ids = x86_init_noop,
71 .find_smp_config = default_find_smp_config,
72 .get_smp_config = default_get_smp_config,
73 },
74
75 .irqs = {
76 .pre_vector_init = init_ISA_irqs,
77 .intr_init = native_init_IRQ,
78 .intr_mode_select = apic_intr_mode_select,
79 .intr_mode_init = apic_intr_mode_init,
> 80 .create_pci_msi_domain = native_create_pci_msi_domain,
81 },
82
83 .oem = {
84 .arch_setup = x86_init_noop,
85 .banner = default_banner,
86 },
87
88 .paging = {
89 .pagetable_init = native_pagetable_init,
90 },
91
92 .timers = {
93 .setup_percpu_clockev = setup_boot_APIC_clock,
94 .timer_init = hpet_time_init,
95 .wallclock_init = x86_wallclock_init,
96 },
97
98 .iommu = {
99 .iommu_init = iommu_init_noop,
100 },
101
102 .pci = {
103 .init = x86_default_pci_init,
104 .init_irq = x86_default_pci_init_irq,
105 .fixup_irqs = x86_default_pci_fixup_irqs,
106 },
107
108 .hyper = {
109 .init_platform = x86_init_noop,
110 .guest_late_init = x86_init_noop,
111 .x2apic_available = bool_x86_init_noop,
112 .init_mem_mapping = x86_init_noop,
113 .init_after_bootmem = x86_init_noop,
114 },
115
116 .acpi = {
117 .set_root_pointer = x86_default_set_root_pointer,
118 .get_root_pointer = x86_default_get_root_pointer,
119 .reduced_hw_early_init = acpi_generic_reduced_hw_init,
120 },
121 };
122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month
[tglx-devel:devicemsi 38/38] drivers/irqchip/irq-ims-msi.c:65:39: error: dereferencing pointer to incomplete type 'struct irq_domain'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devicemsi
head: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
commit: 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4 [38/38] irqchip: Add IMS array driver - NOT FOR MERGING
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
drivers/irqchip/irq-ims-msi.c: In function 'ims_free_msi_store':
>> drivers/irqchip/irq-ims-msi.c:65:39: error: dereferencing pointer to incomplete type 'struct irq_domain'
65 | struct msi_domain_info *info = domain->host_data;
| ^~
drivers/irqchip/irq-ims-msi.c: At top level:
>> drivers/irqchip/irq-ims-msi.c:122:1: warning: no previous prototype for 'pci_ims_create_msi_irq_domain' [-Wmissing-prototypes]
122 | pci_ims_create_msi_irq_domain(struct pci_dev *pdev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel devicemsi
git checkout 67d94e5e316843b1af2b0c4cf5d4f8e9a91d97b4
vim +65 drivers/irqchip/irq-ims-msi.c
62
63 static void ims_free_msi_store(struct irq_domain *domain, struct device *dev)
64 {
> 65 struct msi_domain_info *info = domain->host_data;
66 struct ims_data *ims = info->data;
67 struct msi_desc *entry;
68
69 for_each_msi_entry(entry, dev) {
70 if (entry->device_msi.priv_iomem) {
71 clear_bit(entry->device_msi.hwirq, ims->map);
72 ims_reset_slot(entry->device_msi.priv_iomem);
73 entry->device_msi.priv_iomem = NULL;
74 entry->device_msi.hwirq = 0;
75 }
76 }
77 }
78
79 static int ims_alloc_msi_store(struct irq_domain *domain, struct device *dev,
80 int nvec)
81 {
82 struct msi_domain_info *info = domain->host_data;
83 struct ims_data *ims = info->data;
84 struct msi_desc *entry;
85
86 for_each_msi_entry(entry, dev) {
87 unsigned int idx;
88
89 idx = find_first_zero_bit(ims->map, ims->info.max_slots);
90 if (idx >= ims->info.max_slots)
91 goto fail;
92 set_bit(idx, ims->map);
93 entry->device_msi.priv_iomem = &ims->info.slots[idx];
94 entry->device_msi.hwirq = idx;
95 }
96 return 0;
97
98 fail:
99 ims_free_msi_store(domain, dev);
100 return -ENOSPC;
101 }
102
103 struct ims_domain_template {
104 struct msi_domain_ops ops;
105 struct msi_domain_info info;
106 };
107
108 static const struct ims_domain_template ims_domain_template = {
109 .ops = {
110 .msi_alloc_store = ims_alloc_msi_store,
111 .msi_free_store = ims_free_msi_store,
112 },
113 .info = {
114 .flags = MSI_FLAG_USE_DEF_DOM_OPS |
115 MSI_FLAG_USE_DEF_CHIP_OPS,
116 .handler = handle_edge_irq,
117 .handler_name = "edge",
118 },
119 };
120
121 struct irq_domain *
> 122 pci_ims_create_msi_irq_domain(struct pci_dev *pdev,
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 1 month