[PATCH] arch: powerpc: kernel: fixed some typos

2023-12-15 Thread Ghanshyam Agrawal
Fixed some typos Signed-off-by: Ghanshyam Agrawal --- arch/powerpc/kernel/eeh_pe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/kernel/eeh_pe.c b/arch/powerpc/kernel/eeh_pe.c index e0ce81279624..8e0c1a8b8641 100644 --- a/arch/powerpc/kernel/eeh_pe.c +++

[PATCH] ASoC: fsl_mqs: remove duplicated including

2023-12-15 Thread Wang Jinchao
rm the second \#include Signed-off-by: Wang Jinchao --- sound/soc/fsl/fsl_mqs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c index f2d74ec05cdf..c73e6c141f7e 100644 --- a/sound/soc/fsl/fsl_mqs.c +++ b/sound/soc/fsl/fsl_mqs.c @@ -12,7 +12,6

[powerpc:next] BUILD SUCCESS 8fc63a91e785ef06fb7f1aba59297793d85095f7

2023-12-15 Thread kernel test robot
ng hexagon randconfig-002-20231216 clang i386 allmodconfig clang i386 allnoconfig clang i386 allyesconfig clang i386 buildonly-randconfig-001-20231215 clang i386 buildonly-randconfig-00

Re: [PATCH v14 6/6] powerpc: add crash memory hotplug support

