Re: [powerpc] kernel BUG fs/xfs/xfs_message.c:102! [4k block]

2023-10-12 Thread Dave Chinner
On Thu, Oct 12, 2023 at 03:51:04PM +0530, Sachin Sant wrote: > While running xfstests on a IBM Power10 server having xfs file system with > 4k block size following crash was seen > > [ 1609.771548] run fstests xfs/238 at 2023-10-11 17:00:40 > [ 1609.971214] XFS (sdb1): Mounting V5 Filesystem >

Re: [PATCH v3 1/2] ASoC: dt-bindings: sound-card-common: List DAPM endpoints ignoring system suspend

2023-10-12 Thread Rob Herring
On Wed, Oct 11, 2023 at 10:21:33PM +0100, Mark Brown wrote: > On Wed, Oct 11, 2023 at 07:47:58PM +0800, Chancel Liu wrote: > > > + lpa-widgets: > > +$ref: /schemas/types.yaml#/definitions/non-unique-string-array > > +description: | > > + A list of DAPM endpoints which mark paths

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-12 Thread Hari Bathini
Thanks for the review, Christophe. On 10/10/23 11:16 pm, Christophe Leroy wrote: Le 28/09/2023 à 21:48, Hari Bathini a écrit : patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every

[PATCH v6 5/5] powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]

2023-10-12 Thread Hari Bathini
Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_finalize. With multiple jit_subprogs, bpf_jit_free is called on some subprograms that haven't got

[PATCH v6 4/5] powerpc/bpf: rename powerpc64_jit_data to powerpc_jit_data

2023-10-12 Thread Hari Bathini
powerpc64_jit_data is a misnomer as it is meant for both ppc32 and ppc64. Rename it to powerpc_jit_data. Signed-off-by: Hari Bathini Acked-by: Song Liu --- arch/powerpc/net/bpf_jit_comp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/net/bpf_jit_comp.c

[PATCH v6 3/5] powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

2023-10-12 Thread Hari Bathini
Implement bpf_arch_text_invalidate and use it to fill unused part of the bpf_prog_pack with trap instructions when a BPF program is freed. Signed-off-by: Hari Bathini Acked-by: Song Liu --- arch/powerpc/net/bpf_jit_comp.c | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH v6 2/5] powerpc/bpf: implement bpf_arch_text_copy

2023-10-12 Thread Hari Bathini
bpf_arch_text_copy is used to dump JITed binary to RX page, allowing multiple BPF programs to share the same page. Use the newly introduced patch_instructions() to implement it. Signed-off-by: Hari Bathini Acked-by: Song Liu --- arch/powerpc/net/bpf_jit_comp.c | 20 +++- 1 file

[PATCH v6 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-12 Thread Hari Bathini
patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction would have to go through the above drill unnecessarily. Instead, introduce patch_instructions() function that sets up the pte,

[PATCH v6 0/5] powerpc/bpf: use BPF prog pack allocator

2023-10-12 Thread Hari Bathini
Most BPF programs are small, but they consume a page each. For systems with busy traffic and many BPF programs, this may also add significant pressure on instruction TLB. High iTLB pressure usually slows down the whole system causing visible performance degradation for production workloads.

[PATCH 2/2] sparc: Allow nesting of lazy MMU mode

2023-10-12 Thread Matthew Wilcox (Oracle)
As noted in commit 49147beb0ccb ("x86/xen: allow nesting of same lazy mode"), we can now nest calls to arch_enter_lazy_mmu_mode(). Use ->active as a counter instead of a flag and only drain the batch when the counter hits 0. Signed-off-by: Matthew Wilcox (Oracle) Fixes: bcc6cc832573 ("mm: add

[PATCH 1/2] powerpc: Allow nesting of lazy MMU mode

2023-10-12 Thread Matthew Wilcox (Oracle)
As noted in commit 49147beb0ccb ("x86/xen: allow nesting of same lazy mode"), we can now nest calls to arch_enter_lazy_mmu_mode(). Use ->active as a counter instead of a flag and only drain the batch when the counter hits 0. Signed-off-by: Matthew Wilcox (Oracle) Fixes: bcc6cc832573 ("mm: add

[PATCH 0/2] Allow nesting of lazy MMU mode

2023-10-12 Thread Matthew Wilcox (Oracle)
Dave Woodhouse reported that we now nest calls to arch_enter_lazy_mmu_mode(). That was inadvertent, but in principle we should allow it. On further investigation, Juergen already fixed it for Xen, but didn't tell anyone. Fix it for Sparc & PowerPC too. This may or may not help fix the problem

Re: [PATCH] [RFC] wireless: move obsolete drivers to staging

2023-10-12 Thread Geoff Levand
On 10/12/23 17:41, Johannes Berg wrote: > But seriously - is it worth to try to keep a wireless driver for it if > we don't even know anyone using a PS3 at all? There is still a considerable user base for the PS3, so we must keep the ps3-gelic-wireless driver. -Geoff

Re: [Bisected] [1b4fa28a8b07] Build failure "net/core/gso_test.c"

2023-10-12 Thread Kees Cook
On Thu, Oct 12, 2023 at 11:57:46AM +0200, Florian Westphal wrote: > Tasmiya Nalatwad wrote: > > Greetings, > > > > [net-next] [6.6-rc4] Build failure "net/core/gso_test.c" > > > > --- Traces --- > > > > make -j 33 -s && make modules_install && make install > > net/core/gso_test.c:58:48: error:

Re: [PATCH 1/3] perf tests test_arm_coresight: Fix the shellcheck warning in latest test_arm_coresight.sh

2023-10-12 Thread Athira Rajeev
> On 12-Oct-2023, at 9:37 PM, Suzuki K Poulose wrote: > > Hi, > > On 12/10/2023 16:56, Athira Rajeev wrote: >>> On 05-Oct-2023, at 3:06 PM, Suzuki K Poulose wrote: >>> >>> On 05/10/2023 06:02, Namhyung Kim wrote: On Thu, Sep 28, 2023 at 9:11 PM Athira Rajeev wrote: > > >

Re: [PATCH 1/3] perf tests test_arm_coresight: Fix the shellcheck warning in latest test_arm_coresight.sh

2023-10-12 Thread Suzuki K Poulose
Hi, On 12/10/2023 16:56, Athira Rajeev wrote: On 05-Oct-2023, at 3:06 PM, Suzuki K Poulose wrote: On 05/10/2023 06:02, Namhyung Kim wrote: On Thu, Sep 28, 2023 at 9:11 PM Athira Rajeev wrote: ... Thanks for the fix. Nothing to do with this patch, but I am wondering if the original

Re: [PATCH] [RFC] wireless: move obsolete drivers to staging

2023-10-12 Thread Johannes Berg
On Thu, 2023-10-12 at 16:36 +0200, Arnd Bergmann wrote: > > ps3-gelic-wireless Didn't Sony disable Linux on PS3 eventually? Though maybe someone still has some devices with old software. johannes

Re: [PATCH 1/3] perf tests test_arm_coresight: Fix the shellcheck warning in latest test_arm_coresight.sh

2023-10-12 Thread Athira Rajeev
> On 05-Oct-2023, at 3:06 PM, Suzuki K Poulose wrote: > > On 05/10/2023 06:02, Namhyung Kim wrote: >> On Thu, Sep 28, 2023 at 9:11 PM Athira Rajeev >> wrote: >>> >>> Running shellcheck on tests/shell/test_arm_coresight.sh >>> throws below warnings: >>> >>> In

Re: [PATCH 1/3] perf tests test_arm_coresight: Fix the shellcheck warning in latest test_arm_coresight.sh

2023-10-12 Thread Athira Rajeev
> On 05-Oct-2023, at 9:15 PM, David Laight wrote: > > From: David Laight >> Sent: 05 October 2023 11:16 > ... >>> - cs_etm_path=$(find /sys/bus/event_source/devices/cs_etm/ -name cpu* >>> -print -quit) >>> + cs_etm_path=$(find /sys/bus/event_source/devices/cs_etm/ -name 'cpu*' >>> -print

Re: [PATCH] [RFC] wireless: move obsolete drivers to staging

2023-10-12 Thread Johannes Berg
On Thu, 2023-10-12 at 17:39 +0200, Geert Uytterhoeven wrote: > Hi Johannes, > > On Thu, Oct 12, 2023 at 5:28 PM Johannes Berg > wrote: > > On Thu, 2023-10-12 at 16:36 +0200, Arnd Bergmann wrote: > > > > > > ps3-gelic-wireless > > > > Didn't Sony disable Linux on PS3 eventually? Though maybe

Re: [PATCH] [RFC] wireless: move obsolete drivers to staging

2023-10-12 Thread Geert Uytterhoeven
Hi Johannes, On Thu, Oct 12, 2023 at 5:28 PM Johannes Berg wrote: > On Thu, 2023-10-12 at 16:36 +0200, Arnd Bergmann wrote: > > > > ps3-gelic-wireless > > Didn't Sony disable Linux on PS3 eventually? Though maybe someone still > has some devices with old software. If you didn't update the

Re: [PATCH] [RFC] wireless: move obsolete drivers to staging

2023-10-12 Thread Geert Uytterhoeven
CC geoff, ppc On Thu, Oct 12, 2023 at 4:46 PM Kalle Valo wrote: > "Arnd Bergmann" writes: > > > On Thu, Oct 12, 2023, at 13:47, Kalle Valo wrote: > >> > >> Is anyone willing to submit patches? Use wireless-next as the baseline > >> for patches and one driver per commit, please. That way it's

Re: [Bisected] PowerMac G5 fails booting kernel 6.6-rc3 (BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe)

2023-10-12 Thread Erhard Furtner
On Thu, 12 Oct 2023 10:47:51 +1100 Michael Ellerman wrote: > I don't see this crash on my quad G5. > > I notice that your config has CONFIG_FLATMEM=y. Can you try switching to > SPARSEMEM and see if that helps? It might help us narrow down the bug at > least. Your assumption was right,

Re: [PATCHv8 1/5] powerpc/setup : Enable boot_cpu_hwid for PPC32

2023-10-12 Thread Pingfan Liu
On Wed, Oct 11, 2023 at 6:53 PM Sourabh Jain wrote: > > Hello Pingfan, > >>> With this patch series applied, the kdump kernel fails to boot on > >>> powerpc with nr_cpus=1. > >>> > >>> Console logs: > >>> --- > >>> [root]# echo c > /proc/sysrq-trigger > >>> [ 74.783235] sysrq:

[PATCH v2] ASoC: fsl: Fix PM disable depth imbalance in fsl_easrc_probe

2023-10-12 Thread Zhang Shurong
The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. We fix it by calling pm_runtime_disable when error returns. Fixes: 955ac624058f ("ASoC: fsl_easrc: Add EASRC ASoC CPU DAI drivers")

Re: [Bisected] [1b4fa28a8b07] Build failure "net/core/gso_test.c"

2023-10-12 Thread Tasmiya Nalatwad
Greetings, Thank you Florian. I have tried the changes suggested by you and it fixes the issue. With the suggested changes the problem is not seen. On 10/12/23 15:27, Florian Westphal wrote: .linear_len = GSO_TEST_SIZE, -- Regards, Tasmiya Nalatwad IBM Linux Technology Center

Re: [Bisected] PowerMac G5 fails booting kernel 6.6-rc3 (BUG: Unable to handle kernel data access at 0xfeffbb62ffec65fe)

2023-10-12 Thread Michael Ellerman
Erhard Furtner writes: > Greetings! > > Kernel 6.5.5 boots fine on my PowerMac G5 11,2 but kernel 6.6-rc3 fails to > boot with following dmesg shown on the OpenFirmware console (transcribed > screenshot): > > [...] > SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 > rcu:

Re: [PATCH v2 7/8] tty: Add SBI debug console support to HVC SBI driver

2023-10-12 Thread Björn Töpel
Anup Patel writes: > From: Atish Patra > > RISC-V SBI specification supports advanced debug console > support via SBI DBCN extension. > > Extend the HVC SBI driver to support it. > > Signed-off-by: Atish Patra > Signed-off-by: Anup Patel > --- > drivers/tty/hvc/Kconfig | 2 +- >

Re: [PATCH v6 4/9] mm: thp: Introduce anon_orders and anon_always_mask sysfs files

2023-10-12 Thread Michael Ellerman
Andrew Morton writes: > On Sun, 08 Oct 2023 09:54:22 +1100 Michael Ellerman > wrote: > >> > I don't know why powerpc's PTE_INDEX_SIZE is variable. >> >> To allow a single vmlinux to boot using either the Hashed Page Table >> MMU, or Radix Tree MMU, which have different page table geometry. >>

Re: [Bisected] [1b4fa28a8b07] Build failure "net/core/gso_test.c"

2023-10-12 Thread Florian Westphal
Tasmiya Nalatwad wrote: > Greetings, > > [net-next] [6.6-rc4] Build failure "net/core/gso_test.c" > > --- Traces --- > > make -j 33 -s && make modules_install && make install > net/core/gso_test.c:58:48: error: initializer element is not constant >    58 | .segs = (const

[powerpc] kernel BUG fs/xfs/xfs_message.c:102! [4k block]

2023-10-12 Thread Sachin Sant
While running xfstests on a IBM Power10 server having xfs file system with 4k block size following crash was seen [ 1609.771548] run fstests xfs/238 at 2023-10-11 17:00:40 [ 1609.971214] XFS (sdb1): Mounting V5 Filesystem 1105d60c-9514-4e7a-af6a-632d99bf06ea [ 1609.980693] XFS (sdb1): Ending

Re: [PATCH V2] tools/perf: Add perf binary dependent rule for shellcheck log in Makefile.perf

2023-10-12 Thread Athira Rajeev
> On 09-Oct-2023, at 10:38 AM, Namhyung Kim wrote: > > Hello, > > Sorry for the late reply. > > On Thu, Oct 5, 2023 at 8:27 AM Athira Rajeev > wrote: >> >> >> >>> On 29-Sep-2023, at 12:19 PM, Athira Rajeev >>> wrote: >>> >>> Add rule in new Makefile "tests/Makefile.tests" for running

Re: [PATCH v6 4/9] mm: thp: Introduce anon_orders and anon_always_mask sysfs files

2023-10-12 Thread David Hildenbrand
On 10.10.23 02:20, Andrew Morton wrote: On Sun, 08 Oct 2023 09:54:22 +1100 Michael Ellerman wrote: I don't know why powerpc's PTE_INDEX_SIZE is variable. To allow a single vmlinux to boot using either the Hashed Page Table MMU, or Radix Tree MMU, which have different page table geometry.

[Bisected] [1b4fa28a8b07] Build failure "net/core/gso_test.c"

2023-10-12 Thread Tasmiya Nalatwad
Greetings, [net-next] [6.6-rc4] Build failure "net/core/gso_test.c" --- Traces --- make -j 33 -s && make modules_install && make install net/core/gso_test.c:58:48: error: initializer element is not constant    58 | .segs = (const unsigned int[]) { gso_size },   |

Re: [PATCH mm-unstable v9 14/31] s390: Convert various pgalloc functions to use ptdescs

2023-10-12 Thread Heiko Carstens
On Mon, Aug 07, 2023 at 04:04:56PM -0700, Vishal Moola (Oracle) wrote: > As part of the conversions to replace pgtable constructor/destructors with > ptdesc equivalents, convert various page table functions to use ptdescs. > > Some of the functions use the *get*page*() helper functions. Convert >