Re: [PATCH v6 00/13] Add support for DAX vmemmap optimization for ppc64

2023-07-25 Thread Aneesh Kumar K V
On 7/26/23 12:59 AM, Andrew Morton wrote: > On Tue, 25 Jul 2023 00:37:46 +0530 "Aneesh Kumar K.V" > wrote: > >> This patch series implements changes required to support DAX vmemmap >> optimization for ppc64. > > Do we have any measurements to help us understand the magnitude > of this

Re: [PATCH v5 4/7] mm/hotplug: Support memmap_on_memory when memmap is not aligned to pageblocks

2023-07-25 Thread Aneesh Kumar K.V
David Hildenbrand writes: > On 25.07.23 12:02, Aneesh Kumar K.V wrote: >> Currently, memmap_on_memory feature is only supported with memory block >> sizes that result in vmemmap pages covering full page blocks. This is >> because memory onlining/offlining code requires applicable ranges to be >>

Re: [PATCH 00/26] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-07-25 Thread Jakub Kicinski
On Tue, 25 Jul 2023 11:23:36 +0200 Herve Codina wrote: > I have a system where I need to handle an HDLC interface and some audio > data. The new code must build cleanly with C=1 W=1, after every individual patch. -- pw-bot: cr

RE: [RFC PATCH v11 12/29] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory

2023-07-25 Thread Wang, Wei W
On Wednesday, July 26, 2023 12:04 AM, Sean Christopherson wrote: > On Tue, Jul 25, 2023, Wei W Wang wrote: > > On Wednesday, July 19, 2023 7:45 AM, Sean Christopherson wrote: > > > +int kvm_gmem_get_pfn(struct kvm *kvm, struct kvm_memory_slot *slot, > > > + gfn_t gfn, kvm_pfn_t *pfn,

Re: [PATCH v2] net: Explicitly include correct DT includes

2023-07-25 Thread Rob Herring
On Tue, Jul 25, 2023 at 11:18 AM Simon Horman wrote: > > On Mon, Jul 24, 2023 at 03:22:16PM -0600, Rob Herring wrote: > > ... > > > 90 files changed, 88 insertions(+), 92 deletions(-) > > Hi Rob, > > I suppose that it's reasonable to take this patch through netdev. > But it does have a pretty

Re: [PATCH v2] net: Explicitly include correct DT includes

2023-07-25 Thread Simon Horman
On Mon, Jul 24, 2023 at 03:22:16PM -0600, Rob Herring wrote: ... > 90 files changed, 88 insertions(+), 92 deletions(-) Hi Rob, I suppose that it's reasonable to take this patch through netdev. But it does have a pretty wide surface, and netdev moves a lot. As it stands the patch doesn't

RE: [RFC PATCH v11 12/29] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory

2023-07-25 Thread Wang, Wei W
On Wednesday, July 19, 2023 7:45 AM, Sean Christopherson wrote: > +int kvm_gmem_get_pfn(struct kvm *kvm, struct kvm_memory_slot *slot, > + gfn_t gfn, kvm_pfn_t *pfn, int *max_order) { > + pgoff_t index = gfn - slot->base_gfn + slot->gmem.pgoff; > + struct kvm_gmem *gmem; >

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

2023-07-25 Thread Russell King (Oracle)
On Mon, Jul 10, 2023 at 06:51:24PM +, Sohil Mehta wrote: > diff --git a/arch/arm/tools/syscall.tbl b/arch/arm/tools/syscall.tbl > index 8ebed8a13874..cb7ea3bf18cf 100644 > --- a/arch/arm/tools/syscall.tbl > +++ b/arch/arm/tools/syscall.tbl > @@ -263,7 +263,7 @@ > 246 common io_submit

Re: [PATCH mm-unstable v7 12/31] powerpc: Convert various functions to use ptdescs

2023-07-25 Thread kernel test robot
Hi Vishal, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] [also build test ERROR on next-20230725] [cannot apply to powerpc/next powerpc/fixes s390/features geert-m68k/for-next geert-m68k/for-linus linus/master v6.5-rc3] [If your patch

Re: [PATCH] Documentation: devices.txt: reconcile serial/ucc_uart minor numers

2023-07-25 Thread Randy Dunlap
On 7/25/23 13:38, Timur Tabi wrote: > On Mon, Jul 24, 2023 at 1:33 AM Randy Dunlap wrote: >> >> Reconcile devices.txt with serial/ucc_uart.c regarding device number >> assignments. ucc_uart.c supports 4 ports and uses minor devnums >> 46-49, so update devices.txt with that info. >> Then update

Re: [PATCH] Documentation: devices.txt: reconcile serial/ucc_uart minor numers

2023-07-25 Thread Timur Tabi
On Mon, Jul 24, 2023 at 1:33 AM Randy Dunlap wrote: > > Reconcile devices.txt with serial/ucc_uart.c regarding device number > assignments. ucc_uart.c supports 4 ports and uses minor devnums > 46-49, so update devices.txt with that info. > Then update ucc_uart.c's reference to the location of the

Re: [PATCH] powerpc: Use shared font data

2023-07-25 Thread Sam Ravnborg
Hi David, On Tue, Jul 25, 2023 at 01:01:41AM +0100, li...@treblig.org wrote: > 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

Re: [PATCH v6 00/13] Add support for DAX vmemmap optimization for ppc64

2023-07-25 Thread Andrew Morton
On Tue, 25 Jul 2023 00:37:46 +0530 "Aneesh Kumar K.V" wrote: > This patch series implements changes required to support DAX vmemmap > optimization for ppc64. Do we have any measurements to help us understand the magnitude of this optimization? And any documentation which helps users

Re: Add fchmodat2() - or add a more general syscall?

2023-07-25 Thread Rich Felker
On Tue, Jul 25, 2023 at 07:39:51PM +0100, David Howells wrote: > Florian Weimer wrote: > > > > Rather than adding a fchmodat2() syscall, should we add a > > > "set_file_attrs()" syscall that takes a mask and allows you to set a bunch > > > of stuff all in one go? Basically, an interface to

Re: Add fchmodat2() - or add a more general syscall?

2023-07-25 Thread David Howells
Florian Weimer wrote: > > Rather than adding a fchmodat2() syscall, should we add a > > "set_file_attrs()" syscall that takes a mask and allows you to set a bunch > > of stuff all in one go? Basically, an interface to notify_change() in the > > kernel that would allow several stats to be set

Re: [PATCH v5 4/7] mm/hotplug: Support memmap_on_memory when memmap is not aligned to pageblocks

2023-07-25 Thread David Hildenbrand
On 25.07.23 12:02, Aneesh Kumar K.V wrote: Currently, memmap_on_memory feature is only supported with memory block sizes that result in vmemmap pages covering full page blocks. This is because memory onlining/offlining code requires applicable ranges to be pageblock-aligned, for example, to set

Re: [RFC PATCH v11 01/29] KVM: Wrap kvm_gfn_range.pte in a per-action union

2023-07-25 Thread Sean Christopherson
On Fri, Jul 21, 2023, Xu Yilun wrote: > On 2023-07-21 at 14:26:11 +0800, Yan Zhao wrote: > > On Tue, Jul 18, 2023 at 04:44:44PM -0700, Sean Christopherson wrote: > > > > May I know why KVM now needs to register to callback .change_pte()? > > I can see the original purpose is to "setting a pte in

Re: [PATCH v5 7/7] mm/hotplug: Enable runtime update of memmap_on_memory parameter

2023-07-25 Thread David Hildenbrand
On 25.07.23 12:02, Aneesh Kumar K.V wrote: Signed-off-by: Aneesh Kumar K.V --- mm/memory_hotplug.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 96e794f39313..6cb6eac1aee5 100644 ---

Re: [PATCH] Documentation: devices.txt: reconcile serial/ucc_uart minor numers

2023-07-25 Thread Randy Dunlap
On 7/25/23 10:27, Greg Kroah-Hartman wrote: > On Sun, Jul 23, 2023 at 11:33:41PM -0700, Randy Dunlap wrote: >> Reconcile devices.txt with serial/ucc_uart.c regarding device number >> assignments. ucc_uart.c supports 4 ports and uses minor devnums >> 46-49, so update devices.txt with that info.

Re: [PATCH] powerpc: Use shared font data

2023-07-25 Thread Dr. David Alan Gilbert
* Sam Ravnborg (s...@ravnborg.org) wrote: > Hi David, > > On Tue, Jul 25, 2023 at 01:01:41AM +0100, li...@treblig.org wrote: > > 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

Re: [PATCH] Documentation: devices.txt: reconcile serial/ucc_uart minor numers

2023-07-25 Thread Greg Kroah-Hartman
On Sun, Jul 23, 2023 at 11:33:41PM -0700, Randy Dunlap wrote: > Reconcile devices.txt with serial/ucc_uart.c regarding device number > assignments. ucc_uart.c supports 4 ports and uses minor devnums > 46-49, so update devices.txt with that info. > Then update ucc_uart.c's reference to the location

Re: Add fchmodat2() - or add a more general syscall?

2023-07-25 Thread Aleksa Sarai
On 2023-07-25, David Howells wrote: > Rather than adding a fchmodat2() syscall, should we add a "set_file_attrs()" > syscall that takes a mask and allows you to set a bunch of stuff all in one > go? Basically, an interface to notify_change() in the kernel that would allow > several stats to be

Re: [PATCH v4 2/5] fs: Add fchmodat2()

2023-07-25 Thread Aleksa Sarai
On 2023-07-11, Alexey Gladkov wrote: > On the userspace side fchmodat(3) is implemented as a wrapper > function which implements the POSIX-specified interface. This > interface differs from the underlying kernel system call, which does not > have a flags argument. Most implementations require

Re: [PATCH v4 3/5] arch: Register fchmodat2, usually as syscall 452

2023-07-25 Thread Aleksa Sarai
On 2023-07-11, Alexey Gladkov wrote: > From: Palmer Dabbelt > > This registers the new fchmodat2 syscall in most places as nuber 452, > with alpha being the exception where it's 562. I found all these sites > by grepping for fspick, which I assume has found me everything. Shouldn't this patch

Re: [PATCH 24/26] ASoC: codecs: Add support for the framer codec

2023-07-25 Thread Randy Dunlap
On 7/25/23 02:24, Herve Codina wrote: > +config SND_SOC_FRAMER > + tristate "Framer codec" > + depends on GENERIC_FRAMER > + help > + Enable support for the framer codec. > + The framer codec uses the generic framer infrastructure to transport > + some audio data

Re: Add fchmodat2() - or add a more general syscall?

2023-07-25 Thread Florian Weimer
* David Howells: > Rather than adding a fchmodat2() syscall, should we add a "set_file_attrs()" > syscall that takes a mask and allows you to set a bunch of stuff all in one > go? Basically, an interface to notify_change() in the kernel that would allow > several stats to be set atomically.

Re: [RFC PATCH v11 12/29] KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory

2023-07-25 Thread Sean Christopherson
On Tue, Jul 25, 2023, Wei W Wang wrote: > On Wednesday, July 19, 2023 7:45 AM, Sean Christopherson wrote: > > +int kvm_gmem_get_pfn(struct kvm *kvm, struct kvm_memory_slot *slot, > > +gfn_t gfn, kvm_pfn_t *pfn, int *max_order) { > > + pgoff_t index = gfn - slot->base_gfn +

Add fchmodat2() - or add a more general syscall?

2023-07-25 Thread David Howells
Rather than adding a fchmodat2() syscall, should we add a "set_file_attrs()" syscall that takes a mask and allows you to set a bunch of stuff all in one go? Basically, an interface to notify_change() in the kernel that would allow several stats to be set atomically. This might be of particular

[PATCH v4 5/5] mmu_notifiers: Rename invalidate_range notifier

2023-07-25 Thread Alistair Popple
There are two main use cases for mmu notifiers. One is by KVM which uses mmu_notifier_invalidate_range_start()/end() to manage a software TLB. The other is to manage hardware TLBs which need to use the invalidate_range() callback because HW can establish new TLB entries at any time. Hence using

[PATCH v4 4/5] mmu_notifiers: Don't invalidate secondary TLBs as part of mmu_notifier_invalidate_range_end()

2023-07-25 Thread Alistair Popple
Secondary TLBs are now invalidated from the architecture specific TLB invalidation functions. Therefore there is no need to explicitly notify or invalidate as part of the range end functions. This means we can remove mmu_notifier_invalidate_range_end_only() and some of the ptep_*_notify()

[PATCH v4 3/5] mmu_notifiers: Call invalidate_range() when invalidating TLBs

2023-07-25 Thread Alistair Popple
The invalidate_range() is going to become an architecture specific mmu notifier used to keep the TLB of secondary MMUs such as an IOMMU in sync with the CPU page tables. Currently it is called from separate code paths to the main CPU TLB invalidations. This can lead to a secondary TLB not getting

[PATCH v4 2/5] mmu_notifiers: Fixup comment in mmu_interval_read_begin()

2023-07-25 Thread Alistair Popple
The comment in mmu_interval_read_begin() refers to a function that doesn't exist and uses the wrong call-back name. The op for mmu interval notifiers is mmu_interval_notifier_ops->invalidate() so fix the comment up to reflect that. Signed-off-by: Alistair Popple Reviewed-by: Jason Gunthorpe ---

[PATCH v4 1/5] arm64/smmu: Use TLBI ASID when invalidating entire range

2023-07-25 Thread Alistair Popple
The ARM SMMU has a specific command for invalidating the TLB for an entire ASID. Currently this is used for the IO_PGTABLE API but not for ATS when called from the MMU notifier. The current implementation of notifiers does not attempt to invalidate such a large address range, instead walking each

[PATCH v4 0/5] Invalidate secondary IOMMU TLB on permission upgrade

2023-07-25 Thread Alistair Popple
The main change is to move secondary TLB invalidation mmu notifier callbacks into the architecture specific TLB flushing functions. This makes secondary TLB invalidation mostly match CPU invalidation while still allowing efficient range based invalidations based on the existing TLB batching code.

[PATCH] powerpc/kexec: fix minor typo

2023-07-25 Thread Laurent Dufour
Function name in the descriptor was not correct. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307251721.bugcsceq-...@intel.com/ Signed-off-by: Laurent Dufour --- arch/powerpc/kexec/file_load_64.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [RFC PATCH v11 10/29] mm: Add AS_UNMOVABLE to mark mapping as completely unmovable

2023-07-25 Thread Matthew Wilcox
On Tue, Jul 25, 2023 at 01:24:03PM +0300, Kirill A . Shutemov wrote: > On Tue, Jul 18, 2023 at 04:44:53PM -0700, Sean Christopherson wrote: > > diff --git a/mm/compaction.c b/mm/compaction.c > > index dbc9f86b1934..a3d2b132df52 100644 > > --- a/mm/compaction.c > > +++ b/mm/compaction.c > > @@

Re: [PATCH v3 0/5] Add a new fchmodat4() syscall

2023-07-25 Thread Christian Brauner
On Tue, Jul 25, 2023 at 01:05:40PM +0200, Alexey Gladkov wrote: > On Tue, Jul 11, 2023 at 05:14:24PM +0200, Christian Brauner wrote: > > On Tue, Jul 11, 2023 at 02:24:51PM +0200, Florian Weimer wrote: > > > * Alexey Gladkov: > > > > > > > This patch set adds fchmodat4(), a new syscall. The actual

Re: [PATCH v3 0/5] Add a new fchmodat4() syscall

2023-07-25 Thread Alexey Gladkov
On Tue, Jul 11, 2023 at 05:14:24PM +0200, Christian Brauner wrote: > On Tue, Jul 11, 2023 at 02:24:51PM +0200, Florian Weimer wrote: > > * Alexey Gladkov: > > > > > This patch set adds fchmodat4(), a new syscall. The actual > > > implementation is super simple: essentially it's just the same as >

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

2023-07-25 Thread Geert Uytterhoeven
On Mon, Jul 10, 2023 at 8:52 PM Sohil Mehta wrote: > commit 'be65de6b03aa ("fs: Remove dcookies support")' removed the > syscall definition for lookup_dcookie. However, syscall tables still > point to the old sys_lookup_dcookie() definition. Update syscall tables > of all architectures to

[PATCH] docs: move powerpc under arch

2023-07-25 Thread Costa Shulyupin
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: Costa Shulyupin ---

[PATCH 5.4 110/313] crypto: nx - fix build warnings when DEBUG_FS is not enabled

2023-07-25 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit b04b076fb56560b39d695ac3744db457e12278fd ] Fix build warnings when DEBUG_FS is not enabled by using an empty do-while loop instead of a value: In file included from ../drivers/crypto/nx/nx.c:27: ../drivers/crypto/nx/nx.c: In function 'nx_register_algs':

[PATCH 5.4 084/313] soc/fsl/qe: fix usb.c build errors

2023-07-25 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 7b1a78babd0d2cd27aa07255dee0c2d7ac0f31e3 ] Fix build errors in soc/fsl/qe/usb.c when QUICC_ENGINE is not set. This happens when PPC_EP88XC is set, which selects CPM1 & CPM. When CPM is set, USB_FSL_QE can be set without QUICC_ENGINE being set. When

[PATCH 5.10 201/509] crypto: nx - fix build warnings when DEBUG_FS is not enabled

2023-07-25 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit b04b076fb56560b39d695ac3744db457e12278fd ] Fix build warnings when DEBUG_FS is not enabled by using an empty do-while loop instead of a value: In file included from ../drivers/crypto/nx/nx.c:27: ../drivers/crypto/nx/nx.c: In function 'nx_register_algs':

