The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Philipp Puschmann <philipp.puschmann@emlix.com>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	yibin.gong@nxp.com, fugang.duan@nxp.com, l.stach@pengutronix.de,
	dan.j.williams@intel.com, vkoul@kernel.org, shawnguo@kernel.org,
	s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, linux-imx@nxp.com, dmaengine@vger.kernel.or,
	linux-arm-kernel@lists.infradead.org,
	Philipp Puschmann <philipp.puschmann@emlix.com>
Subject: Re: [PATCH v2 1/3] dmaengine: imx-sdma: fix buffer ownership
Date: Sat, 21 Sep 2019 23:15:56 +0800	[thread overview]
Message-ID: <20190921151556.GF13091@xsang-OptiPlex-9020> (raw)
In-Reply-To: <20190919102319.23368-2-philipp.puschmann@emlix.com>

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

Hi Philipp,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3 next-20190918]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Philipp-Puschmann/dmaengine-imx-sdma-fix-buffer-ownership/20190919-182516
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.4.0 make.cross ARCH=arm 
:::::: branch date: 4 hours ago
:::::: commit date: 4 hours ago

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/dma/imx-sdma.c: In function 'sdma_update_channel_loop':
>> drivers/dma/imx-sdma.c:819:3: error: implicit declaration of function 'dma_wb'; did you mean 'dma_wmb'? [-Werror=implicit-function-declaration]
      dma_wb();
      ^~~~~~
      dma_wmb
   cc1: some warnings being treated as errors

# https://github.com/0day-ci/linux/commit/750aab0984840c5966a75794c457c1e79e88d34e
git remote add linux-review https://github.com/0day-ci/linux
git remote update linux-review
git checkout 750aab0984840c5966a75794c457c1e79e88d34e
vim +819 drivers/dma/imx-sdma.c

