Re: [PATCH mm-unstable RFC 17/26] powerpc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on 32bit book3s

2022-12-08 Thread David Hildenbrand
On 07.12.22 14:55, Christophe Leroy wrote: Le 06/12/2022 à 15:47, David Hildenbrand a écrit : We already implemented support for 64bit book3s in commit bff9beaa2e80 ("powerpc/pgtable: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE for book3s") Let's support __HAVE_ARCH_PTE_SWP_EXCLUSIVE also in 32bit

Re: [PATCH mm-unstable RFC 17/26] powerpc/mm: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE on 32bit book3s

2022-12-08 Thread David Hildenbrand
On 08.12.22 09:52, David Hildenbrand wrote: On 07.12.22 14:55, Christophe Leroy wrote: Le 06/12/2022 à 15:47, David Hildenbrand a écrit : We already implemented support for 64bit book3s in commit bff9beaa2e80 ("powerpc/pgtable: support __HAVE_ARCH_PTE_SWP_EXCLUSIVE for book3s") Let's support

[PATCH 1/3] USB: sisusbvga: remove console support

2022-12-08 Thread Jiri Slaby (SUSE)
It was marked as BROKEN since commit 862ee699fefe (USB: sisusbvga: Make console support depend on BROKEN) 2 years ago. Since noone stepped up to fix it, remove it completely. Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Yoshinori Sato Cc: Rich Felker Cc: Thomas Winischhof

[PATCH 2/3] USB: sisusbvga: rename sisusb.c to sisusbvga.c

2022-12-08 Thread Jiri Slaby (SUSE)
As it's the only source for the sisusbvga module, there is no need for a 2-steps build. Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Yoshinori Sato Cc: Rich Felker Cc: Thomas Winischhofer Cc: Greg Kroah-Hartman Cc: linuxppc-dev@lists.ozlabs.org Cc: linux...@vger.kernel.

[PATCH 3/3] USB: sisusbvga: use module_usb_driver()

2022-12-08 Thread Jiri Slaby (SUSE)
Now, that we only do usb_register() and usb_sisusb_exit() in module_init() and module_exit() respectivelly, we can simply use module_usb_driver(). Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Yoshinori Sato Cc: Rich Felker Cc: Thomas Winischhofer Cc: Greg Kroah-Hartman

Re: [PATCH 10/11] MIPS: mscc: jaguar2: Fix pca9545 i2c-mux node names

2022-12-08 Thread Thomas Bogendoerfer
On Fri, Dec 02, 2022 at 05:49:25PM +0100, Geert Uytterhoeven wrote: > "make dtbs_check": > > arch/mips/boot/dts/mscc/jaguar2_pcb110.dtb: pca9545@70: $nodename:0: > 'pca9545@70' does not match '^(i2c-?)?mux' > From schema: > Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.yaml

[PATCH] powerpc/qspinlock: Fix 32-bit build

2022-12-08 Thread Nicholas Piggin
Some 32-bit configurations don't pull in the spin_begin/end/relax definitions. Fix is to restore a lost include. Reported-by: kernel test robot Link: https://lore.kernel.org/oe-kbuild-all/202212050224.i7uh9foh-...@intel.com Fixes: 84990b169557 ("powerpc/qspinlock: add mcs queueing for contended

Re: [PATCH v10 0/9] powerpc/code-patching: Use temporary mm for Radix MMU

2022-12-08 Thread Michael Ellerman
On Wed, 9 Nov 2022 15:51:03 +1100, Benjamin Gray wrote: > This is a revision of Chris and Jordan's series to introduce a per-cpu > temporary > mm to be used for patching with strict rwx on radix mmus. > > v10: * Don't set poking_init_enabled on boot CPU init failure > * Remove extern from

Re: (subset) [PATCH v3 0/7] Expand selftest utils

2022-12-08 Thread Michael Ellerman
On Mon, 28 Nov 2022 15:19:41 +1100, Benjamin Gray wrote: > Started this when writing tests for a feature I'm working on, needing a way to > read/write numbers to system files. After writing some utils to safely handle > file IO and parsing, I realised I'd made the ~6th file read/write > implementa

Re: [PATCH v2] powerpc/cpuidle: Set CPUIDLE_FLAG_POLLING for snooze state

2022-12-08 Thread Michael Ellerman
On Mon, 14 Nov 2022 20:26:11 +0530, Aboorva Devarajan wrote: > During the comparative study of cpuidle governors, it is noticed that the > menu governor does not select CEDE state in some scenarios even though when > the sleep duration of the CPU exceeds the target residency of the CEDE idle > stat

Re: [PATCH] KVM: PPC: use __func__ to get funcion's name in an output message

2022-12-08 Thread Michael Ellerman
On Fri, 17 Jun 2022 23:50:19 +0800 (GMT+08:00), XueBing Chen wrote: > Prefer using '"%s...", __func__' to get current function's name in > an output message. > > Applied to powerpc/next. [1/1] KVM: PPC: use __func__ to get funcion's name in an output message https://git.kernel.org/powerpc

Re: [PATCH] KVM: PPC: Book3S HV: Use the bitmap API to allocate bitmaps

2022-12-08 Thread Michael Ellerman
On Sat, 9 Jul 2022 17:56:43 +0200, Christophe JAILLET wrote: > Use bitmap_zalloc()/bitmap_free() instead of hand-writing them. > > It is less verbose and it improves the semantic. > > Applied to powerpc/next. [1/1] KVM: PPC: Book3S HV: Use the bitmap API to allocate bitmaps https://git.k

Re: [PATCH v2 1/5] powerpc/code-patching: Remove #ifdef CONFIG_STRICT_KERNEL_RWX

2022-12-08 Thread Michael Ellerman
On Fri, 2 Dec 2022 09:31:39 +0100, Christophe Leroy wrote: > No need to have one implementation of patch_instruction() for > CONFIG_STRICT_KERNEL_RWX and one for !CONFIG_STRICT_KERNEL_RWX. > > In patch_instruction(), call raw_patch_instruction() when > !CONFIG_STRICT_KERNEL_RWX. > > In poking_ini

Re: (subset) [PATCH 00/11] Fix pca954x i2c-mux node names

2022-12-08 Thread Michael Ellerman
On Fri, 2 Dec 2022 17:49:15 +0100, Geert Uytterhoeven wrote: > Hi all, > > According to the I2C bus multiplexer/switch DT bindings, i2c-mux nodes > should be named "i2c-mux" (or something similar). > This patch series renames nodes for pca954x i2c-muxes that are flagged > by > > [...] Appl

Re: [PATCH] powerpc/ps3: mark ps3_system_bus_type static

2022-12-08 Thread Michael Ellerman
On Tue, 22 Nov 2022 08:22:25 +0100, Christoph Hellwig wrote: > ps3_system_bus_type is only used inside of system-bus.c, so remove > the external declaration and the very outdated comment next to it. > > Applied to powerpc/next. [1/1] powerpc/ps3: mark ps3_system_bus_type static https://gi

Re: [PATCH] cxl: Remove unnecessary cxl_pci_window_alignment()

2022-12-08 Thread Michael Ellerman
On Mon, 5 Dec 2022 16:32:31 -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > cxl_pci_window_alignment() is referenced only via the struct > pci_controller_ops.window_alignment function pointer, and only in the > powerpc implementation of pcibios_window_alignment(). > > pcibios_window_alignm

Re: [PATCH] KVM: Fix spelling mistake

2022-12-08 Thread Michael Ellerman
On Thu, 23 Jun 2022 18:20:31 +0800, Zhang Jiaming wrote: > Change 'subsquent' to 'subsequent'. > Change 'accross' to 'across'. > > Applied to powerpc/next. [1/1] KVM: Fix spelling mistake https://git.kernel.org/powerpc/c/392a58f1eaab0c90b80d7ba4a03dbf6eaaeabe60 cheers

Re: [PATCH v3] powerpc/hv-gpci: Fix hv_gpci event list

2022-12-08 Thread Michael Ellerman
On Wed, 30 Nov 2022 23:15:13 +0530, Kajol Jain wrote: > Based on getPerfCountInfo v1.018 documentation, some of the > hv_gpci events were deprecated for platform firmware that > supports counter_info_version 0x8 or above. > > Fix the hv_gpci event list by adding a new attribute group > called "hv_

Re: [PATCH] powerpc/pseries: unregister VPA when hot unplugging a CPU

2022-12-08 Thread Michael Ellerman
On Mon, 14 Nov 2022 17:01:50 +0100, Laurent Dufour wrote: > The VPA should unregister when offlining a CPU. Otherwise there could be a > short window where 2 CPUs could share the same VPA. > > This happens because the hypervisor is still keeping the VPA attached to > the vCPU even if it became off

Re: [PATCH] pseries/mobility: reset the RCU watchdogs after a LPM

2022-12-08 Thread Michael Ellerman
On Fri, 25 Nov 2022 18:32:04 +0100, Laurent Dufour wrote: > The RCU watchdog timer should be reset when restarting the CPU after a Live > Partition Mobility operation. > > Applied to powerpc/next. [1/1] pseries/mobility: reset the RCU watchdogs after a LPM https://git.kernel.org/powerpc/c

Re: [PATCH v2 0/2] Consider the size of the added CPU nodes in the kexec FDT

2022-12-08 Thread Michael Ellerman
On Thu, 10 Nov 2022 19:06:17 +0100, Laurent Dufour wrote: > When adding CPUs to an already big system (test show it seems to start with > more than 256 CPUs), the kernel is showing error messages when building the > FDT for the kexec kernel (kdump or kexec). > > It's worth to mention that the kdum

Re: [PATCH] selftests/powerpc: Fix resource leaks

2022-12-08 Thread Michael Ellerman
On Mon, 5 Dec 2022 12:44:27 +0400, Miaoqian Lin wrote: > In check_all_cpu_dscr_defaults, opendir() opens the directory stream. > Add missing closedir() in the error path to release it. > > In check_cpu_dscr_default, open() creates an open file descriptor. > Add missing close() in the error path to

Re: (subset) [PATCH 1/3] firmware_loader: remove #include

2022-12-08 Thread Michael Ellerman
On Sat, 26 Nov 2022 06:09:59 +0100, Thomas Weißschuh wrote: > utsrelease.h is potentially generated on each build. > By removing this unused include we can get rid of some spurious > recompilations. > > Applied to powerpc/next. [2/3] powerpc/book3e: remove #include https://git.kernel.org

Re: [PATCH] powerpc/ftrace: fix syscall tracing on PPC64_ELF_ABI_V1

2022-12-08 Thread Michael Ellerman
On Thu, 1 Dec 2022 11:14:42 -0500, Michael Jeanson wrote: > In v5.7 the powerpc syscall entry/exit logic was rewritten in C, on > PPC64_ELF_ABI_V1 this resulted in the symbols in the syscall table > changing from their dot prefixed variant to the non-prefixed ones. > > Since ftrace prefixes a dot

Re: [PATCH 00/13] RTAS maintenance

2022-12-08 Thread Michael Ellerman
On Fri, 18 Nov 2022 09:07:38 -0600, Nathan Lynch wrote: > A collection of loosely-related RTAS code changes, most notably: > > * Fixing misuses of rtas_token() for non-function properties. > * The stronger validation for sys_rtas() offered by the > PPC_RTAS_FILTER config option is always enabled

Re: [PATCH 0/3] selftests/powerpc: ptrace/perf_hwbreak test fixes

2022-12-08 Thread Michael Ellerman
On Tue, 22 Nov 2022 12:10:51 +0530, Naveen N. Rao wrote: > This series fixes two issues with the perf_hwbreak test: > - Test fails on systems with large number of cpus due to hitting the > resource limit for maximum number of open file descriptors. > - Test fails on systems running with lower SMT

Re: [PATCH 00/17] powerpc: Remove STACK_FRAME_OVERHEAD

2022-12-08 Thread Michael Ellerman
On Sun, 27 Nov 2022 22:49:25 +1000, Nicholas Piggin wrote: > Since RFC: > - Fix a compile bug. > - Fix BookE KVM properly. Hopefully -- I don't have a BookE > KVM environment to test. Can QEMU do it? Is it still tested? > - Drop the last two patches that changed the stack layout, they > can be

Re: [PATCH] powerpc/64s/hash: add stress_hpt kernel boot option to increase hash faults

2022-12-08 Thread Michael Ellerman
On Mon, 24 Oct 2022 13:01:50 +1000, Nicholas Piggin wrote: > This option increases the number of hash misses by limiting the number > of kernel HPT entries, by keeping a per-CPU record of the last kernel > HPTEs installed, and removing that from the hash table on the next hash > insertion. A timer

Re: (subset) [PATCH v3 00/17] powerpc: alternate queued spinlock implementation

2022-12-08 Thread Michael Ellerman
On Sat, 26 Nov 2022 19:59:15 +1000, Nicholas Piggin wrote: > This replaces the generic queued spinlock code (like s390 does) with > our own implementation. There is an extra shim patch 1a to get the > series to apply. > > Generic PV qspinlock code is causing latency / starvation regressions on > l

Re: [PATCH v6 0/4] Option to build big-endian with ELFv2 ABI

2022-12-08 Thread Michael Ellerman
On Mon, 28 Nov 2022 14:15:35 +1000, Nicholas Piggin wrote: > This is hopefully the final attempt. Luis was happy for the module > patch to go via the powerpc tree, so I've put the the ELFv2 for big > endian build patches into the series. Hopefully we can deprecate > the ELFv1 ABI > > Since v5, I c

Re: [PATCH] powerpc: dts: turris1x.dts: Add channel labels for temperature sensor

2022-12-08 Thread Michael Ellerman
On Fri, 30 Sep 2022 14:39:01 +0200, Pali Rohár wrote: > Channel 0 of SA56004ED chip refers to internal SA56004ED chip sensor (chip > itself is located on the board) and channel 1 of SA56004ED chip refers to > external sensor which is connected to temperature diode of the P2020 CPU. > > Applied t

Re: [PATCH] powerpc/fsl-pci: Choose PCI host bridge with alias pci0 as the primary

2022-12-08 Thread Michael Ellerman
On Sat, 20 Aug 2022 14:33:27 +0200, Pali Rohár wrote: > If there's no PCI host bridge with ISA then check for PCI host bridge with > alias "pci0" (first PCI host bridge) and if it exists then choose it as the > primary PCI host bridge. > > This makes choice of primary PCI host bridge more stable a

Re: [PATCH v5 1/7] powerpc/64: Add INTERRUPT_SANITIZE_REGISTERS Kconfig

2022-12-08 Thread Michael Ellerman
On Thu, 1 Dec 2022 18:10:13 +1100, Rohan McLure wrote: > Add Kconfig option for enabling clearing of registers on arrival in an > interrupt handler. This reduces the speculation influence of registers > on kernel internals. The option will be consumed by 64-bit systems that > feature speculation an

Re: [PATCH] KVM: PPC: Use the arg->size directly for kvm_vm_ioctl_create_spapr_tce

2022-12-08 Thread Michael Ellerman
On Sun, 3 Jul 2022 13:29:32 -0400, Deming Wang wrote: > Use arg->size directly may be better for code readability.Because, the > variable of size has not been found for special purpose at present. > Also,We can reduce the use of a variable. > > Applied to powerpc/next. [1/1] KVM: PPC: Use the

Re: [PATCH] selftests: powerpc: Use "grep -E" instead of "egrep"

2022-12-08 Thread Michael Ellerman
On Thu, 1 Dec 2022 10:49:57 +0800, Tiezhu Yang wrote: > The latest version of grep claims the egrep is now obsolete so the build > now contains warnings that look like: > egrep: warning: egrep is obsolescent; using grep -E > fix this using "grep -E" instead. > > sed -i "s/egrep/grep -E/g"

Re: [PATCH v2] powerpc/83xx/mpc832x_rdb: call platform_device_put() in error case in of_fsl_spi_probe()

2022-12-08 Thread Michael Ellerman
On Sat, 29 Oct 2022 19:16:26 +0800, Yang Yingliang wrote: > If platform_device_add() is not called or failed, it can not call > platform_device_del() to clean up memory, it should call > platform_device_put() in error case. > > Applied to powerpc/next. [1/1] powerpc/83xx/mpc832x_rdb: call platf

Re: [PATCH v2] powerpc/bpf/32: Fix Oops on tail call tests

2022-12-08 Thread Michael Ellerman
On Thu, 24 Nov 2022 09:37:27 +0100, Christophe Leroy wrote: > test_bpf tail call tests end up as: > > test_bpf: #0 Tail call leaf jited:1 85 PASS > test_bpf: #1 Tail call 2 jited:1 111 PASS > test_bpf: #2 Tail call 3 jited:1 145 PASS > test_bpf: #3 Tail call 4 jited:1 170 PASS > test_bpf

Re: [PATCH] powerpc/64s: Add missing declaration for machine_check_early_boot()

2022-12-08 Thread Michael Ellerman
On Sat, 26 Nov 2022 00:25:21 +1100, Michael Ellerman wrote: > There's no declaration for machine_check_early_boot(), which leads to a > build failure with W=1. Add one. > > Applied to powerpc/fixes. [1/1] powerpc/64s: Add missing declaration for machine_check_early_boot() https://git.kern

Re: [PATCH v6 00/16] objtool: Enable and implement --mcount option on powerpc

2022-12-08 Thread Michael Ellerman
On Mon, 14 Nov 2022 23:27:38 +0530, Sathvika Vasireddy wrote: > This patchset enables and implements objtool --mcount > option on powerpc. This applies atop powerpc/merge branch. > > Changelog: > > > v6: > > [...] Applied to powerpc/next (and topic/objtool). [01/16] powerpc: Fix __WARN_FL

[PATCH] powerpc/pseries: Fix potential memleak in papr_get_attr()

2022-12-08 Thread Qiheng Lin
`buf` is allocated in papr_get_attr(), and krealloc() of `buf` could fail. We need to free the original `buf` in the case of failure. Fixes: 3c14b73454cf ("powerpc/pseries: Interface to represent PAPR firmware attributes") Signed-off-by: Qiheng Lin --- arch/powerpc/platforms/pseries/papr_platfo

[powerpc:next] BUILD SUCCESS 64fdcbcc064966bbf261bb455876dffa58858d32

2022-12-08 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next branch HEAD: 64fdcbcc064966bbf261bb455876dffa58858d32 powerpc/prom: Fix 32-bit build elapsed time: 721m configs tested: 61 configs skipped: 2 The following configs have been built successfully. More configs ma

Re: [PATCH] powerpc/mce: log the error for all unrecoverable errors

2022-12-08 Thread Mahesh J Salgaonkar
On 2022-11-14 13:26:07 Mon, Ganesh Goudar wrote: > machine_check_log_err() is not getting called for all > unrecoverable errors, And we are missing to log the error. > > Raise irq work in save_mce_event() for unrecoverable errors, > So that we log the error from MCE event handling block in > timer

Re: [PATCH v8 4/9] phy: fsl: Add Lynx 10G SerDes driver

2022-12-08 Thread Sean Anderson
On 12/6/22 21:17, Stephen Boyd wrote: > Quoting Sean Anderson (2022-11-01 16:27:21) >> On 11/1/22 16:10, Stephen Boyd wrote: >> >> >> >> Oh, I remember why I did this. I need the reference clock for >> >> clk_hw_round_rate, >> >> which is AFAICT the only correct way to implement round_rate. >> >>

[PATCH] cxl/pci: Move tracepoint definitions to drivers/cxl/core/

2022-12-08 Thread Dan Williams
CXL is using tracepoints for reporting RAS capability register payloads for AER events, and has plans to use tracepoints for the output payload of Get Poison List and Get Event Records commands. For organization purposes it would be nice to keep those all under a single + local CXL trace system. Th

