[powerpc:next 84/128] arch/powerpc/mm/init_64.c:477:38: error: use of undeclared identifier 'SECTION_SIZE_BITS'

2023-08-25 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next head: b9bbbf4979073d5536b7650decd37fcb901e6556 commit: 4d15721177d539d743fcf31d7bb376fb3b81aeb6 [84/128] powerpc/mm: Cleanup memory block size probing config: powerpc64-randconfig-r005-20230825 (https://download.01

Re: [PATCH] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Nicolas Schier
On Thu, Aug 24, 2023 at 03:36:10PM -0700, Kees Cook wrote: > Doing a "make help" would show only hard-coded Kconfig targets and > depended on the archhelp target to include ".config" targets. There was > nothing showing global kernel/configs/ targets. Solve this by walking > the wildcard list and i

Re: (subset) [PATCH 00/17] -Wmissing-prototype warning fixes

2023-08-25 Thread Geert Uytterhoeven
Hi Michael, On Fri, Aug 25, 2023 at 3:31 AM Michael Schmitz wrote: > On 25/08/23 13:12, Martin K. Petersen wrote: > > [11/17] scsi: gvp11: remove unused gvp11_setup() function > > https://git.kernel.org/mkp/scsi/c/bfaa4a0ce1bb > > I somehow missed that one ... > > The gvp11_setup() funct

Re: [PATCH net-next] kunit: Fix checksum tests on big endian CPUs

2023-08-25 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Wed, 23 Aug 2023 15:21:43 +0200 you wrote: > On powerpc64le checksum kunit tests work: > > [2.011457][T1] KTAP version 1 > [2.011662][T1] # Subtest: checksum > [2.011848][T1] 1

[PATCH] powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE

2023-08-25 Thread Christophe Leroy
On 8xx, PAGE_NONE is handled by setting _PAGE_NA instead of clearing _PAGE_USER. But then pte_user() returns 1 also for PAGE_NONE. As _PAGE_NA prevent reads, add a specific version of pte_read() that returns 0 when _PAGE_NA is set instead of always returning 1. Fixes: 351750331fc1 ("powerpc/mm:

Re: [PATCH] powerpc/perf/hv-24x7: Update domain value check

2023-08-25 Thread Disha Goel
On 25/08/23 11:26 am, Kajol Jain wrote: Valid domain value is in range 1 to HV_PERF_DOMAIN_MAX. Current code has check for domain value greater than or equal to HV_PERF_DOMAIN_MAX. But the check for domain value 0 is missing. Fix this issue by adding check for domain value 0. Fixes: ebd4a5a3ebd

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-25 Thread Takashi Iwai
On Fri, 25 Aug 2023 05:46:43 +0200, Shengjiu Wang wrote: > > On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote: > > > > On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote: > > > Shengjiu Wang wrote: > > > > > > But there are several issues: > > > > 1. Need to create sound cards. ASRC mo

Re: [RFC PATCH v2 0/7] Add audio support in v4l2 framework

2023-08-25 Thread Hans Verkuil
On 25/08/2023 15:54, Takashi Iwai wrote: > On Fri, 25 Aug 2023 05:46:43 +0200, > Shengjiu Wang wrote: >> >> On Fri, Aug 25, 2023 at 4:21 AM Mark Brown wrote: >>> >>> On Thu, Aug 24, 2023 at 07:03:09PM +0200, Takashi Iwai wrote: Shengjiu Wang wrote: >>> > But there are several issues:

[PATCH v4] powerpc: Use shared font data

2023-08-25 Thread linux
From: "Dr. David Alan Gilbert" PowerPC has a 'btext' font used for the console which is almost identical to the shared font_sun8x16, so use it rather than duplicating the data. They were actually identical until about a decade ago when commit bcfbeecea11c ("drivers: console: font_: Change a g

Re: [PATCH v14 00/15] phy: Add support for Lynx 10G SerDes

2023-08-25 Thread Vladimir Oltean
On Thu, Aug 24, 2023 at 06:09:52PM -0400, Sean Anderson wrote: > On 8/21/23 19:59, Vladimir Oltean wrote: > > On Mon, Aug 21, 2023 at 07:39:15PM -0400, Sean Anderson wrote: > >> Well, I think we should take the opportunity to think about the hardware > >> which exists and how we plan to model it. I

[PATCH v3 1/5] powerpc/bpf: implement bpf_arch_text_copy

2023-08-25 Thread Hari Bathini
bpf_arch_text_copy is used to dump JITed binary to RX page, allowing multiple BPF programs to share the same page. Use patch_instruction() to implement it. Signed-off-by: Hari Bathini --- arch/powerpc/net/bpf_jit_comp.c | 40 - 1 file changed, 39 insertions(+), 1

[PATCH v3 3/5] powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]

2023-08-25 Thread Hari Bathini
Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_finalize. With multiple jit_subprogs, bpf_jit_free is called on some subprograms that haven't got bpf_ji

[PATCH v3 4/5] powerpc/code-patching: introduce patch_instructions()

2023-08-25 Thread Hari Bathini
patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction would have to go through the above drill unnecessarily. Instead, introduce function patch_instructions() that sets up the pte,

[PATCH 0/5] powerpc/bpf: use BPF prog pack allocator

2023-08-25 Thread Hari Bathini
Most BPF programs are small, but they consume a page each. For systems with busy traffic and many BPF programs, this may also add significant pressure on instruction TLB. High iTLB pressure usually slows down the whole system causing visible performance degradation for production workloads. bpf_pr

[PATCH v3 5/5] powerpc/bpf: use patch_instructions()

2023-08-25 Thread Hari Bathini
Use the newly introduced patch_instructions() that handles patching multiple instructions with one call. This improves speed of exectution for JIT'ing bpf programs. Without this patch (on a POWER9 lpar): # time modprobe test_bpf real2m59.681s user0m0.000s sys 1m44.160s # Wi

[PATCH v3 2/5] powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

2023-08-25 Thread Hari Bathini
Implement bpf_arch_text_invalidate and use it to fill unused part of the bpf_prog_pack with trap instructions when a BPF program is freed. Signed-off-by: Hari Bathini --- arch/powerpc/net/bpf_jit_comp.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/a

Re: [PATCH v3 1/5] powerpc/bpf: implement bpf_arch_text_copy

2023-08-25 Thread Christophe Leroy
Le 25/08/2023 à 17:18, Hari Bathini a écrit : > bpf_arch_text_copy is used to dump JITed binary to RX page, allowing > multiple BPF programs to share the same page. Use patch_instruction() > to implement it. By using patch_instruction() for doing that you are mapping and unmapping the same page

Re: [PATCH v2 4/4] powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]

2023-08-25 Thread Hari Bathini
On 11/03/23 3:46 pm, Christophe Leroy wrote: Le 09/03/2023 à 19:02, Hari Bathini a écrit : Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_final

Re: [PATCH v3 2/5] powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

2023-08-25 Thread Christophe Leroy
Le 25/08/2023 à 17:18, Hari Bathini a écrit : > Implement bpf_arch_text_invalidate and use it to fill unused part of > the bpf_prog_pack with trap instructions when a BPF program is freed. > > Signed-off-by: Hari Bathini > --- > arch/powerpc/net/bpf_jit_comp.c | 22 +++--- >

Re: [PATCH v2 4/4] powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free]

