[PATCH net-next v2 07/10] net: freescale: ucc_geth: Hardcode the preamble length to 7 bytes

2024-11-14 Thread Maxime Chevallier
The preamble length can be configured in ucc_geth, however it just ends-up always being configured to 7 bytes, as nothing ever changes the default value of 7. Make that value the default value when the MACCFG2 register gets initialized, and remove the code to configure that value altogether. Revi

[PATCH net-next v2 00/10] net: freescale: ucc_geth: Phylink conversion

2024-11-14 Thread Maxime Chevallier
Hello everyone, This is V2 of the ucc_geth phylink conversion. There were two main reviews from the first iteration : - The WoL configuration was not accounting for most of the WoL flags. The Wol config was reworked (however, not tested unfortunately) to better account for what the PHY an

Re: [RFC PATCH 08/10] macintosh: Remove ADB_MACIO

2024-11-14 Thread Geert Uytterhoeven
On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > The macio-adb driver depends on PPC_CHRP, which has been removed, remove > the driver also. > > Signed-off-by: Michael Ellerman Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- Th

[PATCH] MAINTAINERS: powerpc: Mark Maddy as "M"

2024-11-14 Thread Michael Ellerman
Mark Maddy as a co-maintainer, so that he can get a kernel.org account and help manage the powerpc tree on kernel.org. Signed-off-by: Michael Ellerman --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 21fdaa19229a..4fdb9759f37d 10

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-14 Thread Shrikanth Hegde
On 11/14/24 07:31, Michael Ellerman wrote: Shrikanth Hegde writes: Thank you Sebastian for taking a look and rwb tag. On 2024-11-08 15:48:53 [+0530], Shrikanth Hegde wrote: Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler ca

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-14 Thread Shrikanth Hegde
On 11/9/24 22:24, Shrikanth Hegde wrote: On 11/9/24 00:36, Ankur Arora wrote: Shrikanth Hegde writes: Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. Since Powerpc doesn't use the generic entry/exi

Re: [RFC PATCH 01/20] powerpc/cell: Remove support for IBM Cell Blades

2024-11-14 Thread Jeremy Kerr
Hi Michael, > IBM Cell Blades used the Cell processor and the "blade" server form > factor. They were sold as models QS20, QS21 & QS22 from roughly 2006 to > 2012 [1]. They were used in a few supercomputers (eg. Roadrunner) that > have since been dismantled, and were not that widely used otherwise

Re: [PATCH] dt-bindings: Unify "fsl,liodn" type definitions

2024-11-14 Thread Conor Dooley
On Wed, Nov 13, 2024 at 04:56:13PM -0600, Rob Herring (Arm) wrote: > The type definition of "fsl,liodn" is defined as uint32 in > crypto/fsl,sec-v4.0.yaml and uint32-array in soc/fsl/fsl,bman.yaml, > soc/fsl/fsl,qman-portal.yaml, and soc/fsl/fsl,qman.yaml. Unify the type to > be uint32-array and co

Re: [RFC PATCH 01/10] powerpc/chrp: Remove CHRP support

2024-11-14 Thread Segher Boessenkool
On Fri, Nov 15, 2024 at 12:11:04AM +1100, Michael Ellerman wrote: > CHRP (Common Hardware Reference Platform) was a standard developed by > IBM & Apple for PowerPC-based systems. > > The standard was used in the development of some machines but never > gained wide spread adoption. > > The Linux C

Re: [PATCH V2] tools/perf/tests/shell/base_probe: Enhance print_overall_results to print summary information

2024-11-14 Thread Michael Petlan
On Mon, 4 Nov 2024, Athira Rajeev wrote: > Currently print_overall_results prints the number of > fails in the summary, example from base_probe tests in > testsuite_probe: > > ## [ FAIL ] ## perf_probe :: test_invalid_options SUMMARY :: > 11 failures found > > test_invalid_options contains

Re: [PATCH] tools/perf/tests/base_probe: Fix check for the count of existing probes in test_adding_kernel

2024-11-14 Thread Michael Petlan
On Sun, 3 Nov 2024, Athira Rajeev wrote: > > On 17 Oct 2024, at 3:44 PM, Michael Petlan wrote: > > > > On Mon, 14 Oct 2024, Athira Rajeev wrote: [...] > > > > I am wondering how it could happen that there were other > > probes in the system? > > Hi Michael, > Hello Athira. > Sorry for the late

Re: [PATCH -next v2] soc/fsl/qbman: make use of the helper function kthread_run_on_cpu()

2024-11-14 Thread Frederic Weisbecker
Le Thu, Nov 14, 2024 at 08:38:59AM +0100, Christophe Leroy a écrit : > Hi, > > Le 04/09/2024 à 04:26, Hongbo Li a écrit : > > Replace kthread_create/kthread_bind/wake_up_process() with > > kthread_run_on_cpu() to simplify the code. > > > > Signed-off-by: Hongbo Li > > A similar change is propos

[RFC PATCH 13/20] powerpc/io: Remove unnecessary indirection

2024-11-14 Thread Michael Ellerman
Some of the __do_xxx() defines do nothing useful, they just existed to make the previous hooking macros work. So remove them. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/io.h | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/arch/powerpc/

[RFC PATCH 17/20] net: spider_net: Remove powerpc Cell driver

2024-11-14 Thread Michael Ellerman
This driver can no longer be built since support for IBM Cell Blades was removed, in particular PPC_IBM_CELL_BLADE. Remove the driver and the documentation. Remove the MAINTAINERS entry, and add Ishizaki and Geoff to CREDITS. Signed-off-by: Michael Ellerman --- CREDITS

[RFC PATCH 04/20] powerpc: Remove IBM_CELL_BLADE & SPIDER_NET references

2024-11-14 Thread Michael Ellerman
The symbols are no longer selectable so remove references to them. Signed-off-by: Michael Ellerman --- arch/powerpc/boot/Makefile | 2 -- arch/powerpc/configs/cell_defconfig | 2 -- arch/powerpc/configs/ppc64_defconfig | 2 -- 3 files changed, 6 deletions(-) diff --git a/arch/powerpc

Re: [PATCH v2] of: WARN on deprecated #address-cells/#size-cells handling

2024-11-14 Thread Segher Boessenkool
On Thu, Nov 07, 2024 at 10:35:58PM +1100, Michael Ellerman wrote: > "Rob Herring (Arm)" writes: > > While OpenFirmware originally allowed walking parent nodes and default > > root values for #address-cells and #size-cells, FDT has long required > > explicit values. It's been a warning in dtc for t

[RFC PATCH 15/20] cpufreq: ppc_cbe: Remove powerpc Cell driver

2024-11-14 Thread Michael Ellerman
This driver can no longer be built since support for IBM Cell Blades was removed, in particular CBE_RAS. Remove the driver. Signed-off-by: Michael Ellerman --- drivers/cpufreq/Kconfig.powerpc | 18 -- drivers/cpufreq/Makefile| 3 - drivers/cpufreq/ppc_cbe_cpuf

[RFC PATCH 03/20] powerpc: Remove PPC_PMI and driver

2024-11-14 Thread Michael Ellerman
CONFIG_PPC_PMI is no longer selectable now that PPC_IBM_CELL_BLADE has been removed, via the dependency on PPC_IBM_CELL_POWERBUTTON. So remove it and the driver, and the pmi.h header which it was the only user of. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/pmi.h | 53 ---

[RFC PATCH 11/20] powerpc/io: Remove PCI_FIX_ADDR

2024-11-14 Thread Michael Ellerman
Now that PPC_INDIRECT_MMIO is removed, PCI_FIX_ADDR does nothing, so remove it. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/io.h | 86 +-- arch/powerpc/mm/ioremap_64.c | 2 +- 2 files changed, 43 insertions(+), 45 deletions(-) diff --git a/arch

[RFC PATCH 01/10] powerpc/chrp: Remove CHRP support

2024-11-14 Thread Michael Ellerman
CHRP (Common Hardware Reference Platform) was a standard developed by IBM & Apple for PowerPC-based systems. The standard was used in the development of some machines but never gained wide spread adoption. The Linux CHRP code only supports a handful of machines, all 32-bit, eg. IBM B50, bplan/Gen

[RFC PATCH 09/10] i2c: Remove I2C_HYDRA

2024-11-14 Thread Michael Ellerman
The i2c-hydra driver depends on PPC_CHRP which has now been removed, remove the driver also. Signed-off-by: Michael Ellerman --- drivers/i2c/busses/Kconfig | 12 --- drivers/i2c/busses/Makefile| 1 - drivers/i2c/busses/i2c-hydra.c | 150 - 3 files chang

[RFC PATCH 10/10] i2c: Drop reference to PPC_CHRP

