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

2021-04-20 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Tim Chen [mailto:tim.c.c...@linux.intel.com] > Sent: Wednesday, April 21, 2021 6:32 AM > To: Song Bao Hua (Barry Song) ; > catalin.mari...@arm.com; w...@kernel.org; r...@rjwysocki.net; > vincent.guit...@linaro.org; b...@alien8.de; t...@l

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

2021-04-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, March 19, 2021 11:02 PM > To: Jonathan Cameron > Cc: Song Bao Hua (Barry Song) ; > tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwyso

[RFC PATCH v6 3/4] scheduler: scan idle cpu in cluster for tasks within one LLC

2021-04-19 Thread Barry Song
y change w/domain: added cluster domain without changing wake_affine w/domain+affine: added cluster domain, changed wake_affine while g=6, if we use top -H to show the cpus which tasks are running on, we can easily find couples are running in same CCL. Signed-off-by: Barry Song --- -v6: * emul

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

2021-04-19 Thread Barry Song
-by: Tim Chen Signed-off-by: Barry Song --- -v6: * added topology_cluster_cpumask() for x86, code provided by Tim. arch/x86/Kconfig| 8 arch/x86/include/asm/smp.h | 7 +++ arch/x86/include/asm/topology.h | 2 ++ arch/x86/kernel/cpu/cacheinfo.c | 1 + arch

[RFC PATCH v6 2/4] scheduler: add scheduler level for clusters

2021-04-19 Thread Barry Song
h benefits hackbench when the load is relatively low, while it hurts hackbench much when the load is relatively high(56 and 64 threads in 24 cores). Signed-off-by: Barry Song --- arch/arm64/Kconfig | 7 +++ include/linux/sched/cluster.h | 19 +++ include/l

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

2021-04-19 Thread Barry Song
-by: Jonathan Cameron Signed-off-by: Barry Song --- -v6: * the topology ABI documents required by Greg is not completed yet. will have a separate patch for that. Documentation/admin-guide/cputopology.rst | 26 +++-- arch/arm64/kernel/topology.c | 2 + drivers/acpi/pptt.c

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

2021-04-19 Thread Barry Song
* also added benchmark data of spreading 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 sched

RE: [RFC PATCH v3 0/2] scheduler: expose the topology of clusters and add cluster scheduler

2021-04-13 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] > Sent: Wednesday, January 13, 2021 12:00 AM > To: Morten Rasmussen ; Tim Chen > > Cc: Song Bao Hua (Barry Song) ; > valentin.schnei...@arm.com; catalin.mari...@arm.com; w...@kernel.org;

RE: [PATCH v1 1/1] i2c: designware: Adjust bus_freq_hz when refuse high speed mode set

2021-03-31 Thread Song Bao Hua (Barry Song)
g > ; w...@kernel.org; yangyicong > ; Song Bao Hua (Barry Song) > > Subject: [PATCH v1 1/1] i2c: designware: Adjust bus_freq_hz when refuse high > speed mode set > > When hardware doesn't support High Speed Mode, we forget bus_freq_hz > timing adjustment. This makes the timi

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

2021-03-31 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Wednesday, March 24, 2021 12:15 PM > To: 'Tim Chen' ; catalin.mari...@arm.com; > w...@kernel.org; r...@rjwysocki.net; vincent.guit...@linaro.org; > b...@alien8.de; > t...@linutronix.de; mi...@redhat.com;

RE: [PATCH 5/5] i2c: designware: Switch over to i2c_freq_mode_string()

2021-03-31 Thread Song Bao Hua (Barry Song)
> No, please read the code carefully. > We can duplicate conditional, but it brings a bit of inconsistency to how the > counters are printed. Thanks for clarification, I am still confused as the original code print the real mode based on dev->master_cfg, the new code is printing mode based on

RE: [PATCH 5/5] i2c: designware: Switch over to i2c_freq_mode_string()

2021-03-30 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Wednesday, March 31, 2021 10:54 AM > To: 'Andy Shevchenko' > Cc: yangyicong ; w...@kernel.org; > andriy.shevche...@linux.intel.com; linux-...@vger.kernel.org; > sergey.se...@baikalelectronics.ru; linux-k

RE: [PATCH 5/5] i2c: designware: Switch over to i2c_freq_mode_string()

