Re: [PATCH v5 0/7] fs: introduce file_getattr and file_setattr syscalls

2025-05-21 Thread Pali Rohár
On Wednesday 21 May 2025 10:48:26 Andrey Albershteyn wrote: > On 2025-05-19 21:37:04, Dave Chinner wrote: > > On Thu, May 15, 2025 at 12:33:31PM +0200, Amir Goldstein wrote: > > > On Thu, May 15, 2025 at 11:02 AM Christian Brauner > > > wrote: > > > > > > > > On Tue, May 13, 2025 at 11:53:23AM +0

Re: [PATCH v4 0/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-27 Thread Pali Rohár
On Thursday 27 March 2025 21:57:34 Amir Goldstein wrote: > On Thu, Mar 27, 2025 at 8:26 PM Pali Rohár wrote: > > > > On Thursday 27 March 2025 12:47:02 Amir Goldstein wrote: > > > On Sun, Mar 23, 2025 at 11:32 AM Pali Rohár wrote: > > > > > > > >

Re: [PATCH v4 0/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-27 Thread Pali Rohár
On Thursday 27 March 2025 12:47:02 Amir Goldstein wrote: > On Sun, Mar 23, 2025 at 11:32 AM Pali Rohár wrote: > > > > On Sunday 23 March 2025 09:45:06 Amir Goldstein wrote: > > > On Fri, Mar 21, 2025 at 8:50 PM Andrey Albershteyn > > > wrote: > > >

Re: [PATCH v4 0/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-23 Thread Pali Rohár
hange the attributes. This, in turn, prevents userspace > > from re-creating quota project on these existing files. > > > > Christian, if this get in some mergeable state, please don't merge it > > yet. Amir suggested these syscalls better to use updated struct fsxattr > &g

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-02 Thread Pali Rohár
On Friday 28 February 2025 09:30:38 Andrey Albershteyn wrote: > On 2025-02-21 20:15:24, Amir Goldstein wrote: > > On Fri, Feb 21, 2025 at 7:13 PM Darrick J. Wong wrote: > > > > > > On Tue, Feb 11, 2025 at 06:22:47PM +0100, Andrey Albershteyn wrote: > > > > From: Andrey Albershteyn > > > > > > > >

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-25 Thread Pali Rohár
On Tuesday 25 February 2025 07:59:26 Darrick J. Wong wrote: > On Tue, Feb 25, 2025 at 12:24:08PM +0100, Christian Brauner wrote: > > On Tue, Feb 25, 2025 at 11:40:51AM +0100, Arnd Bergmann wrote: > > > On Tue, Feb 25, 2025, at 11:22, Christian Brauner wrote: > > > > On Tue, Feb 25, 2025 at 09:02:04

Re: [PATCH] powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node

2023-07-02 Thread Pali Rohár
On Saturday 10 June 2023 09:35:21 Pali Rohár wrote: > On Friday 05 May 2023 19:28:18 Pali Rohár wrote: > > Freescale PCIe controllers on their PCIe Root Ports do not have any > > mappable PCI BAR allocate from PCIe MEM. > > > > Information about 1MB window on BAR0 of PC

Re: [PATCH] powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node

2023-06-10 Thread Pali Rohár
On Friday 05 May 2023 19:28:18 Pali Rohár wrote: > Freescale PCIe controllers on their PCIe Root Ports do not have any > mappable PCI BAR allocate from PCIe MEM. > > Information about 1MB window on BAR0 of PCIe Root Port was misleading > because Freescale PCIe controllers have a

Re: [PATCH] powerpc: allow PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y

2023-05-16 Thread Pali Rohár
the build error by allowing PPC_EARLY_DEBUG_CPM only when > SERIAL_CPM=y. > > Fixes: c374e00e17f1 ("[POWERPC] Add early debug console for CPM serial > ports.") > Signed-off-by: Randy Dunlap > Cc: Scott Wood > Cc: Kumar Gala > Cc: "Pali Rohár" > Cc: Michael

Re: [RFC PATCH] powerpc: udbg: export udbg_putc

2023-05-13 Thread Pali Rohár
On Saturday 13 May 2023 15:53:19 Randy Dunlap wrote: > Hi Pali, > > On 5/13/23 02:13, Pali Rohár wrote: > > On Friday 12 May 2023 22:58:04 Randy Dunlap wrote: > >> In a randconfig with CONFIG_SERIAL_CPM=m and > >> CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a

Re: [RFC PATCH] powerpc: udbg: export udbg_putc

2023-05-13 Thread Pali Rohár
_CPM > + depends on SERIAL_CPM=y > > Signed-off-by: Randy Dunlap > Cc: Michael Ellerman > Cc: Nicholas Piggin > Cc: Christophe Leroy > Cc: linuxppc-dev@lists.ozlabs.org > Cc: Arnd Bergmann > Cc: "Pali Rohár" > --- > arch/powerpc/kernel/udbg.c |

Re: [PATCH AUTOSEL 6.3 6/7] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-05-09 Thread Pali Rohár
of function which is used when ULI is disabled. > cheers > > > On 5/8/23 20:54, Sasha Levin wrote: > >> From: Pali Rohár > >> > >> [ Upstream commit 22fdf79171e8509db54599fd2c05ef0022ee83f5 ] > >> > >> ULI1575 PCIe south bridge exists only on

[PATCH] powerpc: dts: turris1x.dts: Fix PCIe MEM size for pci2 node

2023-05-05 Thread Pali Rohár
and c001-c0011fff ranges are used. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/dts/turri

Re: [PATCH -next?] powerpc/fsl_uli1575: fix kconfig warnings and build errors

2023-04-29 Thread Pali Rohár
t; > Fixes: 22fdf79171e8 ("powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 > support") > Signed-off-by: Randy Dunlap > Cc: Pali Rohár > Cc: Michael Ellerman > Cc: linuxppc-dev@lists.ozlabs.org > --- > arch/powerpc/platforms/Kconfig |1 + > 1 file c

[PATCH v3 6/8] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-04-08 Thread Pali Rohár
on platforms on which driver does not compile. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig index d41dad227de8..608ac0290e3a 100644 --- a/arch

[PATCH v3 7/8] powerpc/86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment

2023-04-08 Thread Pali Rohár
After calling fsl_pci_assign_primary(), it is possible to use uli_init() to conditionally initialize ppc_md.pci_exclude_device callback based on the uli1575 detection. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 5 + 1 file changed, 1 insertion(+), 4 deletions

[PATCH v3 8/8] powerpc/fsl_uli1575: Mark uli_exclude_device() as static

2023-04-08 Thread Pali Rohár
Function uli_exclude_device() is not used outside of the fsl_uli1575.c source file anymore. So mark it as static and remove public prototype. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 3 --- arch/powerpc/platforms/fsl_uli1575.c | 2 +- 2 files changed, 1 insertion

[PATCH v3 5/8] powerpc/85xx: mpc85xx_rdb: Do not automatically select FSL_ULI1575

2023-04-08 Thread Pali Rohár
Boards provided by CONFIG_MPC85xx_RDB option do not initialize fsl_uli1575.c driver. So remove explicit select dependency on it. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch

[PATCH v3 3/8] powerpc/fsl_uli1575: Simplify uli_exclude_device() usage

2023-04-08 Thread Pali Rohár
Function uli_exclude_device() is called only from mpc86xx_exclude_device() and mpc85xx_exclude_device() functions. Both those functions are same, so merge its logic directly into the uli_exclude_device() function. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 13

[PATCH v3 1/8] powerpc/fsl_uli1575: Misc cleanup

2023-04-08 Thread Pali Rohár
Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 9 + arch/powerpc/platforms/85xx/mpc85xx_ds.c | 4 +--- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 4 +--- arch/powerpc/platforms/fsl_uli1575.c | 6 +++--- 4 files changed, 14 insertions(+), 9 deletions

[PATCH v3 4/8] powerpc/85xx: mpc85xx_ds: Move uli_init() code into its own driver file

2023-04-08 Thread Pali Rohár
Move uli_init() function into existing driver fsl_uli1575.c file in order to share its code between more platforms and board files. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 2 ++ arch/powerpc/platforms/85xx/mpc85xx_ds.c | 23 +-- arch/powerpc

[PATCH v3 0/8] powerpc/fsl_uli1575: Cleanups

2023-04-08 Thread Pali Rohár
ed compile error in the sixth patch when driver was explicitly enabled on unsupported platform Changes in v2: * Fixed compile error in the first patch when PCI is disabled Christophe Leroy (1): powerpc/fsl_uli1575: Misc cleanup Pali Rohár (7): powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_excl

[PATCH v3 2/8] powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_exclude_device() function

2023-04-08 Thread Pali Rohár
Function mpc85xx_exclude_device() is installed and used only when pci_with_uli is fsl_pci_primary. So replace check for pci_with_uli by fsl_pci_primary in mpc85xx_exclude_device() and move pci_with_uli variable declaration into function mpc85xx_ds_uli_init() where it is used. Signed-off-by: Pali

Re: [PATCH 1/8] powerpc/fsl_uli1575: Misc cleanup

2023-04-08 Thread Pali Rohár
On Saturday 08 April 2023 23:24:07 kernel test robot wrote: > Hi Pali, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on powerpc/next] > [also build test ERROR on powerpc/fixes linus/master v6.3-rc5 next-20230406] > [If your patch is applied to the wrong git

[PATCH v2 8/8] powerpc/fsl_uli1575: Mark uli_exclude_device() as static

2023-04-08 Thread Pali Rohár
Function uli_exclude_device() is not used outside of the fsl_uli1575.c source file anymore. So mark it as static and remove public prototype. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 3 --- arch/powerpc/platforms/fsl_uli1575.c | 2 +- 2 files changed, 1 insertion

[PATCH v2 7/8] powerpc/mpc86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment

2023-04-08 Thread Pali Rohár
After calling fsl_pci_assign_primary(), it is possible to use uli_init() to conditionally initialize ppc_md.pci_exclude_device callback based on the uli1575 detection. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 5 + 1 file changed, 1 insertion(+), 4 deletions

[PATCH v2 6/8] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-04-08 Thread Pali Rohár
ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH v2 5/8] powerpc/mpc85xx: mpc85xx_rdb: Do not automatically select FSL_ULI1575

2023-04-08 Thread Pali Rohár
Boards provided by CONFIG_MPC85xx_RDB option do not initialize fsl_uli1575.c driver. So remove explicit select dependency on it. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch

[PATCH v2 4/8] powerpc/85xx: mpc85xx_ds: Move uli_init() code into its own driver file

2023-04-08 Thread Pali Rohár
Move uli_init() function into existing driver fsl_uli1575.c file in order to share its code between more platforms and board files. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 2 ++ arch/powerpc/platforms/85xx/mpc85xx_ds.c | 23 +-- arch/powerpc

[PATCH v2 2/8] powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_exclude_device() function

2023-04-08 Thread Pali Rohár
Function mpc85xx_exclude_device() is installed and used only when pci_with_uli is fsl_pci_primary. So replace check for pci_with_uli by fsl_pci_primary in mpc85xx_exclude_device() and move pci_with_uli variable declaration into function mpc85xx_ds_uli_init() where it is used. Signed-off-by: Pali

[PATCH v2 0/8] powerpc/fsl_uli1575: Cleanups

2023-04-08 Thread Pali Rohár
ed compile error in the first patch when PCI is disabled Christophe Leroy (1): powerpc/fsl_uli1575: Misc cleanup Pali Rohár (7): powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_exclude_device() function powerpc/fsl_uli1575: Simplify uli_exclude_device() usage powerpc/85xx: mpc85xx_ds: Move uli_i

[PATCH v2 1/8] powerpc/fsl_uli1575: Misc cleanup

2023-04-08 Thread Pali Rohár
Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 9 + arch/powerpc/platforms/85xx/mpc85xx_ds.c | 4 +--- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 4 +--- arch/powerpc/platforms/fsl_uli1575.c | 6 +++--- 4 files changed, 14 insertions(+), 9 deletions

[PATCH v2 3/8] powerpc/fsl_uli1575: Simplify uli_exclude_device() usage

2023-04-08 Thread Pali Rohár
Function uli_exclude_device() is called only from mpc86xx_exclude_device() and mpc85xx_exclude_device() functions. Both those functions are same, so merge its logic directly into the uli_exclude_device() function. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 13

[PATCH v5 12/13] powerpc/85xx: p2020: Enable boards by new config option CONFIG_PPC_P2020

2023-04-08 Thread Pali Rohár
: Pali Rohár Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/85xx/Kconfig | 22 ++ arch/powerpc/platforms/85xx/Makefile | 5 +++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx

[PATCH v5 10/13] powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks

2023-04-08 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 Signed-off-by: Christophe Leroy --- Changes in v5: * Make mpc85xx_ds_pic_init() and mpc85xx_ds_setup_arch() static too. --- arch

[PATCH v5 09/13] powerpc/85xx: mpc85xx_ds: Move i8259 code into own file

2023-04-08 Thread Pali Rohár
In order to share mpc85xx i8259 code between DS and P2020. Prefix i8259 debug and error messages by i8259 word. Signed-off-by: Pali Rohár Signed-off-by: Christophe Leroy --- Changes in v5: * Add prefix for err/dbg messages * Fix commit message * Reduce includes --- arch/powerpc/platforms/85xx

[PATCH v5 07/13] powerpc/85xx: p2020: Move all P2020 DS machine descriptions to p2020.c

2023-04-08 Thread Pali Rohár
This moves P2020 DS machine descriptions into new p2020.c source file. This is preparation for code de-duplication and providing one unified machine description for all P2020 boards. Signed-off-by: Pali Rohár Signed-off-by: Christophe Leroy --- Changes in v5: * Fix commit message * Reduce

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

2023-04-08 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 Signed-off-by: Christophe Leroy --- arch/powerpc/boot/dts/turri

[PATCH v5 08/13] powerpc/85xx: p2020: Move all P2020 RDB machine descriptions to p2020.c

2023-04-08 Thread Pali Rohár
This moves P2020 RDB machine descriptions into new p2020.c source file. This is preparation for code de-duplication and providing one unified machine description for all P2020 boards. Signed-off-by: Pali Rohár Signed-off-by: Christophe Leroy --- Changes in v5: * Fix commit message * Reduce

[PATCH v5 11/13] powerpc/85xx: p2020: Define just one machine description

2023-04-08 Thread Pali Rohár
-off-by: Pali Rohár Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/85xx/p2020.c | 57 ++--- 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/arch/powerpc/platforms/85xx/p2020.c b/arch/powerpc/platforms/85xx/p2020.c index 0e7be454b2de..0e4d715145af

[PATCH v5 05/13] powerpc/85xx: Remove #ifdefs CONFIG_PPC_I8259 in mpc85xx_ds

2023-04-08 Thread Pali Rohár
From: Christophe Leroy All necessary items are declared all the time, no need to use a #ifdef CONFIG_PPC_I8259. Refactor CONFIG_PPC_I8259 actions into a dedicated init function. Signed-off-by: Christophe Leroy Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 37

[PATCH v5 06/13] powerpc/85xx: Remove #ifdef CONFIG_QUICC_ENGINE in mpc85xx_rdb

2023-04-08 Thread Pali Rohár
From: Christophe Leroy mpc85xx_qe_par_io_init() is a stub when CONFIG_QUICC_ENGINE is not set. CONFIG_UCC_GETH and CONFIG_SERIAL_QE depend on CONFIG_QUICC_ENGINE. Remove #ifdef CONFIG_QUICC_ENGINE Signed-off-by: Christophe Leroy Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx

[PATCH v5 04/13] powerpc/85xx: mpc85xx_{ds/rdb} replace prink by pr_xxx macro

2023-04-08 Thread Pali Rohár
From: Christophe Leroy Use pr_debug() instead of printk(KERN_DEBUG Use pr_err() instead of printk(KERN_ERR Use pr_info() instead of printk(KERN_INFO or printk(" Signed-off-by: Christophe Leroy Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 6 +++--- arch/po

[PATCH v5 02/13] powerpc/85xx: mpc85xx_{ds/rdb} compact the call to mpic_alloc()

2023-04-08 Thread Pali Rohár
From: Christophe Leroy Reduce number of lines in the call to mpic_alloc(). Signed-off-by: Christophe Leroy Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 18 ++ arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 16 +--- 2 files changed, 11

[PATCH v5 00/13] powerpc/85xx: p2020: Create one unified machine description

2023-04-08 Thread Pali Rohár
mpic_alloc() powerpc/85xx: mpc85xx_{ds/rdb} replace BUG_ON() by WARN_ON() powerpc/85xx: mpc85xx_{ds/rdb} replace prink by pr_xxx macro powerpc/85xx: Remove #ifdefs CONFIG_PPC_I8259 in mpc85xx_ds powerpc/85xx: Remove #ifdef CONFIG_QUICC_ENGINE in mpc85xx_rdb Pali Rohár (7): powerp

[PATCH v5 03/13] powerpc/85xx: mpc85xx_{ds/rdb} replace BUG_ON() by WARN_ON()

2023-04-08 Thread Pali Rohár
From: Christophe Leroy No need to BUG() in case mpic_alloc() fails. Use WARN_ON(). Signed-off-by: Christophe Leroy Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 4 +++- arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 4 +++- 2 files changed, 6 insertions(+), 2

[PATCH v5 01/13] powerpc/85xx: Remove DBG() macro

2023-04-08 Thread Pali Rohár
From: Christophe Leroy DBG() macro is defined at three places while used only one time at one place. Replace its only use by a pr_debug() and remove the macro. Signed-off-by: Christophe Leroy Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 10 +- arch

[PATCH 8/8] powerpc/fsl_uli1575: Mark uli_exclude_device() as static

2023-04-08 Thread Pali Rohár
Function uli_exclude_device() is not used outside of the fsl_uli1575.c source file anymore. So mark it as static and remove public prototype. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 2 -- arch/powerpc/platforms/fsl_uli1575.c | 2 +- 2 files changed, 1 insertion

[PATCH 7/8] powerpc/mpc86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment

2023-04-08 Thread Pali Rohár
After calling fsl_pci_assign_primary(), it is possible to use uli_init() to conditionally initialize ppc_md.pci_exclude_device callback based on the uli1575 detection. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 5 + 1 file changed, 1 insertion(+), 4 deletions

[PATCH 5/8] powerpc/mpc85xx: mpc85xx_rdb: Do not automatically select FSL_ULI1575

2023-04-08 Thread Pali Rohár
Boards provided by CONFIG_MPC85xx_RDB option do not initialize fsl_uli1575.c driver. So remove explicit select dependency on it. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch

[PATCH 6/8] powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support

2023-04-08 Thread Pali Rohár
ULI1575 PCIe south bridge exists only on some Freescale boards. Allow to disable CONFIG_FSL_ULI1575 symbol when it is not explicitly selected and only implied. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH 4/8] powerpc/85xx: mpc85xx_ds: Move uli_init() code into its own driver file

2023-04-08 Thread Pali Rohár
Move uli_init() function into existing driver fsl_uli1575.c file in order to share its code between more platforms and board files. Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 2 ++ arch/powerpc/platforms/85xx/mpc85xx_ds.c | 23 +-- arch/powerpc

[PATCH 0/8] powerpc/fsl_uli1575: Cleanups

2023-04-08 Thread Pali Rohár
This patch series contains cleanups for fsl_uli1575 driver. This patch series is prerequisity for another patch series: "powerpc/85xx: p2020: Create one unified machine description" Christophe Leroy (1): powerpc/fsl_uli1575: Misc cleanup Pali Rohár (7): powerpc/85xx: mpc85xx_ds

[PATCH 2/8] powerpc/85xx: mpc85xx_ds: Simplify mpc85xx_exclude_device() function

2023-04-08 Thread Pali Rohár
Function mpc85xx_exclude_device() is installed and used only when pci_with_uli is fsl_pci_primary. So replace check for pci_with_uli by fsl_pci_primary in mpc85xx_exclude_device() and move pci_with_uli variable declaration into function mpc85xx_ds_uli_init() where it is used. Signed-off-by: Pali

[PATCH 3/8] powerpc/fsl_uli1575: Simplify uli_exclude_device() usage

2023-04-08 Thread Pali Rohár
Function uli_exclude_device() is called only from mpc86xx_exclude_device() and mpc85xx_exclude_device() functions. Both those functions are same, so merge its logic directly into the uli_exclude_device() function. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 13

[PATCH 1/8] powerpc/fsl_uli1575: Misc cleanup

2023-04-08 Thread Pali Rohár
Signed-off-by: Pali Rohár --- arch/powerpc/include/asm/ppc-pci.h | 8 arch/powerpc/platforms/85xx/mpc85xx_ds.c | 4 +--- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 4 +--- arch/powerpc/platforms/fsl_uli1575.c | 6 +++--- 4 files changed, 13 insertions(+), 9 deletions

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

[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 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

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

[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

[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 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 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 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 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 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 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 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

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

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

[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

[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

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

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

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

2022-12-26 Thread Pali Rohár
bd1c6 ("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 ind

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

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

2022-12-24 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

  1   2   3   >