Re: [PATCH -next] pinctrl: sirf: using for_each_set_bit to simplify the code

2013-03-17 Thread Barry Song
2013/3/14 Linus Walleij > > On Mon, Mar 11, 2013 at 3:23 PM, Wei Yongjun wrote: > > > From: Wei Yongjun > > > > Using for_each_set_bit() to simplify the code. > > > > Signed-off-by: Wei Yongjun > > Barry, can I have your ACK on this? yes. acked. thanks Yongjun, Linus. > > Yours, > Linus Walle

Re: what's the next LTSI kernel version for long-term support

2013-02-25 Thread Barry Song
2013/2/26 Greg Kroah-Hartman : > On Tue, Feb 26, 2013 at 11:06:56AM +0800, Barry Song wrote: >> Hi Greg/All, >> we have seen 3.4 was announced to be an LTSI in Aug, 2012. I'd like to >> know what is the next LTSI version since we might want to align our >> next r

Re: what's the next LTSI kernel version for long-term support

2013-02-25 Thread Barry Song
Hi Greg, 2013/2/26 Greg Kroah-Hartman : > On Tue, Feb 26, 2013 at 11:46:04AM +0800, Barry Song wrote: >> 2013/2/26 Greg Kroah-Hartman : >> > On Tue, Feb 26, 2013 at 11:06:56AM +0800, Barry Song wrote: >> >> Hi Greg/All, >> >> we have seen 3.4 was announc

Re: [PATCH 04/12] drivers/mmc/host: don't use devm_pinctrl_get_select_default() in probe

2013-07-11 Thread Barry Song
2013/7/10 Wolfram Sang : > Since commit ab78029 (drivers/pinctrl: grab default handles from device core), > we can rely on device core for setting the default pins. Compile tested only. > > Acked-by: Linus Walleij (personally at LCE13) > Signed-off-by: Wolfram Sang > --- > drivers/mmc/host/mvsdi

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-19 Thread Barry Song
> @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) > > of_clk_add_provider(np, of_clk_src_onecell_get, &clk_data); > } > +CLK_OF_DECLARE(sirfsoc_clk, "sirf,prima2-clkc", sirfsoc_clk_init); hi Sebastian, what if the driver is compatible with multiple clk controllers and we want

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-28 Thread Barry Song
2013/9/28 Sebastian Hesselbarth : > On 09/22/2013 12:37 PM, Barry Song wrote: >> >> 2013/9/22 Sebastian Hesselbarth : >>> >>> On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: >>>> >>>> >>>> On 09/19/13 10:45, Bar

Re: [PATCH 04/26] clk: prima2: declare OF clock provider

2013-09-22 Thread Barry Song
2013/9/22 Sebastian Hesselbarth : > On 09/19/2013 10:48 AM, Sebastian Hesselbarth wrote: >> >> On 09/19/13 10:45, Barry Song wrote: >>>> >>>> @@ -1124,3 +1106,4 @@ void __init sirfsoc_of_clk_init(void) >>>> >>>>

Re: [PATCH] pinctrl: sirf: remove sirfsoc_gpio_set_pull function

2012-10-09 Thread Barry Song
#x27;SIRFSOC_GPIO_PULL_UP' > undeclared (first use in this function) > drivers/pinctrl/pinctrl-sirf.c:1338:7: error: 'SIRFSOC_GPIO_PULL_DOWN' > undeclared (first use in this function) > > Signed-off-by: Arnd Bergmann > Cc: Barry Song > Cc: Linus Walleij Acke

Re: [PATCH] pinctrl: sirf: Staticize non-exported symbol

2012-11-05 Thread Barry Song
2012/11/5 Axel Lin : > Staticize sirfsoc_gpio_irq_map() function. > > Signed-off-by: Axel Lin Acked-by: Barry Song > --- > drivers/pinctrl/pinctrl-sirf.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-sirf.c b

RE: [PATCHv5 00/11] Remove ARM local timer API