2023-08-25 Thread Hari Bathini
On 11/03/23 4:05 am, Song Liu wrote: On Thu, Mar 9, 2023 at 10:03 AM Hari Bathini wrote: Use bpf_jit_binary_pack_alloc in powerpc jit. The jit engine first writes the program to the rw buffer. When the jit is done, the program is copied to the final location with bpf_jit_binary_pack_finaliz

Re: [PATCH v3 5/5] powerpc/bpf: use patch_instructions()

2023-08-25 Thread Christophe Leroy
Le 25/08/2023 à 17:18, Hari Bathini a écrit : > Use the newly introduced patch_instructions() that handles patching > multiple instructions with one call. This improves speed of exectution > for JIT'ing bpf programs. > > Without this patch (on a POWER9 lpar): > ># time modprobe test_bpf >

Re: [PATCH 0/4] Introduce perf build subcommand

2023-08-25 Thread Namhyung Kim
Hello, On Thu, Aug 24, 2023 at 11:11 PM Aditya Gupta wrote: > > The Problem > === > > Currently the presence of a feature is checked with a combination of > perf version --build-options and greps, such as: > > perf version --build-options | grep " on .* HAVE_FEATURE" > > Proposed solu

Re: [PATCH v3 2/5] powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

2023-08-25 Thread Hari Bathini
On 25/08/23 9:03 pm, Christophe Leroy wrote: Le 25/08/2023 à 17:18, Hari Bathini a écrit : Implement bpf_arch_text_invalidate and use it to fill unused part of the bpf_prog_pack with trap instructions when a BPF program is freed. Signed-off-by: Hari Bathini --- arch/powerpc/net/bpf_jit

Re: [PATCH v7 02/24] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-25 Thread Jason Gunthorpe
On Thu, Aug 24, 2023 at 06:51:48PM -0700, Jerry Snitselaar wrote: > > + /* > > +* Allow legacy drivers to specify the domain that will be the default > > +* domain. This should always be either an IDENTITY or PLATFORM domain. > > +* Do not use in new drivers. > > +*/ > > Would i

