RE: [PATCH 1/3] crypto: permit users to specify numa node of acomp hardware

2020-06-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Jonathan Cameron > Sent: Monday, June 22, 2020 9:59 PM > To: Song Bao Hua (Barry Song) > Cc: herb...@gondor.apana.org.au; da...@davemloft.net; Seth Jennings > ; Linuxarm ; > linux-kernel@vger.kernel.org; linux...@kvack.org; > linux-c

[PATCH 0/3] crypto: allow users to specify acomp hardware from a desired NUMA node

2020-06-21 Thread Barry Song
like kmalloc and kmalloc_node. Similar optimization may be done for crypto. Barry Song (3): crypto: permit users to specify numa node of acomp hardware crypto: hisilicon/zip - permit users to specify NUMA node mm/zswap: specify the NUMA node of acomp to use local compressors [mm/zswap pat

[PATCH 2/3] crypto: hisilicon/zip - permit users to specify NUMA node

2020-06-21 Thread Barry Song
If users don't specify NUMA node, the driver will use the ZIP module near the CPU allocating acomp. Otherwise, it uses the ZIP module according to the requirement of users. Cc: Zhou Wang Signed-off-by: Barry Song --- drivers/crypto/hisilicon/zip/zip.h| 2 +- drivers/crypto/hisi

[PATCH 1/3] crypto: permit users to specify numa node of acomp hardware

2020-06-21 Thread Barry Song
from different NUMA node with the CPU which allocates acomp. Just like kernel has kmalloc() and kmalloc_node(), here crypto can have same support. Cc: Seth Jennings Cc: Dan Streetman Cc: Vitaly Wool Cc: Andrew Morton Signed-off-by: Barry Song --- crypto/acompress.c | 8

[PATCH 3/3] mm/zswap: specify the NUMA node of acomp to use local compressors

2020-06-21 Thread Barry Song
Cc: David S. Miller" Cc: Andrew Morton Signed-off-by: Barry Song --- mm/zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zswap.c b/mm/zswap.c index 0d914ba6b4a0..9b1aa477022e 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -437,7 +437,7 @@ stati

RE: [PATCH v2] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-06-21 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Vitaly Wool [mailto:vitaly.w...@konsulko.com] > Sent: Sunday, June 21, 2020 11:16 PM > To: Song Bao Hua (Barry Song) > Cc: Andrew Morton ; > herb...@gondor.apana.org.au; da...@davemloft.net; > linux-cry...@vger.kernel.org; Linux-MM ; LKM

[PATCH v2] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-06-20 Thread Barry Song
halla Cc: Seth Jennings Cc: Dan Streetman Cc: Vitaly Wool Cc: Zhou Wang Signed-off-by: Barry Song --- -v2: rebase to 5.8-rc1; cleanup commit log; cleanup to improve the readability according to Sebastian's comment mm/zswap.c | 153 ++-

[PATCH] crypto: scompress - call the completion callback for the completed acomp_req

2020-06-20 Thread Barry Song
case. And it won't break the second case in which users use the common crypto_req_done() and crypto_wait_req() only. Signed-off-by: Barry Song --- crypto/scompress.c | 4 1 file changed, 4 insertions(+) diff --git a/crypto/scompress.c b/crypto/scompress.c index 738f4f8f0f41..634b7ced9

[PATCH v3] driver core: platform: expose numa_node to users in sysfs

2020-06-18 Thread Barry Song
numa_node for this kind of devices in sysfs. For those platform devices without numa, numa_node won't be visible. Cc: Prime Zeng Cc: Robin Murphy Signed-off-by: Barry Song --- -v3: rebase to 5.8-rc1; refine commit log Documentation/ABI/testing/sysfs-bus-platform | 10 drivers/base/platf

RE: [PATCH v2] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-18 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Will Deacon [mailto:w...@kernel.org] > Sent: Thursday, June 18, 2020 7:20 PM > To: Song Bao Hua (Barry Song) > Cc: Roman Gushchin ; catalin.mari...@arm.com; > nsaenzjulie...@suse.de; steve.cap...@arm.com; r...@linux.ibm.com; > a...

[PATCH 4/5] net: hns3: replace disable_irq by IRQ_NOAUTOEN flag

2020-06-17 Thread Barry Song
disable_irq() after request_irq() is still risk as there is a chance irq can come after request_irq() and before disable_irq(). this should be done by IRQ_NOAUTOEN flag. Signed-off-by: Barry Song --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 5/5] net: hns3: streaming dma buffer sync between cpu and device

2020-06-17 Thread Barry Song
Right now they are empty functions for our SoC since hardware can keep cache coherent, but it is still good to align with streaming DMA APIs as device drivers should not make an assumption of SoC. Reviewed-by: Yunsheng Lin Signed-off-by: Barry Song --- .../net/ethernet/hisilicon/hns3

[PATCH 0/5] net: hns3: a bundle of minor cleanup and fixes

