[RESEND PATCH v5 4/4] docs: ABI: sysfs-bus-nvdimm: Document sysfs event format entries for nvdimm pmu

2021-11-15 Thread Kajol Jain
Details are added for the event, cpumask and format attributes in the ABI documentation. Signed-off-by: Kajol Jain --- Documentation/ABI/testing/sysfs-bus-nvdimm | 35 ++ 1 file changed, 35 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-nvdimm

[RESEND PATCH v5 3/4] powerpc/papr_scm: Add perf interface support

2021-11-15 Thread Kajol Jain
Performance monitoring support for papr-scm nvdimm devices via perf interface is added which includes addition of pmu functions like add/del/read/event_init for nvdimm_pmu struture. A new parameter 'priv' in added to the pdev_archdata structure to save nvdimm_pmu device pointer, to handle the

[RESEND PATCH v5 2/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2021-11-15 Thread Kajol Jain
A common interface is added to get performance stats reporting support for nvdimm devices. Added interface defines supported event list, config fields for the event attributes and their corresponding bit values which are exported via sysfs. Interface also added support for pmu register/unregister

[RESEND PATCH v5 0/4] Add perf interface to expose nvdimm

2021-11-15 Thread Kajol Jain
Patchset adds performance stats reporting support for nvdimm. Added interface includes support for pmu register/unregister functions. A structure is added called nvdimm_pmu to be used for adding arch/platform specific data such as cpumask, nvdimm device pointer and pmu event functions like

[RESEND PATCH v5 1/4] drivers/nvdimm: Add nvdimm pmu structure

2021-11-15 Thread Kajol Jain
A structure is added called nvdimm_pmu, for performance stats reporting support of nvdimm devices. It can be used to add device pmu data such as pmu data structure for performance stats, nvdimm device pointer along with cpumask attributes. Signed-off-by: Kajol Jain --- include/linux/nd.h | 20

Re: Build regressions/improvements in v5.16-rc1

2021-11-15 Thread Kees Cook
On Mon, Nov 15, 2021 at 05:44:33PM +0100, Marco Elver wrote: > On Mon, Nov 15, 2021 at 05:12PM +0100, Geert Uytterhoeven wrote: > [...] > > > + /kisskb/src/include/linux/fortify-string.h: error: call to > > > '__read_overflow' declared with attribute error: detected read beyond > > > size of

Re: Build regressions/improvements in v5.16-rc1

2021-11-15 Thread Kees Cook
On Mon, Nov 15, 2021 at 05:44:33PM +0100, Marco Elver wrote: > On Mon, Nov 15, 2021 at 05:12PM +0100, Geert Uytterhoeven wrote: > [...] > > > + /kisskb/src/include/linux/fortify-string.h: error: call to > > > '__read_overflow' declared with attribute error: detected read beyond > > > size of

Re: [PATCH 0/3] KEXEC_SIG with appended signature

2021-11-15 Thread Nayna
On 11/12/21 03:30, Michal Suchánek wrote: Hello, On Thu, Nov 11, 2021 at 05:26:41PM -0500, Nayna wrote: On 11/8/21 07:05, Michal Suchánek wrote: Hello, On Mon, Nov 08, 2021 at 09:18:56AM +1100, Daniel Axtens wrote: Michal Suchánek writes: On Fri, Nov 05, 2021 at 09:55:52PM +1100,

RE: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

2021-11-15 Thread Leo Li
> -Original Message- > From: Andy Shevchenko > Sent: Monday, November 15, 2021 5:30 AM > To: linux-ker...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux-arm- > ker...@lists.infradead.org > Cc: Leo Li ; Qiang Zhao > Subject: Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the

[RFC PATCH 1/3] mm: cma: alloc_contig_range: use pageblock_order as the single alignment.

2021-11-15 Thread Zi Yan
From: Zi Yan Pages are grouped in unit of pageblock_order for mobility. cma and alloc_contig_range() uses pageblock for isolation and migration, so aligning PFNs to pageblock_order is necessary. But the PFNs used in cma and alloc_contig_range() were aligned to max(pageblock_order, MAX_ORDER-1).

[RFC PATCH 3/3] arch: powerpc: adjust fadump alignment to pageblock aligned.

2021-11-15 Thread Zi Yan
From: Zi Yan CMA only requires pageblock alignment. Change fadump too. Signed-off-by: Zi Yan --- arch/powerpc/include/asm/fadump-internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/fadump-internal.h

[RFC PATCH 2/3] drivers: virtio_mem: use pageblock size as the minimum virtio_mem size.

2021-11-15 Thread Zi Yan
From: Zi Yan alloc_contig_range() now only needs to be aligned to pageblock_order, drop virtio_mem size requirement that it needs to be the max of pageblock_order and MAX_ORDER. Signed-off-by: Zi Yan --- drivers/virtio/virtio_mem.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-)

