[PATCH] powerpc: Use rol32() instead of opencoding in csum_fold()

2022-03-08 Thread Christophe Leroy
rol32(x, 16) will do the rotate using rlwinm. No need to open code using inline assembly. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/checksum.h | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/include/asm/checksum.h b/arch/pow

Re: [PATCH] powerpc: 8xx: fix a return value error in mpc8xx_pic_init

2022-03-08 Thread Christophe Leroy
Le 09/03/2022 à 04:24, Michael Ellerman a écrit : > Hangyu Hua writes: >> mpc8xx_pic_init() should return -ENOMEM instead of 0 when >> irq_domain_add_linear() return NULL. This cause mpc8xx_pics_init to continue >> executing even if mpc8xx_pic_host is NULL. >> >> Fixes: cc76404feaed ("powerpc/8x

Re: [PATCH 11/12] swiotlb: merge swiotlb-xen initialization into swiotlb

2022-03-08 Thread Christoph Hellwig
On Tue, Mar 08, 2022 at 04:38:21PM -0500, Boris Ostrovsky wrote: > > On 3/1/22 5:53 AM, Christoph Hellwig wrote: >> Allow to pass a remap argument to the swiotlb initialization functions >> to handle the Xen/x86 remap case. ARM/ARM64 never did any remapping >> from xen_swiotlb_fixup, so we don't e

[PATCH kernel v4] powerpc/64: Add UADDR64 relocation support

2022-03-08 Thread Alexey Kardashevskiy
When ld detects unaligned relocations, it emits R_PPC64_UADDR64 relocations instead of R_PPC64_RELATIVE. Currently R_PPC64_UADDR64 are detected by arch/powerpc/tools/relocs_check.sh and expected not to work. Below is a simple chunk to trigger this behaviour (this disables optimization for the demon

Re: [PATCH] powerpc: 8xx: fix a return value error in mpc8xx_pic_init

2022-03-08 Thread Michael Ellerman
Hangyu Hua writes: > mpc8xx_pic_init() should return -ENOMEM instead of 0 when > irq_domain_add_linear() return NULL. This cause mpc8xx_pics_init to continue > executing even if mpc8xx_pic_host is NULL. > > Fixes: cc76404feaed ("powerpc/8xx: Fix possible device node reference leak") > Signed-off-b

Re: [PATCH v4 00/13] Fix LKDTM for PPC64/IA64/PARISC v4

2022-03-08 Thread Michael Ellerman
Michael Ellerman writes: > On Tue, 15 Feb 2022 13:40:55 +0100, Christophe Leroy wrote: >> PPC64/IA64/PARISC have function descriptors. LKDTM doesn't work >> on those three architectures because LKDTM messes up function >> descriptors with functions. >> >> This series does some cleanup in the thre

[powerpc:next-test] BUILD SUCCESS 792993919349fefba20f58ae4843c80e8b01f518

2022-03-08 Thread kernel test robot
iss_defconfig ia64defconfig arm randconfig-c002-20220308 ia64 allmodconfig ia64 allyesconfig m68k allmodconfig m68kdefconfig m68k

[powerpc:next] BUILD SUCCESS 1a76e520ee1831a81dabf8a9a58c6453f700026e

2022-03-08 Thread kernel test robot
hisi_defconfig riscv defconfig sh se7206_defconfig xtensa iss_defconfig ia64defconfig arm randconfig-c002-20220308 ia64 allmodconfig

[RFC PATCH] KVM: PPC: Book3S HV: Add KVM_CAP_PPC_GTSE

2022-03-08 Thread Fabiano Rosas
This patch adds a new KVM capability to address a crash we're currently having inside the nested guest kernel when running with GTSE disabled in the nested hypervisor. The summary is: We allow any guest a cmdline override of GTSE for migration purposes. The nested guest does not know it needs to

Re: [PATCH 11/12] swiotlb: merge swiotlb-xen initialization into swiotlb

2022-03-08 Thread Boris Ostrovsky
On 3/1/22 5:53 AM, Christoph Hellwig wrote: Allow to pass a remap argument to the swiotlb initialization functions to handle the Xen/x86 remap case. ARM/ARM64 never did any remapping from xen_swiotlb_fixup, so we don't even need that quirk. Any chance this patch could be split? Lots of thin

[PATCH v1 6/6] powerpc: Add missing headers

2022-03-08 Thread Christophe Leroy
Don't inherit headers "by chances" from asm/prom.h, asm/mpc52xx.h, asm/pci.h etc... Include the needed headers, and remove asm/prom.h when it was needed exclusively for pulling necessary headers. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/pnv-pci.h | 1 + arch/

[PATCH v1 5/6] powerpc: Remove asm/prom.h from all files that don't need it

2022-03-08 Thread Christophe Leroy
Several files include asm/prom.h for no reason. Clean it up. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/cacheinfo.c | 1 - arch/powerpc/kernel/eeh_driver.c | 1 - arch/powerpc/kernel/iommu.c | 1 - arch/powerpc/kernel/irq.c

[PATCH v1 2/6] powerpc: Don't include asm/prom.h in asm/parport.h

2022-03-08 Thread Christophe Leroy
parport.h needs only of_irq.h, no need to go via asm/prom.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/parport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/parport.h b/arch/powerpc/include/asm/parport.h index 8abfb8f7c33d..42cc

[PATCH v1 1/6] powerpc/64: Move pci_device_from_OF_node() out of asm/pci-bridge.h

2022-03-08 Thread Christophe Leroy
Move pci_device_from_OF_node() in pci64.c because it needs definition of struct device_node and is not worth inlining. ppc32.c already has it in pci32.c. That way pci-bridge.h doesn't need linux/of.h (Brought by asm/prom.h via asm/pci.h) Signed-off-by: Christophe Leroy --- arch/powerpc/include

[PATCH v1 3/6] powerpc: Include asm/reg.h in asm/svm.h

2022-03-08 Thread Christophe Leroy
is_secure_guest() uses mfmsr(). Don't rely on users to include asm/reg.h, include it in asm/svm.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/svm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/include/asm/svm.h b/arch/powerpc/include/asm/svm.h index 754640

[PATCH v1 4/6] powerpc: Add missing declaration in asm/drmem.h

2022-03-08 Thread Christophe Leroy
Don't rely on random inclusion of linux/of.h by users of asm/drmem.h Add a forward declaration of struct property and struct device_node. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/drmem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/include/asm/drmem.h

Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1

2022-03-08 Thread Tokunori Ikegami
Hi, On 2022/03/09 1:23, Ahmad Fatoum wrote: Hello Tokunori-san, On 08.03.22 17:13, Tokunori Ikegami wrote: Hi Ahmad-san, On 2022/03/08 18:44, Ahmad Fatoum wrote: Hello Tokunori, On 06.03.22 16:49, Tokunori Ikegami wrote: Hi, On 2022/03/04 20:11, Ahmad Fatoum wrote: Hello Tokunori-san, O

Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1

2022-03-08 Thread Ahmad Fatoum
Hello Tokunori-san, On 08.03.22 17:13, Tokunori Ikegami wrote: > Hi Ahmad-san, > > On 2022/03/08 18:44, Ahmad Fatoum wrote: >> Hello Tokunori, >> >> On 06.03.22 16:49, Tokunori Ikegami wrote: >>> Hi, >>> >>> On 2022/03/04 20:11, Ahmad Fatoum wrote: Hello Tokunori-san, On 20.02.22 1

Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1

2022-03-08 Thread Tokunori Ikegami
Hi Ahmad-san, On 2022/03/08 18:44, Ahmad Fatoum wrote: Hello Tokunori, On 06.03.22 16:49, Tokunori Ikegami wrote: Hi, On 2022/03/04 20:11, Ahmad Fatoum wrote: Hello Tokunori-san, On 20.02.22 13:22, Tokunori Ikegami wrote: Hi Ahmad-san, Could you please try the version 2 patch attached for

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

2022-03-08 Thread Christophe Leroy
Today's implementation of csum_shift() leads to branching based on parity of 'offset' 02f8 : 2f8: 70 a5 00 01 andi. r5,r5,1 2fc: 41 a2 00 08 beq 304 300: 54 84 c0 3e rotlwi r4,r4,24 304: 7c

Re: [PATCH] powerpc: 8xx: fix a return value error in mpc8xx_pic_init

2022-03-08 Thread Christophe Leroy
Le 07/03/2022 à 02:41, Hangyu Hua a écrit : > Ping? > > On 2022/2/23 15:02, Hangyu Hua wrote: >> mpc8xx_pic_init() should return -ENOMEM instead of 0 when >> irq_domain_add_linear() return NULL. This cause mpc8xx_pics_init to >> continue >> executing even if mpc8xx_pic_host is NULL. >> >> Fixes

Re: [PATCH 00/14] powerpc/rtas: various cleanups and improvements

2022-03-08 Thread Christophe Leroy
Hi Nick, Le 08/03/2022 à 14:50, Nicholas Piggin a écrit : > I had a bunch of random little fixes and cleanups around and > was prompted to put them together and make a change to call > RTAS with MSR[RI] enabled because of a report of the hard > lockup watchdog NMI IPI hitting in an rtas call which

Re: [RFC PATCH 2/2] KVM: PPC: Book3S HV: Provide a more accurate MAX_VCPU_ID in P9

2022-03-08 Thread Fabiano Rosas
Christophe Leroy writes: > Le 13/04/2021 à 00:26, Fabiano Rosas a écrit : >> The KVM_CAP_MAX_VCPU_ID capability was added by commit 0b1b1dfd52a6 >> ("kvm: introduce KVM_MAX_VCPU_ID") to allow for vcpu ids larger than >> KVM_MAX_VCPU in powerpc. >> >> For a P9 host we depend on the guest VSMT val

[PATCH 14/14] powerpc/rtas: Consolidate and improve checking for rtas callers

2022-03-08 Thread Nicholas Piggin
Add range checking from the rtas syscall, and other error checks and warnings to kernel callers, so problems can be found and fixed. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/arch/pow

[PATCH 13/14] powerpc/rtas: enture rtas_call is called with MMU enabled

2022-03-08 Thread Nicholas Piggin
rtas_call must not be called with the MMU disabled because in case of rtas error, log_error is called which requires MMU enabled. Add a test and warning for this. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/k

[PATCH 12/14] powerpc/rtas: Close theoretical memory leak

2022-03-08 Thread Nicholas Piggin
If buff_copy allocation failed then there was an error and the errbuf allocation succeeded, it will not be logged or freed. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/rtas.c b/arch/p

[PATCH 11/14] powerpc/rtas: tidy __fetch_rtas_last_error

2022-03-08 Thread Nicholas Piggin
__fetch_rtas_last_error can use the same rtas_args as the caller used for the failed rtas call. It can also use a higher-level helper to assemble the rtas_args. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c | 30 +- 1 file changed, 9 insertions(+), 21

[PATCH 10/14] powerpc/rtas: replace rtas_call_unlocked with raw_rtas_call

2022-03-08 Thread Nicholas Piggin
Use the same calling and rets return convention with the raw rtas call rather than requiring callers to load and byteswap return values out of rtas_args. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/rtas.h | 4 +- arch/powerpc/kernel/rtas.c | 53 +++

[PATCH 09/14] powerpc/rtas: Leave MSR[RI] enabled over RTAS call

2022-03-08 Thread Nicholas Piggin
PAPR specifies that RTAS may be called with MSR[RI] enabled if the calling context is recoverable, and RTAS will manage RI as necessary. Call the rtas entry point with RI enabled, and add a check to ensure the caller has RI enabled. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c

[PATCH 08/14] powerpc/rtas: call enter_rtas in real-mode on 64-bit

2022-03-08 Thread Nicholas Piggin
This moves MSR save/restore and some real-mode juggling out of asm and into C code, simplifying things. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c | 15 --- arch/powerpc/kernel/rtas_entry.S | 32 +--- 2 files changed, 17 insertions

[PATCH 07/14] powerpc/rtas: PACA can be restored directly from SPRG

2022-03-08 Thread Nicholas Piggin
On 64-bit, PACA is saved in a SPRG so it does not need to be saved on stack. We also don't need to mask off the top bits for real mode addresses because the architecture does this for us. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas_entry.S | 13 - 1 file changed, 4 in

[PATCH 06/14] powerpc/rtas: Load rtas entry MSR explicitly

2022-03-08 Thread Nicholas Piggin
Rather than adjust the current MSR value to find the rtas entry MSR on 64-bit, load the explicit value we want as 32-bit does. This prevents some facilities (e.g., VEC and VSX) from being left enabled which doesn't seem to cause a problem but it's more consistent to always use the same MSR and min

[PATCH 05/14] powerpc/rtas: Modernise RI clearing on 64-bit

2022-03-08 Thread Nicholas Piggin
mtmsrd L=1 can clear MSR[RI] without the previous MSR value; it does not require sync; it can be moved later to before SRRs are live. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas_entry.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/

[PATCH 04/14] powerpc/rtas: Call enter_rtas with MSR[EE] disabled

2022-03-08 Thread Nicholas Piggin
Disable MSR[EE] in C code rather than asm. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas.c | 4 arch/powerpc/kernel/rtas_entry.S | 17 + 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas

[PATCH 03/14] powerpc/rtas: Fix whitespace in rtas_entry.S

2022-03-08 Thread Nicholas Piggin
The code was moved verbatim including whitespace cruft. Fix that. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas_entry.S | 34 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/arch/powerpc/kernel/rtas_entry.S b/arch/powerpc/kernel/rtas

[PATCH 02/14] powerpc/rtas: Make enter_rtas a nokprobe symbol on 64-bit

2022-03-08 Thread Nicholas Piggin
This symbol is marked nokprobe on 32-bit but not 64-bit, add it. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/rtas_entry.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/rtas_entry.S b/arch/powerpc/kernel/rtas_entry.S index 192fea342744..afe3b789bc36 100644 ---

[PATCH 00/14] powerpc/rtas: various cleanups and improvements

2022-03-08 Thread Nicholas Piggin
I had a bunch of random little fixes and cleanups around and was prompted to put them together and make a change to call RTAS with MSR[RI] enabled because of a report of the hard lockup watchdog NMI IPI hitting in an rtas call which then crashed because it's unrecoverable. Could possibly move patc

[PATCH 01/14] powerpc/rtas: Move rtas entry assembly into its own file

2022-03-08 Thread Nicholas Piggin
This makes working on the code a bit easier. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/Makefile | 2 +- arch/powerpc/kernel/entry_32.S | 49 arch/powerpc/kernel/entry_64.S | 150 --- arch/powerpc/kernel/rtas_entry.S | 199 +

Re: [RFC PATCH 2/2] KVM: PPC: Book3S HV: Provide a more accurate MAX_VCPU_ID in P9

2022-03-08 Thread Christophe Leroy
Le 13/04/2021 à 00:26, Fabiano Rosas a écrit : The KVM_CAP_MAX_VCPU_ID capability was added by commit 0b1b1dfd52a6 ("kvm: introduce KVM_MAX_VCPU_ID") to allow for vcpu ids larger than KVM_MAX_VCPU in powerpc. For a P9 host we depend on the guest VSMT value to know what is the maximum number o

[powerpc:next-test] BUILD REGRESSION 0a448e06d10e149bf5ed23202d49246b6c4cf77b

2022-03-08 Thread kernel test robot
arch-powerpc-kernel-prom_init.c:warning:no-previous-prototype-for-prom_init |-- powerpc-allyesconfig | `-- arch-powerpc-kernel-prom_init.c:warning:no-previous-prototype-for-prom_init |-- powerpc-mpc834x_itx_defconfig | `-- arch-powerpc-kernel-prom_init.c:error:no-previous-prototype-for-prom_init |-- powerpc-rand

Re: [PATCH 1/1] powerpc/ps3: Remove a couple of unneeded semicolons

2022-03-08 Thread Christophe Leroy
Le 08/05/2021 à 11:51, Zhen Lei a écrit : The semicolon immediately following '}' is unneeded. Signed-off-by: Zhen Lei A more recent version of your patch are available at https://patchwork.ozlabs.org/project/linuxppc-dev/patch/01647102607ce9640c9f27786d976109a3c4ea7e.1629197153.git.jing.

Re: [PATCH v9 0/2] Interface to represent PAPR firmware attributes

2022-03-08 Thread Michael Ellerman
On Thu, 17 Feb 2022 16:23:19 +0530, Pratik R. Sampat wrote: > RFC: https://lkml.org/lkml/2021/6/4/791 > PATCH v1: https://lkml.org/lkml/2021/6/16/805 > PATCH v2: https://lkml.org/lkml/2021/7/6/138 > PATCH v3: https://lkml.org/lkml/2021/7/12/2799 > PATCH v4: https://lkml.org/lkml/2021/7/16/532 > PAT

Re: [PATCH powerpc/next 00/17] powerpc/bpf: Some updates and cleanups

2022-03-08 Thread Michael Ellerman
On Mon, 14 Feb 2022 16:11:34 +0530, Naveen N. Rao wrote: > This is a follow-up series with the pending patches from: > https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=279602&state=* > > Patches 1-5 and 8 are unchanged. Patch 6 is new and patch 7 has changes > based on discussion fro

Re: [PATCH] powerpc/64s: Don't use DSISR for SLB faults

2022-03-08 Thread Michael Ellerman
On Tue, 22 Feb 2022 22:34:49 +1100, Michael Ellerman wrote: > Since commit 46ddcb3950a2 ("powerpc/mm: Show if a bad page fault on data > is read or write.") we use page_fault_is_write(regs->dsisr) in > __bad_page_fault() to determine if the fault is for a read or write, and > change the message pri

Re: [PATCH] powerpc/code-patching: Pre-map patch area

2022-03-08 Thread Michael Ellerman
On Wed, 23 Feb 2022 12:58:21 +1100, Michael Ellerman wrote: > Paul reported a warning with DEBUG_ATOMIC_SLEEP=y: > > BUG: sleeping function called from invalid context at > include/linux/sched/mm.h:256 > in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 1, name: swapper/0 > preempt_cou

Re: [PATCH] arch:powerpc:kvm: remove unnecessary type castings

2022-03-08 Thread Michael Ellerman
On Thu, 3 Mar 2022 15:34:16 +0100, Nour-eddine Taleb wrote: > remove unnecessary castings, from "void *" to "struct kvmppc_xics *" > > Applied to powerpc/next. [1/1] arch:powerpc:kvm: remove unnecessary type castings https://git.kernel.org/powerpc/c/e40b38a41ce916d6a3a4751d59a01b6c0c03afd

Re: [PATCH] powerpc/sysdev: fix incorrect use to determine if list is empty

2022-03-08 Thread Michael Ellerman
On Mon, 28 Feb 2022 15:24:33 +0100, Jakob Koschel wrote: > 'gtm' will *always* be set by list_for_each_entry(). > It is incorrect to assume that the iterator value will be NULL if the > list is empty. > > Instead of checking the pointer it should be checked if > the list is empty. > > [...] Appl

Re: [PATCH v6 0/9] powerpc/pseries/vas: NXGZIP support with DLPAR

2022-03-08 Thread Michael Ellerman
On Mon, 28 Feb 2022 17:09:57 -0800, Haren Myneni wrote: > PowerPC provides HW compression with NX coprocessor. This feature > is available on both PowerNV and PowerVM and included in Linux. > Since each powerpc chip has one NX coprocessor, the VAS introduces > the concept of windows / credits to ma

Re: [PATCH v5] powerpc/mce: Avoid using irq_work_queue() in realmode

2022-03-08 Thread Michael Ellerman
On Thu, 20 Jan 2022 17:49:31 +0530, Ganesh Goudar wrote: > In realmode mce handler we use irq_work_queue() to defer > the processing of mce events, irq_work_queue() can only > be called when translation is enabled because it touches > memory outside RMA, hence we enable translation before > calling

Re: [PATCH v3 RESEND 1/3] powerpc/pseries: Parse control memory access error

2022-03-08 Thread Michael Ellerman
On Fri, 7 Jan 2022 19:44:26 +0530, Ganesh Goudar wrote: > Add support to parse and log control memory access > error for pseries. These changes are made according to > PAPR v2.11 10.3.2.2.12. > > Applied to powerpc/next. [1/3] powerpc/pseries: Parse control memory access error https://git

Re: [PATCH v4 00/13] Fix LKDTM for PPC64/IA64/PARISC v4

2022-03-08 Thread Michael Ellerman
On Tue, 15 Feb 2022 13:40:55 +0100, Christophe Leroy wrote: > PPC64/IA64/PARISC have function descriptors. LKDTM doesn't work > on those three architectures because LKDTM messes up function > descriptors with functions. > > This series does some cleanup in the three architectures and > refactors f

Re: [PATCH v1 1/4] powerpc/ftrace: Don't use lmw/stmw in ftrace_regs_caller()

2022-03-08 Thread Michael Ellerman
On Thu, 17 Feb 2022 13:01:56 +0100, Christophe Leroy wrote: > For the same reason as commit a85c728cb5e1 ("powerpc/32: Don't use > lmw/stmw for saving/restoring non volatile regs"), don't use > lmw/stmw in ftrace_regs_caller(). > > Use the same macros for PPC32 and PPC64. > > > [...] Applied to

Re: [PATCH v1 4/4] powerpc: Move C prototypes out of asm-prototypes.h

2022-03-08 Thread Michael Ellerman
Christophe Leroy writes: > Le 04/03/2022 à 18:04, Christophe Leroy a écrit : >> We originally added asm-prototypes.h in commit 42f5b4cacd78 ("powerpc: >> Introduce asm-prototypes.h"). It's purpose was for prototypes of C >> functions that are only called from asm, in order to fix sparse >> warning

Re: [PATCH v1 1/4] powerpc: Cleanup asm-prototypes.c

2022-03-08 Thread Michael Ellerman
Christophe Leroy writes: > Le 04/03/2022 à 18:04, Christophe Leroy a écrit : >> Last call to sys_swapcontext() from ASM was removed by >> commit fbcee2ebe8ed ("powerpc/32: Always save non volatile GPRs at >> syscall entry") >> >> sys_debug_setcontext() prototype not needed anymore since >> commit

Re: [PATCH v2 -next] powerpc/spufs: Fix build warning when CONFIG_PROC_FS=n

2022-03-08 Thread Christophe Leroy
Le 08/03/2022 à 11:09, YueHaibing a écrit : > arch/powerpc/platforms/cell/spufs/sched.c:1055:12: warning: > ‘show_spu_loadavg’ defined but not used [-Wunused-function] > static int show_spu_loadavg(struct seq_file *s, void *private) > ^~~~ > > Move it into #ifdef bloc

Re: [PATCH v1 4/4] powerpc: Move C prototypes out of asm-prototypes.h

2022-03-08 Thread Christophe Leroy
Hi again Michael, Le 04/03/2022 à 18:04, Christophe Leroy a écrit : > We originally added asm-prototypes.h in commit 42f5b4cacd78 ("powerpc: > Introduce asm-prototypes.h"). It's purpose was for prototypes of C > functions that are only called from asm, in order to fix sparse > warnings about missi

Re: [BUG] mtd: cfi_cmdset_0002: write regression since v4.17-rc1

2022-03-08 Thread Ahmad Fatoum
Hello Tokunori, On 06.03.22 16:49, Tokunori Ikegami wrote: > Hi, > > On 2022/03/04 20:11, Ahmad Fatoum wrote: >> Hello Tokunori-san, >> >> On 20.02.22 13:22, Tokunori Ikegami wrote: >>> Hi Ahmad-san, >>> >>> Could you please try the version 2 patch attached for the error case? >>> This version is

Re: [PATCH v1 1/4] powerpc: Cleanup asm-prototypes.c

2022-03-08 Thread Christophe Leroy
Hi Michael, Le 04/03/2022 à 18:04, Christophe Leroy a écrit : > Last call to sys_swapcontext() from ASM was removed by > commit fbcee2ebe8ed ("powerpc/32: Always save non volatile GPRs at > syscall entry") > > sys_debug_setcontext() prototype not needed anymore since > commit f3675644e172 ("power