[PATCH v4 net-next 05/14] net: enetc: add debugfs interface to dump MAC filter

2025-03-11 Thread Wei Fang
ENETC's MAC filter consists of hash MAC filter and exact MAC filter. Hash MAC filter is a 64-entry hash table consisting of two 32-bit registers. Exact MAC filter is implemented by configuring MAC address filter table through command BD ring. The table is stored in ENETC's internal memory and needs

[PATCH v4 net-next 12/14] net: enetc: add VLAN filtering support for i.MX95 ENETC PF

2025-03-11 Thread Wei Fang
Add VLAN hash filter support for i.MX95 ENETC PF. If VLAN filtering is disabled, then VLAN promiscuous mode will be enabled, which means that PF qualifies for reception of all VLAN tags. Signed-off-by: Wei Fang --- .../net/ethernet/freescale/enetc/enetc4_hw.h | 4 .../net/ethernet/freesca

[PATCH v4 net-next 04/14] net: enetc: add MAC filter for i.MX95 ENETC PF

2025-03-11 Thread Wei Fang
The i.MX95 ENETC supports both MAC hash filter and MAC exact filter. MAC hash filter is implenented through a 64-bits hash table to match against the hashed addresses, PF and VFs each have two MAC hash tables, one is for unicast and the other one is for multicast. But MAC exact filter is shared bet

Re: [PATCH v7 1/7] powerpc/pseries: Define common functions for RTAS sequence calls