2024-11-14 Thread Michael Ellerman
PPC_CHRP has been removed, so remove the reference to it in Kconfig. Signed-off-by: Michael Ellerman --- drivers/i2c/busses/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index cbd072955e45..153929ac5f59 100644

[RFC PATCH 03/10] powerpc/chrp: Remove PPC_CHRP from defconfigs

2024-11-14 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- arch/powerpc/configs/52xx/cm5200_defconfig| 1 - arch/powerpc/configs/52xx/lite5200b_defconfig | 1 - arch/powerpc/configs/52xx/motionpro_defconfig | 1 - arch/powerpc/configs/52xx/pcm030_defconfig| 1 - arch/powerpc/configs/52xx/tqm5200

[RFC PATCH 08/10] macintosh: Remove ADB_MACIO

2024-11-14 Thread Michael Ellerman
The macio-adb driver depends on PPC_CHRP, which has been removed, remove the driver also. Signed-off-by: Michael Ellerman --- drivers/macintosh/Kconfig | 9 -- drivers/macintosh/Makefile| 1 - drivers/macintosh/adb.c | 4 - drivers/macintosh/macio-adb.c | 288

[RFC PATCH 07/10] powerpc: Remove CONFIG_ISA

2024-11-14 Thread Michael Ellerman
ISA support depended on PPC_CHRP which has now been removed, making ISA unselectable, so remove it. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 11 --- arch/powerpc/configs/chrp32_defconfig | 1 - arch/powerpc/configs/ppc6xx_defconfig | 1 - 3 files chan

[RFC PATCH 02/10] powerpc/chrp: Remove various dead code

2024-11-14 Thread Michael Ellerman
Remove various bits of code that are dead now that PPC_CHRP has been removed. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 5 +-- arch/powerpc/boot/Makefile | 1 - arch/powerpc/include/asm/processor.h | 6 --- arch/powerpc/kernel/head_book3s_32.S | 12 -

[RFC PATCH 06/10] powerpc: Remove prom_init longtrail work arounds

2024-11-14 Thread Michael Ellerman
Although these work arounds aren't guarded by PPC_CHRP, they should only ever have taken effect on CHRP Long Trail machines due to the firmware version check. With CHRP support removed they are no longer needed, remove them. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/prom_init.c | 6

[RFC PATCH 04/10] powerpc/powermac: Remove machine_is(chrp) test

2024-11-14 Thread Michael Ellerman
Now that the chrp machine has been removed this test can never be true, remove it. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/powermac/nvram.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/powerpc/platforms/powermac/nvram.c b/arch/powerpc/platfo

[RFC PATCH 14/20] powerpc: Remove UDBG_RTAS_CONSOLE

2024-11-14 Thread Michael Ellerman
The IBM Cell blade support was the last user of UDBG_RTAS_CONSOLE. Although it's still possible to build it via PPC_EARLY_DEBUG_UDBG_RTAS_CONSOLE, AFAIK it's not useful on any other platfoms, because only Cell and JS20 era machines provided the RTAS get/put-term-char functions. If anyone is using

Re: [RFC PATCH 09/10] i2c: Remove I2C_HYDRA

2024-11-14 Thread Geert Uytterhoeven
Hi Michael, On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > The i2c-hydra driver depends on PPC_CHRP which has now been removed, > remove the driver also. > > Signed-off-by: Michael Ellerman Thanks for your patch! > --- a/drivers/i2c/busses/i2c-hydra.c > +++ /dev/null > -#include

Re: [RFC PATCH 10/20] powerpc/io: Remove PPC_INDIRECT_MMIO

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 13:50, Michael Ellerman wrote: > The Cell blade support was the last user of PPC_INDIRECT_MMIO, so it can > now be removed. > > PPC_INDIRECT_PIO is still used by Power8 powernv, so it needs to remain. > > Signed-off-by: Michael Ellerman I think the powernv side only uses

Re: [RFC PATCH 17/20] net: spider_net: Remove powerpc Cell driver

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 13:51, Michael Ellerman wrote: > This driver can no longer be built since support for IBM Cell Blades was > removed, in particular PPC_IBM_CELL_BLADE. > > Remove the driver and the documentation. > Remove the MAINTAINERS entry, and add Ishizaki and Geoff to CREDITS. > > Sig

