[PATCH net v1] net: wan: fsl_qmc_hdlc: Discard received CRC

2024-07-29 Thread Herve Codina
Received frame from QMC contains the CRC. Upper layers don't need this CRC and tcpdump mentioned trailing junk data due to this CRC presence. As some other HDLC driver, simply discard this CRC. Fixes: d0f2258e79fd ("net: wan: Add support for QMC HDLC") Cc: sta...@vger.kernel.org Signed-off-by: He

[PATCH net v1] net: wan: fsl_qmc_hdlc: Convert carrier_lock spinlock to a mutex

2024-07-29 Thread Herve Codina
The carrier_lock spinlock protects the carrier detection. While it is hold, framer_get_status() is called witch in turn takes a mutex. This is not correct and can lead to a deadlock. A run with PROVE_LOCKING enabled detected the issue: [ BUG: Invalid wait context ] ... c204ddbc (&framer->mut

Re: [PATCH v1 32/36] soc: fsl: qe: Add resource-managed muram allocators

2024-07-29 Thread kernel test robot
Hi Herve, kernel test robot noticed the following build errors: [auto build test ERROR on robh/for-next] [also build test ERROR on linus/master v6.11-rc1 next-20240729] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '-

Re: [PATCH v1 32/36] soc: fsl: qe: Add resource-managed muram allocators

2024-07-29 Thread kernel test robot
Hi Herve, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master v6.11-rc1 next-20240729] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v3 2/3] dma-mapping: replace zone_dma_bits by zone_dma_limit

2024-07-29 Thread Nathan Chancellor
master v6.11-rc1 next-20240729] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: > https://gi

Re: [PATCH v1 14/36] soc: fsl: cpm1: tsa: Add support for QUICC Engine (QE) implementation

2024-07-29 Thread kernel test robot
Hi Herve, kernel test robot noticed the following build warnings: [auto build test WARNING on robh/for-next] [also build test WARNING on linus/master v6.11-rc1 next-20240729] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v2] PCI: Fix crash during pci_dev hot-unplug on pseries KVM guest

2024-07-29 Thread Stefan Bader
On 26.07.24 13:37, Rob Herring wrote: + Ubuntu kernel list, again On Thu, Jul 25, 2024 at 11:15:39PM +0530, Amit Machhiwal wrote: Hi Lizhi, Rob, Sorry for responding late. I got busy with some other things. On 2024/07/23 02:08 PM, Lizhi Hou wrote: On 7/23/24 12:54, Rob Herring wrote: On Tu

[PATCH 2/2] cxl: Use of_property_ accessor functions

2024-07-29 Thread Rob Herring (Arm)
The CXL driver has its own custom implementations of typed DT property accessors. Replace the custom property accessor functions with the common DT property functions. This clean-up is part of a larger effort to remove of_get_property() and other DT functions which leak pointers to DT node and pro

[PATCH 0/2] cxl: DT property accessor cleanups

2024-07-29 Thread Rob Herring (Arm)
++--- drivers/misc/cxl/pci.c | 32 2 files changed, 36 insertions(+), 203 deletions(-) --- base-commit: 8400291e289ee6b2bf9779ff1c83a291501f017b change-id: 20240729-dt-cxl-cleanup-eaf8185a99fc Best regards, -- Rob Herring (Arm)

[PATCH 1/2] cxl: Drop printing of DT properties

2024-07-29 Thread Rob Herring (Arm)
There's little reason to dump DT property values when they can be read at any time from the DT in /proc/device-tree. If such a feature is needed, then it really should be implemented in the DT core such that any module/driver can use it. Signed-off-by: Rob Herring (Arm) --- drivers/misc/cxl/of.c

Re: [PATCH v7 16/23] powerpc/e500: Switch to 64 bits PGD on 85xx (32 bits)

