All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
@ 2020-12-14 10:34 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2020-12-14 10:34 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3355 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
config: i386-randconfig-m021-20201209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  912  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;
                                                                ^^^^^^^

spin_unlock_irqrestore(&chan->vc.lock, flags);
before returning.

2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34420 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
@ 2020-12-14 10:34 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2020-12-14 10:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3355 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
config: i386-randconfig-m021-20201209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  912  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;
                                                                ^^^^^^^

spin_unlock_irqrestore(&chan->vc.lock, flags);
before returning.

2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34420 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns '&chan->vc.lock'.
@ 2021-07-01 19:14 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-07-01 19:14 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3705 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Sia Jee Heng <jee.heng.sia@intel.com>
CC: "Li, Yifan" <yifan2.li@intel.com>

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
:::::: branch date: 11 months ago
:::::: commit date: 11 months ago
config: i386-randconfig-m021-20210630 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns '&chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  912  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  943  

:::::: The code at line 941 was first introduced by commit
:::::: 1fe20f1b84548bbcf48b6659ea171cd46618ea3a dmaengine: Introduce DW AXI DMAC driver

:::::: TO: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34461 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
@ 2021-02-16  8:51 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2021-02-16  8:51 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3208 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
config: i386-randconfig-m021-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;

unlock and restore IRQs before returning.

2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36970 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
@ 2021-02-16  8:51 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2021-02-16  8:51 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3208 bytes --]

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
config: i386-randconfig-m021-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;

unlock and restore IRQs before returning.

2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36970 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
@ 2021-02-15 18:35 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2021-02-15 18:35 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3702 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Sia Jee Heng <jee.heng.sia@intel.com>
CC: "Li, Yifan" <yifan2.li@intel.com>

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
:::::: branch date: 6 months ago
:::::: commit date: 6 months ago
config: i386-randconfig-m021-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  912  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  943  

:::::: The code at line 941 was first introduced by commit
:::::: 1fe20f1b84548bbcf48b6659ea171cd46618ea3a dmaengine: Introduce DW AXI DMAC driver

:::::: TO: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36970 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
@ 2020-12-12  9:37 kernel test robot
  0 siblings, 0 replies; 7+ messages in thread
From: kernel test robot @ 2020-12-12  9:37 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3702 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Sia Jee Heng <jee.heng.sia@intel.com>
CC: "Li, Yifan" <yifan2.li@intel.com>

tree:   https://github.com/intel/linux-intel-lts.git 5.4/yocto
head:   eeb611e5394c56d45c5cc8f7dc484c9f19e93143
commit: 2baf6e1cd6f179dd497cfc10294920e99bc3a66e [39/1142] dmaengine: dw-axi-dma: support slave dma mode
:::::: branch date: 4 months ago
:::::: commit date: 4 months ago
config: i386-randconfig-m021-20201209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock'.
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'flags'.

vim +941 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c

1fe20f1b84548b Eugeniy Paltsev 2018-03-06  912  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  913  static noinline void axi_chan_handle_err(struct axi_dma_chan *chan, u32 status)
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  914  {
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  915  	struct virt_dma_desc *vd;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  916  	unsigned long flags;
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  917  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  918  	spin_lock_irqsave(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  919  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  920  	axi_chan_disable(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  921  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  922  	/* The bad descriptor currently is in the head of vc list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  923  	vd = vchan_next_desc(&chan->vc);
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  924  	if (!vd)
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  925  		return;
2baf6e1cd6f179 Sia Jee Heng    2020-06-26  926  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  927  	/* Remove the completed descriptor from issued list */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  928  	list_del(&vd->node);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  929  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  930  	/* WARN about bad descriptor */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  931  	dev_err(chan2dev(chan),
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  932  		"Bad descriptor submitted for %s, cookie: %d, irq: 0x%08x\n",
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  933  		axi_chan_name(chan), vd->tx.cookie, status);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  934  	axi_chan_list_dump_lli(chan, vd_to_axi_desc(vd));
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  935  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  936  	vchan_cookie_complete(vd);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  937  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  938  	/* Try to restart the controller */
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  939  	axi_chan_start_first_queued(chan);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  940  
1fe20f1b84548b Eugeniy Paltsev 2018-03-06 @941  	spin_unlock_irqrestore(&chan->vc.lock, flags);
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  942  }
1fe20f1b84548b Eugeniy Paltsev 2018-03-06  943  

:::::: The code at line 941 was first introduced by commit
:::::: 1fe20f1b84548bbcf48b6659ea171cd46618ea3a dmaengine: Introduce DW AXI DMAC driver

:::::: TO: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34420 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-07-01 19:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 10:34 [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock' Dan Carpenter
2020-12-14 10:34 ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2021-07-01 19:14 [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns '&chan->vc.lock' kernel test robot
2021-02-16  8:51 [intel-linux-intel-lts:5.4/yocto 39/1142] drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:941 axi_chan_handle_err() warn: inconsistent returns 'chan->vc.lock' Dan Carpenter
2021-02-16  8:51 ` Dan Carpenter
2021-02-15 18:35 kernel test robot
2020-12-12  9:37 kernel test robot

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.