From patchwork Wed Aug 9 20:36:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 133544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:9d8d:b0:139:fa0d:b2d with SMTP id d13csp154700rwo; Wed, 9 Aug 2023 14:29:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGASlWMcgy8LRBQBmja8dRmopesnS3Mu4Mgu+29fOgBhdnUE818DxodcHOoRxdlxyhvPr6q X-Received: by 2002:a17:90a:748a:b0:269:3757:54bb with SMTP id p10-20020a17090a748a00b00269375754bbmr147198pjk.11.1691616577721; Wed, 09 Aug 2023 14:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691616577; cv=none; d=google.com; s=arc-20160816; b=zWc0CLPMCN+x0PZBb2Gu5tc32JNHvRfln6UfV51XoZxRU7dJk7NbvtXygPOh5xFuEo sAmaViWpON2u/umaDAuquafncXYjoZuiUD+pl01m5gl7Ymjz4FcooKxg4l5pZQxtJTeP OlmSpvP6FzjuwRd/v3d8d5leBZfT5pUhpHCA7I+6iZNqMzu0l2RXjxrnK3E9/PeOL2SP HEl50AtaEPCgsLffZw/A+7c92kGO3Hdj1NMKHrQbiIsuLdU5aGvASg84S112HoKtBeO9 Lx5a66wsyaoN9Y5LTisZUWOcRZXqngbjHUEOiOGLlMdbDKaGWKSdpRayV8+8t3FI6dGw bSXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=21BnrJemQ5ShwvF1DpadbMtcAI7G0bRuOodYTBsfLZU=; fh=jBwjuriIPWA1lnCf5oMMiNAPpgGE0iGPmBzZMsd85oQ=; b=yjAbLVlWmvBBJmRxtJ/kwdj/NtAPDzxoJt0QTNZTLZYqyyN88x0YovvgWB6YGTAFgt DER/cJpkg0bH3Xu8gXuPs8cNUgEgX585/iMcMqvj8BCp+xvddyARFnahuGMOXH0Bvk/0 69lQVpN00FJ0OOl6TyDpjDkeC3nZkYmNAprk6mmBLobxwvOmjFnppV68nFQqnojj8q7h IkRrremXhKzToSO+NyIGWxNXGd/YOlrX04ynavaHl+83+6fvH6JhgQA3+yjyh7aHnuJV RNNyXiwTTVFF8kQsnHzqHglHn6L17URQwGT5xl+egaX2KJ4J4vUcywdrWxcxl0IHlvlb CNYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="M04qBt/g"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a17090a348d00b002632a1243dbsi2162617pjb.104.2023.08.09.14.29.24; Wed, 09 Aug 2023 14:29:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="M04qBt/g"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234557AbjHIUgP (ORCPT + 99 others); Wed, 9 Aug 2023 16:36:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234519AbjHIUgH (ORCPT ); Wed, 9 Aug 2023 16:36:07 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BCECB4; Wed, 9 Aug 2023 13:36:07 -0700 (PDT) Date: Wed, 09 Aug 2023 20:36:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1691613365; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=21BnrJemQ5ShwvF1DpadbMtcAI7G0bRuOodYTBsfLZU=; b=M04qBt/gu0UBjeKbFEgCzbrFBpiCev3smzs5yckPvpACKWf9VyFe2FvL34bzAaMQ4ilKWz dCliGyskeD4qIzJQe+OC+wZ2a3Am/re3UkMmeeQE+H02B9rMk/8fV07FedSenoc1qC2tW3 Ln6gil9wW5iZI/ABV7VF3kHZ+rVL4GOpt0Z0R6MCY1TWGaGMaw77jTy20V+8ldjtxT3QlC YGf+P03e1LD2vF8bWG0Hv/f5RMFuFiKvG8TNahW0AbWlV+3wnnuJIYOST4O58WU3jlS4JE hFkdzlIuuViqO+BQChko18mXDqPkKBl15qS9K9g1feA5RZ3ONpxzsk+aVUHl6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1691613365; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=21BnrJemQ5ShwvF1DpadbMtcAI7G0bRuOodYTBsfLZU=; b=c7MbXL05YJGim0k1BpQS14HLVvET6jBLPZ4SOEMcanm2h14iGvVdH79MCjUAU6BMd6vZxY MKL/+Et0aXjPmMDQ== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] x86/apic: Mark all hotpath APIC callback wrappers __always_inline Cc: Thomas Gleixner , Dave Hansen , "Peter Zijlstra (Intel)" , Michael Kelley , Sohil Mehta , Juergen Gross , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <169161336448.27769.4347654295175166611.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773788544524425480 X-GMAIL-MSGID: 1773788544524425480 The following commit has been merged into the x86/apic branch of tip: Commit-ID: 54271fb0b78511048aa7910d593994f2ca055e68 Gitweb: https://git.kernel.org/tip/54271fb0b78511048aa7910d593994f2ca055e68 Author: Thomas Gleixner AuthorDate: Tue, 08 Aug 2023 15:04:21 -07:00 Committer: Dave Hansen CommitterDate: Wed, 09 Aug 2023 12:00:55 -07:00 x86/apic: Mark all hotpath APIC callback wrappers __always_inline There is no value for instrumentation to look at those wrappers and with the upcoming conversion to static calls even less so. Signed-off-by: Thomas Gleixner Signed-off-by: Dave Hansen Acked-by: Peter Zijlstra (Intel) Tested-by: Michael Kelley Tested-by: Sohil Mehta Tested-by: Juergen Gross # Xen PV (dom0 and unpriv. guest) --- arch/x86/include/asm/apic.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 1742f97..28192a2 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h @@ -371,48 +371,48 @@ void __init apic_install_driver(struct apic *driver); pr_info("APIC: %s() replaced with %ps()\n", #_callback, _fn); \ } -static inline u32 apic_read(u32 reg) +static __always_inline u32 apic_read(u32 reg) { return apic->read(reg); } -static inline void apic_write(u32 reg, u32 val) +static __always_inline void apic_write(u32 reg, u32 val) { apic->write(reg, val); } -static inline void apic_eoi(void) +static __always_inline void apic_eoi(void) { apic->eoi(); } -static inline void apic_native_eoi(void) +static __always_inline void apic_native_eoi(void) { apic->native_eoi(); } -static inline u64 apic_icr_read(void) +static __always_inline u64 apic_icr_read(void) { return apic->icr_read(); } -static inline void apic_icr_write(u32 low, u32 high) +static __always_inline void apic_icr_write(u32 low, u32 high) { apic->icr_write(low, high); } -static inline void apic_wait_icr_idle(void) +static __always_inline void apic_wait_icr_idle(void) { if (apic->wait_icr_idle) apic->wait_icr_idle(); } -static inline u32 safe_apic_wait_icr_idle(void) +static __always_inline u32 safe_apic_wait_icr_idle(void) { return apic->safe_wait_icr_idle ? apic->safe_wait_icr_idle() : 0; } -static inline bool apic_id_valid(u32 apic_id) +static __always_inline bool apic_id_valid(u32 apic_id) { return apic_id <= apic->max_apic_id; }