Re: [RFC PATCH 11/20] powerpc/io: Remove PCI_FIX_ADDR

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 13:51, Michael Ellerman wrote: > Now that PPC_INDIRECT_MMIO is removed, PCI_FIX_ADDR does nothing, so > remove it. > > Signed-off-by: Michael Ellerman Acked-by: Arnd Bergmann > static inline unsigned char __raw_readb(const volatile void __iomem *addr) > { > - ret

Re: [RFC PATCH 09/10] i2c: Remove I2C_HYDRA

2024-11-14 Thread Wolfram Sang
On Thu, Nov 14, 2024 at 03:37:15PM +0100, Geert Uytterhoeven wrote: > CC linux-i2c > > On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > > The i2c-hydra driver depends on PPC_CHRP which has now been removed, > > remove the driver also. > > > > Signed-off-by: Michael Ellerman > > Acked-b

[PATCH 1/4] powerpc/perf: Add perf interface to expose vpa counters

2024-11-14 Thread Kajol Jain
To support performance measurement for KVM on PowerVM(KoP) feature, PowerVM hypervisor has added couple of new software counters in Virtual Process Area(VPA) of the partition. Commit e1f288d2f9c69 ("KVM: PPC: Book3S HV nestedv2: Add support for reading VPA counters for pseries guests") have update

[PATCH 4/4] powerpc/perf: Add per-task/process monitoring to vpa_pmu driver

2024-11-14 Thread Kajol Jain
Enhance the vpa_pmu driver with a feature to observe context switch latency event for both per-task (tid) and per-pid (pid) option. Couple of new helper functions are added to hide the abstraction of reading the context switch latency counter from kvm_vcpu_arch struct and these helper functions are

[PATCH 2/4] docs: ABI: sysfs-bus-event_source-devices-vpa-pmu: Document sysfs event format entries for vpa_pmu

2024-11-14 Thread Kajol Jain
Details are added for the vpa_pmu event and format attributes in the ABI documentation. Signed-off-by: Kajol Jain Co-developed-by: Madhavan Srinivasan Signed-off-by: Madhavan Srinivasan --- .../sysfs-bus-event_source-devices-vpa-pmu| 24 +++ 1 file changed, 24 insertions(+)

[PATCH 3/4] powerpc/kvm: Add vpa latency counters to kvm_vcpu_arch

2024-11-14 Thread Kajol Jain
Commit e1f288d2f9c69 ("KVM: PPC: Book3S HV nestedv2: Add support for reading VPA counters for pseries guests") introduced support for new Virtual Process Area(VPA) based software counters. These counters are useful when observing context switch latency of L1 <-> L2. It also added access to counters

[PATCH v2] powerpc/kvm: Fix typo in the kvm functions

2024-11-14 Thread Kajol Jain
Fix typo in the following kvm function names from: kmvhv_counters_tracepoint_regfunc -> kvmhv_counters_tracepoint_regfunc kmvhv_counters_tracepoint_unregfunc -> kvmhv_counters_tracepoint_unregfunc Fixes: e1f288d2f9c6 ("KVM: PPC: Book3S HV nestedv2: Add support for reading VPA counters for pserie

Re: [RFC PATCH 13/20] powerpc/io: Remove unnecessary indirection

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 13:51, Michael Ellerman wrote: > Some of the __do_xxx() defines do nothing useful, they just existed to > make the previous hooking macros work. So remove them. > > Signed-off-by: Michael Ellerman Reviewed-by: Arnd Bergmann > @@ -607,27 +600,27 @@ static inline u32 read

Re: [RFC PATCH 01/20] powerpc/cell: Remove support for IBM Cell Blades

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 13:50, Michael Ellerman wrote: > IBM Cell Blades used the Cell processor and the "blade" server form > factor. They were sold as models QS20, QS21 & QS22 from roughly 2006 to > 2012 [1]. They were used in a few supercomputers (eg. Roadrunner) that > have since been dismantl

Re: [RFC PATCH 08/10] macintosh: Remove ADB_MACIO

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 14:11, Michael Ellerman wrote: > > -config ADB_MACIO > - bool "Include MacIO (CHRP) ADB driver" > - depends on ADB && PPC_CHRP && !PPC_PMAC64 The dependency looked weird to me, so I had to look up what that thing is. Apparently this originally had a PPC_PMAC depen

Re: [RFC PATCH 01/10] powerpc/chrp: Remove CHRP support

2024-11-14 Thread Arnd Bergmann
On Thu, Nov 14, 2024, at 15:31, Geert Uytterhoeven wrote: > On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: >> CHRP (Common Hardware Reference Platform) was a standard developed by >> IBM & Apple for PowerPC-based systems. >> >> The standard was used in the development of some machines but

[PATCH net-next v2 09/10] net: freescale: ucc_geth: Introduce a helper to check Reduced modes

2024-11-14 Thread Maxime Chevallier
A number of parallel MII interfaces also exist in a "Reduced" mode, usually with higher clock rates and fewer data lines, to ease the hardware design. This is what the 'R' stands for in RGMII, RMII, RTBI, RXAUI, etc. The UCC Geth controller has a special configuration bit that needs to be set when

[PATCH net-next v2 04/10] net: freescale: ucc_geth: Fix WOL configuration

2024-11-14 Thread Maxime Chevallier
The get/set_wol ethtool ops rely on querying the PHY for its WoL capabilities, checking for the presence of a PHY and a PHY interrupts isn't enough. Address that by cleaning up the WoL configuration sequence. Signed-off-by: Maxime Chevallier --- V2: Reworked the whole configuration sequence, and

[PATCH net-next v2 01/10] net: freescale: ucc_geth: Drop support for the "interface" DT property

2024-11-14 Thread Maxime Chevallier
In april 2007, ucc_geth was converted to phylib with : commit 728de4c927a3 ("ucc_geth: migrate ucc_geth to phylib"). In that commit, the device-tree property "interface", that could be used to retrieve the PHY interface mode was deprecated. DTS files that still used that property were converted

[PATCH v9 4/4] arm64: Kconfig: Enable HOTPLUG_SMT

2024-11-14 Thread Yicong Yang
From: Yicong Yang Enable HOTPLUG_SMT for SMT control. Signed-off-by: Yicong Yang --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 70d7f4f20225..5eecd2e2c093 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -243,

Re: [RFC PATCH 09/10] i2c: Remove I2C_HYDRA

2024-11-14 Thread Geert Uytterhoeven
CC linux-i2c On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > The i2c-hydra driver depends on PPC_CHRP which has now been removed, > remove the driver also. > > Signed-off-by: Michael Ellerman Acked-by: Geert Uytterhoeven > --- > drivers/i2c/busses/Kconfig | 12 --- > drivers/i

[PATCH net-next v2 03/10] net: freescale: ucc_geth: Use netdev->phydev to access the PHY

2024-11-14 Thread Maxime Chevallier
As this driver pre-dates phylib, it uses a private pointer to get a reference to the attached phy_device. Drop that pointer and use the netdev's pointer instead. Reviewed-by: Andrew Lunn Signed-off-by: Maxime Chevallier --- V2: No changes drivers/net/ethernet/freescale/ucc_geth.c | 27

[PATCH net-next v2 06/10] net: freescale: ucc_geth: Simplify frame length check

2024-11-14 Thread Maxime Chevallier
The frame length check is configured when the phy interface is setup. However, it's configured according to an internal flag that is always false. So, just make so that we disable the relevant bit in the MACCFG2 register upon accessing it for other MAC configuration operations. Reviewed-by: Andrew

[PATCH net-next v2 08/10] net: freescale: ucc_geth: Move the serdes configuration around

2024-11-14 Thread Maxime Chevallier
The uec_configure_serdes() function deals with serialized linkmodes settings. It's used during the link bringup sequence. It is planned to be used during the phylink conversion for mac configuration, but it needs to me moved around in the process. To make the phylink port clearer, this commit moves

[PATCH net-next v2 10/10] net: freescale: ucc_geth: phylink conversion

2024-11-14 Thread Maxime Chevallier
ucc_geth is quite capable in terms of supported interfaces, and even includes an externally controlled PCS (well, TBI). Port that driver to phylink. Signed-off-by: Maxime Chevallier --- V2: Adjust the WoL sequence, split-out a few things from patches 8/9 drivers/net/ethernet/freescale/Kconfig

[PATCH net-next v2 02/10] net: freescale: ucc_geth: split adjust_link for phylink conversion

2024-11-14 Thread Maxime Chevallier
Preparing the phylink conversion, split the adjust_link callbaclk, by clearly separating the mac configuration, link_up and link_down phases. Reviewed-by: Andrew Lunn Signed-off-by: Maxime Chevallier --- V2: No changes. Russell, I did see your comment with regards to the overall usefulness of t

[PATCH net-next v2 05/10] net: freescale: ucc_geth: Use the correct type to store WoL opts

2024-11-14 Thread Maxime Chevallier
The WoL opts are represented through a bitmask stored in a u32. As this mask is copied as-is in the driver, make sure we use the exact same type to store them internally. Signed-off-by: Maxime Chevallier --- V2: New patch drivers/net/ethernet/freescale/ucc_geth.h | 2 +- 1 file changed, 1 inser

Re: [RFC PATCH 08/10] macintosh: Remove ADB_MACIO

2024-11-14 Thread Geert Uytterhoeven
Hi Arnd, On Thu, Nov 14, 2024 at 4:42 PM Arnd Bergmann wrote: > I also found the promotional video from 1996 at > https://www.youtube.com/watch?v=NrvrIEPeSNA . Amazing to finally see this, 20y after mine died... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There'

[RFC PATCH 08/20] powerpc: Remove PPC_OF_PLATFORM_PCI

2024-11-14 Thread Michael Ellerman
The Cell blade support was the last user of PPC_OF_PLATFORM_PCI, so remove it. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig | 5 -- arch/powerpc/kernel/Makefile | 2 +- arch/powerpc/kernel/of_platform.c | 102 -- 3 files changed, 1 in

[RFC PATCH 02/20] powerpc: Remove some Cell leftovers

2024-11-14 Thread Michael Ellerman
Now that CONFIG_PPC_CELL_NATIVE is removed, iommu_fixed_is_weak will always be false, so remove it entirely. Also remove a hack/quirk in the HTAB code that was only used on Cell. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/iommu.h | 6 -- arch/powerpc/kernel/dma-iommu

[RFC PATCH 05/20] powerpc/cell: Remove CBE_CPUFREQ_SPU_GOVERNOR

2024-11-14 Thread Michael Ellerman
Although this driver is still buildable, it can't actually do anything in practice now that the low-level cpufreq driver for Cell has been disabled due to the removal of CBE_RAS. Signed-off-by: Michael Ellerman --- arch/powerpc/platforms/cell/Kconfig | 9 -- arch/powerpc/platforms/ce

[RFC PATCH 10/20] powerpc/io: Remove PPC_INDIRECT_MMIO

2024-11-14 Thread Michael Ellerman
The Cell blade support was the last user of PPC_INDIRECT_MMIO, so it can now be removed. PPC_INDIRECT_PIO is still used by Power8 powernv, so it needs to remain. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/io.h | 58 +++--- arch/powerpc/kernel/setup

[RFC PATCH 06/20] powerpc/xmon: Remove SPU debug and disassembly

2024-11-14 Thread Michael Ellerman
Now that the IBM Cell Blade support is removed, the xmon SPU support is effectively unusable. That is because PS3 doesn't implement udbg_getc which is required to send input to xmon. So remove the xmon SPU support. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/xmon.h| 2

[RFC PATCH 18/20] net: toshiba: Remove reference to PPC_IBM_CELL_BLADE

2024-11-14 Thread Michael Ellerman
Remove a reference to PPC_IBM_CELL_BLADE which has been removed. Signed-off-by: Michael Ellerman --- drivers/net/ethernet/toshiba/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/toshiba/Kconfig b/drivers/net/ethernet/toshiba/Kconfig index 2b10815

[RFC PATCH 16/20] EDAC/cell: Remove powerpc Cell driver

2024-11-14 Thread Michael Ellerman
This driver can no longer be built since support for IBM Cell Blades was removed, in particular PPC_CELL_COMMON. Remove the driver. Signed-off-by: Michael Ellerman --- drivers/edac/Kconfig | 8 -- drivers/edac/Makefile| 1 - drivers/edac/cell_edac.c | 281 ---

[RFC PATCH 09/20] powerpc/io: Remove PPC_IO_WORKAROUNDS

2024-11-14 Thread Michael Ellerman
The Cell blade support was the last user of PPC_IO_WORKAROUNDS, so they can now be removed. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/io-workarounds.h | 55 -- arch/powerpc/kernel/Makefile | 2 - arch/powerpc/kernel/io-workarounds.c | 197 -

[RFC PATCH 07/20] powerpc: Remove DCR_MMIO and the DCR generic layer

2024-11-14 Thread Michael Ellerman
The Cell blade support was the last user of DCR_MMIO, so it can now be removed. That only leaves DCR_NATIVE, meaning the DCR generic layer which allows using either DCR_NATIVE or DCR_MMIO is also unnecessary, remove it too. Signed-off-by: Michael Ellerman --- arch/powerpc/Kconfig

[RFC PATCH 20/20] genirq: Remove IRQ_EDGE_EOI_HANDLER

2024-11-14 Thread Michael Ellerman
The powerpc Cell blade support, now removed, was the only user of IRQ_EDGE_EOI_HANDLER, so remove it. Signed-off-by: Michael Ellerman --- kernel/irq/Kconfig | 4 kernel/irq/chip.c | 47 -- 2 files changed, 51 deletions(-) diff --git a/kernel/ir

[RFC PATCH 19/20] docs: Remove reference to removed CBE_CPUFREQ_SPU_GOVERNOR

2024-11-14 Thread Michael Ellerman
Remove a reference to CBE_CPUFREQ_SPU_GOVERNOR which has been removed. Signed-off-by: Michael Ellerman --- Documentation/admin-guide/kernel-per-CPU-kthreads.rst | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Documentation/admin-guide/kernel-per-CPU-kthreads.rst b/Docu

[RFC PATCH 05/10] powerpc/rtasd: Remove machine_is(chrp) tests

2024-11-14 Thread Michael Ellerman
Now that the chrp machine has been removed these tests can never be true, remove them. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/rtasd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c index 9bba46923

[RFC PATCH 12/20] powerpc/io: Unhook MMIO accessors

2024-11-14 Thread Michael Ellerman
Now that PPC_INDIRECT_MMIO is removed, it's not possible/necessary to hook any of the "memory" accessors, so turn them back into regular static inlines, and restrict the hooking mechanism to the "pio" accessors only. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/io-defs.h | 70 ++

[PATCH v9 0/4] Support SMT control on arm64

2024-11-14 Thread Yicong Yang
From: Yicong Yang The core CPU control framework supports runtime SMT control which is not yet supported on arm64. Besides the general vulnerabilities concerns we want this runtime control on our arm64 server for: - better single CPU performance in some cases - saving overall power consumption

[PATCH v9 2/4] arch_topology: Support SMT control for OF based system

2024-11-14 Thread Yicong Yang
From: Yicong Yang On building the topology from the devicetree, we've already gotten the SMT thread number of each core. Update the largest SMT thread number and enable the SMT control by the end of topology parsing. The core's SMT control provides two interface to the users [1]: 1) enable/disab

[PATCH v9 3/4] arm64: topology: Support SMT control on ACPI based system

2024-11-14 Thread Yicong Yang
From: Yicong Yang For ACPI we'll build the topology from PPTT and we cannot directly get the SMT number of each core. Instead using a temporary xarray to record the heterogeneous information (from ACPI_PPTT_ACPI_IDENTICAL) and SMT information of the first core in its heterogeneous CPU cluster whe

[PATCH v9 1/4] cpu/SMT: Provide a default topology_is_primary_thread()

2024-11-14 Thread Yicong Yang
From: Yicong Yang Currently if architectures want to support HOTPLUG_SMT they need to provide a topology_is_primary_thread() telling the framework which thread in the SMT cannot offline. However arm64 doesn't have a restriction on which thread in the SMT cannot offline, a simplest choice is that

Re: [RFC PATCH 01/10] powerpc/chrp: Remove CHRP support

2024-11-14 Thread Geert Uytterhoeven
On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > CHRP (Common Hardware Reference Platform) was a standard developed by > IBM & Apple for PowerPC-based systems. > > The standard was used in the development of some machines but never > gained wide spread adoption. > > The Linux CHRP code on

Re: [RFC PATCH 06/10] powerpc: Remove prom_init longtrail work arounds

2024-11-14 Thread Geert Uytterhoeven
On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > Although these work arounds aren't guarded by PPC_CHRP, they should only > ever have taken effect on CHRP Long Trail machines due to the firmware > version check. With CHRP support removed they are no longer needed, > remove them. > > Signe

Re: [RFC PATCH 07/10] powerpc: Remove CONFIG_ISA

2024-11-14 Thread Geert Uytterhoeven
On Thu, Nov 14, 2024 at 2:11 PM Michael Ellerman wrote: > ISA support depended on PPC_CHRP which has now been removed, making > ISA unselectable, so remove it. > > Signed-off-by: Michael Ellerman Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterho