Re: [PATCH 1/2] powerpc/vpa_dtl: Add interface to expose vpa dtl counters via perf

2025-01-05 Thread Athira Rajeev
> On 16 Dec 2024, at 12:45 PM, Kajol Jain wrote: > > The pseries Shared Processor Logical Partition(SPLPAR) machines > can retrieve a log of dispatch and preempt events from the > hypervisor using data from Disptach Trace Log(DTL) buffer. > With this information, user can retrieve when and why

Re: [PATCH v4 19/25] proc/task_mmu: Ignore ZONE_DEVICE pages

2025-01-05 Thread Alistair Popple
On Fri, Dec 20, 2024 at 07:32:52PM +0100, David Hildenbrand wrote: > On 19.12.24 00:11, Alistair Popple wrote: > > On Tue, Dec 17, 2024 at 11:31:25PM +0100, David Hildenbrand wrote: > > > On 17.12.24 06:13, Alistair Popple wrote: > > > > The procfs mmu files such as smaps currently ignore device da

Re: [PATCH v4 15/25] huge_memory: Add vmf_insert_folio_pud()

2025-01-05 Thread Alistair Popple
On Fri, Dec 20, 2024 at 07:52:43PM +0100, David Hildenbrand wrote: > On 17.12.24 06:12, Alistair Popple wrote: > > Currently DAX folio/page reference counts are managed differently to > > normal pages. To allow these to be managed the same as normal pages > > introduce vmf_insert_folio_pud. This wi

Re: [PATCH v2 0/5] elf: Define note name macros

2025-01-05 Thread Baoquan He
On 01/04/25 at 11:38pm, Akihiko Odaki wrote: > elf.h had a comment saying: > > Notes used in ET_CORE. Architectures export some of the arch register > > sets using the corresponding note types via the PTRACE_GETREGSET and > > PTRACE_SETREGSET requests. > > The note name for these types is "LINUX",

Re: [PATCH v2 1/5] elf: Define note name macros

2025-01-05 Thread Baoquan He
On 01/06/25 at 02:07pm, Akihiko Odaki wrote: > On 2025/01/06 11:21, Baoquan He wrote: > > On 01/04/25 at 11:38pm, Akihiko Odaki wrote: > > > elf.h had a comment saying: > > > > Notes used in ET_CORE. Architectures export some of the arch register > > > > sets using the corresponding note types via

[PATCH v3 1/1] powerpc: Enable dynamic preemption

2025-01-05 Thread Shrikanth Hegde
Once the lazy preemption is supported, it would be desirable to change the preemption models at runtime. So add support for dynamic preemption using DYNAMIC_KEY. In irq-exit to kernel path, use preempt_model_preemptible for decision. Other way would be using static key based decision. Keeping it s

[PATCH v3 0/1] powerpc: Enable dynamic preemption

2025-01-05 Thread Shrikanth Hegde
Now that preempt=lazy patches[1] are in powerpc-next tree, sending out the patch to support dynamic preemption based on DYNAMIC_KEY. base: powerpc-next Once the arch supports static inline calls, it would be needed to evaluate to see if that gives better performance. v2->v3: - fixed a build e

Re: [PATCH v2 1/5] elf: Define note name macros

2025-01-05 Thread Akihiko Odaki
On 2025/01/06 11:21, Baoquan He wrote: On 01/04/25 at 11:38pm, Akihiko Odaki wrote: elf.h had a comment saying: Notes used in ET_CORE. Architectures export some of the arch register sets using the corresponding note types via the PTRACE_GETREGSET and PTRACE_SETREGSET requests. The note name for

Re: [PATCH v3 15/17] mm: pgtable: remove tlb_remove_page_ptdesc()

2025-01-05 Thread Qi Zheng
On 2025/1/3 19:14, Peter Zijlstra wrote: On Sat, Dec 28, 2024 at 11:26:22AM +0200, Mike Rapoport wrote: On Mon, Dec 23, 2024 at 05:41:01PM +0800, Qi Zheng wrote: Here we are explicitly dealing with struct page, and the following logic semms strange: tlb_remove_page_ptdesc((tlb), (page_ptdes

Re: [PATCH v4 10/15] riscv: pgtable: move pagetable_dtor() to __tlb_remove_table()

2025-01-05 Thread Qi Zheng
Hi Kevin, On 2025/1/3 21:27, Kevin Brodsky wrote: On 03/01/2025 10:35, Qi Zheng wrote: On 2025/1/3 17:13, Qi Zheng wrote: On 2025/1/3 16:02, Kevin Brodsky wrote: On 03/01/2025 04:48, Qi Zheng wrote: [...] In __tlb_batch_free_encoded_pages(), we can indeed detect PageTable() and call pagetab

RE: [PATCH net-next 01/13] net: enetc: add initial netc-lib driver to support NTMP

2025-01-05 Thread Wei Fang
> > +#define NTMP_FILL_CRD(crd, tblv, qa, ua) \ > > +({ \ > > + typeof(crd) _crd = (crd); \ > > + (_crd)->update_act = cpu_to_le16(ua); \ > > + (_crd)->tblv_qact = NTMP_TBLV_QACT(tblv, qa); \ > > +}) > > + > > +#define NTMP_FILL_CRD_EID(req, tblv, qa, ua, eid) \ > > +({ \ > > + typeof(req)

Re: [PATCH v2 1/5] elf: Define note name macros

2025-01-05 Thread Baoquan He
On 01/04/25 at 11:38pm, Akihiko Odaki wrote: > elf.h had a comment saying: > > Notes used in ET_CORE. Architectures export some of the arch register > > sets using the corresponding note types via the PTRACE_GETREGSET and > > PTRACE_SETREGSET requests. > > The note name for these types is "LINUX",

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

2025-01-05 Thread Wei Fang
> Subject: Re: [PATCH net-next 05/13] net: enetc: add debugfs interface to dump > MAC filter > > On Fri, Jan 03, 2025 at 02:06:01PM +0800, Wei Fang wrote: > > 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

Re: [PATCH v4 12/25] mm/memory: Enhance insert_page_into_pte_locked() to create writable mappings

2025-01-05 Thread Alistair Popple
On Fri, Dec 20, 2024 at 08:06:48PM +0100, David Hildenbrand wrote: > On 20.12.24 20:01, David Hildenbrand wrote: > > On 17.12.24 06:12, Alistair Popple wrote: > > > In preparation for using insert_page() for DAX, enhance > > > insert_page_into_pte_locked() to handle establishing writable > > > mapp

Re: [PATCH 14/19] powerpc: mpc83xx: Switch to of_platform_populate

2025-01-05 Thread Rob Herring
On Sat, Jan 4, 2025 at 8:50 AM J. Neuschäfer wrote: > > On Thu, Jan 02, 2025 at 12:51:47PM -0600, Rob Herring wrote: > > On Thu, Jan 2, 2025 at 12:32 PM J. Neuschäfer via B4 Relay > > wrote: > > > > > > From: "J. Neuschäfer" > > > > > > Quoting from drivers/of/platform.c: > > > > > > > of_platfo

[PATCH v3] crypto: powerpc/p10-aes-gcm - simplify handling of linear associated data

2025-01-05 Thread Eric Biggers
From: Eric Biggers p10_aes_gcm_crypt() is abusing the scatter_walk API to get the virtual address for the first source scatterlist element. But this code is only built for PPC64 which is a !HIGHMEM platform, and it can read past a page boundary from the address returned by scatterwalk_map() whic