2024-07-29 Thread Guenter Roeck
Hi, On Tue, Jul 02, 2024 at 03:51:28PM +0200, Christophe Leroy wrote: > At the time being when CONFIG_PTE_64BIT is selected, PTE entries are > 64 bits but PGD entries are still 32 bits. > > In order to allow leaf PMD entries, switch the PGD to 64 bits entries. > > Signed-off-by: Christophe Leroy

Re: [PATCH v3 2/3] dma-mapping: replace zone_dma_bits by zone_dma_limit

2024-07-29 Thread kernel test robot
Hi Baruch, kernel test robot noticed the following build warnings: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on powerpc/next powerpc/fixes s390/features linus/master v6.11-rc1 next-20240729] [If your patch is applied to the wrong git tree, kindly drop us a note

[PATCH 1/1] dt-bindings: soc: fsl: Convert rcpm to yaml format

2024-07-29 Thread Frank Li
Convert dt-binding rcpm from txt to yaml format. Add fsl,ls1028a-rcpm compatible string. Signed-off-by: Frank Li --- .../bindings/rtc/fsl,ls-ftm-alarm.yaml| 2 +- .../devicetree/bindings/soc/fsl/fsl,rcpm.yaml | 91 +++ .../devicetree/bindings/soc/fsl/rcpm.txt | 69 -

PCI: Work around PCIe link training failures

2024-07-29 Thread Matthew W Carlis
On Mon, 29 July 2024, Ilpo Järvinen wrote: > The most obvious solution is to not leave the speed at Gen1 on failure in > Target Speed quirk but to restore the original Target Speed value. The > downside with that is if the current retraining interface (function) is > used, it adds delay. Tends to

Re: [PATCH v2] PCI: Fix crash during pci_dev hot-unplug on pseries KVM guest

2024-07-29 Thread Lizhi Hou
On 7/29/24 09:55, Amit Machhiwal wrote: Hi Lizhi, On 2024/07/29 09:47 AM, Lizhi Hou wrote: Hi Amit On 7/29/24 04:13, Amit Machhiwal wrote: Hi Lizhi, On 2024/07/26 11:45 AM, Lizhi Hou wrote: On 7/26/24 10:52, Rob Herring wrote: On Thu, Jul 25, 2024 at 6:06 PM Lizhi Hou wrote: Hi Amit,

Re: [PATCH v2] PCI: Fix crash during pci_dev hot-unplug on pseries KVM guest

2024-07-29 Thread Amit Machhiwal
Hi Lizhi, On 2024/07/29 09:47 AM, Lizhi Hou wrote: > Hi Amit > > On 7/29/24 04:13, Amit Machhiwal wrote: > > Hi Lizhi, > > > > On 2024/07/26 11:45 AM, Lizhi Hou wrote: > > > On 7/26/24 10:52, Rob Herring wrote: > > > > On Thu, Jul 25, 2024 at 6:06 PM Lizhi Hou wrote: > > > > > Hi Amit, > > > >

Re: [PATCH v2] PCI: Fix crash during pci_dev hot-unplug on pseries KVM guest

2024-07-29 Thread Lizhi Hou
Hi Amit On 7/29/24 04:13, Amit Machhiwal wrote: Hi Lizhi, On 2024/07/26 11:45 AM, Lizhi Hou wrote: On 7/26/24 10:52, Rob Herring wrote: On Thu, Jul 25, 2024 at 6:06 PM Lizhi Hou wrote: Hi Amit, I try to follow the option which add a OF flag. If Rob is ok with this, I would suggest to use

Re: [GIT PULL] sysctl constification changes for v6.11-rc1

2024-07-29 Thread patchwork-bot+linux-riscv
Hello: This pull request was applied to riscv/linux.git (for-next) by Linus Torvalds : On Wed, 24 Jul 2024 23:00:14 +0200 you wrote: > Linus > > Constifying ctl_table structs will prevent the modification of > proc_handler function pointers as they would reside in .rodata. To get > there, the pr

Re: [GIT PULL] sysctl constification changes for v6.11-rc1

2024-07-29 Thread patchwork-bot+linux-riscv
Hello: This pull request was applied to riscv/linux.git (fixes) by Linus Torvalds : On Wed, 24 Jul 2024 23:00:14 +0200 you wrote: > Linus > > Constifying ctl_table structs will prevent the modification of > proc_handler function pointers as they would reside in .rodata. To get > there, the proc_

Re: [PATCH] powerpc/ftrace: restore r2 to caller's stack on livepatch sibling call

2024-07-29 Thread Ryan Sullivan
Hello Michael, In the case of no sibling call within the livepatch then the store is only "restoring" the r2 value that was already there as it is stored and retrieved from the livepatch stack. The only time that the r2 value is corrupted is in the case of a sibling call and thus this additi

Re: PCI: Work around PCIe link training failures

2024-07-29 Thread Maciej W. Rozycki
On Mon, 29 Jul 2024, Ilpo Järvinen wrote: > > > The main reason is it is believed that it is the downstream device > > > causing the issue, and obviously you can't fetch its ID if you can't > > > negotiate link so as to talk to it in the first place. > > > > Have had some more time to look into t

Re: [PATCH v4 18/29] arm64: add POE signal support

2024-07-29 Thread Mark Brown
On Mon, Jul 29, 2024 at 03:27:11PM +0100, Dave Martin wrote: > On Fri, Jul 26, 2024 at 06:39:27PM +0100, Mark Brown wrote: > > Yes, though that would mean if we had to generate any register in there > > we'd always have to generate at least as many entries as whatever number > > it got assigned wh

Re: [PATCH v4 18/29] arm64: add POE signal support

2024-07-29 Thread Dave Martin
On Fri, Jul 26, 2024 at 06:39:27PM +0100, Mark Brown wrote: > On Fri, Jul 26, 2024 at 05:14:01PM +0100, Dave Martin wrote: > > On Thu, Jul 25, 2024 at 07:11:41PM +0100, Mark Brown wrote: > > > > That'd have to be a variably sized structure with pairs of sysreg > > > ID/value items in it I think wh

[PATCH v1 35/36] soc: fsl: cpm1: qmc: Handle QUICC Engine (QE) soft-qmc firmware

2024-07-29 Thread Herve Codina
The QUICC Engine (QE) QMC can use a firmware to have the QMC working in 'soft-qmc' mode. Handle this optional 'soft-qmc' firmware. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 67 1 file changed, 67 insertions(+) diff --git a/drivers/soc/f

[PATCH v1 22/36] soc: fsl: cpm1: qmc: Add missing spinlock comment

2024-07-29 Thread Herve Codina
checkpatch.pl raises the following issue CHECK: spinlock_t definition without comment Add the missing comments. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/qmc.c

[PATCH v1 32/36] soc: fsl: qe: Add resource-managed muram allocators

2024-07-29 Thread Herve Codina
Introduce devm_cpm_muram_alloc() and devm_cpm_muram_alloc_fixed(), the resource-managed version of cpm_muram_alloc and cpm_muram_alloc_fixed(). These resource-managed versions simplify the user avoiding the need to call cpm_muram_free(). Indeed, the allocated area returned by these functions will

[PATCH v1 18/36] soc: fsl: cpm1: qmc: Use BIT(), GENMASK() and FIELD_PREP() macros

2024-07-29 Thread Herve Codina
checkpatch.pl signals the following improvement for qmc.c CHECK: Prefer using the BIT macro Follow its suggestion and convert the code to BIT() and related macros. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 132 +-- 1 file changed, 72 insert

[PATCH v1 29/36] soc: fsl: cpm1: qmc: Handle RPACK initialization

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of QMC, RPACK does not need to be initialized. This is not the case in the QUICC Engine (QE) version. In preparation of the support for QE, initialize the RPACK register when the receiver is initialized and each time it is restarted. This additional RPACK ini

[PATCH v1 27/36] soc: fsl: cpm1: qmc: Introduce qmc_{init,exit}_xcc() and their CPM1 version

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of QMC and initialize the QMC used SCC. The QUICC Engine (QE) version uses an UCC (Unified Communication Controllers) instead of the SCC (Serial Communication Controllers) used in the CPM1 version. These controllers serve the same purpose and are used in the sa

[PATCH v1 36/36] MAINTAINERS: Add QE files related to the Freescale QMC controller

2024-07-29 Thread Herve Codina
The Freescale QMC controller driver supports both QE and CPM1. Add the newly introduced QE files to the existing entry. Signed-off-by: Herve Codina --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 1d32d38f2247..1331bdeb7386 100644 --- a/MAINTAI

[PATCH v1 34/36] soc: fsl: cpm1: qmc: Add support for QUICC Engine (QE) implementation

2024-07-29 Thread Herve Codina
Add support for the QMC (QUICC Multichannel Controller) available in some PowerQUICC SoC that uses a QUICC Engine (QE) block such as MPC8321. This QE QMC is similar to the CPM QMC except that it uses UCCs (Unified Communication Controllers) instead of SCCs (Serial Communication Controllers). Also,

[PATCH v1 33/36] soc: fsl: qe: Add missing PUSHSCHED command

2024-07-29 Thread Herve Codina
The PUSHSCHED command is missing in the QE header file. This command is supported on MPC8321 and is used to modify the start address for the task running on a given peripheral. It is needed for the QMC in order to perform the re-initialization procedure and so, ensure the correct UCC setup in that

[PATCH v1 31/36] soc: fsl: cpm1: qmc: Introduce qmc_version

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of QMC. In order to prepare the support for the QUICC Engine (QE) version of QMC, introduce qmc_version to identify versions. This will enable the code to make the distinction between several QMC implementations. Signed-off-by: Herve Codina --- drivers/soc/

[PATCH v1 30/36] soc: fsl: cpm1: qmc: Rename SCC_GSMRL_MODE_QMC

2024-07-29 Thread Herve Codina
Current code handles CPM1 version of QMC. Even if GSMRL is specific to the CPM1 version, the exact same purpose and format register (GUMRL) is present in the QUICC Engine (QE) version of QMC. Compared to the QE version, the values defined for the mode bitfield are different and the 0x0A value defin

[PATCH v1 28/36] soc: fsl: cpm1: qmc: Rename qmc_chan_command()

2024-07-29 Thread Herve Codina
Current code handles CPM1 version of QMC and qmc_chan_command() is clearly CPM1 specific. In order to prepare the support for the QUICC Engine (QE) version, rename qmc_chan_command() to reflect that point. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 6 +++--- 1 file changed, 3 in

[PATCH v1 25/36] soc: fsl: cpm1: qmc: Re-order probe() operations

2024-07-29 Thread Herve Codina
Current code handles CPM1 version of QMC. In the QUICC Engine (QE) version, some operations done at probe() need to be done in a different order. In order to prepare the support for the QE version, changed the sequence of operation done at probe(): - Retrieve the tsa_serial earlier, before initial

[PATCH v1 26/36] soc: fsl: cpm1: qmc: Introduce qmc_init_resource() and its CPM1 version

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of QMC. Resources initialisations (i.e. retrieving base addresses and offsets of different parts) will be slightly different in the QUICC Engine (QE) version. Indeed, in QE version, some resources need to be allocated and are no more "staticaly" defined. In or

[PATCH v1 24/36] soc: fsl: cpm1: qmc: Introduce qmc_data structure

2024-07-29 Thread Herve Codina
Current code handles CPM1 version of QMC. Some hardcoded values are used several times to initialize the QMC state machine. In the QUICC Engine (QE) version of QMC, these values are different. In order to prepare the support for the QE version of QMC and avoid the copy of the hardcoded values, int

[PATCH v1 23/36] dt-bindings: soc: fsl: cpm_qe: Add QUICC Engine (QE) QMC controller

2024-07-29 Thread Herve Codina
Add support for the QMC (QUICC Multichannel Controller) available in some PowerQUICC SoC that uses a QUICC Engine (QE) block such as MPC8321. This QE QMC is similar to the CPM QMC except that it uses UCCs (Unified Communication Controllers) instead of SCCs (Serial Communication Controllers). Also,

[PATCH v1 21/36] soc: fsl: cpm1: qmc: Fix 'transmiter' typo

2024-07-29 Thread Herve Codina
checkpatch.pl raises the following issue CHECK: 'transmiter' may be misspelled - perhaps 'transmitter'? Indeed, fix it. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/q

[PATCH v1 20/36] soc: fsl: cpm1: qmc: Remove unneeded parenthesis

2024-07-29 Thread Herve Codina
checkpatch.pl raises the following issue in several places CHECK: Unnecessary parenthesis around ... Remove them. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/fsl/qe/qmc.c b/drivers/soc/fsl/qe/

[PATCH v1 19/36] soc: fsl: cpm1: qmc: Fix blank line and spaces

2024-07-29 Thread Herve Codina
checkpatch.pl raises the following issues CHECK: Please don't use multiple blank lines CHECK: Alignment should match open parenthesis Fix them. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/soc

[PATCH v1 17/36] soc: fsl: cpm1: qmc: Rename QMC_TSA_MASK

2024-07-29 Thread Herve Codina
QMC_TSA_MASK is a bitfield. The value defined is a specific value of this bitfield and correspond to the use of 8bit resolution for the routing entry. Be accurate and rename the defined constant to reflect this point. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 8 1 file

[PATCH v1 16/36] soc: fsl: cpm1: tsa: Introduce tsa_serial_get_num()

2024-07-29 Thread Herve Codina
TSA consumers in CPM1 implementation don't need to know about the serial device number used by the TSA component. In QUICC Engine implementation, this information is needed. Improve the TSA API with tsa_serial_get_num() in order to provide this information. Signed-off-by: Herve Codina --- drive

[PATCH v1 15/36] MAINTAINERS: Add QE files related to the Freescale TSA controller

2024-07-29 Thread Herve Codina
The Freescale TSA controller driver supports both QE and CPM1. Add the newly introduced QE files to the existing entry. Signed-off-by: Herve Codina --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 42decde38320..1d32d38f2247 100644 --- a/MAINT

[PATCH v1 14/36] soc: fsl: cpm1: tsa: Add support for QUICC Engine (QE) implementation

2024-07-29 Thread Herve Codina
Add support for the time slot assigner (TSA) available in some PowerQUICC SoC that uses a QUICC Engine (QE) block such as MPC8321. The QE TSA is similar to the CPM1 TSA except that it uses UCCs (Unified Communication Controllers) instead of SCCs (Serial Communication Controllers). Also, compared a

[PATCH v1 10/36] soc: fsl: cpm1: tsa: Make SIRAM entries specific to CPM1

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of TSA. Compared against QUICC Engine (QE) version of TSA, CPM1 SIRAM entries are slightly different. In order to prepare the support for the QE version, clearly identify these entries and functions handling them as CPM1 compatible. Signed-off-by: Herve Codin

[PATCH v1 12/36] soc: fsl: cpm1: tsa: Isolate specific CPM1 part from tsa_serial_{dis}connect()

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of TSA. Connecting and disconnecting the SCC to/from the TSA consists in handling SICR register which is CPM1 specific. The connection and disconnection operation in the QUICC Engine (QE) version are slightly different. In order to prepare the support for the

[PATCH v1 11/36] soc: fsl: cpm1: tsa: Introduce tsa_setup() and its CPM1 compatible version

2024-07-29 Thread Herve Codina
Current code handles the CPM1 version of TSA. Setting up TSA consists in handling SIMODE and SIGMR registers. These registers are CPM1 specific. Setting up the QUICC Engine (QE) version of TSA is slightly different. In order to prepare the support for QE version, clearly identify these registers

[PATCH v1 13/36] soc: fsl: cpm1: tsa: Introduce tsa_version

2024-07-29 Thread Herve Codina
Current code handles CPM1 version of TSA. In order to prepare the support for the QUICC Engine (QE) version of TSA, introduce tsa_version to identify versions. This will enable the code to make the distinction between several TSA implementations. Signed-off-by: Herve Codina --- drivers/soc/fsl/

[PATCH v1 09/36] soc: fsl: cpm1: tsa: Use ARRAY_SIZE() instead of hardcoded integer values

2024-07-29 Thread Herve Codina
Loops handling the tdm array use hardcoded size and the initialization part uses hardcoded indexes to initialize the array. Use ARRAY_SIZE() to avoid the hardcoded size and initialize the array using a loop. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/tsa.c | 8 1 file changed,

[PATCH v1 05/36] soc: fsl: cpm1: tsa: Fix blank line and spaces

2024-07-29 Thread Herve Codina
checkpatch.pl raises the following issues CHECK: Please don't use multiple blank lines CHECK: spaces preferred around that '/' (ctx:VxV) CHECK: spaces preferred around that '+' (ctx:VxV) CHECK: spaces preferred around that '-' (ctx:VxV) Fix them. Signed-off-by: Herve Codina --- drivers/

[PATCH v1 02/36] soc: fsl: cpm1: qmc: Enable TRNSYNC only when needed

2024-07-29 Thread Herve Codina
The TRNSYNC feature is enabled whatever the number of time-slots used. The feature is needed only when more than one time-slot is used. Improve the driver enabling TRNSYNC only when it is needed. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 12 +++- 1 file changed, 11 inse

[PATCH v1 07/36] dt-bindings: soc: fsl: cpm_qe: Add QUICC Engine (QE) TSA controller

2024-07-29 Thread Herve Codina
Add support for the time slot assigner (TSA) available in some PowerQUICC SoC that uses a QUICC Engine (QE) block such as MPC8321. This QE TSA is similar to the CPM TSA except that it uses UCCs (Unified Communication Controllers) instead of SCCs (Serial Communication Controllers). Also, compared a

[PATCH v1 00/36] soc: fsl: Add support for QUICC Engine TSA and QMC

2024-07-29 Thread Herve Codina
Hi, This series add support for the QUICC Engine (QE) version of TSA and QMC components. CPM1 version is already supported and, as the QE version of those component are pretty similar to the CPM1 version, the series extend the already existing drivers to support for the QE version. The TSA and Q

[PATCH v1 08/36] soc: fsl: cpm1: tsa: Remove unused registers offset definition

2024-07-29 Thread Herve Codina
SISTR, SICMR and SIRP registers offset definitions are not used. In order to avoid unneeded code, remove them. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/tsa.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/soc/fsl/qe/tsa.c b/drivers/soc/fsl/qe/tsa.c index a9d35b444

[PATCH v1 01/36] soc: fsl: cpm1: qmc: Update TRNSYNC only in transparent mode

2024-07-29 Thread Herve Codina
The TRNSYNC feature is available (and enabled) only in transparent mode. Since commit 7cc9bda9c163 ("soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()") TRNSYNC register is updated in transparent and hdlc mode. In hdlc mode, the address of the TRNSYNC register is used by t

[PATCH v1 06/36] soc: fsl: cpm1: tsa: Add missing spinlock comment

2024-07-29 Thread Herve Codina
checkpatch.pl raises the following issue CHECK: spinlock_t definition without comment Add the missing comment. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/tsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qe/tsa.c b/drivers/soc/fsl/qe/tsa.c index

[PATCH v1 03/36] soc: fsl: cpm1: tsa: Fix tsa_write8()

2024-07-29 Thread Herve Codina
The tsa_write8() parameter is an u32 value. This is not consistent with the function itself. Indeed, tsa_write8() writes an 8bits value. Be consistent and use an u8 parameter value. Fixes: 1d4ba0b81c1c ("soc: fsl: cpm1: Add support for TSA") Cc: sta...@vger.kernel.org Signed-off-by: Herve Codina

[PATCH v1 04/36] soc: fsl: cpm1: tsa: Use BIT(), GENMASK() and FIELD_PREP() macros

2024-07-29 Thread Herve Codina
checkpatch.pl signals the following improvement for tsa.c CHECK: Prefer using the BIT macro Follow its suggestion and convert the code to BIT() and related macros. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/tsa.c | 127 +-- 1 file changed, 68 insert

Re: [PATCH] powerpc/ftrace: restore r2 to caller's stack on livepatch sibling call

2024-07-29 Thread Michael Ellerman
Hi Ryan, Thanks for the patch. Ryan Sullivan writes: > Currently, on PowerPC machines, sibling calls in livepatched functions > cause the stack to be corrupted and are thus not supported by tools > such as kpatch. Below is an example stack frame showing one such > currupted stacks: ... > diff --

Re: [PATCH v2] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-29 Thread Jarkko Sakkinen
On Mon Jul 29, 2024 at 4:29 PM EEST, Stefan Berger wrote: > Commit d2add27cf2b8 ("tpm: Add NULL primary creation") introduced > CONFIG_TCG_TPM2_HMAC. When this option is enabled on ppc64 then the > following message appears in the kernel log due to a missing call to > tpm2_sessions_init(). > > [

[PATCH v2] tpm: ibmvtpm: Call tpm2_sessions_init() to initialize session support

2024-07-29 Thread Stefan Berger
Commit d2add27cf2b8 ("tpm: Add NULL primary creation") introduced CONFIG_TCG_TPM2_HMAC. When this option is enabled on ppc64 then the following message appears in the kernel log due to a missing call to tpm2_sessions_init(). [2.654549] tpm tpm0: auth session is not active Add the missing call

Re: [PATCH v1 1/3] mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options

2024-07-29 Thread Russell King (Oracle)
On Fri, Jul 26, 2024 at 05:07:26PM +0200, David Hildenbrand wrote: > Let's clean that up a bit and prepare for depending on > CONFIG_SPLIT_PMD_PTLOCKS in other Kconfig options. > > More cleanups would be reasonable (like the arch-specific "depends on" > for CONFIG_SPLIT_PTE_PTLOCKS), but we'll lea

Re: [PATCH v2] PCI: Fix crash during pci_dev hot-unplug on pseries KVM guest

2024-07-29 Thread Amit Machhiwal
Hi Lizhi, On 2024/07/26 11:45 AM, Lizhi Hou wrote: > > On 7/26/24 10:52, Rob Herring wrote: > > On Thu, Jul 25, 2024 at 6:06 PM Lizhi Hou wrote: > > > Hi Amit, > > > > > > > > > I try to follow the option which add a OF flag. If Rob is ok with this, > > > I would suggest to use it instead of V

[PATCH v3 0/3] dma: support DMA zone starting above 4GB

2024-07-29 Thread Baruch Siach
DMA zones code assumes that DMA lower limit is zero. When there is no RAM below 4GB, arm64 platform code sets DMA/DMA32 zone limits to cover the entire RAM[0]. My target platform has RAM starting at 32GB. Devices with 30-bit DMA mask are mapped to 1GB at the bottom of RAM, between 32GB - 33GB.

[PATCH v3 1/3] dma-mapping: improve DMA zone selection

2024-07-29 Thread Baruch Siach
When device DMA limit does not fit in DMA32 zone it should use DMA zone, even when DMA zone is stricter than needed. Same goes for devices that can't allocate from the entire normal zone. Limit to DMA32 in that case. Reported-by: Catalin Marinas Signed-off-by: Baruch Siach --- kernel/dma/direc

[PATCH v3 3/3] dma-direct: use RAM start to offset zone_dma_limit

2024-07-29 Thread Baruch Siach
Current code using zone_dma_limit assume that all address range below limit is suitable for DMA. For some existing platforms this assumption is not correct. DMA range might have non zero lower limit. Commit 791ab8b2e3db ("arm64: Ignore any DMA offsets in the max_zone_phys() calculation") made DMA/

[PATCH v3 2/3] dma-mapping: replace zone_dma_bits by zone_dma_limit

2024-07-29 Thread Baruch Siach
From: Catalin Marinas Hardware DMA limit might not be power of 2. When RAM range starts above 0, say 4GB, DMA limit of 30 bits should end at 5GB. A single high bit can not encode this limit. Use direct phys_addr_t limit address for DMA zone limit. Signed-off-by: Catalin Marinas Signed-off-by:

Re: PCI: Work around PCIe link training failures

2024-07-29 Thread Ilpo Järvinen
On Fri, 26 Jul 2024, Matthew W Carlis wrote: > On Mon, 22 Jul 2024, Maciej W. Rozycki wrote: > > > The main reason is it is believed that it is the downstream device > > causing the issue, and obviously you can't fetch its ID if you can't > > negotiate link so as to talk to it in the first place.

Re: Build regressions/improvements in v6.11-rc1

2024-07-29 Thread Geert Uytterhoeven
Hi Arnd, On Mon, Jul 29, 2024 at 11:55 AM Arnd Bergmann wrote: > On Mon, Jul 29, 2024, at 11:35, Geert Uytterhoeven wrote: > >> + /kisskb/src/kernel/fork.c: error: #warning clone3() entry point is > >> missing, please fix [-Werror=cpp]: => 3072:2 > > > > sh4-gcc13/se{7619,7750}_defconfig > > s

Re: Build regressions/improvements in v6.11-rc1

2024-07-29 Thread Arnd Bergmann
On Mon, Jul 29, 2024, at 11:35, Geert Uytterhoeven wrote: > >> + /kisskb/src/kernel/fork.c: error: #warning clone3() entry point is >> missing, please fix [-Werror=cpp]: => 3072:2 > > sh4-gcc13/se{7619,7750}_defconfig > sh4-gcc13/sh-all{mod,no,yes}config > sh4-gcc13/sh-defconfig > sparc64-gcc5/s

Re: Build regressions/improvements in v6.11-rc1

2024-07-29 Thread Geert Uytterhoeven
On Mon, 29 Jul 2024, Geert Uytterhoeven wrote: Below is the list of build error/warning regressions/improvements in v6.11-rc1[1] compared to v6.10[2]. Summarized: - build errors: +7/-22 [1] http://kisskb.ellerman.id.au/kisskb/branch/linus/head/8400291e289ee6b2bf9779ff1c83a291501f017b/ (all

Re: [PATCH v12 00/11] Support page table check PowerPC

2024-07-29 Thread Andrew Donnellan
On Tue, 2024-06-18 at 13:09 +, LEROY Christophe wrote > > Seems like this series doesn't apply, patch 1 has conflict with > RISCV, > patch 2 with mm and RISCV. > > Please rebase as appropriate. As you've probably gathered from the mailer-daemon failure notice I assume you probably received,

Re: [PATCH 0/2] ASoC: fsl_micfil: Check the difference for i.MX8 and i.MX9

2024-07-29 Thread Iuliana Prodan
On 7/25/2024 11:54 AM, Shengjiu Wang wrote: There are some register difference for i.MX8 and i.MX9 REG_MICFIL_FIFO_CTRL definition is updated. REG_MICFIL_FSYNC_CTRL, REG_MICFIL_VERID, REG_MICFIL_PARAM are added from i.MX9 Shengjiu Wang (2): ASoC: fsl_micfil: Expand the range of FIFO watermark

Re: [PATCH v1 1/3] mm: turn USE_SPLIT_PTE_PTLOCKS / USE_SPLIT_PTE_PTLOCKS into Kconfig options

2024-07-29 Thread Qi Zheng
On 2024/7/26 23:07, David Hildenbrand wrote: Let's clean that up a bit and prepare for depending on CONFIG_SPLIT_PMD_PTLOCKS in other Kconfig options. More cleanups would be reasonable (like the arch-specific "depends on" for CONFIG_SPLIT_PTE_PTLOCKS), but we'll leave that for another day. S