2021-03-30 Thread Song Bao Hua (Barry Song)
From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] Sent: Wednesday, March 31, 2021 10:57 AM To: Song Bao Hua (Barry Song) Cc: yangyicong ; w...@kernel.org; andriy.shevche...@linux.intel.com; linux-...@vger.kernel.org; sergey.se...@baikalelectronics.ru; linux-kernel@vger.kernel.org

RE: [PATCH 5/5] i2c: designware: Switch over to i2c_freq_mode_string()

2021-03-30 Thread Song Bao Hua (Barry Song)
m; tred...@nvidia.com; jarkko.nik...@linux.intel.com; > rmk+ker...@armlinux.org.uk; Song Bao Hua (Barry Song) > ; John Garry ; > mika.westerb...@linux.intel.com; yangyicong ; Zengtao > (B) ; Linuxarm > Subject: [PATCH 5/5] i2c: designware: Switch over to i2c_freq_mode_string() > &g

RE: [External] Re: [PATCH v2 1/8] mm/cma: change cma mutex to irq safe spinlock

2021-03-30 Thread Song Bao Hua (Barry Song)
enbrand ; David Rientjes > ; linmiaohe ; Peter Zijlstra > ; Matthew Wilcox ; HORIGUCHI NAOYA > ; Aneesh Kumar K . V ; > Waiman Long ; Peter Xu ; Mina Almasry > ; Hillf Danton ; Joonsoo Kim > ; Song Bao Hua (Barry Song) > ; Will Deacon ; Andrew Morton > > Subject: Re: [Ex

RE: [PATCH v2 1/8] mm/cma: change cma mutex to irq safe spinlock

2021-03-29 Thread Song Bao Hua (Barry Song)
; Muchun Song ; David Rientjes > ; linmiaohe ; Peter Zijlstra > ; Matthew Wilcox ; HORIGUCHI NAOYA > ; Aneesh Kumar K . V ; > Waiman Long ; Peter Xu ; Mina Almasry > ; Hillf Danton ; Joonsoo Kim > ; Song Bao Hua (Barry Song) > ; Will Deacon ; Andrew Morton > ; Mike Kravetz

[tip: sched/core] sched/topology: Remove redundant cpumask_and() in init_overlap_sched_group()

2021-03-25 Thread tip-bot2 for Barry Song
The following commit has been merged into the sched/core branch of tip: Commit-ID: 0a2b65c03e9b47493e1442bf9c84badc60d9bffb Gitweb: https://git.kernel.org/tip/0a2b65c03e9b47493e1442bf9c84badc60d9bffb Author:Barry Song AuthorDate:Thu, 25 Mar 2021 15:31:40 +13:00 Committer

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

RE: [PATCH] dma-mapping: make map_benchmark compile into module

2021-03-24 Thread Song Bao Hua (Barry Song)
s.org; h...@lst.de; > m.szyprow...@samsung.com; Song Bao Hua (Barry Song) > ; io...@lists.linux-foundation.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] dma-mapping: make map_benchmark compile into module > > On Wed, Mar 24, 2021 at 10:17:38AM +0800, Tian Tao wrote: >

RE: [PATCH] dma-mapping: make map_benchmark compile into module

2021-03-23 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: tiantao (H) > Sent: Wednesday, March 24, 2021 3:18 PM > To: a...@linux-foundation.org; pet...@infradead.org; paul...@kernel.org; > a...@kernel.org; t...@linutronix.de; rost...@goodmis.org; h...@lst.de; > m.szyprow...@samsung.com; Song B

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

2021-03-23 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Tim Chen [mailto:tim.c.c...@linux.intel.com] > Sent: Wednesday, March 24, 2021 11:51 AM > To: Song Bao Hua (Barry Song) ; > catalin.mari...@arm.com; w...@kernel.org; r...@rjwysocki.net; > vincent.guit...@linaro.org; b...@alien8.de; t...@l

[tip: sched/core] sched/fair: Optimize test_idle_cores() for !SMT

2021-03-23 Thread tip-bot2 for Barry Song
The following commit has been merged into the sched/core branch of tip: Commit-ID: c8987ae5af793a73e2c0d6ce804d8ff454ea377c Gitweb: https://git.kernel.org/tip/c8987ae5af793a73e2c0d6ce804d8ff454ea377c Author:Barry Song AuthorDate:Sun, 21 Mar 2021 11:14:32 +13:00 Committer

