Re: [PATCH V4 0/1] powerpc/perf: Clear pending PMI in ppmu callbacks

2021-11-22 Thread Nicholas Piggin
Excerpts from Athira Rajeev's message of November 20, 2021 12:36 am: > > >> On 21-Jul-2021, at 11:18 AM, Athira Rajeev >> wrote: >> >> Running perf fuzzer testsuite popped up below messages >> in the dmesg logs: >> >> "Can't find PMC that caused IRQ" >> >> This means a PMU exception happened

Re: [PATCH v2] powerpc/64s: introduce CONFIG_MAXSMP to test very large SMP

2021-11-22 Thread Nicholas Piggin
Excerpts from Nicholas Piggin's message of November 23, 2021 3:14 pm: > Excerpts from Michael Ellerman's message of November 23, 2021 11:01 am: >> Michael Ellerman writes: >>> Christophe Leroy writes: Le 09/11/2021 à 07:51, Nicholas Piggin a écrit : >>> ... > diff --git a/arch/powerpc/pl

Re: [PATCH v2] powerpc/64s: introduce CONFIG_MAXSMP to test very large SMP

2021-11-22 Thread Nicholas Piggin
Excerpts from Michael Ellerman's message of November 23, 2021 11:01 am: > Michael Ellerman writes: >> Christophe Leroy writes: >>> Le 09/11/2021 à 07:51, Nicholas Piggin a écrit : >> ... diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype i

Re: [PATCH v2] powerpc/64s: introduce CONFIG_MAXSMP to test very large SMP

2021-11-22 Thread Michael Ellerman
Michael Ellerman writes: > Christophe Leroy writes: >> Le 09/11/2021 à 07:51, Nicholas Piggin a écrit : > ... >>> diff --git a/arch/powerpc/platforms/Kconfig.cputype >>> b/arch/powerpc/platforms/Kconfig.cputype >>> index a208997ade88..14c275e0ff93 100644 >>> --- a/arch/powerpc/platforms/Kconfig.

Re: [PATCH 6/8] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT

2021-11-22 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/Convert-powerpc-to-default-topdown-mmap-layout/20211122-165115 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next c

Re: [RFC patch 0/5] Support BCLK input clock in tlv320aic31xx

2021-11-22 Thread Mark Brown
On Fri, 19 Nov 2021 12:32:43 -0300, Ariel D'Alessandro wrote: > The tlv320aic31xx codec allows using BCLK as the input clock for PLL, > deriving all the frequencies through a set of divisors. > > In this case, codec sysclk is determined by the hwparams sample > rate/format. So its frequency must b

Re: [PATCH 1/8] powerpc/mm: Make slice specific to book3s/64

2021-11-22 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/Convert-powerpc-to-default-topdown-mmap-layout/20211122-165115 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next config:

Re: [PATCH 0/2] of: remove reserved regions count restriction

2021-11-22 Thread Calvin Zhang
On Sun, Nov 21, 2021 at 08:43:47AM +0200, Mike Rapoport wrote: >On Fri, Nov 19, 2021 at 03:58:17PM +0800, Calvin Zhang wrote: >> The count of reserved regions in /reserved-memory was limited because >> the struct reserved_mem array was defined statically. This series sorts >> out reserved memory co

Re: [PATCH 0/2] of: remove reserved regions count restriction

2021-11-22 Thread Mike Rapoport
On Fri, Nov 19, 2021 at 03:58:17PM +0800, Calvin Zhang wrote: > The count of reserved regions in /reserved-memory was limited because > the struct reserved_mem array was defined statically. This series sorts > out reserved memory code and allocates that array from early allocator. > > Note: reserv

Re: [PATCH] powerpc/signal32: Use struct_group() to zero spe regs

2021-11-22 Thread Kees Cook
On Mon, Nov 22, 2021 at 04:43:36PM +1100, Michael Ellerman wrote: > LEROY Christophe writes: > > Le 18/11/2021 à 21:36, Kees Cook a écrit : > >> In preparation for FORTIFY_SOURCE performing compile-time and run-time > >> field bounds checking for memset(), avoid intentionally writing across > >> n

Re: [PATCH v1] KVM: PPC: Book3S HV: Prevent POWER7/8 TLB flush flushing SLB

2021-11-22 Thread Fabiano Rosas
Nicholas Piggin writes: > The POWER9 ERAT flush instruction is a SLBIA with IH=7, which is a > reserved value on POWER7/8. On POWER8 this invalidates the SLB entries > above index 0, similarly to SLBIA IH=0. > > If the SLB entries are invalidated, and then the guest is bypassed, the > host SLB do

Re: [PATCH v2 3/5] powerpc: Use preemption model accessors

