[PATCH V2 1/9] powerpc/pseries/htmdump: Add htm_hcall_wrapper to integrate other htm operations

2025-03-21 Thread Athira Rajeev
H_HTM (Hardware Trace Macro) hypervisor call is an HCALL to export data from Hardware Trace Macro (HTM) function. The debugfs interface to export the HTM function data in an lpar currently supports only dumping of HTM data in an lpar. To add support for setup, configuration and control of HTM funct

[PATCH V2 0/9] Add support for configure and control of Hardware Trace Macro(HTM)

2025-03-21 Thread Athira Rajeev
H_HTM (Hardware Trace Macro) hypervisor call is an HCALL to export data from Hardware Trace Macro (HTM) function. The debugfs interface to export the HTM function data in a partition currently supports only dumping of HTM data in an lpar. Patchset add support for configuration and control of HTM fu

[PATCH V2 4/9] powerpc/pseries/htmdump: Add htm status support to htmdump module

2025-03-21 Thread Athira Rajeev
Support dumping status of Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmstatus”. The interface allows only read of this file which will present the content of HTM status buffer from the hcall. The 16th offset of HTM

[PATCH V2 2/9] powerpc/pseries/htmdump: Add htm configure support to htmdump module

2025-03-21 Thread Athira Rajeev
Support configuring of Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmconfigure". The interface allows configuring of htm via this file by writing value "1". Allow deconfiguring of htm via this file by writing value

[PATCH V2 3/9] powerpc/pseries/htmdump: Add htm start support to htmdump module

2025-03-21 Thread Athira Rajeev
Support starting of Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmstart". The interface allows starting of htm via this file by writing value "1". Also allows stopping of htm tracing by writing value "0" to this fil

[PATCH V2 7/9] powerpc/pseries/htmdump: Add htm flags support to htmdump module

2025-03-21 Thread Athira Rajeev
Under debugfs folder, "/sys/kernel/debug/powerpc/htmdump", add file "htmflags". Currently supported flag value is to enable/disable HTM buffer wrap. wrap is used along with "configure" to prevent HTM buffer from wrapping. Writing 1 will set noWrap while configuring HTM Signed-off-by: Athira Rajeev

[PATCH V2 9/9] powerpc/pseries/htmdump: Add documentation for H_HTM debugfs interface

2025-03-21 Thread Athira Rajeev
Documentation for HTM (Hardware Trace Macro) debugfs interface and how it can be used to configure/control the HTM operations. Signed-off-by: Athira Rajeev --- Documentation/arch/powerpc/htm.rst | 104 + 1 file changed, 104 insertions(+) create mode 100644 Documentat

[PATCH V2 8/9] powerpc/pseries/htmdump: Add htm capabilities support to htmdump module

2025-03-21 Thread Athira Rajeev
Support dumping HTM capabilities information from Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmcaps”. The interface allows only read of this file which will present the content of HTM buffer from the hcall. Signe

Re: [PATCH] bus: fsl-mc: Remove deadcode

2025-03-21 Thread Ioana Ciornei
On Fri, Nov 15, 2024 at 03:20:55PM +, li...@treblig.org wrote: > From: "Dr. David Alan Gilbert" > > fsl_mc_allocator_driver_exit() was added explicitly by > commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function") > but was never used. > > Remove it. > > fsl_mc_portal_rese

[PATCH V2 6/9] powerpc/pseries/htmdump: Add htm setup support to htmdump module

2025-03-21 Thread Athira Rajeev
Add htm setup support to htmdump module. To use the HTM (Hardware Trace Macro), HTM buffer has to be allocated. Support setup of HTM buffers via debugfs interface. Under debugfs folder, "/sys/kernel/debug/powerpc/htmdump", add file "htmsetup". The interface allows setup of HTM buffer by writing siz

Re: [RFC 3/3] mm: integrate GCMA with CMA using dt-bindings

2025-03-21 Thread Conor Dooley
On Thu, Mar 20, 2025 at 10:39:31AM -0700, Suren Baghdasaryan wrote: > This patch introduces a new "guarantee" property for shared-dma-pool. > With this property, admin can create specific memory pool as > GCMA-based CMA if they care about allocation success rate and latency. > The downside of GCMA

Re: [PATCH V2 2/2] tools/perf/powerpc/util: Add support to handle compatible mode PVR for perf json events

2025-03-21 Thread Christophe Leroy
Hi, Le 10/10/2024 à 16:51, Athira Rajeev a écrit : perf list picks the events supported for specific platform from pmu-events/arch/powerpc/. Example power10 events are in pmu-events/arch/powerpc/power10, power9 events are part of pmu-events/arch/powerpc/power9. The decision of which platform to