2025-03-11 Thread kernel test robot
kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/20250309213916.762116-2-haren%40linux.ibm.com patch subject: [PATCH v7 1/7] powerpc/pseries: Define common functions for RTAS sequence calls config: powerpc64-randconfig-r072-20250311 (https://downl

[PATCH v12 1/4] cpu/SMT: Provide a default topology_is_primary_thread()

2025-03-11 Thread Yicong Yang
From: Yicong Yang Currently if architectures want to support HOTPLUG_SMT they need to provide a topology_is_primary_thread() telling the framework which thread in the SMT cannot offline. However arm64 doesn't have a restriction on which thread in the SMT cannot offline, a simplest choice is that

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Madhavan Srinivasan
On 3/9/25 6:08 PM, Venkat Rao Bagalkote wrote: > Greetings!!, > > I see linux-next-20250307 fails to build on IBM Power9 and Power10 servers. > > > Errors: > > In file included from ^[[01m^[[K^[[m^[[K: > ^[[01m^[[K./usr/include/cxl/features.h:11:10:^[[m^[[K ^[[01;31m^[[Kfatal > error: ^[[m^

Re: [PATCH v7 3/7] powerpc/pseries: Add papr-indices char driver for ibm,get-indices

2025-03-11 Thread kernel test robot
kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/20250309213916.762116-4-haren%40linux.ibm.com patch subject: [PATCH v7 3/7] powerpc/pseries: Add papr-indices char driver for ibm,get-indices config: powerpc64-randconfig-r072-20250311 (https://d

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Madhavan Srinivasan
On 3/11/25 2:17 PM, Madhavan Srinivasan wrote: > > > On 3/9/25 6:08 PM, Venkat Rao Bagalkote wrote: >> Greetings!!, >> >> I see linux-next-20250307 fails to build on IBM Power9 and Power10 servers. >> >> >> Errors: >> >> In file included from ^[[01m^[[K^[[m^[[K: >> ^[[01m^[[K./usr/include/cxl/

[PATCH v4 net-next 13/14] net: enetc: add loopback support for i.MX95 ENETC PF

2025-03-11 Thread Wei Fang
Add internal loopback support for i.MX95 ENETC PF, the default loopback mode is MAC level loopback, the MAC Tx data is looped back onto the Rx. The MAC interface runs at a fixed 1:8 ratio of NETC clock in MAC-level loopback mode, with no dependency on Tx clock. Signed-off-by: Wei Fang --- .../ne

[PATCH v4 net-next 08/14] net: enetc: add RSS support for i.MX95 ENETC PF

2025-03-11 Thread Wei Fang
Compared with LS1028A, there are two main differences: first, i.MX95 ENETC uses NTMP 2.0 to manage the RSS table, and second, the offset of the RSS Key registers is different. Some modifications have been made in the previous patches based on these differences to ensure that the relevant interfaces

[PATCH 5.4 059/328] module: Extend the preempt disabled section in dereference_symbol_descriptor().

2025-03-11 Thread Greg Kroah-Hartman
5.4-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior [ Upstream commit a145c848d69f9c6f32008d8319edaa133360dd74 ] dereference_symbol_descriptor() needs to obtain the module pointer belonging to pointer in order to resolv

Re: [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917

2025-03-11 Thread Catalin Marinas
Hi Madhavan, On Tue, Mar 11, 2025 at 02:11:29PM +0530, Madhavan Srinivasan wrote: > Build break was reported in the powerpc mailing list for next-20250218 with > below errors > > make[1]: Nothing to be done for 'all'. > BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; >

[PATCH v12 3/4] arm64: topology: Support SMT control on ACPI based system

2025-03-11 Thread Yicong Yang
From: Yicong Yang For ACPI we'll build the topology from PPTT and we cannot directly get the SMT number of each core. Instead using a temporary xarray to record the heterogeneous information (from ACPI_PPTT_ACPI_IDENTICAL) and SMT information of the first core in its heterogeneous CPU cluster whe

[PATCH v12 2/4] arch_topology: Support SMT control for OF based system

2025-03-11 Thread Yicong Yang
From: Yicong Yang On building the topology from the devicetree, we've already gotten the SMT thread number of each core. Update the largest SMT thread number and enable the SMT control by the end of topology parsing. The framework's SMT control provides two interface to the users [1] through /sy

[PATCH v12 0/4] Support SMT control on arm64

2025-03-11 Thread Yicong Yang
From: Yicong Yang The core CPU control framework supports runtime SMT control which is not yet supported on arm64. Besides the general vulnerabilities concerns we want this runtime control on our arm64 server for: - better single CPU performance in some cases - saving overall power consumption

[PATCH v12 4/4] arm64: Kconfig: Enable HOTPLUG_SMT

2025-03-11 Thread Yicong Yang
From: Yicong Yang Enable HOTPLUG_SMT for SMT control. Reviewed-by: Jonathan Cameron Reviewed-by: Pierre Gondois Reviewed-by: Dietmar Eggemann Signed-off-by: Yicong Yang --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 9

Re: [PATCH 05/13] MIPS: make setup_zero_pages() use memblock

2025-03-11 Thread Mike Rapoport
On Thu, Mar 06, 2025 at 08:51:15PM +0200, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" > > Allocating the zero pages from memblock is simpler because the memory is > already reserved. > > This will also help with pulling out memblock_free_all() to the generic > code and reducing code

Re: [PATCH v7 7/7] powerpc/pseries: Add a char driver for physical-attestation RTAS

2025-03-11 Thread kernel test robot
kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next patch link: https://lore.kernel.org/r/20250309213916.762116-8-haren%40linux.ibm.com patch subject: [PATCH v7 7/7] powerpc/pseries: Add a char driver for physical-attestation RTAS config: powerpc64-randconfig-r072-20250311 (https://downl

[PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917

2025-03-11 Thread Madhavan Srinivasan
Build break was reported in the powerpc mailing list for next-20250218 with below errors make[1]: Nothing to be done for 'all'. BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; mkdir -p $BUILD_TARGET; make OUTPUT=$BUILD_TARGET -k -C mm all CC pkey_exec_prot In fil

Re: [PATCH v4 net-next 02/14] net: enetc: add command BD ring support for i.MX95 ENETC

2025-03-11 Thread Michal Kubiak
On Tue, Mar 11, 2025 at 01:38:18PM +0800, Wei Fang wrote: > The command BD ring is used to configure functionality where the > underlying resources may be shared between different entities or being > too large to configure using direct registers (such as lookup tables). > > Because the command BD

Re: [PATCH v4 6/6] powerpc/kvm-hv-pmu: Add perf-events for Hostwide counters

2025-03-11 Thread Vaibhav Jain
Athira Rajeev writes: >> On 24 Feb 2025, at 6:45 PM, Vaibhav Jain wrote: >> >> Update 'kvm-hv-pmu.c' to add five new perf-events mapped to the five >> Hostwide counters. Since these newly introduced perf events are at system >> wide scope and can be read from any L1-Lpar CPU, 'kvmppc_pmu' scope

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Venkat Rao Bagalkote
Git Bisect is poinitng to commit: 3e081aa132bbefe31ac95dd6dfc8d787ffa83d0b as first bad commit. Git bisect log: git bisect start # status: waiting for both good and bad commits # bad: [0a2f889128969dab41861b6e40111aa03dc57014] Add linux-next specific files for 20250307 git bisect bad 0a2f889

[PATCH v4 net-next 09/14] net: enetc: enable RSS feature by default

2025-03-11 Thread Wei Fang
Receive side scaling (RSS) is a network driver technology that enables the efficient distribution of network receive processing across multiple CPUs in multiprocessor systems. Therefore, it is better to enable RSS by default so that the CPU load can be balanced and network performance can be improv

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Nicolas Frattaroli
On Tuesday, 11 March 2025 05:23:23 Central European Standard Time Venkat Rao Bagalkote wrote: > Git Bisect is poinitng to commit: > 3e081aa132bbefe31ac95dd6dfc8d787ffa83d0b as first bad commit. That does not seem like a correct bisection to me. The build error isn't even in the same translation

Re: [PATCH v4 6/6] powerpc/kvm-hv-pmu: Add perf-events for Hostwide counters

2025-03-11 Thread Athira Rajeev
> On 11 Mar 2025, at 3:02 PM, Vaibhav Jain wrote: > > Athira Rajeev writes: > >>> On 24 Feb 2025, at 6:45 PM, Vaibhav Jain wrote: >>> >>> Update 'kvm-hv-pmu.c' to add five new perf-events mapped to the five >>> Hostwide counters. Since these newly introduced perf events are at system >>> w

[PATCH 2/2] powerpc, bpf: Inline bpf_get_smp_processor_id()

2025-03-11 Thread Saket Kumar Bhaskar
Inline the calls to bpf_get_smp_processor_id() in the powerpc bpf jit. powerpc saves the Logical processor number (paca_index) in paca. Here is how the powerpc JITed assembly changes after this commit: Before: cpu = bpf_get_smp_processor_id(); addis 12, 2, -517 addi 12, 12, -29456 mtctr 12 bct

[PATCH 1/2] powerpc, bpf: Support internal-only MOV instruction to resolve per-CPU addrs

2025-03-11 Thread Saket Kumar Bhaskar
With the introduction of commit 7bdbf7446305 ("bpf: add special internal-only MOV instruction to resolve per-CPU addrs"), a new BPF instruction BPF_MOV64_PERCPU_REG has been added to resolve absolute addresses of per-CPU data from their per-CPU offsets. This update requires enabling support for thi

[PATCH 0/2] bpf: Inline helper in powerpc JIT

2025-03-11 Thread Saket Kumar Bhaskar
This series adds the support of internal only per-CPU instructions and inlines the bpf_get_smp_processor_id() helper call for powerpc BPF JIT. Saket Kumar Bhaskar (2): powerpc, bpf: Support internal-only MOV instruction to resolve per-CPU addrs powerpc, bpf: Inline bpf_get_smp_processor_i

[PATCH v7 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-03-11 Thread Haren Myneni
Several APIs such as rtas_get_indices(), rtas_get_dynamic_sensor(), rtas_set_dynamic_indicator(), rtas_platform_dump() and rtas_physical_attestation() provided by librtas library are implemented in user space using rtas syscall in combination with writable mappings of /dev/mem. But this implementa

Re: [PATCH v5 1/3] printf: convert self-test to KUnit

2025-03-11 Thread Tamir Duberstein
On Thu, Mar 6, 2025 at 7:25 AM Petr Mladek wrote: > > On Fri 2025-02-21 15:34:30, Tamir Duberstein wrote: > > Convert the printf() self-test to a KUnit test. > > > > In the interest of keeping the patch reasonably-sized this doesn't > > refactor the tests into proper parameterized tests - it's all

Re: [PATCH v4 4/6] kvm powerpc/book3s-apiv2: Introduce kvm-hv specific PMU

2025-03-11 Thread Athira Rajeev
> On 10 Mar 2025, at 12:42 PM, Vaibhav Jain wrote: > > Athira Rajeev writes: > >>> On 24 Feb 2025, at 6:45 PM, Vaibhav Jain wrote: >>> >>> Introduce a new PMU named 'kvm-hv' inside a new module named 'kvm-hv-pmu' >>> to report Book3s kvm-hv specific performance counters. This will expose >

Re: [PATCH v3 1/2] book3s64/radix: Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n

2025-03-11 Thread Christophe Leroy
Le 10/03/2025 à 13:44, Donet Tom a écrit : From: "Ritesh Harjani (IBM)" Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n I don't understand your patch. As far as I can see, CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP is selected when CONFIG_PPC_RADIX_MMU is selected, and radix_p

Re: [PATCH v12 0/4] Support SMT control on arm64

2025-03-11 Thread Sudeep Holla
On Tue, Mar 11, 2025 at 03:51:39PM +0800, Yicong Yang wrote: > From: Yicong Yang > > The core CPU control framework supports runtime SMT control which > is not yet supported on arm64. Besides the general vulnerabilities > concerns we want this runtime control on our arm64 server for: > > - bette

Re: [PATCH v12 1/4] cpu/SMT: Provide a default topology_is_primary_thread()

2025-03-11 Thread Sudeep Holla
On Tue, Mar 11, 2025 at 03:51:40PM +0800, Yicong Yang wrote: > From: Yicong Yang > > Currently if architectures want to support HOTPLUG_SMT they need to > provide a topology_is_primary_thread() telling the framework which > thread in the SMT cannot offline. However arm64 doesn't have a > restrict

Re: [PATCH v12 4/4] arm64: Kconfig: Enable HOTPLUG_SMT

2025-03-11 Thread Sudeep Holla
On Tue, Mar 11, 2025 at 03:51:43PM +0800, Yicong Yang wrote: > From: Yicong Yang > > Enable HOTPLUG_SMT for SMT control. > Reviewed-by: Sudeep Holla -- Regards, Sudeep

Re: [PATCH v12 2/4] arch_topology: Support SMT control for OF based system

2025-03-11 Thread Sudeep Holla
On Tue, Mar 11, 2025 at 03:51:41PM +0800, Yicong Yang wrote: > From: Yicong Yang > > On building the topology from the devicetree, we've already gotten the > SMT thread number of each core. Update the largest SMT thread number > and enable the SMT control by the end of topology parsing. > > The

Re: [PATCH v12 3/4] arm64: topology: Support SMT control on ACPI based system

2025-03-11 Thread Sudeep Holla
On Tue, Mar 11, 2025 at 03:51:42PM +0800, Yicong Yang wrote: > From: Yicong Yang > > For ACPI we'll build the topology from PPTT and we cannot directly > get the SMT number of each core. Instead using a temporary xarray > to record the heterogeneous information (from ACPI_PPTT_ACPI_IDENTICAL) > a

[PATCH 5.10 093/462] module: Extend the preempt disabled section in dereference_symbol_descriptor().

2025-03-11 Thread Greg Kroah-Hartman
5.10-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior [ Upstream commit a145c848d69f9c6f32008d8319edaa133360dd74 ] dereference_symbol_descriptor() needs to obtain the module pointer belonging to pointer in order to resol

[RFC 1/2] mm/ptdump: Split note_page() into level specific callbacks

2025-03-11 Thread Anshuman Khandual
Last argument passed down in note_page() is u64 assuming pxd_val() returned value (all page table levels) is 64 bit - which might not be the case going ahead when D128 page tables is enabled on arm64 platform. Besides pxd_val() is very platform specific and its type should not be assumed in generic

Re: [PATCH v4 net-next 01/14] net: enetc: add initial netc-lib driver to support NTMP

2025-03-11 Thread Michal Kubiak
On Tue, Mar 11, 2025 at 01:38:17PM +0800, Wei Fang wrote: > Some NETC functionality is controlled using control messages sent to the > hardware using BD ring interface with 32B descriptor similar to transmit > BD ring used on ENETC. This BD ring interface is referred to as command > BD ring. It is

Re: [PATCH v3 net-next 04/13] net: enetc: add MAC filter for i.MX95 ENETC PF

2025-03-11 Thread Paolo Abeni
On 3/4/25 8:21 AM, Wei Fang wrote: > +static void enetc_mac_list_del_matched_entries(struct enetc_pf *pf, u16 > si_bit, > +struct enetc_mac_addr *mac, > +int mac_cnt) > +{ > + struct enetc_mac_list_entry *e

Low-lewel details of secondary CPU bringup on mac99?

2025-03-11 Thread Andrew Randrianasulu
Hello, I see this list mostly for Linux kernel patches, but we are trying to get two-processor virtual mac99 machine going in qemu, and sadly it does not work without singlestepping on boot cpu in smp_core99_kick_cpu() https://elixir.bootlin.com/linux/v6.12.17/source/arch/powerpc/platforms/powerm

Re: [PATCH] selftest/powerpc/mm/pkey: fix build-break introduced by commit 00894c3fc917

2025-03-11 Thread Catalin Marinas
On Tue, 11 Mar 2025 14:11:29 +0530, Madhavan Srinivasan wrote: > Build break was reported in the powerpc mailing list for next-20250218 with > below errors > > make[1]: Nothing to be done for 'all'. > BUILD_TARGET=/root/venkat/linux-next/tools/testing/selftests/powerpc/mm; > mkdir -p $BUILD_TARG

Re: [PATCH 1/2] powerpc, bpf: Support internal-only MOV instruction to resolve per-CPU addrs

2025-03-11 Thread Christophe Leroy
Le 11/03/2025 à 17:09, Saket Kumar Bhaskar a écrit : [Vous ne recevez pas souvent de courriers de sk...@linux.ibm.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] With the introduction of commit 7bdbf7446305 ("bpf: add special internal-only MOV ins

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Mark Brown
255893718268e1ab852fb52f70c613d109b99] Add linux-next specific files for 20250311 # good: [97654dc13f139ea726042711a4943f424c5d5b83] Merge branch 'for-linux-next-fixes' of https://gitlab.freedesktop.org/drm/misc/kernel.git # good: [5cd09a324588b4554c9ed89cef34fa502a097d16]

[PATCH 03/13] hexagon: move initialization of init_mm.context init to paging_init()

2025-03-11 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" This will help with pulling out memblock_free_all() to the generic code and reducing code duplication in arch::mem_init(). Signed-off-by: Mike Rapoport (Microsoft) --- arch/hexagon/mm/init.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-)

[PATCH 5.15 153/620] module: Extend the preempt disabled section in dereference_symbol_descriptor().

2025-03-11 Thread Greg Kroah-Hartman
5.15-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior [ Upstream commit a145c848d69f9c6f32008d8319edaa133360dd74 ] dereference_symbol_descriptor() needs to obtain the module pointer belonging to pointer in order to resol

[PATCH v8 6/7] powerpc/pseries: Add papr-platform-dump character driver for dump retrieval

2025-03-11 Thread Haren Myneni
ibm,platform-dump RTAS call in combination with writable mapping /dev/mem is issued to collect platform dump from the hypervisor and may need multiple calls to get the complete dump. The current implementation uses rtas_platform_dump() API provided by librtas library to issue these RTAS calls. But

Re: [linux-next-20250307] Build Failure

2025-03-11 Thread Christophe Leroy
Le 09/03/2025 à 13:38, Venkat Rao Bagalkote a écrit : Greetings!!, I see linux-next-20250307 fails to build on IBM Power9 and Power10 servers. Errors: In file included from ^[[01m^[[K^[[m^[[K: ^[[01m^[[K./usr/include/cxl/features.h:11:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[Kuuid/uui

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Russell King (Oracle)
s can be reproduced with qemu? > > https://lava.sirena.org.uk/scheduler/job/1184953 > > Turns out it's actually producing output on qemu: > > [0.00] Booting Linux on physical CPU 0x0 > [0.00] Linux version 6.14.0-rc6-next-20250311 (tuxmake@tuxmake) > (arm-l

[PATCH] Documentation: ocxl.rst: Update consortium site

2025-03-11 Thread Fritz Koenig
host memory coherently, using virtual addresses. An OpenCAPI --- base-commit: 0b46b049d6eccd947c361018439fcb596e741d7a change-id: 20250311-dead_site-e96834910663 Best regards, -- Fritz Koenig

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Russell King (Oracle)
On Tue, Mar 11, 2025 at 05:51:06PM +, Mark Brown wrote: > On Thu, Mar 06, 2025 at 08:51:20PM +0200, Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > > > high_memory defines upper bound on the directly mapped memory. > > This bound is defined by the beginning of ZONE_HIGHMEM when

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Geert Uytterhoeven
roduced with qemu? > > https://lava.sirena.org.uk/scheduler/job/1184953 > > Turns out it's actually producing output on qemu: > > [0.00] Booting Linux on physical CPU 0x0 > [0.00] Linux version 6.14.0-rc6-next-20250311 (tuxmake@tuxmake) > (arm-linux-gn

Re: [PATCH v8 1/7] powerpc/pseries: Define common functions for RTAS sequence calls

2025-03-11 Thread Mukesh Kumar Chaurasiya
On Tue, Mar 11, 2025 at 03:50:42PM -0700, Haren Myneni wrote: > The RTAS call can be normal where retrieves the data form the > hypervisor once or sequence based RTAS call which has to > issue multiple times until the complete data is obtained. For > some of these sequence RTAS calls, the OS should

Re: PowerPC: Observing Kernel softlockup while running ftrace selftest

2025-03-11 Thread Venkat Rao Bagalkote
On 10/03/25 4:25 pm, Hari Bathini wrote: Venkat, can you confirm if the issue is reproducible disabling CONFIG_PPC_IRQ_SOFT_MASK_DEBUG  ? Hari, This issue is reproducible after diabling CONFIG_PPC_IRQ_SOFT_MASK_DEBUG. # powerpc Debugging # CONFIG_PPC_DISABLE_WERROR=y CONFIG_PRINT_STACK_DEPT

Re: [PATCH v8 1/7] powerpc/pseries: Define common functions for RTAS sequence calls

2025-03-11 Thread Haren Myneni
On Wed, 2025-03-12 at 10:55 +0530, Mukesh Kumar Chaurasiya wrote: > On Tue, Mar 11, 2025 at 03:50:42PM -0700, Haren Myneni wrote: > > The RTAS call can be normal where retrieves the data form the > > hypervisor once or sequence based RTAS call which has to > > issue multiple times until the complet

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Mike Rapoport
On Tue, Mar 11, 2025 at 09:59:32PM +, Russell King (Oracle) wrote: > On Tue, Mar 11, 2025 at 05:51:06PM +, Mark Brown wrote: > > On Thu, Mar 06, 2025 at 08:51:20PM +0200, Mike Rapoport wrote: > > > From: "Mike Rapoport (Microsoft)" > > > > > > high_memory defines upper bound on the direct

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Russell King (Oracle)
On Tue, Mar 11, 2025 at 09:33:29PM +, Mark Brown wrote: > [0.00] Booting Linux on physical CPU 0x0 > [0.00] Linux version 6.14.0-rc6-next-20250311 (tuxmake@tuxmake) > (arm-linux-gnueabihf-gcc (Debian 13.3.0-5) 13.3.0, GNU ld (GNU Binutils for > Debian) 2.

[PATCH v8 1/7] powerpc/pseries: Define common functions for RTAS sequence calls

2025-03-11 Thread Haren Myneni
The RTAS call can be normal where retrieves the data form the hypervisor once or sequence based RTAS call which has to issue multiple times until the complete data is obtained. For some of these sequence RTAS calls, the OS should not interleave calls with different input until the sequence is compl

[PATCH v8 3/7] powerpc/pseries: Add papr-indices char driver for ibm,get-indices

2025-03-11 Thread Haren Myneni
The RTAS call ibm,get-indices is used to obtain indices and location codes for a specified indicator or sensor token. The current implementation uses rtas_get_indices() API provided by librtas library which allocates RMO buffer and issue this RTAS call in the user space. But writable mapping /dev/m

[PATCH v8 4/7] powerpc/pseries: Add ibm,set-dynamic-indicator RTAS call support

2025-03-11 Thread Haren Myneni
The RTAS call ibm,set-dynamic-indicator is used to set the new indicator state identified by a location code. The current implementation uses rtas_set_dynamic_indicator() API provided by librtas library which allocates RMO buffer and issue this RTAS call in the user space. But /dev/mem access by th

[PATCH v8 0/7] Add character devices for indices, platform-dump and physical-attestation RTAS

2025-03-11 Thread Haren Myneni
Several APIs such as rtas_get_indices(), rtas_get_dynamic_sensor(), rtas_set_dynamic_indicator(), rtas_platform_dump() and rtas_physical_attestation() provided by librtas library are implemented in user space using rtas syscall in combination with writable mappings of /dev/mem. But this implementa

[PATCH v8 2/7] powerpc/pseries: Define papr_indices_io_block for papr-indices ioctls

2025-03-11 Thread Haren Myneni
To issue ibm,get-indices, ibm,set-dynamic-indicator and ibm,get-dynamic-sensor-state in the user space, the RMO buffer is allocated for the work area which is restricted under system lockdown. So instead of user space execution, the kernel will provide /dev/papr-indices interface to execute these R

[PATCH v8 7/7] powerpc/pseries: Add a char driver for physical-attestation RTAS

2025-03-11 Thread Haren Myneni
The RTAS call ibm,physical-attestation is used to retrieve information about the trusted boot state of the firmware and hypervisor on the system, and also Trusted Platform Modules (TPM) data if the system is TCG 2.0 compliant. This RTAS interface expects the caller to define different command stru

[PATCH v8 5/7] powerpc/pseries: Add ibm,get-dynamic-sensor-state RTAS call support

2025-03-11 Thread Haren Myneni
The RTAS call ibm,get-dynamic-sensor-state is used to get the sensor state identified by the location code and the sensor token. The librtas library provides an API rtas_get_dynamic_sensor() which uses /dev/mem access for work area allocation but is restricted under system lockdown. This patch pro

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Mike Rapoport
Hi Mark, On Tue, Mar 11, 2025 at 05:51:06PM +, Mark Brown wrote: > On Thu, Mar 06, 2025 at 08:51:20PM +0200, Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > > > high_memory defines upper bound on the directly mapped memory. > > This bound is defined by the beginning of ZONE_HI

Re: [PATCH 10/13] arch, mm: set high_memory in free_area_init()

2025-03-11 Thread Mark Brown
producing output on qemu: [0.00] Booting Linux on physical CPU 0x0 [0.00] Linux version 6.14.0-rc6-next-20250311 (tuxmake@tuxmake) (arm-linux-gnueabihf-gcc (Debian 13.3.0-5) 13.3.0, GNU ld (GNU Binutils for Debian) 2.43.1) #1 SMP @1741691801 [0.00] CPU: ARMv7 Processor [4

Re: [PATCH] Documentation: ocxl.rst: Update consortium site

2025-03-11 Thread Andrew Donnellan
On Tue, 2025-03-11 at 11:24 -0700, Fritz Koenig wrote: > Old site no longer associated with consortium. Thanks for catching this! > > Signed-off-by: Fritz Koenig > --- > After mergers the OpenCAPI Consortium does not seem to exist. > The github page is the only seemingly relevant site, but it >

Re: [PATCH v4] dt-bindings: dma: Convert fsl,elo*-dma to YAML

2025-03-11 Thread Rob Herring (Arm)
On Sat, 08 Mar 2025 19:33:39 +0100, J. Neuschäfer wrote: > The devicetree bindings for Freescale DMA engines have so far existed as > a text file. This patch converts them to YAML, and specifies all the > compatible strings currently in use in arch/powerpc/boot/dts. > > Signed-off-by: J. Neuschä

[PATCH v3 2/2] book3s64/radix : Align section vmemmap start address to PAGE_SIZE

2025-03-11 Thread Donet Tom
A vmemmap altmap is a device-provided region used to provide backing storage for struct pages. For each namespace, the altmap should belong to that same namespace. If the namespaces are created unaligned, there is a chance that the section vmemmap start address could also be unaligned. If the secti

Re: [PATCH 2/2] powerpc, bpf: Inline bpf_get_smp_processor_id()

2025-03-11 Thread Christophe Leroy
Le 11/03/2025 à 17:09, Saket Kumar Bhaskar a écrit : [Vous ne recevez pas souvent de courriers de sk...@linux.ibm.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] Inline the calls to bpf_get_smp_processor_id() in the powerpc bpf jit. powerpc saves