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

2021-11-10 Thread Nicholas Piggin
Allow the LPID bit width and partition table size to be set at runtime from the device tree. Move the PID bit width detection into the same place. KVM does not support using different sizes yet, this is mainly required to get the PTCR register values correct. Signed-off-by: Nicholas Piggin ---

[PATCH v2 1/3] soc: fsl: Correct MAINTAINERS database (QUICC ENGINE LIBRARY)

2021-11-10 Thread Andy Shevchenko
MAINTAINERS lacks of proper coverage for FSL headers. Fix it accordingly. Fixes: 7aa1aa6ecec2 ("QE: Move QE from arch/powerpc to drivers/soc") Signed-off-by: Andy Shevchenko --- v2: new patch MAINTAINERS | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MAINTAINERS

[PATCH v2 2/3] soc: fsl: Correct MAINTAINERS database (SOC)

2021-11-10 Thread Andy Shevchenko
MAINTAINERS lacks of proper coverage for FSL headers. Fix it accordingly. Fixes: 1b48706f027c ("MAINTAINERS: add entry for Freescale SoC drivers") Signed-off-by: Andy Shevchenko --- v2: new patch MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index

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

2021-11-10 Thread Fabiano Rosas
Nicholas Piggin writes: > Allow the LPID bit width and partition table size to be set at runtime > from the device tree. > > Move the PID bit width detection into the same place. > > KVM does not support using different sizes yet, this is mainly required > to get the PTCR register values

Re: [PATCH/RFC] of: Shrink struct of_device_id

2021-11-10 Thread Rasmus Villemoes
On 10/11/2021 17.23, Geert Uytterhoeven wrote: > Currently struct of_device_id is 196 (32-bit) or 200 (64-bit) bytes > large. It contains fixed-size strings for a name, a type, and a > compatible value, but the first two are barely used. > OF device ID tables contain multiple entries, plus an

Re: [PATCH] powerpc: Fix sigset_t copy

2021-11-10 Thread Christophe Leroy
Le 10/11/2021 à 00:47, Finn Thain a écrit : From: Christophe Leroy The conversion from __copy_from_user() to __get_user() introduced a regression in __get_user_sigset() in v5.13. The bug was subsequently copied and pasted in unsafe_get_user_sigset(). The regression was reported by users of

[PATCH/RFC] of: Shrink struct of_device_id

2021-11-10 Thread Geert Uytterhoeven
Currently struct of_device_id is 196 (32-bit) or 200 (64-bit) bytes large. It contains fixed-size strings for a name, a type, and a compatible value, but the first two are barely used. OF device ID tables contain multiple entries, plus an empty sentinel entry. Statistics for my current kernel

[PATCH] powerpc/83xx/mpc8349emitx: Drop unused variable

2021-11-10 Thread Uwe Kleine-König
Commit 5d354dc35ebb ("powerpc/83xx/mpc8349emitx: Make mcu_gpiochip_remove() return void") removed the usage of the variable ret, but failed to remove the variable itself, resulting in: arch/powerpc/platforms/83xx/mcu_mpc8349emitx.c: In function ‘mcu_remove’:

Re: [PATCH v2 27/45] mfd: ntxec: Use devm_register_power_handler()

2021-11-10 Thread Jonathan Neuschäfer
On Mon, Nov 08, 2021 at 02:36:42PM +0300, Dmitry Osipenko wrote: > 08.11.2021 14:22, Jonathan Neuschäfer пишет: > > On Sun, Nov 07, 2021 at 08:42:33PM +0300, Dmitry Osipenko wrote: > > [...] > >> EC drivers tend to use higher priority in general. Jonathan, could you > >> please confirm that NTXEC

Re: [PATCH v12 1/2] tty: hvc: pass DMA capable memory to put_chars()

2021-11-10 Thread Jiri Slaby
On 04. 11. 21, 14:06, Xianting Tian wrote: OTOH, you need c[N_OUTBUF] in the console case (hvc_console_print), but not whole hvc_struct. So cons_hvcs should be an array of structs composed of only the lock and the buffer. It is ok for me. = And I would do it even simpler now. One

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

2021-11-10 Thread Andy Shevchenko
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. Signed-off-by: Andy Shevchenko --- v2: updated Cc list based on previous changes to

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

2021-11-10 Thread Andy Shevchenko
On Sat, Oct 30, 2021 at 10:28:01AM +0300, Andy Shevchenko wrote: > On Saturday, October 30, 2021, Christophe Leroy > wrote: > > Le 29/10/2021 à 22:31, Andy Shevchenko a écrit : ... > > That means that Michael considered it is not for him. > > > > And I think the reason is that in MAINTAINERS

[PATCH v2 0/5] preempt: PREEMPT vs PREEMPT_DYNAMIC configs fixup

2021-11-10 Thread Valentin Schneider
Hi folks, Thanks to suggestions from Mike, Frederic and Marco I ended up with something that looks somewhat sane and with a minimal amount of crud. Patches === o Patch 1 is the meat of the topic and could be picked on its own if the rest is too icky. o Patch 2 introduces helpers for the