Re: [PATCH v2 32/57] irqdomain: ppc: Switch to irq_domain_create_*()

2025-03-21 Thread Christophe Leroy
Le 19/03/2025 à 10:29, Jiri Slaby (SUSE) a écrit : irq_domain_add_*() interfaces are going away as being obsolete now. Switch to the preferred irq_domain_create_*() ones. Those differ in the node parameter: They take more generic struct fwnode_handle instead of struct device_node. Therefore, o

[PATCH v4 1/3] lsm: introduce new hooks for setting/getting inode fsxattr

2025-03-21 Thread Andrey Albershteyn
Introduce new hooks for setting and getting filesystem extended attributes on inode (FS_IOC_FSGETXATTR). Cc: seli...@vger.kernel.org Cc: Paul Moore Signed-off-by: Andrey Albershteyn --- fs/ioctl.c| 7 ++- include/linux/lsm_hook_defs.h | 4 include/linux/security.

Re: distro support for CONFIG_KUNIT: [PATCH 0/3] bitmap: convert self-test to KUnit

2025-03-21 Thread Tamir Duberstein
On Fri, Mar 21, 2025 at 2:32 PM Yury Norov wrote: > > On Fri, Mar 21, 2025 at 12:53:36PM -0400, Tamir Duberstein wrote: > > Hi all, now that the printf and scanf series have been taken via kees' > > tree[0] and sent in for v6.15-rc1[1], I wonder if we'd like to revisit > > this discussion. > > > >

[PATCH v4 2/3] fs: split fileattr/fsxattr converters into helpers

2025-03-21 Thread Andrey Albershteyn
This will be helpful for get/setfsxattrat syscalls to convert between fileattr and fsxattr. Signed-off-by: Andrey Albershteyn --- fs/ioctl.c | 32 +--- include/linux/fileattr.h | 2 ++ 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/fs/

Re: distro support for CONFIG_KUNIT: [PATCH 0/3] bitmap: convert self-test to KUnit

2025-03-21 Thread Tamir Duberstein
Hi all, now that the printf and scanf series have been taken via kees' tree[0] and sent in for v6.15-rc1[1], I wonder if we'd like to revisit this discussion. As I understand it, the primary objections to moving bitmap to KUnit were: - Unclear benefits. - Source churn. - Extra dependencies for ben