2023-12-15 Thread Baoquan He
On 12/15/23 at 11:29am, Sourabh Jain wrote: .. > > > +static void update_crash_elfcorehdr(struct kimage *image, struct > > > memory_notify *mn) > > > +{ > > > + int ret; > > > + struct crash_mem *cmem = NULL; > > > + struct kexec_segment *ksegment; > > > + void *ptr, *mem, *elfbuf = NULL; > >

Re: [PATCH RFC v4-bis] locking: introduce devm_mutex_init

2023-12-15 Thread Waiman Long
On 12/15/23 10:58, Andy Shevchenko wrote: On Fri, Dec 15, 2023 at 8:23 AM Christophe Leroy wrote: From: George Stark Using of devm API leads to a certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. M

Re: [PATCH RFC v4-bis] locking: introduce devm_mutex_init

2023-12-15 Thread Christophe Leroy
Le 15/12/2023 à 16:58, Andy Shevchenko a écrit : > On Fri, Dec 15, 2023 at 8:23 AM Christophe Leroy > wrote: >> >> From: George Stark >> >> Using of devm API leads to a certain order of releasing resources. >> So all dependent resources which are not devm-wrapped should be deleted >> with respe

Re: [PATCH] Reapply "kbuild: Create directory for target DTB"

2023-12-15 Thread Masahiro Yamada
On Wed, Dec 13, 2023 at 8:22 PM Matthias Schiffer wrote: > > On Tue, 2023-12-12 at 17:13 +, Masahiro Yamada wrote: > > > > > > On Wed, Dec 13, 2023 at 1:17 AM Matthias Schiffer > > wrote: > > > > > > This reverts commit dd7699e37f289fa433f42c6bcc108468c8b198c0. > > > > > > On powerpc, dtb-y i

Re: [PATCH 01/12] KVM: PPC: Book3S HV nestedv2: Invalidate RPT before deleting a guest

2023-12-15 Thread Aneesh Kumar K . V
Vaibhav Jain writes: > Hi Aneesh, > > Thanks for looking into this patch. My responses inline below: > > "Aneesh Kumar K.V (IBM)" writes: > >> Vaibhav Jain writes: >> >>> From: Jordan Niethe >>> >>> An L0 must invalidate the L2's RPT during H_GUEST_DELETE if this has not >>> already been done.

Re: [PATCH RFC v4-bis] locking: introduce devm_mutex_init

2023-12-15 Thread Andy Shevchenko
On Fri, Dec 15, 2023 at 8:23 AM Christophe Leroy wrote: > > From: George Stark > > Using of devm API leads to a certain order of releasing resources. > So all dependent resources which are not devm-wrapped should be deleted > with respect to devm-release order. Mutex is one of such objects that >

Re: [PATCH] ASoC: fsl_mqs: remove duplicated including

2023-12-15 Thread Mark Brown
On Fri, 15 Dec 2023 17:13:51 +0800, Wang Jinchao wrote: > rm the second \#include > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl_mqs: remove duplicated including commit: e7a4a2fd9a4116286a1523ea1a5cbabd2c36f5b9 All

Re: perf tools arch Arm CMN PMU JSON files build breakage on ubuntu 18.04 cross build

2023-12-15 Thread Arnaldo Carvalho de Melo
Em Fri, Dec 15, 2023 at 11:41:19AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Dec 15, 2023 at 11:39:14AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Mon, Mar 27, 2023 at 09:52:11AM +0530, kajoljain escreveu: > > > > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position

Re: perf tools arch Arm CMN PMU JSON files build breakage on ubuntu 18.04 cross build

2023-12-15 Thread Arnaldo Carvalho de Melo
Em Fri, Dec 15, 2023 at 11:39:14AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Mar 27, 2023 at 09:52:11AM +0530, kajoljain escreveu: > > On 3/23/23 18:41, Arnaldo Carvalho de Melo wrote: > > > Exception processing pmu-events/arch/powerpc/power9/other.json > > > Traceback (most recent call l

perf tools arch Arm CMN PMU JSON files build breakage on ubuntu 18.04 cross build

2023-12-15 Thread Arnaldo Carvalho de Melo
Em Mon, Mar 27, 2023 at 09:52:11AM +0530, kajoljain escreveu: > On 3/23/23 18:41, Arnaldo Carvalho de Melo wrote: > > Exception processing pmu-events/arch/powerpc/power9/other.json > > Traceback (most recent call last): > > File "pmu-events/jevents.py", line 997, in > > main() > > File "pm

[PATCH] powerpc/64s: Increase default stack size to 32KB

2023-12-15 Thread Michael Ellerman
There are reports of kernels crashing due to stack overflow while running OpenShift (Kubernetes). The primary contributor to the stack usage seems to be openvswitch, which is used by OVN-Kubernetes (based on OVN (Open Virtual Network)), but NFS also contributes in some stack traces. There may be s

[powerpc:fixes-test] BUILD SUCCESS d2441d3e8c0c076d0a2e705fa235c76869a85140

2023-12-15 Thread kernel test robot
arc randconfig-001-20231215 gcc arc randconfig-002-20231215 gcc arm allnoconfig gcc arm defconfig clang arm randconfig-001-20231215 clang arm randconfig-002-2023

Re: [PATCH] arch: powerpc: kernel: fixed some typos

2023-12-15 Thread Christophe Leroy
Le 15/12/2023 à 12:58, Ghanshyam Agrawal a écrit : > [Vous ne recevez pas souvent de courriers de ghanshyam1...@gmail.com. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Fixed some typos This kind of change is a waist of time for us and a waist

[PATCH][next] powerpc/selftests: Fix spelling mistake "EACCESS" -> "EACCES"

2023-12-15 Thread Colin Ian King
There is a spelling mistake of the EACCES error name, fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/powerpc/papr_sysparm/papr_sysparm.c b/tools/tes

[PATCH v5 6/6] docs: trusted-encrypted: add DCP as new trust source

2023-12-15 Thread David Gstir
Update the documentation for trusted and encrypted KEYS with DCP as new trust source: - Describe security properties of DCP trust source - Describe key usage - Document blob format Co-developed-by: Richard Weinberger Signed-off-by: Richard Weinberger Co-developed-by: David Oberhollenzer Signed

[PATCH v5 5/6] docs: document DCP-backed trusted keys kernel params

2023-12-15 Thread David Gstir
Document the kernel parameters trusted.dcp_use_otp_key and trusted.dcp_skip_zk_test for DCP-backed trusted keys. Co-developed-by: Richard Weinberger Signed-off-by: Richard Weinberger Co-developed-by: David Oberhollenzer Signed-off-by: David Oberhollenzer Signed-off-by: David Gstir --- Docume

[PATCH v5 4/6] MAINTAINERS: add entry for DCP-based trusted keys

2023-12-15 Thread David Gstir
This covers trusted keys backed by NXP's DCP (Data Co-Processor) chip found in smaller i.MX SoCs. Signed-off-by: David Gstir --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 90f13281d297..988d01226131 100644 --- a/MAINTAINERS +++ b/MAIN

[PATCH v5 3/6] KEYS: trusted: Introduce NXP DCP-backed trusted keys

2023-12-15 Thread David Gstir
DCP (Data Co-Processor) is the little brother of NXP's CAAM IP. Beside of accelerated crypto operations, it also offers support for hardware-bound keys. Using this feature it is possible to implement a blob mechanism similar to what CAAM offers. Unlike on CAAM, constructing and parsing the blob has

[PATCH v5 2/6] KEYS: trusted: improve scalability of trust source config

2023-12-15 Thread David Gstir
Checking if at least one valid trust source is selected does not scale and becomes hard to read. This improves this in preparation for the DCP trust source. Signed-off-by: David Gstir --- security/keys/trusted-keys/Kconfig | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --

[PATCH v5 1/6] crypto: mxs-dcp: Add support for hardware-bound keys

2023-12-15 Thread David Gstir
DCP is capable of performing AES with two hardware-bound keys: - The one-time programmable (OTP) key which is burnt via on-chip fuses - The unique key (UK) which is derived from the OTP key In addition to the two hardware-bound keys, DCP also supports storing keys in 4 dedicated key slots within

[PATCH v5 0/6] DCP as trusted keys backend

2023-12-15 Thread David Gstir
This is a revival of the previous patch set submitted by Richard Weinberger: https://lore.kernel.org/linux-integrity/20210614201620.30451-1-rich...@nod.at/ v4 is here: https://lore.kernel.org/keyrings/20231024162024.51260-1-da...@sigma-star.at/ v4 -> v5: - Make Kconfig for trust source check scal

Re: [PATCH 10/13] powerpc: Define KMSAN metadata address ranges for vmalloc and ioremap

2023-12-15 Thread Aneesh Kumar K . V
Nicholas Miehlbradt writes: > Splits the vmalloc region into four. The first quarter is the new > vmalloc region, the second is used to store shadow metadata and the > third is used to store origin metadata. The fourth quarter is unused. > Do we support KMSAN for both hash and radix? If hash is

Re: [PATCH 09/13] powerpc: Disable KMSAN checks on functions which walk the stack

2023-12-15 Thread Aneesh Kumar K . V
Nicholas Miehlbradt writes: > Functions which walk the stack read parts of the stack which cannot be > instrumented by KMSAN e.g. the backchain. Disable KMSAN sanitization of > these functions to prevent false positives. > Is the annotation needed to avoid uninitialized access check when reading

Re: [PATCH 1/2] powerpc/locking: implement this_cpu_cmpxchg local API

2023-12-15 Thread Luming Yu
On Mon, Dec 11, 2023 at 10:40:38PM +1100, Michael Ellerman wrote: > Hi Luming Yu, > > Luming Yu writes: > > ppc appears to have already supported cmpxchg-local atomic semantics > > that is defined by the kernel convention of the feature. > > Add this_cpu_cmpxchg ppc local for the performance bene

Re: [RFC PATCH 2/3] powerpc/fadump: pass additional parameters to dump capture kernel

2023-12-15 Thread Sourabh Jain
Hello Hari, On 06/12/23 01:48, Hari Bathini wrote: For fadump case, passing additional parameters to dump capture kernel helps in minimizing the memory footprint for it and also provides the flexibility to disable components/modules, like hugepages, that are hindering the boot process of the spe

Re: [RFC PATCH 1/3] powerpc/pseries/fadump: add support for multiple boot memory regions

2023-12-15 Thread Sourabh Jain
Hello Hari, On 06/12/23 01:48, Hari Bathini wrote: From: Sourabh Jain Currently, fadump on pseries assumes a single boot memory region even though f/w supports more than one boot memory region. Add support for more boot memory regions to make the implementation flexible for any enhancements th