Re: [PATCH v2 5/5] ftrace: Use preemption model accessors for trace header printout

2021-11-10 Thread Steven Rostedt
On Wed, 10 Nov 2021 20:24:48 + Valentin Schneider wrote: > Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual > preemption model of the live kernel. Use the newly-introduced accessors > instead. > > Signed-off-by: Valentin Schneider > --- > kernel/trace/trace.c | 14

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Christian Zigotzky
On 09 November 2021 at 03:45 pm, Christian Zigotzky wrote: > Hello, > > The Nemo board [1] doesn't recognize any ATA disks with the pci-v5.16 updates [2]. > > Error messages: > > ata4.00: gc timeout cmd 0xec > ata4.00: failed to IDENTIFY (I/O error, error_mask=0x4) > ata1.00: gc timeout cmd

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Bjorn Helgaas
On Wed, Nov 10, 2021 at 07:07:24PM +0100, Christian Zigotzky wrote: > On 09 November 2021 at 03:45 pm, Christian Zigotzky wrote: > > Hello, > > > > The Nemo board [1] doesn't recognize any ATA disks with the pci-v5.16 > updates [2]. > > > > Error messages: > > > > ata4.00: gc timeout cmd 0xec > >

Re: [PATCH/RFC] of: Shrink struct of_device_id

2021-11-10 Thread Geert Uytterhoeven
Hi Rasmus, On Wed, Nov 10, 2021 at 5:51 PM Rasmus Villemoes wrote: > On 10/11/2021 17.23, Geert Uytterhoeven wrote: > > Currently struct of_device_id is 196 (32-bit) or 200 (64-bit) bytes > > large. It contains fixed-size strings for a name, a type, and a > > compatible value, but the first two

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Marc Zyngier
HI all, On Wed, 10 Nov 2021 18:41:06 +, Bjorn Helgaas wrote: > > On Wed, Nov 10, 2021 at 07:07:24PM +0100, Christian Zigotzky wrote: > > On 09 November 2021 at 03:45 pm, Christian Zigotzky wrote: > > > Hello, > > > > > > The Nemo board [1] doesn't recognize any ATA disks with the pci-v5.16

[PATCH] ppc64/fadump: fix inaccurate CPU state info in vmcore generated with panic

2021-11-10 Thread Hari Bathini
In panic path, fadump is triggered via a panic notifier function. Before calling panic notifier functions, smp_send_stop() gets called, which stops all CPUs except the panic'ing CPU. Commit 8389b37dffdc ("powerpc: stop_this_cpu: remove the cpu from the online map.") and again commit bab26238bbd4

[PATCH v2 5/5] ftrace: Use preemption model accessors for trace header printout

2021-11-10 Thread Valentin Schneider
Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual preemption model of the live kernel. Use the newly-introduced accessors instead. Signed-off-by: Valentin Schneider --- kernel/trace/trace.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git

[PATCH v2 4/5] kscan: Use preemption model accessors

2021-11-10 Thread Valentin Schneider
Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual preemption model of the live kernel. Use the newly-introduced accessors instead. Signed-off-by: Valentin Schneider --- kernel/kcsan/kcsan_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2 1/5] preempt: Restore preemption model selection configs

2021-11-10 Thread Valentin Schneider
Commit c597bfddc9e9 ("sched: Provide Kconfig support for default dynamic preempt mode") changed the selectable config names for the preemption model. This means a config file must now select CONFIG_PREEMPT_BEHAVIOUR=y rather than CONFIG_PREEMPT=y to get a preemptible kernel. This means all

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

2021-11-10 Thread Valentin Schneider
Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual preemption model of the live kernel. Use the newly-introduced accessors instead. sched_init() -> preempt_dynamic_init() happens way before IRQs are set up, so this should be fine. Signed-off-by: Valentin Schneider ---

[PATCH v2 2/5] preempt/dynamic: Introduce preempt mode accessors

2021-11-10 Thread Valentin Schneider
CONFIG_PREEMPT{_NONE, _VOLUNTARY} designate either: o The build-time preemption model when !PREEMPT_DYNAMIC o The default boot-time preemption model when PREEMPT_DYNAMIC IOW, using those on PREEMPT_DYNAMIC kernels is meaningless - the actual model could have been set to something else by the

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Robert Święcki
> [+CC Adding Robert for visibility] > > Hi Arnd, > > Thank you looking at this! Much appreciated. > > > > > You could attach the kernel config there, too, since it didn't make it > > > > to the mailing list (vger may discard them -- see > > > > http://vger.kernel.org/majordomo-info.html). > > >

Re: [PATCH] powerpc: Fix sigset_t copy

2021-11-10 Thread Finn Thain
On Wed, 10 Nov 2021, Christophe Leroy wrote: > Le 10/11/2021 à 00:47, Finn Thain a écrit : > > > Christophe, I hope this change is the one you wanted to see upstream > > (?). If it is acceptable please add your signed-off-by tag. > > I'm on holidays, I was planing to handle this next week. >

Re: [PATCH v2 27/45] mfd: ntxec: Use devm_register_power_handler()

2021-11-10 Thread Dmitry Osipenko
10.11.2021 13:43, Jonathan Neuschäfer пишет: > On Mon, Nov 08, 2021 at 02:36:42PM +0300, Dmitry Osipenko wrote: >> 08.11.2021 14:22, Jonathan Neuschäfer пишет: >>> On Sun, Nov 07, 2021 at 08:42:33PM +0300, Dmitry Osipenko wrote: >>> [...] EC drivers tend to use higher priority in general.

Re: [PATCH v2 2/5] preempt/dynamic: Introduce preempt mode accessors

2021-11-10 Thread Mike Galbraith
On Wed, 2021-11-10 at 20:24 +, Valentin Schneider wrote: > > diff --git a/include/linux/sched.h b/include/linux/sched.h > index 5f8db54226af..0640d5622496 100644 > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -2073,6 +2073,22 @@ static inline void cond_resched_rcu(void) >  

Re: [PATCH v2 2/5] preempt/dynamic: Introduce preempt mode accessors

2021-11-10 Thread Mike Galbraith
On Thu, 2021-11-11 at 04:16 +0100, Mike Galbraith wrote: > On Wed, 2021-11-10 at 20:24 +, Valentin Schneider wrote: > > > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > index 5f8db54226af..0640d5622496 100644 > > --- a/include/linux/sched.h > > +++ b/include/linux/sched.h > >

Re: [PATCH/RFC] of: Shrink struct of_device_id

2021-11-10 Thread Frank Rowand
Hi Geert, On 11/10/21 11:23 AM, Geert Uytterhoeven wrote: > Currently struct of_device_id is 196 (32-bit) or 200 (64-bit) bytes > large. It contains fixed-size strings for a name, a type, and a > compatible value, but the first two are barely used. > OF device ID tables contain multiple entries,

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

2021-11-10 Thread Michael Ellerman
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. > > sched_init() -> preempt_dynamic_init() happens way before IRQs are set up, > so this should be fine.

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Christian Zigotzky
On 10 November 2021 at 08:09 pm, Marc Zyngier wrote: HI all, On Wed, 10 Nov 2021 18:41:06 +, Bjorn Helgaas wrote: On Wed, Nov 10, 2021 at 07:07:24PM +0100, Christian Zigotzky wrote: On 09 November 2021 at 03:45 pm, Christian Zigotzky wrote: Hello, The Nemo board [1] doesn't recognize

Re: [PATCH v2 2/5] preempt/dynamic: Introduce preempt mode accessors

2021-11-10 Thread Mike Galbraith
On Thu, 2021-11-11 at 04:47 +0100, Mike Galbraith wrote: > > So I suppose the powerpc spot should remain CONFIG_PREEMPT and become > CONFIG_PREEMPTION when the RT change gets merged, because that spot is > about full preemptibility, not a distinct preemption model. KCSAN needs a little help to be

Re: [PATCH] ppc64/fadump: fix inaccurate CPU state info in vmcore generated with panic

2021-11-10 Thread Michael Ellerman
Hari Bathini writes: > In panic path, fadump is triggered via a panic notifier function. > Before calling panic notifier functions, smp_send_stop() gets called, > which stops all CPUs except the panic'ing CPU. Commit 8389b37dffdc > ("powerpc: stop_this_cpu: remove the cpu from the online map.")

Re: [PATCH v2 2/5] preempt/dynamic: Introduce preempt mode accessors

2021-11-10 Thread Mike Galbraith
On Thu, 2021-11-11 at 04:35 +0100, Mike Galbraith wrote: > On Thu, 2021-11-11 at 04:16 +0100, Mike Galbraith wrote: > > On Wed, 2021-11-10 at 20:24 +, Valentin Schneider wrote: > > > > > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > > index 5f8db54226af..0640d5622496 100644

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Marc Zyngier
On Thu, 11 Nov 2021 05:24:52 +, Christian Zigotzky wrote: > > On 10 November 2021 at 08:09 pm, Marc Zyngier wrote: > > HI all, > > > > On Wed, 10 Nov 2021 18:41:06 +, > > Bjorn Helgaas wrote: > >> On Wed, Nov 10, 2021 at 07:07:24PM +0100, Christian Zigotzky wrote: > >>> On 09 November

Re: [PASEMI] Nemo board doesn't recognize any ATA disks with the pci-v5.16 updates

2021-11-10 Thread Christian Zigotzky
On 11 November 2021 at 08:13 am, Marc Zyngier wrote: On Thu, 11 Nov 2021 05:24:52 +, Christian Zigotzky wrote: On 10 November 2021 at 08:09 pm, Marc Zyngier wrote: HI all, On Wed, 10 Nov 2021 18:41:06 +, Bjorn Helgaas wrote: On Wed, Nov 10, 2021 at 07:07:24PM +0100, Christian