RE: [Linuxarm] Re: [PATCH] sched/fair: remove redundant test_idle_cores for non-smt

2021-03-21 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Li, Aubrey [mailto:aubrey...@linux.intel.com] > Sent: Monday, March 22, 2021 5:37 PM > To: Song Bao Hua (Barry Song) ; > vincent.guit...@linaro.org; mi...@redhat.com; pet...@infradead.org; > juri.le...@redhat.com; dietmar.eggem...@arm.com; r

[PATCH] sched/fair: remove redundant test_idle_cores for non-smt

2021-03-20 Thread Barry Song
this patch: g=2 4 6 8 10 12 14 w/o: 1.8151 3.8499 5.5142 7.2491 9.0340 10.7345 12.0929 w/ : 1.8428 3.7436 5.4501 6.9522 8.2882 9.9535 11.3367 +4.1% +8.3% +7.3% +6.3% Signed-off-by: Barry Song --- kernel/sched/fair.c | 8 +--- 1 file

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

2021-03-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Friday, March 19, 2021 5:16 PM > To: tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net; vincent.guit...@linaro.org; b...@alien8.de; > t...@linutronix.de; m

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

2021-03-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday, March 19, 2021 7:35 PM > To: Song Bao Hua (Barry Song) > Cc: tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net; vincent.guit...@linaro.o

RE: [PATCH] tty: serial: samsung_tty: remove spinlock flags in interrupt handlers

2021-03-19 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Tuesday, March 16, 2021 10:41 PM > To: Johan Hovold ; Finn Thain ; > Song Bao Hua (Barry Song) > Cc: Krzysztof Kozlowski ; Greg > Kroah-Hartman ; Jiri Slaby ; > linux-arm Mail

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

2021-03-18 Thread Barry Song
-by: 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

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

2021-03-18 Thread Barry Song
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 in cluster befor

[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 2/4] scheduler: add scheduler level for clusters

2021-03-18 Thread Barry Song
142 7.2491 9.0340 10.7345 12.0929 w/ : 1.8396 3.8250 5.4780 7.3442 9.0172 10.5950 11.9113 Obviously this patch doesn't impact hackbench too much. Signed-off-by: Barry Song --- arch/arm64/Kconfig | 7 +++ include/linux/sched/cluster.h | 19 +++ include/linux/sched/

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

2021-03-18 Thread Barry Song
-by: 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

RE: [RFC PATCH v4 2/3] scheduler: add scheduler level for clusters

2021-03-16 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Tuesday, March 2, 2021 11:43 PM > To: Song Bao Hua (Barry Song) > Cc: tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net; vincent.guit...@linaro.o

RE: [RFC PATCH v4 1/3] topology: Represent clusters of CPUs within a die.

2021-03-14 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Tuesday, March 2, 2021 12:00 PM > To: tim.c.c...@linux.intel.com; catalin.mari...@arm.com; w...@kernel.org; > r...@rjwysocki.net; vincent.guit...@linaro.org; b...@alien8.de; > t...@linutronix.de; m

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

2021-03-14 Thread Barry Song
of Andrew Morton; Barry Song (2): scripts/gdb: document lx_current is only supported by x86 scripts/gdb: add lx_current support for arm64 .../dev-tools/gdb-kernel-debugging.rst| 2 +- scripts/gdb/linux/cpus.py | 23 +-- 2 files changed, 22

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

2021-03-14 Thread Barry Song
the 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

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

2021-03-14 Thread Barry Song
: 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/Documentation/

RE: [Linuxarm] Re: [RFC PATCH v4 3/3] scheduler: Add cluster scheduler level for x86

2021-03-08 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Tim Chen [mailto:tim.c.c...@linux.intel.com] > Sent: Thursday, March 4, 2021 7:34 AM > To: Peter Zijlstra ; Song Bao Hua (Barry Song) > > Cc: catalin.mari...@arm.com; w...@kernel.org; r...@rjwysocki.net; > vincent.guit...@linaro.o

RE: [RFC PATCH v4 2/3] scheduler: add scheduler level for clusters

2021-03-08 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Vincent Guittot [mailto:vincent.guit...@linaro.org] > Sent: Tuesday, March 9, 2021 12:26 AM > To: Song Bao Hua (Barry Song) > Cc: Tim Chen ; Catalin Marinas > ; Will Deacon ; Rafael J. Wysocki > ; Borislav Petkov ; Thomas Gleixner >