57b772b86871e0 Robin Gong               2018-06-20  774  
d1a792f3b4072b Russell King - ARM Linux 2014-06-25  775  static void sdma_update_channel_loop(struct sdma_channel *sdmac)
d1a792f3b4072b Russell King - ARM Linux 2014-06-25  776  {
1ec1e82f2510e2 Sascha Hauer             2010-09-30  777  	struct sdma_buffer_descriptor *bd;
5881826ded79cf Nandor Han               2016-08-08  778  	int error = 0;
5881826ded79cf Nandor Han               2016-08-08  779  	enum dma_status	old_status = sdmac->status;
1ec1e82f2510e2 Sascha Hauer             2010-09-30  780  
1ec1e82f2510e2 Sascha Hauer             2010-09-30  781  	/*
1ec1e82f2510e2 Sascha Hauer             2010-09-30  782  	 * loop mode. Iterate over descriptors, re-setup them and
1ec1e82f2510e2 Sascha Hauer             2010-09-30  783  	 * call callback function.
1ec1e82f2510e2 Sascha Hauer             2010-09-30  784  	 */
57b772b86871e0 Robin Gong               2018-06-20  785  	while (sdmac->desc) {
76c33d27073e29 Sascha Hauer             2018-06-20  786  		struct sdma_desc *desc = sdmac->desc;
76c33d27073e29 Sascha Hauer             2018-06-20  787  
76c33d27073e29 Sascha Hauer             2018-06-20  788  		bd = &desc->bd[desc->buf_tail];
1ec1e82f2510e2 Sascha Hauer             2010-09-30  789  
1ec1e82f2510e2 Sascha Hauer             2010-09-30  790  		if (bd->mode.status & BD_DONE)
1ec1e82f2510e2 Sascha Hauer             2010-09-30  791  			break;
1ec1e82f2510e2 Sascha Hauer             2010-09-30  792  
5881826ded79cf Nandor Han               2016-08-08  793  		if (bd->mode.status & BD_RROR) {
5881826ded79cf Nandor Han               2016-08-08  794  			bd->mode.status &= ~BD_RROR;
1ec1e82f2510e2 Sascha Hauer             2010-09-30  795  			sdmac->status = DMA_ERROR;
5881826ded79cf Nandor Han               2016-08-08  796  			error = -EIO;
5881826ded79cf Nandor Han               2016-08-08  797  		}
1ec1e82f2510e2 Sascha Hauer             2010-09-30  798  
5881826ded79cf Nandor Han               2016-08-08  799  	       /*
5881826ded79cf Nandor Han               2016-08-08  800  		* We use bd->mode.count to calculate the residue, since contains
5881826ded79cf Nandor Han               2016-08-08  801  		* the number of bytes present in the current buffer descriptor.
5881826ded79cf Nandor Han               2016-08-08  802  		*/
5881826ded79cf Nandor Han               2016-08-08  803  
76c33d27073e29 Sascha Hauer             2018-06-20  804  		desc->chn_real_count = bd->mode.count;
76c33d27073e29 Sascha Hauer             2018-06-20  805  		bd->mode.count = desc->period_len;
76c33d27073e29 Sascha Hauer             2018-06-20  806  		desc->buf_ptail = desc->buf_tail;
76c33d27073e29 Sascha Hauer             2018-06-20  807  		desc->buf_tail = (desc->buf_tail + 1) % desc->num_bd;
15f30f51311152 Nandor Han               2016-08-08  808  
15f30f51311152 Nandor Han               2016-08-08  809  		/*
15f30f51311152 Nandor Han               2016-08-08  810  		 * The callback is called from the interrupt context in order
15f30f51311152 Nandor Han               2016-08-08  811  		 * to reduce latency and to avoid the risk of altering the
15f30f51311152 Nandor Han               2016-08-08  812  		 * SDMA transaction status by the time the client tasklet is
15f30f51311152 Nandor Han               2016-08-08  813  		 * executed.
15f30f51311152 Nandor Han               2016-08-08  814  		 */
57b772b86871e0 Robin Gong               2018-06-20  815  		spin_unlock(&sdmac->vc.lock);
57b772b86871e0 Robin Gong               2018-06-20  816  		dmaengine_desc_get_callback_invoke(&desc->vd.tx, NULL);
57b772b86871e0 Robin Gong               2018-06-20  817  		spin_lock(&sdmac->vc.lock);
15f30f51311152 Nandor Han               2016-08-08  818  
750aab0984840c Philipp Puschmann        2019-09-19 @819  		dma_wb();
750aab0984840c Philipp Puschmann        2019-09-19  820  		bd->mode.status |= BD_DONE;
750aab0984840c Philipp Puschmann        2019-09-19  821  
5881826ded79cf Nandor Han               2016-08-08  822  		if (error)
5881826ded79cf Nandor Han               2016-08-08  823  			sdmac->status = old_status;
1ec1e82f2510e2 Sascha Hauer             2010-09-30  824  	}
1ec1e82f2510e2 Sascha Hauer             2010-09-30  825  }
1ec1e82f2510e2 Sascha Hauer             2010-09-30  826  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

  parent reply	other threads:[~2019-09-21 15:10 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-11 14:49 [PATCH 0/4] Fix UART DMA freezes for iMX6 Philipp Puschmann
2019-09-11 14:49 ` [PATCH 1/4] dmaengine: imx-sdma: fix buffer ownership Philipp Puschmann
2019-09-16 14:17   ` Lucas Stach
2019-09-19  9:20     ` Philipp Puschmann
2019-09-11 14:49 ` [PATCH 2/4] dmaengine: imx-sdma: fix dma freezes Philipp Puschmann
2019-09-16 14:22   ` Lucas Stach
2019-09-11 14:49 ` [PATCH 3/4] serial: imx: adapt rx buffer and dma periods Philipp Puschmann
2019-09-16 14:24   ` Lucas Stach
2019-09-11 14:49 ` [PATCH 4/4] dmaengine: imx-sdma: drop redundant variable Philipp Puschmann
2019-09-16 14:30   ` Lucas Stach
2019-09-12 15:31 ` [PATCH 0/4] Fix UART DMA freezes for iMX6 Fabio Estevam
2019-09-12 18:23 ` Fabio Estevam
2019-09-16 13:55   ` Philipp Puschmann
2019-09-16 14:00     ` Fabio Estevam
2019-09-16 14:10     ` [EXT] " Andy Duan
2019-09-16  8:02 ` Robin Gong
2019-09-16 13:41   ` Philipp Puschmann
2019-09-19 10:23 ` [PATCH v2 0/3] Fix UART DMA freezes for i.MX SOCs Philipp Puschmann
2019-09-19 10:23   ` [PATCH v2 1/3] dmaengine: imx-sdma: fix buffer ownership Philipp Puschmann
2019-09-19 10:27     ` Lucas Stach
2019-09-19 10:34       ` Philipp Puschmann
2019-09-21 15:15     ` kbuild test robot [this message]
2019-09-19 10:23   ` [PATCH v2 2/3] dmaengine: imx-sdma: fix dma freezes Philipp Puschmann
2019-09-19 10:23   ` [PATCH v2 3/3] dmaengine: imx-sdma: drop redundant variable Philipp Puschmann
2019-09-19 10:33   ` [PATCH v2 0/3] Fix UART DMA freezes for i.MX SOCs Fabio Estevam
2019-09-19 10:45   ` [PATCH v3 " Philipp Puschmann
2019-09-19 10:45     ` [PATCH v3 1/3] dmaengine: imx-sdma: fix buffer ownership Philipp Puschmann
2019-09-19 11:37       ` Fabio Estevam
2019-09-19 11:42         ` Philipp Puschmann
2019-09-19 10:45     ` [PATCH v3 2/3] dmaengine: imx-sdma: fix dma freezes Philipp Puschmann
2019-09-19 10:45     ` [PATCH v3 3/3] dmaengine: imx-sdma: drop redundant variable Philipp Puschmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190921151556.GF13091@xsang-OptiPlex-9020 \
    --to=lkp@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dmaengine@vger.kernel.or \
    --cc=festevam@gmail.com \
    --cc=fugang.duan@nxp.com \
    --cc=kbuild-all@01.org \
    --cc=kernel@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=philipp.puschmann@emlix.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=vkoul@kernel.org \
    --cc=yibin.gong@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox