From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796161741; b=MIDiqEuwD8aMqXWdr+MfWVSeI8+XrACEI+so1m5nqf6+B2Y9TOl9EDswdUd2/u+EqQk0 Fv2RYEeNaie+cqvOdL2P94y6fUni0k6yQJX3YusfcMDz1XaZRqH2W8HUj+wGRKclGUh/s GeRLVJAb1abre1TaEBReZ6rdLmlBSAhSwULIh5SJVy5GVNkfq3BLbAcjSYJxplYGXItCn JCCTAnG84WGPAfPXBdGD42apkILzwtXxH26vmUcwE2M1d5yyM3CIObz/tsCwpyhQ6/aol 3Rbahdf6V5c94l+xmm1E2mTURHjXybpTT6WmVcqbMXhDH6CXGDaAU1PqktY4GLGX5AA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796161741; h=Received:DKIM-Signature:Content-Type:MIME-Version:Message-Id: In-Reply-To:References:Subject:From:To:Cc:Date; bh=Kx1Vot91SR9+0SvM9ESsju92PXyi67PrY13T2mj08Ms=; b=3/pkf1Dln+07ir467llZ60YKs7Yjw5P6reBMTK7qetaYVzJB5RvrsEpZNxqtwJ2qPz6Q mcfyS0VWxrQ1FqXYn99+LrRSQw8SUj5rwdj1Y/Xuo1LxBBWEChXNwTByFWMF0M4/lYCLd sKtuQqOos5YrhcwcPl1Tsbqj8JAHFkk8xcZfZA7xGbOIMooDNQMKjOepFGNKpnmFW6HMe /6V+M7EPb6nUkVZltYMeJ4iX2HWCaKNiQW3DkG8UCErkmQrJwRzIK6hPJ82DNzeG/Xe8x rQEuMWgV7b6ymLhNiebAAhOio5hBmkmbHLxXzCX2PzaX5A6qEhYXG/Kny9ZSyjisOtg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LotOOnFA; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FC43606A320; Tue, 1 Dec 2026 21:49:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=LotOOnFA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51B2A1F00897; Tue, 1 Dec 2026 21:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796161740; bh=Kx1Vot91SR9+0SvM9ESsju92PXyi67PrY13T2mj08Ms=; h=In-Reply-To:References:Subject:From:To:Cc:Date; b=LotOOnFAFhGWkIran9NdzX9ivxemwMv9dE9/ZHgxdIKkjGA6IzjtPI6k6+/kt9JSD ynv57Yu5gSuSWWa0YhRDJ06KcpCgEXhcK2U1LY2u9gXUNEaIAUqC5ZuYmCSPkGMAQz kVR3NYr6gXns/havmeXq40d6gfQvu8Nhok5UhutI9Iltn1cponPx0vkOdlfHZ8nyo6 aT4dJHaZhO+K4I3/iUMrFMG1g+lk30pukPvFvcjvc/LrmbUeIseJ8boUx9pXXBDF94 tU4nTMZWp9+z6rxF3RQYPEYP6gjMFlGcGUWsFq8NlA9uC//WjmPbZS1gVsxX559hb2 ZtLn7mrY/Wm1Q== Content-Type: multipart/mixed; boundary="===============2008535801873605411==" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Message-Id: In-Reply-To: <20261201042201.3199928-21-song@kernel.org> References: <20261201042201.3199928-21-song@kernel.org> Subject: Re: [PATCH v3 20/22] powerpc: Mark helpers called from noinstr code notrace From: bot+bpf-ci@kernel.org To: song@kernel.org,linux-kernel@vger.kernel.org,linux-trace-kernel@vger.kernel.org,live-patching@vger.kernel.org,linux-arch@vger.kernel.org,linux-arm-kernel@lists.infradead.org,linuxppc-dev@lists.ozlabs.org,linux-riscv@lists.infradead.org,bpf@vger.kernel.org Cc: rostedt@goodmis.org,mhiramat@kernel.org,mark.rutland@arm.com,peterz@infradead.org,tglx@kernel.org,frederic@kernel.org,paulmck@kernel.org,catalin.marinas@arm.com,will@kernel.org,maddy@linux.ibm.com,mpe@ellerman.id.au,npiggin@gmail.com,chleroy@kernel.org,pjw@kernel.org,palmer@dabbelt.com,aou@eecs.berkeley.edu,alex@ghiti.fr,ast@kernel.org,daniel@iogearbox.net,andrii@kernel.org,ojeda@kernel.org,kernel-team@meta.com,song@kernel.org,ast@kernel.org,andrii@kernel.org,daniel@iogearbox.net,martin.lau@kernel.org,eddyz87@gmail.com,yonghong.song@linux.dev,mason@kernel.org,ihor.solodrai@linux.dev Date: Tue, 1 Dec 2026 21:48:57 +0000 (UTC) --===============2008535801873605411== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit > powerpc: Mark helpers called from noinstr code notrace TL;DR: - Nit: modified declarations still use __inline__ instead of inline, as requested on v3 - Question: is notrace on unused poll_pending() needed, since it still hits hcall tracepoints? > diff --git a/arch/powerpc/include/asm/atomic.h b/arch/powerpc/include/asm/atomic.h > index d1ea554c33ed..60af4f955d99 100644 > --- a/arch/powerpc/include/asm/atomic.h > +++ b/arch/powerpc/include/asm/atomic.h > @@ -24,7 +24,7 @@ > #define __atomic_release_fence() \ > __asm__ __volatile__(PPC_RELEASE_BARRIER "" : : : "memory") > > -static __inline__ int arch_atomic_read(const atomic_t *v) > +static __inline__ notrace int arch_atomic_read(const atomic_t *v) > { > int t; > Christophe Leroy pointed out on v3 that include/linux/compiler_types.h says "New kernel code should only use the inline spelling", and asked for __inline__ to be changed to inline on all the lines this patch modifies. Could the modified declarations here, such as arch_atomic_read() and arch_atomic_set(), switch from __inline__ to inline? [ ... ] > diff --git a/arch/powerpc/include/asm/plpar_wrappers.h b/arch/powerpc/include/asm/plpar_wrappers.h > index f2b6cc4341bb..dd45f632272d 100644 > --- a/arch/powerpc/include/asm/plpar_wrappers.h > +++ b/arch/powerpc/include/asm/plpar_wrappers.h > @@ -13,12 +13,12 @@ > #include > #include > > -static inline long poll_pending(void) > +static inline notrace long poll_pending(void) > { > return plpar_hcall_norets(H_POLL_PENDING); > } This isn't a bug, but is the notrace on poll_pending() needed? It has no callers in the tree, and the plpar_hcall_norets() it calls still goes through the hcall tracepoints. By contrast, cede_processor() just below uses plpar_hcall_norets_notrace() because tracepoints cannot run inside RCU idle regions, so notrace on poll_pending() may suggest it is safe to call from such regions. [ ... ] --- AI reviewed your patch. Please fix the bug or email reply why it's not a bug. See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md CI run summary: https://github.com/kernel-patches/bpf/actions/runs/46748297297 --===============2008535801873605411==--