Re: [PATCH v2 1/1] arch/fault: don't print logs for pte marker poison errors

2024-05-22 Thread Oscar Salvador
On Wed, May 22, 2024 at 05:46:09PM -0400, Peter Xu wrote: > > Now, ProcessB still has the page mapped, so upon re-accessing it, > > it will trigger a new MCE event. memory-failure code will see that this > > The question is why accessing that hwpoison entry from ProcB triggers an > MCE. Logically

Re: [PATCH 2/2] treewide: Use sysfs_bin_attr_simple_read() helper

2024-05-22 Thread Guenter Roeck
Hi, On Sat, Apr 06, 2024 at 03:52:02PM +0200, Lukas Wunner wrote: > Deduplicate ->read() callbacks of bin_attributes which are backed by a > simple buffer in memory: > > Use the newly introduced sysfs_bin_attr_simple_read() helper instead, > either by referencing it directly or by declaring such

Re: [PATCH v3] kprobe/ftrace: bail out if ftrace was killed

2024-05-22 Thread patchwork-bot+linux-riscv
Hello: This patch was applied to riscv/linux.git (fixes) by Masami Hiramatsu (Google) : On Wed, 1 May 2024 09:29:56 -0700 you wrote: > If an error happens in ftrace, ftrace_kill() will prevent disarming > kprobes. Eventually, the ftrace_ops associated with the kprobes will be > freed, yet the kp

Re: [PATCH v2] mm/mm_init: use node's number of cpus in deferred_page_init_max_threads

2024-05-22 Thread Andrew Morton
On Wed, 22 May 2024 16:38:01 -0400 Eric Chanudet wrote: > x86_64 is already using the node's cpu as maximum threads. Make that the > default for all archs setting DEFERRED_STRUCT_PAGE_INIT. > > This returns to the behavior prior making the function arch-specific > with commit ecd096506922 ("mm:

Re: [PATCH v2 1/1] arch/fault: don't print logs for pte marker poison errors

2024-05-22 Thread Peter Xu
On Wed, May 15, 2024 at 10:18:31PM +0200, Borislav Petkov wrote: > So if I were to design this, I'd do it this way: > > 0. guest gets hw poison injected > > 1. it runs memory_failure() and it kills the processes using the page. > > 2. page is marked poisoned on the host so no other guest gets it

Re: [PATCH v2 1/1] arch/fault: don't print logs for pte marker poison errors

2024-05-22 Thread Peter Xu
On Wed, May 15, 2024 at 12:21:51PM +0200, Oscar Salvador wrote: > On Tue, May 14, 2024 at 03:34:24PM -0600, Peter Xu wrote: > > The question is whether we can't. > > > > Now we reserved a swp entry just for hwpoison and it makes sense only > > because we cached the poisoned pfn inside. My long st