[RFC PATCH 3/3] arch: powerpc: adjust fadump alignment to be pageblock aligned.

2021-11-15 Thread Zi Yan
From: Zi Yan CMA only requires pageblock alignment now. Change CMA alignment in fadump too. Signed-off-by: Zi Yan --- arch/powerpc/include/asm/fadump-internal.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/include/asm/fadump-internal.h

[RFC PATCH 0/3] Use pageblock_order for cma and alloc_contig_range alignment.

2021-11-15 Thread Zi Yan
From: Zi Yan Hi David, You suggested to make alloc_contig_range() deal with pageblock_order instead of MAX_ORDER - 1 and get rid of MAX_ORDER - 1 dependency in virtio_mem[1]. This patchset is my attempt to achieve that. Please take a look and let me know if I am doing it correctly or not.

Re: [PATCH 16/39] irqdomain: Make normal and nomap irqdomains exclusive

2021-11-15 Thread Cédric Le Goater
Hello Mark, On 5/20/21 18:37, Marc Zyngier wrote: Direct mappings are completely exclusive of normal mappings, meaning that we can refactor the code slightly so that we can get rid of the revmap_direct_max_irq field and use the revmap_size field instead, reducing the size of the irqdomain

Re: Build regressions/improvements in v5.16-rc1

2021-11-15 Thread Helge Deller
On 11/15/21 17:12, Geert Uytterhoeven wrote: > On Mon, Nov 15, 2021 at 4:54 PM Geert Uytterhoeven > wrote: >> Below is the list of build error/warning regressions/improvements in >> v5.16-rc1[1] compared to v5.15[2]. >> >> Summarized: >> - build errors: +20/-13 >> - build warnings: +3/-28 >>

Re: Build regressions/improvements in v5.16-rc1

2021-11-15 Thread Geert Uytterhoeven
On Mon, Nov 15, 2021 at 4:54 PM Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v5.16-rc1[1] compared to v5.15[2]. > > Summarized: > - build errors: +20/-13 > - build warnings: +3/-28 > > Happy fixing! ;-) > > Thanks to the linux-next team

Re: [PATCH v2 3/5] powerpc: Use preemption model accessors

2021-11-15 Thread Valentin Schneider
Doh, thought I had sent this one out already... On 11/11/21 15:55, Michael Ellerman wrote: > Valentin Schneider writes: >> Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual >> preemption model of the live kernel. Use the newly-introduced accessors >> instead. >> >>

Re: [PATCH v3 1/4] powerpc/watchdog: Fix missed watchdog reset due to memory ordering race

2021-11-15 Thread Laurent Dufour
Le 10/11/2021 à 03:50, Nicholas Piggin a écrit : It is possible for all CPUs to miss the pending cpumask becoming clear, and then nobody resetting it, which will cause the lockup detector to stop working. It will eventually expire, but watchdog_smp_panic will avoid doing anything if the pending

Re: [PATCH v2] powerpc/64s: Get LPID bit width from device tree

2021-11-15 Thread kernel test robot
Hi Nicholas, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v5.16-rc1 next-2025] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

Re: [PATCH] net/wan/fsl_ucc_hdlc: fix sparse warnings

2021-11-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (master) by David S. Miller : On Mon, 15 Nov 2021 12:08:59 +0100 you wrote: > CHECK drivers/net/wan/fsl_ucc_hdlc.c > drivers/net/wan/fsl_ucc_hdlc.c:309:57: warning: incorrect type in argument 2 > (different address spaces) >

Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions

2021-11-15 Thread Andy Shevchenko
On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote: > When kernel.h is used in the headers it adds a lot into dependency hell, > especially when there are circular dependencies are involved. > > Replace kernel.h inclusion with the list of what is really being used. > >

Re: [PATCH] powerpc/book3e: Fix TLBCAM preset at boot

2021-11-15 Thread Christian Zigotzky
On 15 November 2021 at 10:05 am, Christophe Leroy wrote: Commit 52bda69ae8b5 ("powerpc/fsl_booke: Tell map_mem_in_cams() if init is done") was supposed to just add an additional parameter to map_mem_in_cams() and always set it to 'true' at that time. But a few call sites were messed up. Fix

[PATCH] net/wan/fsl_ucc_hdlc: fix sparse warnings

2021-11-15 Thread Christophe Leroy
CHECK drivers/net/wan/fsl_ucc_hdlc.c drivers/net/wan/fsl_ucc_hdlc.c:309:57: warning: incorrect type in argument 2 (different address spaces) drivers/net/wan/fsl_ucc_hdlc.c:309:57:expected void [noderef] __iomem * drivers/net/wan/fsl_ucc_hdlc.c:309:57:got restricted __be16 *

[PATCH v3] powerpc/code-patching: Improve verification of patchability

2021-11-15 Thread Christophe Leroy
Today, patch_instruction() assumes that it is called exclusively on valid addresses, and only checks that it is not called on an init address after init section has been freed. Improve verification by calling kernel_text_address() instead. kernel_text_address() already includes a verification of

Re: bug: usb: gadget: FSL_UDC_CORE Corrupted request list leads to unrecoverable loop.

2021-11-15 Thread Thorsten Leemhuis
Hi, this is your Linux kernel regression tracker speaking. This looks stalled, as afaics nothing to get this regression fixed happened since below mail. How can we things rolling again? Eugene, were you able to look into the patch from Joakim? Or did I miss anything and some progress to fix

[PATCH] powerpc/book3e: Fix TLBCAM preset at boot

2021-11-15 Thread Christophe Leroy
Commit 52bda69ae8b5 ("powerpc/fsl_booke: Tell map_mem_in_cams() if init is done") was supposed to just add an additional parameter to map_mem_in_cams() and always set it to 'true' at that time. But a few call sites were messed up. Fix them. Reported-by: Christian Zigotzky Fixes: 52bda69ae8b5

[PATCH] powerpc/signal32: Fix sigset_t copy

2021-11-15 Thread Christophe Leroy
The conversion from __copy_from_user() to __get_user() by commit d3ccc9781560 ("powerpc/signal: Use __get_user() to copy sigset_t") introduced a regression in __get_user_sigset() for powerpc/32. The bug was subsequently moved into unsafe_get_user_sigset(). The bug is due to the copied 64 bit

[PATCH] powerpc/8xx: Fix pinned TLBs with CONFIG_STRICT_KERNEL_RWX

2021-11-15 Thread Christophe Leroy
As spotted and explained in commit c12ab8dbc492 ("powerpc/8xx: Fix Oops with STRICT_KERNEL_RWX without DEBUG_RODATA_TEST"), the selection of STRICT_KERNEL_RWX without selecting DEBUG_RODATA_TEST has spotted the lack of the DIRTY bit in the pinned kernel data TLBs. This problem should have been

Re: [PATCH] soc: fsl: qe: Fix typo in a comment

2021-11-15 Thread Christophe Leroy
Le 13/11/2021 à 06:59, Jason Wang a écrit : The double `is' in a comment is repeated, thus one of them should be removed. You are also clean blanks it seems, so say it or don't do it. Signed-off-by: Jason Wang --- drivers/soc/fsl/qe/qe.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] mm: Remove a repeated word in a comment

2021-11-15 Thread Christophe Leroy
Le 13/11/2021 à 05:40, Jason Wang a écrit : The double word `up' in a comment is repeated, thus one of them should be removed. If you do other changes than this one, say it here as well, see below. Signed-off-by: Jason Wang --- drivers/macintosh/mediabay.c | 10 +- 1 file