Re: [PATCH net-next v2] powerpc/net: Implement powerpc specific csum_shift() to remove branch

2022-03-11 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller : On Tue, 8 Mar 2022 17:12:10 +0100 you wrote: > Today's implementation of csum_shift() leads to branching based on > parity of 'offset' > > 02f8 : >2f8: 70 a5 00 01 andi. r5,r5,1

[PATCH v1] powerpc: Use static call for get_irq()

2022-03-11 Thread Christophe Leroy
__do_irq() inconditionnaly calls ppc_md.get_irq() That's definitely a hot path. At the time being ppc_md.get_irq address is read every time from ppc_md structure. Replace that call by a static call, and initialise that call after ppc_md.init_IRQ() has set ppc_md.get_irq. Emit a warning and don'

Re: [PATCH -next] powerpc/kuap: Remove unused inline function __kuap_assert_locked()

2022-03-11 Thread Christophe Leroy
Le 11/03/2022 à 14:00, YueHaibing a écrit : > commit 2341964e27b0 ("powerpc/kuap: Remove __kuap_assert_locked()") > left behind this one, remove it. > > Signed-off-by: YueHaibing Thanks for fixing this Acked-by: Christophe Leroy > --- > arch/powerpc/include/asm/kup.h | 1 - > 1 file chan

Re: [PATCH -next] powerpc/smp: Remove unused inline functions

2022-03-11 Thread Christophe Leroy
Le 11/03/2022 à 13:51, YueHaibing a écrit : > commit 441c19c8a290 ("powerpc/kvm/book3s_hv: Rework the secondary inhibit > code") > left behind this, so can remove it. > > Signed-off-by: YueHaibing > Reviewed-by: Daniel Axtens Reviewed-by: Christophe Leroy > --- > arch/powerpc/include/asm

Re: [PATCH V7 13/20] riscv: compat: process: Add UXL_32 support in start_thread

2022-03-11 Thread Ben Dooks
On 11/03/2022 02:38, Guo Ren wrote: Hi Arnd, On Mon, Feb 28, 2022 at 12:30 AM wrote: From: Guo Ren If the current task is in COMPAT mode, set SR_UXL_32 in status for returning userspace. We need CONFIG _COMPAT to prevent compiling errors with rv32 defconfig. Signed-off-by: Guo Ren Signed-

Re: [PATCH v2] powerpc/32: Add support for out-of-line static calls

2022-03-11 Thread Christophe Leroy
Hi Peter, Le 31/08/2021 à 16:00, Peter Zijlstra a écrit : On Tue, Aug 31, 2021 at 01:12:26PM +, Christophe Leroy wrote: Yes, this should work nicely! Since you have the two nop's at the end, you could frob in an optimization for __static_call_return0 without too much issue. Replace the tw

Re: [PATCH] kexec/powerpc: fix exporting memory limit

2022-03-11 Thread Christophe Leroy
Le 07/03/2014 à 05:38, Nikita Yushchenko a écrit : On Thu, 2014-03-06 at 18:24 +0400, Nikita Yushchenko wrote: When preparing dump-capturing kernel, kexec userspace tool needs to know actual amount of memory used by the running kernel. This may differ from extire available DRAM for a couple o

Re: [PATCH] Setup per-cpu cpu<->node binding early

