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
>
> 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
>
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
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
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
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
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:
> >
> >
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
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
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
. 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
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/
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
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
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
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)
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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:
>
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
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
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
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
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.
> >
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:
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
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:
> >&
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
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
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
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 +++
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
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
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
> &
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
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.
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
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
-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
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
> &
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
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 (&
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
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
> >
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
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 +++
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
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
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
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
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
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
.
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
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
-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
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:
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
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
** [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 +--
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
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
("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
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
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
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
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
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
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
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
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
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
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
("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
.
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
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
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
> >> >
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
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 - 100 of 275 matches
Mail list logo