[PATCH 1/2] ASoC: dt-bindings: fsl_rpmsg: Add compatible string for i.MX95

2024-06-26 Thread Chancel Liu
Add compatible string for i.MX95 platform which supports audio function through rpmsg channel between Cortex-A and Cortex-M core. Signed-off-by: Chancel Liu --- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bin

[PATCH 2/2] ASoC: fsl_rpmsg: Add support for i.MX95 platform

2024-06-26 Thread Chancel Liu
Add compatible string and specific soc data to support rpmsg sound card on i.MX95 platform. Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_rpmsg.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/fsl/fsl_rpmsg.c b/sound/soc/fsl/fsl_rpmsg.c index bc41a0666856..467d6bc9f956

Re: [PATCH] printk: Add a short description string to kmsg_dump()

2024-06-26 Thread Petr Mladek
On Tue 2024-06-25 14:39:29, Jocelyn Falempe wrote: > kmsg_dump doesn't forward the panic reason string to the kmsg_dumper > callback. > This patch adds a new parameter "const char *desc" to the kmsg_dumper > dump() callback, and update all drivers that are using it. > > To avoid updating all kmsg_

Re: [PATCH 2/3] powerpc/pseries: Export hardware trace macro dump via debugfs

2024-06-26 Thread Michael Ellerman
Ritesh Harjani (IBM) writes: > This is a generic review and I haven't looked into the PAPR spec for > htmdump hcall and it's interface. > > Madhavan Srinivasan writes: ... >> + >> +debugfs_create_u32("nodeindex", 0600, >> +htmdump_debugfs_dir, &nodeindex); >> +debugfs_

Re: [PATCH] powerpc/pseries: Fix scv instruction crash with kexec

2024-06-26 Thread Michael Ellerman
Nicholas Piggin writes: > kexec on pseries disables AIL (reloc_on_exc), required for scv > instruction support, before other CPUs have been shut down. This means > they can execute scv instructions after AIL is disabled, which causes an > interrupt at an unexpected entry location that crashes the

Re: [PATCH] powerpc/pseries: Fix scv instruction crash with kexec

2024-06-26 Thread Gautam Menghani
Without this patch, we had an issue where if we have some cpus disabled in the system and we try to do a 2 stage kexec as follows: kexec -l vmlinux kexec -e we would hit the following Oops [ 2598.923098] kernel BUG at arch/powerpc/kernel/exceptions-64s.S:501! [ 2598.923103] Oops: Exception

Re: [PATCH] powerpc/pseries: Fix scv instruction crash with kexec

2024-06-26 Thread Sourabh Jain
Hello Michael, On 26/06/24 14:57, Michael Ellerman wrote: Nicholas Piggin writes: kexec on pseries disables AIL (reloc_on_exc), required for scv instruction support, before other CPUs have been shut down. This means they can execute scv instructions after AIL is disabled, which causes an inter

Re: [PATCH 1/4] soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST

2024-06-26 Thread kernel test robot
kernel/git/herbert/cryptodev-2.6.git master patch link: https://lore.kernel.org/r/20240624162128.1665620-1-leitao%40debian.org patch subject: [PATCH 1/4] soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240626/20240626192

[PATCH] arch/powerpc/kvm: Avoid extra checks when emulating HFSCR bits

2024-06-26 Thread Gautam Menghani
When a KVM guest tries to use a feature disabled by HFSCR, it exits to the host for emulation support, and the code checks for all bits which are emulated. Avoid checking all the bits by using a switch case. Signed-off-by: Gautam Menghani --- arch/powerpc/kvm/book3s_hv.c | 16 1

Re: [PATCH 1/4] soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST

2024-06-26 Thread Vladimir Oltean
t: [PATCH 1/4] soc: fsl: qbman: FSL_DPAA depends on COMPILE_TEST > config: x86_64-allyesconfig > (https://download.01.org/0day-ci/archive/20240626/202406261920.l5pzm1rj-...@intel.com/config) > compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project > 617a15a9eac96088ae5e9

Re: [PATCH v3 1/2] pci/hotplug/pnv_php: Fix hotplug driver crash on Powernv

2024-06-26 Thread Bjorn Helgaas
I expect this series would go through the powerpc tree since that's where most of the chance is. On Mon, Jun 24, 2024 at 05:39:27PM +0530, Krishna Kumar wrote: > Description of the problem: The hotplug driver for powerpc > (pci/hotplug/pnv_php.c) gives kernel crash when we try to > hot-unplug/disa

Re: [PATCH] printk: Add a short description string to kmsg_dump()

2024-06-26 Thread Kees Cook
On Tue, Jun 25, 2024 at 02:39:29PM +0200, Jocelyn Falempe wrote: > kmsg_dump doesn't forward the panic reason string to the kmsg_dumper > callback. > This patch adds a new parameter "const char *desc" to the kmsg_dumper > dump() callback, and update all drivers that are using it. > > To avoid upda

[PATCH v2 1/1] dt-bindings: soc: fsl: Convert q(b)man-* to yaml format

2024-06-26 Thread Frank Li
Convert qman, bman, qman-portals, bman-portals to yaml format. Additional Change for fsl,q(b)man-portal: - Only keep one example. - Add fsl,qman-channel-id property. - Use interrupt type macro. - Remove top level qman-portals@ff420 at example. Additional change for fsl,q(b)man: - Fixed exampl

Re: [V4 05/16] tools/perf: Add disasm_line__parse to parse raw instruction for powerpc

2024-06-26 Thread Namhyung Kim
Hello, On Wed, Jun 26, 2024 at 09:38:28AM +0530, Athira Rajeev wrote: > > > > On 26 Jun 2024, at 12:15 AM, Namhyung Kim wrote: > > > > On Tue, Jun 25, 2024 at 06:12:51PM +0530, Athira Rajeev wrote: > >> > >> > >>> On 25 Jun 2024, at 11:09 AM, Namhyung Kim wrote: > >>> > >>> On Fri, Jun 14,

[PATCH 00/13] fs/dax: Fix FS DAX page reference counts

2024-06-26 Thread Alistair Popple
FS DAX pages have always maintained their own page reference counts without following the normal rules for page reference counting. In particular pages are considered free when the refcount hits one rather than zero and refcounts are not added when mapping the page. Tracking this requires special

[PATCH 01/13] mm/gup.c: Remove redundant check for PCI P2PDMA page

2024-06-26 Thread Alistair Popple
PCI P2PDMA pages are not mapped with pXX_devmap PTEs therefore the check in __gup_device_huge() is redundant. Remove it Signed-off-by: Alistair Popple Reviewed-by: Jason Gunthorpe Acked-by: David Hildenbrand --- mm/gup.c | 5 - 1 file changed, 5 deletions(-) diff --git a/mm/gup.c b/mm/gup

[PATCH 02/13] pci/p2pdma: Don't initialise page refcount to one

2024-06-26 Thread Alistair Popple
The reference counts for ZONE_DEVICE private pages should be initialised by the driver when the page is actually allocated by the driver allocator, not when they are first created. This is currently the case for MEMORY_DEVICE_PRIVATE and MEMORY_DEVICE_COHERENT pages but not MEMORY_DEVICE_PCI_P2PDMA

[PATCH 03/13] fs/dax: Refactor wait for dax idle page

2024-06-26 Thread Alistair Popple
A FS DAX page is considered idle when its refcount drops to one. This is currently open-coded in all file systems supporting FS DAX. Move the idle detection to a common function to make future changes easier. Signed-off-by: Alistair Popple Reviewed-by: Jan Kara --- fs/ext4/inode.c | 5 +

[PATCH 04/13] fs/dax: Add dax_page_free callback

2024-06-26 Thread Alistair Popple
When a fs dax page is freed it has to notify filesystems that the page has been unpinned/unmapped and is free. Currently this involves special code in the page free paths to detect a transition of refcount from 2 to 1 and to call some fs dax specific code. A future change will require this to happ

[PATCH 05/13] mm: Allow compound zone device pages

2024-06-26 Thread Alistair Popple
Zone device pages are used to represent various type of device memory managed by device drivers. Currently compound zone device pages are not supported. This is because MEMORY_DEVICE_FS_DAX pages are the only user of higher order zone device pages and have their own page reference counting. A futu

[PATCH 06/13] mm/memory: Add dax_insert_pfn

2024-06-26 Thread Alistair Popple
Currently to map a DAX page the DAX driver calls vmf_insert_pfn. This creates a special devmap PTE entry for the pfn but does not take a reference on the underlying struct page for the mapping. This is because DAX page refcounts are treated specially, as indicated by the presence of a devmap entry.

[PATCH 07/13] huge_memory: Allow mappings of PUD sized pages

2024-06-26 Thread Alistair Popple
Currently DAX folio/page reference counts are managed differently to normal pages. To allow these to be managed the same as normal pages introduce dax_insert_pfn_pud. This will map the entire PUD-sized folio and take references as it would for a normally mapped page. This is distinct from the curr

[PATCH 08/13] huge_memory: Allow mappings of PMD sized pages

2024-06-26 Thread Alistair Popple
Currently DAX folio/page reference counts are managed differently to normal pages. To allow these to be managed the same as normal pages introduce dax_insert_pfn_pmd. This will map the entire PMD-sized folio and take references as it would for a normally mapped page. This is distinct from the curr

[PATCH 09/13] gup: Don't allow FOLL_LONGTERM pinning of FS DAX pages

2024-06-26 Thread Alistair Popple
Longterm pinning of FS DAX pages should already be disallowed by various pXX_devmap checks. However a future change will cause these checks to be invalid for FS DAX pages so make folio_is_longterm_pinnable() return false for FS DAX pages. Signed-off-by: Alistair Popple --- include/linux/memremap

[PATCH 10/13] fs/dax: Properly refcount fs dax pages

2024-06-26 Thread Alistair Popple
Currently fs dax pages are considered free when the refcount drops to one and their refcounts are not increased when mapped via PTEs or decreased when unmapped. This requires special logic in mm paths to detect that these pages should not be properly refcounted, and to detect when the refcount drop

[PATCH 11/13] huge_memory: Remove dead vmf_insert_pXd code

2024-06-26 Thread Alistair Popple
Now that DAX is managing page reference counts the same as normal pages there are no callers for vmf_insert_pXd functions so remove them. Signed-off-by: Alistair Popple --- include/linux/huge_mm.h | 2 +- mm/huge_memory.c| 165 +- 2 files changed

[PATCH 12/13] mm: Remove pXX_devmap callers

2024-06-26 Thread Alistair Popple
The devmap PTE special bit was used to detect mappings of FS DAX pages. This tracking was required to ensure the generic mm did not manipulate the page reference counts as FS DAX implemented it's own reference counting scheme. Now that FS DAX pages have their references counted the same way as nor

[PATCH 13/13] mm: Remove devmap related functions and page table bits

2024-06-26 Thread Alistair Popple
Now that DAX and all other reference counts to ZONE_DEVICE pages are managed normally there is no need for the special devmap PTE/PMD/PUD page table bits. So drop all references to these, freeing up a software defined page table bit on architectures supporting it. Signed-off-by: Alistair Popple -

Re: [axboe-block:for-next] [block] 1122c0c1cc: aim7.jobs-per-min 22.6% improvement

2024-06-26 Thread Oliver Sang
hi, Christoph Hellwig, On Tue, Jun 25, 2024 at 08:39:50PM -0700, Christoph Hellwig wrote: > On Wed, Jun 26, 2024 at 10:10:49AM +0800, Oliver Sang wrote: > > I'm not sure I understand this test request. as in title, we see a good > > improvement of aim7 for 1122c0c1cc, and we didn't observe other i

[PATCH] macintosh: Drop explicit initialization of struct i2c_device_id::driver_data to 0

2024-06-26 Thread Uwe Kleine-König
These drivers don't use the driver_data member of struct i2c_device_id, so don't explicitly initialize this member. This prepares putting driver_data in an anonymous union which requires either no initialization or named designators. But it's also a nice cleanup on its own. Signed-off-by: Uwe Kle

Re: [axboe-block:for-next] [block] bd4a633b6f: fsmark.files_per_sec -64.5% regression

2024-06-26 Thread Anthony D'Atri
S3610 I think. Be sure to use sst or the chassis vendor’s tool to update the firmware. > On Jun 24, 2024, at 9:45 AM, Niklas Cassel wrote: > > SSDSC2BG012T4

[PATCH] printk: Add a short description string to kmsg_dump()

2024-06-26 Thread Jocelyn Falempe
kmsg_dump doesn't forward the panic reason string to the kmsg_dumper callback. This patch adds a new parameter "const char *desc" to the kmsg_dumper dump() callback, and update all drivers that are using it. To avoid updating all kmsg_dump() call, it adds a kmsg_dump_desc() function and a macro fo

Re: [axboe-block:for-next] [block] 1122c0c1cc: aim7.jobs-per-min 22.6% improvement

2024-06-26 Thread Christoph Hellwig
On Thu, Jun 27, 2024 at 10:35:38AM +0800, Oliver Sang wrote: > > I failed to apply patch in your previous reply to 1122c0c1cc or current tip > of axboe-block/for-next: > c1440ed442a58 (axboe-block/for-next) Merge branch 'for-6.11/block' into > for-next That already includes it. > > but it's ok

Re: [PATCH 06/13] mm/memory: Add dax_insert_pfn

2024-06-26 Thread Christoph Hellwig
On Thu, Jun 27, 2024 at 10:54:21AM +1000, Alistair Popple wrote: > +extern void prep_compound_page(struct page *page, unsigned int order); No need for the extern. > static int insert_page_into_pte_locked(struct vm_area_struct *vma, pte_t > *pte, > - unsigned long addr, struc

Re: [PATCH 02/13] pci/p2pdma: Don't initialise page refcount to one

2024-06-26 Thread Christoph Hellwig
On Thu, Jun 27, 2024 at 10:54:17AM +1000, Alistair Popple wrote: > The reference counts for ZONE_DEVICE private pages should be > initialised by the driver when the page is actually allocated by the > driver allocator, not when they are first created. This is currently > the case for MEMORY_DEVICE_

Re: [PATCH 03/13] fs/dax: Refactor wait for dax idle page

2024-06-26 Thread Christoph Hellwig
On Thu, Jun 27, 2024 at 10:54:18AM +1000, Alistair Popple wrote: > A FS DAX page is considered idle when its refcount drops to one. This > is currently open-coded in all file systems supporting FS DAX. Move > the idle detection to a common function to make future changes easier. > > Signed-off-by:

Re: [PATCH 04/13] fs/dax: Add dax_page_free callback

2024-06-26 Thread Christoph Hellwig
On Thu, Jun 27, 2024 at 10:54:19AM +1000, Alistair Popple wrote: > When a fs dax page is freed it has to notify filesystems that the page > has been unpinned/unmapped and is free. Currently this involves > special code in the page free paths to detect a transition of refcount > from 2 to 1 and to c

Re: [PATCH 05/13] mm: Allow compound zone device pages

2024-06-26 Thread Christoph Hellwig
On Thu, Jun 27, 2024 at 10:54:20AM +1000, Alistair Popple wrote: > static struct nouveau_dmem_chunk *nouveau_page_to_chunk(struct page *page) > { > - return container_of(page->pgmap, struct nouveau_dmem_chunk, pagemap); > + return container_of(page_dev_pagemap(page), struct nouveau_dmem_c

Re: [PATCH 10/13] fs/dax: Properly refcount fs dax pages

2024-06-26 Thread Christoph Hellwig
> diff --git a/drivers/dax/device.c b/drivers/dax/device.c > index eb61598..b7a31ae 100644 > --- a/drivers/dax/device.c > +++ b/drivers/dax/device.c > @@ -126,11 +126,11 @@ static vm_fault_t __dev_dax_pte_fault(struct dev_dax > *dev_dax, > return VM_FAULT_SIGBUS; > } > > -

Re: [PATCH 01/13] mm/gup.c: Remove redundant check for PCI P2PDMA page

2024-06-26 Thread Dan Williams
Alistair Popple wrote: > PCI P2PDMA pages are not mapped with pXX_devmap PTEs therefore the > check in __gup_device_huge() is redundant. Remove it > > Signed-off-by: Alistair Popple > Reviewed-by: Jason Gunthorpe > Acked-by: David Hildenbrand Acked-by: Dan Williams