Re: [PATCH] powerpc: fix typos in comments

2022-05-04 Thread Joel Stanley
On Sat, 30 Apr 2022 at 18:58, Julia Lawall wrote: > > Various spelling mistakes in comments. > Detected with the help of Coccinelle. > > Signed-off-by: Julia Lawall I read the patch and it appears that all of the corrections are good. Thanks for sending it Julia. I'm not sure that one mega

Re: [PATCH v3 2/4] arm64: dts: freescale: reduce the interrup-map-mask

2022-05-04 Thread Shawn Guo
On Wed, Apr 27, 2022 at 09:53:36AM +0200, Michael Walle wrote: > Reduce the interrupt-map-mask of the external interrupt controller to > 0xf to align with the devicetree schema. > > Signed-off-by: Michael Walle Applied, thanks!

Re: [PATCH v3 1/4] ARM: dts: ls1021a: reduce the interrupt-map-mask

2022-05-04 Thread Shawn Guo
On Wed, Apr 27, 2022 at 09:53:35AM +0200, Michael Walle wrote: > Reduce the interrupt-map-mask of the external interrupt controller to > 7 to align with the devicetree schema. > > Signed-off-by: Michael Walle Applied, thanks!

[powerpc:fixes-test] BUILD SUCCESS 6d65028eb67dbb7627651adfc460d64196d38bd8

2022-05-04 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test branch HEAD: 6d65028eb67dbb7627651adfc460d64196d38bd8 powerpc/vdso: Fix incorrect CFI in gettimeofday.S elapsed time: 732m configs tested: 104 configs skipped: 112 The following configs have been built

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread kernel test robot
Hi Andy, I love your patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on wsa/i2c/for-next mkl-can-next/testing broonie-spi/for-next tty/tty-testing linus/master v5.18-rc5 next-20220504] [If your patch is applied to the wrong git tree, kindly drop

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread Chris Packham
On 5/05/22 01:44, Andy Shevchenko wrote: > Switch mpc5xxx_get_bus_frequency() to use fwnode in order to help > cleaning up other parts of the kernel from OF specific code. > > No functional change intended. > > Signed-off-by: Andy Shevchenko > --- > arch/powerpc/include/asm/mpc5xxx.h

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread kernel test robot
Hi Andy, I love your patch! Perhaps something to improve: [auto build test WARNING on powerpc/next] [also build test WARNING on wsa/i2c/for-next mkl-can-next/testing broonie-spi/for-next tty/tty-testing linus/master v5.18-rc5 next-20220504] [If your patch is applied to the wrong git tree

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-04 Thread Arnd Bergmann
On Wed, May 4, 2022 at 11:08 PM Bjorn Helgaas wrote: > > On Fri, Apr 29, 2022 at 03:49:59PM +0200, Niklas Schnelle wrote: > > We introduce a new HAS_IOPORT Kconfig option to indicate support for > > I/O Port access. In a future patch HAS_IOPORT=n will disable compilation > > of the I/O accessor

Re: [PATCH 07/30] mips: ip22: Reword PANICED to PANICKED and remove useless header

2022-05-04 Thread Guilherme G. Piccoli
On 04/05/2022 17:32, Thomas Bogendoerfer wrote: > [...] > > applied to mips-next. > > Thomas. > Thanks a bunch Thomas =)

Re: [PATCH 07/30] mips: ip22: Reword PANICED to PANICKED and remove useless header

2022-05-04 Thread Thomas Bogendoerfer
On Wed, Apr 27, 2022 at 07:49:01PM -0300, Guilherme G. Piccoli wrote: > Many other place in the kernel prefer the latter, so let's keep > it consistent in MIPS code as well. Also, removes a useless header. > > Cc: Thomas Bogendoerfer > Signed-off-by: Guilherme G. Piccoli > --- >

Re: [RFC v2 01/39] Kconfig: introduce HAS_IOPORT option and select it as necessary

2022-05-04 Thread Bjorn Helgaas
On Fri, Apr 29, 2022 at 03:49:59PM +0200, Niklas Schnelle wrote: > We introduce a new HAS_IOPORT Kconfig option to indicate support for > I/O Port access. In a future patch HAS_IOPORT=n will disable compilation > of the I/O accessor functions inb()/outb() and friends on architectures > which can

Re: [PATCH] i2c: powermac: Prepare cleanup of powerpc's asm/prom.h

2022-05-04 Thread Wolfram Sang
On Sat, Apr 02, 2022 at 12:06:59PM +0200, Christophe Leroy wrote: > powerpc's asm/prom.h brings some headers that it doesn't > need itself. > > In order to clean it up, first add missing headers in > users of asm/prom.h > > Signed-off-by: Christophe Leroy Applied to for-next, thanks!

Re: [PATCH 04/30] firmware: google: Convert regular spinlock into trylock on panic path

2022-05-04 Thread Guilherme G. Piccoli
On 03/05/2022 18:56, Evan Green wrote: > Hi Guilherme, > [...] >> Do you agree with that, or prefer really a parameter in >> gsmi_shutdown_reason() ? I'll follow your choice =) > > I'm fine with either, thanks for the link. Mostly I want to make sure > other paths to gsmi_shutdown_reason()

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread Wolfram Sang
On Wed, May 04, 2022 at 04:44:47PM +0300, Andy Shevchenko wrote: > Switch mpc5xxx_get_bus_frequency() to use fwnode in order to help > cleaning up other parts of the kernel from OF specific code. > > No functional change intended. > > Signed-off-by: Andy Shevchenko Acked-by: Wolfram Sang #

Re: [PATCH v1 1/4] powerpc/52xx: Remove dead code, i.e. mpc52xx_get_xtal_freq()

2022-05-04 Thread Wolfram Sang
Wow, MPC5200, that was a long time ago for me... > It seems mpc52xx_get_xtal_freq() is not used anywhere. Remove dead code. Looks like it. Reviewed-by: Wolfram Sang signature.asc Description: PGP signature

Re: (subset) [PATCH -next v4 0/7]arm64: add machine check safe support

2022-05-04 Thread Catalin Marinas
On Wed, 20 Apr 2022 03:04:11 +, Tong Tiangen wrote: > With the increase of memory capacity and density, the probability of > memory error increases. The increasing size and density of server RAM > in the data center and cloud have shown increased uncorrectable memory > errors. > > Currently,

[PATCH] powerpc/85xx: P2020: Add law_trgt_if property to PCIe DT nodes

2022-05-04 Thread Pali Rohár
DT law_trgt_if property defines Local Access Window Target Interface. Local Access Window Target Interface is used for identifying individual peripheral and mapping its memory to CPU. Interface id is defined by hardware itself. U-Boot uses law_trgt_if DT property in PCIe nodes for configuring

[PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-05-04 Thread Pali Rohár
Since commit 63a72284b159 ("powerpc/pci: Assign fixed PHB number based on device-tree properties"), powerpc kernel always fallback to PCI domain assignment from OF / Device Tree 'reg' property of the PCI controller. PCI code for other Linux architectures use increasing assignment of the PCI

Re: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols

2022-05-04 Thread Christophe Leroy
Le 04/05/2022 à 19:06, Steven Rostedt a écrit : > On Wed, 4 May 2022 16:50:58 + > Christophe Leroy wrote: > >> In vmlinux, relocations are resolved, trampolines are installed for >> unreachable destinations and you don't anymore have a section with all >> the relocations to mcount. It

Re: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols

2022-05-04 Thread Steven Rostedt
On Wed, 4 May 2022 16:50:58 + Christophe Leroy wrote: > In vmlinux, relocations are resolved, trampolines are installed for > unreachable destinations and you don't anymore have a section with all > the relocations to mcount. It means 'recordmcount' or whatever tool we > use will have to

[PATCH 5.17 198/225] perf symbol: Pass is_kallsyms to symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit 838425f2defe5262906b698752d28fd2fca1aac2 upstream. The symbol fixup is necessary for symbols in kallsyms since they don't have size info. So we use the next symbol's address to calculate the size. Now it's also used for user binaries because sometimes they miss size

[PATCH 5.17 200/225] perf symbol: Remove arch__symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit a5d20d42a2f2dc2b2f9e9361912062732414090d upstream. Now the generic code can handle kallsyms fixup properly so no need to keep the arch-functions anymore. Fixes: 3cf6a32f3f2a4594 ("perf symbols: Fix symbol size calculation condition") Signed-off-by: Namhyung Kim

[PATCH 5.17 199/225] perf symbol: Update symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit 8799ebce84d672aae1dc3170510f6a3e66f96b11 upstream. Now arch-specific functions all do the same thing. When it fixes the symbol address it needs to check the boundary between the kernel image and modules. For the last symbol in the previous region, it cannot know the

[PATCH 5.15 173/177] perf symbol: Remove arch__symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit a5d20d42a2f2dc2b2f9e9361912062732414090d upstream. Now the generic code can handle kallsyms fixup properly so no need to keep the arch-functions anymore. Fixes: 3cf6a32f3f2a4594 ("perf symbols: Fix symbol size calculation condition") Signed-off-by: Namhyung Kim

[PATCH 5.15 156/177] perf symbol: Update symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit 8799ebce84d672aae1dc3170510f6a3e66f96b11 upstream. Now arch-specific functions all do the same thing. When it fixes the symbol address it needs to check the boundary between the kernel image and modules. For the last symbol in the previous region, it cannot know the

[PATCH 5.15 155/177] perf symbol: Pass is_kallsyms to symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit 838425f2defe5262906b698752d28fd2fca1aac2 upstream. The symbol fixup is necessary for symbols in kallsyms since they don't have size info. So we use the next symbol's address to calculate the size. Now it's also used for user binaries because sometimes they miss size

[PATCH 5.10 129/129] perf symbol: Remove arch__symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit a5d20d42a2f2dc2b2f9e9361912062732414090d upstream. Now the generic code can handle kallsyms fixup properly so no need to keep the arch-functions anymore. Fixes: 3cf6a32f3f2a4594 ("perf symbols: Fix symbol size calculation condition") Signed-off-by: Namhyung Kim

[PATCH 5.10 113/129] perf symbol: Pass is_kallsyms to symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit 838425f2defe5262906b698752d28fd2fca1aac2 upstream. The symbol fixup is necessary for symbols in kallsyms since they don't have size info. So we use the next symbol's address to calculate the size. Now it's also used for user binaries because sometimes they miss size

[PATCH 5.10 114/129] perf symbol: Update symbols__fixup_end()

2022-05-04 Thread Greg Kroah-Hartman
From: Namhyung Kim commit 8799ebce84d672aae1dc3170510f6a3e66f96b11 upstream. Now arch-specific functions all do the same thing. When it fixes the symbol address it needs to check the boundary between the kernel image and modules. For the last symbol in the previous region, it cannot know the

Re: [PATCH 2/2] recordmcount: Handle sections with no non-weak symbols

2022-05-04 Thread Christophe Leroy
Le 03/05/2022 à 18:25, Steven Rostedt a écrit : > On Tue, 3 May 2022 11:20:22 + > Christophe Leroy wrote: > >> Maybe I misunderstood. When you say 'after linking', do you mean vmlinux >> or vmlinux.o ? > > Whichever ;-) > >> >> In vmlinux, the addresses to be saved in __mcount_loc table

Re: Apply d799769188529abc6cbf035a10087a51f7832b6b to 5.17 and 5.15?

2022-05-04 Thread Greg Kroah-Hartman
On Wed, May 04, 2022 at 01:19:32PM +1000, Michael Ellerman wrote: > Nathan Chancellor writes: > > On Thu, Apr 21, 2022 at 08:13:13AM -0700, Nathan Chancellor wrote: > >> On Thu, Apr 21, 2022 at 05:46:52PM +1000, Michael Ellerman wrote: > >> > Nathan Chancellor writes: > >> > > Hi Greg, Sasha,

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread Mark Brown
On Wed, May 04, 2022 at 04:44:47PM +0300, Andy Shevchenko wrote: > Switch mpc5xxx_get_bus_frequency() to use fwnode in order to help > cleaning up other parts of the kernel from OF specific code. Acked-by: Mark Brown signature.asc Description: PGP signature

Re: [PATCH 1/2] tools/perf: Add utility function to read /proc/cpuinfo for any field

2022-05-04 Thread Athira Rajeev
> On 04-May-2022, at 7:16 PM, kajoljain wrote: > > > > On 4/28/22 20:38, Athira Rajeev wrote: >> /proc/cpuinfo provides information about type of processor, number >> of CPU's etc. Reading /proc/cpuinfo file outputs useful information >> by field name like cpu, platform, model (depending on

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread Marc Kleine-Budde
On 04.05.2022 16:44:47, Andy Shevchenko wrote: > Switch mpc5xxx_get_bus_frequency() to use fwnode in order to help > cleaning up other parts of the kernel from OF specific code. > > No functional change intended. > > Signed-off-by: Andy Shevchenko > --- > arch/powerpc/include/asm/mpc5xxx.h

Re: [PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread Damien Le Moal
On 2022/05/04 22:44, Andy Shevchenko wrote: > Switch mpc5xxx_get_bus_frequency() to use fwnode in order to help > cleaning up other parts of the kernel from OF specific code. > > No functional change intended. > > Signed-off-by: Andy Shevchenko For the pata bits, Acked-by: Damien Le Moal --

Re: [PATCH] powerpc/vdso: Fix incorrect CFI in gettimeofday.S

2022-05-04 Thread Segher Boessenkool
Hi! On Wed, May 04, 2022 at 10:27:54PM +1000, Michael Ellerman wrote: > Segher Boessenkool writes: > > Note that r1 is not the same as the CFA: r1 is the stack pointer, while > > the CFA is a DWARF concept. Often (but not always) they point to the > > same thing, for us. "When we change the

[PATCH v1 3/4] powerpc/52xx: Get rid of of_node assignment

2022-05-04 Thread Andy Shevchenko
Let GPIO library assign of_node from the parent device. This allows to move GPIO library and drivers to use fwnode APIs instead of being stuck with OF-only interfaces. Signed-off-by: Andy Shevchenko --- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 18 -- 1 file changed, 8

[PATCH v1 4/4] powerpc/52xx: Convert to use fwnode API

2022-05-04 Thread Andy Shevchenko
We may convert the GPT driver to use fwnode API for the sake of consistency of the used APIs inside the driver. Signed-off-by: Andy Shevchenko --- arch/powerpc/platforms/52xx/mpc52xx_gpt.c | 47 +++ 1 file changed, 22 insertions(+), 25 deletions(-) diff --git

[PATCH v1 2/4] powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode

2022-05-04 Thread Andy Shevchenko
Switch mpc5xxx_get_bus_frequency() to use fwnode in order to help cleaning up other parts of the kernel from OF specific code. No functional change intended. Signed-off-by: Andy Shevchenko --- arch/powerpc/include/asm/mpc5xxx.h| 9 +++- arch/powerpc/platforms/52xx/mpc52xx_gpt.c

[PATCH v1 1/4] powerpc/52xx: Remove dead code, i.e. mpc52xx_get_xtal_freq()

2022-05-04 Thread Andy Shevchenko
It seems mpc52xx_get_xtal_freq() is not used anywhere. Remove dead code. Signed-off-by: Andy Shevchenko --- arch/powerpc/include/asm/mpc52xx.h | 1 - arch/powerpc/platforms/52xx/mpc52xx_common.c | 37 2 files changed, 38 deletions(-) diff --git

Re: [PATCH 1/2] tools/perf: Add utility function to read /proc/cpuinfo for any field

2022-05-04 Thread kajoljain
On 4/28/22 20:38, Athira Rajeev wrote: > /proc/cpuinfo provides information about type of processor, number > of CPU's etc. Reading /proc/cpuinfo file outputs useful information > by field name like cpu, platform, model (depending on architecture) > and its value separated by colon. > > Add

Re: [PATCH v1 1/1] powerpc/83xx/mpc8349emitx: Get rid of of_node assignment

2022-05-04 Thread Andy Shevchenko
On Thu, Apr 21, 2022 at 08:42:30AM +1000, Michael Ellerman wrote: > Linus Walleij writes: > > On Wed, Apr 6, 2022 at 3:02 PM Andy Shevchenko > > wrote: > >> On Mon, Mar 28, 2022 at 03:16:08PM +0200, Linus Walleij wrote: > >> > On Wed, Mar 23, 2022 at 6:43 PM Andy Shevchenko > >> > wrote: > >> >

Re: [PATCH v1 16/22] powerpc/ftrace: Minimise number of #ifdefs

2022-05-04 Thread Christophe Leroy
Le 18/04/2022 à 09:59, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> A lot of #ifdefs can be replaced by IS_ENABLED() >> >> Do so. >> >> This requires to have kernel_toc_addr() defined at all time >> and PPC_INST_LD_TOC as well. >> >> Signed-off-by: Christophe Leroy >> --- >>  

Re: [PATCH v1 13/22] powerpc/ftrace: Use PPC_RAW_xxx() macros instead of opencoding.

2022-05-04 Thread Christophe Leroy
Le 18/04/2022 à 09:38, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> PPC_RAW_xxx() macros are self explanatory and less error prone >> than open coding. >> >> Use them in ftrace.c >> >> Signed-off-by: Christophe Leroy >> --- >>  arch/powerpc/include/asm/ppc-opcode.h |  3 +++ >>  

Re: [PATCH] powerpc/vdso: Fix incorrect CFI in gettimeofday.S

2022-05-04 Thread Michael Ellerman
Alan Modra writes: > On Mon, May 02, 2022 at 09:27:05AM -0500, Segher Boessenkool wrote: >> > 2) If a function changes LR or any non-volatile register, the save >> > location for those regs must be given. The cfi can be at any >> > instruction after the saves up to the point that the

Re: [PATCH] powerpc/vdso: Fix incorrect CFI in gettimeofday.S

2022-05-04 Thread Michael Ellerman
Segher Boessenkool writes: > Hi! > > On Mon, May 02, 2022 at 10:50:10PM +1000, Michael Ellerman wrote: >> As reported by Alan, the CFI (Call Frame Information) in the VDSO time >> routines is incorrect since commit ce7d8056e38b ("powerpc/vdso: Prepare >> for switching VDSO to generic C

Re: [PATCH v1 08/22] powerpc/ftrace: Make __ftrace_make_{nop/call}() common to PPC32 and PPC64

2022-05-04 Thread Christophe Leroy
Le 18/04/2022 à 08:40, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> Since c93d4f6ecf4b ("powerpc/ftrace: Add module_trampoline_target() >> for PPC32"), __ftrace_make_nop() for PPC32 is very similar to the >> one for PPC64. >> >> Same for __ftrace_make_call(). >> >> Make them common. >>

Re: [PATCH kernel] powerpc/llvm/lto: Allow LLVM LTO builds

2022-05-04 Thread Alexey Kardashevskiy
On 04/05/2022 17:11, Alexey Kardashevskiy wrote: On 5/4/22 07:21, Nick Desaulniers wrote: On Thu, Apr 28, 2022 at 11:46 PM Alexey Kardashevskiy wrote: This enables LTO_CLANG builds on POWER with the upstream version of LLVM. LTO optimizes the output vmlinux binary and this may affect

Re: [PATCH v1 07/22] powerpc/ftrace: Use patch_instruction() return directly

2022-05-04 Thread Christophe Leroy
Le 18/04/2022 à 21:44, Steven Rostedt a écrit : > On Mon, 18 Apr 2022 11:51:16 +0530 > "Naveen N. Rao" wrote: > >>> --- a/arch/powerpc/kernel/trace/ftrace.c >>> +++ b/arch/powerpc/kernel/trace/ftrace.c >>> @@ -78,10 +78,7 @@ ftrace_modify_code(unsigned long ip, ppc_inst_t old, >>> ppc_inst_t

Re: [PATCH 1/1] termbits: Convert octal defines to hex

2022-05-04 Thread Arnd Bergmann
On Wed, May 4, 2022 at 10:33 AM Ilpo Järvinen wrote: > On Wed, 4 May 2022, Arnd Bergmann wrote: > > On Wed, May 4, 2022 at 9:20 AM Ilpo Järvinen > > wrote: > > > > > After applying the patch locally, I still see a bunch of whitespace > > differences in the > > changed lines if I run > > > >

Re: [PATCH v1 06/22] powerpc/ftrace: Inline ftrace_modify_code()

2022-05-04 Thread Christophe Leroy
Le 18/04/2022 à 08:07, Naveen N. Rao a écrit : > Christophe Leroy wrote: >> Inlining ftrace_modify_code(), it increases a bit the >> size of ftrace code but brings 5% improvment on ftrace >> activation. >> >> Signed-off-by: Christophe Leroy >> --- >>  arch/powerpc/kernel/trace/ftrace.c | 2 +-

[PATCH net-next v3] net: ethernet: Prepare cleanup of powerpc's asm/prom.h

2022-05-04 Thread Christophe Leroy
powerpc's asm/prom.h includes some headers that it doesn't need itself. In order to clean powerpc's asm/prom.h up in a further step, first clean all files that include asm/prom.h Some files don't need asm/prom.h at all. For those ones, just remove inclusion of asm/prom.h Some files don't need

Re: [PATCH 1/1] termbits: Convert octal defines to hex

2022-05-04 Thread Michael Ellerman
Ilpo Järvinen writes: > Many archs have termbits.h as octal numbers. It makes hard for humans > to parse the magnitude of large numbers correctly and to compare with > hex ones of the same define. > > Convert octal values to hex. > > First step is an automated conversion with: > > for i in $(git

Re: [PATCH v2] powerpc/rtas: Keep MSR[RI] set when calling RTAS

2022-05-04 Thread Laurent Dufour
On 04/05/2022, 07:59:29, Michael Ellerman wrote: > Laurent Dufour writes: >> On 03/05/2022, 17:06:41, Michael Ellerman wrote: >>> Laurent Dufour writes: > ... diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index 1f42aabbbab3..d7775b8c8853 100644 ---

Re: [PATCH -next v4 4/7] arm64: add copy_{to, from}_user to machine check safe

2022-05-04 Thread Catalin Marinas
On Wed, Apr 20, 2022 at 03:04:15AM +, Tong Tiangen wrote: > Add copy_{to, from}_user() to machine check safe. > > If copy fail due to hardware memory error, only the relevant processes are > affected, so killing the user process and isolate the user page with > hardware memory errors is a

[PATCH v3] powerpc/rtas: Keep MSR[RI] set when calling RTAS

2022-05-04 Thread Laurent Dufour
RTAS runs in real mode (MSR[DR] and MSR[IR] unset) and in 32bits big endian mode (MSR[SF,LE] unset). The change in MSR is done in enter_rtas() in a relatively complex way, since the MSR value could be hardcoded. Furthermore, a panic has been reported when hitting the watchdog interrupt while

Re: [PATCH 1/1] termbits: Convert octal defines to hex

2022-05-04 Thread Ilpo Järvinen
On Wed, 4 May 2022, Arnd Bergmann wrote: > On Wed, May 4, 2022 at 9:20 AM Ilpo Järvinen > wrote: > > > > Many archs have termbits.h as octal numbers. It makes hard for humans > > to parse the magnitude of large numbers correctly and to compare with > > hex ones of the same define. > > > >

[PATCH kernel] KVM: PPC: Make KVM_CAP_IRQFD_RESAMPLE platform dependent

2022-05-04 Thread Alexey Kardashevskiy
When introduced, IRQFD resampling worked on POWER8 with XICS. However KVM on POWER9 has never implemented it - the compatibility mode code ("XICS-on-XIVE") misses the kvm_notify_acked_irq() call and the native XIVE mode does not handle INTx in KVM at all. This moved the capability support

Re: [PATCH 1/1] termbits: Convert octal defines to hex

2022-05-04 Thread Arnd Bergmann
On Wed, May 4, 2022 at 9:20 AM Ilpo Järvinen wrote: > > Many archs have termbits.h as octal numbers. It makes hard for humans > to parse the magnitude of large numbers correctly and to compare with > hex ones of the same define. > > Convert octal values to hex. > > First step is an automated

[PATCH 1/1] termbits: Convert octal defines to hex

2022-05-04 Thread Ilpo Järvinen
Many archs have termbits.h as octal numbers. It makes hard for humans to parse the magnitude of large numbers correctly and to compare with hex ones of the same define. Convert octal values to hex. First step is an automated conversion with: for i in $(git ls-files | grep 'termbits\.h'); do

Re: [PATCH kernel] powerpc/llvm/lto: Allow LLVM LTO builds

2022-05-04 Thread Alexey Kardashevskiy
On 5/4/22 07:21, Nick Desaulniers wrote: On Thu, Apr 28, 2022 at 11:46 PM Alexey Kardashevskiy wrote: This enables LTO_CLANG builds on POWER with the upstream version of LLVM. LTO optimizes the output vmlinux binary and this may affect the FTP alternative section if alt branches use "bc"