[drm-intel:drm-intel-gt-next 29/30] drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: sparse: sparse: incorrect type in assignment (different address spaces)
by kernel test robot
tree: git://anongit.freedesktop.org/drm-intel drm-intel-gt-next
head: ca06f93638362bf83584cdf33897822bf1578cf9
commit: 0eee9977f9d3d8f1e40175dada55b3d00121ac79 [29/30] drm/i915/gem: Roll all of context creation together
config: x86_64-randconfig-s022-20210715 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
git remote add drm-intel git://anongit.freedesktop.org/drm-intel
git fetch --no-tags drm-intel drm-intel-gt-next
git checkout 0eee9977f9d3d8f1e40175dada55b3d00121ac79
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/i915/gem/i915_gem_context.c:1412:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct i915_address_space *vm @@ got struct i915_address_space [noderef] __rcu *vm @@
drivers/gpu/drm/i915/gem/i915_gem_context.c:1412:34: sparse: expected struct i915_address_space *vm
drivers/gpu/drm/i915/gem/i915_gem_context.c:1412:34: sparse: got struct i915_address_space [noderef] __rcu *vm
drivers/gpu/drm/i915/gem/i915_gem_context.c: note: in included file:
>> drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct i915_address_space [noderef] __rcu *vm @@ got struct i915_address_space * @@
drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: sparse: expected struct i915_address_space [noderef] __rcu *vm
drivers/gpu/drm/i915/gem/selftests/mock_context.c:43:25: sparse: got struct i915_address_space *
>> drivers/gpu/drm/i915/gem/selftests/mock_context.c:60:34: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct i915_address_space *vm @@ got struct i915_address_space [noderef] __rcu *vm @@
drivers/gpu/drm/i915/gem/selftests/mock_context.c:60:34: sparse: expected struct i915_address_space *vm
drivers/gpu/drm/i915/gem/selftests/mock_context.c:60:34: sparse: got struct i915_address_space [noderef] __rcu *vm
vim +43 drivers/gpu/drm/i915/gem/selftests/mock_context.c
10
11 struct i915_gem_context *
12 mock_context(struct drm_i915_private *i915,
13 const char *name)
14 {
15 struct i915_gem_context *ctx;
16 struct i915_gem_engines *e;
17 struct intel_sseu null_sseu = {};
18
19 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
20 if (!ctx)
21 return NULL;
22
23 kref_init(&ctx->ref);
24 INIT_LIST_HEAD(&ctx->link);
25 ctx->i915 = i915;
26
27 mutex_init(&ctx->mutex);
28
29 spin_lock_init(&ctx->stale.lock);
30 INIT_LIST_HEAD(&ctx->stale.engines);
31
32 i915_gem_context_set_persistence(ctx);
33
34 if (name) {
35 struct i915_ppgtt *ppgtt;
36
37 strncpy(ctx->name, name, sizeof(ctx->name) - 1);
38
39 ppgtt = mock_ppgtt(i915, name);
40 if (!ppgtt)
41 goto err_free;
42
> 43 ctx->vm = i915_vm_open(&ppgtt->vm);
44 i915_vm_put(&ppgtt->vm);
45 }
46
47 mutex_init(&ctx->engines_mutex);
48 e = default_engines(ctx, null_sseu);
49 if (IS_ERR(e))
50 goto err_vm;
51 RCU_INIT_POINTER(ctx->engines, e);
52
53 INIT_RADIX_TREE(&ctx->handles_vma, GFP_KERNEL);
54 mutex_init(&ctx->lut_mutex);
55
56 return ctx;
57
58 err_vm:
59 if (ctx->vm)
> 60 i915_vm_close(ctx->vm);
61 err_free:
62 kfree(ctx);
63 return NULL;
64 }
65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[frank-w-bpi-r2-4.14:5.14-hdmilarb2 29/36] drivers/media/platform/mtk-mdp/mtk_mdp_core.c:47:34: warning: unused variable 'mtk_mdp_of_ids'
by kernel test robot
tree: https://github.com/frank-w/BPI-R2-4.14 5.14-hdmilarb2
head: 470ade477361a12be809a11457389924e4348e67
commit: 73dad51765a234171ad085d11f6aafb00ab9b863 [29/36] mtk-mdp: soc: mediatek: register mdp from mmsys
config: powerpc64-buildonly-randconfig-r004-20210715 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0e49c54a8cbd3e779e5526a5888c683c01cc3c50)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://github.com/frank-w/BPI-R2-4.14/commit/73dad51765a234171ad085d11f6...
git remote add frank-w-bpi-r2-4.14 https://github.com/frank-w/BPI-R2-4.14
git fetch --no-tags frank-w-bpi-r2-4.14 5.14-hdmilarb2
git checkout 73dad51765a234171ad085d11f6aafb00ab9b863
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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/media/platform/mtk-mdp/mtk_mdp_core.c:47:34: warning: unused variable 'mtk_mdp_of_ids' [-Wunused-const-variable]
static const struct of_device_id mtk_mdp_of_ids[] = {
^
1 warning generated.
vim +/mtk_mdp_of_ids +47 drivers/media/platform/mtk-mdp/mtk_mdp_core.c
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 46
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 @47 static const struct of_device_id mtk_mdp_of_ids[] = {
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 48 { .compatible = "mediatek,mt8173-mdp", },
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 49 { },
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 50 };
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 51 MODULE_DEVICE_TABLE(of, mtk_mdp_of_ids);
c8eb2d7e8202fd Minghsiu Tsai 2016-09-08 52
:::::: The code at line 47 was first introduced by commit
:::::: c8eb2d7e8202fd9cb912f5d33cc34ede66dcb24a [media] media: Add Mediatek MDP Driver
:::::: TO: Minghsiu Tsai <minghsiu.tsai(a)mediatek.com>
:::::: CC: Mauro Carvalho Chehab <mchehab(a)s-opensource.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
Re: [PATCH v14 102/138] iomap: Convert iomap_write_begin and iomap_write_end to folios
by kernel test robot
Hi "Matthew,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linus/master]
[also build test ERROR on next-20210715]
[cannot apply to hnaz-linux-mm/master xfs-linux/for-next tip/perf/core v5.14-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/Matthew-Wilcox-Oracle/Memory-fol...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8096acd7442e613fad0354fc8dfdb2003cceea0b
config: arm-randconfig-r014-20210715 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0e49c54a8cbd3e779e5526a5888c683c01cc3c50)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/fd265884da3f65758e8b5153d45537a4b...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Matthew-Wilcox-Oracle/Memory-folios/20210715-133101
git checkout fd265884da3f65758e8b5153d45537a4bbefbb70
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 errors (new ones prefixed by >>):
>> fs/iomap/buffered-io.c:645:2: error: implicit declaration of function 'flush_dcache_folio' [-Werror,-Wimplicit-function-declaration]
flush_dcache_folio(folio);
^
fs/iomap/buffered-io.c:645:2: note: did you mean 'flush_dcache_page'?
arch/arm/include/asm/cacheflush.h:292:13: note: 'flush_dcache_page' declared here
extern void flush_dcache_page(struct page *);
^
1 error generated.
vim +/flush_dcache_folio +645 fs/iomap/buffered-io.c
640
641 static size_t __iomap_write_end(struct inode *inode, loff_t pos, size_t len,
642 size_t copied, struct folio *folio)
643 {
644 struct iomap_page *iop = to_iomap_page(folio);
> 645 flush_dcache_folio(folio);
646
647 /*
648 * The blocks that were entirely written will now be uptodate, so we
649 * don't have to worry about a readpage reading them and overwriting a
650 * partial write. However if we have encountered a short write and only
651 * partially written into a block, it will not be marked uptodate, so a
652 * readpage might come in and destroy our partial write.
653 *
654 * Do the simplest thing, and just treat any short write to a non
655 * uptodate page as a zero-length write, and force the caller to redo
656 * the whole thing.
657 */
658 if (unlikely(copied < len && !folio_test_uptodate(folio)))
659 return 0;
660 iomap_set_range_uptodate(folio, iop, offset_in_folio(folio, pos), len);
661 filemap_dirty_folio(inode->i_mapping, folio);
662 return copied;
663 }
664
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[cifs:for-next 8/9] fs/cifs/smb2transport.c:419:15: warning: variable 'chan_index' is uninitialized when used here
by kernel test robot
tree: git://git.samba.org/sfrench/cifs-2.6.git for-next
head: 40dad7597b6bdbadb33434f1a667c43d6869a66d
commit: f3ce4fce27131ebec2c123ee6c2a4aee477f4b38 [8/9] smb3: add minor debug statement
config: x86_64-randconfig-r006-20210715 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0e49c54a8cbd3e779e5526a5888c683c01cc3c50)
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 remote add cifs git://git.samba.org/sfrench/cifs-2.6.git
git fetch --no-tags cifs for-next
git checkout f3ce4fce27131ebec2c123ee6c2a4aee477f4b38
# 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 >>):
>> fs/cifs/smb2transport.c:419:15: warning: variable 'chan_index' is uninitialized when used here [-Wuninitialized]
__func__, chan_index);
^~~~~~~~~~
fs/cifs/cifs_debug.h:79:43: note: expanded from macro 'cifs_dbg'
cifs_dbg_func(ratelimited, type, fmt, ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/cifs_debug.h:66:23: note: expanded from macro 'cifs_dbg_func'
__FILE__, ##__VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:584:50: note: expanded from macro 'pr_debug_ratelimited'
__dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \
^~~~~~~~~~~
fs/cifs/smb2transport.c:401:25: note: initialize the variable 'chan_index' to silence this warning
unsigned int chan_index;
^
= 0
1 warning generated.
vim +/chan_index +419 fs/cifs/smb2transport.c
392
393 static int
394 generate_smb3signingkey(struct cifs_ses *ses,
395 const struct derivation_triplet *ptriplet)
396 {
397 int rc;
398 #ifdef CONFIG_CIFS_DEBUG_DUMP_KEYS
399 struct TCP_Server_Info *server = ses->server;
400 #endif
401 unsigned int chan_index;
402
403 /*
404 * All channels use the same encryption/decryption keys but
405 * they have their own signing key.
406 *
407 * When we generate the keys, check if it is for a new channel
408 * (binding) in which case we only need to generate a signing
409 * key and store it in the channel as to not overwrite the
410 * master connection signing key stored in the session
411 */
412
413 if (ses->binding) {
414 rc = generate_key(ses, ptriplet->signing.label,
415 ptriplet->signing.context,
416 cifs_ses_binding_channel(ses)->signkey,
417 SMB3_SIGN_KEY_SIZE);
418 cifs_dbg(FYI, "%s: Generated key for chan %u\n",
> 419 __func__, chan_index);
420 if (rc)
421 return rc;
422 } else {
423 rc = generate_key(ses, ptriplet->signing.label,
424 ptriplet->signing.context,
425 ses->smb3signingkey,
426 SMB3_SIGN_KEY_SIZE);
427 if (rc)
428 return rc;
429
430 memcpy(ses->chans[0].signkey, ses->smb3signingkey,
431 SMB3_SIGN_KEY_SIZE);
432
433 rc = generate_key(ses, ptriplet->encryption.label,
434 ptriplet->encryption.context,
435 ses->smb3encryptionkey,
436 SMB3_ENC_DEC_KEY_SIZE);
437 rc = generate_key(ses, ptriplet->decryption.label,
438 ptriplet->decryption.context,
439 ses->smb3decryptionkey,
440 SMB3_ENC_DEC_KEY_SIZE);
441 if (rc)
442 return rc;
443 }
444
445 if (rc)
446 return rc;
447
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[mcgrof-next:20210708-block-fixes-v2 41/89] drivers/block/rsxx/dev.c:200:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20210708-block-fixes-v2
head: db0174e39de7dc941f158ce53ee3af95b1635b62
commit: 2903597b8e65371aac6825294c9d99c2c36c94fd [41/89] block/rsxx: add error handling support for add_disk()
config: x86_64-randconfig-a001-20210715 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 0e49c54a8cbd3e779e5526a5888c683c01cc3c50)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20210708-block-fixes-v2
git checkout 2903597b8e65371aac6825294c9d99c2c36c94fd
# 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 >>):
>> drivers/block/rsxx/dev.c:200:6: warning: variable 'err' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (enable_blkdev) {
^~~~~~~~~~~~~
drivers/block/rsxx/dev.c:212:6: note: uninitialized use occurs here
if (err)
^~~
drivers/block/rsxx/dev.c:200:2: note: remove the 'if' if its condition is always true
if (enable_blkdev) {
^~~~~~~~~~~~~~~~~~~
drivers/block/rsxx/dev.c:195:9: note: initialize the variable 'err' to silence this warning
int err;
^
= 0
1 warning generated.
vim +200 drivers/block/rsxx/dev.c
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 192
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 193 int rsxx_attach_dev(struct rsxx_cardinfo *card)
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 194 {
2903597b8e6537 Luis Chamberlain 2021-07-13 195 int err;
2903597b8e6537 Luis Chamberlain 2021-07-13 196
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 197 mutex_lock(&card->dev_lock);
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 198
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 199 /* The block device requires the stripe size from the config. */
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 @200 if (enable_blkdev) {
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 201 if (card->config_valid)
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 202 set_capacity(card->gendisk, card->size8 >> 9);
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 203 else
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 204 set_capacity(card->gendisk, 0);
2903597b8e6537 Luis Chamberlain 2021-07-13 205 err = device_add_disk(CARD_TO_DEV(card), card->gendisk, NULL);
2903597b8e6537 Luis Chamberlain 2021-07-13 206 if (err == 0)
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 207 card->bdev_attached = 1;
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 208 }
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 209
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 210 mutex_unlock(&card->dev_lock);
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 211
2903597b8e6537 Luis Chamberlain 2021-07-13 212 if (err)
2903597b8e6537 Luis Chamberlain 2021-07-13 213 blk_cleanup_disk(card->gendisk);
2903597b8e6537 Luis Chamberlain 2021-07-13 214
2903597b8e6537 Luis Chamberlain 2021-07-13 215 return err;
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 216 }
8722ff8cdbfac9 josh.h.morris(a)us.ibm.com 2013-02-05 217
:::::: The code at line 200 was first introduced by commit
:::::: 8722ff8cdbfac9c1b20e67bb067b455c48cb8e93 block: IBM RamSan 70/80 device driver
:::::: TO: josh.h.morris(a)us.ibm.com <josh.h.morris(a)us.ibm.com>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[shenki:v5.10.50-openpower1 1/3] drivers/usb/host/xhci.c:798:2: error: implicit declaration of function 'pci_reset_function_locked'
by kernel test robot
tree: https://github.com/shenki/linux v5.10.50-openpower1
head: 24b277f206d6e8e9f86adaca0f654d7e7d62c7c7
commit: e986a047f6e95986db0f0c7eb5dfc07773ca91cb [1/3] xhci: Reset controller on xhci shutdown
config: openrisc-randconfig-p002-20210715 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.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
# https://github.com/shenki/linux/commit/e986a047f6e95986db0f0c7eb5dfc07773...
git remote add shenki https://github.com/shenki/linux
git fetch --no-tags shenki v5.10.50-openpower1
git checkout e986a047f6e95986db0f0c7eb5dfc07773ca91cb
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=openrisc
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 >>):
drivers/usb/host/xhci.c: In function 'xhci_shutdown':
>> drivers/usb/host/xhci.c:798:2: error: implicit declaration of function 'pci_reset_function_locked' [-Werror=implicit-function-declaration]
798 | pci_reset_function_locked(to_pci_dev(hcd->self.sysdev));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/pci_reset_function_locked +798 drivers/usb/host/xhci.c
767
768 /*
769 * Shutdown HC (not bus-specific)
770 *
771 * This is called when the machine is rebooting or halting. We assume that the
772 * machine will be powered off, and the HC's internal state will be reset.
773 * Don't bother to free memory.
774 *
775 * This will only ever be called with the main usb_hcd (the USB3 roothub).
776 */
777 void xhci_shutdown(struct usb_hcd *hcd)
778 {
779 struct xhci_hcd *xhci = hcd_to_xhci(hcd);
780
781 if (xhci->quirks & XHCI_SPURIOUS_REBOOT)
782 usb_disable_xhci_ports(to_pci_dev(hcd->self.sysdev));
783
784 spin_lock_irq(&xhci->lock);
785 xhci_halt(xhci);
786 /* Workaround for spurious wakeups at shutdown with HSW */
787 if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
788 xhci_reset(xhci);
789 spin_unlock_irq(&xhci->lock);
790
791 xhci_cleanup_msix(xhci);
792
793 xhci_dbg_trace(xhci, trace_xhci_dbg_init,
794 "xhci_shutdown completed - status = %x",
795 readl(&xhci->op_regs->status));
796
797 /* TI XHCI controllers do not come back after kexec without this hack */
> 798 pci_reset_function_locked(to_pci_dev(hcd->self.sysdev));
799 }
800 EXPORT_SYMBOL_GPL(xhci_shutdown);
801
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-4.19 47/279] arch/powerpc/kernel/stacktrace.c:222:5: error: implicit declaration of function 'udelay'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-4.19
head: 1fb43d741d36cf1330749f79899cce2a47fda8bf
commit: 6d5b906ef8333f63970cb9d5218986b5efa28b9a [47/279] powerpc/stacktrace: Fix spurious "stale" traces in raise_backtrace_ipi()
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 10.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
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-4.19
git checkout 6d5b906ef8333f63970cb9d5218986b5efa28b9a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=powerpc
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 >>):
In file included from arch/powerpc/include/asm/book3s/64/mmu-hash.h:24,
from arch/powerpc/include/asm/book3s/64/mmu.h:30,
from arch/powerpc/include/asm/mmu.h:313,
from arch/powerpc/include/asm/lppaca.h:36,
from arch/powerpc/include/asm/paca.h:21,
from arch/powerpc/include/asm/hw_irq.h:64,
from arch/powerpc/include/asm/irqflags.h:12,
from include/linux/irqflags.h:16,
from include/linux/spinlock.h:54,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/mm.h:10,
from include/linux/kallsyms.h:12,
from arch/powerpc/kernel/stacktrace.c:12:
arch/powerpc/include/asm/book3s/64/pgtable.h:1292:15: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
1292 | static inline const int pud_pfn(pud_t pud)
| ^~~~~
arch/powerpc/kernel/stacktrace.c: In function 'raise_backtrace_ipi':
>> arch/powerpc/kernel/stacktrace.c:222:5: error: implicit declaration of function 'udelay' [-Werror=implicit-function-declaration]
222 | udelay(1);
| ^~~~~~
cc1: some warnings being treated as errors
vim +/udelay +222 arch/powerpc/kernel/stacktrace.c
204
205 static void raise_backtrace_ipi(cpumask_t *mask)
206 {
207 struct paca_struct *p;
208 unsigned int cpu;
209 u64 delay_us;
210
211 for_each_cpu(cpu, mask) {
212 if (cpu == smp_processor_id()) {
213 handle_backtrace_ipi(NULL);
214 continue;
215 }
216
217 delay_us = 5 * USEC_PER_SEC;
218
219 if (smp_send_safe_nmi_ipi(cpu, handle_backtrace_ipi, delay_us)) {
220 // Now wait up to 5s for the other CPU to do its backtrace
221 while (cpumask_test_cpu(cpu, mask) && delay_us) {
> 222 udelay(1);
223 delay_us--;
224 }
225
226 // Other CPU cleared itself from the mask
227 if (delay_us)
228 continue;
229 }
230
231 p = paca_ptrs[cpu];
232
233 cpumask_clear_cpu(cpu, mask);
234
235 pr_warn("CPU %d didn't respond to backtrace IPI, inspecting paca.\n", cpu);
236 if (!virt_addr_valid(p)) {
237 pr_warn("paca pointer appears corrupt? (%px)\n", p);
238 continue;
239 }
240
241 pr_warn("irq_soft_mask: 0x%02x in_mce: %d in_nmi: %d",
242 p->irq_soft_mask, p->in_mce, p->in_nmi);
243
244 if (virt_addr_valid(p->__current))
245 pr_cont(" current: %d (%s)\n", p->__current->pid,
246 p->__current->comm);
247 else
248 pr_cont(" current pointer corrupt? (%px)\n", p->__current);
249
250 pr_warn("Back trace of paca->saved_r1 (0x%016llx) (possibly stale):\n", p->saved_r1);
251 show_stack(p->__current, (unsigned long *)p->saved_r1);
252 }
253 }
254
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months
[sashal-linux-stable:pending-5.13 106/176] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:154:26: error: 'const struct stream_encoder_funcs' has no member named 'get_fifo_cal_average_level'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.13
head: 9e20d32ceee869b30775be931beb33f561a4f955
commit: 6fbba0e81319c3e92bc038421cb1750160cb74bd [106/176] drm/amd/display: Cover edge-case when changing DISPCLK WDIVIDER
config: i386-randconfig-a003-20210715 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.13
git checkout 6fbba0e81319c3e92bc038421cb1750160cb74bd
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 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 >>):
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c: In function 'dcn20_update_clocks_update_dentist':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:154:26: error: 'const struct stream_encoder_funcs' has no member named 'get_fifo_cal_average_level'
154 | if (!stream_enc->funcs->get_fifo_cal_average_level)
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:156:34: error: 'const struct stream_encoder_funcs' has no member named 'get_fifo_cal_average_level'
156 | fifo_level = stream_enc->funcs->get_fifo_cal_average_level(
| ^~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:159:15: error: 'const struct dccg_funcs' has no member named 'set_fifo_errdet_ovr_en'
159 | dccg->funcs->set_fifo_errdet_ovr_en(
| ^~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:163:16: error: 'const struct dccg_funcs' has no member named 'otg_drop_pixel'
163 | dccg->funcs->otg_drop_pixel(
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:166:15: error: 'const struct dccg_funcs' has no member named 'set_fifo_errdet_ovr_en'
166 | dccg->funcs->set_fifo_errdet_ovr_en(
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:185:26: error: 'const struct stream_encoder_funcs' has no member named 'get_fifo_cal_average_level'
185 | if (!stream_enc->funcs->get_fifo_cal_average_level)
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:187:34: error: 'const struct stream_encoder_funcs' has no member named 'get_fifo_cal_average_level'
187 | fifo_level = stream_enc->funcs->get_fifo_cal_average_level(
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:190:15: error: 'const struct dccg_funcs' has no member named 'set_fifo_errdet_ovr_en'
190 | dccg->funcs->set_fifo_errdet_ovr_en(dccg, true);
| ^~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:192:16: error: 'const struct dccg_funcs' has no member named 'otg_add_pixel'
192 | dccg->funcs->otg_add_pixel(dccg,
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:194:15: error: 'const struct dccg_funcs' has no member named 'set_fifo_errdet_ovr_en'
194 | dccg->funcs->set_fifo_errdet_ovr_en(dccg, false);
| ^~
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c: At top level:
drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c:400:6: warning: no previous prototype for 'dcn2_enable_pme_wa' [-Wmissing-prototypes]
400 | void dcn2_enable_pme_wa(struct clk_mgr *clk_mgr_base)
| ^~~~~~~~~~~~~~~~~~
vim +154 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
125
126 void dcn20_update_clocks_update_dentist(struct clk_mgr_internal *clk_mgr, struct dc_state *context)
127 {
128 int dpp_divider = DENTIST_DIVIDER_RANGE_SCALE_FACTOR
129 * clk_mgr->base.dentist_vco_freq_khz / clk_mgr->base.clks.dppclk_khz;
130 int disp_divider = DENTIST_DIVIDER_RANGE_SCALE_FACTOR
131 * clk_mgr->base.dentist_vco_freq_khz / clk_mgr->base.clks.dispclk_khz;
132
133 uint32_t dppclk_wdivider = dentist_get_did_from_divider(dpp_divider);
134 uint32_t dispclk_wdivider = dentist_get_did_from_divider(disp_divider);
135 uint32_t current_dispclk_wdivider;
136 uint32_t i;
137
138 REG_GET(DENTIST_DISPCLK_CNTL,
139 DENTIST_DISPCLK_WDIVIDER, ¤t_dispclk_wdivider);
140
141 /* When changing divider to or from 127, some extra programming is required to prevent corruption */
142 if (current_dispclk_wdivider == 127 && dispclk_wdivider != 127) {
143 for (i = 0; i < clk_mgr->base.ctx->dc->res_pool->pipe_count; i++) {
144 struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
145 uint32_t fifo_level;
146 struct dccg *dccg = clk_mgr->base.ctx->dc->res_pool->dccg;
147 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc;
148 int32_t N;
149 int32_t j;
150
151 if (!pipe_ctx->stream)
152 continue;
153 /* Virtual encoders don't have this function */
> 154 if (!stream_enc->funcs->get_fifo_cal_average_level)
155 continue;
156 fifo_level = stream_enc->funcs->get_fifo_cal_average_level(
157 stream_enc);
158 N = fifo_level / 4;
> 159 dccg->funcs->set_fifo_errdet_ovr_en(
160 dccg,
161 true);
162 for (j = 0; j < N - 4; j++)
> 163 dccg->funcs->otg_drop_pixel(
164 dccg,
165 pipe_ctx->stream_res.tg->inst);
166 dccg->funcs->set_fifo_errdet_ovr_en(
167 dccg,
168 false);
169 }
170 } else if (dispclk_wdivider == 127 && current_dispclk_wdivider != 127) {
171 REG_UPDATE(DENTIST_DISPCLK_CNTL,
172 DENTIST_DISPCLK_WDIVIDER, 126);
173 REG_WAIT(DENTIST_DISPCLK_CNTL, DENTIST_DISPCLK_CHG_DONE, 1, 50, 100);
174 for (i = 0; i < clk_mgr->base.ctx->dc->res_pool->pipe_count; i++) {
175 struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i];
176 struct dccg *dccg = clk_mgr->base.ctx->dc->res_pool->dccg;
177 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc;
178 uint32_t fifo_level;
179 int32_t N;
180 int32_t j;
181
182 if (!pipe_ctx->stream)
183 continue;
184 /* Virtual encoders don't have this function */
> 185 if (!stream_enc->funcs->get_fifo_cal_average_level)
186 continue;
187 fifo_level = stream_enc->funcs->get_fifo_cal_average_level(
188 stream_enc);
189 N = fifo_level / 4;
190 dccg->funcs->set_fifo_errdet_ovr_en(dccg, true);
191 for (j = 0; j < 12 - N; j++)
> 192 dccg->funcs->otg_add_pixel(dccg,
193 pipe_ctx->stream_res.tg->inst);
194 dccg->funcs->set_fifo_errdet_ovr_en(dccg, false);
195 }
196 }
197
198 REG_UPDATE(DENTIST_DISPCLK_CNTL,
199 DENTIST_DISPCLK_WDIVIDER, dispclk_wdivider);
200 // REG_WAIT(DENTIST_DISPCLK_CNTL, DENTIST_DISPCLK_CHG_DONE, 1, 5, 100);
201 REG_UPDATE(DENTIST_DISPCLK_CNTL,
202 DENTIST_DPPCLK_WDIVIDER, dppclk_wdivider);
203 REG_WAIT(DENTIST_DISPCLK_CNTL, DENTIST_DPPCLK_CHG_DONE, 1, 5, 100);
204 }
205
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 2 months