CC: [email protected]
CC: [email protected]
TO: Dmitry Osipenko <[email protected]>
CC: Vinod Koul <[email protected]>

Hi Dmitry,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   4d41ead6ead97c3730bbd186a601a64828668f01
commit: 6c41ac96ad9217fe2a6f31c9dcc31b97365b21f6 dmaengine: tegra-apb: Support 
COMPILE_TEST
date:   6 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 6 months ago
config: microblaze-randconfig-m031-20200828 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

New smatch warnings:
drivers/dma/tegra20-apb-dma.c:670 tegra_dma_tasklet() error: double unlocked 
'tdc->lock' (orig line 665)
drivers/dma/tegra20-apb-dma.c:1105 tegra_dma_prep_slave_sg() error: double 
unlocked 'tdc->lock' (orig line 1102)
drivers/dma/tegra20-apb-dma.c:1242 tegra_dma_prep_dma_cyclic() error: double 
unlocked 'tdc->lock' (orig line 1239)

Old smatch warnings:
arch/microblaze/include/asm/thread_info.h:94 current_thread_info() error: 
uninitialized symbol 'sp'.
drivers/dma/tegra20-apb-dma.c:1139 tegra_dma_prep_slave_sg() error: double 
unlocked 'tdc->lock' (orig line 1102)
drivers/dma/tegra20-apb-dma.c:1276 tegra_dma_prep_dma_cyclic() error: double 
unlocked 'tdc->lock' (orig line 1239)

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6c41ac96ad9217fe2a6f31c9dcc31b97365b21f6
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6c41ac96ad9217fe2a6f31c9dcc31b97365b21f6
vim +670 drivers/dma/tegra20-apb-dma.c

ec8a1586780cbb Laxman Dewangan 2012-06-06  646  
ec8a1586780cbb Laxman Dewangan 2012-06-06  647  static void 
tegra_dma_tasklet(unsigned long data)
ec8a1586780cbb Laxman Dewangan 2012-06-06  648  {
ec8a1586780cbb Laxman Dewangan 2012-06-06  649          struct 
tegra_dma_channel *tdc = (struct tegra_dma_channel *)data;
370c0446af5e3c Dave Jiang      2016-07-20  650          struct 
dmaengine_desc_callback cb;
ec8a1586780cbb Laxman Dewangan 2012-06-06  651          struct tegra_dma_desc 
*dma_desc;
3964293aecf9c6 Dmitry Osipenko 2020-02-09  652          unsigned int cb_count;
ec8a1586780cbb Laxman Dewangan 2012-06-06  653          unsigned long flags;
ec8a1586780cbb Laxman Dewangan 2012-06-06  654  
ec8a1586780cbb Laxman Dewangan 2012-06-06  655          
spin_lock_irqsave(&tdc->lock, flags);
ec8a1586780cbb Laxman Dewangan 2012-06-06  656          while 
(!list_empty(&tdc->cb_desc)) {
3964293aecf9c6 Dmitry Osipenko 2020-02-09  657                  dma_desc = 
list_first_entry(&tdc->cb_desc, typeof(*dma_desc),
3964293aecf9c6 Dmitry Osipenko 2020-02-09  658                                  
            cb_node);
ec8a1586780cbb Laxman Dewangan 2012-06-06  659                  
list_del(&dma_desc->cb_node);
370c0446af5e3c Dave Jiang      2016-07-20  660                  
dmaengine_desc_get_callback(&dma_desc->txd, &cb);
ec8a1586780cbb Laxman Dewangan 2012-06-06  661                  cb_count = 
dma_desc->cb_count;
ec8a1586780cbb Laxman Dewangan 2012-06-06  662                  
dma_desc->cb_count = 0;
95f295f9fe0816 Ben Dooks       2018-11-21  663                  
trace_tegra_dma_complete_cb(&tdc->dma_chan, cb_count,
95f295f9fe0816 Ben Dooks       2018-11-21  664                                  
            cb.callback);
ec8a1586780cbb Laxman Dewangan 2012-06-06 @665                  
spin_unlock_irqrestore(&tdc->lock, flags);
370c0446af5e3c Dave Jiang      2016-07-20  666                  while 
(cb_count--)
370c0446af5e3c Dave Jiang      2016-07-20  667                          
dmaengine_desc_callback_invoke(&cb, NULL);
ec8a1586780cbb Laxman Dewangan 2012-06-06  668                  
spin_lock_irqsave(&tdc->lock, flags);
ec8a1586780cbb Laxman Dewangan 2012-06-06  669          }
ec8a1586780cbb Laxman Dewangan 2012-06-06 @670          
spin_unlock_irqrestore(&tdc->lock, flags);
ec8a1586780cbb Laxman Dewangan 2012-06-06  671  }
ec8a1586780cbb Laxman Dewangan 2012-06-06  672  

:::::: The code at line 670 was first introduced by commit
:::::: ec8a1586780cbb437aeb2006957c5bbe113c7046 dma: tegra: add dmaengine based 
dma driver

:::::: TO: Laxman Dewangan <[email protected]>
:::::: CC: Vinod Koul <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to