From patchwork Wed Nov 2 09:12:51 2022 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: 14141 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3507997wru; Wed, 2 Nov 2022 02:23:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73lMBf18NC1yhoe+GqutJcm7TzXJneBgzaliPCBOD4Pb1bnDqUem71qV4yO/vYSeLmdD+K X-Received: by 2002:a17:906:edc2:b0:7ad:9f04:1c15 with SMTP id sb2-20020a170906edc200b007ad9f041c15mr22138301ejb.559.1667381024633; Wed, 02 Nov 2022 02:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667381024; cv=none; d=google.com; s=arc-20160816; b=YMS8FilR9n54t7hDlEtnMcIQTy7XgbCF0WnX2lncR8mUFtv9IMCH6RmLaruPXlPbz/ 7XZ+VbvmVc28zCUgbyf2EllXofD3Ej1XDxUEQkjWxNyufmw5bwrrIn0+AFqGzail3Q4J 9PBeu8LWtwfdRLJg9xY6Ng3YT7D0h9ak8F7b+osW5LZj/LP8o92eXWCfYLvdT9WhESF5 4wntEtKtGl2nYp/qFaxHEZdP8HqPrrVmj8+XOjaa/ScnICHtcA7C7PIbh1yoBAmc4PDp 5yqqgdD27T3g6azho+48ifjAL7EPYaTN38Ico9p/XlgaEbXtGbJqip25BDUCB7ZwvOuD DXTw== 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:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=fXmWqeFOPeD+qQZdadbVwbpEDThmdSdOk9JCve6JHlc=; b=JlytfKE7o8P8jC7RRcD70Jms9dhi7YDw4j0Eq6CzHTEpbkhrsnbPRZq5DKE4bsEcS5 tT/2DGxt/t4b4wqvq2UUs8EiGvOiEr6Y5k+JYD0uLh5oU+DBZjGrKQX57WKv2n4vVQyx ijBbRx5nFIqKAKCOA+jxBz3t8RSD+MCqm9uofb+jexw+PA0uRkI8xae52jFxGSYI0zxB ZFHUxvSZXXTJA5sfnjULalm/jv+aYdbl2NBnZLs5oEaF2HNJdXnmiKwCowvxzqd9g571 5Lg7hStyhb20qY6uea0H5bAR44xgLbhAyjM+/L1M1E54rwnbaNltxVvhYW7E2TvG3aFy IR9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=BJYNL48a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 z14-20020a056402274e00b0045cecdc1fbcsi18792633edd.9.2022.11.02.02.23.21; Wed, 02 Nov 2022 02:23:44 -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=BJYNL48a; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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 S231573AbiKBJOw (ORCPT + 99 others); Wed, 2 Nov 2022 05:14:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbiKBJNc (ORCPT ); Wed, 2 Nov 2022 05:13:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B9EE29358; Wed, 2 Nov 2022 02:12:54 -0700 (PDT) Date: Wed, 02 Nov 2022 09:12:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1667380372; 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: in-reply-to:in-reply-to:references:references; bh=fXmWqeFOPeD+qQZdadbVwbpEDThmdSdOk9JCve6JHlc=; b=BJYNL48aXTk7DktXcUIavTQiEm5AWxu9dOWstUQJalIWsnVnYjI/T0vrs9AYK+kUyGNIC0 NBLduhP9AGPkNSF0yixoOL1Pzz/ujMnzkwVOinBbIlTY5vWHjRrPaz+1zyPO12t5gHzrCX wtqVAHjIcnQk4SidJ+W21mw+/V4zLR7eMxcrDXfBaxxkQ2zJ0zHgaKMAyk9Pv0yKug8HQf zhCVRAISMEuzFzw2auXwy1HSK9edKwPNtvbmL9qp2TSLvfWAOMU/dHmZYXQwVKg2pXjEeI oQOPjPNyspOxJconqA4KB3EsH1ssa6FKwCq2bCPDIufMYAY0+JFhBXNZnDgkAQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1667380372; 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: in-reply-to:in-reply-to:references:references; bh=fXmWqeFOPeD+qQZdadbVwbpEDThmdSdOk9JCve6JHlc=; b=JxjC3af0UcjjIOwIDHd1CfxeeLfWSd6wvspAZYaeXaHA+n2sI9Vo/mcGPsFgS8HkdiayM9 wNJYEeg2r5nI47Ag== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm: Initialize text poking earlier Cc: "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221025201057.881703081@infradead.org> References: <20221025201057.881703081@infradead.org> MIME-Version: 1.0 Message-ID: <166738037147.7716.13263575050649140959.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747691841767562493?= X-GMAIL-MSGID: =?utf-8?q?1748375725393335107?= The following commit has been merged into the x86/mm branch of tip: Commit-ID: 4b6f3a4cd681fa54e67c2987dfebe413cd8d5a59 Gitweb: https://git.kernel.org/tip/4b6f3a4cd681fa54e67c2987dfebe413cd8d5a59 Author: Peter Zijlstra AuthorDate: Tue, 25 Oct 2022 21:38:25 +02:00 Committer: Peter Zijlstra CommitterDate: Tue, 01 Nov 2022 13:43:57 +01:00 x86/mm: Initialize text poking earlier Move poking_init() up a bunch; specifically move it right after mm_init() which is right before ftrace_init(). This will allow simplifying ftrace text poking which currently has a bunch of exceptions for early boot. Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20221025201057.881703081@infradead.org --- init/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init/main.c b/init/main.c index f1d1a54..5372ea2 100644 --- a/init/main.c +++ b/init/main.c @@ -996,7 +996,7 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) sort_main_extable(); trap_init(); mm_init(); - + poking_init(); ftrace_init(); /* trace_printk can be enabled here */ @@ -1135,7 +1135,6 @@ asmlinkage __visible void __init __no_sanitize_address start_kernel(void) taskstats_init_early(); delayacct_init(); - poking_init(); check_bugs(); acpi_subsystem_init();