[PATCH v8] lib: optimize cpumask_local_spread()

2021-01-04 Thread Shaokun Zhang
hen the network card is still in 'node2' with the patch. Cc: Dave Hansen Cc: Rusty Russell Cc: Andrew Morton Cc: Juergen Gross Cc: Paul Burton Cc: Michal Hocko Cc: Michael Ellerman Cc: Mike Rapoport Cc: Anshuman Khandual Signed-off-by: Yuqi Jin Signed-off-by: Shaokun Zhang ---

Re: [PATCH v7] lib: optimize cpumask_local_spread()

2020-12-10 Thread Shaokun Zhang
Hi Dave, Apologies for the late reply. 在 2020/12/1 1:08, Dave Hansen 写道: { - int cpu, hk_flags; + static DEFINE_SPINLOCK(spread_lock); + static bool used[MAX_NUMNODES]; >>> >>> I thought I mentioned this last time. How large is this array? How >>> large would it be if it

Re: [PATCH v7] lib: optimize cpumask_local_spread()

2020-11-26 Thread Shaokun Zhang
Hi Dave, Apologies for later reply. 在 2020/11/21 1:48, Dave Hansen 写道: > On 11/17/20 6:54 PM, Shaokun Zhang wrote: >> From: Yuqi Jin >> >> In multi-processor and NUMA system, I/O driver will find cpu cores that >> which shall be bound IRQ. When cpu cores in the loca

[PATCH v7] lib: optimize cpumask_local_spread()

2020-11-17 Thread Shaokun Zhang
ocko Cc: Michael Ellerman Cc: Mike Rapoport Cc: Anshuman Khandual Signed-off-by: Yuqi Jin Signed-off-by: Shaokun Zhang --- ChangeLog from v6: 1. Addressed Dave comments 2. Fix the warning from Hulk Robot 3. Simply the git log. ChangeLog from v5: 1. Rebase to 5.10-rc2 ChangeLog

Re: [PATCH v6] lib: optimize cpumask_local_spread()

2020-11-16 Thread Shaokun Zhang
Hi Dave, 在 2020/11/16 22:48, Dave Hansen 写道: > On 11/15/20 11:59 PM, Shaokun Zhang wrote: >>> Do you want to take another pass at submitting this patch? >> 'Another pass'? Sorry for my bad understading, I don't follow it correctly. > > Could you please i

Re: [PATCH v6] lib: optimize cpumask_local_spread()

2020-11-16 Thread Shaokun Zhang
Hi Dave, 在 2020/11/14 0:02, Dave Hansen 写道: > On 11/12/20 6:06 PM, Shaokun Zhang wrote: >>>> On Huawei Kunpeng 920 server, there are 4 NUMA node(0 - 3) in the 2-cpu >>>> system(0 - 1). The topology of this server is followed: >>> >>> This is wit

Re: [PATCH v6] lib: optimize cpumask_local_spread()

2020-11-12 Thread Shaokun Zhang
Hi Dave, 在 2020/11/5 0:10, Dave Hansen 写道: > On 11/3/20 5:39 AM, Shaokun Zhang wrote: >> Currently, Intel DDIO affects only local sockets, so its performance >> improvement is due to the relative difference in performance between the >> local socket I/O and remote socket I/O

[PATCH v6] lib: optimize cpumask_local_spread()

2020-11-03 Thread Shaokun Zhang
the nearest node through NUMA distance for the non-local NUMA nodes. Cc: Rusty Russell Cc: Andrew Morton Cc: Juergen Gross Cc: Paul Burton Cc: Michal Hocko Cc: Michael Ellerman Cc: Mike Rapoport Cc: Anshuman Khandual Signed-off-by: Yuqi Jin Signed-off-by: Shaokun Zhang --- Hi Andrew, I

[PATCH v2] net: revert "net: get rid of an signed integer overflow in ip_idents_reserve()"

2020-05-15 Thread Shaokun Zhang
ps://gcc.gnu.org/gcc-8/changes.html Suggested-by: Peter Zijlstra Suggested-by: Eric Dumazet Cc: "David S. Miller" Cc: Alexey Kuznetsov Cc: Hideaki YOSHIFUJI Cc: Jakub Kicinski Cc: Jiri Pirko Cc: Arvind Sankar Cc: Peter Zijlstra Cc: Eric Dumazet Cc: Jiong Wang Signed-off-by: Yuqi Ji

Re: [PATCH] net: optimize cmpxchg in ip_idents_reserve

2020-05-07 Thread Shaokun Zhang
Hi Peter/Eric, Shall we use atomic_add_return() unconditionally and add some comments? Or I missed something. Thanks, Shaokun On 2020/1/20 16:18, Peter Zijlstra wrote: > On Fri, Jan 17, 2020 at 10:48:19AM -0800, Eric Dumazet wrote: >> >> >> On 1/17/20 10:38 AM, Arvind Sankar wrote: >>> On Fri,

Re: [PATCH] arm64: do_csum: implement accelerated scalar version

2019-08-16 Thread Shaokun Zhang
Hi Will, On 2019/8/16 0:46, Will Deacon wrote: > On Thu, May 16, 2019 at 11:14:35AM +0800, Zhangshaokun wrote: >> On 2019/5/15 17:47, Will Deacon wrote: >>> On Mon, Apr 15, 2019 at 07:18:22PM +0100, Robin Murphy wrote: On 12/04/2019 10:52, Will Deacon wrote: > I'm waiting for Robin to com

Re: [PATCH] net: stmmac: Fix the miscalculation of mapping from rxq to dma channel

2019-08-07 Thread Shaokun Zhang
Hi Jose, Thanks your quick reply. On 2019/8/7 16:24, Jose Abreu wrote: > From: Shaokun Zhang > Date: Aug/07/2019, 09:17:29 (UTC+00:00) > >> From: yuqi jin >> >> XGMAC_MTL_RXQ_DMA_MAP1 will be configured if the number of queues is >> greater than 3, but local v

[PATCH] net: stmmac: Fix the miscalculation of mapping from rxq to dma channel

2019-08-07 Thread Shaokun Zhang
oquelin Signed-off-by: Yuqi Jin Signed-off-by: Shaokun Zhang --- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgma

[PATCH -next] net: dsa: mv88e6xxx: Fix build warning when CONFIG_NET_DSA_LEGACY is n

2019-03-04 Thread Shaokun Zhang
("net: dsa: mv88e6xxx: prevent interrupt storm caused by mv88e6390x_port_set_cmode") Cc: Heiner Kallweit Cc: Andrew Lunn Cc: Vivien Didelot Cc: Florian Fainelli Cc: "David S. Miller" Signed-off-by: Shaokun Zhang --- drivers/net/dsa/mv88e6xxx/chip.c | 16 --