2021-11-22 Thread Valentin Schneider
On 16/11/21 14:41, Christophe Leroy wrote: > Le 10/11/2021 à 21:24, Valentin Schneider a écrit : >> Per PREEMPT_DYNAMIC, checking CONFIG_PREEMPT doesn't tell you the actual >> preemption model of the live kernel. Use the newly-introduced accessors >> instead. > > Is that change worth it for now ? A

Re: [PATCH v2 2/5] preempt/dynamic: Introduce preempt mode accessors

2021-11-22 Thread Valentin Schneider
On 16/11/21 14:29, Christophe Leroy wrote: > Le 10/11/2021 à 21:24, Valentin Schneider a écrit : >> CONFIG_PREEMPT{_NONE, _VOLUNTARY} designate either: >> o The build-time preemption model when !PREEMPT_DYNAMIC >> o The default boot-time preemption model when PREEMPT_DYNAMIC >> >> IOW, using those

[powerpc:merge] BUILD SUCCESS 95c6ab13ec7e63e5e8628e237082431779d270f3

2021-11-22 Thread kernel test robot
config arm defconfig i386 randconfig-c001-20211122 mips randconfig-c004-20211122 m68k m5208evb_defconfig armpleb_defconfig xtensa nommu_kc705_defconfig parisc alldef

Re: [PATCH 1/8] powerpc/mm: Make slice specific to book3s/64

2021-11-22 Thread kernel test robot
to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Christophe-Leroy/Convert-powerpc-to-default-topdown-mmap-layout/20211122-165115 base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git n

Re: [RFC patch 2/5] ASoC: tlv320aic31xx: Add support for pll_r coefficient

2021-11-22 Thread Mark Brown
On Mon, Nov 22, 2021 at 03:24:42PM +0100, Michael Nazzareno Trimarchi wrote: > On Mon, Nov 22, 2021 at 3:22 PM Mark Brown wrote: > > On Fri, Nov 19, 2021 at 12:32:45PM -0300, Ariel D'Alessandro wrote: > > > When the clock used by the codec is BCLK, the operation parameters need > > > to be calcul

Re: [RFC patch 2/5] ASoC: tlv320aic31xx: Add support for pll_r coefficient

2021-11-22 Thread Michael Nazzareno Trimarchi
Hi Mark On Mon, Nov 22, 2021 at 3:22 PM Mark Brown wrote: > > On Fri, Nov 19, 2021 at 12:32:45PM -0300, Ariel D'Alessandro wrote: > > When the clock used by the codec is BCLK, the operation parameters need > > to be calculated from input sample rate and format. Low frequency rates > > required di

Re: [RFC patch 2/5] ASoC: tlv320aic31xx: Add support for pll_r coefficient

2021-11-22 Thread Mark Brown
On Fri, Nov 19, 2021 at 12:32:45PM -0300, Ariel D'Alessandro wrote: > When the clock used by the codec is BCLK, the operation parameters need > to be calculated from input sample rate and format. Low frequency rates > required different r multipliers, in order to achieve a higher PLL > output frequ

[powerpc:next-test] BUILD SUCCESS b92d1aabe9aace6ffd3399cae2ba52b6a927f7d7

2021-11-22 Thread kernel test robot
allmodconfig i386 randconfig-c001-20211122 mips randconfig-c004-20211122 nds32alldefconfig powerpc microwatt_defconfig mipsvocore2_defconfig armmulti_v7_defconfig parisc

[powerpc:fixes-test] BUILD SUCCESS f01ad0b9f2dcfd006e1fa77104fdf989980ff20f

2021-11-22 Thread kernel test robot
allmodconfig i386 randconfig-c001-20211122 mips randconfig-c004-20211122 parisc alldefconfig m68k m5208evb_defconfig armpleb_defconfig xtensa nommu_kc705_defconfig powerpc

Re: Build regressions/improvements in v5.16-rc2

2021-11-22 Thread Geert Uytterhoeven
On Mon, Nov 22, 2021 at 12:28 PM Geert Uytterhoeven wrote: > Below is the list of build error/warning regressions/improvements in > v5.16-rc2[1] compared to v5.15[2]. > > Summarized: > - build errors: +13/-12 > - build warnings: +3/-26 > > JFYI, when comparing v5.16-rc2[1] to v5.16-rc1[3], the

Re: [PATCH 6/8] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT

2021-11-22 Thread Alexandre ghiti
On 11/22/21 12:47, Christophe Leroy wrote: Le 22/11/2021 à 12:22, Alex Ghiti a écrit : Hi Christophe, Le 22/11/2021 à 09:48, Christophe Leroy a écrit : Commit e7142bf5d231 ("arm64, mm: make randomization selected by generic topdown mmap layout") introduced a default version of arch_randomize

