Re: [PATCH 1/5] crypto: sha256 - remove duplicate generic hash init function

2021-12-22 Thread Tianjia Zhang
Hi Julian, On 12/23/21 6:35 AM, Julian Calaby wrote: Hi Tianjia, On Mon, Dec 20, 2021 at 8:25 PM Tianjia Zhang wrote: crypto_sha256_init() and sha256_base_init() are the same repeated implementations, remove the crypto_sha256_init() in generic implementation, sha224 is the same process.

[PATCH] powerpc: fix spelling of "its"

2021-12-22 Thread Randy Dunlap
Use the possessive "its" instead of the contraction of "it is" (it's). Signed-off-by: Randy Dunlap Cc: Michael Ellerman --- arch/powerpc/perf/hv-24x7.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20211222.orig/arch/powerpc/perf/hv-24x7.c +++

[PATCH v2 10/10] powerpc/pseries/vas: Write 'target_creds' for QoS credits change

2021-12-22 Thread Haren Myneni
PowerVM support two types of credits - Default (uses normal priority FIFO) and Qality of service (QoS uses high priproty FIFO). The user decides the number of QoS credits and sets this value with HMC interface. With the core add/removal, this value can be changed in HMC which invokes drmgr to

[PATCH v2 09/10] powerpc/pseries/vas: sysfs interface to export capabilities

2021-12-22 Thread Haren Myneni
The hypervisor provides the available VAS GZIP capabilities such as default or QoS window type and the target available credits in each type. This patch creates sysfs entries and exports the target, used and the available credits for each feature. This interface can be used by the user space to

[PATCH v2 08/10] powerpc/vas: Return paste instruction failure if no active window

2021-12-22 Thread Haren Myneni
The VAS window may not be active if the system looses credits and the NX generates page fault when it receives request on unmap paste address. The kernel handles the fault by remap new paste address if the window is active again, Otherwise return the paste instruction failure if the executed

[PATCH v2 07/10] powerpc/vas: Add paste address mmap fault handler

2021-12-22 Thread Haren Myneni
The user space opens VAS windows and issues NX requests by pasting CRB on the corresponding paste address mmap. When the system looses credits due to core removal, the kernel has to close the window in the hypervisor and make the window inactive by unmapping this paste address. Also the OS has

[PATCH v2 06/10] powerpc/vas: Map paste address only if window is active

2021-12-22 Thread Haren Myneni
The paste address mapping is done with mmap() after the window is opened with ioctl. But the window can be closed due to lost credit due to core removal before mmap(). So if the window is not active, return mmap() failure with -EACCES and expects the user space reissue mmap() when the window is

[PATCH v2 05/10] powerpc/pseries/vas: Close windows with DLPAR core removal

2021-12-22 Thread Haren Myneni
The hypervisor reduces the available credits if the core is removed from the LPAR. So there is possibility of using excessive credits (windows) in the LPAR and the hypervisor expects the system to close the excessive windows. Even though the user space can continue to use these windows to send

[PATCH v2 04/10] powerpc/pseries/vas: Reopen windows with DLPAR core add

2021-12-22 Thread Haren Myneni
VAS windows can be closed in the hypervisor due to lost credits when the core is removed. If these credits are available later for core add, reopen these windows and set them active. When the kernel sees page fault on the paste address, it creates new mapping on the new paste address. Then the

[PATCH v2 00/10] powerpc/pseries/vas: NXGZIP support with DLPAR

2021-12-22 Thread Haren Myneni
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 manage access to this hardware resource. On powerVM, these

Re: [PATCH 1/5] crypto: sha256 - remove duplicate generic hash init function

2021-12-22 Thread Julian Calaby
Hi Tianjia, On Mon, Dec 20, 2021 at 8:25 PM Tianjia Zhang wrote: > > crypto_sha256_init() and sha256_base_init() are the same repeated > implementations, remove the crypto_sha256_init() in generic > implementation, sha224 is the same process. > > Signed-off-by: Tianjia Zhang > --- >

[Bug 215389] pagealloc: memory corruption at building glibc-2.33 and running its' testsuite

2021-12-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215389 --- Comment #1 from Erhard F. (erhar...@mailbox.org) --- Created attachment 300115 --> https://bugzilla.kernel.org/attachment.cgi?id=300115=edit kernel .config (5.15.10, PowerMac G4 DP) -- You may reply to this email to add a comment. You

[Bug 215389] New: pagealloc: memory corruption at building glibc-2.33 and running its' testsuite

2021-12-22 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215389 Bug ID: 215389 Summary: pagealloc: memory corruption at building glibc-2.33 and running its' testsuite Product: Platform Specific/Hardware Version: 2.5 Kernel Version: 5.15.10

Re: [PATCH v2 09/13] powerpc/ftrace: Implement CONFIG_DYNAMIC_FTRACE_WITH_ARGS

2021-12-22 Thread Miroslav Benes
On Mon, 20 Dec 2021, Christophe Leroy wrote: > Implement CONFIG_DYNAMIC_FTRACE_WITH_ARGS. It accelerates the call > of livepatching. > > Also note that powerpc being the last one to convert to > CONFIG_DYNAMIC_FTRACE_WITH_ARGS, it will now be possible to remove > klp_arch_set_pc() on all

Re: [PATCH v2 04/13] powerpc/ftrace: Add support for livepatch to PPC32

2021-12-22 Thread Miroslav Benes
On Mon, 20 Dec 2021, Christophe Leroy wrote: > PPC64 needs some special logic to properly set up the TOC. > See commit 85baa095497f ("powerpc/livepatch: Add live patching support > on ppc64le") for details. > > PPC32 doesn't have TOC so it doesn't need that logic, so adding > LIVEPATCH support

Re: [PATCH v2 01/13] livepatch: Fix build failure on 32 bits processors

2021-12-22 Thread Miroslav Benes
On Mon, 20 Dec 2021, Christophe Leroy wrote: > Trying to build livepatch on powerpc/32 results in: > > kernel/livepatch/core.c: In function 'klp_resolve_symbols': > kernel/livepatch/core.c:221:23: warning: cast to pointer from integer > of different size [-Wint-to-pointer-cast] >

Re: [PATCH v1 06/11] powerpc/code-patching: Fix patch_branch() return on out-of-range failure

2021-12-22 Thread Christophe Leroy
Le 02/12/2021 à 13:00, Christophe Leroy a écrit : > Do not silentely ignore a failure of create_branch() in > patch_branch(). Return -ERANGE. > > Signed-off-by: Christophe Leroy From

[PATCH] powerpc/32: Fix boot failure with GCC latent entropy plugin

2021-12-22 Thread Christophe Leroy
Boot fails with GCC latent entropy plugin enabled. This is due to early boot functions trying to access 'latent_entropy' global data while the kernel is not relocated at its final destination yet. As there is no way to tell GCC to use PTRRELOC() to access it, disable latent entropy plugin in

Re: [PATCH 4/4] powerpc/perf: Add data source encodings for power10 platform

2021-12-22 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 06, 2021 at 02:47:49PM +0530, Kajol Jain escreveu: > The code represent memory/cache level data based on PERF_MEM_LVL_* > namespace, which is in the process of deprication in the favour of > newer composite PERF_MEM_{LVLNUM_,REMOTE_,SNOOPX_,HOPS_} fields. > Add data source encodings to

Re: [PATCH 3/4] powerpc/perf: Add encodings to represent data based on newer composite PERF_MEM_LVLNUM* fields

2021-12-22 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 06, 2021 at 02:47:48PM +0530, Kajol Jain escreveu: > The code represent data coming from L1/L2/L3 cache hits based on > PERF_MEM_LVL_* namespace, which is in the process of deprecation in > the favour of newer composite PERF_MEM_{LVLNUM_,REMOTE_,SNOOPX_,HOPS_} > fields. Thanks,

Re: [PATCH 2/4] tools/perf: Add new macros for mem_hops field

2021-12-22 Thread Arnaldo Carvalho de Melo
Em Mon, Dec 06, 2021 at 02:47:47PM +0530, Kajol Jain escreveu: > Add new macros for mem_hops field which can be used to > represent remote-node, socket and board level details. > > Currently the code had macro for HOPS_0 which, corresponds > to data coming from another core but same node. > Add

[BISECTED] power8: watchdog: CPU 3 self-detected hard LOCKUP @ queued_spin_lock_slowpath+0x154/0x2d0

2021-12-22 Thread Stijn Tintel
Hi, After upgrading my Power8 server from 5.10 LTS to 5.15 LTS, I started experiencing CPU hard lockups, usually rather quickly after boot: watchdog: CPU 3 self-detected hard LOCKUP @ queued_spin_lock_slowpath+0x154/0x2d0 watchdog: CPU 3 TB:265651929071, last heartbeat TB:259344820187 (12318ms

Re: [PATCH 1/3] powerpc/64s: Mask NIP before checking against SRR0

2021-12-22 Thread Sachin Sant
> On 21-Dec-2021, at 7:20 PM, Michael Ellerman wrote: > > When CONFIG_PPC_RFI_SRR_DEBUG=y we check that NIP and SRR0 match when > returning from interrupts. This can trigger falsely if NIP has either of > its two low bits set via sigreturn or ptrace, while SRR0 has its low two > bits masked in

Re: [PATCH 3/3] powerpc/vdso: Merge vdso64 and vdso32 into a single directory

2021-12-22 Thread Christophe Leroy
kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: > https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-vdso-augment-VDSO32-functions-to-support-64-bits-build/20211222-021

Re: [PATCH 3/3] powerpc/vdso: Merge vdso64 and vdso32 into a single directory

2021-12-22 Thread kernel test robot
in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/powerpc-vdso-augment-VDSO32-functions-to-support-64-bits-build/20211222-021033 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config: powerpc-randconfig-r023

[PATCH v2] powerpc/cell/axon_msi: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-12-22 Thread cgel . zte
From: Changcheng Deng Fix the following coccicheck warning: ./arch/powerpc/platforms/cell/axon_msi.c: 456: 0-23: WARNING: fops_msic should be defined with DEFINE_DEBUGFS_ATTRIBUTE DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to

Re: [PATCH 4/8] sched: powerpc: Remove unused TASK_SIZE_OF

2021-12-22 Thread Guo Ren
Got it. Thx On Wed, Dec 22, 2021 at 3:27 PM Christophe Leroy wrote: > > > > Le 22/12/2021 à 04:02, Guo Ren a écrit : > > On Wed, Dec 22, 2021 at 2:43 AM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 21/12/2021 à 18:00, guo...@kernel.org a écrit : > >>> From: Guo Ren > >>> > >>> This macro