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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS 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 9C211C433B4 for ; Thu, 20 May 2021 14:48:47 +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 11A396109F for ; Thu, 20 May 2021 14:48:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11A396109F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org 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:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rx27qmbdRmKy58RwM9h2KVIaEsan3e/hqWFKI5a2FXI=; b=ZX2sIlWufM4LIIVUl/DUxVRTEH 97RxOjXuMZ0kOH/rAwqRVOq/xsz9L3WLxFldQR0RPWUWxomzfTYNsqpuIwpiS4cAUkj2SBWVVEI5h ckIfx16T0zzAlRONIzo+g6gFQy7THmIYVOLlExpU76wQk70oGppZOZ3XXc+TiTJtqfeLXsX2KAgAD g+g8ScIZkT8sQjraOS46spNdcHaB2G2GMZ7IUjQzeoZLSNq9GlXeH/3cMdaNA5zYkBjojLEKxAp9N qCJqtSZWGTEIN8xxTK5inEr6zQjTGQVkecWnIWz3e6ObVWvjYVtyYGfqeBNJhdFlxwR2SrqPD/eLu 8tV3XCIQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ljjx8-001XBJ-4w; Thu, 20 May 2021 14:47:10 +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 1ljjwz-001XAX-EA for linux-arm-kernel@desiato.infradead.org; Thu, 20 May 2021 14:47:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Vc5tBEw/4yUkd0c4xSIDylweubmYbQdXhFwv40x9BOo=; b=lLd3CPEmSQWuaNWDBWnDZ8Q3ve EkHFvUyWLR9DQ1w7zLazqip1dV+SjUI+z7PcAPxgPvBdwi1+dVA78YiKj3Jlgja7qFb5uapP4DFSR X45Jk1O+5DSKoWNxuPCyZbqADm7ioQmBmDkh26/UW2vtLSP+F0OcvOSxumlhuMXODzresUg8sAfvg fG9RMH03+1GfH8f6MOIuS8qjgAA1+MhfklUJmNjcoWGwUyiFmMHti68h3f5RoxEIjoBgPTAX7Skhf nNjOnWoB0oTXjGib65n4oD3zNGuLKk94FozwZ3jEKzhM6IDqTFyRieTBNpC7p9VZ3Q+FGI17x83Lb LkxljZ9g==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ljjww-00GR7s-Ob for linux-arm-kernel@lists.infradead.org; Thu, 20 May 2021 14:47:00 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id D630661184 for ; Thu, 20 May 2021 14:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621522017; bh=UMQFPyFmU6DoIBC1rqrPnlgocfKhaGNHlN1FXKSzHGs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EgaqlZETCY13DVzLapoE4m4gTc4djmabHl1JWJYnxJMX0c+A+5+jrEW86C40DdU2G NYaUdH/RjAz6LIB6K4NrGRsrNzNqbpvHx/cWL/iXmV0QXblcoZ25Q2bzGXSi12pkBE 42CUIhTfxR/KXtbXvCRstFfUQo7XQvrpkAh/dOY+i7a/CH/X3GX/lLrwyHkRccb0CO WkCD7EByxAG7UQJAksqhA6OI1RRiJerUuuPx2Mq/aHt6baqBPonADeiTsMeQOQSezI Og+uzjnqYFSGAeXzsMH0YI6n4baMrTKPr/GXCQX0UgPmOuH3iA7nZjZ0i1lcGBSTWB f6m+ESK92VrJQ== Received: by mail-ot1-f51.google.com with SMTP id 69-20020a9d0a4b0000b02902ed42f141e1so15074265otg.2 for ; Thu, 20 May 2021 07:46:57 -0700 (PDT) X-Gm-Message-State: AOAM532MXKNpFrzvz8b6zGWUZ7ze+9EFjPpPw8h19Be6UQtR3+gfUGbW 6/PWlFrZVEme+gxTr8VJJmF20ggskev8IYxOEM0= X-Google-Smtp-Source: ABdhPJwMFBwxRVXbpHzEkPRECNWmzL8Bq/M09c9ELJpgq/FebQmUsbmgW4V7JAQXpJ3RlJPTQgWaPC5Ifo9KOjun1pw= X-Received: by 2002:a05:6830:4da:: with SMTP id s26mr4089976otd.77.1621522017225; Thu, 20 May 2021 07:46:57 -0700 (PDT) MIME-Version: 1.0 References: <20210520115031.18509-1-mark.rutland@arm.com> In-Reply-To: <20210520115031.18509-1-mark.rutland@arm.com> From: Ard Biesheuvel Date: Thu, 20 May 2021 16:46:46 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/6] arm64: boot cleanups To: Mark Rutland Cc: Linux ARM , Mark Brown , Catalin Marinas , James Morse , "Madhavan T. Venkataraman" , Marc Zyngier , Suzuki K Poulose , Will Deacon X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210520_074658_863256_263AE6D7 X-CRM114-Status: GOOD ( 19.60 ) 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: , 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 On Thu, 20 May 2021 at 13:50, Mark Rutland wrote: > > 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 > For the series Reviewed-by: Ard Biesheuvel Note that this will conflict with Fuad's cache maintenance cleanup series. > 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