Re: [PATCH 6/8] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT

2021-11-22 Thread Christophe Leroy
Le 22/11/2021 à 12:22, Alex Ghiti a écrit : Hi Christophe, Le 22/11/2021 à 09:48, Christophe Leroy a écrit : Commit e7142bf5d231 ("arm64, mm: make randomization selected by generic topdown mmap layout") introduced a default version of arch_randomize_brk() provided when CONFIG_ARCH_WANT_DEFAU

Re: [PATCH 6/8] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT

2021-11-22 Thread Alex Ghiti
Hi Christophe, Le 22/11/2021 à 09:48, Christophe Leroy a écrit : Commit e7142bf5d231 ("arm64, mm: make randomization selected by generic topdown mmap layout") introduced a default version of arch_randomize_brk() provided when CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT is selected. powerpc cou

[PATCH 4/8] powerpc/mm: Move vma_mmu_pagesize() and hugetlb_get_unmapped_area() to slice.c

2021-11-22 Thread Christophe Leroy
vma_mmu_pagesize() is only required for slices, otherwise there is a generic weak version. hugetlb_get_unmapped_area() is dedicated to slices. Move them to slice.c Signed-off-by: Christophe Leroy --- arch/powerpc/mm/book3s64/slice.c | 22 ++ arch/powerpc/mm/hugetlbpage.c

[PATCH 2/8] powerpc/mm: Remove CONFIG_PPC_MM_SLICES

2021-11-22 Thread Christophe Leroy
CONFIG_PPC_MM_SLICES is always selected by book3s/64. CONFIG_PPC_MM_SLICES is never selected by other platforms. Remove it. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hash.h | 2 -- arch/powerpc/include/asm/hugetlb.h| 2 +- arch/powerpc/include/asm/paca.h

[PATCH 0/8] Convert powerpc to default topdown mmap layout

2021-11-22 Thread Christophe Leroy
This series converts powerpc to default topdown mmap layout. powerpc provides its own arch_get_unmapped_area() only when slices are needed, which is only for book3s/64. First part of the series moves slices into book3s/64 specific directories and cleans up other subarchitectures. Then a small mod

[PATCH 7/8] powerpc/mm: Convert to default topdown mmap layout

2021-11-22 Thread Christophe Leroy
Select CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT and remove arch/powerpc/mm/mmap.c This change provides standard randomisation of mmaps. See commit 8b8addf891de ("x86/mm/32: Enable full randomization on i386 and X86_32") for all the benefits of mmap randomisation. Signed-off-by: Christophe Le

[PATCH 6/8] mm: Allow arch specific arch_randomize_brk() with CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT

2021-11-22 Thread Christophe Leroy
Commit e7142bf5d231 ("arm64, mm: make randomization selected by generic topdown mmap layout") introduced a default version of arch_randomize_brk() provided when CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT is selected. powerpc could select CONFIG_ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT but needs to

[PATCH 5/8] powerpc/mm: Call radix__arch_get_unmapped_area() from arch_get_unmapped_area()

2021-11-22 Thread Christophe Leroy
Instead of setting mm->get_unmapped_area() to either arch_get_unmapped_area() or radix__arch_get_unmapped_area(), always set it to arch_get_unmapped_area() and call radix__arch_get_unmapped_area() from there when radix is enabled. To keep radix__arch_get_unmapped_area() static, move it to slice.c

[PATCH 3/8] powerpc/mm: Remove asm/slice.h

2021-11-22 Thread Christophe Leroy
Move necessary stuff in asm/book3s/64/slice.h and remove asm/slice.h Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/hash.h | 3 ++ arch/powerpc/include/asm/book3s/64/mmu-hash.h | 1 + arch/powerpc/include/asm/book3s/64/slice.h| 18 + arch/powerpc/include

[PATCH 8/8] powerpc/mm: Properly randomise mmap with slices

2021-11-22 Thread Christophe Leroy
Now that powerpc switched to default topdown mmap layout, mm->mmap_base is properly randomised. However slice_find_area_bottomup() doesn't use mm->mmap_base but uses the fixed TASK_UNMAPPED_BASE instead. slice_find_area_bottomup() being used as a fallback to slice_find_area_topdown(), it can't us

[PATCH 1/8] powerpc/mm: Make slice specific to book3s/64

2021-11-22 Thread Christophe Leroy
Since commit 555904d07eef ("powerpc/8xx: MM_SLICE is not needed anymore") only book3s/64 selects CONFIG_PPC_MM_SLICES. Move slice.c into mm/book3s64/ Signed-off-by: Christophe Leroy --- arch/powerpc/mm/Makefile | 1 - arch/powerpc/mm/book3s64/Makefile | 1 + arch/powerpc/mm/{