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=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,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 13938C4727D for ; Mon, 5 Oct 2020 18:10:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 BB04F20853 for ; Mon, 5 Oct 2020 18:10:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qRC9GYwX"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="k5jditGI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BB04F20853 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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kLXInqGwQYmT8SnB0myOpLf6HoN7MJEsYUygsAiNi1w=; b=qRC9GYwXwM7g31nzyf9b+tUbN pyr4zcBIalOixR26c9Awxj57MlFywUWSE76AN+8Rr3n6D1CUDL9J7zp+gV3eRC1TBdF8aTMh1AC0V syPQOdPxagxn1yxWELe9NDrxBDVUFEeHAYuP7THqlnl1jQzukpIPdae/YyjOUmG1l9Gf/pjMtR1us Y5x9an5GheYZDf4dgI7LdFQWytScOAhJ78P1X3BQfeCAvh2tUJ1UCdECLTF9EqHMYYJNj7jFTi/VU wPU/GjyMcK5OmFyNe7oe0DazvA/+sXATewU0M9J5iEYeXPIl6pWcJMd/KKHkwOsoIA7VyKX7XkQKz LuPJ3g4Bw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPUv9-0006eC-HW; Mon, 05 Oct 2020 18:09:11 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPUv4-0006dJ-Cm for linux-arm-kernel@lists.infradead.org; Mon, 05 Oct 2020 18:09:07 +0000 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 93AD020853; Mon, 5 Oct 2020 18:09:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601921345; bh=Fh7scONan8YTWxjiaWk9vIKs0ndf7M+R0TQVTe4/SSU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k5jditGIYXTNDqcgQz6mgwdEhx53ZvhKdHiEifY/V1iqCdeJ54eR2MWYWRWR13PsF O9q/4cCCvDdzTS2fT4iNrf5Xn+akBahccJzG1onxgvW8FaOqYsZxvCLohlgwHVfFyY 196c+0I31E7BTa2BhuIrnQE9dgsViufoLAe8aR/M= From: Will Deacon To: Mark Rutland , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCHv2] arm64: initialize per-cpu offsets earlier Date: Mon, 5 Oct 2020 19:08:58 +0100 Message-Id: <160192053406.54017.5110167056141512755.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201005164303.21389-1-mark.rutland@arm.com> References: <20201005164303.21389-1-mark.rutland@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201005_140906_491779_00087DF1 X-CRM114-Status: GOOD ( 14.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: catalin.marinas@arm.com, kernel-team@android.com, James Morse , Will Deacon 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 Mon, 5 Oct 2020 17:43:03 +0100, Mark Rutland wrote: > The current initialization of the per-cpu offset register is difficult > to follow and this initialization is not always early enough for > upcoming instrumentation with KCSAN, where the instrumentation callbacks > use the per-cpu offset. > > To make it possible to support KCSAN, and to simplify reasoning about > early bringup code, let's initialize the per-cpu offset earlier, before > we run any C code that may consume it. To do so, this patch adds a new > init_this_cpu_offset() helper that's called before the usual > primary/secondary start functions. For consistency, this is also used to > re-initialize the per-cpu offset after the runtime per-cpu areas have > been allocated (which can change CPU0's offset). > > [...] Applied to arm64 (for-next/late-arrivals), thanks! [1/1] arm64: initialize per-cpu offsets earlier https://git.kernel.org/arm64/c/353e228eb355 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel