Re: [PATCH] bus: Make remove callback return void

2021-07-06 Thread Pali Rohár
ted buses return an ignored error code and so don't anticipate > wrong expectations for driver authors. > > Signed-off-by: Uwe Kleine-König Acked-by: Pali Rohár > --- > Hello, > > this patch depends on "PCI: endpoint: Make struct pci_epf_driver::remove > return

Re: [PATCH v3 02/25] PCI: Set error response in config access defines when ops->read() fails

2021-10-21 Thread Pali Rohár
> > Suggested-by: Rob Herring > Reviewed-by: Rob Herring > Signed-off-by: Naveen Naidu Reviewed-by: Pali Rohár > --- > drivers/pci/access.c | 10 -- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/access.c b/drivers/pci/access.c >

Re: [PATCH v3 01/25] PCI: Add PCI_ERROR_RESPONSE and it's related definitions

2021-10-21 Thread Pali Rohár
ONSE definition for that and use it where > appropriate to make these checks consistent and easier to find. > > Also add helper definitions SET_PCI_ERROR_RESPONSE and > RESPONSE_IS_PCI_ERROR to make the code more readable. > > Suggested-by: Bjorn Helgaas > Signed-off-by: Na

L2 SRAM on PowerPC e500 and Caching-inhibited bit

2022-04-25 Thread Pali Rohár
Hello! I started playing with PowerPC e500 architecture, it is something really new for me and I suspect that I found a bug in U-Boot code which configures L2 cache as initial SRAM (L2 with locked lines). U-Boot code for the first half of L2 cache sets Caching-inhibited (MAS2_I) in TLB and for

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

2022-05-20 Thread Pali Rohár
y 20 May 2022 20:44:04 Ash Logan wrote: > On 20/5/22 18:04, Pali Rohár wrote: > > On Friday 20 May 2022 13:41:04 Ash Logan wrote: > >> On 14/5/22 08:43, Pali Rohár wrote: > >>> On Wednesday 02 March 2022 15:44:05 Ash Logan wrote: > >>>> pgtable_32.c

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

2022-05-13 Thread Pali Rohár
On Wednesday 02 March 2022 15:44:05 Ash Logan wrote: > pgtable_32.c:mapin_ram loops over each valid memory range, which means > non-contiguous memory just works. Hello! Does it mean that non-contiguous memory works for any 32-bit powerpc platform, and not only for wiiu? If yes, should not be

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Pali Rohár
On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > Hi! > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > gcc e500 compiler does not support -mcpu=powerpc option. When it is > > specified then gcc throws compile error: > > > >

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Pali Rohár
On Tuesday 24 May 2022 13:52:47 Segher Boessenkool wrote: > On Tue, May 24, 2022 at 08:12:55PM +0200, Pali Rohár wrote: > > On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > > > gcc e500 c

Re: [PATCH] powerpc/85xx: P2020: Add fsl,mpc8548-pmc node

2022-05-24 Thread Pali Rohár
On Friday 06 May 2022 22:36:21 Pali Rohár wrote: > P2020 also contains Power Management Controller and their registers at > offset 0xe0070 compatible with mpc8548. So add PMC node into DTS include > file fsl/p2020si-post.dtsi PING? > Signed-off-by: Pali Rohár > --- > arch/po

Re: [PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-05-24 Thread Pali Rohár
On Wednesday 11 May 2022 16:37:12 Pali Rohár wrote: > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > PowerPC Freescale P2020 CPU and are based on Freescale P2020RDB-PC-A board. > Hardware design is fully open source, all firmware and hardware design > files a

[PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-05-24 Thread Pali Rohár
. Correct option -mcpu=8540 for CONFIG_E500 is set few lines below in that Makefile. Signed-off-by: Pali Rohár Cc: sta...@vger.kernel.org --- arch/powerpc/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index eb541e730d3c..87f9f29ac9d2

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-05-24 Thread Pali Rohár
On Friday 06 May 2022 00:33:02 Pali Rohár wrote: > On Thursday 05 May 2022 15:10:01 Tyrel Datwyler wrote: > > On 5/5/22 02:31, Pali Rohár wrote: > > > Hello! > > > > > > On Thursday 05 May 2022 07:16:40 Christophe Leroy wrote: > > >> Le 04/05/

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-07 Thread Pali Rohár
On Thursday 07 July 2022 09:56:04 Christophe Leroy wrote: > Le 04/07/2022 à 15:43, Arnd Bergmann a écrit : > > On Mon, Jul 4, 2022 at 3:29 PM Pali Rohár wrote: > >> > >> And still what to do with 4bf4f42a2feb ("powerpc/kbuild: Set default > >> gener

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > >On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > >> gcc e500 compiler does not support -mcpu=powerpc option. When it is > >> sp

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > > On 2 July 2022 7:44:05 pm AEST, "Pali Rohár" wrote: > > > >On Tuesday 24 May 2022

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-04 Thread Pali Rohár
On Monday 04 July 2022 15:22:03 Arnd Bergmann wrote: > On Mon, Jul 4, 2022 at 3:13 PM Pali Rohár wrote: > > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > > > CFLAGS_CPU-$(CONFIG_PPC_BOOK3S_32) := -mcpu=powerpc > > > CFLAGS_CPU-$(CONFIG_PPC_85xx)

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-08 Thread Pali Rohár
On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > Another problem I see is that a kernel that is built for both E500 and E500MC > uses -mcpu=e500mc and may not actually work on the older ones either > (even with your patch). Such configuration is not supported, see

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-08 Thread Pali Rohár
On Monday 04 July 2022 15:13:58 Pali Rohár wrote: > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár wrote: > > > On Monday 04 July 2022 20:23:29 Michael Ellerman wrote: > > > > On 2 July 2022 7:44:0

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-09 Thread Pali Rohár
On Saturday 09 July 2022 09:16:13 Christophe Leroy wrote: > Le 08/07/2022 à 19:14, Pali Rohár a écrit : > > On Monday 04 July 2022 15:13:58 Pali Rohár wrote: > >> On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > >>> On Mon, Jul 4, 2022 at 12:39 PM Pali Rohár w

[PATCH] powerpc/85xx: Fix description of MPC85xx and P1/P2 boards options

2022-07-09 Thread Pali Rohár
More MPC85xx and P1/P2 boards options have incorrect description. Fix them to include list of all boards for which they enable/disable support. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Kconfig | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-10 Thread Pali Rohár
On Sunday 10 July 2022 17:38:33 Christophe Leroy wrote: > Le 09/07/2022 à 12:23, Pali Rohár a écrit : > >>> > >>> -ifdef CONFIG_PPC_BOOK3S_64 > >>>ifdef CONFIG_CPU_LITTLE_ENDIAN > >>> -CFLAGS-$(CONFIG_GENERIC_CPU) += -mcpu=power8 >

Re: [PATCH] powerpc/32: Don't always pass -mcpu=powerpc to the compiler

2022-07-10 Thread Pali Rohár
tance for e500 SPE-only versions. > > So, stop relying on this approximative logic and allow the user to > decide whether he/she wants to use the toolchain's default CPU or if > he/she wants to set one, and allow only possible CPUs based on the > selected target. > > Reported

Re: [PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-06-22 Thread Pali Rohár
On Thursday 09 June 2022 12:19:00 Pali Rohár wrote: > On Tuesday 24 May 2022 11:23:32 Pali Rohár wrote: > > On Wednesday 11 May 2022 16:37:12 Pali Rohár wrote: > > > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > > > PowerPC Freescale P2020 CPU

[PATCH v2 2/2] powerpc/pci: Prefer PCI domain assignment via DT 'linux,pci-domain' and alias

2022-07-06 Thread Pali Rohár
t;) Signed-off-by: Pali Rohár --- Changes in v2: * New patch --- arch/powerpc/kernel/pci-common.c | 26 +++--- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 7f959df34833..0715d7485

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-07-06 Thread Pali Rohár
On Friday 10 June 2022 17:33:32 Michael Ellerman wrote: > Pali Rohár writes: > > Since commit 63a72284b159 ("powerpc/pci: Assign fixed PHB number based on > > device-tree properties"), powerpc kernel always fallback to PCI domain > > assignment from OF / Device

[PATCH 1/5] powerpc/pci: Hide pci_device_from_OF_node() for non-powermac code

2022-07-06 Thread Pali Rohár
Function pci_device_from_OF_node() is used only in powermac code. So hide it from all other platforms as it is unsed. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/kernel/pci_32.c | 2 ++ arch/powerpc/kernel/pci_64.c | 2 ++ 3 files

[PATCH 0/5] powerpc/pci: Cleanup unused code and enable 256 PCI buses

2022-07-06 Thread Pali Rohár
s on every PCIe controller (as each is in own PCI domain) and therefore connect more PCIe cards as without these patches. Pali Rohár (5): powerpc/pci: Hide pci_device_from_OF_node() for non-powermac code powerpc/pci: Make pcibios_make_OF_bus_map() static powerpc/pci: Hide pci_create_OF_bus_map

[PATCH] powerpc/fsl-pci: Fix Class Code of PCIe Root Port

2022-07-06 Thread Pali Rohár
and still require this fix. So implement this class code fix also in kernel fsl_pci.c driver. Cc: sta...@vger.kernel.org Signed-off-by: Pali Rohár --- arch/powerpc/sysdev/fsl_pci.c | 8 arch/powerpc/sysdev/fsl_pci.h | 1 + 2 files changed, 9 insertions(+) diff --git a/arch/powerpc/sysdev

[PATCH v2 1/2] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-07-06 Thread Pali Rohár
a72284b159 ("powerpc/pci: Assign fixed PHB number based on device-tree properties") Signed-off-by: Pali Rohár --- Changes in v2: * Enable CONFIG_PPC_PCI_DOMAIN_FROM_OF_REG by default on powernv and pseries --- arch/powerpc/Kconfig | 11 +++ arch/powerpc/kernel/pci-c

[PATCH 4/5] powerpc/pci: Disable filling pci-OF-bus-map for non-chrp/powermac

2022-07-06 Thread Pali Rohár
platforms. [1] - https://lore.kernel.org/linuxppc-dev/1148016268.13249.14.camel@localhost.localdomain/ Signed-off-by: Pali Rohár --- arch/powerpc/kernel/pci_32.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel

[PATCH 2/5] powerpc/pci: Make pcibios_make_OF_bus_map() static

2022-07-06 Thread Pali Rohár
Function pcibios_make_OF_bus_map() is used only in pci_32.c file. So make it static and do not export out of pci_32.o unit. Signed-off-by: Pali Rohár --- arch/powerpc/kernel/pci_32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/pci_32.c b/arch

[PATCH 5/5] powerpc/pci: Add config option for using all 256 PCI buses

2022-07-06 Thread Pali Rohár
CONFIG_PPC_PCI_BUS_NUM_DOMAIN_DEPENDENT which enables this change. By default it is disabled. It cause that initial value of hose->first_busno is zero. Signed-off-by: Pali Rohár --- arch/powerpc/Kconfig | 11 +++ arch/powerpc/kernel/pci_32.c | 6 ++ 2 files changed, 17 insertions(+) diff --git a/arch/powe

[PATCH 3/5] powerpc/pci: Hide pci_create_OF_bus_map() for non-chrp code

2022-07-06 Thread Pali Rohár
Function pci_create_OF_bus_map() is used only in chrp code. So hide it from all other platforms as it is unsed. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/pci-bridge.h | 2 ++ arch/powerpc/kernel/pci_32.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-02 Thread Pali Rohár
On Tuesday 24 May 2022 11:39:39 Pali Rohár wrote: > gcc e500 compiler does not support -mcpu=powerpc option. When it is > specified then gcc throws compile error: > > gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ > gcc: note: valid arguments to ‘-mcpu=’ are: 8

Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler

2022-07-02 Thread Pali Rohár
On Tuesday 24 May 2022 14:52:16 Segher Boessenkool wrote: > On Tue, May 24, 2022 at 09:16:10PM +0200, Pali Rohár wrote: > > On Tuesday 24 May 2022 13:52:47 Segher Boessenkool wrote: > > > Aha. Right, because this config forces -mspe it requires one of these > > > CPU

Re: [PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-06-24 Thread Pali Rohár
On Friday 24 June 2022 13:08:59 Michael Ellerman wrote: > Pali Rohár writes: > > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > > PowerPC Freescale P2020 CPU and are based on Freescale P2020RDB-PC-A board. > > Hardware design is fully open

Re: [PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-06-24 Thread Pali Rohár
On Friday 24 June 2022 10:27:00 Pali Rohár wrote: > On Friday 24 June 2022 13:08:59 Michael Ellerman wrote: > > Pali Rohár writes: > > > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > > > PowerPC Freescale P2020 CPU and are based on Freescale

[PATCH v2] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-06-24 Thread Pali Rohár
-1x/turris-1x/ https://project.turris.cz/en/hardware.html Signed-off-by: Pali Rohár --- Changes in v2: * Sort all nodes by addresses * Fix i2c address for MCU and SPD/EEPROM PSWP --- arch/powerpc/boot/dts/turris1x.dts | 475 + 1 file changed, 475 insertions(+) create

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-06-09 Thread Pali Rohár
On Thursday 09 June 2022 11:22:55 Bjorn Helgaas wrote: > [+cc Guilherme, Michael, Ben (author of 63a72284b159 and PPC folks), thread: > https://lore.kernel.org/r/20220504175718.29011-1-p...@kernel.org] > > On Fri, May 06, 2022 at 12:33:02AM +0200, Pali Rohár wrote: > > On Thurs

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

2022-06-09 Thread Pali Rohár
On Friday 20 May 2022 14:30:02 Pali Rohár wrote: > + linux-mm > > Do you know what are requirements for kernel to support non-contiguous > memory support and what is needed to enable it for 32-bit powerpc? Any hints? > Currently powerpc arch code does not support "mem

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-06-09 Thread Pali Rohár
On Thursday 09 June 2022 12:10:22 Bjorn Helgaas wrote: > On Thu, Jun 09, 2022 at 06:27:25PM +0200, Pali Rohár wrote: > > On Thursday 09 June 2022 11:22:55 Bjorn Helgaas wrote: > > > [+cc Guilherme, Michael, Ben (author of 63a72284b159 and PPC folks), > > > thread: >

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-06-09 Thread Pali Rohár
On Thursday 09 June 2022 14:34:51 Bjorn Helgaas wrote: > On Thu, Jun 09, 2022 at 08:05:26PM +0200, Pali Rohár wrote: > > On Thursday 09 June 2022 12:10:22 Bjorn Helgaas wrote: > > > On Thu, Jun 09, 2022 at 06:27:25PM +0200, Pali Rohár wrote: > > > > On Thursday 09 Ju

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-06-10 Thread Pali Rohár
On Friday 10 June 2022 17:33:32 Michael Ellerman wrote: > If you have scripts that are looking for certain devices they can use > the vendor/device fields in sysfs to find the actual devices they want, > not just whatever happens to be at :01:00.0. This does not work if you have more cards

Re: [PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-06-09 Thread Pali Rohár
On Tuesday 24 May 2022 11:23:32 Pali Rohár wrote: > On Wednesday 11 May 2022 16:37:12 Pali Rohár wrote: > > CZ.NIC Turris 1.0 and 1.1 are open source routers, they have dual-core > > PowerPC Freescale P2020 CPU and are based on Freescale P2020RDB-PC-A board. > > Hardware

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-06-09 Thread Pali Rohár
On Tuesday 24 May 2022 11:17:56 Pali Rohár wrote: > On Friday 06 May 2022 00:33:02 Pali Rohár wrote: > > On Thursday 05 May 2022 15:10:01 Tyrel Datwyler wrote: > > > On 5/5/22 02:31, Pali Rohár wrote: > > > > Hello! > > > > > > > > O

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

2022-05-20 Thread Pali Rohár
On Friday 20 May 2022 13:41:04 Ash Logan wrote: > On 14/5/22 08:43, Pali Rohár wrote: > > On Wednesday 02 March 2022 15:44:05 Ash Logan wrote: > >> pgtable_32.c:mapin_ram loops over each valid memory range, which means > >> non-contiguous memory just works. > >

Re: [PATCH v2 1/2] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-07-16 Thread Pali Rohár
On Friday 15 July 2022 15:32:56 Guilherme G. Piccoli wrote: > On 15/07/2022 14:11, Pali Rohár wrote: > > [...] > >> > >> I found this sentence a bit weird, "in the similar way like it is doing > >> kernel for other architectures", but other than that:

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-25 Thread Pali Rohár
On Monday 25 July 2022 18:20:01 Michael Ellerman wrote: > Pali Rohár writes: > > On Saturday 23 July 2022 14:42:22 Christophe Leroy wrote: > >> Le 22/07/2022 à 11:09, Pali Rohár a écrit : > >> > Trying to boot mainline Linux kernel v5.15+, including current ver

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-25 Thread Pali Rohár
On Monday 25 July 2022 16:20:49 Christophe Leroy wrote: > Le 25/07/2022 à 14:52, Pali Rohár a écrit : > > On Monday 25 July 2022 18:20:01 Michael Ellerman wrote: > >> Pali Rohár writes: > >>> On Saturday 23 July 2022 14:42:22 Christophe Leroy wrote: > >&

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-26 Thread Pali Rohár
On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: > On Mon, Jul 25, 2022 at 10:10:09PM +0200, Pali Rohár wrote: > > On Monday 25 July 2022 16:20:49 Christophe Leroy wrote: > > Now I did again clean test with same Debian 10 cross compiler. > > > > $ git clone

Re: [PATCH 5/5] powerpc/pci: Add config option for using all 256 PCI buses

2022-07-26 Thread Pali Rohár
On Tuesday 26 July 2022 21:02:22 Michael Ellerman wrote: > Pali Rohár writes: > > On Wednesday 06 July 2022 12:43:08 Pali Rohár wrote: > >> By default on PPC32 are PCI bus numbers unique across all PCI domains. > >> So system could have only 256 PCI buses independ

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-26 Thread Pali Rohár
On Tuesday 26 July 2022 08:44:05 Segher Boessenkool wrote: > On Tue, Jul 26, 2022 at 11:02:59AM +0200, Arnd Bergmann wrote: > > On Tue, Jul 26, 2022 at 10:34 AM Pali Rohár wrote: > > > On Monday 25 July 2022 16:54:16 Segher Boessenkool wrote: > > > > The EH field

[PATCH] powerpc: dts: turris1x.dts: Add CPLD reboot node

2022-07-13 Thread Pali Rohár
CPLD firmware can reset board by writing value 0x01 at CPLD memory offset 0x0d. Define syscon-reboot node for this reset support. Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers") Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 10 +++

Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-22 Thread Pali Rohár
Hello! Trying to boot mainline Linux kernel v5.15+, including current version from master branch, on Freescale P2020 does not work. Kernel does not print anything to serial console, seems that it does not work and after timeout watchdog reset the board. I run git bisect and it found following

Re: Regression: Linux v5.15+ does not boot on Freescale P2020

2022-07-23 Thread Pali Rohár
Hello, On Saturday 23 July 2022 14:42:22 Christophe Leroy wrote: > Hello, > > Le 22/07/2022 à 11:09, Pali Rohár a écrit : > > Hello! > > > > Trying to boot mainline Linux kernel v5.15+, including current version > > from master branch, on Freescale P2020 does no

Re: [PATCH v2 1/2] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-07-15 Thread Pali Rohár
On Friday 15 July 2022 11:55:04 Guilherme G. Piccoli wrote: > On 06/07/2022 07:21, Pali Rohár wrote: > > [...] > > Fix this issue and introduce a new option CONFIG_PPC_PCI_DOMAIN_FROM_OF_REG. > > When this option is disabled then powerpc kernel would assign PCI domains > &

[PATCH] powerpc/85xx: P2020: Add law_trgt_if property to PCIe DT nodes

2022-05-04 Thread Pali Rohár
allows to share P2020 DTS files between Linux kernel and U-Boot. Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi b/arch/powerpc/boot/dts/fsl/p2020si-post.dtsi index

[PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-05-04 Thread Pali Rohár
HB number based on device-tree properties") Signed-off-by: Pali Rohár --- arch/powerpc/Kconfig | 10 ++ arch/powerpc/kernel/pci-common.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 174edabb74fa.

[PATCH] powerpc/85xx: P2020: Add fsl,mpc8548-pmc node

2022-05-06 Thread Pali Rohár
P2020 also contains Power Management Controller and their registers at offset 0xe0070 compatible with mpc8548. So add PMC node into DTS include file fsl/p2020si-post.dtsi Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/fsl/p2020si-post.dtsi | 5 + 1 file changed, 5 insertions(+) diff

Re: L2 SRAM on PowerPC e500 and Caching-inhibited bit

2022-04-29 Thread Pali Rohár
On Friday 29 April 2022 22:57:03 Michael Ellerman wrote: > Pali Rohár writes: > > Hello! > > > > I started playing with PowerPC e500 architecture, it is something really > > new for me and I suspect that I found a bug in U-Boot code which > > configures L2 cach

[PATCH] powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers

2022-05-11 Thread Pali Rohár
-1x/turris-1x/ https://project.turris.cz/en/hardware.html Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 470 + 1 file changed, 470 insertions(+) create mode 100644 arch/powerpc/boot/dts/turris1x.dts diff --git a/arch/powerpc/boot/dts/turris1x.dts

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-05-05 Thread Pali Rohár
Hello! On Thursday 05 May 2022 07:16:40 Christophe Leroy wrote: > Le 04/05/2022 à 19:57, Pali Rohár a écrit : > > Since commit 63a72284b159 ("powerpc/pci: Assign fixed PHB number based on > > device-tree properties"), powerpc kernel always fallback to PCI domain > &

Re: [PATCH] powerpc/85xx: P2020: Add law_trgt_if property to PCIe DT nodes

2022-05-05 Thread Pali Rohár
On Thursday 05 May 2022 10:40:09 Rob Herring wrote: > On Wed, May 4, 2022 at 1:09 PM Pali Rohár wrote: > > > > DT law_trgt_if property defines Local Access Window Target Interface. > > Documentation? I was not able to find it :-( So the only documentation for me was the sou

Re: [PATCH] powerpc/pci: Add config option for using OF 'reg' for PCI domain

2022-05-05 Thread Pali Rohár
On Thursday 05 May 2022 15:10:01 Tyrel Datwyler wrote: > On 5/5/22 02:31, Pali Rohár wrote: > > Hello! > > > > On Thursday 05 May 2022 07:16:40 Christophe Leroy wrote: > >> Le 04/05/2022 à 19:57, Pali Rohár a écrit : > >>> Since commit 63a72284b159 (&

Re: [PATCH] powerpc/pci: Fix PHB numbering when using opal-phbid

2022-08-02 Thread Pali Rohár
gic incorrectly. > Fix the logic by only doing the ret >= 0 check in the of_alias_get_id() > case. > > Fixes: 0fe1e96fef0a ("powerpc/pci: Prefer PCI domain assignment via DT > 'linux,pci-domain' and alias") > Signed-off-by: Michael Ellerman Your change should fix this issue, s

Re: [PATCH] powerpc/pci: Enable PCI domains in /proc when PCI bus numbers are not unique

2022-08-25 Thread Pali Rohár
On Thursday 25 August 2022 17:49:28 Michael Ellerman wrote: > Pali Rohár writes: > > On 32-bit powerpc systems with more PCIe controllers and more PCI domains, > > where on more PCI domains are same PCI numbers, when kernel is compiled > >

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

2022-08-29 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

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

2022-08-27 Thread Pali Rohár
powerpc Makefile in commit 446cda1b21d9 ("powerpc/32: Don't always pass -mcpu=powerpc to the compiler"). Fixes: 40a75584e526 ("powerpc/boot: Build wrapper for an appropriate CPU") Cc: sta...@vger.kernel.org Signed-off-by: Pali Rohár --- arch/powerpc/boot/Makefile | 8 +++

[PATCH] powerpc/boot: Explicitly disable usage of SPE instructions

2022-08-27 Thread Pali Rohár
Signed-off-by: Pali Rohár --- arch/powerpc/boot/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index f56a5f90a5d8..2247374c4e70 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -34,6 +34,7 @@ endif

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

2022-08-27 Thread Pali Rohár
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ár --- arch/powerpc/boot/dts/turris1x.dts | 4 ++-- 1 file changed, 2 insert

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

2022-08-19 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

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

2022-08-19 Thread Pali Rohár
On Friday 19 August 2022 15:34:14 Randy Dunlap wrote: > Hi-- > > On 8/19/22 14:12, Pali Rohár wrote: > > Currently powerpc early debugging contains lot of platform specific > > options, but does not support standard UART / serial 16550 console. > > > > La

[PATCH 4/7] powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks

2022-08-19 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 | 97 + 1 file changed, 30 insertions(+), 67 deletions(-) diff

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

2022-08-19 Thread Pali Rohár
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 providing one unified machine description for all P2020 boards. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Makefile

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

2022-08-19 Thread Pali Rohár
. Kernel during booting correctly detects P2020 and prints: [0.00] Using Freescale P2020 machine description Pali Rohár (7): 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

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

2022-08-19 Thread Pali Rohár
CONFIG_P2020 to be enabled by default when one of those option is enabled. This allows to compile support for P2020 boards without need to have enabled support for older mpc85xx boards. And to compile kernel for old mpc85xx boards without having enabled support for new P2020 boards. Signed-off-by: Pali

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

2022-08-19 Thread Pali Rohár
-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/p2020.c | 83 +++-- 1 file changed, 19 insertions(+), 64 deletions(-) diff --git a/arch/powerpc/platforms/85xx/p2020.c b/arch/powerpc/platforms/85xx/p2020.c index d327e6c9b838..1a3ffeb47dfc 100644 --- a/arch/powerpc

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

2022-08-19 Thread Pali Rohár
CONFIG_PPC_EARLY_DEBUG_16550_STRIDE. With this change it is possible to debug powerpc machine descriptor code. For example this early debugging code can print on serial console also "No suitable machine description found" error which is done before legacy_serial.c code. Signed-off-by:

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

2022-08-19 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 7/7] powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string

2022-08-19 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 v1 2/5] powerpc/32: Don't always pass -mcpu=powerpc to the compiler

2022-08-18 Thread Pali Rohár
** [arch/powerpc/boot/Makefile:231: arch/powerpc/boot/crt0.o] Error 1 > Reported-by: Pali Rohár > Tested-by: Pali Rohár > Reviewed-by: Arnd Bergmann > Cc: Segher Boessenkool > Signed-off-by: Christophe Leroy > --- > arch/powerpc/Makefile | 26 +--

Re: [PATCH v1 2/5] powerpc/32: Don't always pass -mcpu=powerpc to the compiler

2022-08-20 Thread Pali Rohár
On Thursday 18 August 2022 19:46:34 Pali Rohár wrote: > On Monday 11 July 2022 16:19:30 Christophe Leroy wrote: > > Since commit 4bf4f42a2feb ("powerpc/kbuild: Set default generic > > machine type for 32-bit compile"), when building a 32 bits kernel > > with a

[PATCH] powerpc/pci: Enable PCI domains in /proc when PCI bus numbers are not unique

2022-08-20 Thread Pali Rohár
domain dependent). Fixes: 566356813082 ("powerpc/pci: Add config option for using all 256 PCI buses") Signed-off-by: Pali Rohár --- arch/powerpc/kernel/pci_32.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/powerpc/kernel/pci_32.c b/arch/powerpc/kernel/pci_32.c ind

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

2022-08-20 Thread Pali Rohár
("powerpc: dts: turris1x.dts: Add CPLD reboot node") Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/powerpc/boot/dts/turris1x.dts b/arch/powerpc/boot/dts/turris1x.dts index 69

[PATCH 2/3] power: reset: syscon-reboot: Add support for specifying priority

2022-08-20 Thread Pali Rohár
Read new optional device tree property priority for specifying priority level of reset handler. Default value is 192 as before. Signed-off-by: Pali Rohár --- drivers/power/reset/syscon-reboot.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/power/reset/syscon

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

2022-08-20 Thread Pali Rohár
This new optional priority property allows to specify custom priority level of reset device. Default level was always 192. Signed-off-by: Pali Rohár --- .../devicetree/bindings/power/reset/syscon-reboot.yaml| 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree

[PATCH] powerpc/boot: Fix compilation of uImage for e500 platforms

2022-08-20 Thread Pali Rohár
d applying appropriate -mcpu options for building uImage boot code. Fixes: 40a75584e526 ("powerpc/boot: Build wrapper for an appropriate CPU") Cc: sta...@vger.kernel.org Signed-off-by: Pali Rohár --- arch/powerpc/boot/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git

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

2022-08-20 Thread Pali Rohár
candidate for primary PCI host bridge (if there is no choice) is selected arbitrary. Signed-off-by: Pali Rohár --- arch/powerpc/sysdev/fsl_pci.c | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/powerpc/sysdev/fsl_pci.c b/arch/powerpc/sysdev/fsl_pci.c index 1011cfea2e32..e4b703943

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

2022-08-22 Thread Pali Rohár
On Monday 22 August 2022 07:47:28 Rob Herring wrote: > On Sat, Aug 20, 2022 at 12:29:23PM +0200, Pali Rohár wrote: > > This new optional priority property allows to specify custom priority level > > of reset device. Default level was always 192. > > Why do we need/want th

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

2022-08-22 Thread Pali Rohár
On Monday 22 August 2022 14:13:30 Christophe Leroy wrote: > >> CONFIG_PPC_EARLY_DEBUG_16550=y > >> # CONFIG_PPC_EARLY_DEBUG_MEMCONS is not set > >> CONFIG_PPC_EARLY_DEBUG_16550_PHYSADDR= > >> CONFIG_PPC_EARLY_DEBUG_16550_STRIDE=1 > >> > >> which then causes a kconfig prompt when starting > >> the

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

2022-08-22 Thread Pali Rohár
On Monday 22 August 2022 14:25:57 Christophe Leroy wrote: > Le 19/08/2022 à 23:12, Pali Rohár a écrit : > > Currently powerpc early debugging contains lot of platform specific > > options, but does not support standard UART / serial 16550 console. > > > > Later le

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

2022-08-30 Thread Pali Rohár
This new optional priority property allows to specify custom priority level of reset device. Default level was always 192. Signed-off-by: Pali Rohár --- Changes in v2: * Change sint32 to int32 * Add default --- .../devicetree/bindings/power/reset/syscon-reboot.yaml | 5 + 1 file

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

2022-08-30 Thread Pali Rohár
their purpose by removing possible misleading substring "rootfs" from these labels. Fixes: 54c15ec3b738 ("powerpc: dts: Add DTS file for CZ.NIC Turris 1.x routers") Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 10 +- 1 file changed, 5 insert

[PATCH v2 2/3] power: reset: syscon-reboot: Add support for specifying priority

2022-08-30 Thread Pali Rohár
Read new optional device tree property priority for specifying priority level of reset handler. Default value is 192 as before. Signed-off-by: Pali Rohár --- drivers/power/reset/syscon-reboot.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/power/reset/syscon

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

2022-08-30 Thread Pali Rohár
("powerpc: dts: turris1x.dts: Add CPLD reboot node") Signed-off-by: Pali Rohár --- arch/powerpc/boot/dts/turris1x.dts | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/powerpc/boot/dts/turris1x.dts b/arch/powerpc/boot/dts/turris1x.dts index 69

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

2022-08-31 Thread Pali Rohár
. Signed-off-by: Pali Rohár --- Changes in v3: * Add explanation into commit message Changes in v2: * Change sint32 to int32 * Add default --- .../devicetree/bindings/power/reset/syscon-reboot.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/power

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

2022-08-31 Thread Pali Rohár
On Wednesday 31 August 2022 10:31:22 Krzysztof Kozlowski wrote: > On 31/08/2022 02:00, Pali Rohár wrote: > > This new optional priority property allows to specify custom priority level > > of reset device. Default level was always 192. > > You still did not explain why do w

Re: [PATCH] powerpc/pci: Enable PCI domains in /proc when PCI bus numbers are not unique

2022-09-01 Thread Pali Rohár
On Thursday 01 September 2022 13:53:56 Michael Ellerman wrote: > Pali Rohár writes: > > On Thursday 25 August 2022 17:49:28 Michael Ellerman wrote: > >> Pali Rohár writes: > >> > On 32-bit powerpc systems with more PCIe controllers and more PCI > >> >

[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

[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

  1   2   3   >