2013-04-21 Thread Barry Song
> -Original Message- > From: Stephen Boyd [mailto:sb...@codeaurora.org] > Sent: Saturday, April 20, 2013 12:20 AM > To: linux-arm-ker...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org; linux-arm-...@vger.kernel.org; Mark > Rutland; Marc Zyngier; Kukjin Kim;

Re: [PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Barry Song
2013/6/6 Alexey Khoroshilov : > If pinctrl_get_select_default() fails, spi_sirfsoc_probe() > returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov Acked-by: Barry Son

Re: [PATCH] spi/sirf: fix error propagation in spi_sirfsoc_probe()

2013-06-05 Thread Barry Song
2013/6/6 Barry Song <21cn...@gmail.com>: > 2013/6/6 Alexey Khoroshilov : >> If pinctrl_get_select_default() fails, spi_sirfsoc_probe() >> returns IS_ERR(sspi->p) instead of PTR_ERR(sspi->p). >> >> Found by Linux Driver Verification project (linuxte

Re: [Arm-netbook] getting allwinner SoC support upstream (was Re: Uploading linux (3.9.4-1))

2013-06-07 Thread Barry Song
2013/6/7 Olof Johansson : > On Thu, Jun 6, 2013 at 8:13 AM, jonsm...@gmail.com wrote: >> On Wed, Jun 5, 2013 at 7:54 PM, luke.leighton >> wrote: >>> augh. ok. solutions. what are the solutions here? >> >> Luke if you really want to fix this a good solution is to have >> Allwinner join Linaro

Re: [PATCH v1 1/2] ARM:prima2: move sirfsoc_of_rstc_init to .init_early

2013-05-31 Thread Barry Song
2013/5/31 Srinivas KANDAGATLA : > From: Srinivas Kandagatla > > This patch moves sirfsoc_of_rstc_init from early_initcall to .init_early > in machine descriptor, doing this way a multi_v7 kernel will not crash > on non-prima2 SOCs. > > Without this patch the multi_v7 kernel panics if we boot it on

Re: [PATCH v1 1/2] ARM:prima2: move sirfsoc_of_rstc_init to .init_early

2013-05-31 Thread Barry Song
2013/5/31 Srinivas KANDAGATLA : > On 31/05/13 13:24, Barry Song wrote: >>> > Signed-off-by: Srinivas Kandagatla >> hi Sriniva, >> i think my "arm: prima2: move to generic reset controller driver >> framework" fixs this too: >> http://www.spinics.ne

Re: [PATCH v1 1/2] ARM:prima2: move sirfsoc_of_rstc_init to .init_early

2013-06-02 Thread Barry Song
hi Srinivas, 2013/5/31 Srinivas KANDAGATLA : > From: Srinivas Kandagatla > > This patch moves sirfsoc_of_rstc_init from early_initcall to .init_early > in machine descriptor, doing this way a multi_v7 kernel will not crash > on non-prima2 SOCs. > > Without this patch the multi_v7 kernel panics if

Re: [PATCH v1 2/2] ARM:prima2:move postcore_initcalls to init_machine.

2013-06-02 Thread Barry Song
hi Srinivas, 2013/5/31 Srinivas KANDAGATLA : > From: Srinivas Kandagatla > > This patch moves all postcore_initcalls to very first calls in > init_machine. This should achieve the same sequencing as done via > postcore_initcalls. > Without this patch a multi_v7 kernel panics if we boot it on any

Re: [PATCH v1 1/2] ARM:prima2: move sirfsoc_of_rstc_init to .init_early

2013-06-03 Thread Barry Song
her peripheral drivers. now they are actually initialized after init_machine(). > > Thanks, > srini > > On 03/06/13 03:19, Barry Song wrote: >> this broke SiRF by: >> Uncompressing Linux... done, booting the kernel. >> [0.00] Booting Linux on physical CPU 0x0 &

Re: [PATCH v1 2/2] ARM:prima2:move postcore_initcalls to init_machine.

2013-06-03 Thread Barry Song
Hi Srinivas, 2013/6/3 Srinivas KANDAGATLA : > On 03/06/13 04:51, Barry Song wrote: >> did you see this one? >> >> [PATCH v2] arm: prima2: use of_platform_populate instead of >> of_platform_bus_probe >> http://www.spinics.net/lists/arm-kernel/msg243710.html > &

Re: [GIT PULL] Remove ARM local timer API

2013-06-25 Thread Barry Song
2013/6/26 Stephen Boyd : > Olof/Arnd, > > These patches remove the ARM local timer API. The ARM architected > timers have already moved away from this API so this series > migrates the rest of the users allowing us to remove the API > entirely. Thomas has been kind enough to take the first two > pa

Re: [ANNOUNCE] ARM kernel summit 2013, Oct 22-23

2013-07-30 Thread Barry Song
2013/7/30 Olof Johansson : > As previous years, we are planning on hosting a ARM Kernel Summit > attached to the main Kernel Summit, and we have graciously been given > space to host it for two days, Oct 22-23 (Oct 23 is the track day for > the main KS, so we're getting an extra day) in Edinburgh,

Re: [PATCH 13/18] MAINTAINERS: Update sirf patterns

2013-08-08 Thread Barry Song
2013/7/22 Joe Perches : > commit 3370dc916c ("pinctrl:sirf:re-arch and add support for > new SiRFatlas6 SoC") moved the files, update the patterns. > > Signed-off-by: Joe Perches > cc: Barry Song <21cn...@gmail.com> > cc: Linus Walleij Acked-by: Barry Song

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-24 Thread Barry Song
2013/7/18 Greg KH : > On Wed, Jul 17, 2013 at 10:57:06AM +0300, Felipe Balbi wrote: >> Hi, >> >> On Mon, Jul 15, 2013 at 11:31:17PM -0700, Greg KH wrote: >> > > The question is since we default GADGET, so the g_mass_storage.ko is >> > > installed early but connecting to a host PC >> > > is randomly

Re: [PATCH] usb: udc: add gadget state kobject uevent

2013-07-25 Thread Barry Song
2013/7/18 Felipe Balbi : > On Thu, Jul 18, 2013 at 05:28:19PM +0800, Rong Wang wrote: >> Hi Felipe, >> >> Thanks, I'll test the patch. >> >> But sysfs_notify(&gadget->dev.kobj, NULL, "status"), status or state ? >> I notice that DEVICE_ATTR(state, S_IRUGO, usb_gadget_state_show, NULL) > > good eyes

RE: [PATCH 25/29] drivers/spi/spi-sirf.c: simplify use of devm_ioremap_resource

2013-08-14 Thread Barry Song
> -Original Message- > From: Julia Lawall [mailto:julia.law...@lip6.fr] > Sent: Wednesday, August 14, 2013 5:11 PM > To: Barry Song > Cc: kernel-janit...@vger.kernel.org; Mark Brown; > linux-arm-ker...@lists.infradead.org; linux-...@vger.kernel.org; > linux-kernel@vger

Re: [PATCH 11/14] ARM: sirf: Remove init_irq declaration in machine description

2013-05-14 Thread Barry Song
; > Signed-off-by: Maxime Ripard Acked-by: Barry Song > --- > arch/arm/mach-prima2/common.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c > index 4f94cd8..52e28cf 100644 > --- a/arch/arm/mach-prim

Re: [PATCH 08/33] drivers/i2c/busses: don't check resource with devm_ioremap_resource

2013-05-16 Thread Barry Song
2013/5/16 Wolfram Sang : > devm_ioremap_resource does sanity checks on the given resource. No need to > duplicate this in the driver. > > Signed-off-by: Wolfram Sang Acked-by: Barry Song -barry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: [PATCH] clk: prima2: fix return value check in sirfsoc_of_clk_init()

2013-03-11 Thread Barry Song
2013/3/11 Wei Yongjun : > From: Wei Yongjun > > In case of error, the function clk_get() returns ERR_PTR() > not NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Signed-off-by: Wei Yongjun Acked. Thanks! > --- > drivers/clk/clk-prima2.c | 2 +- > 1 file cha

Re: [PATCH] drivers/dma/sirf-dma.c: fix usage of devm functions

2012-08-04 Thread Barry Song
s was found using the following semantic match: > (http://coccinelle.lip6.fr/) > > // > @@ > expression x; > @@ > > *x = devm_ioremap(...) > ... > iounmap(x); > // > > Signed-off-by: Julia Lawall Acked-by: Barry Song thanks! > > --- &

Re: [PATCH] drivers/dma/sirf-dma.c: fix usage of devm functions

2012-08-21 Thread Barry Song
2012/8/22 Vinod Koul : > On Sat, 2012-08-04 at 10:35 +0200, Julia Lawall wrote: >> From: Julia Lawall >> >> Fix some problems with the use of devm_ functions. > Applied, thanks the git log "drivers/dma/sirf-dma.c: fix usage of devm functions" should be fixed. > > > -- > ~Vinod > -barry -- To un

Re: [PATCH] drivers/dma/sirf-dma.c: fix usage of devm functions

2012-08-21 Thread Barry Song
2012/8/22 Julia Lawall : > On Wed, 22 Aug 2012, Barry Song wrote: > >> 2012/8/22 Vinod Koul : >>> >>> On Sat, 2012-08-04 at 10:35 +0200, Julia Lawall wrote: >>>> >>>> From: Julia Lawall >>>> >>>> Fix some problems

Re: [PATCH 4/13] i2c: sirf: use clk_prepare_enable and clk_disable_unprepare

2012-08-26 Thread Barry Song
expression e; > @@ > > - clk_disable(e); > - clk_unprepare(e); > + clk_disable_unprepare(e); > // > > Signed-off-by: Julia Lawall Acked-by: Barry Song <21cn...@gmail.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord..

Re: [RFC] ARM: sched_clock: update epoch_cyc on resume

2012-07-23 Thread Barry Song
reset or not, and sched_clock() could return a > bogus value. Add a suspended flag, and return the pre-suspend epoch_ns > value during this period. Acked-by: Barry Song <21cn...@gmail.com> this patch should also fix the issue that: 1. launch some rt threads, rt threads sleep be

RE: [RFC][PATCH] printk: add boot_quiet param to support deferred printk while booting

2012-11-22 Thread Barry Song
Hi Baruch, Thanks! > -Original Message- > From: Baruch Siach [mailto:bar...@tkos.co.il] > Sent: Friday, November 23, 2012 11:07 AM > To: Barry Song > Cc: gre...@linuxfoundation.org; DL-SHA-WorkGroupLinux; > linux...@lists.linux-foundation.org; linux-kernel@vger.kernel.or

[RFC][PATCH] printk: add boot_quiet param to support deferred printk while booting

2012-11-22 Thread Barry Song
form and OF driver helper [0.411871] TCP: cubic registered [0.411926] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 2 [0.417897] Freeing init memory: 856K ... Signed-off-by: Barry Song --- Note: This is only a RFC, after we agree about the idea, i will move t

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-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] 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 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

[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

Re: [PATCH] vduse: avoid using __GFP_NOFAIL

2024-08-05 Thread Barry Song
On Mon, Aug 5, 2024 at 8:21 PM Jason Wang wrote: > > Barry said [1]: > > """ > mm doesn't support non-blockable __GFP_NOFAIL allocation. Because > __GFP_NOFAIL without direct reclamation may just result in a busy > loop within non-sleepable contexts. > ""“ the current code will result in returnin

Re: [PATCH v2] vduse: avoid using __GFP_NOFAIL

2024-08-15 Thread Barry Song
On Thu, Aug 8, 2024 at 5:43 PM Jason Wang wrote: > > Barry said [1]: > > """ > mm doesn't support non-blockable __GFP_NOFAIL allocation. Because > __GFP_NOFAIL without direct reclamation may just result in a busy > loop within non-sleepable contexts. > > The current code will result in returning a

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: 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: [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: [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

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

[PATCH] Documentation/features: mark BATCHED_UNMAP_TLB_FLUSH doesn't apply to ARM64

2021-02-22 Thread Barry Song
ndy Lutomirski Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Barry Song --- Documentation/features/arch-support.txt| 1 + Documentation/features/vm/TLB/arch-support.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/features/arch-support

[PATCH v2 0/2] scripts/gdb: clarify the platforms supporting lx_current and add arm64 support

2021-02-23 Thread Barry Song
lx_current depends on per_cpu current_task variable which exists on x86 only. so it actually works on x86 only. the 1st patch documents this clearly; the 2nd patch adds support for arm64. Barry Song (2): scripts/gdb: document lx_current is only supported by x86 scripts/gdb: add lx_current

[PATCH v2 1/2] scripts/gdb: document lx_current is only supported by x86

2021-02-23 Thread Barry Song
ment it. Cc: Jan Kiszka Signed-off-by: Barry Song --- Documentation/dev-tools/gdb-kernel-debugging.rst | 2 +- scripts/gdb/linux/cpus.py| 10 -- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/dev-tools/gdb-kernel-debugging.rst b/Doc

[PATCH v2 2/2] scripts/gdb: add lx_current support for arm64

2021-02-23 Thread Barry Song
derefrence of current task. Otherwise, lx_current() will tell users they are running in userspace(EL0). While arm64 is running in EL0, it is actually pointless to print current task as the memory of kernel space is not accessible in EL0. Signed-off-by: Barry Song --- Documentation/dev-tools/gdb

[PATCH v4] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-02-23 Thread Barry Song
=6-7 cap=6102 }, 2:{ span=0-5 mask=2-3 cap=5845 } Reported-by: Valentin Schneider Tested-by: Meelis Roos Reviewed-by: Valentin Schneider Signed-off-by: Barry Song --- -v4: no code changed; mainly rewrote changelog: * add Reviewed-by of Valentin; While the grandchild approach was started

[PATCH v2] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-02-03 Thread Barry Song
s: 6:{ span=6-7 cap=2006 }, 4:{ span=4-5 cap=1949 } [1.539048]domain-2: span=0-1,4-7 level=NUMA [1.539111] groups: 6:{ span=4-7 mask=6-7 cap=4054 }, 0:{ span=0-1 cap=1805 } [1.539571] domain-3: span=0-7 level=NUMA [1.539610] groups: 6:{ span=0-1,4-7 mask=6-7

[PATCH v4 00/12] add IRQF_NO_AUTOEN for request_irq

2021-01-28 Thread Barry Song
This patchset added IRQF_NO_AUTOEN for request_irq() and converted drivers/input to this new API. Other drivers will be handled afterwards. -v4: remove the irq_settings magic for NOAUTOEN Barry Song (12): genirq: add IRQF_NO_AUTOEN for request_irq Input: ar1021 - request_irq by

[PATCH v4 02/12] Input: ar1021 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/ar1021_i2c.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH v4 05/12] Input: bu21029_ts - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags

2021-01-28 Thread Barry Song
Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means the driver doesn't need to call irq_set_status_flags any more. Signed-off-by: Barry Song --- drivers/input/touchscreen/bu21029_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v4 07/12] Input: zinitix - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags

2021-01-28 Thread Barry Song
Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means the driver doesn't need to call irq_set_status_flags any more. Signed-off-by: Barry Song --- drivers/input/touchscreen/zinitix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v4 06/12] Input: stmfts - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags

2021-01-28 Thread Barry Song
Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means the driver doesn't need to call irq_set_status_flags any more. Signed-off-by: Barry Song --- drivers/input/touchscreen/stmfts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/

[PATCH v4 01/12] genirq: add IRQF_NO_AUTOEN for request_irq

2021-01-28 Thread Barry Song
ither irq_set_status_flags() nor disable_irq(). Hundreds of drivers with this problem will be handled afterwards. Cc: Dmitry Torokhov Signed-off-by: Barry Song --- -v4: remove the irq_settings magic for NOAUTOEN include/linux/interrupt.h | 3 +++ kernel/irq/manage.c | 8 +++- 2 files change

[PATCH v4 11/12] Input: tegra-kbc - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/keyboard/tegra-kbc.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v4 09/12] Input: wm831x-ts - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/wm831x-ts.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v4 08/12] Input: mms114 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/mms114.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v4 12/12] Input: tca6416-keypad - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/keyboard/tca6416-keypad.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v4 10/12] Input: cyttsp - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/cyttsp_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v4 04/12] Input: melfas_mip4 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/melfas_mip4.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v4 03/12] Input: atmel_mxt_ts - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-28 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/atmel_mxt_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-01-31 Thread Barry Song
main-2: span=0-1,4-7 level=NUMA [0.872685] groups: 6:{ span=4-7 mask=6-7 cap=4016 }, 1:{ span=0-1 cap=2048 } [0.872737] domain-3: span=0-7 level=NUMA [0.872752] groups: 6:{ span=0-1,4-7 mask=6-7 cap=6064 }, 2:{ span=0-5 mask=2-3 cap=6032 } Reported-by: Valentin Schnei