[tip: irq/core] genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()

2021-03-06 Thread tip-bot2 for Barry Song
The following commit has been merged into the irq/core branch of tip: Commit-ID: cbe16f35bee6880becca6f20d2ebf6b457148552 Gitweb: https://git.kernel.org/tip/cbe16f35bee6880becca6f20d2ebf6b457148552 Author:Barry Song AuthorDate:Wed, 03 Mar 2021 11:49:15 +13:00 Committer

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

2021-03-06 Thread tip-bot2 for Barry Song
The following commit has been merged into the sched/core branch of tip: Commit-ID: 585b6d2723dc927ebc4ad884c4e879e4da8bc21f Gitweb: https://git.kernel.org/tip/585b6d2723dc927ebc4ad884c4e879e4da8bc21f Author:Barry Song AuthorDate:Wed, 24 Feb 2021 16:09:44 +13:00 Committer

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

2021-03-05 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Valentin Schneider [mailto:valentin.schnei...@arm.com] > Sent: Saturday, March 6, 2021 12:49 AM > To: Song Bao Hua (Barry Song) ; > vincent.guit...@linaro.org; mi...@redhat.com; pet...@infradead.org; > juri.le...@redhat.com; dietmar.egge

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

2021-03-04 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 --- kernel/sched/topology.c | 2 +- 1

[tip: irq/core] genirq: Add IRQF_NO_AUTOEN for request_irq/nmi()

2021-03-04 Thread tip-bot2 for Barry Song
The following commit has been merged into the irq/core branch of tip: Commit-ID: e749df1bbd23f4472082210650514548d8a39e9b Gitweb: https://git.kernel.org/tip/e749df1bbd23f4472082210650514548d8a39e9b Author:Barry Song AuthorDate:Wed, 03 Mar 2021 11:49:15 +13:00 Committer

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

2021-03-04 Thread tip-bot2 for Barry Song
The following commit has been merged into the sched/core branch of tip: Commit-ID: 9f4af5753b691b9df558ddcfea13e9f3036e45ca Gitweb: https://git.kernel.org/tip/9f4af5753b691b9df558ddcfea13e9f3036e45ca Author:Barry Song AuthorDate:Wed, 24 Feb 2021 16:09:44 +13:00 Committer

[PATCH v5 2/2] Input: move to use request_irq by IRQF_NO_AUTOEN flag

2021-03-03 Thread Barry Song
(dev, irq...); can also be replaced by request_irq() with IRQF_NO_AUTOEN flag. Signed-off-by: Barry Song --- drivers/input/keyboard/tca6416-keypad.c | 3 +-- drivers/input/keyboard/tegra-kbc.c | 5 ++--- drivers/input/touchscreen/ar1021_i2c.c | 5 + drivers/input/touchscreen

[PATCH v5 1/2] genirq: add IRQF_NO_AUTOEN for request_irq

2021-03-03 Thread Barry Song
irq_set_status_flags() nor disable_irq(). In the meantime, drivers using the below pattern for NMI irq_set_status_flags(irq, IRQ_NOAUTOEN); request_nmi(dev, irq...); can also move to request_nmi() with IRQF_NO_AUTOEN flag. Cc: Dmitry Torokhov Signed-off-by: Barry Song --- -v5: * add the same check

[PATCH v5 0/2] add IRQF_NO_AUTOEN for request_irq

2021-03-03 Thread Barry Song
-v5: * add the same check for IRQF_NO_AUTOEN in request_nmi() * combine a dozen of separate patches of input into one (hopefully this could easy the life of the maintainers) -v4: * remove the irq_settings magic for NOAUTOEN with respect to Thomas's comment Barry Song (2): genirq

[PATCH] Documentation/admin-guide: kernel-parameters: correct the architectures for numa_balancing

2021-03-02 Thread Barry Song
s Gleixner Cc: Mauro Carvalho Chehab Cc: Viresh Kumar Cc: Mike Kravetz Cc: Peter Zijlstra Signed-off-by: Barry Song --- Documentation/admin-guide/kernel-parameters.rst | 1 + Documentation/admin-guide/kernel-parameters.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)

