All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Add Intel LGM soc DMA support
@ 2020-08-14  5:26 Amireddy Mallikarjuna reddy
  2020-08-14  5:26 ` [PATCH v5 1/2] dt-bindings: dma: Add bindings for intel LGM SOC Amireddy Mallikarjuna reddy
  2020-08-14  5:26 ` [PATCH v5 2/2] Add Intel LGM soc DMA support Amireddy Mallikarjuna reddy
  0 siblings, 2 replies; 25+ messages in thread
From: Amireddy Mallikarjuna reddy @ 2020-08-14  5:26 UTC (permalink / raw)
  To: dmaengine, vkoul, devicetree, robh+dt
  Cc: linux-kernel, andriy.shevchenko, cheol.yong.kim, qi-ming.wu,
	chuanhua.lei, mallikarjunax.reddy, malliamireddy009

Add DMA controller driver for Lightning Mountain(LGM) family of SoCs.

The main function of the DMA controller is the transfer of data from/to any
DPlus compliant peripheral to/from the memory. A memory to memory copy
capability can also be configured.
This ldma driver is used for configure the device and channnels for data
and control paths.

These controllers provide DMA capabilities for a variety of on-chip
devices such as SSC, HSNAND and GSWIP.

-------------
Future Plans:
-------------
LGM SOC also supports Hardware Memory Copy engine.
The role of the HW Memory copy engine is to offload memory copy operations
from the CPU.

Amireddy Mallikarjuna reddy (2):
  dt-bindings: dma: Add bindings for intel LGM SOC
  Add Intel LGM soc DMA support.

 .../devicetree/bindings/dma/intel,ldma.yaml        |  319 ++++
 drivers/dma/Kconfig                                |    2 +
 drivers/dma/Makefile                               |    1 +
 drivers/dma/lgm/Kconfig                            |    9 +
 drivers/dma/lgm/Makefile                           |    2 +
 drivers/dma/lgm/lgm-dma.c                          | 1944 ++++++++++++++++++++
 include/linux/dma/lgm_dma.h                        |   27 +
 7 files changed, 2304 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/intel,ldma.yaml
 create mode 100644 drivers/dma/lgm/Kconfig
 create mode 100644 drivers/dma/lgm/Makefile
 create mode 100644 drivers/dma/lgm/lgm-dma.c
 create mode 100644 include/linux/dma/lgm_dma.h

-- 
2.11.0


^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [PATCH v5 2/2] Add Intel LGM soc DMA support.
@ 2020-08-27  3:42 kernel test robot
  0 siblings, 0 replies; 25+ messages in thread
From: kernel test robot @ 2020-08-27  3:42 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
In-Reply-To: <cdd26d104000c060d85a0c5f8abe8492e4103de5.1597381889.git.mallikarjunax.reddy@linux.intel.com>
References: <cdd26d104000c060d85a0c5f8abe8492e4103de5.1597381889.git.mallikarjunax.reddy@linux.intel.com>
TO: Amireddy Mallikarjuna reddy <mallikarjunax.reddy@linux.intel.com>
TO: dmaengine(a)vger.kernel.org
TO: vkoul(a)kernel.org
TO: devicetree(a)vger.kernel.org
TO: robh+dt(a)kernel.org
CC: linux-kernel(a)vger.kernel.org
CC: andriy.shevchenko(a)intel.com
CC: cheol.yong.kim(a)intel.com
CC: qi-ming.wu(a)intel.com
CC: chuanhua.lei(a)linux.intel.com
CC: mallikarjunax.reddy(a)linux.intel.com

Hi Amireddy,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on vkoul-dmaengine/next]
[also build test WARNING on v5.9-rc2 next-20200826]
[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/Amireddy-Mallikarjuna-reddy/Add-Intel-LGM-soc-DMA-support/20200814-134726
base:   https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
:::::: branch date: 13 days ago
:::::: commit date: 13 days ago
config: i386-randconfig-c001-20200826 (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: Julia Lawall <julia.lawall@lip6.fr>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/dma/lgm/lgm-dma.c:1285:4-10: preceding lock on line 1277

# https://github.com/0day-ci/linux/commit/db4132717064573dc2ae130ef1bc71bcee3bb33a
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Amireddy-Mallikarjuna-reddy/Add-Intel-LGM-soc-DMA-support/20200814-134726
git checkout db4132717064573dc2ae130ef1bc71bcee3bb33a
vim +1285 drivers/dma/lgm/lgm-dma.c

db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1269  
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1270  static void dma_issue_pending(struct dma_chan *chan)
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1271  {
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1272  	struct ldma_chan *c = to_ldma_chan(chan);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1273  	struct ldma_dev *d = to_ldma_dev(c->vchan.chan.device);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1274  	unsigned long flags;
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1275  
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1276  	if (d->ver == DMA_VER22) {
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14 @1277  		spin_lock_irqsave(&c->vchan.lock, flags);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1278  		if (vchan_issue_pending(&c->vchan)) {
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1279  			struct virt_dma_desc *vdesc;
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1280  
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1281  			/* Get the next descriptor */
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1282  			vdesc = vchan_next_desc(&c->vchan);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1283  			if (!vdesc) {
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1284  				c->ds = NULL;
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14 @1285  				return;
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1286  			}
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1287  			list_del(&vdesc->node);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1288  			c->ds = to_lgm_dma_desc(vdesc);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1289  			spin_unlock_irqrestore(&c->vchan.lock, flags);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1290  			ldma_chan_desc_hw_cfg(c, c->ds->desc_phys, c->ds->desc_cnt);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1291  			ldma_chan_irq_en(c);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1292  		}
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1293  	}
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1294  	ldma_chan_on(c);
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1295  }
db413271706457 Amireddy Mallikarjuna reddy 2020-08-14  1296  

---
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: 35936 bytes --]

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

end of thread, other threads:[~2020-09-07  7:32 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-14  5:26 [PATCH v5 0/2] Add Intel LGM soc DMA support Amireddy Mallikarjuna reddy
2020-08-14  5:26 ` [PATCH v5 1/2] dt-bindings: dma: Add bindings for intel LGM SOC Amireddy Mallikarjuna reddy
2020-08-14 20:32   ` Rob Herring
2020-08-18  7:00     ` Reddy, MallikarjunaX
2020-08-25 11:21       ` Vinod Koul
2020-08-27  9:54         ` Reddy, MallikarjunaX
2020-08-28 10:45           ` Vinod Koul
2020-08-31  8:06             ` Reddy, MallikarjunaX
2020-08-31 11:00               ` Vinod Koul
2020-09-01 15:03                 ` Reddy, MallikarjunaX
2020-09-04  6:31       ` Peter Ujfalusi
2020-09-07  7:25         ` Reddy, MallikarjunaX
2020-08-14  5:26 ` [PATCH v5 2/2] Add Intel LGM soc DMA support Amireddy Mallikarjuna reddy
2020-08-14  8:47   ` kernel test robot
2020-08-14  8:47     ` kernel test robot
2020-08-18 10:16   ` Peter Ujfalusi
2020-08-18 10:29     ` Peter Ujfalusi
2020-08-24  2:30     ` Reddy, MallikarjunaX
2020-08-24 11:24       ` Peter Ujfalusi
2020-08-27 14:41         ` Reddy, MallikarjunaX
2020-08-28 11:17           ` Peter Ujfalusi
2020-08-31  8:07             ` Reddy, MallikarjunaX
2020-09-04  6:31               ` Peter Ujfalusi
2020-09-07  7:32                 ` Reddy, MallikarjunaX
2020-08-27  3:42 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.