[PATCH v3 1/2] ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver

2020-09-29 Thread Viorel Suman (OSS)
From: Viorel Suman XCVR (Audio Transceiver) is a on-chip functional module found on i.MX8MP. It support HDMI2.1 eARC, HDMI1.4 ARC and SPDIF. Signed-off-by: Viorel Suman --- sound/soc/fsl/Kconfig| 10 + sound/soc/fsl/Makefile |2 + sound/soc/fsl/fsl_xcvr.c | 1356

Re: [PATCH] linux: configure CONFIG_I2C_OPAL as in-built.

2020-09-29 Thread Nayna
On 9/29/20 2:14 AM, Joel Stanley wrote: On Fri, 25 Sep 2020 at 18:19, Mimi Zohar wrote: Hi Nayna, On Wed, 2020-09-23 at 14:25 -0400, Nayna Jain wrote: Currently, skiroot_defconfig CONFIG_I2C_OPAL is built as a loadable module rather than builtin, even if CONFIG_I2C=y is defined. This

RE: [PATCH v2 1/2] ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver

2020-09-29 Thread Viorel Suman (OSS)
Hi Philipp, Thank you for your review, please check my comments inline. /Viorel > -Original Message- > From: Philipp Zabel [mailto:p...@pengutronix.de] > Sent: Tuesday, September 22, 2020 3:09 PM > To: Viorel Suman (OSS) > Cc: Liam Girdwood ; Mark Brown > ; Rob Herring ; Jaroslav

[PATCH v3 3/5] arm: dts: ls1021a: enable RCPM workaround for erratum A-008646

2020-09-29 Thread Ran Wang
From: Biwen Li The patch fixes a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- Change in v3: - Update proterty according to binding and driver change. Change in v2: - Change subject of commit message to be consistent with other

[PATCH v3 1/5] Documentation: dt: binding: fsl: Add 'fsl, ippdexpcr1-alt-reg' property

2020-09-29 Thread Ran Wang
From: Biwen Li The 'fsl,ippdexpcr1-alt-reg' property is used to handle an errata A-008646 on LS1021A. Signed-off-by: Biwen Li Signed-off-by: Ran Wang --- Change in v3: - Simplize related proterty definition and rename it. Change in v2: - None

[PATCH v3 4/5] arm: dts: ls1021a: fix flextimer failed to wake system

2020-09-29 Thread Ran Wang
The data of property 'fsl,rcpm-wakeup' is not corrcet, which causing RCPM driver incorrectly program register IPPDEXPCR1, then flextimer is wrongly clock gated during system suspend, can't send interrupt to wake. Signed-off-by: Ran Wang Acked-by: Li Yang --- Change in v3: - None Change in v2:

[PATCH -next] ASoC: fsl: imx-mc13783: use devm_snd_soc_register_card()

2020-09-29 Thread Qinglang Miao
Using devm_snd_soc_register_card() can make the code shorter and cleaner. Signed-off-by: Qinglang Miao --- sound/soc/fsl/imx-mc13783.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c index

[PATCH v3 0/2] DAI driver for new XCVR IP

2020-09-29 Thread Viorel Suman (OSS)
From: Viorel Suman DAI driver for new XCVR IP found in i.MX8MP. Viorel Suman (2): ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver ASoC: dt-bindings: fsl_xcvr: Add document for XCVR Changes since v1: - improved 6- and 12-ch layout comment - used regmap polling function, improved clocks

Re: [PATCH] linux: configure CONFIG_I2C_OPAL as in-built.

2020-09-29 Thread Mimi Zohar
Hi Joel, On Tue, 2020-09-29 at 06:14 +, Joel Stanley wrote: > On Fri, 25 Sep 2020 at 18:19, Mimi Zohar wrote: > > > > Hi Nayna, > > > > On Wed, 2020-09-23 at 14:25 -0400, Nayna Jain wrote: > > > Currently, skiroot_defconfig CONFIG_I2C_OPAL is built as a loadable > > > module rather than

[PATCH v3 5/5] arm: dts: ls1021a: fix rcpm failed to claim resource

2020-09-29 Thread Ran Wang
The range of dcfg reg is wrong, which overlap with other device, such as rcpm. This issue causing rcpm driver failed to claim reg resource when calling devm_ioremap_resource(). Signed-off-by: Ran Wang Acked-by: Li Yang --- Change in v3: - None Change in v2: - None

[PATCH v3 2/5] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2020-09-29 Thread Ran Wang
From: Biwen Li Hardware issue: - Reading register RCPM_IPPDEXPCR1 always return zero, this causes system firmware could not get correct information and wrongly do clock gating for all wakeup source IP during system suspend. Then those IPs will never get chance to wake system. Workaround:

[PATCH v3 2/2] ASoC: dt-bindings: fsl_xcvr: Add document for XCVR

2020-09-29 Thread Viorel Suman (OSS)
From: Viorel Suman XCVR (Audio Transceiver) is a new IP module found on i.MX8MP. Signed-off-by: Viorel Suman --- .../devicetree/bindings/sound/fsl,xcvr.yaml| 103 + 1 file changed, 103 insertions(+) create mode 100644

Re: [PATCH] powerpc: net: bpf_jit_comp: Fix misuse of fallthrough

2020-09-29 Thread Daniel Borkmann
On 9/28/20 11:00 AM, zhe...@windriver.com wrote: From: He Zhe The user defined label following "fallthrough" is not considered by GCC and causes build failure. kernel-source/include/linux/compiler_attributes.h:208:41: error: attribute 'fallthrough' not preceding a case label or default label

Re: [PATCH v2 2/3] lkdtm/powerpc: Add SLB multihit test

2020-09-29 Thread Michal Suchánek
Hello, On Fri, Sep 25, 2020 at 12:57:33PM -0700, Kees Cook wrote: > On Fri, Sep 25, 2020 at 04:01:22PM +0530, Ganesh Goudar wrote: > > Add support to inject slb multihit errors, to test machine > > check handling. > > Thank you for more tests in here! Thanks for working on integrating this. > >

[PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB

2020-09-29 Thread Vladimir Oltean
Seville is a DSA switch that is embedded inside the T1040 SoC, and supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. This series adds this switch to the SoC's dtsi files and to the T1040RDB board file. Vladimir Oltean (2): powerpc: dts: t1040: add bindings for Seville

Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-09-29 Thread Vladimir Oltean
On Tue, Sep 29, 2020 at 09:11:53PM +0200, Andrew Lunn wrote: > > +_port0 { > > + managed = "in-band-status"; > > + phy-handle = <_qsgmii_0>; > > + phy-mode = "qsgmii"; > > + /* ETH4 written on chassis */ > > + label = "swp4"; > > If ETH4 is on the chassis why not use ETH4? You mean

Re: [PATCH v2 14/14] powerpc/pseries/iommu: Rename "direct window" to "dma window"

2020-09-29 Thread Leonardo Bras
On Tue, 2020-09-29 at 13:55 +1000, Alexey Kardashevskiy wrote: > > On 12/09/2020 03:07, Leonardo Bras wrote: > > Cc: linuxppc-dev@lists.ozlabs.org, linux-ker...@vger.kernel.org, > > > > A previous change introduced the usage of DDW as a bigger indirect DMA > > mapping when the DDW available size

Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-09-29 Thread Andrew Lunn
> +_port0 { > + managed = "in-band-status"; > + phy-handle = <_qsgmii_0>; > + phy-mode = "qsgmii"; > + /* ETH4 written on chassis */ > + label = "swp4"; If ETH4 is on the chassis why not use ETH4? Andrew

Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-09-29 Thread Andrew Lunn
On Tue, Sep 29, 2020 at 07:39:54PM +, Vladimir Oltean wrote: > On Tue, Sep 29, 2020 at 09:11:53PM +0200, Andrew Lunn wrote: > > > +_port0 { > > > + managed = "in-band-status"; > > > + phy-handle = <_qsgmii_0>; > > > + phy-mode = "qsgmii"; > > > + /* ETH4 written on chassis */ > > > + label =

[PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch

2020-09-29 Thread Vladimir Oltean
Add the description of the embedded L2 switch inside the SoC dtsi file for NXP T1040. Signed-off-by: Vladimir Oltean --- Changes in v2: Make switch node disabled by default. arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 76 + 1 file changed, 76 insertions(+) diff --git

[PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-09-29 Thread Vladimir Oltean
From: Vladimir Oltean Define the network interface names for the switch ports and hook them up to the 2 QSGMII PHYs that are onboard. A conscious decision was taken to go along with the numbers that are written on the front panel of the board and not with the hardware numbers of the switch chip

Re: [PATCH v2 01/14] powerpc/pseries/iommu: Replace hard-coded page shift

2020-09-29 Thread Leonardo Bras
On Tue, 2020-09-29 at 13:56 +1000, Alexey Kardashevskiy wrote: > > On 12/09/2020 03:07, Leonardo Bras wrote: > > Cc: linuxppc-dev@lists.ozlabs.org, linux-ker...@vger.kernel.org, > > These normally go right before "signed-off-by". > Yeah, it looks like something went wrong between git

Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-09-29 Thread Vladimir Oltean
On Tue, Sep 29, 2020 at 10:10:48PM +0200, Andrew Lunn wrote: > On Tue, Sep 29, 2020 at 07:39:54PM +, Vladimir Oltean wrote: > > On Tue, Sep 29, 2020 at 09:11:53PM +0200, Andrew Lunn wrote: > > > > +_port0 { > > > > + managed = "in-band-status"; > > > > + phy-handle = <_qsgmii_0>; >

Re: [PATCH v2 4/7] powerpc: Remove PowerPC 601

2020-09-29 Thread Segher Boessenkool
On Tue, Sep 29, 2020 at 06:09:21AM +, Christophe Leroy wrote: > Powerpc 601 is 25 years old. So is 603, but that one is still used! :-) > It is not selected by any defconfig. > > It requires a lot of special handling as it deviates from the > standard 6xx. > > Retire it. That is fine

Re: [PATCH v2 devicetree 0/2] Add Seville Ethernet switch to T1040RDB

2020-09-29 Thread Maxim Kochetkov
Reviewed-by: Maxim Kochetkov 29.09.2020 14:32, Vladimir Oltean пишет: Seville is a DSA switch that is embedded inside the T1040 SoC, and supported by the mscc_seville DSA driver inside drivers/net/dsa/ocelot. This series adds this switch to the SoC's dtsi files and to the T1040RDB board file.

Re: [PATCH v2 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch

2020-09-29 Thread Maxim Kochetkov
Reviewed-by: Maxim Kochetkov 29.09.2020 14:32, Vladimir Oltean пишет: From: Vladimir Oltean Define the network interface names for the switch ports and hook them up to the 2 QSGMII PHYs that are onboard. A conscious decision was taken to go along with the numbers that are written on the

Re: [PATCH v2 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch

2020-09-29 Thread Maxim Kochetkov
Reviewed-by: Maxim Kochetkov 29.09.2020 14:32, Vladimir Oltean пишет: Add the description of the embedded L2 switch inside the SoC dtsi file for NXP T1040. Signed-off-by: Vladimir Oltean --- Changes in v2: Make switch node disabled by default. arch/powerpc/boot/dts/fsl/t1040si-post.dtsi

Re: [PATCH] ibmvfc: Protect vhost->task_set increment by the host lock

2020-09-29 Thread Martin K. Petersen
On Wed, 16 Sep 2020 15:09:59 -0500, Brian King wrote: > In the discovery thread, ibmvfc does a vhost->task_set++ without > any lock held. This could result in two targets getting the same > cancel key, which could have strange effects in error recovery. > The actual probability of this occurring

Re: [PATCH v2 1/7] powerpc: Remove SYNC on non 6xx

2020-09-29 Thread Christophe Leroy
Le 29/09/2020 à 08:09, Christophe Leroy a écrit : SYNC is usefull for Powerpc 601 only. On everything else, SYNC is empty. Remove it from code that is not made to run on 6xx. Signed-off-by: Christophe Leroy Oops, the last patch of the series is missing. Will resend, sorry for the noise.

[PATCH v3 1/8] powerpc: Remove SYNC on non 6xx

2020-09-29 Thread Christophe Leroy
SYNC is usefull for Powerpc 601 only. On everything else, SYNC is empty. Remove it from code that is not made to run on 6xx. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 1 - arch/powerpc/kernel/head_booke.h | 1 - arch/powerpc/kernel/misc_64.S| 1 - 3 files

[PATCH v3 2/8] powerpc: Remove CONFIG_PPC601_SYNC_FIX

2020-09-29 Thread Christophe Leroy
This config option isn't in any defconfig. The very first versions of Powerpc 601 have a bug which requires additional sync before and/or after some instructions. This was more than 25 years ago and time has come to retire those buggy versions of the 601 from the kernel. Signed-off-by:

[PATCH v3 5/8] powerpc: Remove support for PowerPC 601

2020-09-29 Thread Christophe Leroy
PowerPC 601 has been retired. Remove all associated specific code. CPU_FTRS_PPC601 has CPU_FTR_COHERENT_ICACHE and CPU_FTR_COMMON. CPU_FTR_COMMON is already present via other CPU_FTRS. None of the remaining CPU selects CPU_FTR_COHERENT_ICACHE. So CPU_FTRS_PPC601 can be removed from the

[PATCH v3 3/8] powerpc: Drop SYNC_601() ISYNC_601() and SYNC()

2020-09-29 Thread Christophe Leroy
Those macros are now empty at all time. Drop them. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 4 arch/powerpc/kernel/entry_32.S | 17 + arch/powerpc/kernel/fpu.S | 1 - arch/powerpc/kernel/head_32.S | 9 -

[PATCH v3 7/8] powerpc: Remove __USE_RTC()

2020-09-29 Thread Christophe Leroy
Now that PowerPC 601 is gone, __USE_RTC() is never true. Remove it. That also leads to removing get_rtc() and get_rtcl() Signed-off-by: Christophe Leroy --- v2: Also remove get_rtc() and get_rtcl() --- arch/powerpc/include/asm/time.h | 28 +- arch/powerpc/kernel/time.c |

[PATCH v3 6/8] powerpc: Tidy up a bit after removal of PowerPC 601.

2020-09-29 Thread Christophe Leroy
The removal of the 601 left some standalone blocks from former if/else. Drop the { } and re-indent. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/btext.c| 11 +++-- arch/powerpc/mm/book3s32/mmu.c | 45 +++--- 2 files changed, 24 insertions(+), 32

[PATCH v3 8/8] powerpc: Remove get_tb_or_rtc()

2020-09-29 Thread Christophe Leroy
601 is gone, get_tb_or_rtc() is equivalent to get_tb(). Replace the former by the later. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/time.h | 5 - arch/powerpc/kernel/irq.c | 2 +- arch/powerpc/kernel/time.c | 6 +++--- 3 files changed, 4 insertions(+), 9

[PATCH v3 4/8] powerpc: Remove PowerPC 601

2020-09-29 Thread Christophe Leroy
Powerpc 601 is 25 years old. It is not selected by any defconfig. It requires a lot of special handling as it deviates from the standard 6xx. Retire it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/cputable.c | 15 --- arch/powerpc/platforms/Kconfig.cputype |

[PATCH v2 1/7] powerpc: Remove SYNC on non 6xx

2020-09-29 Thread Christophe Leroy
SYNC is usefull for Powerpc 601 only. On everything else, SYNC is empty. Remove it from code that is not made to run on 6xx. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_40x.S | 1 - arch/powerpc/kernel/head_booke.h | 1 - arch/powerpc/kernel/misc_64.S| 1 - 3 files

[PATCH v2 5/7] powerpc: Remove support for PowerPC 601

2020-09-29 Thread Christophe Leroy
PowerPC 601 has been retired. Remove all associated specific code. CPU_FTRS_PPC601 has CPU_FTR_COHERENT_ICACHE and CPU_FTR_COMMON. CPU_FTR_COMMON is already present via other CPU_FTRS. None of the remaining CPU selects CPU_FTR_COHERENT_ICACHE. So CPU_FTRS_PPC601 can be removed from the

[PATCH v2 4/7] powerpc: Remove PowerPC 601

2020-09-29 Thread Christophe Leroy
Powerpc 601 is 25 years old. It is not selected by any defconfig. It requires a lot of special handling as it deviates from the standard 6xx. Retire it. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/cputable.c | 15 --- arch/powerpc/platforms/Kconfig.cputype |

[PATCH v2 6/7] powerpc: Tidy up a bit after removal of PowerPC 601.

2020-09-29 Thread Christophe Leroy
The removal of the 601 left some standalone blocks from former if/else. Drop the { } and re-indent. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/btext.c| 11 +++-- arch/powerpc/mm/book3s32/mmu.c | 45 +++--- 2 files changed, 24 insertions(+), 32

[PATCH v2 3/7] powerpc: Drop SYNC_601() ISYNC_601() and SYNC()

2020-09-29 Thread Christophe Leroy
Those macros are now empty at all time. Drop them. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/ppc_asm.h | 4 arch/powerpc/kernel/entry_32.S | 17 + arch/powerpc/kernel/fpu.S | 1 - arch/powerpc/kernel/head_32.S | 9 -

[PATCH v2 7/7] powerpc: Remove __USE_RTC()

2020-09-29 Thread Christophe Leroy
Now that PowerPC 601 is gone, __USE_RTC() is never true. Remove it. That also leads to removing get_rtc() and get_rtcl() Signed-off-by: Christophe Leroy --- v2: Also remove get_rtc() and get_rtcl() --- arch/powerpc/include/asm/time.h | 28 +- arch/powerpc/kernel/time.c |

[PATCH v2 2/7] powerpc: Remove CONFIG_PPC601_SYNC_FIX

2020-09-29 Thread Christophe Leroy
This config option isn't in any defconfig. The very first versions of Powerpc 601 have a bug which requires additional sync before and/or after some instructions. This was more than 25 years ago and time has come to retire those buggy versions of the 601 from the kernel. Signed-off-by:

Re: [PATCH] linux: configure CONFIG_I2C_OPAL as in-built.

2020-09-29 Thread Joel Stanley
On Fri, 25 Sep 2020 at 18:19, Mimi Zohar wrote: > > Hi Nayna, > > On Wed, 2020-09-23 at 14:25 -0400, Nayna Jain wrote: > > Currently, skiroot_defconfig CONFIG_I2C_OPAL is built as a loadable > > module rather than builtin, even if CONFIG_I2C=y is defined. This > > results in a delay in the TPM

[PATCH v12 3/5] powerpc/vdso: Save and restore TOC pointer on PPC64

2020-09-29 Thread Christophe Leroy
On PPC64, the TOC pointer needs to be saved and restored. Suggested-by: Michael Ellerman Signed-off-by: Christophe Leroy --- v9: New. I'm not sure this is really needed, I can't see the VDSO C code doing anything with r2, at least on ppc64_defconfig. So I let you decide whether you take it or

[PATCH v12 2/5] powerpc/vdso: Prepare for switching VDSO to generic C implementation.

2020-09-29 Thread Christophe Leroy
Prepare for switching VDSO to generic C implementation in following patch. Here, we: - Prepare the helpers to call the C VDSO functions - Prepare the required callbacks for the C VDSO functions - Prepare the clocksource.h files to define VDSO_ARCH_CLOCKMODES - Add the C trampolines to the generic

[PATCH v12 1/5] powerpc/processor: Move cpu_relax() into asm/vdso/processor.h

2020-09-29 Thread Christophe Leroy
cpu_relax() need to be in asm/vdso/processor.h to be used by the C VDSO generic library. Move it there. Signed-off-by: Christophe Leroy --- v9: Forgot to remove cpu_relax() from processor.h in v8 --- arch/powerpc/include/asm/processor.h | 13 ++---

[PATCH v12 4/5] powerpc/vdso: Switch VDSO to generic C implementation.

2020-09-29 Thread Christophe Leroy
For VDSO32 on PPC64, we create a fake 32 bits config, on the same principle as MIPS architecture, in order to get the correct parts of the different asm header files. With the C VDSO, the performance is slightly lower, but it is worth it as it will ease maintenance and evolution, and also brings

[PATCH v12 0/5] powerpc: switch VDSO to C implementation

2020-09-29 Thread Christophe Leroy
This is a series to switch powerpc VDSO to generic C implementation. Changes in v12: - Rebased to today's powerpc/merge branch (Conflicts on VDSO Makefiles) - Added missing prototype for __kernel_clock_gettime64() Changes in v11: - Rebased to today's powerpc/merge branch - Prototype of

[PATCH v12 5/5] powerpc/vdso: Provide __kernel_clock_gettime64() on vdso32

2020-09-29 Thread Christophe Leroy
Provides __kernel_clock_gettime64() on vdso32. This is the 64 bits version of __kernel_clock_gettime() which is y2038 compliant. Signed-off-by: Christophe Leroy --- v12: Added missing prototype --- arch/powerpc/include/asm/vdso/gettimeofday.h | 2 ++ arch/powerpc/kernel/vdso32/gettimeofday.S