[PATCH v4 0/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-21 Thread Andrey Albershteyn
This patchset introduced two new syscalls getfsxattrat() and setfsxattrat(). These syscalls are similar to FS_IOC_FSSETXATTR ioctl() except they use *at() semantics. Therefore, there's no need to open the file to get an fd. These syscalls allow userspace to set filesystem inode attributes on speci

[PATCH v4 3/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-21 Thread Andrey Albershteyn
From: Andrey Albershteyn Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode extended attributes/flags. The syscalls take parent directory fd and path to the child together with struct fsxattr. This is an alternative to FS_IOC_FSSETXATTR ioctl with a difference that file don't n

Re: [PATCH v4 10/14] s390: Add support for suppressing warning backtraces

2025-03-21 Thread Alessandro Carminati
Hello Guenter, Sorry for being late to the party. On Fri, Mar 21, 2025 at 6:06 PM Guenter Roeck wrote: > > On 3/13/25 04:43, Alessandro Carminati wrote: > > From: Guenter Roeck > > > > Add name of functions triggering warning backtraces to the __bug_table > > object section to enable support for

Re: [RFC 2/3] mm: introduce GCMA

2025-03-21 Thread Suren Baghdasaryan
On Thu, Mar 20, 2025 at 10:14 PM Christoph Hellwig wrote: > > On Thu, Mar 20, 2025 at 10:39:30AM -0700, Suren Baghdasaryan wrote: > > From: Minchan Kim > > > > This patch introduces GCMA (Guaranteed Contiguous Memory Allocator) > > cleacache backend which reserves some amount of memory at the boo

Re: [RFC 1/3] mm: implement cleancache

2025-03-21 Thread Suren Baghdasaryan
On Thu, Mar 20, 2025 at 10:14 PM Christoph Hellwig wrote: > > On Thu, Mar 20, 2025 at 10:39:29AM -0700, Suren Baghdasaryan wrote: > > Cleancache can be thought of as a page-granularity victim cache for clean > > Please implement your semantics directly instea of with a single user > abstraction.

Re: [linux-next-20250320][btrfs] Kernel OOPs while running btrfs/108

2025-03-21 Thread Ritesh Harjani (IBM)
+linux-btrfs Venkat Rao Bagalkote writes: > Greetings!!! > > > I am observing Kernel oops while running brtfs/108 TC on IBM Power System. > > Repo: Linux-Next (next-20250320) Looks like this next tag had many btrfs related changes - https://web.git.kernel.org/pub/scm/linux/kernel/git/next/lin

Re: [PATCH v4 10/14] s390: Add support for suppressing warning backtraces

2025-03-21 Thread Arnd Bergmann
On Fri, Mar 21, 2025, at 18:05, Guenter Roeck wrote: > On 3/13/25 04:43, Alessandro Carminati wrote: > > gcc 10.3.0 and later do not have this problem. I also tried s390 builds > with gcc 9.4 > and 9.5 but they both crash for unrelated reasons. > > If this is a concern, the best idea I have is to

Re: [PATCH v4 10/14] s390: Add support for suppressing warning backtraces

2025-03-21 Thread Guenter Roeck
On 3/13/25 04:43, Alessandro Carminati wrote: From: Guenter Roeck Add name of functions triggering warning backtraces to the __bug_table object section to enable support for suppressing WARNING backtraces. To limit image size impact, the pointer to the function name is only added to the __bug_

Re: [RFC 3/3] mm: integrate GCMA with CMA using dt-bindings

2025-03-21 Thread Suren Baghdasaryan
On Fri, Mar 21, 2025 at 7:06 AM Conor Dooley wrote: > > On Thu, Mar 20, 2025 at 10:39:31AM -0700, Suren Baghdasaryan wrote: > > This patch introduces a new "guarantee" property for shared-dma-pool. > > With this property, admin can create specific memory pool as > > GCMA-based CMA if they care abo

Re: Using Restricted DMA for virtio-pci

2025-03-21 Thread David Woodhouse
On Fri, 2025-03-21 at 14:32 -0400, Michael S. Tsirkin wrote: > On Fri, Mar 21, 2025 at 03:38:10PM +, David Woodhouse wrote: > > On Tue, 2021-02-09 at 14:21 +0800, Claire Chang wrote: > > > This series implements mitigations for lack of DMA access control on > > > systems without an IOMMU, which

Re: [linux-next-20250320][btrfs] Kernel OOPs while running btrfs/108

2025-03-21 Thread Qu Wenruo
在 2025/3/22 02:26, Ritesh Harjani (IBM) 写道: +linux-btrfs Venkat Rao Bagalkote writes: Greetings!!! I am observing Kernel oops while running brtfs/108 TC on IBM Power System. Repo: Linux-Next (next-20250320) Looks like this next tag had many btrfs related changes - https://web.git.ker

Re: [PATCH] vfio: pci: Advertise INTx only if LINE is connected

2025-03-21 Thread Alex Williamson
On Thu, 20 Mar 2025 23:24:49 +0530 Shivaprasad G Bhat wrote: > On 3/18/25 11:28 PM, Alex Williamson wrote: > > On Tue, 18 Mar 2025 17:29:21 + > > Shivaprasad G Bhat wrote: > > > >> On POWER systems, when the device is behind the io expander, > >> not all PCI slots would have the PCI_INTERR

Re: [linux-next-20250320][btrfs] Kernel OOPs while running btrfs/108

2025-03-21 Thread Venkat Rao Bagalkote
On 21/03/25 3:50 pm, Venkat Rao Bagalkote wrote: Greetings!!! I am observing Kernel oops while running brtfs/108 TC on IBM Power System. Repo: Linux-Next (next-20250320) Additional Info: BTRFS tool: btrfs-progs v6.12 BTRFS tool repo: https://git.kernel.org/pub/scm/linux/kernel/git/kd

Re: Using Restricted DMA for virtio-pci

2025-03-21 Thread Michael S. Tsirkin
On Fri, Mar 21, 2025 at 03:38:10PM +, David Woodhouse wrote: > On Tue, 2021-02-09 at 14:21 +0800, Claire Chang wrote: > > This series implements mitigations for lack of DMA access control on > > systems without an IOMMU, which could result in the DMA accessing the > > system memory at unexpecte

Re: distro support for CONFIG_KUNIT: [PATCH 0/3] bitmap: convert self-test to KUnit

2025-03-21 Thread Yury Norov
On Fri, Mar 21, 2025 at 12:53:36PM -0400, Tamir Duberstein wrote: > Hi all, now that the printf and scanf series have been taken via kees' > tree[0] and sent in for v6.15-rc1[1], I wonder if we'd like to revisit > this discussion. > > As I understand it, the primary objections to moving bitmap to