Re: [PATCH v7 1/2] tty: hvc: pass DMA capable memory to put_chars()
by kernel test robot
Hi Xianting,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tty/tty-testing]
[also build test WARNING on char-misc/char-misc-testing soc/for-next v5.14-rc6 next-20210817]
[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/Xianting-Tian/make-hvc-pass-dma-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-testing
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
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
# https://github.com/0day-ci/linux/commit/f12c3bee9f2413ed7643d858b40ce2337...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Xianting-Tian/make-hvc-pass-dma-capable-memory-to-its-backend/20210817-212556
git checkout f12c3bee9f2413ed7643d858b40ce2337329fdae
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386
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 >>):
clang-14: warning: optimization flag '-falign-jumps=0' is not supported [-Wignored-optimization-argument]
In file included from drivers/tty/hvc/hvc_console.c:15:
In file included from include/linux/kbd_kern.h:5:
In file included from include/linux/tty.h:5:
In file included from include/linux/fs.h:6:
In file included from include/linux/wait_bit.h:8:
In file included from include/linux/wait.h:9:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:78:
In file included from arch/x86/include/asm/preempt.h:7:
In file included from include/linux/thread_info.h:60:
arch/x86/include/asm/thread_info.h:172:13: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
oldframe = __builtin_frame_address(1);
^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/thread_info.h:174:11: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
frame = __builtin_frame_address(2);
^~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/tty/hvc/hvc_console.c:160:18: warning: address of array 'hp->c' will always evaluate to 'true' [-Wpointer-bool-conversion]
if (!hp || !hp->c)
~~~~~^
3 warnings generated.
vim +160 drivers/tty/hvc/hvc_console.c
136
137 /*
138 * Console APIs, NOT TTY. These APIs are available immediately when
139 * hvc_console_setup() finds adapters.
140 */
141
142 static void hvc_console_print(struct console *co, const char *b,
143 unsigned count)
144 {
145 char *c;
146 unsigned i = 0, n = 0;
147 int r, donecr = 0, index = co->index;
148 unsigned long flags;
149 struct hvc_struct *hp;
150
151 /* Console access attempt outside of acceptable console range. */
152 if (index >= MAX_NR_HVC_CONSOLES)
153 return;
154
155 /* This console adapter was removed so it is not usable. */
156 if (vtermnos[index] == -1)
157 return;
158
159 hp = cons_hvcs[index];
> 160 if (!hp || !hp->c)
161 return;
162
163 c = hp->c;
164
165 spin_lock_irqsave(&hp->c_lock, flags);
166 while (count > 0 || i > 0) {
167 if (count > 0 && i < sizeof(c)) {
168 if (b[n] == '\n' && !donecr) {
169 c[i++] = '\r';
170 donecr = 1;
171 } else {
172 c[i++] = b[n++];
173 donecr = 0;
174 --count;
175 }
176 } else {
177 r = cons_ops[index]->put_chars(vtermnos[index], c, i);
178 if (r <= 0) {
179 /* throw away characters on error
180 * but spin in case of -EAGAIN */
181 if (r != -EAGAIN) {
182 i = 0;
183 } else {
184 hvc_console_flush(cons_ops[index],
185 vtermnos[index]);
186 }
187 } else if (r > 0) {
188 i -= r;
189 if (i > 0)
190 memmove(c, c+r, i);
191 }
192 }
193 }
194 spin_unlock_irqrestore(&hp->c_lock, flags);
195 hvc_console_flush(cons_ops[index], vtermnos[index]);
196 }
197
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH net-next 2/2] net: Fix offloading indirect devices dependency on qdisc order creation
by kernel test robot
Hi Eli,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Eli-Cohen/Indirect-dev-ingress-q...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 752be2976405b7499890c0b6bac6d30d34d08bd6
config: x86_64-randconfig-a011-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
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
# https://github.com/0day-ci/linux/commit/8e304f96c15799e4618967e3a19cfd25f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Eli-Cohen/Indirect-dev-ingress-qdisc-creation-order/20210817-212524
git checkout 8e304f96c15799e4618967e3a19cfd25fc9868de
# 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 >>):
>> net/core/flow_offload.c:365:20: warning: variable 'block' set but not used [-Wunused-but-set-variable]
struct tcf_block *block;
^
1 warning generated.
vim +/block +365 net/core/flow_offload.c
360
361 static void existing_qdiscs_register(flow_indr_block_bind_cb_t *cb, void *cb_priv)
362 {
363 struct flow_block_offload bo;
364 struct flow_indir_dev_info *cur;
> 365 struct tcf_block *block;
366
367 list_for_each_entry(cur, &flow_indir_dev_list, list) {
368 memset(&bo, 0, sizeof(bo));
369 bo.command = cur->command;
370 bo.binder_type = cur->binder_type;
371 block = cur->data;
372 INIT_LIST_HEAD(&bo.cb_list);
373 cb(cur->dev, cur->sch, cb_priv, cur->type, &bo, cur->data, cur->cleanup);
374 list_splice(&bo.cb_list, cur->cb_list);
375 }
376 }
377
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v4 12/15] KVM: arm64: Add trap handlers for protected VMs
by kernel test robot
Hi Fuad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c500bee1c5b2f1d59b1081ac879d73268ab0ff17]
url: https://github.com/0day-ci/linux/commits/Fuad-Tabba/KVM-arm64-Fixed-featu...
base: c500bee1c5b2f1d59b1081ac879d73268ab0ff17
config: arm64-randconfig-r016-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
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
# https://github.com/0day-ci/linux/commit/58bc1e79b35b3353db259b152a450671b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Fuad-Tabba/KVM-arm64-Fixed-features-for-protected-VMs/20210817-161500
git checkout 58bc1e79b35b3353db259b152a450671bc0822b2
# 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 warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/sys_regs.c:390:5: warning: no previous prototype for function 'kvm_handle_pvm_sys64' [-Wmissing-prototypes]
int kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu)
^
arch/arm64/kvm/hyp/nvhe/sys_regs.c:390:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu)
^
static
>> arch/arm64/kvm/hyp/nvhe/sys_regs.c:426:5: warning: no previous prototype for function 'kvm_handle_pvm_restricted' [-Wmissing-prototypes]
int kvm_handle_pvm_restricted(struct kvm_vcpu *vcpu)
^
arch/arm64/kvm/hyp/nvhe/sys_regs.c:426:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int kvm_handle_pvm_restricted(struct kvm_vcpu *vcpu)
^
static
2 warnings generated.
vim +/kvm_handle_pvm_sys64 +390 arch/arm64/kvm/hyp/nvhe/sys_regs.c
384
385 /*
386 * Handler for protected VM MSR, MRS or System instruction execution in AArch64.
387 *
388 * Return 1 if handled, or 0 if not.
389 */
> 390 int kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu)
391 {
392 const struct sys_reg_desc *r;
393 struct sys_reg_params params;
394 unsigned long esr = kvm_vcpu_get_esr(vcpu);
395 int Rt = kvm_vcpu_sys_get_rt(vcpu);
396
397 params = esr_sys64_to_params(esr);
398 params.regval = vcpu_get_reg(vcpu, Rt);
399
400 r = find_reg(¶ms, pvm_sys_reg_descs, ARRAY_SIZE(pvm_sys_reg_descs));
401
402 /* Undefined access (RESTRICTED). */
403 if (r == NULL) {
404 inject_undef(vcpu);
405 return 1;
406 }
407
408 /* Handled by the host (HOST_HANDLED) */
409 if (r->access == NULL)
410 return 0;
411
412 /* Handled by hyp: skip instruction if instructed to do so. */
413 if (r->access(vcpu, ¶ms, r))
414 __kvm_skip_instr(vcpu);
415
416 vcpu_set_reg(vcpu, Rt, params.regval);
417 return 1;
418 }
419
420 /*
421 * Handler for protected VM restricted exceptions.
422 *
423 * Inject an undefined exception into the guest and return 1 to indicate that
424 * it was handled.
425 */
> 426 int kvm_handle_pvm_restricted(struct kvm_vcpu *vcpu)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[ti:ti-rt-linux-5.10.y 4414/6833] drivers/pci/controller/dwc/pci-keystone.c:299:6: warning: no previous prototype for 'ks_pcie_irq_eoi'
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: ac3657d2050406e974383b1490184f42a06b73cc
commit: f765f578153d8bfc7a035b1fce2c09d2c41bd980 [4414/6833] PCI: keystone: Convert to using hierarchy domain for legacy interrupts
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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 remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout f765f578153d8bfc7a035b1fce2c09d2c41bd980
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 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 warnings (new ones prefixed by >>):
>> drivers/pci/controller/dwc/pci-keystone.c:299:6: warning: no previous prototype for 'ks_pcie_irq_eoi' [-Wmissing-prototypes]
299 | void ks_pcie_irq_eoi(struct irq_data *data)
| ^~~~~~~~~~~~~~~
>> drivers/pci/controller/dwc/pci-keystone.c:308:6: warning: no previous prototype for 'ks_pcie_irq_enable' [-Wmissing-prototypes]
308 | void ks_pcie_irq_enable(struct irq_data *data)
| ^~~~~~~~~~~~~~~~~~
>> drivers/pci/controller/dwc/pci-keystone.c:317:6: warning: no previous prototype for 'ks_pcie_irq_disable' [-Wmissing-prototypes]
317 | void ks_pcie_irq_disable(struct irq_data *data)
| ^~~~~~~~~~~~~~~~~~~
vim +/ks_pcie_irq_eoi +299 drivers/pci/controller/dwc/pci-keystone.c
298
> 299 void ks_pcie_irq_eoi(struct irq_data *data)
300 {
301 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
302 irq_hw_number_t hwirq = data->hwirq;
303
304 ks_pcie_app_writel(ks_pcie, IRQ_EOI, hwirq);
305 irq_chip_eoi_parent(data);
306 }
307
> 308 void ks_pcie_irq_enable(struct irq_data *data)
309 {
310 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
311 irq_hw_number_t hwirq = data->hwirq;
312
313 ks_pcie_app_writel(ks_pcie, IRQ_ENABLE_SET(hwirq), INTx_EN);
314 irq_chip_enable_parent(data);
315 }
316
> 317 void ks_pcie_irq_disable(struct irq_data *data)
318 {
319 struct keystone_pcie *ks_pcie = irq_data_get_irq_chip_data(data);
320 irq_hw_number_t hwirq = data->hwirq;
321
322 ks_pcie_app_writel(ks_pcie, IRQ_ENABLE_CLR(hwirq), INTx_EN);
323 irq_chip_disable_parent(data);
324 }
325
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v2 06/20] platform/x86: intel_scu: Move to intel sub-directory
by kernel test robot
Hi Kate,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on next-20210816]
[cannot apply to linus/master v5.14-rc6 v5.14-rc5 v5.14-rc4 v5.14-rc6]
[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/Kate-Hsuan/Intel-platform-driver...
base: b9011c7e671dbbf59bb753283ddfd03f0c9eb865
config: x86_64-buildonly-randconfig-r004-20210816 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/30a4d97d4248adef672f46eeb0e32b816...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Kate-Hsuan/Intel-platform-driver-code-movement/20210816-185713
git checkout 30a4d97d4248adef672f46eeb0e32b816b6f531c
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
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: drivers/mfd/intel_pmc_bxt.o: in function `simplecmd_store':
>> intel_pmc_bxt.c:(.text+0x41): undefined reference to `intel_scu_ipc_dev_simple_command'
ld: drivers/mfd/intel_pmc_bxt.o: in function `northpeak_store':
intel_pmc_bxt.c:(.text+0xb8): undefined reference to `intel_scu_ipc_dev_simple_command'
ld: drivers/mfd/intel_pmc_bxt.o: in function `intel_pmc_probe':
>> intel_pmc_bxt.c:(.text+0x587): undefined reference to `__devm_intel_scu_ipc_register'
ld: drivers/mfd/intel_soc_pmic_bxtwc.o: in function `regmap_ipc_byte_reg_write':
>> intel_soc_pmic_bxtwc.c:(.text+0x2cd): undefined reference to `intel_scu_ipc_dev_command_with_size'
ld: drivers/mfd/intel_soc_pmic_bxtwc.o: in function `regmap_ipc_byte_reg_read':
intel_soc_pmic_bxtwc.c:(.text+0x34e): undefined reference to `intel_scu_ipc_dev_command_with_size'
ld: drivers/mfd/intel_soc_pmic_bxtwc.o: in function `bxtwc_probe':
>> intel_soc_pmic_bxtwc.c:(.text+0x4a0): undefined reference to `devm_intel_scu_ipc_dev_get'
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for INTEL_SCU_IPC
Depends on X86 && X86_PLATFORM_DEVICES && X86_PLATFORM_DRIVERS_INTEL
Selected by
- MFD_INTEL_PMC_BXT && HAS_IOMEM && X86 && X86_PLATFORM_DEVICES && ACPI
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[ti:ti-rt-linux-5.10.y 6817/6833] drivers/gpu/drm/omapdrm/omap_wb_cap.c:512:13: warning: variable 'ret' set but not used
by kernel test robot
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-rt-linux-5.10.y
head: ac3657d2050406e974383b1490184f42a06b73cc
commit: b5eff5a26c1aa3a3872533555a4678d510d07f87 [6817/6833] drm/omap: add WB support
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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 remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
git fetch --no-tags ti ti-rt-linux-5.10.y
git checkout b5eff5a26c1aa3a3872533555a4678d510d07f87
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm
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 >>):
drivers/gpu/drm/omapdrm/omap_wb_cap.c: In function 'stop_streaming':
>> drivers/gpu/drm/omapdrm/omap_wb_cap.c:512:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
512 | int ret;
| ^~~
vim +/ret +512 drivers/gpu/drm/omapdrm/omap_wb_cap.c
502
503 /*
504 * Stop the DMA engine. Any remaining buffers in the DMA queue are dequeued
505 * and passed on to the vb2 framework marked as STATE_ERROR.
506 */
507 static void stop_streaming(struct vb2_queue *vq)
508 {
509 struct wbcap_dev *wbcap = vb2_get_drv_priv(vq);
510 struct omap_drm_private *priv = wbcap->dev->drm_dev->dev_private;
511 struct drm_crtc *crtc;
> 512 int ret;
513
514 log_dbg(wbcap, "Stopping WB\n");
515 log_dbg(wbcap, "current state: %d\n", wbcap->state);
516
517 wbcap->stopping = true;
518 ret = wait_event_timeout(wbcap->event,
519 !wbcap->stopping,
520 msecs_to_jiffies(250));
521
522 log_dbg(wbcap, "Returning VB2 buffers\n");
523
524 if (priv->dispc_ops->wb_go_busy(priv->dispc))
525 log_err(wbcap, "WARNING, WB BUSY when stopping\n");
526
527 /* Release all active buffers */
528 return_all_buffers(wbcap, VB2_BUF_STATE_ERROR);
529
530 /* Disable vsync irq on the input crtc */
531 crtc = priv->pipes[wb_inputs[wbcap->input].crtc_index].crtc;
532 drm_crtc_vblank_put(crtc);
533
534 priv->dispc_ops->runtime_put(priv->dispc);
535 }
536
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v4 11/15] KVM: arm64: Guest exit handlers for nVHE hyp
by kernel test robot
Hi Fuad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c500bee1c5b2f1d59b1081ac879d73268ab0ff17]
url: https://github.com/0day-ci/linux/commits/Fuad-Tabba/KVM-arm64-Fixed-featu...
base: c500bee1c5b2f1d59b1081ac879d73268ab0ff17
config: arm64-randconfig-r016-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
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
# https://github.com/0day-ci/linux/commit/d20adc963041fb77c56e8da7935236d73...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Fuad-Tabba/KVM-arm64-Fixed-features-for-protected-VMs/20210817-161500
git checkout d20adc963041fb77c56e8da7935236d73b738e63
# 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 warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/switch.c:163:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_WFx] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:164:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_CP15_32] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:165:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_CP15_64] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:166:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_CP14_MR] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:167:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_CP14_LS] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:168:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_CP14_64] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:169:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_HVC32] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:170:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_SMC32] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here
[0 ... ESR_ELx_EC_MAX] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/switch.c:171:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
[ESR_ELx_EC_HVC64] = NULL,
^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
vim +163 arch/arm64/kvm/hyp/nvhe/switch.c
160
161 static exit_handle_fn hyp_exit_handlers[] = {
162 [0 ... ESR_ELx_EC_MAX] = NULL,
> 163 [ESR_ELx_EC_WFx] = NULL,
164 [ESR_ELx_EC_CP15_32] = NULL,
165 [ESR_ELx_EC_CP15_64] = NULL,
166 [ESR_ELx_EC_CP14_MR] = NULL,
167 [ESR_ELx_EC_CP14_LS] = NULL,
168 [ESR_ELx_EC_CP14_64] = NULL,
169 [ESR_ELx_EC_HVC32] = NULL,
170 [ESR_ELx_EC_SMC32] = NULL,
171 [ESR_ELx_EC_HVC64] = NULL,
172 [ESR_ELx_EC_SMC64] = NULL,
173 [ESR_ELx_EC_SYS64] = NULL,
174 [ESR_ELx_EC_SVE] = NULL,
175 [ESR_ELx_EC_IABT_LOW] = NULL,
176 [ESR_ELx_EC_DABT_LOW] = NULL,
177 [ESR_ELx_EC_SOFTSTP_LOW] = NULL,
178 [ESR_ELx_EC_WATCHPT_LOW] = NULL,
179 [ESR_ELx_EC_BREAKPT_LOW] = NULL,
180 [ESR_ELx_EC_BKPT32] = NULL,
181 [ESR_ELx_EC_BRK64] = NULL,
182 [ESR_ELx_EC_FP_ASIMD] = NULL,
183 [ESR_ELx_EC_PAC] = NULL,
184 };
185
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v1 net-next 2/7] ptp_pch: Use ioread64_lo_hi() / iowrite64_lo_hi()
by kernel test robot
Hi Andy,
I love your patch! Yet something to improve:
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/ptp_pch-use-mac_...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git b769cf44ed55f4b277b89cf53df6092f0c9082d0
config: parisc-allyesconfig (attached as .config)
compiler: hppa-linux-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/c854fdc883f2a8f074021cbae3becb5a9...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Andy-Shevchenko/ptp_pch-use-mac_pton/20210813-203135
git checkout c854fdc883f2a8f074021cbae3becb5a9eae5199
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc SHELL=/bin/bash
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 >>):
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `pch_rx_snap_read':
>> (.text+0x32c): undefined reference to `ioread64_lo_hi'
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `pch_tx_snap_read':
(.text+0x3ac): undefined reference to `ioread64_lo_hi'
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `pch_set_station_address':
>> (.text+0x4a0): undefined reference to `iowrite64_lo_hi'
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `ptp_pch_settime':
>> ptp_pch.o:(.text+0x61c): undefined reference to `iowrite64_lo_hi'
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `ptp_pch_adjtime':
>> ptp_pch.o:(.text+0x6d8): undefined reference to `ioread64_lo_hi'
>> hppa-linux-ld: ptp_pch.o:(.text+0x6fc): undefined reference to `iowrite64_lo_hi'
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `ptp_pch_gettime':
ptp_pch.o:(.text+0x9d0): undefined reference to `ioread64_lo_hi'
hppa-linux-ld: drivers/ptp/ptp_pch.o: in function `pch_probe':
ptp_pch.o:(.text+0xd60): undefined reference to `iowrite64_lo_hi'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v4 12/15] KVM: arm64: Add trap handlers for protected VMs
by kernel test robot
Hi Fuad,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c500bee1c5b2f1d59b1081ac879d73268ab0ff17]
url: https://github.com/0day-ci/linux/commits/Fuad-Tabba/KVM-arm64-Fixed-featu...
base: c500bee1c5b2f1d59b1081ac879d73268ab0ff17
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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
# https://github.com/0day-ci/linux/commit/58bc1e79b35b3353db259b152a450671b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Fuad-Tabba/KVM-arm64-Fixed-features-for-protected-VMs/20210817-161500
git checkout 58bc1e79b35b3353db259b152a450671bc0822b2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 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 warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/sys_regs.c:390:5: warning: no previous prototype for 'kvm_handle_pvm_sys64' [-Wmissing-prototypes]
390 | int kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/hyp/nvhe/sys_regs.c:426:5: warning: no previous prototype for 'kvm_handle_pvm_restricted' [-Wmissing-prototypes]
426 | int kvm_handle_pvm_restricted(struct kvm_vcpu *vcpu)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/kvm_handle_pvm_sys64 +390 arch/arm64/kvm/hyp/nvhe/sys_regs.c
384
385 /*
386 * Handler for protected VM MSR, MRS or System instruction execution in AArch64.
387 *
388 * Return 1 if handled, or 0 if not.
389 */
> 390 int kvm_handle_pvm_sys64(struct kvm_vcpu *vcpu)
391 {
392 const struct sys_reg_desc *r;
393 struct sys_reg_params params;
394 unsigned long esr = kvm_vcpu_get_esr(vcpu);
395 int Rt = kvm_vcpu_sys_get_rt(vcpu);
396
397 params = esr_sys64_to_params(esr);
398 params.regval = vcpu_get_reg(vcpu, Rt);
399
400 r = find_reg(¶ms, pvm_sys_reg_descs, ARRAY_SIZE(pvm_sys_reg_descs));
401
402 /* Undefined access (RESTRICTED). */
403 if (r == NULL) {
404 inject_undef(vcpu);
405 return 1;
406 }
407
408 /* Handled by the host (HOST_HANDLED) */
409 if (r->access == NULL)
410 return 0;
411
412 /* Handled by hyp: skip instruction if instructed to do so. */
413 if (r->access(vcpu, ¶ms, r))
414 __kvm_skip_instr(vcpu);
415
416 vcpu_set_reg(vcpu, Rt, params.regval);
417 return 1;
418 }
419
420 /*
421 * Handler for protected VM restricted exceptions.
422 *
423 * Inject an undefined exception into the guest and return 1 to indicate that
424 * it was handled.
425 */
> 426 int kvm_handle_pvm_restricted(struct kvm_vcpu *vcpu)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month