Re: [PATCH] docs: move powerpc under arch

2023-10-03 Thread Michael Ellerman
On October 4, 2023 3:05:48 AM GMT+11:00, Jonathan Corbet wrote: >Costa Shulyupin writes: > >> and fix all in-tree references. >> >> Architecture-specific documentation is being moved into Documentation/arch/ >> as a way of cleaning up the top-level documentation directory and making >> the

Re: [PATCH] docs: move powerpc under arch

2023-10-03 Thread Linas Vepstas
Hi Jon, Got the message; I'm not an active maintainer, haven't been for over a decade, and cannot comment on style issues. But if all the other arches are doing this, I see no reason why not. Feel free to interpret this as an Acked-by: if that's appropriate. -- linas On Tue, Oct 3, 2023 at

Re: [PATCH v3 03/13] mm/execmem, arch: convert simple overrides of module_alloc to execmem

2023-10-03 Thread Edgecombe, Rick P
On Mon, 2023-09-18 at 10:29 +0300, Mike Rapoport wrote: > + > +static void execmem_init_missing(struct execmem_params *p) > +{ > +   struct execmem_range *default_range = > >ranges[EXECMEM_DEFAULT]; > + > +   for (int i = EXECMEM_DEFAULT + 1; i < EXECMEM_TYPE_MAX; i++) > { > + 

Re: [PATCH v3 04/13] mm/execmem, arch: convert remaining overrides of module_alloc to execmem

2023-10-03 Thread Edgecombe, Rick P
On Mon, 2023-09-18 at 10:29 +0300, Mike Rapoport wrote: > diff --git a/arch/x86/kernel/module.c b/arch/x86/kernel/module.c > index 5f71a0cf4399..9d37375e2f05 100644 > --- a/arch/x86/kernel/module.c > +++ b/arch/x86/kernel/module.c > @@ -19,6 +19,7 @@ >  #include >  #include >  #include >

[net-next PATCH v2 4/4] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule

2023-10-03 Thread Christian Marangi
Replace if condition of napi_schedule_prep/__napi_schedule and use bool from napi_schedule directly where possible. Signed-off-by: Christian Marangi --- drivers/net/ethernet/atheros/atlx/atl1.c | 4 +--- drivers/net/ethernet/toshiba/tc35815.c | 4 +---

[net-next PATCH v2 3/4] netdev: replace napi_reschedule with napi_schedule

2023-10-03 Thread Christian Marangi
Now that napi_schedule return a bool, we can drop napi_reschedule that does the same exact function. The function comes from a very old commit bfe13f54f502 ("ibm_emac: Convert to use napi_struct independent of struct net_device") and the purpose is actually deprecated in favour of different logic.

[net-next PATCH v2 2/4] netdev: make napi_schedule return bool on NAPI successful schedule

2023-10-03 Thread Christian Marangi
Change napi_schedule to return a bool on NAPI successful schedule. This might be useful for some driver to do additional steps after a NAPI has been scheduled. Suggested-by: Eric Dumazet Signed-off-by: Christian Marangi Reviewed-by: Eric Dumazet --- Changes v2: - Add Suggested-by tag - Add

[net-next PATCH v2 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule

2023-10-03 Thread Christian Marangi
Replace drivers that still use napi_schedule_prep/__napi_schedule with napi_schedule helper as it does the same exact check and call. Signed-off-by: Christian Marangi --- Changes v2: - Add missing semicolon --- drivers/net/ethernet/ni/nixge.c | 3 +-- drivers/net/ethernet/wiznet/w5100.c | 4

Re: [PATCH] uapi/auxvec: Define AT_HWCAP3 and AT_HWCAP4 aux vector, entries

2023-10-03 Thread Peter Bergner
On 10/3/23 9:08 AM, Adhemerval Zanella Netto wrote: > What it is not clear to me is what kind of ABI boundary you are trying to > preemptively add support here. The TCB ABI for __builtin_cpu_supports is > userland only, so if your intention is just to allow gcc to work on older > glibcs, it should

Re: [RFC PATCH v12 11/33] KVM: Introduce per-page memory attributes

2023-10-03 Thread Sean Christopherson
On Tue, Oct 03, 2023, Fuad Tabba wrote: > On Tue, Oct 3, 2023 at 4:59 PM Sean Christopherson wrote: > > On Tue, Oct 03, 2023, Fuad Tabba wrote: > > > > +#define KVM_MEMORY_ATTRIBUTE_PRIVATE (1ULL << 3) > > > > + > > > > > > In pKVM, we don't want to allow setting (or clearing) of

Re: [PATCH RESEND 1/5] ASoC: Explicitly include correct DT includes

2023-10-03 Thread Jernej Škrabec
Dne torek, 03. oktober 2023 ob 20:13:10 CEST je Rob Herring napisal(a): > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it was merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily"

Re: [RFC PATCH v12 11/33] KVM: Introduce per-page memory attributes

2023-10-03 Thread Fuad Tabba
Hi Sean, On Tue, Oct 3, 2023 at 4:59 PM Sean Christopherson wrote: > > On Tue, Oct 03, 2023, Fuad Tabba wrote: > > Hi, > > > > > diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > > > index d2d913acf0df..f8642ff2eb9d 100644 > > > --- a/include/uapi/linux/kvm.h > > > +++

Re: [PATCH v2] syscalls: Cleanup references to sys_lookup_dcookie()

2023-10-03 Thread Sohil Mehta
On 10/3/2023 10:53 AM, Arnd Bergmann wrote: > Thanks a lot for the reminder, I've added it to my asm-generic > branch for v6.7 now, it should be in linux-next tomorrow. > No problem at all. Thanks for picking up the patch! Sohil

Re: [PATCH v2] syscalls: Cleanup references to sys_lookup_dcookie()

2023-10-03 Thread Arnd Bergmann
On Tue, Oct 3, 2023, at 19:47, Sohil Mehta wrote: > Arnd, is this a good candidate for 6.7? Though old, the patch applies > cleanly on 6.6-rc4. I can re-send this one if you would prefer that. > Thanks a lot for the reminder, I've added it to my asm-generic branch for v6.7 now, it should be in

Re: [PATCH v2] syscalls: Cleanup references to sys_lookup_dcookie()

2023-10-03 Thread Sohil Mehta
Arnd, is this a good candidate for 6.7? Though old, the patch applies cleanly on 6.6-rc4. I can re-send this one if you would prefer that. On 8/3/2023 2:44 PM, Sohil Mehta wrote: > On 7/10/2023 11:51 AM, Sohil Mehta wrote: >> commit 'be65de6b03aa ("fs: Remove dcookies support")' removed the >>

Re: [PATCH v2] arch: Reserve map_shadow_stack() syscall number for all architectures

2023-10-03 Thread Geert Uytterhoeven
On Thu, Sep 14, 2023 at 8:59 PM Sohil Mehta wrote: > commit c35559f94ebc ("x86/shstk: Introduce map_shadow_stack syscall") > recently added support for map_shadow_stack() but it is limited to x86 > only for now. There is a possibility that other architectures (namely, > arm64 and RISC-V), that

Re: [PATCH v2] arch: Reserve map_shadow_stack() syscall number for all architectures

2023-10-03 Thread Sohil Mehta
On 10/3/2023 9:54 AM, Arnd Bergmann wrote: > On Tue, Oct 3, 2023, at 18:35, Sohil Mehta wrote: >> >> Gentle ping... >> >> Are there any additional comments? It applies cleanly on 6.6-rc4. >> >> Or does it seem ready to be merged? It has the following >> acknowledgements until now: >> >>

Re: [PATCH v2] arch: Reserve map_shadow_stack() syscall number for all architectures

2023-10-03 Thread Arnd Bergmann
On Tue, Oct 3, 2023, at 18:35, Sohil Mehta wrote: > On 9/14/2023 11:58 AM, Sohil Mehta wrote: >> commit c35559f94ebc ("x86/shstk: Introduce map_shadow_stack syscall") >> recently added support for map_shadow_stack() but it is limited to x86 >> only for now. There is a possibility that other

Re: [PATCH v2] arch: Reserve map_shadow_stack() syscall number for all architectures

2023-10-03 Thread Sohil Mehta
On 9/14/2023 11:58 AM, Sohil Mehta wrote: > commit c35559f94ebc ("x86/shstk: Introduce map_shadow_stack syscall") > recently added support for map_shadow_stack() but it is limited to x86 > only for now. There is a possibility that other architectures (namely, > arm64 and RISC-V), that are

Re: [net-next PATCH 3/4] netdev: replace napi_reschedule with napi_schedule

2023-10-03 Thread Marc Kleine-Budde
On 03.10.2023 13:18:33, Christian Marangi wrote: > On Tue, Oct 03, 2023 at 09:16:33AM +0200, Marc Kleine-Budde wrote: > > On 02.10.2023 17:10:22, Christian Marangi wrote: > > > Now that napi_schedule return a bool, we can drop napi_reschedule that > > > does the same exact function. The function

Re: [net-next PATCH 3/4] netdev: replace napi_reschedule with napi_schedule

2023-10-03 Thread Christian Marangi
On Tue, Oct 03, 2023 at 09:16:33AM +0200, Marc Kleine-Budde wrote: > On 02.10.2023 17:10:22, Christian Marangi wrote: > > Now that napi_schedule return a bool, we can drop napi_reschedule that > > does the same exact function. The function comes from a very old commit > > bfe13f54f502 ("ibm_emac:

Re: [net-next PATCH 2/4] netdev: make napi_schedule return bool on NAPI successful schedule

2023-10-03 Thread Christian Marangi
On Tue, Oct 03, 2023 at 07:21:46AM +0200, Eric Dumazet wrote: > On Mon, Oct 2, 2023 at 5:10 PM Christian Marangi wrote: > > > > Change napi_schedule to return a bool on NAPI successful schedule. This > > might be useful for some driver to do additional step after a NAPI ahs > > This might be

Re: [net-next PATCH 3/4] netdev: replace napi_reschedule with napi_schedule

2023-10-03 Thread Marc Kleine-Budde
On 02.10.2023 17:10:22, Christian Marangi wrote: > Now that napi_schedule return a bool, we can drop napi_reschedule that > does the same exact function. The function comes from a very old commit > bfe13f54f502 ("ibm_emac: Convert to use napi_struct independent of struct > net_device") and the

[PATCH RESEND 3/5] ASoC: da7218: Use i2c_get_match_data()

2023-10-03 Thread Rob Herring
Use preferred i2c_get_match_data() instead of of_match_device() and i2c_match_id() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Avoid using 0 for enum da7218_dev_id so that no match data can be distinguished. Signed-off-by: Rob Herring

[PATCH RESEND 5/5] ASoC: Use device_get_match_data()

2023-10-03 Thread Rob Herring
Use preferred device_get_match_data() instead of of_match_device() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Signed-off-by: Rob Herring --- sound/soc/intel/keembay/kmb_platform.c | 13 + sound/soc/qcom/lpass-cpu.c

[PATCH RESEND 2/5] ASoC: Drop unnecessary of_match_device() calls

2023-10-03 Thread Rob Herring
If probe is reached, we've already matched the device and in the case of DT matching, the struct device_node pointer will be set. Therefore, there is no need to call of_match_device() in probe. Signed-off-by: Rob Herring --- sound/soc/codecs/ak5386.c | 7 ++- sound/soc/codecs/cs4271.c |

[PATCH RESEND 4/5] ASoC: qcom/lpass: Constify struct lpass_variant

2023-10-03 Thread Rob Herring
'struct lpass_variant' is used for driver match data which is supposed to be constant. It's not modified anywhere, so it's just a matter of adding 'const' everywhere. Signed-off-by: Rob Herring --- sound/soc/qcom/lpass-apq8016.c | 6 +++--- sound/soc/qcom/lpass-cdc-dma.c | 2 +-

[PATCH RESEND 1/5] ASoC: Explicitly include correct DT includes

2023-10-03 Thread Rob Herring
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result,

[PATCH RESEND 0/5] ASoC: DT matching and header cleanups

2023-10-03 Thread Rob Herring
-mcbsp.c | 10 ++--- sound/soc/ti/omap-mcpdm.c | 2 +- 162 files changed, 205 insertions(+), 390 deletions(-) --- base-commit: c9f2baaa18b5ea8f006a2b3a616da9597c71d15e change-id: 20231003-dt-asoc-header-cleanups-87f2cf5a2205 Best regards, -- Rob

Re: [PATCHv7 4/4] powerpc/setup: alloc extra paca_ptrs to hold boot_cpuid

2023-10-03 Thread Mahesh J Salgaonkar
On 2023-09-25 15:53:48 Mon, Pingfan Liu wrote: > paca_ptrs should be large enough to hold the boot_cpuid, hence, its > lower boundary is set to the bigger one between boot_cpuid+1 and > nr_cpus. > > On the other hand, some kernel component: -1. the timer assumes cpu0 > online since the

Re: [PATCH 0/3] PCI: PCI_HEADER_TYPE bugfix & cleanups

2023-10-03 Thread Bjorn Helgaas
On Tue, Oct 03, 2023 at 03:52:57PM +0300, Ilpo Järvinen wrote: > One bugfix and cleanups for PCI_HEADER_TYPE_* literals. > > This series only covers what's within drivers/pci/. I'd have patches > for other subsystems too but I decided to wait with them until > PCI_HEADER_TYPE_MFD is in Linus'

Re: [PATCH v2] vfs: shave work on failed file open

2023-10-03 Thread Nathan Chancellor
d); > rcu_read_unlock(); > + if (file) { > + ctx = SPUFS_I(file_inode(file))->i_ctx; > + get_spu_context(ctx); > + fput(file); > + } > > return ctx; > } This hunk now causes a clang warning (or error, since a

[PATCH 1/5] ASoC: Explicitly include correct DT includes

2023-10-03 Thread Rob Herring
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result,

[PATCH 3/5] ASoC: da7218: Use i2c_get_match_data()

2023-10-03 Thread Rob Herring
Use preferred i2c_get_match_data() instead of of_match_device() and i2c_match_id() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Avoid using 0 for enum da7218_dev_id so that no match data can be distinguished. Signed-off-by: Rob Herring

[PATCH 2/5] ASoC: Drop unnecessary of_match_device() calls

2023-10-03 Thread Rob Herring
If probe is reached, we've already matched the device and in the case of DT matching, the struct device_node pointer will be set. Therefore, there is no need to call of_match_device() in probe. Signed-off-by: Rob Herring --- sound/soc/codecs/ak5386.c | 7 ++- sound/soc/codecs/cs4271.c |

[PATCH 4/5] ASoC: qcom/lpass: Constify struct lpass_variant

2023-10-03 Thread Rob Herring
'struct lpass_variant' is used for driver match data which is supposed to be constant. It's not modified anywhere, so it's just a matter of adding 'const' everywhere. Signed-off-by: Rob Herring --- sound/soc/qcom/lpass-apq8016.c | 6 +++--- sound/soc/qcom/lpass-cdc-dma.c | 2 +-

[PATCH 5/5] ASoC: Use device_get_match_data()

2023-10-03 Thread Rob Herring
Use preferred device_get_match_data() instead of of_match_device() to get the driver match data. With this, adjust the includes to explicitly include the correct headers. Signed-off-by: Rob Herring --- sound/soc/intel/keembay/kmb_platform.c | 13 + sound/soc/qcom/lpass-cpu.c

[PATCH 0/5] ASoC: DT matching and header cleanups

2023-10-03 Thread Rob Herring
deletions(-) --- base-commit: c9f2baaa18b5ea8f006a2b3a616da9597c71d15e change-id: 20231003-dt-asoc-header-cleanups-87f2cf5a2205 Best regards, -- Rob Herring

[PATCH] ALSA: aoa: Replace asm/prom.h with explicit includes

2023-10-03 Thread Rob Herring
asm/prom.h should not be included directly as it no longer contains anything drivers need. Drivers should include of.h and/or other headers which were getting implicitly included. Signed-off-by: Rob Herring --- sound/aoa/aoa-gpio.h| 1 - sound/aoa/aoa.h | 1 -

Re: [PATCH] docs: move powerpc under arch

2023-10-03 Thread Jonathan Corbet
Costa Shulyupin writes: > and fix all in-tree references. > > Architecture-specific documentation is being moved into Documentation/arch/ > as a way of cleaning up the top-level documentation directory and making > the docs hierarchy more closely match the source hierarchy. > > Signed-off-by:

Re: [RFC PATCH v12 11/33] KVM: Introduce per-page memory attributes

2023-10-03 Thread Sean Christopherson
On Tue, Oct 03, 2023, Fuad Tabba wrote: > Hi, > > > diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > > index d2d913acf0df..f8642ff2eb9d 100644 > > --- a/include/uapi/linux/kvm.h > > +++ b/include/uapi/linux/kvm.h > > @@ -1227,6 +1227,7 @@ struct kvm_ppc_resize_hpt { > > #define

Re: [PATCH] uapi/auxvec: Define AT_HWCAP3 and AT_HWCAP4 aux vector, entries

2023-10-03 Thread Adhemerval Zanella Netto
On 02/10/23 18:19, Peter Bergner wrote: > Hi Adhemerval, sorry for the delay in replying, I was a little under the > weather last week. > > > On 9/27/23 11:03 AM, Adhemerval Zanella Netto wrote: >> On 26/09/23 19:02, Peter Bergner wrote: >>> The powerpc toolchain keeps a copy of the HWCAP bit

Re: [PATCH 3/3] PCI: Use PCI_HEADER_TYPE_* instead of literals

2023-10-03 Thread Wolfram Sang
On Tue, Oct 03, 2023 at 03:53:00PM +0300, Ilpo Järvinen wrote: > Replace literals under drivers/pci/ with PCI_HEADER_TYPE_MASK, > PCI_HEADER_TYPE_NORMAL, and PCI_HEADER_TYPE_MFD. > > While at it, replace !! boolean conversion with FIELD_GET(). > > Signed-off-by: Ilpo Järvinen Reviewed-by:

[PATCH 3/3] PCI: Use PCI_HEADER_TYPE_* instead of literals

2023-10-03 Thread Ilpo Järvinen
Replace literals under drivers/pci/ with PCI_HEADER_TYPE_MASK, PCI_HEADER_TYPE_NORMAL, and PCI_HEADER_TYPE_MFD. While at it, replace !! boolean conversion with FIELD_GET(). Signed-off-by: Ilpo Järvinen --- drivers/pci/controller/dwc/pci-layerscape.c | 2 +-

[PATCH 2/3] PCI: Add PCI_HEADER_TYPE_MFD pci_regs.h

2023-10-03 Thread Ilpo Järvinen
Add PCI_HEADER_TYPE_MFD into pci_regs.h to be able to replace literals in the code. Signed-off-by: Ilpo Järvinen --- include/uapi/linux/pci_regs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/pci_regs.h b/include/uapi/linux/pci_regs.h index e5f558d96493..06df65f11c39

[PATCH 1/3] PCI: vmd: Correct PCI Header Type Register's MFD bit check

2023-10-03 Thread Ilpo Järvinen
vmd_domain_reset() attempts to find whether the device may contain multiple functions by checking 0x80 (Multi-Function Device), however, the hdr_type variable has already been masked with PCI_HEADER_TYPE_MASK so the check can never true. To fix the issue, don't mask the read with

[PATCH 0/3] PCI: PCI_HEADER_TYPE bugfix & cleanups

2023-10-03 Thread Ilpo Järvinen
One bugfix and cleanups for PCI_HEADER_TYPE_* literals. This series only covers what's within drivers/pci/. I'd have patches for other subsystems too but I decided to wait with them until PCI_HEADER_TYPE_MFD is in Linus' tree (to keep the series receipient count reasonable, the rest can IMO go

Re: [RFC PATCH v12 11/33] KVM: Introduce per-page memory attributes

2023-10-03 Thread Fuad Tabba
Hi, > diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > index d2d913acf0df..f8642ff2eb9d 100644 > --- a/include/uapi/linux/kvm.h > +++ b/include/uapi/linux/kvm.h > @@ -1227,6 +1227,7 @@ struct kvm_ppc_resize_hpt { > #define KVM_CAP_ARM_EAGER_SPLIT_CHUNK_SIZE 228 > #define

Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers

2023-10-03 Thread Joel Granados
On Mon, Oct 02, 2023 at 12:27:18PM +, Christophe Leroy wrote: > > > Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit : > > From: Joel Granados > > <--- snip ---> > > - The "yesall" config saves 2432 bytes [4] > > - The "tiny" config saves 64 bytes [5] > > *

Re: [PATCH v8 20/24] iommu: Require a default_domain for all iommu drivers

2023-10-03 Thread Dmitry Baryshkov
On Tue, 3 Oct 2023 at 02:00, Jason Gunthorpe wrote: > > On Tue, Oct 03, 2023 at 12:21:59AM +0300, Dmitry Baryshkov wrote: > > On Wed, 13 Sept 2023 at 16:45, Jason Gunthorpe wrote: > > > > > > At this point every iommu driver will cause a default_domain to be > > > selected, so we can finally

Re: [PATCH 0/3] Fix for shellcheck issues with latest scripts in tests/shell

2023-10-03 Thread kajoljain
Patchset looks fine to me. Reviewed-by: Kajol Jain thanks, Kajol Jain On 9/29/23 09:41, Athira Rajeev wrote: > shellcheck was run on perf tool shell scripts as a pre-requisite > to include a build option for shellcheck discussed here: >

Re: [PATCH V5 1/3] tools/perf: Add text_end to "struct dso" to save .text section size

2023-10-03 Thread Athira Rajeev
> On 03-Oct-2023, at 9:58 AM, Namhyung Kim wrote: > > Hello, > > On Thu, Sep 28, 2023 at 12:52 AM Athira Rajeev > wrote: >> >> Update "struct dso" to include new member "text_end". >> This new field will represent the offset for end of text >> section for a dso. For elf, this value is

Re: [net-next PATCH 2/4] netdev: make napi_schedule return bool on NAPI successful schedule

2023-10-03 Thread Eric Dumazet
On Mon, Oct 2, 2023 at 5:10 PM Christian Marangi wrote: > > Change napi_schedule to return a bool on NAPI successful schedule. This > might be useful for some driver to do additional step after a NAPI ahs This might be useful for some drivers to do additional steps after a NAPI has been