Re: [PATCH V3 01/14] blk-mq: add blk_mq_max_nr_hw_queues()

2023-08-09 Thread Baoquan He
On 08/10/23 at 10:06am, Ming Lei wrote: > On Thu, Aug 10, 2023 at 09:18:27AM +0800, Baoquan He wrote: > > On 08/10/23 at 08:09am, Ming Lei wrote: > > > On Wed, Aug 09, 2023 at 03:44:01PM +0200, Christoph Hellwig wrote: > > > > I'm starting to sound like a broken record, but we can't just do random

Re: [PATCH V3 01/14] blk-mq: add blk_mq_max_nr_hw_queues()

2023-08-09 Thread Ming Lei
On Thu, Aug 10, 2023 at 09:18:27AM +0800, Baoquan He wrote: > On 08/10/23 at 08:09am, Ming Lei wrote: > > On Wed, Aug 09, 2023 at 03:44:01PM +0200, Christoph Hellwig wrote: > > > I'm starting to sound like a broken record, but we can't just do random > > > is_kdump checks, and it's not going to

Re: [PATCH V3 01/14] blk-mq: add blk_mq_max_nr_hw_queues()

2023-08-09 Thread Baoquan He
On 08/10/23 at 08:09am, Ming Lei wrote: > On Wed, Aug 09, 2023 at 03:44:01PM +0200, Christoph Hellwig wrote: > > I'm starting to sound like a broken record, but we can't just do random > > is_kdump checks, and it's not going to get better by resending it again and > > again. If kdump kernels

Re: [PATCH V3 01/14] blk-mq: add blk_mq_max_nr_hw_queues()

2023-08-09 Thread Ming Lei
On Wed, Aug 09, 2023 at 03:44:01PM +0200, Christoph Hellwig wrote: > I'm starting to sound like a broken record, but we can't just do random > is_kdump checks, and it's not going to get better by resending it again and > again. If kdump kernels limit the number of possible CPUs, it needs to >

[PATCH] powerpc/pseries: PLPKS: undo kernel-doc comment notation

2023-08-09 Thread Randy Dunlap
Don't use kernel-doc "/**" comment format for non-kernel-doc comments. This prevents a kernel-doc warning: arch/powerpc/platforms/pseries/plpks.c:186: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Label is combination

Re: [PATCH V5 3/3] skiboot: Update IMC PMU node names for power10

2023-08-09 Thread Reza Arbab
On Mon, Jul 17, 2023 at 08:54:31AM +0530, Athira Rajeev wrote: @@ -408,14 +469,129 @@ static void disable_unavailable_units(struct dt_node *dev) avl_vec = (0xffULL) << 56; } - for (i = 0; i < ARRAY_SIZE(nest_pmus); i++) { - if

Re: [PATCH V5 1/3] core/device: Add function to return child node using name at substring "@"

2023-08-09 Thread Reza Arbab
Hi Athira, I still have a couple of the same questions I asked in v4. On Mon, Jul 17, 2023 at 08:54:29AM +0530, Athira Rajeev wrote: Add a function dt_find_by_name_before_addr() that returns the child node if it matches till first occurrence at "@" of a given name, otherwise NULL. Given this

Re: [PATCH v2 3/3] fork: lock VMAs of the parent process when forking

2023-08-09 Thread Mateusz Guzik
On 8/5/23, Suren Baghdasaryan wrote: > On Fri, Aug 4, 2023 at 6:06 PM Mateusz Guzik wrote: >> >> On 8/5/23, Linus Torvalds wrote: >> > On Fri, 4 Aug 2023 at 16:25, Mateusz Guzik wrote: >> >> >> >> I know of these guys, I think they are excluded as is -- they go >> >> through access_remote_vm,

[PATCH v2 1/6] integrity: PowerVM support for loading CA keys on machine keyring

2023-08-09 Thread Nayna Jain
Keys that derive their trust from an entity such as a security officer, administrator, system owner, or machine owner are said to have "imputed trust". CA keys with imputed trust can be loaded onto the machine keyring. The mechanism for loading these keys onto the machine keyring is platform

[PATCH v2 6/6] integrity: PowerVM support for loading third party code signing keys

2023-08-09 Thread Nayna Jain
On secure boot enabled PowerVM LPAR, third party code signing keys are needed during early boot to verify signed third party modules. These third party keys are stored in moduledb object in the Platform KeyStore(PKS). Load third party code signing keys onto .secondary_trusted_keys keyring.

[PATCH v2 5/6] integrity: PowerVM machine keyring enablement

2023-08-09 Thread Nayna Jain
Update Kconfig to enable machine keyring and limit to CA certificates on PowerVM. Only key signing CA keys are allowed. Signed-off-by: Nayna Jain Reviewed-and-tested-by: Mimi Zohar --- security/integrity/Kconfig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 4/6] integrity: check whether imputed trust is enabled

2023-08-09 Thread Nayna Jain
trust_moklist() is specific to UEFI enabled systems. Other platforms rely only on the Kconfig. Define a generic wrapper named imputed_trust_enabled(). Signed-off-by: Nayna Jain Reviewed-off-by: Mimi Zohar --- security/integrity/digsig.c| 2 +-

[PATCH v2 3/6] integrity: remove global variable from machine_keyring.c

2023-08-09 Thread Nayna Jain
trust_mok variable is accessed within a single function locally. Change trust_mok from global to local static variable. Signed-off-by: Nayna Jain Reviewed-and-tested-by: Mimi Zohar --- security/integrity/platform_certs/machine_keyring.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 2/6] integrity: ignore keys failing CA restrictions on non-UEFI platform

2023-08-09 Thread Nayna Jain
On non-UEFI platforms, handle restrict_link_by_ca failures differently. Certificates which do not satisfy CA restrictions on non-UEFI platforms are ignored. Signed-off-by: Nayna Jain Reviewed-and-tested-by: Mimi Zohar --- security/integrity/platform_certs/machine_keyring.c | 2 +- 1 file

[PATCH v2 0/6] Enable loading local and third party keys on PowerVM guest

2023-08-09 Thread Nayna Jain
On a secure boot enabled PowerVM guest, local and third party code signing keys are needed to verify signed applications, configuration files, and kernel modules. Loading these keys onto either the .secondary_trusted_keys or .ima keyrings requires the certificates be signed by keys on the

Re: [PATCH v6 2/3] PCI/AER: Disable AER interrupt on suspend

2023-08-09 Thread Bjorn Helgaas
On Fri, Jul 21, 2023 at 11:58:24AM +0800, Kai-Heng Feng wrote: > On Tue, Jul 18, 2023 at 7:17 PM Bjorn Helgaas wrote: > > On Fri, May 12, 2023 at 08:00:13AM +0800, Kai-Heng Feng wrote: > > > PCIe services that share an IRQ with PME, such as AER or DPC, > > > may cause a spurious wakeup on system

Re: [PATCH] spi: fsl-cpm: Properly define and use IO pointers

2023-08-09 Thread Mark Brown
On Wed, 09 Aug 2023 10:54:27 +0200, Christophe Leroy wrote: > Sparse reports several issues with IO pointers. > > Fix it by adding missing __iomem flags and using iowriteXXbe() > generic helpers instead of the powerpc specific out_beXX() ones. > > Applied to

Re: [PATCH v3 21/28] net: wan: Add framer framework support

2023-08-09 Thread Herve Codina
Hi Randy, On Wed, 9 Aug 2023 07:24:32 -0700 Randy Dunlap wrote: > Hi, > > On 8/9/23 06:27, Herve Codina wrote: > > diff --git a/drivers/net/wan/framer/Kconfig b/drivers/net/wan/framer/Kconfig > > new file mode 100644 > > index ..96ef1e7ba8eb > > --- /dev/null > > +++

Re: [PATCH v3 05/28] soc: fsl: cpm1: qmc: Remove inline function specifiers

2023-08-09 Thread Christophe Leroy
Le 09/08/2023 à 15:27, Herve Codina a écrit : > The inline function specifier is present on some functions but it is > better to let the compiler decide inlining or not these functions. And anyway the compiler can decide to not inline a function marked inline since commit ac7c3e4ff401

Re: [PATCH -next] net/ps3_gelic_net: Use ether_addr_to_u64() to convert ethernet address

2023-08-09 Thread Simon Horman
On Tue, Aug 08, 2023 at 07:40:50PM +0800, Li Zetao wrote: > Use ether_addr_to_u64() to convert an Ethernet address into a u64 value, > instead of directly calculating, as this is exactly what > this function does. > > Signed-off-by: Li Zetao > --- > drivers/net/ethernet/toshiba/ps3_gelic_net.c

Re: [PATCH v3 21/28] net: wan: Add framer framework support

2023-08-09 Thread Randy Dunlap
Hi, On 8/9/23 06:27, Herve Codina wrote: > diff --git a/drivers/net/wan/framer/Kconfig b/drivers/net/wan/framer/Kconfig > new file mode 100644 > index ..96ef1e7ba8eb > --- /dev/null > +++ b/drivers/net/wan/framer/Kconfig > @@ -0,0 +1,19 @@ > +# SPDX-License-Identifier: GPL-2.0-only >

Re: [PATCH 1/2] powerpc: mark more local variables as volatile

2023-08-09 Thread Arnd Bergmann
On Wed, Aug 9, 2023, at 15:17, Christophe Leroy wrote: > Le 09/08/2023 à 15:10, Arnd Bergmann a écrit : >> From: Arnd Bergmann >> >> A while ago I created a2305e3de8193 ("powerpc: mark local variables >> around longjmp as volatile") in order to allow building powerpc with >> -Wextra enabled on

[PATCH v3 28/28] net: wan: fsl_qmc_hdlc: Add framer support

2023-08-09 Thread Herve Codina
Add framer support in the fsl_qmc_hdlc driver in order to be able to signal carrier changes to the network stack based on the framer status Also use this framer to provide information related to the E1/T1 line interface on IF_GET_IFACE and configure the line interface according to IF_IFACE_{E1,T1}

[PATCH v3 27/28] ASoC: codecs: Add support for the framer codec

2023-08-09 Thread Herve Codina
The framer codec interracts with a framer. It allows to use some of the framer timeslots as audio channels to transport audio data over the framer E1/T1/J1 lines. It also reports line carrier detection events through the ALSA jack detection feature. Signed-off-by: Herve Codina Reviewed-by:

[PATCH v3 26/28] MAINTAINERS: Add the Lantiq PEF2256 driver entry

2023-08-09 Thread Herve Codina
After contributing the driver, add myself as the maintainer for the Lantiq PEF2256 driver. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 14041d90f9c8..07a7d9fca3c4 100644

[PATCH v3 25/28] pinctrl: Add support for the Lantic PEF2256 pinmux

2023-08-09 Thread Herve Codina
The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. This kind of component can be found in old telecommunication system. It was used to digital transmission of many

[PATCH v3 24/28] net: wan: framer: Add support for the Lantiq PEF2256 framer

2023-08-09 Thread Herve Codina
The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/net/wan/framer/Kconfig|

[PATCH v3 23/28] mfd: core: Ensure disabled devices are skiped without aborting

2023-08-09 Thread Herve Codina
The loop searching for a matching device based on its compatible string is aborted when a matching disabled device is found. This abort prevents to add devices as soon as one disabled device is found. Continue searching for an other device instead of aborting on the first disabled one fixes the

[PATCH v3 22/28] dt-bindings: net: Add the Lantiq PEF2256 E1/T1/J1 framer

2023-08-09 Thread Herve Codina
The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. Signed-off-by: Herve Codina --- .../bindings/net/lantiq,pef2256.yaml | 219 ++ 1 file

[PATCH v3 21/28] net: wan: Add framer framework support

2023-08-09 Thread Herve Codina
A framer is a component in charge of an E1/T1 line interface. Connected usually to a TDM bus, it converts TDM frames to/from E1/T1 frames. It also provides information related to the E1/T1 line. The framer framework provides a set of APIs for the framer drivers (framer provider) to create/destroy

[PATCH v3 20/28] wan: qmc_hdlc: Add runtime timeslots changes support

2023-08-09 Thread Herve Codina
QMC channels support runtime timeslots changes but nothing is done at the QMC HDLC driver to handle these changes. Use existing IFACE ioctl in order to configure the timeslots to use. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/net/wan/fsl_qmc_hdlc.c | 169

[PATCH v3 19/28] soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime

2023-08-09 Thread Herve Codina
Introduce qmc_chan_{get,set}_ts_info() function to allow timeslots modification at runtime. The modification is provided using qmc_chan_set_ts_info() and will be applied on next qmc_chan_start(). qmc_chan_set_ts_info() must be called with the channel rx and/or tx stopped. Signed-off-by: Herve

[PATCH v3 18/28] soc: fsl: cpm1: qmc: Remove timeslots handling from setup_chan()

2023-08-09 Thread Herve Codina
Timeslots setting is done at channel start() and stop(). There is no more need to do that during setup_chan(). Simply remove timeslot setting from setup_chan(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 28 1 file

[PATCH v3 17/28] soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()

2023-08-09 Thread Herve Codina
In order to support runtime timeslot route changes, enable the channel timeslot entries at channel start() and disable them at channel stop(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 175 --- 1 file changed,

[PATCH v3 16/28] soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag

2023-08-09 Thread Herve Codina
In order to support runtime timeslot route changes, some operations will be different according the routing table used (common Rx and Tx table or one table for Rx and one for Tx). The is_tsa_64rxtx flag is introduced to avoid extra computation to determine the table format each time we need it.

[PATCH v3 15/28] soc: fsl: cpm1: qmc: Split Tx and Rx TSA entries setup

2023-08-09 Thread Herve Codina
The Tx and Rx entries for a given channel are set in one function. In order to modify Rx entries and Tx entries independently of one other, split this function in one for the Rx part and one for the Tx part. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy ---

[PATCH v3 14/28] soc: fsl: cpm1: qmc: Add support for disabling channel TSA entries

2023-08-09 Thread Herve Codina
In order to allow runtime timeslot route changes, disabling channel TSA entries needs to be supported. Add support for this new feature. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 20 +++- 1 file changed, 11 insertions(+), 9

[PATCH v3 13/28] soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()

2023-08-09 Thread Herve Codina
The timeslots checked in qmc_check_chans() are the timeslots used. With the introduction of the available timeslots, the used timeslots are a subset of the available timeslots. The timeslots checked during the qmc_check_chans() call should be the available ones. Simply update and check the

[PATCH v3 12/28] soc: fsl: cpm1: qmc: Remove no more needed checks from qmc_check_chans()

2023-08-09 Thread Herve Codina
The newly introduced qmc_chan_setup_tsa* functions check that the channel entries are not already used. These checks are also performed by qmc_check_chans() and are no more needed. Remove them from qmc_check_chans(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy ---

[PATCH v3 11/28] soc: fsl: cpm1: qmc: Introduce qmc_chan_setup_tsa*

2023-08-09 Thread Herve Codina
Introduce the qmc_chan_setup_tsa* functions to setup entries related to the given channel. Use them during QMC channels setup. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 161 ++- 1 file changed, 125

[PATCH v3 10/28] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa*

2023-08-09 Thread Herve Codina
qmc_setup_tsa* are called once at initialisation. They initialize the QMC TSA table. In order to introduce setup function later on for dynamic timeslots management, rename the function to avoid later confusion. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy ---

[PATCH v3 09/28] soc: fsl: cpm1: qmc: Introduce available timeslots masks

2023-08-09 Thread Herve Codina
Available timeslots masks define timeslots available for the related channel. These timeslots are defined by the QMC binding. Timeslots used are initialized to available timeslots but can be a subset of available timeslots. This prepares the dynamic timeslots management (ie. changing timeslots at

[PATCH v3 08/28] MAINTAINERS: Add the Freescale QMC HDLC driver entry

2023-08-09 Thread Herve Codina
After contributing the driver, add myself as the maintainer for the Freescale QMC HDLC driver. Signed-off-by: Herve Codina --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aee340630eca..14041d90f9c8 100644 --- a/MAINTAINERS +++

[PATCH v3 07/28] net: wan: Add support for QMC HDLC

2023-08-09 Thread Herve Codina
The QMC HDLC driver provides support for HDLC using the QMC (QUICC Multichannel Controller) to transfer the HDLC data. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/net/wan/Kconfig| 12 + drivers/net/wan/Makefile | 1 + drivers/net/wan/fsl_qmc_hdlc.c |

[PATCH v3 06/28] dt-bindings: net: Add support for QMC HDLC

2023-08-09 Thread Herve Codina
The QMC (QUICC mutichannel controller) is a controller present in some PowerQUICC SoC such as MPC885. The QMC HDLC uses the QMC controller to transfer HDLC data. Additionally, a framer can be connected to the QMC HDLC. If present, this framer is the interface between the TDM bus used by the QMC

[PATCH v3 05/28] soc: fsl: cpm1: qmc: Remove inline function specifiers

2023-08-09 Thread Herve Codina
The inline function specifier is present on some functions but it is better to let the compiler decide inlining or not these functions. Remove inline specifiers. Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") Signed-off-by: Herve Codina Suggested-by: Andrew Lunn ---

[PATCH v3 04/28] soc: fsl: cpm1: qmc: Extend the API to provide Rx status

2023-08-09 Thread Herve Codina
In HDLC mode, some status flags related to the data read transfer can be set by the hardware and need to be known by a QMC consumer for further analysis. Extend the API in order to provide these transfer status flags at the read complete() call. In TRANSPARENT mode, these flags have no meaning.

[PATCH v3 02/28] soc: fsl: cpm1: qmc: Fix __iomem addresses declaration

2023-08-09 Thread Herve Codina
Running sparse (make C=1) on qmc.c raises a lot of warning such as: ... warning: incorrect type in assignment (different address spaces) expected struct cpm_buf_desc [usertype] *[noderef] __iomem bd got struct cpm_buf_desc [noderef] [usertype] __iomem *txbd_free ... Indeed, some

[PATCH v3 00/28] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-08-09 Thread Herve Codina
Hi, I have a system where I need to handle an HDLC interface and some audio data. The HDLC data are transferred using a TDM bus on which a PEF2256 (E1/T1 framer) is present. The PEF2256 transfers data from/to the TDM bus to/from the E1 line. This PEF2256 is connected to a PowerQUICC SoC for the

[PATCH v3 03/28] soc: fsl: cpm1: qmc: Fix rx channel reset

2023-08-09 Thread Herve Codina
The qmc_chan_reset_rx() set the is_rx_stopped flag. This leads to an inconsistent state in the following sequence. qmc_chan_stop() qmc_chan_reset() Indeed, after the qmc_chan_reset() call, the channel must still be stopped. Only a qmc_chan_start() call can move the channel from stopped

[PATCH v3 01/28] soc: fsl: cpm1: tsa: Fix __iomem addresses declaration

2023-08-09 Thread Herve Codina
Running sparse (make C=1) on tsa.c raises a lot of warning such as: --- 8< --- warning: incorrect type in assignment (different address spaces) expected void *[noderef] si_regs got void [noderef] __iomem * --- 8< --- Indeed, some variable were declared 'type *__iomem var' instead

Re: [PATCH 1/2] powerpc: mark more local variables as volatile

2023-08-09 Thread Christophe Leroy
Le 09/08/2023 à 15:10, Arnd Bergmann a écrit : > From: Arnd Bergmann > > A while ago I created a2305e3de8193 ("powerpc: mark local variables > around longjmp as volatile") in order to allow building powerpc with > -Wextra enabled on gcc-11. Should this be explained in

[PATCH 2/2] powerpc: xmon: remove unused variables

2023-08-09 Thread Arnd Bergmann
From: Arnd Bergmann Randconfig testing with W=1 showed up these warnings that I'd like to enable by default: arch/powerpc/xmon/xmon.c: In function 'dump_tlb_book3e': arch/powerpc/xmon/xmon.c:3833:42: error: variable 'lrat' set but not used [-Werror=unused-but-set-variable] 3833 | int i, tlb,

[PATCH 1/2] powerpc: mark more local variables as volatile

2023-08-09 Thread Arnd Bergmann
From: Arnd Bergmann A while ago I created a2305e3de8193 ("powerpc: mark local variables around longjmp as volatile") in order to allow building powerpc with -Wextra enabled on gcc-11. I tried this again with gcc-13 and found two more of the same issues, presumably based on slightly different

[PATCH 4.19 077/323] crypto: nx - fix build warnings when DEBUG_FS is not enabled

2023-08-09 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit b04b076fb56560b39d695ac3744db457e12278fd ] Fix build warnings when DEBUG_FS is not enabled by using an empty do-while loop instead of a value: In file included from ../drivers/crypto/nx/nx.c:27: ../drivers/crypto/nx/nx.c: In function 'nx_register_algs':

[PATCH 4.19 061/323] soc/fsl/qe: fix usb.c build errors

2023-08-09 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 7b1a78babd0d2cd27aa07255dee0c2d7ac0f31e3 ] Fix build errors in soc/fsl/qe/usb.c when QUICC_ENGINE is not set. This happens when PPC_EP88XC is set, which selects CPM1 & CPM. When CPM is set, USB_FSL_QE can be set without QUICC_ENGINE being set. When

[PATCH 4.14 050/204] crypto: nx - fix build warnings when DEBUG_FS is not enabled

2023-08-09 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit b04b076fb56560b39d695ac3744db457e12278fd ] Fix build warnings when DEBUG_FS is not enabled by using an empty do-while loop instead of a value: In file included from ../drivers/crypto/nx/nx.c:27: ../drivers/crypto/nx/nx.c: In function 'nx_register_algs':

[PATCH 4.14 041/204] soc/fsl/qe: fix usb.c build errors

2023-08-09 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 7b1a78babd0d2cd27aa07255dee0c2d7ac0f31e3 ] Fix build errors in soc/fsl/qe/usb.c when QUICC_ENGINE is not set. This happens when PPC_EP88XC is set, which selects CPM1 & CPM. When CPM is set, USB_FSL_QE can be set without QUICC_ENGINE being set. When

[PATCH] spi: fsl-cpm: Properly define and use IO pointers

2023-08-09 Thread Christophe Leroy
Sparse reports several issues with IO pointers. Fix it by adding missing __iomem flags and using iowriteXXbe() generic helpers instead of the powerpc specific out_beXX() ones. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307252052.7rqhxfzj-...@intel.com/

[PATCH] powerpc: Make virt_to_pfn() a static inline

2023-08-09 Thread Linus Walleij
Making virt_to_pfn() a static inline taking a strongly typed (const void *) makes the contract of a passing a pointer of that type to the function explicit and exposes any misuse of the macro virt_to_pfn() acting polymorphic and accepting many types such as (void *), (unitptr_t) or (unsigned long)

[PATCH] powerpc/radix: Move some functions into #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE

2023-08-09 Thread Christophe Leroy
With skiboot_defconfig, Clang reports: CC arch/powerpc/mm/book3s64/radix_tlb.o arch/powerpc/mm/book3s64/radix_tlb.c:419:20: error: unused function '_tlbie_pid_lpid' [-Werror,-Wunused-function] static inline void _tlbie_pid_lpid(unsigned long pid, unsigned long lpid, ^