Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Vlastimil Babka (SUSE)
On 6/6/24 1:41 AM, Yosry Ahmed wrote: > On Wed, Jun 5, 2024 at 4:04 PM Erhard Furtner wrote: > > I am personally leaning toward (c), but I want to hear the opinions of > other people here. Yu, Vlastimil, Johannes, Nhat? Anyone else? Besides the zpool commit which might have just pushed the machi

[PATCH 0/5] PCI: endpoint: Add EPC 'deinit' event and dw_pcie_ep_linkdown() API

2024-06-06 Thread Manivannan Sadhasivam
/pci-epf.h | 2 + 18 files changed, 162 insertions(+), 68 deletions(-) --- base-commit: 7d96527bc16e46545739c6fe0ab6e4c915e9910e change-id: 20240606-pci-deinit-2e6cdf1bd69f Best regards, -- Manivannan Sadhasivam

[PATCH 1/5] PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper

2024-06-06 Thread Manivannan Sadhasivam
Currently dw_pcie_ep_init_notify() wrapper just calls pci_epc_init_notify() directly. So this wrapper provides no benefit to the glue drivers. So let's remove it and call pci_epc_init_notify() directly from glue drivers. Suggested-by: Bjorn Helgaas Signed-off-by: Manivannan Sadhasivam --- driv

[PATCH 2/5] PCI: endpoint: Introduce 'epc_deinit' event and notify the EPF drivers

2024-06-06 Thread Manivannan Sadhasivam
As like the 'epc_init' event, that is used to signal the EPF drivers about the EPC initialization, let's introduce 'epc_deinit' event that is used to signal EPC deinitialization. The EPC deinitialization applies only when any sort of fundamental reset is supported by the endpoint controller as per

[PATCH 4/5] PCI: qcom-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event

2024-06-06 Thread Manivannan Sadhasivam
Now that the API is available, let's make use of it. It also handles the reinitialization of DWC non-sticky registers in addition to sending the notification to EPF drivers. Reviewed-by: Niklas Cassel Signed-off-by: Manivannan Sadhasivam --- drivers/pci/controller/dwc/pcie-qcom-ep.c | 2 +- 1 f

[PATCH 3/5] PCI: dwc: ep: Add a generic dw_pcie_ep_linkdown() API to handle Link Down event

2024-06-06 Thread Manivannan Sadhasivam
As per the PCIe base spec r5.0, section 5.2, Link Down event can happen under any of the following circumstances: 1. Fundamental/Hot reset 2. Link disable transmission by upstream component 3. Moving from L2/L3 to L0 In those cases, Link Down causes some non-sticky DWC registers to loose the stat

[PATCH 5/5] PCI: layerscape-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event

2024-06-06 Thread Manivannan Sadhasivam
Now that the API is available, let's make use of it. It also handles the reinitialization of DWC non-sticky registers in addition to sending the notification to EPF drivers. Reported-by: Bjorn Helgaas Closes: https://lore.kernel.org/linux-pci/20240528195539.GA458945@bhelgaas/ Signed-off-by: Maniv

Re: [PATCH 04/23] scsi: initialize scsi midlayer limits before allocating the queue

2024-06-06 Thread John Garry
diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c index 817838e2f70e..3cb455a32d92 100644 --- a/drivers/ata/pata_macio.c +++ b/drivers/ata/pata_macio.c @@ -915,10 +915,13 @@ static const struct scsi_host_template pata_macio_sht = { .sg_tablesize = MAX_DCMDS,

[PATCH] ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K

2024-06-06 Thread Michael Ellerman
The pata_macio driver advertises a max_segment_size of 0xff00, because the hardware doesn't cope with requests >= 64K. However the SCSI core requires max_segment_size to be at least PAGE_SIZE, which is a problem for pata_macio when the kernel is built with 64K pages. In older kernels the SCSI cor

Re: [PATCH 2/5] PCI: endpoint: Introduce 'epc_deinit' event and notify the EPF drivers

2024-06-06 Thread Siddharth Vadapalli
On Thu, Jun 06, 2024 at 12:56:35PM +0530, Manivannan Sadhasivam wrote: > As like the 'epc_init' event, that is used to signal the EPF drivers about > the EPC initialization, let's introduce 'epc_deinit' event that is used to > signal EPC deinitialization. > > The EPC deinitialization applies only

Re: [PATCH 3/5] PCI: dwc: ep: Add a generic dw_pcie_ep_linkdown() API to handle Link Down event

2024-06-06 Thread Siddharth Vadapalli
On Thu, Jun 06, 2024 at 12:56:36PM +0530, Manivannan Sadhasivam wrote: > As per the PCIe base spec r5.0, section 5.2, Link Down event can happen > under any of the following circumstances: > > 1. Fundamental/Hot reset > 2. Link disable transmission by upstream component > 3. Moving from L2/L3 to L

Re: [PATCH 1/5] PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper

2024-06-06 Thread Siddharth Vadapalli
On Thu, Jun 06, 2024 at 12:56:34PM +0530, Manivannan Sadhasivam wrote: > Currently dw_pcie_ep_init_notify() wrapper just calls pci_epc_init_notify() > directly. So this wrapper provides no benefit to the glue drivers. > > So let's remove it and call pci_epc_init_notify() directly from glue > drive

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Michael Ellerman
Yu Zhao writes: > On Wed, Jun 5, 2024 at 9:12 PM Michael Ellerman wrote: >> >> David Hildenbrand writes: >> > On 01.06.24 08:01, Yu Zhao wrote: >> >> On Wed, May 15, 2024 at 4:06 PM Yu Zhao wrote: >> ... >> >> >> >> Your system has 2GB memory and it uses zswap with zsmalloc (which is >> >> good

Re: [PATCH] ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K

2024-06-06 Thread Damien Le Moal
On 6/6/24 20:14, Michael Ellerman wrote: > The pata_macio driver advertises a max_segment_size of 0xff00, because > the hardware doesn't cope with requests >= 64K. > > However the SCSI core requires max_segment_size to be at least > PAGE_SIZE, which is a problem for pata_macio when the kernel is b

Re: [PATCH 04/23] scsi: initialize scsi midlayer limits before allocating the queue

2024-06-06 Thread Michael Ellerman
John Garry writes: >> diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c >> index 817838e2f70e..3cb455a32d92 100644 >> --- a/drivers/ata/pata_macio.c >> +++ b/drivers/ata/pata_macio.c >> @@ -915,10 +915,13 @@ static const struct scsi_host_template pata_macio_sht >> = { >> .sg_t

Re: [PATCH v2 0/2] Fix doorbell emulation for v2 API on PPC

2024-06-06 Thread Michael Ellerman
Gautam Menghani writes: > On Wed, Jun 05, 2024 at 05:09:08PM GMT, Gautam Menghani wrote: >> Doorbell emulation for KVM on PAPR guests is broken as support for DPDES >> was not added in initial patch series [1]. >> Add DPDES support and doorbell handling support for V2 API. >> >> [1] lore.kernel.

Re: [PATCH] ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K

2024-06-06 Thread Niklas Cassel
On Thu, Jun 06, 2024 at 09:14:45PM +1000, Michael Ellerman wrote: > The pata_macio driver advertises a max_segment_size of 0xff00, because > the hardware doesn't cope with requests >= 64K. > > However the SCSI core requires max_segment_size to be at least > PAGE_SIZE, which is a problem for pata_m

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Erhard Furtner
On Wed, 5 Jun 2024 16:58:11 -0700 Yosry Ahmed wrote: > On Wed, Jun 5, 2024 at 4:53 PM Yu Zhao wrote: > > > > On Wed, Jun 5, 2024 at 5:42 PM Yosry Ahmed wrote: > > > > > > On Wed, Jun 5, 2024 at 4:04 PM Erhard Furtner > > > wrote: > > > > > > > > On Tue, 4 Jun 2024 20:03:27 -0700 > > > > Y

[PATCH] powerpc: Fixed the bug of duplicate copying

2024-06-06 Thread Jinglin Wen
Fixed the issue where the kernel, when booting from address 0, had code incorrectly duplicated to address 0. Signed-off-by: Jinglin Wen --- arch/powerpc/kernel/head_64.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/hea

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Erhard Furtner
On Thu, 6 Jun 2024 09:24:56 +0200 "Vlastimil Babka (SUSE)" wrote: > Besides the zpool commit which might have just pushed the machine over the > edge, but it was probably close to it already. I've noticed a more general > problem that there are GFP_KERNEL allocations failing from kswapd. Those >

[Bug 218858] scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured

2024-06-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218858 --- Comment #24 from doru iorgulescu (doru.iorgules...@gmail.com) --- Created attachment 306427 --> https://bugzilla.kernel.org/attachment.cgi?id=306427&action=edit dmesg6100-rc2.txt -- You may reply to this email to add a comment. You are re

[Bug 218858] scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured

2024-06-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218858 --- Comment #25 from doru iorgulescu (doru.iorgules...@gmail.com) --- I finalized to compile linux kernel 6.10.0-rc2 uith the patch aplied and is OK! Thank You I have atached dmesg-6100-rc2.txt Thank You Very mutch Regards -- You may reply to th

Re: [PATCH v4 3/3] PCI/AER: Clear UNCOR_STATUS bits that might be ANFE

2024-06-06 Thread Jonathan Cameron
On Thu, 9 May 2024 16:48:33 +0800 Zhenzhong Duan wrote: > When processing an ANFE, ideally both correctable error(CE) status and > uncorrectable error(UE) status should be cleared. However, there is no > way to fully identify the UE associated with ANFE. Even worse, Non-Fatal > Error(NFE) may se

Re: [PATCH v4 1/3] PCI/AER: Store UNCOR_STATUS bits that might be ANFE in aer_err_info

2024-06-06 Thread Jonathan Cameron
On Thu, 9 May 2024 16:48:31 +0800 Zhenzhong Duan wrote: > In some cases the detector of a Non-Fatal Error(NFE) is not the most > appropriate agent to determine the type of the error. For example, > when software performs a configuration read from a non-existent > device or Function, completer wi

Re: [PATCH v4 2/3] PCI/AER: Print UNCOR_STATUS bits that might be ANFE

2024-06-06 Thread Jonathan Cameron
On Thu, 9 May 2024 16:48:32 +0800 Zhenzhong Duan wrote: > When an Advisory Non-Fatal error(ANFE) triggers, both correctable error(CE) > status and ANFE related uncorrectable error(UE) status will be printed: > > AER: Correctable error message received from :b7:02.0 > PCIe Bus Error: sev

[PATCH] watchdog/core: Fix AA deadlock due to watchdog holding cpu_hotplug_lock and wait for wq

2024-06-06 Thread Luo Gengkun
We found an AA deadlock problem as shown belowed: TaskA TaskB WatchDog system_wq ... css_killed_work_fn: P(cgroup_mutex) ... ...

Re: [PATCHv4 9/9] ASoC: dt-bindings: fsl-asoc-card: add compatible for generic codec

2024-06-06 Thread Elinor Montmasson
> From: "Mark Brown" > Sent: Friday, 31 May, 2024 18:06:30 > On Fri, May 31, 2024 at 10:48:14AM -0400, Elinor Montmasson wrote: >> From: "Mark Brown" > >> > Why not just use the existing compatible - why would someone not want to >> > be able to use the ASRC if it's available in their system? >

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Yosry Ahmed
On Thu, Jun 6, 2024 at 6:28 AM Erhard Furtner wrote: > > On Wed, 5 Jun 2024 16:58:11 -0700 > Yosry Ahmed wrote: > > > On Wed, Jun 5, 2024 at 4:53 PM Yu Zhao wrote: > > > > > > On Wed, Jun 5, 2024 at 5:42 PM Yosry Ahmed wrote: > > > > > > > > On Wed, Jun 5, 2024 at 4:04 PM Erhard Furtner > > >

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Vlastimil Babka (SUSE)
On 6/6/24 3:32 PM, Erhard Furtner wrote: > On Thu, 6 Jun 2024 09:24:56 +0200 > "Vlastimil Babka (SUSE)" wrote: > >> Besides the zpool commit which might have just pushed the machine over the >> edge, but it was probably close to it already. I've noticed a more general >> problem that there are GF

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Yosry Ahmed
On Thu, Jun 6, 2024 at 10:14 AM Takero Funaki wrote: > > 2024年6月6日(木) 8:42 Yosry Ahmed : > > > I think there are multiple ways to go forward here: > > (a) Make the number of zpools a config option, leave the default as > > 32, but allow special use cases to set it to 1 or similar. This is > > prob

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Yu Zhao
On Thu, Jun 6, 2024 at 11:42 AM Yosry Ahmed wrote: > > On Thu, Jun 6, 2024 at 10:14 AM Takero Funaki wrote: > > > > 2024年6月6日(木) 8:42 Yosry Ahmed : > > > > > I think there are multiple ways to go forward here: > > > (a) Make the number of zpools a config option, leave the default as > > > 32, but

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Yosry Ahmed
On Thu, Jun 6, 2024 at 10:55 AM Yu Zhao wrote: > > On Thu, Jun 6, 2024 at 11:42 AM Yosry Ahmed wrote: > > > > On Thu, Jun 6, 2024 at 10:14 AM Takero Funaki wrote: > > > > > > 2024年6月6日(木) 8:42 Yosry Ahmed : > > > > > > > I think there are multiple ways to go forward here: > > > > (a) Make the nu

Re: [PATCH 5/5] PCI: layerscape-ep: Use the generic dw_pcie_ep_linkdown() API to handle Link Down event

2024-06-06 Thread Frank Li
On Thu, Jun 06, 2024 at 12:56:38PM +0530, Manivannan Sadhasivam wrote: > Now that the API is available, let's make use of it. It also handles the > reinitialization of DWC non-sticky registers in addition to sending the > notification to EPF drivers. > > Reported-by: Bjorn Helgaas > Closes: https

Re: [PATCH 1/5] PCI: dwc: ep: Remove dw_pcie_ep_init_notify() wrapper

2024-06-06 Thread Frank Li
On Thu, Jun 06, 2024 at 12:56:34PM +0530, Manivannan Sadhasivam wrote: > Currently dw_pcie_ep_init_notify() wrapper just calls pci_epc_init_notify() > directly. So this wrapper provides no benefit to the glue drivers. > > So let's remove it and call pci_epc_init_notify() directly from glue > drive

Re: [PATCH 2/5] PCI: endpoint: Introduce 'epc_deinit' event and notify the EPF drivers

2024-06-06 Thread Frank Li
On Thu, Jun 06, 2024 at 12:56:35PM +0530, Manivannan Sadhasivam wrote: > As like the 'epc_init' event, that is used to signal the EPF drivers about > the EPC initialization, let's introduce 'epc_deinit' event that is used to > signal EPC deinitialization. > > The EPC deinitialization applies only

[Bug 218858] scsi_alloc_sdev: Allocation failure during SCSI scanning, some SCSI devices might not be configured

2024-06-06 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=218858 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|NEEDINFO|RESOLVED

Re: kswapd0: page allocation failure: order:0, mode:0x820(GFP_ATOMIC), nodemask=(null),cpuset=/,mems_allowed=0 (Kernel v6.5.9, 32bit ppc)

2024-06-06 Thread Takero Funaki
2024年6月6日(木) 8:42 Yosry Ahmed : > I think there are multiple ways to go forward here: > (a) Make the number of zpools a config option, leave the default as > 32, but allow special use cases to set it to 1 or similar. This is > probably not preferable because it is not clear to users how to set > i

Re: [PATCH] ata: pata_macio: Fix max_segment_size with PAGE_SIZE == 64K

2024-06-06 Thread Michael Ellerman
Niklas Cassel writes: > On Thu, Jun 06, 2024 at 09:14:45PM +1000, Michael Ellerman wrote: >> The pata_macio driver advertises a max_segment_size of 0xff00, because >> the hardware doesn't cope with requests >= 64K. >> >> However the SCSI core requires max_segment_size to be at least >> PAGE_SIZE,

[PATCH 1/3] tools/perf: Fix the nrcpus in perf bench futex to enable the run when all CPU's are not online

2024-06-06 Thread Athira Rajeev
Perf bench futex fails as below when attempted to run on on a powerpc system: ./perf bench futex all Running futex/hash benchmark... Run summary [PID 626307]: 80 threads, each operating on 1024 [private] futexes for 10 secs. perf: pthread_create: No such file or directory In the setup where t

[PATCH 2/3] tools/perf: Fix the nrcpus in perf bench futex to enable the run when all CPU's are not online

2024-06-06 Thread Athira Rajeev
Perf bench epoll fails as below when attempted to run on on a powerpc system: ./perf bench epoll wait Running 'epoll/wait' benchmark: Run summary [PID 627653]: 79 threads monitoring on 64 file-descriptors for 8 secs. perf: pthread_create: No such file or directory In the setup where

[PATCH 3/3] tools/perf: Fix timing issue with parallel threads in perf bench wake-up-parallel

2024-06-06 Thread Athira Rajeev
perf bench futex fails as below and hangs intermittently when attempted to run on on a powerpc system: ./perf bench futex wake-parallel Running 'futex/wake-parallel' benchmark: Run summary [PID 88588]: blocking on 640 threads (at [private] futex 0x10464b8c), 640 threads waking up 1 at a time.

[PATCH] powerpc: vdso: fix building with wrong-endian toolchain

2024-06-06 Thread Arnd Bergmann
From: Arnd Bergmann Building powerpc64le kernels with the kernel.org crosstool toolchains no longer works as the linker attempts to build a big-endian vdso: powerpc-linux/lib/gcc/powerpc-linux/12.3.0/../../../../powerpc-linux/bin/ld: arch/powerpc/kernel/vdso/sigtramp32-32.o: compiled for a litt