Re: [PATCH] PCI/AER: Continue AER recovery of device with NO_BUS_RESET set

2021-08-21 Thread Shanker R Donthineni
On 8/21/21 8:30 AM, Shanker Donthineni wrote: > External email: Use caution opening links or attachments > > > In the current implementation, the AER FATAL and NONFTAL recovery will be > terminated for the device that exhibits NO_BUS_RESET quirk. The non-zero Correction, this problem happens on

[PATCH] PCI/AER: Continue AER recovery of device with NO_BUS_RESET set

2021-08-21 Thread Shanker Donthineni
In the current implementation, the AER FATAL and NONFTAL recovery will be terminated for the device that exhibits NO_BUS_RESET quirk. The non-zero return value from pci_bus_error_reset() is treated as an error condition in aer_root_reset() which leads to return PCI_ERS_RESULT_DISCONNECT. aer_rec

[GIT PULL] Please pull powerpc/linux.git powerpc-5.14-6 tag

2021-08-21 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.14: The following changes since commit cbc06f051c524dcfe52ef0d1f30647828e226d30: powerpc/xive: Do not skip CPU-less nodes when creating the IPIs (2021-08-12 22:31:41 +1000) are available in t

[PATCH] powerpc/512x: Fix an error handling path in 'mpc512x_lpbfifo_kick()'

2021-08-21 Thread Christophe JAILLET
At this point 'dma_map_single()' has not been called yet, so there is no point in branching in the error handling path to undo it. Use a direct return instead. Fixes: 1a4bb93f7955 ("powerpc/512x: add LocalPlus Bus FIFO device driver") Signed-off-by: Christophe JAILLET --- This patch is speculati

[PATCH v2 3/3] powerpc/numa: Fill distance_lookup_table for offline nodes

2021-08-21 Thread Srikar Dronamraju
Scheduler expects unique number of node distances to be available at boot. It uses node distance to calculate this unique node distances. On POWER, node distances for offline nodes is not available. However, POWER already knows unique possible node distances. Fake the offline node's distance_lookup

[PATCH v2 2/3] powerpc/numa: Update cpu_cpu_map on CPU online/offline

2021-08-21 Thread Srikar Dronamraju
cpu_cpu_map holds all the CPUs in the DIE. However in PowerPC, when onlining/offlining of CPUs, this mask doesn't get updated. This mask is however updated when CPUs are added/removed. So when both operations like online/offline of CPUs and adding/removing of CPUs are done simultaneously, then cpu

[PATCH v2 1/3] powerpc/numa: Print debug statements only when required

2021-08-21 Thread Srikar Dronamraju
Currently, a debug message gets printed every time an attempt to add(remove) a CPU. However this is redundant if the CPU is already added (removed) from the node. Cc: linuxppc-dev@lists.ozlabs.org Cc: Nathan Lynch Cc: Michael Ellerman Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Valentin Schneider

[PATCH v2 0/3] Updates to powerpc for robust CPU online/offline

2021-08-21 Thread Srikar Dronamraju
Scheduler expects unique number of node distances to be available at boot. It uses node distance to calculate this unique node distances. On Power Servers, node distances for offline nodes is not available. However, Power Servers already knows unique possible node distances. Fake the offline node's

[PATCH 3/3] powerpc/smp: Enable CACHE domain for shared processor

2021-08-21 Thread Srikar Dronamraju
Currently CACHE domain is not enabled on shared processor mode PowerVM LPARS. On PowerVM systems, 'ibm,thread-group' device-tree property 2 under cpu-device-node indicates which all CPUs share L2-cache. However 'ibm,thread-group' device-tree property 2 is a relatively new property. In absence of 'i

[PATCH 2/3] powerpc/smp: Update cpu_core_map on PowerVM lpars.

2021-08-21 Thread Srikar Dronamraju
lscpu() uses core_siblings to list the number of sockets in the system. core_siblings is set using topology_core_cpumask. While optimizing the powerpc bootup path, Commit 4ca234a9cbd7 ("powerpc/smp: Stop updating cpu_core_mask"). it was found that updating cpu_core_mask() ended up taking a lot of

[PATCH 1/3] powerpc/smp: Fix a crash while booting kvm guest with nr_cpus=2

2021-08-21 Thread Srikar Dronamraju
Aneesh reported a crash with a fairly recent upstream kernel when booting kernel whose commandline was appended with nr_cpus=2 1:mon> e cpu 0x1: Vector: 300 (Data Access) at [c8a67bd0] pc: c002557c: cpu_to_chip_id+0x3c/0x100 lr: c0058380: start_secondary+0x460/0xb00

[PATCH 0/3] powerpc/smp: Misc fixes

2021-08-21 Thread Srikar Dronamraju
The 1st patch fixes a regression which causes a crash when booted with nr_cpus=2. The 2nd patch fixes a regression where lscpu on PowerVM reports more number of sockets that that are available. The 3rd patch updates the fallback when L2-cache properties are not explicitly exposed to be the cpu_si