All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andrea della Porta <andrea.porta@suse.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 02/12] bcm2835-dma: Add proper 40-bit DMA support
Date: Mon, 5 Feb 2024 08:52:21 +0800	[thread overview]
Message-ID: <202402050701.GXVPwpd1-lkp@intel.com> (raw)
In-Reply-To: <eeb94204c30c2182f5ffd3ec083c04399ecdee32.1706948717.git.andrea.porta@suse.com>

Hi Andrea,

kernel test robot noticed the following build warnings:

[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on linus/master v6.8-rc3 next-20240202]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Andrea-della-Porta/bcm2835-dma-Add-support-for-per-channel-flags/20240204-150430
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
patch link:    https://lore.kernel.org/r/eeb94204c30c2182f5ffd3ec083c04399ecdee32.1706948717.git.andrea.porta%40suse.com
patch subject: [PATCH 02/12] bcm2835-dma: Add proper 40-bit DMA support
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240205/202402050701.GXVPwpd1-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240205/202402050701.GXVPwpd1-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402050701.GXVPwpd1-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/dma/bcm2835-dma.c:1175:5: warning: no previous prototype for function 'bcm2711_dma40_memcpy_init' [-Wmissing-prototypes]
   int bcm2711_dma40_memcpy_init(void)
       ^
   drivers/dma/bcm2835-dma.c:1175:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int bcm2711_dma40_memcpy_init(void)
   ^
   static 
>> drivers/dma/bcm2835-dma.c:1190:6: warning: no previous prototype for function 'bcm2711_dma40_memcpy' [-Wmissing-prototypes]
   void bcm2711_dma40_memcpy(dma_addr_t dst, dma_addr_t src, size_t size)
        ^
   drivers/dma/bcm2835-dma.c:1190:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void bcm2711_dma40_memcpy(dma_addr_t dst, dma_addr_t src, size_t size)
   ^
   static 
   2 warnings generated.
--
>> drivers/dma/bcm2835-dma.c:57: warning: Function parameter or struct member 'cfg_data' not described in 'bcm2835_dmadev'


vim +/bcm2711_dma40_memcpy_init +1175 drivers/dma/bcm2835-dma.c

  1174	
> 1175	int bcm2711_dma40_memcpy_init(void)
  1176	{
  1177		if (!memcpy_parent)
  1178			return -EPROBE_DEFER;
  1179	
  1180		if (!memcpy_chan)
  1181			return -EINVAL;
  1182	
  1183		if (!memcpy_scb)
  1184			return -ENOMEM;
  1185	
  1186		return 0;
  1187	}
  1188	EXPORT_SYMBOL(bcm2711_dma40_memcpy_init);
  1189	
> 1190	void bcm2711_dma40_memcpy(dma_addr_t dst, dma_addr_t src, size_t size)
  1191	{
  1192		struct bcm2711_dma40_scb *scb = memcpy_scb;
  1193		unsigned long flags;
  1194	
  1195		if (!scb) {
  1196			pr_err("%s not initialised!\n", __func__);
  1197			return;
  1198		}
  1199	
  1200		spin_lock_irqsave(&memcpy_lock, flags);
  1201	
  1202		scb->ti = 0;
  1203		scb->src = lower_32_bits(src);
  1204		scb->srci = upper_32_bits(src) | BCM2711_DMA40_MEMCPY_XFER_INFO;
  1205		scb->dst = lower_32_bits(dst);
  1206		scb->dsti = upper_32_bits(dst) | BCM2711_DMA40_MEMCPY_XFER_INFO;
  1207		scb->len = size;
  1208		scb->next_cb = 0;
  1209	
  1210		writel((u32)(memcpy_scb_dma >> 5), memcpy_chan + BCM2711_DMA40_CB);
  1211		writel(BCM2711_DMA40_MEMCPY_FLAGS + BCM2711_DMA40_ACTIVE,
  1212		       memcpy_chan + BCM2711_DMA40_CS);
  1213	
  1214		/* Poll for completion */
  1215		while (!(readl(memcpy_chan + BCM2711_DMA40_CS) & BCM2711_DMA40_END))
  1216			cpu_relax();
  1217	
  1218		writel(BCM2711_DMA40_END, memcpy_chan + BCM2711_DMA40_CS);
  1219	
  1220		spin_unlock_irqrestore(&memcpy_lock, flags);
  1221	}
  1222	EXPORT_SYMBOL(bcm2711_dma40_memcpy);
  1223	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2024-02-05  0:52 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-04  6:59 [PATCH 00/12] Add support for BCM2712 DMA engine Andrea della Porta
2024-02-04  6:59 ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 01/12] bcm2835-dma: Add support for per-channel flags Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 02/12] bcm2835-dma: Add proper 40-bit DMA support Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-05  0:52   ` kernel test robot [this message]
2024-02-05  0:52   ` kernel test robot
2024-02-05 18:50   ` Stefan Wahren
2024-02-05 18:50     ` Stefan Wahren
2024-02-06 16:31     ` Dave Stevenson
2024-02-06 16:31       ` Dave Stevenson
2024-02-06 18:08       ` Stefan Wahren
2024-02-06 18:08         ` Stefan Wahren
2024-02-06 18:11         ` Stefan Wahren
2024-02-06 18:11           ` Stefan Wahren
2024-02-09 10:29   ` kernel test robot
2024-02-04  6:59 ` [PATCH 03/12] bcm2835-dma: Add NO_WAIT_RESP, DMA_WIDE_SOURCE and DMA_WIDE_DEST flag Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 04/12] bcm2835-dma: Advertise the full DMA range Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-05 17:55   ` Robin Murphy
2024-02-05 17:55     ` Robin Murphy
2024-03-01 13:55     ` Andrea della Porta
2024-03-01 13:55       ` Andrea della Porta
2024-02-05 18:25   ` Stefan Wahren
2024-02-05 18:25     ` Stefan Wahren
2024-02-04  6:59 ` [PATCH 05/12] bcm2835-dma: Derive slave DMA addresses correctly Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-05 18:03   ` Robin Murphy
2024-02-05 18:03     ` Robin Murphy
2024-02-04  6:59 ` [PATCH 06/12] dmaengine: bcm2835: Use to_bcm2711_cbaddr where relevant Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-04 17:04   ` Florian Fainelli
2024-02-04 17:04     ` Florian Fainelli
2024-02-05 10:25     ` Andrea della Porta
2024-02-05 10:25       ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 07/12] bcm2835-dma: Support dma flags for multi-beat burst Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-07  8:22   ` Vinod Koul
2024-02-07  8:22     ` Vinod Koul
2024-02-04  6:59 ` [PATCH 08/12] bcm2835-dma: Need to keep PROT bits set in CS on 40bit controller Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 09/12] dmaengine: bcm2835: Add BCM2712 support Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 10/12] dmaengine: bcm2835: Support DMA-Lite channels Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-07  8:26   ` Vinod Koul
2024-02-07  8:26     ` Vinod Koul
2024-02-04  6:59 ` [PATCH 11/12] dmaengine: bcm2835: Rename to_bcm2711_cbaddr to to_40bit_cbaddr Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-04  6:59 ` [PATCH 12/12] bcm2835-dma: Fixes for dma_abort Andrea della Porta
2024-02-04  6:59   ` Andrea della Porta
2024-02-05 19:06 ` [PATCH 00/12] Add support for BCM2712 DMA engine Stefan Wahren
2024-02-05 19:06   ` Stefan Wahren
2024-02-07  8:19 ` Vinod Koul
2024-02-07  8:19   ` Vinod Koul
2024-02-07 10:24   ` Andrea della Porta
2024-02-07 10:24     ` Andrea della Porta

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=202402050701.GXVPwpd1-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrea.porta@suse.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.