[PATCH 1/2] powerpc: Fix SPE Power ISA properties for e500v1 platforms

2022-09-02 Thread Pali Rohár
evice tree files. Fixes: 2eb28006431c ("powerpc/e500v2: Add Power ISA properties to comply with ePAPR 1.1") Signed-off-by: Pali Rohár --- .../dts/fsl/{e500v2_power_isa.dtsi => e500v1_power_isa.dtsi} | 3 +-- arch/powerpc/boot/dts/fsl/mpc8540ads.dts | 2 +- ar

[PATCH 2/2] powerpc: Include e500v1_power_isa.dtsi for remaining e500v1 platforms

2022-09-02 Thread Pali Rohár
processors. Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/ksi8560.dts | 2 ++ arch/powerpc/boot/dts/stx_gp3_8560.dts | 2 ++ arch/powerpc/boot/dts/stxssa8555.dts | 2 ++ arch/powerpc/boot/dts/tqm8540.dts | 2 ++ arch/powerpc/boot/dts/tqm8541.dts | 2 ++ arch/powerpc/boot/dts

Re: [PATCH v3 1/3] dt-bindings: reset: syscon-reboot: Add priority property

2022-09-07 Thread Pali Rohár
On Wednesday 07 September 2022 14:38:42 Krzysztof Kozlowski wrote: > On 31/08/2022 10:17, Pali Rohár wrote: > > This new optional priority property allows to specify custom priority level > > of reset device. Prior this change priority level was hardcoded to 192 and > > not p

Re: [PATCH 11/12] powerpc: wiiu: don't enforce flat memory

2022-09-08 Thread Pali Rohár
On Thursday 08 September 2022 15:25:14 Christophe Leroy wrote: > Le 08/08/2022 à 20:40, Pali Rohár a écrit : > > On Friday 10 June 2022 00:24:20 Pali Rohár wrote: > >> On Friday 20 May 2022 14:30:02 Pali Rohár wrote: > >>> + linux-mm > >>> > >&g

Fragmented physical memory on powerpc/32

2022-09-08 Thread Pali Rohár
On Thursday 08 September 2022 17:35:11 Pali Rohár wrote: > On Thursday 08 September 2022 15:25:14 Christophe Leroy wrote: > > Le 08/08/2022 à 20:40, Pali Rohár a écrit : > > > On Friday 10 June 2022 00:24:20 Pali Rohár wrote: > > >> On Friday 20 May 2022 14:30:02 Pal

Re: Fragmented physical memory on powerpc/32

2022-09-12 Thread Pali Rohár
On Monday 12 September 2022 15:48:05 Mike Rapoport wrote: > On Sat, Sep 10, 2022 at 09:39:20AM +, Christophe Leroy wrote: > > + Adding Mike who might help if the problem is around memblock. > > > > Le 08/09/2022 à 22:17, Pali Rohár a écrit : > > > On Thursday 0

Re: Fragmented physical memory on powerpc/32

2022-09-14 Thread Pali Rohár
> >>> > >>> > >>> Le 13/09/2022 à 08:11, Christophe Leroy a écrit : > >>>> > >>>> > >>>> Le 12/09/2022 à 23:16, Pali Rohár a écrit : > >>>>>> > >>>>>> My guess would be th

Re: [PATCH] powerpc/highmem: Properly handle fragmented memory

2022-09-20 Thread Pali Rohár
0.00] 552817be 5509103a 7d294214 55293830 7d4a4a14 812a003c 814a0038 > 5529002a > [0.00] 7c892050 5484c23a 5489eafa 548406fe <7d2a482e> 7d242430 > 5484077e 90870010 > [0.00] ---[ end trace ]--- > > Reported-by: Pali Rohár > Signed-off

Re: [PATCH] powerpc: dts: turris1x.dts: Fix labels in DSA cpu port nodes

2022-09-22 Thread Pali Rohár
On Saturday 27 August 2022 15:15:38 Pali Rohár wrote: > DSA cpu port node has to be marked with "cpu" label. > So fix it for both cpu port nodes. > > Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x > routers") > Signed-off-by: Pali Roh

Re: [PATCH] powerpc: dts: turris1x.dts: Fix NOR partitions labels

2022-09-22 Thread Pali Rohár
On Wednesday 31 August 2022 00:55:00 Pali Rohár wrote: > Partition partition@2 contains generic kernel image and it does not > have to be used only for rescue purposes. Partition partition@1c > contains bootable rescue system and partition partition@34 contains > factory im

Re: [PATCH v2] powerpc: Add support for early debugging via Serial 16550 console

2022-09-24 Thread Pali Rohár
Hello! Is something else needed for this v2 patch? On Tuesday 23 August 2022 01:15:01 Pali Rohár wrote: > Currently powerpc early debugging contains lot of platform specific > options, but does not support standard UART / serial 16550 console. > > Later legacy_serial.c code supports

Re: [PATCH 0/7] powerpc/85xx: p2020: Create one unified machine description

2022-09-24 Thread Pali Rohár
Hello! Any comments for these patches? On Friday 19 August 2022 21:15:50 Pali Rohár wrote: > This patch series unifies all P2020 boards and machine descriptions into > one generic unified P2020 machine description. With this generic machine > description, kernel can boot on any P2020-ba

Re: [PATCH 2/7] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2022-09-26 Thread Pali Rohár
On Monday 26 September 2022 09:43:55 Christophe Leroy wrote: > Le 19/08/2022 à 21:15, Pali Rohár a écrit : > > Function mpc85xx_ds_pic_init() is not used out of the mpc85xx_ds.c file. > > > > Signed-off-by: Pali Rohár > > This patch should be squashed into patch 1.

Re: [PATCH 3/7] powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c

2022-09-26 Thread Pali Rohár
On Monday 26 September 2022 09:48:02 Christophe Leroy wrote: > Le 19/08/2022 à 21:15, Pali Rohár a écrit : > > This moves machine descriptions and all related code for all P2020 boards > > into new p2020.c source file. This is preparation for code deduplication > > and

Re: [PATCH 5/7] powerpc/85xx: p2020: Define just one machine description