[PATCH 5.10 132/509] soc/fsl/qe: fix usb.c build errors

2023-07-25 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 7b1a78babd0d2cd27aa07255dee0c2d7ac0f31e3 ] Fix build errors in soc/fsl/qe/usb.c when QUICC_ENGINE is not set. This happens when PPC_EP88XC is set, which selects CPM1 & CPM. When CPM is set, USB_FSL_QE can be set without QUICC_ENGINE being set. When

Re: [PATCH] tools/perf: Fix addr location init during arch_skip_callchain_idx function

2023-07-25 Thread Athira Rajeev
> On 25-Jul-2023, at 2:33 AM, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jul 24, 2023 at 10:28:15PM +0530, Athira Rajeev escreveu: >> perf record with callchain recording fails as below >> in powerpc: >> >> ./perf record -a -gR sleep 10 >> ./perf report >> perf: Segmentation fault >>

Re: [RFC PATCH v11 10/29] mm: Add AS_UNMOVABLE to mark mapping as completely unmovable

2023-07-25 Thread Kirill A . Shutemov
On Tue, Jul 18, 2023 at 04:44:53PM -0700, Sean Christopherson wrote: > diff --git a/mm/compaction.c b/mm/compaction.c > index dbc9f86b1934..a3d2b132df52 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1047,6 +1047,10 @@ isolate_migratepages_block(struct compact_control *cc, >

Re: [PATCH v5 5/7] powerpc/book3s64/memhotplug: Enable memmap on memory for radix

2023-07-25 Thread David Hildenbrand
#endif /* CONFIG_PPC64 */ #endif /* __ASSEMBLY__ */ diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c index 9c62c2c3b3d0..1447509357a7 100644 --- a/arch/powerpc/platforms/pseries/hotplug-memory.c +++

Re: [PATCH v5 0/7] Add support for memmap on memory feature on ppc64

2023-07-25 Thread David Hildenbrand
On 25.07.23 12:02, Aneesh Kumar K.V wrote: This patch series update memmap on memory feature to fall back to memmap allocation outside the memory block if the alignment rules are not met. This makes the feature more useful on architectures like ppc64 where alignment rules are different with 64K

[PATCH v5 3/7] mm/hotplug: Allow architecture to override memmap on memory support check

2023-07-25 Thread Aneesh Kumar K.V
Some architectures would want different restrictions. Hence add an architecture-specific override. The PMD_SIZE check is moved there. Acked-by: David Hildenbrand Signed-off-by: Aneesh Kumar K.V --- mm/memory_hotplug.c | 21 ++--- 1 file changed, 18 insertions(+), 3

[PATCH v5 7/7] mm/hotplug: Enable runtime update of memmap_on_memory parameter

2023-07-25 Thread Aneesh Kumar K.V
Signed-off-by: Aneesh Kumar K.V --- mm/memory_hotplug.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index 96e794f39313..6cb6eac1aee5 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -95,7

[PATCH v5 5/7] powerpc/book3s64/memhotplug: Enable memmap on memory for radix

2023-07-25 Thread Aneesh Kumar K.V
Radix vmemmap mapping can map things correctly at the PMD level or PTE level based on different device boundary checks. Hence we skip the restrictions w.r.t vmemmap size to be multiple of PMD_SIZE. This also makes the feature widely useful because to use PMD_SIZE vmemmap area we require a memory

[PATCH v5 6/7] mm/hotplug: Embed vmem_altmap details in memory block

2023-07-25 Thread Aneesh Kumar K.V
With memmap on memory, some architecture needs more details w.r.t altmap such as base_pfn, end_pfn, etc to unmap vmemmap memory. Instead of computing them again when we remove a memory block, embed vmem_altmap details in struct memory_block if we are using memmap on memory block feature. No

[PATCH v5 4/7] mm/hotplug: Support memmap_on_memory when memmap is not aligned to pageblocks

2023-07-25 Thread Aneesh Kumar K.V
Currently, memmap_on_memory feature is only supported with memory block sizes that result in vmemmap pages covering full page blocks. This is because memory onlining/offlining code requires applicable ranges to be pageblock-aligned, for example, to set the migratetypes properly. This patch helps

[PATCH v5 2/7] mm/hotplug: Allow memmap on memory hotplug request to fallback

2023-07-25 Thread Aneesh Kumar K.V
If not supported, fallback to not using memap on memmory. This avoids the need for callers to do the fallback. Acked-by: David Hildenbrand Signed-off-by: Aneesh Kumar K.V --- drivers/acpi/acpi_memhotplug.c | 3 +-- include/linux/memory_hotplug.h | 3 ++- mm/memory_hotplug.c| 13

[PATCH v5 1/7] mm/hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig

2023-07-25 Thread Aneesh Kumar K.V
Instead of adding menu entry with all supported architectures, add mm/Kconfig variable and select the same from supported architectures. No functional change in this patch. Acked-by: David Hildenbrand Signed-off-by: Aneesh Kumar K.V --- arch/arm64/Kconfig | 4 +--- arch/x86/Kconfig | 4 +---

[PATCH v5 0/7] Add support for memmap on memory feature on ppc64

2023-07-25 Thread Aneesh Kumar K.V
This patch series update memmap on memory feature to fall back to memmap allocation outside the memory block if the alignment rules are not met. This makes the feature more useful on architectures like ppc64 where alignment rules are different with 64K page size. This patch series is dependent on

[PATCH 23/26] MAINTAINERS: Add the Lantiq PEF2256 driver entry

2023-07-25 Thread Herve Codina
After contributing the driver, add myself as the maintainer for the Lantiq PEF2256 driver. Signed-off-by: Herve Codina --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 14041d90f9c8..07a7d9fca3c4 100644 --- a/MAINTAINERS +++

[PATCH 22/26] pinctrl: Add support for the Lantic PEF2256 pinmux

2023-07-25 Thread Herve Codina
The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. This pinmux support handles the pin muxing part (pins RP(A..D) and pins XP(A..D)) of the PEF2256. Signed-off-by:

[PATCH 21/26] net: wan: framer: Add support for the Lantiq PEF2256 framer

2023-07-25 Thread Herve Codina
The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. Signed-off-by: Herve Codina --- drivers/net/wan/framer/Kconfig| 16 +

[PATCH 20/26] mfd: core: Ensure disabled devices are skiped without aborting

2023-07-25 Thread Herve Codina
The loop searching for a matching device based on its compatible string is aborted when a matching disabled device is found. This abort avoid to add devices as soon as one disabled device is found. Continue searching for an other device instead of aborting on the first disabled one fixes the

[PATCH 19/26] dt-bindings: net: Add the Lantiq PEF2256 E1/T1/J1 framer

2023-07-25 Thread Herve Codina
The Lantiq PEF2256 is a framer and line interface component designed to fulfill all required interfacing between an analog E1/T1/J1 line and the digital PCM system highway/H.100 bus. Signed-off-by: Herve Codina --- .../bindings/net/lantiq,pef2256.yaml | 226 ++ 1 file

[PATCH 18/26] net: wan: Add framer framework support

2023-07-25 Thread Herve Codina
A framer is a component in charge of an E1/T1 line interface. Connected usually to a TDM bus, it converts TDM frames to/from E1/T1 frames. It also provides information related to the E1/T1 line. The framer framework provides a set of APIs for the framer drivers (framer provider) to create/destroy

[PATCH 17/26] wan: qmc_hdlc: Add runtime timeslots changes support

2023-07-25 Thread Herve Codina
QMC channels support runtime timeslots changes but nothing is done at the QMC HDLC driver to handle these changes. Use existing IFACE ioctl in order to configure the timeslots to use. Signed-off-by: Herve Codina --- drivers/net/wan/fsl_qmc_hdlc.c | 170 - 1 file

[PATCH 16/26] soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime

2023-07-25 Thread Herve Codina
Introduce qmc_chan_{get,set}_ts_info() function to allow timeslots modification at runtime. The modification is provided using qmc_chan_set_ts_info() and will be applied on next qmc_chan_start(). qmc_chan_set_ts_info() must be called with the channel rx and/or tx stopped. Signed-off-by: Herve

[PATCH 15/26] soc: fsl: cpm1: qmc: Remove timeslots handling from setup_chan()

2023-07-25 Thread Herve Codina
Timeslots setting is done at channel start() and stop(). There is no more need to do that during setup_chan(). Simply remove timeslot setting from setup_chan(). Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 28 1 file changed, 28 deletions(-) diff

[PATCH 14/26] soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()

2023-07-25 Thread Herve Codina
In order to support runtime timeslot route changes, enable the channel timeslot entries at channel start() and disable them at channel stop(). Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 175 --- 1 file changed, 163 insertions(+), 12

[PATCH 13/26] soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag

2023-07-25 Thread Herve Codina
In order to support runtime timeslot route changes, some operations will be different according the routing table used (common Rx and Tx table or one table for Rx and one for Tx). The is_tsa_64rxtx flag is introduced to avoid extra computation to determine the table format each time we need it.

[PATCH 12/26] soc: fsl: cpm1: qmc: Split Tx and Rx TSA entries setup

2023-07-25 Thread Herve Codina
The Tx and Rx entries for a given channel are set in one function. In order to modify Rx entries and Tx entries independently of one other, split this function in one for the Rx part and one for the Tx part. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 49

[PATCH 11/26] soc: fsl: cpm1: qmc: Add support for disabling channel TSA entries

2023-07-25 Thread Herve Codina
In order to allow runtime timeslot route changes, disabling channel TSA entries needs to be supported. Add support for this new feature. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git

[PATCH 10/26] soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()

2023-07-25 Thread Herve Codina
The timeslots checked in qmc_check_chans() are the timeslots used. With the introduction of the available timeslots, the used timeslots are a subset of the available timeslots. The timeslots checked during the qmc_check_chans() call should be the available ones. Simply update and check the

[PATCH 09/26] soc: fsl: cpm1: qmc: Remove no more needed checks from qmc_check_chans()

2023-07-25 Thread Herve Codina
The newly introduced qmc_chan_setup_tsa* functions check that the channel entries are not already used. These checks are also performed by qmc_check_chans() and are no more needed. Remove them from qmc_check_chans(). Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 20

[PATCH 08/26] soc: fsl: cpm1: qmc: Introduce qmc_chan_setup_tsa*

2023-07-25 Thread Herve Codina
Introduce the qmc_chan_setup_tsa* functions to setup entries related to the given channel. Use them during QMC channels setup. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 161 ++- 1 file changed, 125 insertions(+), 36 deletions(-) diff --git

[PATCH 07/26] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa*

2023-07-25 Thread Herve Codina
qmc_setup_tsa* are called once at initialisation. They initialize the QMC TSA table. In order to introduce setup function later on for dynamic timeslots management, rename the function to avoid later confusion. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 16 1

[PATCH 06/26] soc: fsl: cpm1: qmc: Introduce available timeslots masks

2023-07-25 Thread Herve Codina
Available timeslots masks define timeslots available for the related channel. These timeslots are defined by the QMC binding. Timeslots used are initialized to available timeslots but can be a subset of available timeslots. This prepares the dynamic timeslots management (ie. changing timeslots at

[PATCH 05/26] MAINTAINERS: Add the Freescale QMC HDLC driver entry

2023-07-25 Thread Herve Codina
After contributing the driver, add myself as the maintainer for the Freescale QMC HDLC driver. Signed-off-by: Herve Codina --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aee340630eca..14041d90f9c8 100644 --- a/MAINTAINERS +++

[PATCH 04/26] net: wan: Add support for QMC HDLC

2023-07-25 Thread Herve Codina
The QMC HDLC driver provides support for HDLC using the QMC (QUICC Multichannel Controller) to transfer the HDLC data. Signed-off-by: Herve Codina --- drivers/net/wan/Kconfig| 12 + drivers/net/wan/Makefile | 1 + drivers/net/wan/fsl_qmc_hdlc.c | 422

[PATCH 03/26] dt-bindings: net: Add support for QMC HDLC

2023-07-25 Thread Herve Codina
The QMC (QUICC mutichannel controller) is a controller present in some PowerQUICC SoC such as MPC885. The QMC HDLC uses the QMC controller to transfer HDLC data. Signed-off-by: Herve Codina --- .../devicetree/bindings/net/fsl,qmc-hdlc.yaml | 41 +++ 1 file changed, 41

[PATCH 02/26] soc: fsl: cpm1: qmc: Extend the API to provide Rx status

2023-07-25 Thread Herve Codina
In HDLC mode, some status flags related to the data read transfer can be set by the hardware and need to be known by a QMC consumer for further analysis. Extend the API in order to provide these transfer status flags at the read complete() call. In TRANSPARENT mode, these flags have no meaning.

[PATCH 00/26] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-07-25 Thread Herve Codina
Hi, I have a system where I need to handle an HDLC interface and some audio data. The HDLC data are transferred using a TDM bus on which a PEF2256 (E1/T1 framer) is present. The PEF2256 transfers data from/to the TDM bus to/from the E1 line. This PEF2256 is connected to a PowerQUICC SoC for the

[PATCH 01/26] soc: fsl: cpm1: qmc: Fix rx channel reset

2023-07-25 Thread Herve Codina
The qmc_chan_reset_rx() set the is_rx_stopped flag. This leads to an inconsistent state in the following sequence. qmc_chan_stop() qmc_chan_reset() Indeed, after the qmc_chan_reset() call, the channel must still be stopped. Only a qmc_chan_start() call can move the channel from stopped

[PATCH 26/26] net: wan: fsl_qmc_hdlc: Add framer support

2023-07-25 Thread Herve Codina
Add framer support in the fsl_qmc_hdlc driver in order to be able to signal carrier changes to the network stack based on the framer status Also use this framer to provide information related to the E1/T1 line interface on IF_GET_IFACE and configure the line interface according to IF_IFACE_{E1,T1}

[PATCH 25/26] dt-bindings: net: fsl,qmc-hdlc: Add framer support

2023-07-25 Thread Herve Codina
A framer can be connected to the QMC HDLC. If present, this framer is the interface between the TDM used by the QMC HDLC and the E1/T1 line. The QMC HDLC can use this framer to get information about the line and configure the line. Add an optional framer property to reference the framer itself.

[PATCH 24/26] ASoC: codecs: Add support for the framer codec

2023-07-25 Thread Herve Codina
The framer codec interracts with a framer. It allows to use some of the framer timeslots as audio channels to transport audio data over the framer E1/T1/J1 lines. It also reports line carrier detection events through the ALSA jack detection feature. Signed-off-by: Herve Codina ---

Re: [PATCH v4 3/5] arch: Register fchmodat2, usually as syscall 452

2023-07-25 Thread Geert Uytterhoeven
On Tue, Jul 11, 2023 at 6:25 PM Alexey Gladkov wrote: > From: Palmer Dabbelt > > This registers the new fchmodat2 syscall in most places as nuber 452, > with alpha being the exception where it's 562. I found all these sites > by grepping for fspick, which I assume has found me everything. > >

Re: [PATCH v2] tty: Explicitly include correct DT includes

2023-07-25 Thread Uwe Kleine-König
Hello Rob, On Mon, Jul 24, 2023 at 02:54:38PM -0600, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily"

[RFC PATCH v2 7/7] ASoC: fsl_easrc: register m2m platform device

2023-07-25 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_easrc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index b735b24badc2..b5befefa8fbe 100644 ---

[RFC PATCH v2 6/7] ASoC: fsl_asrc: register m2m platform device

2023-07-25 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Signed-off-by: Shengjiu Wang --- include/sound/fsl_asrc_common.h | 2 ++ sound/soc/fsl/fsl_asrc.c| 12 2 files changed, 14 insertions(+) diff --git a/include/sound/fsl_asrc_common.h

[RFC PATCH v2 5/7] media: imx: fsl_asrc: Add memory to memory driver

2023-07-25 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the v4l2 framework, user can use this function with v4l2 ioctl interface. User send the output and capture buffer to driver and driver store the converted data to the capture buffer. This feature can be shared by ASRC and EASRC drivers

[RFC PATCH v2 4/7] media: v4l2: Add audio capture and output support

2023-07-25 Thread Shengjiu Wang
Audio signal processing has the requirement for memory to memory similar as Video. This patch is to add this support in v4l2 framework, defined new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format for audio case usage. The created audio

[RFC PATCH v2 3/7] ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound

2023-07-25 Thread Shengjiu Wang
Move fsl_asrc_common.h to include/sound that it can be included from other drivers. Signed-off-by: Shengjiu Wang --- {sound/soc/fsl => include/sound}/fsl_asrc_common.h | 0 sound/soc/fsl/fsl_asrc.h | 2 +- sound/soc/fsl/fsl_asrc_dma.c | 2 +-

[RFC PATCH v2 2/7] ASoC: fsl_easrc: define functions for memory to memory usage

2023-07-25 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_easrc.c | 214 ++ sound/soc/fsl/fsl_easrc.h | 6 ++ 2 files changed, 220 insertions(+)

[RFC PATCH v2 1/7] ASoC: fsl_asrc: define functions for memory to memory usage

2023-07-25 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage. m2m_start_part_one: first part of the start steps m2m_start_part_two: second part of the start steps m2m_stop_part_one: first part of stop steps m2m_stop_part_two: second part of stop steps m2m_check_format: check

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

2023-07-25 Thread Shengjiu Wang
Audio signal processing has the requirement for memory to memory similar as Video. This patch is to add this support in v4l2 framework, defined new buffer type V4L2_BUF_TYPE_AUDIO_CAPTURE and V4L2_BUF_TYPE_AUDIO_OUTPUT, defined new format v4l2_audio_format for audio case usage. The created audio

[PATCH 1/1] perf tests task_analyzer: Check perf build options for libtraceevent support

2023-07-25 Thread Aditya Gupta
Currently we depend on output of 'perf record -e "sched:sched_switch"', to check whether perf was built with libtraceevent support. Instead, a more straightforward approach can be to check the build options, using 'perf version --build-options', to check for libtraceevent support. When perf is