2022-03-11 Thread Christophe Leroy
Le 18/10/2016 à 09:10, Balbir Singh a écrit : Michael Ellerman debugged an issue w.r.t workqueue changes (see https://lkml.org/lkml/2016/10/17/352) down to the fact that we don't setup our per cpu (cpu to node) binding early enough (in setup_per_cpu_areas like x86 does). This lead to a proble

Re: [PATCH] powerpc/tm: fix live state of vs0/32 in tm_reclaim

2022-03-11 Thread Christophe Leroy
Le 04/07/2017 à 22:45, Gustavo Romero a écrit : Currently tm_reclaim() can return with a corrupted vs0 (fp0) or vs32 (v0) due to the fact vs0 is used to save FPSCR and vs32 is used to save VSCR. Later, we recheckpoint trusting that the live state of FP and VEC are ok depending on the MSR.FP a

Re: [RFC PATCH] powerpc/uprobes: Fixup si_addr if we took an exception while single stepping

2022-03-11 Thread Christophe Leroy
Le 13/09/2017 à 22:03, Naveen N. Rao a écrit : If the single-stepped instruction causes an exception, we may end up setting siginfo.si_addr to the address of the uprobe xol area. This is not desirable since the address won't make sense for the process if it wants to handle the exception. Fixup

Re: [PATCH v9 0/8] reduce memory consumption for powerpc firmware-assisted capture kernel

2022-03-11 Thread Christophe Leroy
Le 15/11/2017 à 16:16, Hari Bathini a écrit : I posted the initial version [1] of patchset [2] adding support to enforce additional parameters when firmware-assisted dump capture kernel is active. Michal reposted it with few improvements to parameter processing to make it more robust. He furth

Re: [RFC PATCH v0 2/2] powerpc, drmem: Rename DRMEM_LMB_RESERVED to DRMEM_LMB_ISOLATED

2022-03-11 Thread Christophe Leroy
Le 21/02/2018 à 11:36, Bharata B Rao a écrit : Memory hotplug code uses a temporary LMB flags bit DRMEM_LMB_RESERVED to mark the LMB which is currently undergoing hotplug or unplug. It is easy to confuse DRMEM_LMB_RESERVED to mean the LMB is reserved for which a separate flag bit already exist

Re: [FIX PATCH v1] powerpc/pseries: Fix reference count leak during CPU unplug

2022-03-11 Thread Christophe Leroy
Le 09/03/2017 à 05:37, Bharata B Rao a écrit : The following warning is seen when a CPU is hot unplugged on a PowerKVM guest: refcount_t: underflow; use-after-free. [ cut here ] WARNING: CPU: 0 PID: 53 at lib/refcount.c:128 refcount_sub_and_test+0xd8/0xf0 Modules linke

Re: [PATCH 1/4] ASoC: fsl-asoc-card: add WM8904 support

2022-03-11 Thread Mark Brown
On Mon, Mar 07, 2022 at 11:10:38AM -0300, Alifer Moraes wrote: > From: Pierluigi Passaro > > The codec WM8904 can use internal FLL as PLL source. > Whenever the PLL source is not an external MCLK, this source > must be setup during hw_params callback otherwise the BCLK > could be wrongly evaluate

Re: [PATCHv5 0/3] enable nr_cpus for powerpc

2022-03-11 Thread Christophe Leroy
Le 23/03/2018 à 06:28, Pingfan Liu a écrit : Maintainers, ping? Any comment? This series doesn't apply anymore, and it has build failure report from the robot. If it's still relevant, please rebase and fix. Christophe Thanks On Thu, Mar 15, 2018 at 12:41 PM, Pingfan Liu wrote: This

[powerpc:topic/ppc-kvm] BUILD SUCCESS f771b55731fc82b1e8e9ef123f6f1b8d8c92bc63

2022-03-11 Thread kernel test robot
edosk2674_defconfig arm stm32_defconfig mips decstation_r4k_defconfig shsh7757lcr_defconfig arm randconfig-c002-20220310 arm randconfig-c002-20220311 ia64 allmodconfig ia64

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.17-6 tag

2022-03-11 Thread pr-tracker-bot
The pull request you sent on Fri, 11 Mar 2022 17:03:15 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.17-6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/878409ecde7c89c9f3db76ff1ef9486c6ceed02c Thank you! -- Deet-doot-d

Re: [PATCH V7 13/20] riscv: compat: process: Add UXL_32 support in start_thread

2022-03-11 Thread Guo Ren
On Fri, Mar 11, 2022 at 9:38 PM Ben Dooks wrote: > > On 11/03/2022 02:38, Guo Ren wrote: > > Hi Arnd, > > > > On Mon, Feb 28, 2022 at 12:30 AM wrote: > >> > >> From: Guo Ren > >> > >> If the current task is in COMPAT mode, set SR_UXL_32 in status for > >> returning userspace. We need CONFIG _COM

Re: [PATCH v7 3/5] powerpc: Rework and improve STRICT_KERNEL_RWX patching

2022-03-11 Thread Christophe Leroy
Hi Jordan Le 10/11/2021 à 01:37, Jordan Niethe a écrit : > From: "Christopher M. Riedl" > > Rework code-patching with STRICT_KERNEL_RWX to prepare for a later patch > which uses a temporary mm for patching under the Book3s64 Radix MMU. > Make improvements by adding a WARN_ON when the patchsite d

Re: microwatt booting linux-5.7 under verilator

2022-03-11 Thread Christophe Leroy
Le 03/01/2022 à 01:45, Luke Kenneth Casson Leighton a écrit : > i am pleased to be able to announce the successful booting of microwatt-5.7 > linux buildroot... under a veriilator simulation of the microwatt VHDL. > from a hardware development and research perspective this is highly > significant