[PATCH v3 3/3] KVM: PPC: Add KVM_CAP_PPC_AIL_MODE_3

2022-02-20 Thread Nicholas Piggin
Add KVM_CAP_PPC_AIL_MODE_3 to advertise the capability to set the AIL resource mode to 3 with the H_SET_MODE hypercall. This capability differs between processor types and KVM types (PR, HV, Nested HV), and affects guest-visible behaviour. QEMU will implement a cap-ail-mode-3 to control this

[PATCH v3 2/3] KVM: PPC: Book3S PR: Disallow AIL != 0

2022-02-20 Thread Nicholas Piggin
KVM PR does not implement address translation modes on interrupt, so it must not allow H_SET_MODE to succeed. The behaviour change caused by this mode is architected and not advisory (interrupts *must* behave differently). QEMU does not deal with differences in AIL support in the host. The

[PATCH v3 1/3] KVM: PPC: Book3S PR: Disable SCV when AIL could be disabled

2022-02-20 Thread Nicholas Piggin
PR KVM does not support running with AIL enabled, and SCV does is not supported with AIL disabled. Fix this by ensuring the SCV facility is disabled with FSCR while a CPU could be running with AIL=0. The PowerNV host supports disabling AIL on a per-CPU basis, so SCV just needs to be disabled when

[PATCH v3 0/3] KVM: PPC: Book3S PR: Fixes for AIL and SCV

2022-02-20 Thread Nicholas Piggin
The first patch in this series fixes a KVM PR host crash due to a guest executing the scv instruction or with a pseries SMP host, the host CPUs executing the scv instruction while a PR guest is running. The second patch fixes unimplemented H_SET_MODE AIL modes by returning failure from the hcall

[Bug 215621] Warning: Unable to mark rodata read only on this CPU. (PPC970MP)

2022-02-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215621 --- Comment #4 from Christophe Leroy (christophe.le...@csgroup.eu) --- It is up to you to unselect CONFIG_STRICT_KERNEL_RWX. The kernel is usually built to boot on any PPC64 processors, so we can't forbid the selection of

[PATCH V2 04/30] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-02-20 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. Subsequently all __SXXX and __PXXX macros can be dropped which are no longer needed. While here, this also localizes arch_vm_get_page_prot() as powerpc_vm_get_page_prot() and moves it

Re: [PATCH] platforms/83xx: Use of_device_get_match_data()

2022-02-20 Thread Christophe Leroy
Le 21/02/2022 à 03:03, cgel@gmail.com a écrit : > From: Minghao Chi (CGEL ZTE) > > Use of_device_get_match_data() to simplify the code. > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi (CGEL ZTE) > --- > arch/powerpc/platforms/83xx/suspend.c | 7 +-- > 1 file changed, 1

[PATCH] platforms/83xx: Use of_device_get_match_data()

2022-02-20 Thread cgel . zte
From: Minghao Chi (CGEL ZTE) Use of_device_get_match_data() to simplify the code. Reported-by: Zeal Robot Signed-off-by: Minghao Chi (CGEL ZTE) --- arch/powerpc/platforms/83xx/suspend.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

Re: [PATCH 3/3] kprobes: Allow probing on any address belonging to ftrace

2022-02-20 Thread Masami Hiramatsu
On Thu, 17 Feb 2022 17:06:25 +0530 "Naveen N. Rao" wrote: > On certain architectures, ftrace can reserve multiple instructions at > function entry. Rather than rejecting kprobe on addresses other than the > exact ftrace call instruction, use the address returned by ftrace to > probe at the

Re: [PATCH 1/3] powerpc/ftrace: Reserve instructions from function entry for ftrace

2022-02-20 Thread Masami Hiramatsu
Hi Naveen, On Thu, 17 Feb 2022 17:06:23 +0530 "Naveen N. Rao" wrote: > On some architectures, enabling function tracing results in multiple > instructions being emitted at function entry. As an example, on > powerpc64 with -mprofile-kernel, two instructions are emitted at > function entry: >

[Bug 215621] Warning: Unable to mark rodata read only on this CPU. (PPC970MP)

2022-02-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215621 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 215621] Warning: Unable to mark rodata read only on this CPU. (PPC970MP)

2022-02-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215621 Christophe Leroy (christophe.le...@csgroup.eu) changed: What|Removed |Added CC|

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

2022-02-20 Thread Tokunori Ikegami
Hi Ahmad-san, Could you please try the version 2 patch attached for the error case? This version is to check the DQ true data 0xFF by chip_good(). But I am not sure if this works or not since the error is possible to be caused by Hi-Z 0xff on floating bus or etc. On 2022/02/15 3:46, Tokunori