[PATCH] dma-mapping: benchmark: pretend DMA is transmitting

2021-02-04 Thread Barry Song
-> transmission -> unmap. Transmission delay reduces the contention of IOMMU. Here a delay is added to simulate the transmission for TX case so that the tested result could be more accurate. RX case would be much more tricky. It is not supported yet. Signed-off-by: Barry Song --- kern

[PATCH v2] dma-mapping: benchmark: pretend DMA is transmitting

2021-02-04 Thread Barry Song
ap since the socket buffers come from OS. Simple RX model eg. disk driver, is also map -> RX -> unmap, but real RX model in a NIC could be more complicated considering packets can come spontaneously and many drivers are using pre-mapped buffers pool. This is in the TBD list. Signed-off-by: Ba

[PATCH v3 1/2] dma-mapping: benchmark: use u8 for reserved field in uAPI structure

2021-02-05 Thread Barry Song
in tools, otherwise, if users use old version to run on newer kernel, the random expansion value will cause side effect on newer kernel. Signed-off-by: Barry Song --- kernel/dma/map_benchmark.c | 2 +- tools/testing/selftests/dma/dma_map_benchmark.c | 4 +++- 2 files changed

[PATCH v3] sched/topology: fix the issue groups don't span domain->span for NUMA diameter > 2