2020-06-17 Thread Barry Song
some minor changes to either improve the readability or make the code align with linux APIs better. Barry Song (5): net: hns3: remove unnecessary devm_kfree net: hns3: pointer type of buffer should be void net: hns3: rename buffer-related functions net: hns3: replace disable_irq by

[PATCH 1/5] net: hns3: remove unnecessary devm_kfree

2020-06-17 Thread Barry Song
since we are using device-managed function, it is unnecessary to free in probe. Signed-off-by: Barry Song --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net

[PATCH 3/5] net: hns3: rename buffer-related functions

2020-06-17 Thread Barry Song
This is for improving the readability. Signed-off-by: Barry Song --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3

[PATCH 2/5] net: hns3: pointer type of buffer should be void

2020-06-17 Thread Barry Song
Move the type of buffer address from unsigned char to void Signed-off-by: Barry Song --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon

[PATCH v3] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-17 Thread Barry Song
eviewed-by: Anshuman Khandual Signed-off-by: Barry Song --- -v3: add review-by; add comment according to Will's feedback arch/arm64/mm/init.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index e631e642516

RE: [PATCH v2] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-17 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Roman Gushchin [mailto:g...@fb.com] > Sent: Thursday, June 18, 2020 6:20 AM > To: Song Bao Hua (Barry Song) > Cc: Will Deacon ; catalin.mari...@arm.com; > nsaenzjulie...@suse.de; steve.cap...@arm.com; r...@linux.ibm.com; > a...@linux-

RE: [PATCH v2] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-17 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Will Deacon [mailto:w...@kernel.org] > Sent: Wednesday, June 17, 2020 10:18 PM > To: Song Bao Hua (Barry Song) > Cc: catalin.mari...@arm.com; nsaenzjulie...@suse.de; > steve.cap...@arm.com; r...@linux.ibm.com; a...@linux-foundation.or

[PATCH v2 0/2] mm: fix the names of general cma and hugetlb cma

2020-06-16 Thread Barry Song
to 5.8-rc1 Barry Song (2): mm: cma: fix the name of CMA areas mm: hugetlb: fix the name of hugetlb CMA mm/cma.c | 13 ++--- mm/cma.h | 4 +++- mm/hugetlb.c | 4 +++- 3 files changed, 12 insertions(+), 9 deletions(-) -- 2.23.0

[PATCH v2 1/2] mm: cma: fix the name of CMA areas

2020-06-16 Thread Barry Song
Roman Gushchin Reviewed-by: Mike Kravetz Signed-off-by: Barry Song --- -v2: rebase to 5.8-rc1 add acked-by and reviewed-by mm/cma.c | 13 ++--- mm/cma.h | 4 +++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/mm/cma.c b/mm/cma.c index 0463ad2ce06b..b24151fa2101 100644 ---

[PATCH v2 2/2] mm: hugetlb: fix the name of hugetlb CMA

2020-06-16 Thread Barry Song
once we enable CMA_DEBUGFS, we will get the below errors: directory 'cma-hugetlb' with parent 'cma' already present we should have different names for different CMA areas. Acked-by: Roman Gushchin Reviewed-by: Mike Kravetz Signed-off-by: Barry Song --- -v2: rebase to 5.

[PATCH v2] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-16 Thread Barry Song
hugetlb_cma_reserve() is called at the wrong place. numa_init has not been done yet. so all reserved memory will be located at node0. Fixes: cf11e85fc08c ("mm: hugetlb: optionally allocate gigantic hugepages using cma") Cc: Matthias Brugger Acked-by: Roman Gushchin Signed-off-by:

RE: [PATCH 2/3] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-07 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Matthias Brugger [mailto:matthias@gmail.com] > Sent: Monday, June 8, 2020 8:15 AM > To: Roman Gushchin ; Song Bao Hua (Barry Song) > > Cc: catalin.mari...@arm.com; John Garry ; > linux-kernel@vger.kernel.org; Linuxarm ; > io...@li

RE: [kbuild-all] Re: [PATCH 1/3] dma-direct: provide the ability to reserve per-numa CMA

2020-06-06 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Philip Li [mailto:philip...@intel.com] > Sent: Saturday, June 6, 2020 3:47 PM > To: Dan Carpenter > Cc: Song Bao Hua (Barry Song) ; > kbu...@lists.01.org; h...@lst.de; m.szyprow...@samsung.com; > robin.mur...@arm.com; catalin.mari...@ar

RE: [PATCH 1/3] dma-direct: provide the ability to reserve per-numa CMA

2020-06-04 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Thursday, June 4, 2020 11:37 PM > To: kbu...@lists.01.org; Song Bao Hua (Barry Song) > ; h...@lst.de; m.szyprow...@samsung.com; > robin.mur...@arm.com; catalin.mari...@arm.com > Cc

[PATCH 1/2] mm: cma: fix the name of CMA areas

2020-06-03 Thread Barry Song
hchin Signed-off-by: Barry Song --- mm/cma.c | 13 ++--- mm/cma.h | 4 +++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/mm/cma.c b/mm/cma.c index 0463ad2ce06b..b24151fa2101 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -202,13 +202,12 @@ int __init cma_init_reserved_mem(phys_a

[PATCH 0/2] mm: fix the names of general cma and hugetlb cma

2020-06-03 Thread Barry Song
the current code of CMA can only work when users pass a const string as name parameter. we need to fix the way to handle names in CMA. On the other hand, to avoid name conflicts after enabling CMA_DEBUGFS, each hugetlb should get a different CMA name. Barry Song (2): mm: cma: fix the name of

[PATCH 2/2] mm: hugetlb: fix the name of hugetlb CMA

2020-06-03 Thread Barry Song
once we enable CMA_DEBUGFS, we will get the below errors: directory 'cma-hugetlb' with parent 'cma' already present only the first numa node will get a directory in debugfs. we should have different names for different CMA areas. Cc: Roman Gushchin Signed-off-by: Barry Son

[PATCH 3/3] arm64: mm: reserve per-numa CMA after numa_init

2020-06-02 Thread Barry Song
tables. that means dma_unmap latency will be shrunk much. Meanwhile, when iommu.passthrough is on, device drivers which call dma_ alloc_coherent() will also get local memory and avoid the travel between numa nodes. Cc: Will Deacon Cc: Robin Murphy Signed-off-by: Barry Song --- arch/arm64/mm/init.c

[PATCH 1/3] dma-direct: provide the ability to reserve per-numa CMA

2020-06-02 Thread Barry Song
-by: Barry Song --- include/linux/dma-contiguous.h | 4 kernel/dma/Kconfig | 10 + kernel/dma/contiguous.c| 41 +- 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/include/linux/dma-contiguous.h b/include/linux/dma

[PATCH 2/3] arm64: mm: reserve hugetlb CMA after numa_init

2020-06-02 Thread Barry Song
hugetlb_cma_reserve() is called at the wrong place. numa_init has not been done yet. so all reserved memory will be located at node0. Cc: Roman Gushchin Signed-off-by: Barry Song --- arch/arm64/mm/init.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64

[PATCH 0/3] support per-numa CMA for ARM server

2020-06-02 Thread Barry Song
memory from local numa node to save command queues and page tables. that means dma_unmap latency will be shrunk much. Meanwhile, when iommu.passthrough is on, device drivers which call dma_ alloc_coherent() will also get local memory and avoid the travel between numa nodes. Barry Song (3): dma-direct

RE: [PATCH] driver core: platform: expose numa_node to users in sysfs

2020-06-02 Thread Song Bao Hua (Barry Song)
> > > > On Tue, Jun 02, 2020 at 05:09:57AM +, Song Bao Hua (Barry Song) > wrote: > > > > > > > > > > Platform devices are NUMA? That's crazy, and feels like a total > > > > > abuse of platform devices and drivers

RE: [PATCH] driver core: platform: expose numa_node to users in sysfs

2020-06-01 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, June 2, 2020 6:11 PM > To: Song Bao Hua (Barry Song) > Cc: raf...@kernel.org; io...@lists.linux-foundation.org; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.ke

[PATCH v2] driver core: platform: expose numa_node to users in sysfs

2020-06-01 Thread Barry Song
Zeng Cc: Robin Murphy Signed-off-by: Barry Song --- -v2: add the numa_node entry in Documentation/ABI/ Documentation/ABI/testing/sysfs-bus-platform | 10 drivers/base/platform.c | 26 +++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git

RE: [PATCH] driver core: platform: expose numa_node to users in sysfs

2020-06-01 Thread Song Bao Hua (Barry Song)
> > > > Platform devices are NUMA? That's crazy, and feels like a total abuse > > of platform devices and drivers that really should belong on a "real" > > bus. > > I am not sure if it is an abuse of platform device. But smmu is a platform > device, > drivers/iommu/arm-smmu-v3.c is a platform dri

[PATCH v2] driver core: platform: need consistent spacing around '-'

2020-06-01 Thread Barry Song
Fix the below checkpatch issue: ERROR: need consistent spacing around '-' (ctx:WxV) FILE: drivers/base/platform.c:1008: + len = acpi_device_modalias(dev, buf, PAGE_SIZE -1); ^ Signed-off-by: Barry Song --- -v2: specify a d

RE: [PATCH] driver core: platform: expose numa_node to users in sysfs

2020-06-01 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, June 2, 2020 4:24 PM > To: Song Bao Hua (Barry Song) > Cc: raf...@kernel.org; io...@lists.linux-foundation.org; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.ke

[PATCH] driver core: platform: need consistent spacing around '-'

2020-06-01 Thread Barry Song
Signed-off-by: Barry Song --- drivers/base/platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index b27d0f6c18c9..ab9408182a0d 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -1005,7 +1005,7

[PATCH] driver core: platform: expose numa_node to users in sysfs

2020-06-01 Thread Barry Song
Zeng Cc: Robin Murphy Signed-off-by: Barry Song --- drivers/base/platform.c | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index b27d0f6c18c9..7794b9a38d82 100644 --- a/drivers/base/platform.c +++ b

RE: [PATCH 0/3] arm64: perf: Add support for Perf NMI interrupts

2020-05-20 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: linux-arm-kernel [mailto:linux-arm-kernel-boun...@lists.infradead.org] > On Behalf Of Alexandru Elisei > Sent: Wednesday, May 20, 2020 10:31 PM> > Hi, > > On 5/18/20 12:17 PM, Alexandru Elisei wrote: > > Hi, > > > > On 5/18/20 11:45 AM, Mark Rutland wrote: >

Re: [PATCH] knfsd: add nfs-export support to ramfs

2019-07-20 Thread Barry Song
the subject is unsuitable? i mean the prefix should be fs/ramfs rather than knfsd? 2019-05-22 3:25 GMT+12:00, Haodong Wong : > Refer to tmpfs, use inode number and generation number > to construct the filehandle for nfs-export would you like to describe what is happening without this patch? BTW,

Re: [PATCH] tty:serial:imx: use spin_lock instead of spin_lock_irqsave in isr

2018-08-28 Thread Barry Song
jun in wechat regarding this patch. and Reviewed-by: Barry Song <21cn...@gmail.com> > --- >  drivers/tty/serial/imx.c | 21 - >  1 file changed, 8 insertions(+), 13 deletions(-) >

[PATCH 3/3] dmaengine: at_xdmac: move spin_lock_bh to spin_lock in tasklet

2018-08-17 Thread Barry Song
as you are already in a tasklet, it is unnecessary to call spin_lock_bh. Signed-off-by: Barry Song <21cn...@gmail.com> --- drivers/dma/at_xdmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 4bf7256..4e55768

[PATCH 2/3] dmaengine: mv_xor: move spin_lock_bh to spin_lock in tasklet

2018-08-17 Thread Barry Song
as you are already in a tasklet, it is unnecessary to call spin_lock_bh. Signed-off-by: Barry Song <21cn...@gmail.com> --- drivers/dma/mv_xor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 969534c..7f59535 100644

Re: [PATCH] pinctrl: sirf/atlas7: stop poking around in GPIO internals

2016-02-18 Thread Barry Song
2016-02-19 4:42 GMT+08:00 Linus Walleij : > On Thu, Feb 18, 2016 at 3:50 AM, Barry Song wrote: > >> gpiochip_add(chip will call this automatically since range is set in dtsi: >> gpio_0: gpio_mediam@1704 { >> #gpio-cells = <2>; >> #interrupt-cells = &l

Re: [PATCH] pinctrl: sirf/atlas7: stop poking around in GPIO internals

2016-02-17 Thread Barry Song
so we're iterating over an empty > list. Maybe it is poking around in some other pin controllers > GPIO ranges, and that's just totally wrong, again use > gpiochip_add_pin_range() and specify the right pin > controller. > > Cc: Barry Song > Cc: Guoying Zhang

Re: [PATCH v2 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-10-05 Thread Barry Song
2015-10-05 16:21 GMT+08:00 Lee Jones : > On Sun, 04 Oct 2015, Barry Song wrote: >> 2015-09-29 16:55 GMT+08:00 Lee Jones : >> > On Tue, 29 Sep 2015, Barry Song wrote: >> > >> >> 2015-09-29 15:16 GMT+08:00 Lee Jones : >> >> > On Tue, 29

Re: [PATCH v2 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-10-04 Thread Barry Song
2015-09-29 16:55 GMT+08:00 Lee Jones : > On Tue, 29 Sep 2015, Barry Song wrote: > >> 2015-09-29 15:16 GMT+08:00 Lee Jones : >> > On Tue, 29 Sep 2015, Barry Song wrote: >> >> >> >> +static int sirfsoc_pwrc_probe(struct platform_device *pdev) >> &

Re: [PATCH v2 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-09-29 Thread Barry Song
2015-09-29 15:16 GMT+08:00 Lee Jones : > On Tue, 29 Sep 2015, Barry Song wrote: >> >> >> +static int sirfsoc_pwrc_probe(struct platform_device *pdev) >> >> >> +{ >> >> >> + struct device_node *np = pdev->dev.of_node; >> &

Re: [PATCH v2 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-09-28 Thread Barry Song
>> >> +static int sirfsoc_pwrc_probe(struct platform_device *pdev) >> >> +{ >> >> + struct device_node *np = pdev->dev.of_node; >> >> + const struct of_device_id *match; >> >> + struct sirfsoc_pwrc_info *pwrcinfo; >> >> + struct regmap_irq_chip *regmap_irq_chip; >> >> + struct s

Re: [PATCH v2 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-09-20 Thread Barry Song
hi Lee, thanks very much! 2015-09-20 12:15 GMT+08:00 Lee Jones : > On Thu, 17 Sep 2015, Barry Song wrote: > >> From: Guo Zeng >> >> CSR SiRFSoC Power Control Module includes power on or power >> off for sysctl power and gnss, it also includes onkey, RTC >> do

Re: [PATCH v2 1/3] regmap: irq: add support for chips who have separate unmask registers

2015-09-17 Thread Barry Song
2015-09-17 18:53 GMT+08:00 Mark Brown : > On Thu, Sep 17, 2015 at 05:23:20AM +0000, Barry Song wrote: >> From: Guo Zeng >> >> Some chips have separate unmask registers from mask registers for >> some consideration of concurrency SMP write performance. And this

[PATCH v2 1/3] regmap: irq: add support for chips who have separate unmask registers

2015-09-16 Thread Barry Song
From: Guo Zeng Some chips have separate unmask registers from mask registers for some consideration of concurrency SMP write performance. And this patch adds a flag for it. An user will be CSR SiRFSoC ARM chips. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- drivers/base/regmap

[PATCH v2 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-09-16 Thread Barry Song
From: Guo Zeng CSR SiRFSoC Power Control Module includes power on or power off for sysctl power and gnss, it also includes onkey, RTC domain clock controllers and interrupt controller for power events. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- .../devicetree/bindings/mfd/sirf

[PATCH v2 2/3] regmap: irq: add ack_invert flag for chips using cleared bits as ack

2015-09-16 Thread Barry Song
From: Guo Zeng An user will be CSR SiRFSoC ARM chips. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- drivers/base/regmap/regmap-irq.c | 12 ++-- include/linux/regmap.h | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/base/regmap/regmap

Re: [PATCH] ARM: Remove __ref on hotplug cpu die path

2015-09-14 Thread Barry Song
name >126835781470996 348904 14503478 dd4e36 before >126832741470996 348904 14503174 dd4d06 after > > presumably because now we don't have to jump to code in the > .ref.text section and/or the noinline marking is removed. > > Cc:

[PATCH 1/3] regmap: irq: add support for chips who have separate unmask registers

2015-09-14 Thread Barry Song
From: Guo Zeng Some chips have separate unmask registers from mask registers for some consideration of concurrency SMP write performance. And this patch adds a flag for it. An user will be CSR SiRFSoC ARM chips. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- drivers/base/regmap

[PATCH 0/3] add CSR SiRFSoC power control module MFD driver

2015-09-14 Thread Barry Song
From: Barry Song the first two regmap patches provide regmap_irq support for CSR chips, in which unmask is separated and ack is inverted. the last one is adding pwrc driver, in which we use the separate unmaks and inverted_ack. Guo Zeng (3): regmap: irq: add support for chips who have

[PATCH 2/3] regmap: irq: add ack_invert flag for chips using cleared bits as ack

2015-09-14 Thread Barry Song
From: Guo Zeng An user will be CSR SiRFSoC ARM chips. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- drivers/base/regmap/regmap-irq.c | 12 ++-- include/linux/regmap.h | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/base/regmap/regmap

[PATCH 3/3] mfd: add CSR SiRFSoC on-chip power management module driver

2015-09-14 Thread Barry Song
From: Guo Zeng CSR SiRFSoC Power Control Module includes power on or power off for sysctl power and gnss, it also includes onkey, RTC domain clock controllers and interrupt controller for power events. Signed-off-by: Guo Zeng Signed-off-by: Barry Song --- .../devicetree/bindings/mfd/sirf

Re: [PATCH v7 4/5] clk: Provide critical clock support

2015-08-20 Thread Barry Song
2015-08-17 15:42 GMT+08:00 Lee Jones : > On Mon, 17 Aug 2015, Barry Song wrote: > >> 2015-07-22 21:04 GMT+08:00 Lee Jones : >> > Lots of platforms contain clocks which if turned off would prove fatal. >> > The only way to recover from these catastrophic failures

Re: [PATCH v7 4/5] clk: Provide critical clock support

2015-08-16 Thread Barry Song
2015-07-22 21:04 GMT+08:00 Lee Jones : > Lots of platforms contain clocks which if turned off would prove fatal. > The only way to recover from these catastrophic failures is to restart > the board(s). Now, when a clock provider is registered with the > framework it is possible for a list of criti

Re: [PATCH 1/3 v3] drivers: hwspinlock: add CSR atlas7 implementation

2015-05-24 Thread Barry Song
2015-05-23 6:51 GMT+08:00 Suman Anna : > Hi Barry, > > On 05/19/2015 01:41 AM, Barry Song wrote: >> From: Wei Chen >> >> Add hwspinlock support for the CSR atlas7 SoC. >> >> The Hardware Spinlock device on atlas7 provides hardware assistance >> for sy

Re: [PATCH 2/3 v3] Documentation: dt: add the CSR atlas7 hwspinlock bindings document

2015-05-24 Thread Barry Song
2015-05-23 6:44 GMT+08:00 Suman Anna : > Hi Barry, > > On 05/19/2015 01:41 AM, Barry Song wrote: >> From: Wei Chen >> >> The Hardware Spinlock device on atlas7 provides hardware assistance >> for synchronization between the multiple processors in the system >

[PATCH 2/3 v3] Documentation: dt: add the CSR atlas7 hwspinlock bindings document

2015-05-18 Thread Barry Song
: Bjorn Andersson Signed-off-by: Wei Chen Signed-off-by: Barry Song --- .../devicetree/bindings/hwlock/sirf,hwspinlock.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwlock/sirf,hwspinlock.txt diff --git a/Documentation

[PATCH 3/3 v3] ARM: dts: atlas7: use general dt-binding for hwspinlock

2015-05-18 Thread Barry Song
From: Wei Chen This patch moves to use generic dt-binding for hwspinlock providers and clients. add #hwlock-cells for the provider and hwlocks for clients. Cc: Suman Anna Cc: Bjorn Andersson Signed-off-by: Wei Chen Signed-off-by: Barry Song --- arch/arm/boot/dts/atlas7.dtsi | 6 +++--- 1

[PATCH 1/3 v3] drivers: hwspinlock: add CSR atlas7 implementation

2015-05-18 Thread Barry Song
-by: Wei Chen Signed-off-by: Barry Song --- -v3: use #hwlock-cells and general hwspinlock dt-binding; drop relax(); drop num-spinlocks in dts; re-order Kconfig and Makefile; other codingstyle issues. Thanks Suman, Bjorn and Ohad drivers/hwspinlock/Kconfig | 12 drivers

Re: [PATCH v2 RESEND] drivers: hwspinlock: add CSR atlas7 implementation

2015-05-06 Thread Barry Song
2015-05-07 2:13 GMT+08:00 Bjorn Andersson : > On Wed, Mar 25, 2015 at 4:03 PM, Barry Song <21cn...@gmail.com> wrote: >> From: Wei Chen >> >> Add hwspinlock support for the CSR atlas7 SoC. >> > [..] >> >> diff --git >> a/Documentation/de

[PATCH v2 RESEND] drivers: hwspinlock: add CSR atlas7 implementation

2015-03-25 Thread Barry Song
From: Wei Chen Add hwspinlock support for the CSR atlas7 SoC. The Hardware Spinlock device on atlas7 provides hardware assistance for synchronization between the multiple processors in the system (dual Cortex-A7, CAN bus Cortex-M3 and audio DSP). Signed-off-by: Wei Chen Signed-off-by: Barry

Re: [PATCH v2] drivers: hwspinlock: add CSR atlas7 implementation

2015-03-18 Thread Barry Song
2015-03-09 14:11 GMT+08:00 Barry Song <21cn...@gmail.com>: > From: Wei Chen > > Add hwspinlock support for the CSR atlas7 SoC. > > The Hardware Spinlock device on atlas7 provides hardware assistance > for synchronization between the multiple processors in the system &g

[PATCH v2] drivers: hwspinlock: add CSR atlas7 implementation

2015-03-08 Thread Barry Song
From: Wei Chen Add hwspinlock support for the CSR atlas7 SoC. The Hardware Spinlock device on atlas7 provides hardware assistance for synchronization between the multiple processors in the system (dual Cortex-A7, CAN bus Cortex-M3 and audio DSP). Signed-off-by: Wei Chen Signed-off-by: Barry

Re: [PATCH] drivers: hwspinlock: add CSR atlas7 implementation

2015-03-08 Thread Barry Song
2015-03-07 21:42 GMT+08:00 Paul Bolle : > One license nit. > > Barry Song schreef op vr 06-03-2015 om 16:30 [+0800]: >> --- /dev/null >> +++ b/drivers/hwspinlock/sirf_hwspinlock.c >> @@ -0,0 +1,151 @@ >> +/* >> + * SIRF hardware spinlock driver >> +

[PATCH] drivers: hwspinlock: add CSR atlas7 implementation

2015-03-06 Thread Barry Song
From: Wei Chen Add hwspinlock support for the CSR atlas7 SoC. The Hardware Spinlock device on atlas7 provides hardware assistance for synchronization between the multiple processors in the system (dual Cortex-A7, CAN bus Cortex-M3 and audio DSP). Signed-off-by: Wei Chen Signed-off-by: Barry

[PATCH 2/2] drivers:remoteproc:support always on remote processor

2015-03-03 Thread Barry Song
processors could not be shutdown, if it would be shutdown, the Linux should be shutdown too. In above scenarios, we have make remoteproc to support always on remote processor. This kind of remote processor control its lifecycle by itself. Signed-off-by: Wei Chen Signed-off-by: Barry Song

[PATCH 1/2] drivers:remoteproc:support predefined vq notifyid

2015-03-03 Thread Barry Song
table, and then request a same notifyid in Linux side. Signed-off-by: Wei Chen Signed-off-by: Barry Song --- drivers/remoteproc/remoteproc_core.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc

Re: [PATCH 07/11] ARM: prima2: do not select SMP_ON_UP

2015-02-12 Thread Barry Song
ext+0x3d4c): undefined reference to `smp_on_up' > arch/arm/kernel/built-in.o: In function `smp_setup_processor_id': > :(.init.text+0x180): undefined reference to `smp_on_up' > > This removes the 'select' statement. > > Signed-off-by: Arnd Bergmann > Fixe

Re: [alsa-devel] [PATCH baohua] ASoC: sirf: atlas7: atlas7_iacc_dai_ops can be static

2015-02-05 Thread Barry Song
2015-02-06 1:11 GMT+08:00 Mark Brown : > On Fri, Feb 06, 2015 at 01:03:52AM +0800, kbuild test robot wrote: >> sound/soc/sirf/atlas7-iacc.c:168:24: sparse: symbol 'atlas7_iacc_dai_ops' >> was not declared. Should it be static? > > This file isn't in an upstream tree, should this patch have been se

Re: [alsa-devel] [PATCH] ASoC: sirf: fix platform_no_drv_owner.cocci warnings

2015-01-15 Thread Barry Song
2015-01-15 17:05 GMT+08:00 kbuild test robot : > sound/soc/sirf/sirf-atlas7-cs42xx8.c:192:3-8: No need to set .owner here. The > core will do it. > > Remove .owner field if calls are used which set it automatically > > Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci > > CC: Yibo

RE: clocksource: marco: CONFIG_ARCH_ATLAS7?

2015-01-14 Thread Barry Song
> > -Original Message- > From: Paul Bolle [mailto:pebo...@tiscali.nl] > Sent: 2015年1月14日 16:52 > To: Barry Song > Cc: Valentin Rothberg; Arnd Bergmann; Daniel Lezcano; Thomas Gleixner; > linux-kernel@vger.kernel.org > Subject: clocksource: marco: CONFIG

Re: [PATCH] clocksource: sirf: remove unused variable

2015-01-13 Thread Barry Song
2015-01-13 22:27 GMT+08:00 Daniel Lezcano : > On 01/13/2015 03:22 PM, Arnd Bergmann wrote: >> >> A recent rework of the driver left an obviously unused variable >> around, and now the compiler complains: >> >> clocksource/timer-marco.c: In function 'sirfsoc_marco_timer_init': >> clocksource/timer-m

Re: [PATCH] clocksource: sirf: Remove unused variable

2015-01-11 Thread Barry Song
arco: rename marco to atlas7" against this commit. can you help to apply the attached patch to your tree? i guess pulling by arm-soc will cause conflicts. > > -- Daniel > -barry From ffdf7a8a348cf3301fade30cc86398c80be3d1bd Mon Sep 17 00:00:00 2001 From: Barry Song Date: Sun, 11 J

Re: [PATCH] clocksource: sirf: Remove unused variable

2015-01-11 Thread Barry Song
2014-12-24 5:33 GMT+08:00 Fabio Estevam : > Remove 'timer_div' variable to fix the following build warning: > > drivers/clocksource/timer-marco.c: In function 'sirfsoc_marco_timer_init': > drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' > [-Wunused-variable] > > Signe

[PATCH] clocksource: sirf: remove hard-coded clock rate

2014-11-11 Thread Barry Song
adaptive to external changes. Signed-off-by: Yanchang Li Signed-off-by: Barry Song --- drivers/clocksource/timer-marco.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/clocksource/timer-marco.c b/drivers/clocksource/timer-marco.c index

Re: [PATCH v5 2/4] pwm: sirf: add dt-binding document

2014-07-24 Thread Barry Song
2014-07-16 10:01 GMT+08:00 Huayi Li : > This patch adds dt-binding document for pwm-sirf. here the controller clock > can't generate PWM signals, so we need seperate clock as signal source. > > Signed-off-by: Huayi Li Reviewed-by: Barry Song except that the commit log has not

Re: [PATCH v5 1/4] pwm: add CSR SiRFSoc PWM driver

2014-07-24 Thread Barry Song
2014-07-16 9:55 GMT+08:00 Huayi Li : > PWM controller of CSR SiRFSoC can generate 7 independent outputs. Each output > duty cycle can be adjusted by setting the corresponding wait & hold registers. > There are 6 external channels (0 to 5) and 1 internal channel (6). > Supports a wide frequency rang

Re: [PATCH v5 3/4] ARM: dts: sirf: fix the pwm-cells and clocks

2014-07-24 Thread Barry Song
2014-07-16 9:55 GMT+08:00 Huayi Li : > This patch adds missed pwm-cells, clock-names and signal source > clock for PWM module. > > Signed-off-by: Huayi Li Reviewed-by: Barry Song > --- > arch/arm/boot/dts/atlas6.dtsi | 8 ++-- > arch/arm/boot/dts/prima2.dtsi |

Re: [PATCH v5 4/4] ARM: prima2_defconfig: enable PWM and sirf PWM driver

2014-07-24 Thread Barry Song
2014-07-16 9:55 GMT+08:00 Huayi Li : > Signed-off-by: Huayi Li Acked-by: Barry Song > --- > arch/arm/configs/prima2_defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/configs/prima2_defconfig > b/arch/arm/configs/prima2_defconfig > index

Re: FW: [PATCH 04/16] MAINTAINERS: Update clk/sirf patterns

2014-07-03 Thread Barry Song
>> -Original Message- >> From: Joe Perches [mailto:j...@perches.com] >> Sent: Friday, July 04, 2014 6:08 AM >> To: Andrew Morton >> Cc: Barry Song; linux-kernel@vger.kernel.org >> Subject: [PATCH 04/16] MAINTAINERS: Update clk/sirf patterns >> >

Re: [PATCH tty-next] serial: sirf: Fix compilation failure

2014-05-30 Thread Barry Song
2014-05-30 2:25 GMT+08:00 Greg Kroah-Hartman : > On Thu, May 29, 2014 at 08:14:02PM +0800, Barry Song wrote: >> 2014-05-29 18:13 GMT+08:00 Daniel Thompson : >> > After 07d410e0) serial: sirf: fix spinlock deadlock issue it is no longer >> > possiblet to compile this d

Re: linux-next: build failure after merge of the tty tree

2014-05-29 Thread Barry Song
2014-05-29 20:18 GMT+08:00 Barry Song : > From: Stephen Rothwell [s...@canb.auug.org.au] > Sent: Thursday, May 29, 2014 15:28 > To: Greg KH > Cc: linux-n...@vger.kernel.org; linux-kernel@vger.kernel.org; Qipan Li; Barry > Song > Subject: linux-next: build failure after mer

Re: [PATCH tty-next] serial: sirf: Fix compilation failure

2014-05-29 Thread Barry Song
gt; Compile tested using ARM's multi_v7_defconfig > > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: Barry Song > Cc: Qipan Li > Cc: linux-ser...@vger.kernel.org > Signed-off-by: Daniel Thompson Qipan prepared a same patch to fix this. since you have sent, Acked-by: B

RE: [PATCH 1/2] RFT: pinctrl: sirf: switch to using allocated state container

2014-05-27 Thread Barry Song
From: Linus Walleij [linus.wall...@linaro.org] Sent: Tuesday, May 27, 2014 21:27 To: Barry Song Cc: LKML; Barry Song; Linux GPIO List; DL-SHA-WorkGroupLinux Subject: Re: [PATCH 1/2] RFT: pinctrl: sirf: switch to using allocated state container On Sun, May 25, 2014 at 10:26 AM, Barry Song wrote

Re: [PATCH 1/2] RFT: pinctrl: sirf: switch to using allocated state container

2014-05-25 Thread Barry Song
2014-05-09 19:53 GMT+08:00 Linus Walleij : > On Thu, May 1, 2014 at 2:29 PM, Barry Song wrote: >> 2014-04-24 5:16 GMT+08:00 Linus Walleij : > >>> This rewrites the SIRF pinctrl driver to allocate a state container >>> for the GPIO chip, just as is done for the p

Re: [PATCH 2/2] RFT: pinctrl: sirf: move sgpio lock into state container

2014-05-25 Thread Barry Song
2014-05-09 19:57 GMT+08:00 Linus Walleij : > On Thu, May 1, 2014 at 2:40 PM, Barry Song wrote: >> 2014-04-24 5:16 GMT+08:00 Linus Walleij : > >>> Instead of referring to a global static variable for the sgpio >>> locking, use the state container to contain the lock

Re: [PATCH] ARM: l2c: prima2: only call l2x0_of_init() on matching nodes

2014-05-22 Thread Barry Song
2014-05-22 19:27 GMT+08:00 Russell King - ARM Linux : > On Thu, May 22, 2014 at 07:04:14PM +0800, Barry Song wrote: >> 2014-05-22 17:33 GMT+08:00 Russell King - ARM Linux : >> > On Tue, Apr 29, 2014 at 11:40:33PM +0800, Barry Song wrote: >> >> 2014-04-29 23:14 GMT+

Re: [PATCH] ARM: l2c: prima2: only call l2x0_of_init() on matching nodes

2014-05-22 Thread Barry Song
2014-05-22 17:33 GMT+08:00 Russell King - ARM Linux : > On Tue, Apr 29, 2014 at 11:40:33PM +0800, Barry Song wrote: >> 2014-04-29 23:14 GMT+08:00 Russell King - ARM Linux : >> > On Tue, Apr 29, 2014 at 11:05:06PM +0800, Barry Song wrote: >> >> 2014-04-28 22:52 GMT+

Re: [RFC PATCH] ARM: cache-l2x0: add setup entry for l2 in non-secure mode

2014-05-19 Thread Barry Song
2014-05-19 8:29 GMT+08:00 Gioh Kim : > > > 2014-05-18 오후 10:13, Barry Song 쓴 글: > >> 2014-05-15 13:39 GMT+08:00 Gioh Kim : >>> >>> >>> Hi, >>> >>> My board is using Trustzone and running kernel is non-secure mode. >>> But set

Re: [PATCH] [RFC] ARM: MM: remove phy_base field of struct

2014-05-18 Thread Barry Song
2014-05-15 10:49 GMT+08:00 Gioh Kim : > Hi, > > It's not a big deal but I've found that phy_base field of struct > l2x0_regs is not used anywhere. > I've removed it on my board. It seems to be working fine. > > Why do we need physical address of L2 cache controller? > Is it removable? if you read

<    1   2   3   4   5   6   >