Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1728830rdb; Thu, 7 Dec 2023 07:20:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGc8tsE7/lwad+KoJNm8Hz+Jw623TLJ9IfaWeEBmfUZ8xzt/+vcZYXMd9meP4Q+TUQSEuRO X-Received: by 2002:a17:902:8c8f:b0:1d0:6ffd:9e30 with SMTP id t15-20020a1709028c8f00b001d06ffd9e30mr2290431plo.130.1701962450084; Thu, 07 Dec 2023 07:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701962450; cv=none; d=google.com; s=arc-20160816; b=sW8E/CALVSWinQaj0Go9v1ug7NiTzq0eUfTlxrGeEuV7oKX+WMbs5GMrpb1KfWJ6b2 1zwx6lJNsbvGTt2rl5Hok3ZD0pcC5h24vnCwmHO/oP/rqZG1F6QvtksRPN4GzwDNU3tu h/sZAFkDfa/HXK92tbvNrAHRK2BzlVNHj6LQ5z3N5MslBfp6yEOhcQipCScGq4ect7Y1 UjuJWUsUssiGXGsRy6SWUDc1Yv59oONFauFIl32op5uVYXDN86XBK3JxBo7IGDheI1MI UIG7bN6eaRp3REn3Zaf4k1Dtlg09XybYQKXbnURa0VIIk4uk1IZTwEvnudM7UDmByFRP tQQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=V3FrQVv7z3lADYEodUB5jLVKruASneTb87YMldgqHjg=; fh=Mk6ihSHp5ebOcrTCqGFza0wZGYBOYr1ULRznso+M5FI=; b=KbnVil1Lre5n9YiLxv/fgKAeYrF5dK8P387ulEqlxF0K0TSgiydw0DYmqvenfEwa87 DrSW1s736vTaHmqFQ2IiCSHWqraZXAdc5EkfYURTou3pKx5zMTu33+cDdgi9ixRk6RnU 8IKOQeaFDCBYR2DNO8bjdA6HUtIg7bWiKZeNoLEEAWrwYPGCX1Uqdu8MMNk7LxJ+8Ps8 ctQzeIWe5Crw6oselWHXssnDNq1ghWKi0HHmOkbZEiETZicanAVR+1tYdPwxgf14E9OA duDo1hydsExjWQu22i62SW4yWATlwaF6EdZSJKR+ZCTUZ6qmoxub9iIJXX7tNyCLb5PR 1Hyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t3NtVgeH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k1-20020a170902c40100b001cfa17ec30dsi1291698plk.508.2023.12.07.07.20.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 07:20:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t3NtVgeH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6CFD4827AC81; Thu, 7 Dec 2023 07:20:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443449AbjLGPUW (ORCPT + 99 others); Thu, 7 Dec 2023 10:20:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443440AbjLGPUU (ORCPT ); Thu, 7 Dec 2023 10:20:20 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43FCB10D8 for ; Thu, 7 Dec 2023 07:20:26 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id C6AE8C433C9; Thu, 7 Dec 2023 15:20:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701962425; bh=bIRBhYwK1IRegs4X3EsVItjloLp8U3gwV50+Gg5hIzA=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=t3NtVgeHiTsppyAp0gHK0kJxrJUiHzc6HXgdcdZZD/jHdie74bWA2+hmwb+eL+aSk r0gNBOvnOxStuDB8cNxPd7G7KCC/RgZk22Abz9ZUuwA/yPENfrIMPGJYaG/WOTOrId 5b0vLc1ogkXDjLXpHAc/nEHBz7NZx35CvzbObvNwqw8XIebkZ4ca0uJOQXGZBKpPAM FscKy7hTLtiyrvnGQKw7MEczwOXsG5lKPza/y/MhY/hZ/+ix4MVbtFFszXqxL+GleG oA6M1Sr84iA5T8sKxj9vj0zUdc0nor8fe50brQEwv7CYY1VZ6ZJw6eP2im6smpJGEQ 42A2er0/flTJA== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id AE9C2C40C5E; Thu, 7 Dec 2023 15:20:25 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: Fix SMP when shadow call stacks are enabled From: patchwork-bot+linux-riscv@kernel.org Message-Id: <170196242571.12999.13645791686392638982.git-patchwork-notify@kernel.org> Date: Thu, 07 Dec 2023 15:20:25 +0000 References: <20231121211958.3158576-1-samuel.holland@sifive.com> In-Reply-To: <20231121211958.3158576-1-samuel.holland@sifive.com> To: Samuel Holland Cc: linux-riscv@lists.infradead.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, andy.chiu@sifive.com, cleger@rivosinc.com, conor.dooley@microchip.com, greentime.hu@sifive.com, guoren@kernel.org, heiko@sntech.de, masahiroy@kernel.org, namcaov@gmail.com, paul.walmsley@sifive.com, samitolvanen@google.com, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 07 Dec 2023 07:20:44 -0800 (PST) Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 21 Nov 2023 13:19:29 -0800 you wrote: > This fixes two bugs in SCS initialization for secondary CPUs. First, > the SCS was not initialized at all in the spinwait boot path. Second, > the code for the SBI HSM path attempted to initialize the SCS before > enabling the MMU. However, that involves dereferencing the thread > pointer, which requires the MMU to be enabled. > > Fix both issues by setting up the SCS in the common secondary entry > path, after enabling the MMU. > > [...] Here is the summary with links: - riscv: Fix SMP when shadow call stacks are enabled https://git.kernel.org/riscv/c/f40cab8e18ed You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html