2021-02-09 Thread Barry Song
6:{ span=6-7 cap=2006 }, 4:{ span=4-5 cap=1949 } [1.539048]domain-2: span=0-1,4-7 level=NUMA [1.539111] groups: 6:{ span=4-7 mask=6-7 cap=4054 }, 0:{ span=0-1 cap=1805 } [1.539571] domain-3: span=0-7 level=NUMA [1.539610] groups: 6:{ span=0-1,4-7 mask=6-7 cap=6102 }

[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

[PATCH v5 2/2] arm64: mm: reserve per-numa CMA to localize coherent dma buffers

2020-07-31 Thread Barry Song
: Ganapatrao Kulkarni Cc: Catalin Marinas Cc: Nicolas Saenz Julienne Cc: Steve Capper Cc: Andrew Morton Cc: Mike Rapoport Signed-off-by: Barry Song --- arch/arm64/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index b6881d61b818

[PATCH v5 0/2] make dma_alloc_coherent NUMA-aware by per-NUMA CMA

2020-07-31 Thread Barry Song
arameter for per-numa could make life easier. * move dma_pernuma_cma_reserve() after hugetlb_cma_reserve() to reuse the comment before hugetlb_cma_reserve() with respect to Robin's comment -v2: * fix some issues reported by kernel test robot * fallback to default cma while alloca

[PATCH v5 1/2] dma-contiguous: provide the ability to reserve per-numa CMA

2020-07-31 Thread Barry Song
: Christoph Hellwig Cc: Marek Szyprowski Cc: Will Deacon Cc: Robin Murphy Cc: Ganapatrao Kulkarni Cc: Catalin Marinas Cc: Nicolas Saenz Julienne Cc: Steve Capper Cc: Andrew Morton Cc: Mike Rapoport Signed-off-by: Barry Song --- -v5: refine code according to Christoph Hellwig's com

[PATCH v6 0/2] make dma_alloc_coherent NUMA-aware by per-NUMA CMA

2020-08-20 Thread Barry Song
e() to reuse the comment before hugetlb_cma_reserve() with respect to Robin's comment -v2: * fix some issues reported by kernel test robot * fallback to default cma while allocation fails in per-numa cma free memory properly Barry Song (2): dma-contiguous: provide the abil

[PATCH v6 1/2] dma-contiguous: provide the ability to reserve per-numa CMA

2020-08-20 Thread Barry Song
: Christoph Hellwig Cc: Marek Szyprowski Cc: Will Deacon Cc: Robin Murphy Cc: Ganapatrao Kulkarni Cc: Catalin Marinas Cc: Nicolas Saenz Julienne Cc: Steve Capper Cc: Andrew Morton Cc: Mike Rapoport Signed-off-by: Barry Song --- v6: rebase on top of 5.9-rc1; doc cleanup .../admin-guide

[PATCH v6 2/2] arm64: mm: reserve per-numa CMA to localize coherent dma buffers

2020-08-20 Thread Barry Song
: Ganapatrao Kulkarni Cc: Catalin Marinas Cc: Nicolas Saenz Julienne Cc: Steve Capper Cc: Andrew Morton Cc: Mike Rapoport Signed-off-by: Barry Song --- -v6: rebase on top of 5.9-rc1 arch/arm64/mm/init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm

[PATCH] mm/gup_benchmark: update the documentation in Kconfig

2020-08-20 Thread Barry Song
update. Cc: John Hubbard Cc: Keith Busch Cc: Ira Weiny Cc: Kirill A. Shutemov Signed-off-by: Barry Song --- mm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/Kconfig b/mm/Kconfig index 6c974888f86f..f7c9374da7b3 100644 --- a/mm/Kconfig +++ b/mm/Kconfig

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

2020-08-18 Thread Barry Song
ned-off-by: Barry Song --- -v6: * rebase on top of 5.9-rc1; * move to crypto_alloc_acomp_node() API to use local ZIP hardware mm/zswap.c | 183 - 1 file changed, 138 insertions(+), 45 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index fb

[PATCH] mm/gup: don't permit users to call get_user_pages with FOLL_LONGTERM

2020-08-19 Thread Barry Song
hinner Cc: Jason Gunthorpe Cc: Jonathan Corbet Cc: Michal Hocko Cc: Mike Kravetz Cc: Shuah Khan Cc: Vlastimil Babka Signed-off-by: Barry Song --- mm/gup.c | 37 ++--- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/mm/gup.c b/mm/gup.c index ae

[PATCH v3 02/12] Input: ar1021 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/ar1021_i2c.c | 5 + 1 file changed, 1 insertion(+), 4

[PATCH v3 00/12] add IRQF_NO_AUTOEN for request_irq

2021-01-07 Thread Barry Song
This patchset added IRQF_NO_AUTOEN for request_irq() and converted drivers/input to this new API. Other drivers will be handled afterwards. -v3: added examples with respect to Greg's comment Barry Song (12): genirq: add IRQF_NO_AUTOEN for request_irq Input: ar1021 - request_i

[PATCH v3 03/12] Input: atmel_mxt_ts - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/atmel_mxt_ts.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v3 01/12] genirq: add IRQF_NO_AUTOEN for request_irq

