From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B859C433ED for ; Thu, 20 May 2021 11:52:36 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2B4F61006 for ; Thu, 20 May 2021 11:52:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2B4F61006 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=w9aH1PKmbGLISgmUPeokrDZR4C7ZaGooiGKfifdkuFA=; b=OYWZA1F2DuEP3lcgxcnZY/g+IV A5PWBhLrCMI6hV0WBhUkbnMScgQFfBpE+rZ6HBOYPkyHJNAwUeqYvAl2fuoD8KO2SpBz/sfLNP4Ok huI6/A661CIpLVQarNDdBsE0NuG2aUfCnTrlDA3Jqm1JYXhwOe05RU1omf58l1NvI/luR5x1u+7KU MnXrdrHIKo7ClU4sVg6Pge+x/ylWM/rax4pJE4602VusUkwOCOz3u7M1Q1kDVtPvMhOCpiihNV14s qfN/sS4QcTFmQgVqbJ1SpfNXIcfU8TPFZOtrkCMdMB6cmP3GoiNJ8X0F6mpiwuSrcDxaFAzS8w5wT iYf3177A==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljhCh-000cFv-0A; Thu, 20 May 2021 11:51:03 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljhCQ-000c9i-6n for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 11:50:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=8GM/2ZVayxljWg8YTyHzGPoqNGjot4CzcHZQuup86FI=; b=MJ1eRX8kWnvS7qTbuz47XzLIsT 3j6laolKDlxNJx6gDoZftLCq3dwl85l6qcxMmSXE5SOvYFm3hPJCvNEmfGQST+oIs/Dda2RQ2e+7U O0XvPlfza+MxJq/dyM/iURsSZKmzbltGAGo5v3FVYRhmt3q8Pg4mQlL4ifp4M6e3uvMMsZJMSOrqs B46zhYRSFbsV6vYgsyE+sbnbcCgAn14PD1CxHJpaILW8NUO128PDdiFK4N//xss97qiqawE6ptyXD QDcSdcy0cXKq6Wig7zgCpdLaJSyivVns3QgXsqa9EdsaHaZVzrH+k7qSRzZ2vHlmkzNTQe0fKsHRm 2k7+hstg==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ljhCN-00GH4x-81 for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 11:50:44 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55C5E14FF; Thu, 20 May 2021 04:50:41 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 01D3A3F73D; Thu, 20 May 2021 04:50:39 -0700 (PDT) From: Mark Rutland To: linux-arm-kernel@lists.infradead.org Cc: ardb@kernel.org, broonie@kernel.org, catalin.marinas@arm.com, james.morse@arm.com, madvenka@linux.microsoft.com, mark.rutland@arm.com, maz@kernel.org, suzuki.poulose@arm.com, will@kernel.org Subject: [PATCH 0/6] arm64: boot cleanups Date: Thu, 20 May 2021 12:50:25 +0100 Message-Id: <20210520115031.18509-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_045043_350685_5CA37E11 X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series (based on v5.13-rc1) reworks the way we initialize some state at boot time, simplifying and unifying the logic for primary and secondary CPUs. This allows us to initalize the per-cpu offsets earlier (which will help to enable KCSAN), and reduces the data we need to pass to a secondary. In future, this should allow us to transfer the secondary data atomically and make the secondary boot paths more robust to arbitrarily long delays. I've based this on Mahdavan's stacktrace termination patch [1] (duplicated here unchanged), since it made sense to combine the unwind initialization along with the other CPU state, and otherwise there would be non-trivial merge conflicts. I've given the series some boot testing with a variety of configurations, checking that stacktraces work correctly, etc. The series can be found on my arm64/boot/rework branch on kernel.org: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=arm64/boot/rework git://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/boot/rework Thanks, Mark. [1] https://lore.kernel.org/r/20210510110026.18061-1-mark.rutland@arm.com Madhavan T. Venkataraman (1): arm64: Implement stack trace termination record Mark Rutland (5): arm64: assembler: add set_this_cpu_offset arm64: smp: remove pointless secondary_data maintenance arm64: smp: remove stack from secondary_data arm64: smp: unify task and sp setup arm64: smp: initialize cpu offset earlier arch/arm64/include/asm/assembler.h | 18 ++++++++---- arch/arm64/include/asm/smp.h | 2 -- arch/arm64/kernel/asm-offsets.c | 2 +- arch/arm64/kernel/entry.S | 2 +- arch/arm64/kernel/head.S | 58 ++++++++++++++++++++++++-------------- arch/arm64/kernel/process.c | 5 ++++ arch/arm64/kernel/setup.c | 6 ---- arch/arm64/kernel/smp.c | 14 ++++----- arch/arm64/kernel/stacktrace.c | 16 +++++------ arch/arm64/mm/proc.S | 12 ++------ 10 files changed, 72 insertions(+), 63 deletions(-) -- 2.11.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel