Re: [PATCH v5 RESEND 15/17] powerpc: mm: Convert to GENERIC_IOREMAP

2023-05-16 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig

Re: [PATCH v5 RESEND 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros

2023-05-16 Thread Christoph Hellwig
Looks good: Reviewed-by: Christoph Hellwig

Re: [PATCH] irq_work: consolidate arch_irq_work_raise prototypes

2023-05-16 Thread Palmer Dabbelt
On Tue, 16 May 2023 13:02:31 PDT (-0700), a...@kernel.org wrote: From: Arnd Bergmann The prototype was hidden on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Fix this by providing it in only one plac

Re: [PATCH] powerpc/crypto: Fix aes-gcm-p10 build when VSX=n

2023-05-16 Thread Joel Stanley
On Mon, 15 May 2023 at 12:48, Michael Ellerman wrote: > > When VSX is disabled, eg. microwatt_defconfig, the build fails with: > > In function ‘enable_kernel_vsx’, > inlined from ‘vsx_begin’ at arch/powerpc/crypto/aes-gcm-p10-glue.c:68:2, > inlined from ‘p10_aes_gcm_crypt.constprop’

[PATCH v2 3/3] iommu/fsl: Use driver_managed_dma to allow VFIO to work

2023-05-16 Thread Jason Gunthorpe
The FSL driver is mangling the iommu_groups to not have a group for its PCI bridge/controller (eg the thing passed to fsl_add_bridge()). Robin says this is so FSL could work with VFIO which would be blocked by having a probed driver on the platform_device in the same group. This is supported by com

[PATCH v2 2/3] iommu/fsl: Move ENODEV to fsl_pamu_probe_device()

2023-05-16 Thread Jason Gunthorpe
The expectation is for the probe op to return ENODEV if the iommu is not able to support the device. Move the check for fsl,liodn to fsl_pamu_probe_device() simplify fsl_pamu_device_group() Signed-off-by: Jason Gunthorpe --- drivers/iommu/fsl_pamu_domain.c | 19 --- 1 file change

[PATCH v2 1/3] iommu/fsl: Always allocate a group for non-pci devices

2023-05-16 Thread Jason Gunthorpe
fsl_pamu_device_group() is only called if dev->iommu_group is NULL, so iommu_group_get() always returns NULL. Remove this test and just allocate a group. Call generic_device_group() for this like the other drivers. Signed-off-by: Jason Gunthorpe --- drivers/iommu/fsl_pamu_domain.c | 2 +- 1 file

[PATCH v2 0/3] Remove iommu_group_remove_device() from fsl

2023-05-16 Thread Jason Gunthorpe
With POWER SPAPR now having a real iommu driver and using the normal group lifecycle stuff fixing FSL will leave only VFIO's no-iommu support as a user for the iommu_group_add/remove_device() calls. This will help simplify the understanding of what the core code should be doing for these functions.

Re: [PATCH v8 00/10] arm64: Add framework to turn an IPI as NMI

2023-05-16 Thread Sumit Garg
On Wed, 10 May 2023 at 22:20, Doug Anderson wrote: > > Hi, > > On Wed, May 10, 2023 at 9:30 AM Mark Rutland wrote: > > > > On Wed, May 10, 2023 at 08:28:17AM -0700, Doug Anderson wrote: > > > Hi, > > > > Hi Doug, > > > > > On Wed, Apr 19, 2023 at 3:57 PM Douglas Anderson > > > wrote: > > > > Th

Re: [PATCH] procfs: consolidate arch_report_meminfo declaration

2023-05-16 Thread Dave Hansen
On 5/16/23 12:57, Arnd Bergmann wrote: > From: Arnd Bergmann > > The arch_report_meminfo() function is provided by four architectures, > with a __weak fallback in procfs itself. On architectures that don't > have a custom version, the __weak version causes a warning because > of the missing proto

[PATCH] irq_work: consolidate arch_irq_work_raise prototypes

2023-05-16 Thread Arnd Bergmann
From: Arnd Bergmann The prototype was hidden on x86, which causes a warning: kernel/irq_work.c:72:13: error: no previous prototype for 'arch_irq_work_raise' [-Werror=missing-prototypes] Fix this by providing it in only one place that is always visible. Signed-off-by: Arnd Bergmann --- arch/

[PATCH] procfs: consolidate arch_report_meminfo declaration

2023-05-16 Thread Arnd Bergmann
From: Arnd Bergmann The arch_report_meminfo() function is provided by four architectures, with a __weak fallback in procfs itself. On architectures that don't have a custom version, the __weak version causes a warning because of the missing prototype. Remove the architecture specific prototypes

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

2023-05-16 Thread Pali Rohár
On Tuesday 16 May 2023 08:28:54 Randy Dunlap wrote: > In a randconfig with CONFIG_SERIAL_CPM=m and > CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a build error: > ERROR: modpost: "udbg_putc" [drivers/tty/serial/cpm_uart/cpm_uart.ko] > undefined! > > Prevent the build error by allowing PPC_EARLY_DEBUG_C

Re: [RFC 0/1] sched/fair: Consider asymmetric scheduler groups in load balancer

2023-05-16 Thread Dietmar Eggemann
On 15/05/2023 13:46, Tobias Huschle wrote: > The current load balancer implementation implies that scheduler groups, > within the same scheduler domain, all host the same number of CPUs. > > This appears to be valid for non-s390 architectures. Nevertheless, s390 > can actually have scheduler grou

Re: [PATCH v14 06/15] clk: Add Lynx 10G SerDes PLL driver

2023-05-16 Thread Vinod Koul
On 16-05-23, 11:11, Sean Anderson wrote: > On 5/16/23 09:22, Vinod Koul wrote: > > On 09-05-23, 11:26, Sean Anderson wrote: > >> On 5/9/23 09:00, Vinod Koul wrote: > >> > On 08-05-23, 11:31, Sean Anderson wrote: > >> >> On 5/8/23 05:15, Vinod Koul wrote: > >> > > >> >> >> +int lynx_clks_init(struc

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

2023-05-16 Thread Randy Dunlap
In a randconfig with CONFIG_SERIAL_CPM=m and CONFIG_PPC_EARLY_DEBUG_CPM=y, there is a build error: ERROR: modpost: "udbg_putc" [drivers/tty/serial/cpm_uart/cpm_uart.ko] undefined! Prevent the build error by allowing PPC_EARLY_DEBUG_CPM only when SERIAL_CPM=y. Fixes: c374e00e17f1 ("[POWERPC] Add e

Re: [PATCH v14 07/15] phy: fsl: Add Lynx 10G SerDes driver

2023-05-16 Thread Sean Anderson
On 5/16/23 09:36, Vinod Koul wrote: > On 08-05-23, 11:28, Sean Anderson wrote: >> On 5/8/23 05:22, Vinod Koul wrote: >> > On 13-04-23, 12:05, Sean Anderson wrote: > >> >> +static const struct lynx_cfg ls1088a_cfg = { >> >> + .lanes = 4, >> >> + .endian = REGMAP_ENDIAN_LITTLE, >> >> + .mode_conflic

Re: [PATCH v14 06/15] clk: Add Lynx 10G SerDes PLL driver

2023-05-16 Thread Sean Anderson
On 5/16/23 09:22, Vinod Koul wrote: > On 09-05-23, 11:26, Sean Anderson wrote: >> On 5/9/23 09:00, Vinod Koul wrote: >> > On 08-05-23, 11:31, Sean Anderson wrote: >> >> On 5/8/23 05:15, Vinod Koul wrote: >> > >> >> >> +int lynx_clks_init(struct device *dev, struct regmap *regmap, >> >> >> +

Re: [PATCH v14 07/15] phy: fsl: Add Lynx 10G SerDes driver

2023-05-16 Thread Vinod Koul
On 08-05-23, 11:28, Sean Anderson wrote: > On 5/8/23 05:22, Vinod Koul wrote: > > On 13-04-23, 12:05, Sean Anderson wrote: > >> +static const struct lynx_cfg ls1088a_cfg = { > >> + .lanes = 4, > >> + .endian = REGMAP_ENDIAN_LITTLE, > >> + .mode_conflict = lynx_ls_mode_conflict, > >> + .mode_ap

Re: [RFC 1/1] sched/fair: Consider asymmetric scheduler groups in load balancer

2023-05-16 Thread Vincent Guittot
On Mon, 15 May 2023 at 13:46, Tobias Huschle wrote: > > The current load balancer implementation implies that scheduler groups, > within the same domain, all host the same number of CPUs. This is > reflected in the condition, that a scheduler group, which is load > balancing and classified as havi

Re: [PATCH v14 06/15] clk: Add Lynx 10G SerDes PLL driver

2023-05-16 Thread Vinod Koul
On 09-05-23, 11:26, Sean Anderson wrote: > On 5/9/23 09:00, Vinod Koul wrote: > > On 08-05-23, 11:31, Sean Anderson wrote: > >> On 5/8/23 05:15, Vinod Koul wrote: > > > >> >> +int lynx_clks_init(struct device *dev, struct regmap *regmap, > >> >> + struct clk *plls[2], struct clk *

Re: [PATCH v5 RESEND 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros

2023-05-16 Thread Baoquan He
On 05/16/23 at 09:15am, Mike Rapoport wrote: > Hi, > > On Mon, May 15, 2023 at 05:08:32PM +0800, Baoquan He wrote: > > Let's use '#define ioremap_xx' and "#ifdef ioremap_xx" instead. > > > > For each architecture to remove defined ARCH_HAS_IOREMAP_xx macros in > > This sentence seems to be stale

Re: [PATCH 14/89] i2c: cpm: Convert to platform remove callback returning void

2023-05-16 Thread Jochen Friedrich
Acked-by: Jochen Friedrich Am 08.05.2023 um 22:51 schrieb Uwe Kleine-König: The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is (mostly) ignored an

Re: [PATCH 00/23] arch: allow pte_offset_map[_lock]() to fail

2023-05-16 Thread Peter Zijlstra
On Thu, May 11, 2023 at 03:02:55PM +0100, Matthew Wilcox wrote: > We also talked about moving x86 to always RCU-free page tables in > order to make accessing /proc/$pid/smaps lockless. I believe Michel > is going to take a swing at this project. Shouldn't be too controversial I think -- effectiv

Re: [PATCH v5 RESEND 01/17] asm-generic/iomap.h: remove ARCH_HAS_IOREMAP_xx macros

2023-05-16 Thread Geert Uytterhoeven
On Mon, May 15, 2023 at 11:14 AM Baoquan He wrote: > Let's use '#define ioremap_xx' and "#ifdef ioremap_xx" instead. > > For each architecture to remove defined ARCH_HAS_IOREMAP_xx macros in > To remove defined ARCH_HAS_IOREMAP_xx macros in of each ARCH, > the ARCH's own ioremap_wc|wt|np definiti

Re: [PATCH v5 RESEND 15/17] powerpc: mm: Convert to GENERIC_IOREMAP

2023-05-16 Thread Mike Rapoport
On Mon, May 15, 2023 at 05:08:46PM +0800, Baoquan He wrote: > From: Christophe Leroy > > By taking GENERIC_IOREMAP method, the generic generic_ioremap_prot(), > generic_iounmap(), and their generic wrapper ioremap_prot(), ioremap() > and iounmap() are all visible and available to arch. Arch needs