2021-01-07 Thread Barry Song
ither irq_set_status_flags() nor disable_irq(). Hundreds of drivers with this problem will be handled afterwards. Cc: Dmitry Torokhov Signed-off-by: Barry Song --- include/linux/interrupt.h | 3 +++ kernel/irq/manage.c | 8 kernel/irq/settings.h | 10 ++ 3 files changed, 21 inser

[PATCH v3 04/12] Input: melfas_mip4 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/melfas_mip4.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v3 05/12] Input: bu21029_ts - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags

2021-01-07 Thread Barry Song
Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means the driver doesn't need to call irq_set_status_flags any more. Signed-off-by: Barry Song --- drivers/input/touchscreen/bu21029_ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v3 06/12] Input: stmfts - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags

2021-01-07 Thread Barry Song
Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means the driver doesn't need to call irq_set_status_flags any more. Signed-off-by: Barry Song --- drivers/input/touchscreen/stmfts.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/

[PATCH v3 10/12] Input: cyttsp - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/cyttsp_core.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v3 09/12] Input: wm831x-ts - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/wm831x-ts.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v3 12/12] Input: tca6416-keypad - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/keyboard/tca6416-keypad.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v3 08/12] Input: mms114 - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/touchscreen/mms114.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v3 07/12] Input: zinitix - request_irq by IRQF_NO_AUTOEN and remove irq_set_status_flags

2021-01-07 Thread Barry Song
Right now, irq core supports requesting irq with IRQF_NO_AUTOEN, this means the driver doesn't need to call irq_set_status_flags any more. Signed-off-by: Barry Song --- drivers/input/touchscreen/zinitix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v3 11/12] Input: tegra-kbc - request_irq by IRQF_NO_AUTOEN and remove disable_irq

2021-01-07 Thread Barry Song
disable_irq() after request_irq() still has a time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN flag will disable IRQ auto-enable because of requesting. Signed-off-by: Barry Song --- drivers/input/keyboard/tegra-kbc.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH] dma-mapping: benchmark: fix kernel crash when dma_map_single fails

2021-01-07 Thread Barry Song
(f8626802) [ 48.112884] ---[ end trace d4890e21e75419d5 ]--- Signed-off-by: Barry Song --- kernel/dma/map_benchmark.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/dma/map_benchmark.c b/kernel/dma/map_benchmark.c index b1496e744c68..1b1b8ff875cb 100644 --- a

[PATCH v2] sched/topology: remove redundant cpumask_and in init_overlap_sched_group

2021-03-24 Thread Barry Song
mask is built in build_balance_mask() by for_each_cpu(i, sg_span), so it must be a subset of sched_group_span(sg). Though cpumask_first_and doesn't lead to a wrong result of balance cpu, it is pointless to do cpumask_and again. Signed-off-by: Barry Song Reviewed-by: Valentin Schneider ---

[RFC PATCH v5 1/4] topology: Represent clusters of CPUs within a die

2021-03-18 Thread Barry Song
: Jonathan Cameron Signed-off-by: Barry Song --- Documentation/admin-guide/cputopology.rst | 26 +++-- arch/arm64/kernel/topology.c | 2 + drivers/acpi/pptt.c | 63 +++ drivers/base/arch_topology.c | 15

[RFC PATCH v5 0/4] scheduler: expose the topology of clusters and add cluster scheduler

2021-03-18 Thread Barry Song
ading unrelated tasks * avoided the iteration of sched_domain by moving to static_key(addressing Vincent's comment * used acpi_cpu_id for acpi_find_processor_node(addressing Masa's comment) Barry Song (2): scheduler: add scheduler level for clusters scheduler: scan idle cpu i

[RFC PATCH v5 3/4] scheduler: scan idle cpu in cluster before scanning the whole llc

2021-03-18 Thread Barry Song
/python # # selectidlecpu.py select idle cpu histogram. # # A Ctrl-C will print the gathered histogram then exit. # # 18-March-2021 Barry Song Created this. from __future__ import print_function from bcc import BPF from time import sleep # load BPF program b = BPF(text=""" BPF

[RFC PATCH v5 4/4] scheduler: Add cluster scheduler level for x86

2021-03-18 Thread Barry Song
: Tim Chen Signed-off-by: Barry Song --- arch/x86/Kconfig| 8 arch/x86/include/asm/smp.h | 7 +++ arch/x86/include/asm/topology.h | 1 + arch/x86/kernel/cpu/cacheinfo.c | 1 + arch/x86/kernel/cpu/common.c| 3 +++ arch/x86/kernel/smpboot.c | 43

  1   2   3   4   5   6   >