[RFC PATCH v4 3/3] scheduler: Add cluster scheduler level for x86

2021-03-01 Thread Barry Song
-by: 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

[RFC PATCH v4 2/3] scheduler: add scheduler level for clusters

2021-03-01 Thread Barry Song
10 12 14 w/o: 1.9596 4.0506 5.9654 8.0068 9.8147 11.4900 13.1163 w/ : 1.9362 3.9197 5.6570 7.1376 8.5263 10.0512 11.3256 +3.3% +5.2% +10.9% +13.2% +12.8% +13.7% Signed-off-by: Barry Song --- -v4: * rebased to tip/sched/core with the latest unified code of select_idle_cpu

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

2021-03-01 Thread Barry Song
* 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 (1): scheduler: add scheduler level for clusters Jonathan Cameron (1): topology: Represent clusters of CPUs

[RFC PATCH v4 1/3] topology: Represent clusters of CPUs within a die.

2021-03-01 Thread Barry Song
-by: Jonathan Cameron Signed-off-by: Barry Song --- -v4: * used acpi_cpu_id for acpi_find_processor_node(addressing Masa's comment) Documentation/admin-guide/cputopology.rst | 26 +++-- arch/arm64/kernel/topology.c | 2 + drivers/acpi/pptt.c | 63

RE: [Linuxarm] [PATCH v1] drm/nouveau/device: append a NUL-terminated character for the string which filled by strncpy()

2021-02-25 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Luo Jiaxing [mailto:luojiax...@huawei.com] > Sent: Friday, February 26, 2021 12:39 AM > To: nouv...@lists.freedesktop.org; dri-de...@lists.freedesktop.org; > bske...@redhat.com > Cc: linux-kernel@vger.kernel.org; linux...@openeuler.org; luojiaxing > >

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-24 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Wednesday, February 24, 2021 6:21 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

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

2021-02-23 Thread Barry Song
chneider 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 by me, Valentin contributed the most useful edit; * add description

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

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

2021-02-23 Thread Barry Song
the 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

RE: [PATCH] scripts/gdb: document lx_current is only supported by x86

2021-02-23 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Tuesday, February 23, 2021 9:30 PM > To: 'Jan Kiszka' ; kieran.bing...@ideasonboard.com; > cor...@lwn.net; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux...@openeuler.org > Subject

RE: [PATCH] scripts/gdb: document lx_current is only supported by x86

2021-02-23 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Jan Kiszka [mailto:jan.kis...@siemens.com] > Sent: Tuesday, February 23, 2021 8:27 PM > To: Song Bao Hua (Barry Song) ; > kieran.bing...@ideasonboard.com; cor...@lwn.net; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linu

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

2021-02-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Anshuman Khandual [mailto:anshuman.khand...@arm.com] > Sent: Tuesday, February 23, 2021 7:10 PM > To: Song Bao Hua (Barry Song) ; cor...@lwn.net; > linux-...@vger.kernel.org; a...@linux-foundation.org; linux...@kvack.org >

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Tuesday, February 23, 2021 6:25 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

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

2021-02-22 Thread Barry Song
utomirski 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.txt

RE: [PATCH] scripts/gdb: document lx_current is only supported by x86

2021-02-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Kieran Bingham [mailto:kieran.bing...@ideasonboard.com] > Sent: Tuesday, February 23, 2021 12:06 AM > To: Song Bao Hua (Barry Song) ; cor...@lwn.net; > linux-...@vger.kernel.org; jan.kis...@siemens.com > Cc: linux-kernel@vger

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-21 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Saturday, February 20, 2021 6:18 PM > To: tanxiaofei > Cc: Song Bao Hua (Barry Song) ; > j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linu

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

2021-02-21 Thread Barry Song
ocument 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

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

2021-02-18 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Valentin Schneider [mailto:valentin.schnei...@arm.com] > Sent: Friday, February 19, 2021 1:41 AM > To: Song Bao Hua (Barry Song) ; Peter Zijlstra > > Cc: vincent.guit...@linaro.org; mgor...@suse.de; mi...@kernel.org; > dietmar.eggem...@a

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

2021-02-18 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Valentin Schneider [mailto:valentin.schnei...@arm.com] > Sent: Friday, February 12, 2021 8:55 AM > To: Peter Zijlstra ; Song Bao Hua (Barry Song) > > Cc: vincent.guit...@linaro.org; mgor...@suse.de; mi...@kernel.org; > dietmar.eggem...@a

RE: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-17 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Sunday, February 14, 2021 6:11 PM > To: Song Bao Hua (Barry Song) > Cc: Arnd Bergmann ; t...@linutronix.de; > gre...@linuxfoundation.org; a...@arndb.de; ge...@linux-m68k.org; >

RE: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-13 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Sunday, February 14, 2021 11:13 AM > To: 'Arnd Bergmann' > Cc: t...@linutronix.de; gre...@linuxfoundation.org; a...@arndb.de; > ge...@linux-m68k.org; fun...@jurai.org; ph...@gnu.org; cor...@lwn.net; > mi

RE: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-13 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Arnd Bergmann [mailto:a...@kernel.org] > Sent: Sunday, February 14, 2021 5:32 AM > To: Song Bao Hua (Barry Song) > Cc: t...@linutronix.de; gre...@linuxfoundation.org; a...@arndb.de; > ge...@linux-m68k.org; fun...@jurai.org; ph...@gnu.o

RE: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Arnd Bergmann [mailto:a...@kernel.org] > Sent: Saturday, February 13, 2021 12:06 PM > To: Song Bao Hua (Barry Song) > Cc: t...@linutronix.de; gre...@linuxfoundation.org; a...@arndb.de; > ge...@linux-m68k.org; fun...@jurai.org; ph...@gnu.o

RE: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Arnd Bergmann [mailto:a...@kernel.org] > Sent: Saturday, February 13, 2021 11:34 AM > To: Song Bao Hua (Barry Song) > Cc: t...@linutronix.de; gre...@linuxfoundation.org; a...@arndb.de; > ge...@linux-m68k.org; fun...@jurai.org; ph...@gnu.o

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Arnd Bergmann [mailto:a...@kernel.org] > Sent: Saturday, February 13, 2021 9:23 AM > To: Grygorii Strashko > Cc: Song Bao Hua (Barry Song) ; Andy Shevchenko > ; luojiaxing ; Linus > Walleij ; Santosh Shilimkar ; > Kevin Hilman ;

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > Sent: Saturday, February 13, 2021 3:09 AM > To: Song Bao Hua (Barry Song) ; Andy Shevchenko > > Cc: Arnd Bergmann ; luojiaxing ; Linus > Walleij ; Santosh Shilimkar ; > Kevin

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > Sent: Saturday, February 13, 2021 12:53 AM > To: Song Bao Hua (Barry Song) ; Andy Shevchenko > > Cc: Arnd Bergmann ; luojiaxing ; Linus > Walleij ; Santosh Shilimkar ; > Kevin

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, February 12, 2021 11:57 PM > To: Song Bao Hua (Barry Song) > Cc: Grygorii Strashko ; Arnd Bergmann > ; luojiaxing ; Linus Walleij > ; Santosh Shilimkar ; Kevin >

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > Sent: Friday, February 12, 2021 11:28 PM > To: Arnd Bergmann ; Song Bao Hua (Barry Song) > > Cc: luojiaxing ; Linus Walleij > ; Andy Shevchenko ; Andy > Shevchenko ; Santosh Sh

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Arnd Bergmann [mailto:a...@kernel.org] > Sent: Friday, February 12, 2021 10:45 PM > To: Song Bao Hua (Barry Song) > Cc: Grygorii Strashko ; luojiaxing > ; Linus Walleij ; Andy > Shevchenko ; Andy Shevchenko > ; Santosh Shilimkar

RE: kernel BUG at mm/zswap.c:1275! (rc6 - git 61556703b610)

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Oleksandr Natalenko [mailto:oleksa...@natalenko.name] > Sent: Friday, February 12, 2021 8:43 PM > To: Song Bao Hua (Barry Song) > Cc: Mikhail Gavrilov ; > sjenn...@linux.vnet.ibm.com; Linux List Kernel Mailing > ; Linux Memory Managem

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-11 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > Sent: Friday, February 12, 2021 9:17 AM > To: Arnd Bergmann > Cc: luojiaxing ; Linus Walleij > ; Andy Shevchenko ; Andy > Shevchenko ; Santosh Shilimkar > ; Kevin Hilman ; open list:GPIO > SUBSYSTEM ,

RE: Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-11 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Friday, February 12, 2021 1:09 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

[RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-11 Thread Song Bao Hua (Barry Song)
Hi, I am getting a very long debate with Finn in this thread: https://lore.kernel.org/lkml/1612697823-8073-1-git-send-email-tanxiao...@huawei.com/ In short, the debate is about if high-priority IRQs (*not NMI*) are allowed to preempt an running IRQ handler in hardIRQ context. In my

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-11 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Friday, February 12, 2021 12:58 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

RE: Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-11 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Friday, February 12, 2021 12:57 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

RE: Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-11 Thread Song Bao Hua (Barry Song)
> > > > On Wed, 10 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > > > On Wed, 10 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > > > > > > > On Wed, 10 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > >

RE: kernel BUG at mm/zswap.c:1275! (rc6 - git 61556703b610)

2021-02-11 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Mikhail Gavrilov [mailto:mikhail.v.gavri...@gmail.com] > Sent: Thursday, February 11, 2021 9:58 PM > To: sjenn...@linux.vnet.ibm.com; Song Bao Hua (Barry Song) > > Cc: Linux List Kernel Mailing ; Linux Memory > Management List > S

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Thursday, February 11, 2021 2:12 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Thursday, February 11, 2021 11:35 AM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

RE: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Jason Gunthorpe [mailto:j...@ziepe.ca] > Sent: Thursday, February 11, 2021 7:04 AM > To: Song Bao Hua (Barry Song) > Cc: David Hildenbrand ; Wangzhou (B) > ; linux-kernel@vger.kernel.org; > io...@lists.linux-foundation.org; linux...@k

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Thursday, February 11, 2021 10:07 AM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

RE: [Linuxarm] Re: [PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Thursday, February 11, 2021 3:57 AM > To: Song Bao Hua (Barry Song) > Cc: luojiaxing ; Linus Walleij > ; Grygorii Strashko ; > Santosh Shilimkar ; Kevin Hilman ; > open lis

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

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Thursday, February 11, 2021 12:22 AM > To: Song Bao Hua (Barry Song) > Cc: valentin.schnei...@arm.com; vincent.guit...@linaro.org; mgor...@suse.de; > mi...@kernel.org; dietma

RE: [Linuxarm] Re: [PATCH for next v1 0/2] gpio: few clean up patches to replace spin_lock_irqsave with spin_lock

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Wednesday, February 10, 2021 11:51 PM > To: luojiaxing > Cc: Linus Walleij ; Andy Shevchenko > ; Grygorii Strashko > ; Santosh Shilimkar ; Kevin > Hilman ; open list:GPIO SUBSYSTEM > ; Linux Kernel

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

2021-02-10 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Meelis Roos [mailto:mr...@linux.ee] > Sent: Wednesday, February 10, 2021 1:40 AM > To: Song Bao Hua (Barry Song) ; > valentin.schnei...@arm.com; vincent.guit...@linaro.org; mgor...@suse.de; > mi...@kernel.org; pet...@infradead.org; dietma

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-09 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Wednesday, February 10, 2021 5:16 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-kernel@v

RE: [Linuxarm] Re: [PATCH for-next 00/32] spin lock usage optimization for SCSI drivers

2021-02-09 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Finn Thain [mailto:fth...@telegraphics.com.au] > Sent: Wednesday, February 10, 2021 1:29 PM > To: Song Bao Hua (Barry Song) > Cc: tanxiaofei ; j...@linux.ibm.com; > martin.peter...@oracle.com; linux-s...@vger.kernel.org; > linux-k

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

2021-02-09 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Friday, January 29, 2021 11:35 AM > To: t...@linutronix.de; dmitry.torok...@gmail.com; m...@kernel.org; > gre...@linuxfoundation.org; linux-in...@vger.kernel.org; > linux-kernel@vger.kernel.org > Cc: l

RE: [RFC PATCH v3 1/2] mempinfd: Add new syscall to provide memory pin

2021-02-09 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Jason Gunthorpe [mailto:j...@ziepe.ca] > Sent: Wednesday, February 10, 2021 2:54 AM > To: Song Bao Hua (Barry Song) > Cc: David Hildenbrand ; Wangzhou (B) > ; linux-kernel@vger.kernel.org; > io...@lists.linux-foundation.org; linux...@k

  1   2   3   4   5   6   7   >