Re: [PATCH v3 5/5] powerpc/bpf: use patch_instructions()

2023-08-25 Thread Hari Bathini
On 25/08/23 9:16 pm, Christophe Leroy wrote: Le 25/08/2023 à 17:18, Hari Bathini a écrit : Use the newly introduced patch_instructions() that handles patching multiple instructions with one call. This improves speed of exectution for JIT'ing bpf programs. Without this patch (on a POWER9 lp

Re: [powerpc:next 84/128] arch/powerpc/mm/init_64.c:477:38: error: use of undeclared identifier 'SECTION_SIZE_BITS'

2023-08-25 Thread Aneesh Kumar K V
ing > config: powerpc64-randconfig-r005-20230825 > (https://download.01.org/0day-ci/archive/20230825/202308251532.k9ppwead-...@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git > 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > reproduce: > (h

Re: [PATCH] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Kees Cook
On Thu, Aug 24, 2023 at 05:04:02PM -0700, Randy Dunlap wrote: > Hi Kees, > > On 8/24/23 15:36, Kees Cook wrote: > > Doing a "make help" would show only hard-coded Kconfig targets and > > depended on the archhelp target to include ".config" targets. There was > > nothing showing global kernel/confi

Re: [PATCH] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Kees Cook
On Fri, Aug 25, 2023 at 04:56:54AM +, Christophe Leroy wrote: > Le 25/08/2023 à 00:36, Kees Cook a écrit : > > +# Base hardware support for 86xx > > s/86xx/85xx > [...] Thanks for the typo fixes! I'll get these all fixed up. :) -- Kees Cook

Re: [PATCH] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Kees Cook
On Fri, Aug 25, 2023 at 07:44:06AM +0200, Nicolas Schier wrote: > On Thu, Aug 24, 2023 at 03:36:10PM -0700, Kees Cook wrote: > > Doing a "make help" would show only hard-coded Kconfig targets and > > depended on the archhelp target to include ".config" targets. There was > > nothing showing global

Re: [PATCH] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Kees Cook
On Fri, Aug 25, 2023 at 04:11:58PM +1000, Michael Ellerman wrote: > Kees Cook writes: > > Doing a "make help" would show only hard-coded Kconfig targets and > > depended on the archhelp target to include ".config" targets. There was > > nothing showing global kernel/configs/ targets. Solve this by

Re: [PATCH] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Randy Dunlap
On 8/25/23 11:20, Kees Cook wrote: > On Thu, Aug 24, 2023 at 05:04:02PM -0700, Randy Dunlap wrote: >> Hi Kees, >> >> On 8/24/23 15:36, Kees Cook wrote: >>> Doing a "make help" would show only hard-coded Kconfig targets and >>> depended on the archhelp target to include ".config" targets. There w

[PATCH v2 0/2] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Kees Cook
Hi, This is my series to show *.config targets in the "help" target so these various topics can be more easily discoverd. v2: - split .fragment from .config to hide "internal" fragments - fix various typos - avoid duplicate entries v1: https://lore.kernel.org/all/20230824223606.never.762-k...@

[PATCH v2 1/2] kbuild: Show Kconfig fragments in "help"

2023-08-25 Thread Kees Cook
Doing a "make help" would show only hard-coded Kconfig targets and depended on the archhelp target to include ".config" targets. There was nothing showing global kernel/configs/ targets. Solve this by walking the wildcard list and include them in the output, using the first comment line as the help

[PATCH v2 2/2] kbuild: Split internal config targets from .config into .fragment

2023-08-25 Thread Kees Cook
Many Kconfig fragments are being used internally to construct hard-coded targets and shouldn't be reachable directly through the build system. Splitting these out also means that the "help" target can display only the "complete" .config targets intended for general use. This is especially useful fo

Re: [PATCH v7 02/24] iommu: Add IOMMU_DOMAIN_PLATFORM

2023-08-25 Thread Jerry Snitselaar
On Fri, Aug 25, 2023 at 02:40:10PM -0300, Jason Gunthorpe wrote: > On Thu, Aug 24, 2023 at 06:51:48PM -0700, Jerry Snitselaar wrote: > > > > + /* > > > + * Allow legacy drivers to specify the domain that will be the default > > > + * domain. This should always be either an IDENTITY or PLATFORM d

Re: [PATCH v7 03/24] powerpc/iommu: Setup a default domain and remove set_platform_dma_ops

2023-08-25 Thread Jerry Snitselaar
On Wed, Aug 23, 2023 at 01:47:17PM -0300, Jason Gunthorpe wrote: > POWER is using the set_platform_dma_ops() callback to hook up its private > dma_ops, but this is buired under some indirection and is weirdly > happening for a BLOCKED domain as well. > > For better documentation create a PLATFORM

Re: [PATCH v7 04/24] iommu: Add IOMMU_DOMAIN_PLATFORM for S390

2023-08-25 Thread Jerry Snitselaar
On Wed, Aug 23, 2023 at 01:47:18PM -0300, Jason Gunthorpe wrote: > The PLATFORM domain will be set as the default domain and attached as > normal during probe. The driver will ignore the initial attach from a NULL > domain to the PLATFORM domain. > > After this, the PLATFORM domain's attach_dev wi

Re: [PATCH v7 06/24] iommu/tegra-gart: Remove tegra-gart

2023-08-25 Thread Jerry Snitselaar
On Wed, Aug 23, 2023 at 01:47:20PM -0300, Jason Gunthorpe wrote: > Thierry says this is not used anymore, and doesn't think it makes sense as > an iommu driver. The HW it supports is about 10 years old now and newer HW > uses different IOMMU drivers. > > As this is the only driver with a GART appr

Re: [PATCH v7 05/24] iommu/fsl_pamu: Implement a PLATFORM domain

2023-08-25 Thread Jerry Snitselaar
On Wed, Aug 23, 2023 at 01:47:19PM -0300, Jason Gunthorpe wrote: > This driver is nonsensical. To not block migrating the core API away from > NULL default_domains give it a hacky of a PLATFORM domain that keeps it > working exactly as it always did. > > Leave some comments around to warn away any

Re: [PATCH v7 07/24] iommu/mtk_iommu_v1: Implement an IDENTITY domain

2023-08-25 Thread Jerry Snitselaar
On Wed, Aug 23, 2023 at 01:47:21PM -0300, Jason Gunthorpe wrote: > What mtk does during mtk_iommu_v1_set_platform_dma() is actually putting > the iommu into identity mode. Make this available as a proper IDENTITY > domain. > > The mtk_iommu_v1_def_domain_type() from > commit 8bbe13f52cb7 ("iommu/m

[PATCH v9 13/15] PCI/AER: Forward RCH downstream port-detected errors to the CXL.mem dev handler

2023-08-25 Thread Terry Bowman
From: Robert Richter In Restricted CXL Device (RCD) mode a CXL device is exposed as an RCiEP, but CXL downstream and upstream ports are not enumerated and not visible in the PCIe hierarchy. [1] Protocol and link errors from these non-enumerated ports are signaled as internal AER errors, either Un

Re: [PATCH rfc v2 01/10] mm: add a generic VMA lock-based page fault handler

2023-08-25 Thread Kefeng Wang
On 2023/8/24 15:12, Alexander Gordeev wrote: On Mon, Aug 21, 2023 at 08:30:47PM +0800, Kefeng Wang wrote: Hi Kefeng, The ARCH_SUPPORTS_PER_VMA_LOCK are enabled by more and more architectures, eg, x86, arm64, powerpc and s390, and riscv, those implementation are very similar which results in

Re: [PATCH rfc v2 04/10] s390: mm: use try_vma_locked_page_fault()

2023-08-25 Thread Kefeng Wang
On 2023/8/24 16:32, Heiko Carstens wrote: On Thu, Aug 24, 2023 at 10:16:33AM +0200, Alexander Gordeev wrote: On Mon, Aug 21, 2023 at 08:30:50PM +0800, Kefeng Wang wrote: Use new try_vma_locked_page_fault() helper to simplify code. No functional change intended. Signed-off-by: Kefeng Wang -

[PATCH] fsl_ucc_hdlc: add a check of the return value from hdlc_open

2023-08-25 Thread Alexandra Diupina
Process the result of hold_open() and return it from uhdlc_open() in case of an error It is necessary to pass the error code up the control flow, similar to a possible error in request_irq() Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: c19b6d246a35 ("drivers/net: suppo

Re: (subset) [PATCH 00/17] -Wmissing-prototype warning fixes

2023-08-25 Thread Michael Schmitz
Hi Geert, Am 25.08.23 um 19:39 schrieb Geert Uytterhoeven: > Hi Michael, > > On Fri, Aug 25, 2023 at 3:31 AM Michael Schmitz wrote: >> On 25/08/23 13:12, Martin K. Petersen wrote: >>> [11/17] scsi: gvp11: remove unused gvp11_setup() function >>> https://git.kernel.org/mkp/scsi/c/bfaa4a0c

Re: [PATCH] fsl_ucc_hdlc: add a check of the return value from hdlc_open

2023-08-25 Thread Christophe Leroy
Le 25/08/2023 à 16:31, Alexandra Diupina a écrit : > [Vous ne recevez pas souvent de courriers de adiup...@astralinux.ru. > Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > Process the result of hold_open() and return it from > uhdlc_open() in case