2022-09-26 Thread Pali Rohár
On Monday 26 September 2022 10:02:47 Christophe Leroy wrote: > > +static int __init p2020_probe(void) > > { > > - if (of_machine_is_compatible("fsl,P2020RDB-PC")) > > - return 1; > > - return 0; > > + struct device_node *p2020_cpu; > > + > > + /* > > +* There is no common co

Re: [PATCH 6/7] powerpc/85xx: p2020: Enable boards by new config option CONFIG_P2020

2022-09-26 Thread Pali Rohár
On Monday 26 September 2022 10:08:19 Christophe Leroy wrote: > Le 19/08/2022 à 21:15, Pali Rohár a écrit : > > Generic unified P2020 machine description which supports all P2020-based > > boards is now in separate file p2020.c. So create a separate config option > > CONFIG_P20

Re: [PATCH 7/7] powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string

2022-09-26 Thread Pali Rohár
On Monday 26 September 2022 10:10:19 Christophe Leroy wrote: > Le 19/08/2022 à 21:15, Pali Rohár a écrit : > > "fsl,P2020RDB-PC" compatible string was present in Turris 1.x DTS file just > > because Linux kernel required it for proper detection of P2020 processor > >

Re: [PATCH 3/7] powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c

2022-09-26 Thread Pali Rohár
On Monday 26 September 2022 10:17:26 Christophe Leroy wrote: > Le 26/09/2022 à 11:53, Pali Rohár a écrit : > > On Monday 26 September 2022 09:48:02 Christophe Leroy wrote: > >> Le 19/08/2022 à 21:15, Pali Rohár a écrit : > >>> This moves machine descriptions and

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

2022-09-30 Thread Pali Rohár
s 1.x routers") Signed-off-by: Pali Rohár --- With this change userspace 'sensors' applications prints labels: $ sensors sa56004-i2c-0-4c Adapter: MPC adapter (i2c@3000) board:+34.2°C (low = +0.0°C, high = +70.0°C) (crit = +85

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

2022-09-30 Thread Pali Rohár
+ CC hwmon ML On Friday 30 September 2022 14:39:01 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

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

2022-10-09 Thread Pali Rohár
On Monday 29 August 2022 10:54:51 Pali Rohár wrote: > 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 à 1

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

2022-10-09 Thread Pali Rohár
Hello! Any opinion on this patch? On Saturday 20 August 2022 14:33:27 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. &

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2022-10-09 Thread Pali Rohár
default enabled (which implies that PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT is disabled) on powermac: https://lore.kernel.org/linuxppc-dev/575f239205e8635add81c9f902b7d9db7beb83ea.ca...@kernel.crashing.org/ On Wednesday 17 August 2022 18:39:26 Pali Rohár wrote: > Creating or filling pci-OF-bus-map property

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

2022-10-09 Thread Pali Rohár
On Friday 30 September 2022 14:46:18 Pali Rohár wrote: > + CC hwmon ML > > On Friday 30 September 2022 14:39:01 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 SA5

Re: [PATCH 2/7] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2022-10-16 Thread Pali Rohár
Hello Christophe! Do you have any other comments for this patch series? On Monday 26 September 2022 11:47:06 Pali Rohár wrote: > On Monday 26 September 2022 09:43:55 Christophe Leroy wrote: > > Le 19/08/2022 à 21:15, Pali Rohár a écrit : > > > Function mpc85xx_ds_pic_init() is n

Re: [PATCH] PCI: Remove unnecessary of_irq.h includes

2022-10-20 Thread Pali Rohár
On Thursday 20 October 2022 08:45:47 Bjorn Helgaas wrote: > [+cc Pali, heads-up for trivial addition of to > pci-mvebu.c] ... > pci-mvebu.c also relies on getting via > , but it actually depends on of_irq.h, so I'll just > add an irqdomain.h include there. > > Bjorn > Ok, that is fine!

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

2022-11-01 Thread Pali Rohár
On Sunday 09 October 2022 13:06:52 Pali Rohár wrote: > On Monday 29 August 2022 10:54:51 Pali Rohár wrote: > > 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 Chris

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

2022-11-01 Thread Pali Rohár
Hello! I would like to remind this patch. On Sunday 09 October 2022 13:08:08 Pali Rohár wrote: > Hello! Any opinion on this patch? > > On Saturday 20 August 2022 14:33:27 Pali Rohár wrote: > > If there's no PCI host bridge with ISA then check for PCI host bridge with > &g

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2022-11-01 Thread Pali Rohár
Hello! Gentle reminder... On Sunday 09 October 2022 13:25:55 Pali Rohár wrote: > Hello! Any comments on this? It would be nice to take these two patches > (or at least patch 2) to finally enable PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT > by default where possible. > > Per following comme

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

2022-11-01 Thread Pali Rohár
Michael, could you take this patch? On Sunday 09 October 2022 14:05:06 Pali Rohár wrote: > On Friday 30 September 2022 14:46:18 Pali Rohár wrote: > > + CC hwmon ML > > > > On Friday 30 September 2022 14:39:01 Pali Rohár wrote: > > > Channel 0 of SA56004ED chip ref

Re: [PATCH 2/7] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2022-11-01 Thread Pali Rohár
On Sunday 16 October 2022 16:59:53 Christophe Leroy wrote: > Hello, > > Le 16/10/2022 à 13:05, Pali Rohár a écrit : > > Hello Christophe! Do you have any other comments for this patch series? > > I'm AFK for two weeks, but as far as I remember I don't have any mor

Re: [PATCH v2 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-01-22 Thread Pali Rohár
Hello! Do you have any comments for this patch series? On Saturday 24 December 2022 22:14:17 Pali Rohár wrote: > This patch series unifies all P2020 boards and machine descriptions into > one generic unified P2020 machine description. With this generic machine > description, kernel ca

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

2023-01-22 Thread Pali Rohár
On Saturday 24 December 2022 18:44:52 Pali Rohár wrote: > On Thursday 08 December 2022 19:57:39 Christophe Leroy wrote: > > 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, P

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2023-01-22 Thread Pali Rohár
PING? It is more than 5 months since this patch series is there and it still has not received any comment. On Friday 16 December 2022 19:12:06 Pali Rohár wrote: > PING? > > On Saturday 26 November 2022 17:23:45 Pali Rohár wrote: > > PING? > > > > On Tuesday 01 Novemb

Re: [PATCH v2 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-01-23 Thread Pali Rohár
On Monday 23 January 2023 14:32:36 Christophe Leroy wrote: > Le 22/01/2023 à 12:16, Pali Rohár a écrit : > > Hello! Do you have any comments for this patch series? > > > I think patches 1 and 2 could be a single patch. Well, if you want to have them in single patch, it could

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2023-01-28 Thread Pali Rohár
On Thursday 26 January 2023 21:59:43 Michael Ellerman wrote: > Pali Rohár writes: > > PING? It is more than 5 months since this patch series is there and it > > still has not received any comment. > > There was some related discussion in another thread. > > I plann

[PATCH v2 1/2] powerpc/pci: Enable PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT by default

2023-01-28 Thread Pali Rohár
6 PCI buses") Signed-off-by: Pali Rohár --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index b8c4ac56bddc..fad25aa602c8 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -392,6 +392,7

[PATCH v2 2/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2023-01-28 Thread Pali Rohár
CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT also for chrp and powermac. [1] - https://lore.kernel.org/linuxppc-dev/1148016268.13249.14.camel@localhost.localdomain/ Signed-off-by: Pali Rohár --- Changes in v2: * Provide stripped version of pci_device_from_OF_node() without pci_to_OF_bus_map when

Re: [PATCH v1 3/5] powerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500

2023-02-01 Thread Pali Rohár
On Tuesday 20 December 2022 21:15:08 Pali Rohár wrote: > On Monday 19 December 2022 19:45:58 Christophe Leroy wrote: > > E500MC64 is a processor pre-dating E5500 that has never been > > commercialised. Use -mcpu=e5500 for E5500 core. > > > > More details at h

Re: [powerpc:next-test 14/40] pci.c:undefined reference to `pci_create_OF_bus_map'

2023-02-01 Thread Pali Rohár
On Thursday 02 February 2023 07:51:23 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > next-test > head: 9ffcf6a19dbb2a24de2c2d7b2af1e130986cd565 > commit: 869363998da87c80c16ff1221e95b41b2d3cceb2 [14/40] powerpc/pci: Allow > to disable fill

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

2023-02-03 Thread Pali Rohár
On Wednesday 01 February 2023 09:29:45 Nick Desaulniers wrote: > On Wed, Feb 1, 2023 at 3:41 AM Christophe Leroy > wrote: > > > > > > > > Le 01/02/2023 à 12:31, Naresh Kamboju a écrit : > > > Following build regression started from next-20230131. > > > > > > Regressions found on powerpc: > > > > >

Re: [PATCH v2 3/8] powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c

2023-02-03 Thread Pali Rohár
On Saturday 24 December 2022 22:14:20 Pali Rohár wrote: > This moves machine descriptions and all related code for all P2020 boards > into new p2020.c source file. This change also copies helper static > functions from other mpc85xx*.c files into p2020.c, which are required for

Re: [powerpc:next-test 14/40] arch/powerpc/kernel/pci_32.c:233:5: error: no previous prototype for 'pci_device_from_OF_node'

2023-02-03 Thread Pali Rohár
On Friday 03 February 2023 00:13:02 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > next-test > head: 9ffcf6a19dbb2a24de2c2d7b2af1e130986cd565 > commit: 869363998da87c80c16ff1221e95b41b2d3cceb2 [14/40] powerpc/pci: Allow > to disable fillin

Re: [PATCH v3] powerpc/pci: Add option for using pci_to_OF_bus_map

2023-02-06 Thread Pali Rohár
On Monday 06 February 2023 22:39:02 Michael Ellerman wrote: > From: Pali Rohár > > The "pci-OF-bus-map" property was declared deprecated in 2006 [1] and to > the best of everyone's knowledge is not used by anything anymore [2]. > > The creation of the proper

Re: [PATCH v4 3/3] powerpc: dts: turris1x.dts: Set lower priority for CPLD syscon-reboot

2023-02-08 Thread Pali Rohár
On Monday 26 December 2022 12:45:13 Pali Rohár wrote: > Due to CPLD firmware bugs, set CPLD syscon-reboot priority level to 64 > (between rstcr and watchdog) to ensure that rstcr's global-utilities reset > method which is preferred stay as default one, and to ensure that CPLD >

Re: [PATCH v2 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-02-08 Thread Pali Rohár
On Monday 23 January 2023 21:09:22 Pali Rohár wrote: > On Monday 23 January 2023 14:32:36 Christophe Leroy wrote: > > Le 22/01/2023 à 12:16, Pali Rohár a écrit : > > > Hello! Do you have any comments for this patch series? > > > > > > I think patches 1 and

Re: [PATCH v2 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-02-13 Thread Pali Rohár
On Monday 13 February 2023 19:58:15 Christophe Leroy wrote: > Le 09/02/2023 à 01:15, Pali Rohár a écrit : > >> > >> This patch moves all p2020 boards from mpc85xx_rdb.c and mpc85xx_ds.c > >> files into new p2020.c file, and plus it copies all helper functions > >

Re: [PATCH v2 3/8] powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c

2023-02-13 Thread Pali Rohár
On Monday 13 February 2023 20:05:09 Christophe Leroy wrote: > Le 24/12/2022 à 22:14, Pali Rohár a écrit : > > This moves machine descriptions and all related code for all P2020 boards > > into new p2020.c source file. This change also copies helper static > > functions from o

Re: [PATCH v2 4/8] powerpc/85xx: p2020: Move i8259 code into own function

2023-02-13 Thread Pali Rohár
On Monday 13 February 2023 20:06:27 Christophe Leroy wrote: > > > Le 24/12/2022 à 22:14, Pali Rohár a écrit : > > Splits mpic and i8259 initialization codes into separate functions. > > > > Signed-off-by: Pali Rohár > > --- > > a

Re: [PATCH v2 6/8] powerpc/85xx: p2020: Define just one machine description

2023-02-13 Thread Pali Rohár
On Monday 13 February 2023 20:08:52 Christophe Leroy wrote: > Le 24/12/2022 à 22:14, Pali Rohár a écrit : > > Combine machine descriptions and code of all P2020 boards into just one > > generic unified P2020 machine description. This allows kernel to boot on > > any P2020-b

Re: [PATCH v2 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-02-15 Thread Pali Rohár
On Tuesday 14 February 2023 05:47:08 Christophe Leroy wrote: > Le 13/02/2023 à 21:11, Pali Rohár a écrit : > > On Monday 13 February 2023 19:58:15 Christophe Leroy wrote: > >> Le 09/02/2023 à 01:15, Pali Rohár a écrit : > >>>> > >>>> This pat

Re: [PATCH v1 5/5] powerpc/epapr: Don't use wrteei on non booke

2023-02-15 Thread Pali Rohár
On Tuesday 20 December 2022 21:21:11 Pali Rohár wrote: > On Monday 19 December 2022 19:46:00 Christophe Leroy wrote: > > wrteei is only for booke. Use the standard mfmsr/ori/mtmsr > > when non booke. > > > > Reported-by: Jan-Benedict Glaw > > Signed-off-by: Chris

[PATCH v3 1/8] powerpc/85xx: Mark mpc85xx_rdb_pic_init() as static

2023-02-18 Thread Pali Rohár
Function mpc85xx_rdb_pic_init() is not used out of the mpc85xx_rdb.c file. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx

[PATCH v3 2/8] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2023-02-18 Thread Pali Rohár
Function mpc85xx_ds_pic_init() is not used out of the mpc85xx_ds.c file. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx

[PATCH v3 5/8] powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks

2023-02-18 Thread Pali Rohár
Make just one .setup_arch and one .init_IRQ callback implementation for all P2020 board code. This deduplicate repeated and same code. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/p2020.c | 58 + 1 file changed, 9 insertions(+), 49 deletions(-) diff

[PATCH v3 3/8] powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c

2023-02-18 Thread Pali Rohár
one unified machine description for all P2020 boards. In follow-up patches would be copied functions refactored and simplified to be specific just for P2020 boards. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Makefile | 2 + arch/powerpc/platforms/85xx/mpc85xx_ds.c

[PATCH v3 4/8] powerpc/85xx: p2020: Move i8259 code into own function

2023-02-18 Thread Pali Rohár
Splits mpic and i8259 initialization codes into separate functions. Use 'if (IS_ENABLED(CONFIG_PPC_I8259))' instead of '#ifdef CONFIG_PPC_I8259'. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/p2020.c | 36 ++--- 1 file changed, 18 inserti

[PATCH v3 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-02-18 Thread Pali Rohár
//lore.kernel.org/linuxppc-dev/20220819191557.28116-1-p...@kernel.org/ Pali Rohár (8): powerpc/85xx: Mark mpc85xx_rdb_pic_init() as static powerpc/85xx: Mark mpc85xx_ds_pic_init() as static powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c powerpc/85xx: p2020: Move i8259 code into own

[PATCH v3 7/8] powerpc/85xx: p2020: Enable boards by new config option CONFIG_PPC_P2020

2023-02-18 Thread Pali Rohár
: Pali Rohár --- arch/powerpc/platforms/85xx/Kconfig | 22 ++ arch/powerpc/platforms/85xx/Makefile | 3 +-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig index b92cb2b4d54d

[PATCH v3 6/8] powerpc/85xx: p2020: Define just one machine description

2023-02-18 Thread Pali Rohár
-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/p2020.c | 77 ++--- 1 file changed, 15 insertions(+), 62 deletions(-) diff --git a/arch/powerpc/platforms/85xx/p2020.c b/arch/powerpc/platforms/85xx/p2020.c index 1033b7bb05cc..feb5507bfc89 100644 --- a/arch/powerpc

[PATCH v3 8/8] powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string

2023-02-18 Thread Pali Rohár
ic unified support for boards with P2020 processors, there is no need to have this "hack" in turris1x.dts file. So remove incorrect "fsl,P2020RDB-PC" compatible string from turris1x.dts. Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 2 +- 1 file chang

Re: [PATCH v4 3/3] powerpc: dts: turris1x.dts: Set lower priority for CPLD syscon-reboot

2023-02-18 Thread Pali Rohár
On Thursday 09 February 2023 01:10:21 Pali Rohár wrote: > On Monday 26 December 2022 12:45:13 Pali Rohár wrote: > > Due to CPLD firmware bugs, set CPLD syscon-reboot priority level to 64 > > (between rstcr and watchdog) to ensure that rstcr's global-utilities reset > >

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

2023-02-20 Thread Pali Rohár
On Monday 20 February 2023 08:28:18 Christophe Leroy wrote: > Le 25/01/2023 à 08:40, Christophe Leroy a écrit : > > > > > > Le 22/01/2023 à 12:19, Pali Rohár a écrit : > > > On Saturday 24 December 2022 18:44:52 Pali Rohár wrote: > > > > On Thursday

[PATCH RESEND] powerpc: dts: turris1x.dts: Set lower priority for CPLD syscon-reboot

2023-02-20 Thread Pali Rohár
bd1c6 ("powerpc: dts: turris1x.dts: Add CPLD reboot node") Signed-off-by: Pali Rohár --- Original patch: https://lore.kernel.org/lkml/878rgtyx2y@mpe.ellerman.id.au/ Commit https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply.git/commit

Re: [PATCH 4/4] powerpc: remove orphaned MPC85xx kernel config fragments.

2023-02-21 Thread Pali Rohár
On Tuesday 21 February 2023 14:46:37 Paul Gortmaker wrote: > None of these have a reference anymore anywhere, such as like this: > > arch/powerpc/Makefile: $(call merge_into_defconfig,mpc85xx_base.config,\ > > As such, we probably should just clean up and remove them. > > Cc: Scott Wood > Cc

Re: [RFC PATCH 0/4] Remove some e500/MPC85xx evaluation platforms

2023-02-21 Thread Pali Rohár
Hello! I would like to let you know that I have there patch series which creates one generic machine descriptor for all P2 boards: https://lore.kernel.org/linuxppc-dev/20230218111405.27688-1-p...@kernel.org/ Basically it allows any P2 board to boot one universal kernel binary just with correct DTS

Re: [PATCH 4/4] powerpc: remove orphaned MPC85xx kernel config fragments.

2023-02-21 Thread Pali Rohár
On Tuesday 21 February 2023 16:29:32 Paul Gortmaker wrote: > [Re: [PATCH 4/4] powerpc: remove orphaned MPC85xx kernel config fragments.] > On 21/02/2023 (Tue 21:03) Pali Roh??r wrote: > > > On Tuesday 21 February 2023 14:46:37 Paul Gortmaker wrote: > > > None of these have a reference anymore any

Re: [RFC PATCH 0/4] Remove some e500/MPC85xx evaluation platforms

2023-02-21 Thread Pali Rohár
On Tuesday 21 February 2023 16:35:54 Paul Gortmaker wrote: > [Re: [RFC PATCH 0/4] Remove some e500/MPC85xx evaluation platforms] On > 21/02/2023 (Tue 21:13) Pali Roh??r wrote: > > > Hello! I would like to let you know that I have there patch series which > > creates one generic machine descriptor

Re: [PATCH v3 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-02-21 Thread Pali Rohár
Hello Christophe! Could you look at this v3 series? I addressed those small issues and hopefully it should be ready. It would be great to have this finally in v6.3 release. On Saturday 18 February 2023 12:13:57 Pali Rohár wrote: > This patch series unifies all P2020 boards and mach

Re: [PATCH v3 0/8] powerpc/85xx: p2020: Create one unified machine description

2023-02-21 Thread Pali Rohár
On Wednesday 22 February 2023 06:39:07 Christophe Leroy wrote: > Hi, > > Le 21/02/2023 à 23:07, Pali Rohár a écrit : > > Hello Christophe! Could you look at this v3 series? > > I addressed those small issues and hopefully it should be ready. > > It would be great t

Re: [PATCH v4 00/17] powerpc/85xx: p2020: Create one unified machine description

2023-02-22 Thread Pali Rohár
* Minimised churn by not duplicating helpers at the first place > * Split main patch in two > * Dropped patchs 1 and 2 > * Untested beyond basic build test Changes looks good. I'm happy with them. You can add my: Reviewed-by: Pali Rohár > Changes in v3: > * Use 'if (IS_EN

Re: [RFC PATCH 0/4] Remove some e300/MPC83xx evaluation platforms

2023-03-04 Thread Pali Rohár
On Saturday 04 March 2023 07:31:49 Christophe Leroy wrote: > Le 03/03/2023 à 20:41, Crystal Wood a écrit : > > On Fri, 2023-03-03 at 10:14 +0100, Arnd Bergmann wrote: > >> On Fri, Mar 3, 2023, at 02:04, Paul Gortmaker wrote: > >>> 01/03/2023 (Wed 14:23) Christophe Leroy wrote: > Le 28/02/2023

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

2022-11-26 Thread Pali Rohár
PING? On Tuesday 01 November 2022 23:19:09 Pali Rohár wrote: > Hello! I would like to remind this patch. > > On Sunday 09 October 2022 13:08:08 Pali Rohár wrote: > > Hello! Any opinion on this patch? > > > > On Saturday 20 August 2022 14:33:27 Pali Rohár wrote: &

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2022-11-26 Thread Pali Rohár
PING? On Tuesday 01 November 2022 23:26:03 Pali Rohár wrote: > Hello! Gentle reminder... > > On Sunday 09 October 2022 13:25:55 Pali Rohár wrote: > > Hello! Any comments on this? It would be nice to take these two patches > > (or at least patch

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

2022-11-26 Thread Pali Rohár
PING? On Tuesday 01 November 2022 23:43:48 Pali Rohár wrote: > Michael, could you take this patch? > > On Sunday 09 October 2022 14:05:06 Pali Rohár wrote: > > On Friday 30 September 2022 14:46:18 Pali Rohár wrote: > > > + CC hwmon ML > > > > > > On Fr

Re: [PATCH 2/7] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2022-11-26 Thread Pali Rohár
On Wednesday 02 November 2022 00:25:03 Pali Rohár wrote: > On Sunday 16 October 2022 16:59:53 Christophe Leroy wrote: > > Hello, > > > > Le 16/10/2022 à 13:05, Pali Rohár a écrit : > > > Hello Christophe! Do you have any other comments for this patch series? > >

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

2022-11-26 Thread Pali Rohár
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 Monday 29 August 2022 10:54:51 Pali Rohár wrote: > >>> On Sunday 28 August 2022 17:43:53 Chr

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

2022-11-29 Thread Pali Rohár
On Tuesday 29 November 2022 12:18:28 Michael Ellerman wrote: > Pali Rohár writes: > > Michael, could you take this patch? > > Yep. > > With these dts patches it always helps if you tell me that it passes the > DT schema checks, so that I don't get yelled at b

Re: [PATCH 5/5] powerpc: dts: remove label = "cpu" from DSA dt-binding

2022-12-01 Thread Pali Rohár
On Thursday 01 December 2022 21:40:03 Michael Ellerman wrote: > Arınç ÜNAL writes: > > This is not used by the DSA dt-binding, so remove it from all devicetrees. > > > > Signed-off-by: Arınç ÜNAL > > --- > > arch/powerpc/boot/dts/turris1x.dts | 2 -- > > 1 file changed, 2 deletions(-) > > Addin

Re: [PATCH 5/5] powerpc: dts: remove label = "cpu" from DSA dt-binding

2022-12-02 Thread Pali Rohár
On Thursday 01 December 2022 17:44:00 Rob Herring wrote: > On Thu, Dec 01, 2022 at 06:39:02PM +0100, Pali Rohár wrote: > > On Thursday 01 December 2022 21:40:03 Michael Ellerman wrote: > > > Arınç ÜNAL writes: > > > > This is not used by the DSA dt-

Re: [PATCH 0/7] powerpc/85xx: p2020: Create one unified machine description

2022-12-04 Thread Pali Rohár
On Friday 19 August 2022 21:15:50 Pali Rohár wrote: > This patch series unifies all P2020 boards and machine descriptions into > one generic unified P2020 machine description. With this generic machine > description, kernel can boot on any P2020-based board with correct DTS > file. &g

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

2022-12-08 Thread Pali Rohár
32 > POWERPC_CPU, and set a default mpcu value in Kconfig directly. > > When a user selects a particular CPU, he must ensure his compiler has > the requested capability. Therefore, remove hidden fallback, instead > offer user the possibility to say he wants to use toolchain default. >

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 : > >>> > >>> > >>> L

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:

Re: [PATCH v1 5/5] powerpc/64e: Fix build failure with GCC 12 (unrecognized opcode: `wrteei')

2022-12-11 Thread Pali Rohár
On Monday 11 July 2022 16:19:33 Christophe Leroy wrote: > With GCC 12, corenet64_smp_defconfig leads to the following build errors: > > CC arch/powerpc/kernel/irq.o > {standard input}: Assembler messages: > {standard input}:3616: Error: unrecognized opcode: `wrteei' > {standard input}:5689:

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

2022-12-15 Thread Pali Rohár
Hello! On Wednesday 07 December 2022 14:38:40 Christophe Leroy wrote: > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile ... > @@ -166,11 +153,12 @@ CC_FLAGS_FTRACE += -mprofile-kernel > endif > endif > > -CFLAGS-$(CONFIG_TARGET_CPU_BOOL) += $(call > cc-option,-mcpu=$(CONFIG_TARGET_

Re: [PATCH 1/2] powerpc/pci: Allow to disable filling deprecated pci-OF-bus-map

2022-12-16 Thread Pali Rohár
PING? On Saturday 26 November 2022 17:23:45 Pali Rohár wrote: > PING? > > On Tuesday 01 November 2022 23:26:03 Pali Rohár wrote: > > Hello! Gentle reminder... > > > > On Sunday 09 October 2022 13:25:55 Pali Rohár wrote: > > > Hello! Any comments on this

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

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 13:15:43 Segher Boessenkool wrote: > > Anyway, do you know what is e500mc64 core? I was trying to find some > > information about it, but it looks like some unreleased freescale core > > which predates e5500 core. > > It looks that way yes. It was submitted at >

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 12:10:48 Segher Boessenkool wrote: > On Fri, Dec 16, 2022 at 05:57:46PM +, Christophe Leroy wrote: > > Le 16/12/2022 à 18:18, Segher Boessenkool a écrit : > > > On Fri, Dec 16, 2022 at 09:35:50AM +0100, Christophe Leroy wrote: > > >> Today we have CONFIG_TARGET_CPU wh

Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler

2022-12-16 Thread Pali Rohár
On Friday 16 December 2022 09:35:50 Christophe Leroy wrote: > diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile > index bf5f0a998273..528452ce80b4 100644 > --- a/arch/powerpc/Makefile > +++ b/arch/powerpc/Makefile > @@ -201,18 +201,20 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables >

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

2022-12-20 Thread Pali Rohár
gt; default. > > It also fixes the non existing E5500_CPU which is a leftover of > commit d6b551b8f90c ("powerpc/64e: Fix build failure with GCC 12 > (unrecognized opcode: `wrteei')") > > Fixes: d6b551b8f90c ("powerpc/64e: Fix build failure with GCC 12 >

Re: [PATCH v1 2/5] powerpc: Pass correct CPU reference to assembler

2022-12-20 Thread Pali Rohár
-PIE -m64 > -Wl,-a64 -mabi=elfv1 -mcpu=e500mc64 -mabi=elfv1 -mbig-endian > -Wl,-soname=linux-vdso64.so.1 -D__VDSO64__ -s -c -o > arch/powerpc/kernel/vdso/gettimeofday-64.o > arch/powerpc/kernel/vdso/gettimeofday.S > > Reported-by: Jan-Benedict Glaw > Signed-off-by: Ch

Re: [PATCH v1 3/5] powerpc/64: Replace -mcpu=e500mc64 by -mcpu=e5500

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:45:58 Christophe Leroy wrote: > E500MC64 is a processor pre-dating E5500 that has never been > commercialised. Use -mcpu=e5500 for E5500 core. > > More details at https://gcc.gnu.org/PR108149 > > Signed-off-by: Christophe Leroy Acked-by: Pali Roh

Re: [PATCH v1 4/5] powerpc: Remove cpu-as-y completely

2022-12-20 Thread Pali Rohár
S_64 ASFLAGS") in order to fix an issue with > clang and the passed -Wa,-mpower4 option. But we have now > removed it expecting the compiler to automatically pass the > proper options and instructions based on -mcpu=power4 > > Signed-off-by: Christophe Leroy Acked-by: Pali Ro

Re: [PATCH v1 5/5] powerpc/epapr: Don't use wrteei on non booke

2022-12-20 Thread Pali Rohár
On Monday 19 December 2022 19:46:00 Christophe Leroy wrote: > wrteei is only for booke. Use the standard mfmsr/ori/mtmsr > when non booke. > > Reported-by: Jan-Benedict Glaw > Signed-off-by: Christophe Leroy > --- > Not sure this is needed at all, the commit that introduced the code says it > i

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

2022-12-24 Thread Pali Rohár
On Thursday 08 December 2022 19:57:39 Christophe Leroy wrote: > 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 Christoph

[PATCH v2 0/8] powerpc/85xx: p2020: Create one unified machine description

2022-12-24 Thread Pali Rohár
v1: https://lore.kernel.org/linuxppc-dev/20220819191557.28116-1-p...@kernel.org/ Pali Rohár (8): powerpc/85xx: Mark mpc85xx_rdb_pic_init() as static powerpc/85xx: Mark mpc85xx_ds_pic_init() as static powerpc/85xx: p2020: Move all P2020 machine descriptions to p2020.c powerpc/85xx: p2020:

[PATCH v2 2/8] powerpc/85xx: Mark mpc85xx_ds_pic_init() as static

2022-12-24 Thread Pali Rohár
Function mpc85xx_ds_pic_init() is not used out of the mpc85xx_ds.c file. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx

[PATCH v2 4/8] powerpc/85xx: p2020: Move i8259 code into own function

2022-12-24 Thread Pali Rohár
Splits mpic and i8259 initialization codes into separate functions. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/p2020.c | 37 - 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/platforms/85xx/p2020.c b/arch/powerpc/platforms

[PATCH v2 1/8] powerpc/85xx: Mark mpc85xx_rdb_pic_init() as static

2022-12-24 Thread Pali Rohár
Function mpc85xx_rdb_pic_init() is not used out of the mpc85xx_rdb.c file. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx

<    1   2   3   >