Re: [PATCH] cxl/pci: Move tracepoint definitions to drivers/cxl/core/

2022-12-08 Thread Dave Jiang
On 12/8/2022 10:02 AM, Dan Williams wrote: CXL is using tracepoints for reporting RAS capability register payloads for AER events, and has plans to use tracepoints for the output payload of Get Poison List and Get Event Records commands. For organization purposes it would be nice to keep those

Re: [PATCH v1] powerpc/64: Set default CPU in Kconfig

2022-12-08 Thread Pali Rohár
On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > Since 0069f3d14e7a ("powerpc/64e: Tie PPC_BOOK3E_64 to PPC_E500MC"), > the only possible BOOK3E/64 are E500, so no need of a default CPU > over the E5500. > When the user selects book3e, he must have a e500 compatible compiler, > and

Re: [PATCH v3] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-12-08 Thread Pali Rohár
On Sunday 28 August 2022 17:43:53 Christophe Leroy wrote: > Le 28/08/2022 à 19:41, Pali Rohár a écrit : > > On Sunday 28 August 2022 17:39:25 Christophe Leroy wrote: > >> Le 28/08/2022 à 19:33, Christophe Leroy a écrit : > >>> > >>> > >>> Le 28/08/2022 à 11:56, Pali Rohár a écrit : > When CONF

Re: [PATCH v3] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-12-08 Thread Pali Rohár
On Wednesday 07 December 2022 13:39:18 Christophe Leroy wrote: > Le 26/11/2022 à 17:30, Pali Rohár a écrit : > > On Wednesday 02 November 2022 14:05:35 Christophe Leroy wrote: > >> Le 01/11/2022 à 23:12, Pali Rohár a écrit : > >>> On Sunday 09 October 2022 13:06:52 Pali Rohár wrote: > On Monda

Re: [PATCH v3] powerpc/boot: Don't always pass -mcpu=powerpc when building 32-bit uImage

2022-12-08 Thread Christophe Leroy
Le 08/12/2022 à 20:16, Pali Rohár a écrit : > On Sunday 28 August 2022 17:43:53 Christophe Leroy wrote: >> Le 28/08/2022 à 19:41, Pali Rohár a écrit : >>> On Sunday 28 August 2022 17:39:25 Christophe Leroy wrote: Le 28/08/2022 à 19:33, Christophe Leroy a écrit : > > > Le 28/08/20

Re: [PATCH] cxl/pci: Move tracepoint definitions to drivers/cxl/core/

2022-12-08 Thread Alison Schofield
On Thu, Dec 08, 2022 at 09:02:00AM -0800, Dan Williams wrote: > CXL is using tracepoints for reporting RAS capability register payloads > for AER events, and has plans to use tracepoints for the output payload > of Get Poison List and Get Event Records commands. For organization > purposes it would

[powerpc:next] BUILD SUCCESS f24f21c4122e837fa031cc512a7f20eb8c554c5e

2022-12-08 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next branch HEAD: f24f21c4122e837fa031cc512a7f20eb8c554c5e Merge branch 'topic/objtool' into next elapsed time: 729m configs tested: 60 configs skipped: 2 The following configs have been built successfully. More co

[powerpc:next-test] BUILD SUCCESS f2636eaac7dee1d7d096cc115ff4f5111b0c508c

2022-12-08 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test branch HEAD: f2636eaac7dee1d7d096cc115ff4f5111b0c508c powerpc/64: Set default CPU in Kconfig elapsed time: 728m configs tested: 60 configs skipped: 2 The following configs have been built successfully. Mo

Re: [PATCH] perf test: Update event group check for support of uncore event

2022-12-08 Thread Athira Rajeev
> On 08-Dec-2022, at 9:48 AM, Ravi Bangoria wrote: > > On 07-Dec-22 10:28 PM, Athira Rajeev wrote: >> Event group test checks group creation for combinations of >> hw, sw and uncore PMU events. Some of the uncore pmus may >> require additional permission to access the counters. >> For example,