Re: [PATCH v2 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files

2024-05-22 Thread Borislav Petkov
On Wed, May 22, 2024 at 06:42:55PM +0530, Balasubrmanian, Vignesh wrote: > > > +enum custom_feature { > > > + FEATURE_XSAVE_FP = 0, > > > + FEATURE_XSAVE_SSE = 1, > > > + FEATURE_XSAVE_YMM = 2, > > > + FEATURE_XSAVE_BNDREGS = 3, > > > + FEATURE_XSAVE_BNDCSR = 4, > > > + FEAT

Re: [PATCH v2 1/6] KVM: Add a flag to track if a loaded vCPU is scheduled out

2024-05-22 Thread Oliver Upton
On Tue, May 21, 2024 at 06:40:08PM -0700, Sean Christopherson wrote: > Add a kvm_vcpu.scheduled_out flag to track if a vCPU is in the process of > being scheduled out (vCPU put path), or if the vCPU is being reloaded > after being scheduled out (vCPU load path). In the short term, this will > allo

Re: [PATCH V2 5/9] tools/perf: Update parameters for reg extract functions to use raw instruction on powerpc

2024-05-22 Thread Athira Rajeev
> On 7 May 2024, at 3:18 PM, Christophe Leroy > wrote: > > > > Le 06/05/2024 à 14:19, Athira Rajeev a écrit : >> Use the raw instruction code and macros to identify memory instructions, >> extract register fields and also offset. The implementation addresses >> the D-form, X-form, DS-form i

Re: [PATCH V2 4/9] tools/perf: Add support to capture and parse raw instruction in objdump

2024-05-22 Thread Athira Rajeev
> On 10 May 2024, at 7:56 PM, Arnaldo Carvalho de Melo wrote: > > On Thu, May 09, 2024 at 10:56:23PM +0530, Athira Rajeev wrote: >> >> >>> On 7 May 2024, at 3:05 PM, Christophe Leroy >>> wrote: >>> >>> >>> >>> Le 06/05/2024 à 14:19, Athira Rajeev a écrit : Add support to capture an

Re: [PATCH v2 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files

2024-05-22 Thread Balasubrmanian, Vignesh
On 5/8/2024 6:32 PM, Thomas Gleixner wrote: Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding. On Tue, May 07 2024 at 15:23, Vignesh Balasubramanian wrote: +struct xfeat_component { + u32 xfeat_type; +

Re: [RFC PATCH v2 18/20] powerpc/64s: Use contiguous PMD/PUD instead of HUGEPD

2024-05-22 Thread Jason Gunthorpe
On Wed, May 22, 2024 at 11:13:53AM +1000, Nicholas Piggin wrote: > From the mm/ side of things, hugetlb page tables are always walked via > the huge vma which knows the page size and could align address... I > guess except for fast gup? Which should be read-only. So okay you do > need to replicate

Re: [RFC PATCH v2 06/20] powerpc/8xx: Fix size given to set_huge_pte_at()

2024-05-22 Thread Christophe Leroy
+Peter Z. who added that commit. Le 22/05/2024 à 10:32, Christophe Leroy a écrit : > > > Le 21/05/2024 à 11:26, Oscar Salvador a écrit : >> On Tue, May 21, 2024 at 10:48:21AM +1000, Michael Ellerman wrote: >>> Yeah I can. Does it actually cause a bug at runtime (I assume so)? >> >> No, currently

Re: [PATCH 2/5] powerpc64/bpf: jit support for unconditional byte swap

2024-05-22 Thread Hari Bathini
On 17/05/24 1:26 pm, Artem Savkov wrote: Add jit support for unconditional byte swap. Tested using BSWAP tests from test_bpf module. Signed-off-by: Artem Savkov --- arch/powerpc/net/bpf_jit_comp64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/net/bpf

Re: [PATCH v5 44/68] selftests/powerpc: Drop define _GNU_SOURCE

2024-05-22 Thread Michael Ellerman
Edward Liaw writes: > _GNU_SOURCE is provided by lib.mk, so it should be dropped to prevent > redefinition warnings. Most of these tests build with -Werror, so the duplicate define is actually a hard error. Can you put this patch earlier in the series at least? cheers > Signed-off-by: Edward Li

Re: [RFC PATCH v2 03/20] mm: Provide pmd to pte_leaf_size()

2024-05-22 Thread Christophe Leroy
Le 21/05/2024 à 11:39, Oscar Salvador a écrit : > On Fri, May 17, 2024 at 08:59:57PM +0200, Christophe Leroy wrote: >> On powerpc 8xx, when a page is 8M size, the information is in the PMD >> entry. So provide it to pte_leaf_size(). >> >> Signed-off-by: Christophe Leroy > > Overall looks good t

Re: [RFC PATCH v2 18/20] powerpc/64s: Use contiguous PMD/PUD instead of HUGEPD

2024-05-22 Thread Christophe Leroy
Le 22/05/2024 à 03:13, Nicholas Piggin a écrit : > On Tue May 21, 2024 at 2:43 AM AEST, Christophe Leroy wrote: >> >> >> Le 20/05/2024 à 14:54, Nicholas Piggin a écrit : >>> On Sat May 18, 2024 at 5:00 AM AEST, Christophe Leroy wrote: On book3s/64, the only user of hugepd is hash in 4k mode.

Re: [RFC PATCH 0/8] Reimplement huge pages without hugepd on powerpc 8xx

2024-05-22 Thread Christophe Leroy
Le 17/05/2024 à 16:27, Oscar Salvador a écrit : > On Mon, Mar 25, 2024 at 03:55:53PM +0100, Christophe Leroy wrote: >> This series reimplements hugepages with hugepd on powerpc 8xx. >> >> Unlike most architectures, powerpc 8xx HW requires a two-level >> pagetable topology for all page sizes. So a

[PATCH v1 RESEND] arch/powerpc/kvm: Fix doorbell emulation by adding DPDES support

2024-05-22 Thread Gautam Menghani
Doorbell emulation is broken for KVM on PowerVM guests as support for DPDES was not added in the initial patch series. Due to this, a KVM on PowerVM guest cannot be booted with the XICS interrupt controller as doorbells are to be setup in the initial probe path when using XICS (pSeries_smp_probe())

Re: [RFC PATCH v2 06/20] powerpc/8xx: Fix size given to set_huge_pte_at()

2024-05-22 Thread Christophe Leroy
Le 20/05/2024 à 19:42, Oscar Salvador a écrit : > On Mon, May 20, 2024 at 04:31:39PM +, Christophe Leroy wrote: >> Hi Oscar, hi Michael, >> >> Le 20/05/2024 à 11:14, Oscar Salvador a écrit : >>> On Fri, May 17, 2024 at 09:00:00PM +0200, Christophe Leroy wrote: set_huge_pte_at() expects t

Re: [RFC PATCH v2 01/20] mm: Provide pagesize to pmd_populate()

2024-05-22 Thread Christophe Leroy
Le 21/05/2024 à 13:57, Oscar Salvador a écrit : > On Mon, May 20, 2024 at 04:24:51PM +, Christophe Leroy wrote: >> I had a quick look at that document and it seems to provide a good >> summary of MMU features and principles. However there are some >> theoritical information which is not fully

Re: [RFC PATCH v2 06/20] powerpc/8xx: Fix size given to set_huge_pte_at()

2024-05-22 Thread Christophe Leroy
Le 21/05/2024 à 11:26, Oscar Salvador a écrit : > On Tue, May 21, 2024 at 10:48:21AM +1000, Michael Ellerman wrote: >> Yeah I can. Does it actually cause a bug at runtime (I assume so)? > > No, currently set_huge_pte_at() from 8xx ignores the 'sz' parameter. > But it will be used after this seri

[PATCH] arch/powerpc/kvm: Fix doorbell emulation by adding DPDES support

2024-05-22 Thread Gautam Menghani
Doorbell emulation is broken for KVM on PowerVM guests as support for DPDES was not added in the initial patch series. Due to this, a KVM on PowerVM guest cannot be booted with the XICS interrupt controller as doorbells are to be setup in the initial probe path when using XICS (pSeries_smp_probe())