Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1423046pxb; Wed, 6 Apr 2022 18:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAHjczqnNxk29YNDFFF6Ow6+9AO8NLRK2MHTzhMcj4R68FT3oyd/ngKYnyQ0uJ16tM0BIw X-Received: by 2002:a17:906:52c7:b0:6ce:a880:50a3 with SMTP id w7-20020a17090652c700b006cea88050a3mr10838243ejn.437.1649295213767; Wed, 06 Apr 2022 18:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649295213; cv=none; d=google.com; s=arc-20160816; b=sF4q8WcEAHc8RD5glEtatspEhPPpdN9qxKIGJ2eQ+djgKwZVitmQWX9UAi38vAfFyL y3Vz7sFEL7F5F6GfQRXKt9BLUvFmu+JA1Df7yF0R7nwQwYPfeHHxb/yphXH68jY9rgZ5 uxarv52l/P42Ajwo2sN92PSsZ7h5ERRyZtn0uiEE0MyxF+1I6+zm6UvtRdL9nYedoW2V mBeZKmPyfleLxU38VwiHKVc5mRYKOzeEWGxuXkG7kXsq09nUZYJVe7oM/x3X+hx/JHvl Ed8JJUHLIpELwxwJqSKP0OtjOKna5ItWrusqdq4YBaLV7oxS4pqiZAc8JWRuZND+E8zx qDfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=xEHjPFbG2l95vT/9TUf5xFEmrU+wbLDsR7mssjGd3t0=; b=uvWu8FynYSX6o4p7RrORb0IRUlvoszg8Snr9lsV8yFqCGFRAfEUIMtLWSiprQR1fdc hKZTxyT4be0nGvMk8Es0WkntbEs2L3buNb6jI+NHx3Oogb3bq20uMeSDi0JN6tzdsEn8 1ClYVR9/dJ3Kw1GWYMFbQy957bNTWOejf0484qjgvKWifJeBViapIL/tyiGpdSfS7166 EaH3AjUCrJZ8xZ9XaVHaQMmvRYfk7Vf7dl3YDhfvmIl810lTPBzIm3VOg04nDviXMVAT k1Kf4oyoVLo3Kj26nf3PrU3Ebwu4AWnt1pZxYI2UYFqJGRUzpl+JI9IJc5DOXACKsg22 ji5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=0eKouJ7h; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb15-20020a170907960f00b006e6ec6e7598si10847996ejc.425.2022.04.06.18.33.01; Wed, 06 Apr 2022 18:33:33 -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=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=0eKouJ7h; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230375AbiDFUvP (ORCPT + 99 others); Wed, 6 Apr 2022 16:51:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232071AbiDFUvA (ORCPT ); Wed, 6 Apr 2022 16:51:00 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8869396AFF for ; Wed, 6 Apr 2022 12:06:31 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id 32so861775pgl.4 for ; Wed, 06 Apr 2022 12:06:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=xEHjPFbG2l95vT/9TUf5xFEmrU+wbLDsR7mssjGd3t0=; b=0eKouJ7hzOepoVSRqRsRB5ISeXx5Nnlsh14Z1+53rddDy3I8jc5eKeLb6eDXtzkKGc L525OQvHPL8S530OfqYvY+irHpGV2xABBSf+IDUZy2TIx9o0HOVcskxU+vys6yD+o+Uk Lney/6JQGjjx8pDVxo6Qj7fyU0sRt2PlviBAiMEBMttx/TSlRs4qvlYSqS2wx7NT5UNX 6cmLXSroLEDYa5BKLtbFZugvXcSdfLritrR1NnsKzh2QJzb4zlZHUAOjbdDGEm9522jw 5U7yEwauEC4gC1bJpv/7tuwrw/e/YsognCW0wblaH9nEZnSZUbabNx9XD62+MGGfEK65 IZCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=xEHjPFbG2l95vT/9TUf5xFEmrU+wbLDsR7mssjGd3t0=; b=B66s2CKyINm2l0IoFgr7U5YP8WvaRnLGDtnhvytRd9y2mjjgqOlQlZfYREK8Zxd0kM fqAQQjLMEvbwQQMTlKO2wrGNR112crV8dE8qYcl/Fy9NzqEwqlOpmqp6dkUh7PxCNN31 +eR8TkcP+oPwIDj3ZKoP50JEL7YwU+9WSe+mc7R+FGpI6IrHMHHYLUrqFGqicr4ZZoEC r1sh/vx5SAaAQ3msni2kGE3ES91xGpeJWjNEStmmeQgR5DsfVQ9iFGPe4m1Z5R8WW016 VPXNfdPDyKMszwaGHBExmX9/2LiZZ8/kFLbga1dxfl7x+In5MKed0U5yn3btB04lZQf8 B4OA== X-Gm-Message-State: AOAM531lEVKICNA4XtaeHPrZyFiQFYuMRhWSp48vKMkCggCJYdZbaNzj HiSrb4wdUXBQeeSol6g66X43MQ== X-Received: by 2002:a05:6a00:190a:b0:4fa:e4e9:7126 with SMTP id y10-20020a056a00190a00b004fae4e97126mr10336457pfi.65.1649271991420; Wed, 06 Apr 2022 12:06:31 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id z16-20020aa78890000000b004fad8469f88sm20788500pfe.38.2022.04.06.12.06.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 12:06:31 -0700 (PDT) Date: Wed, 06 Apr 2022 12:06:31 -0700 (PDT) X-Google-Original-Date: Wed, 06 Apr 2022 12:06:29 PDT (-0700) Subject: Re: [PATCH V3] riscv: patch_text: Fixup last cpu should be master In-Reply-To: CC: guoren@kernel.org, Arnd Bergmann , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, guoren@linux.alibaba.com, mhiramat@kernel.org, stable@vger.kernel.org From: Palmer Dabbelt To: Greg KH Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 On Wed, 06 Apr 2022 11:13:36 PDT (-0700), Greg KH wrote: > On Wed, Apr 06, 2022 at 10:16:49PM +0800, guoren@kernel.org wrote: >> From: Guo Ren >> >> These patch_text implementations are using stop_machine_cpuslocked >> infrastructure with atomic cpu_count. The original idea: When the >> master CPU patch_text, the others should wait for it. But current >> implementation is using the first CPU as master, which couldn't >> guarantee the remaining CPUs are waiting. This patch changes the >> last CPU as the master to solve the potential risk. >> >> Signed-off-by: Guo Ren >> Signed-off-by: Guo Ren >> Acked-by: Palmer Dabbelt >> Reviewed-by: Masami Hiramatsu >> Cc: >> --- >> arch/riscv/kernel/patch.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > What commit id does this change fix? I think it's been there since the beginning of our text patching, so Fixes: 043cb41a85de ("riscv: introduce interfaces to patch kernel code") seems like the best bet, but I'll go take another look before merging it. That's confusing here, as I acked it, but that was for an earlier version that touched more than one arch so it was more ambiguous as to which tree it was going through (IIRC I said one of those "LMK if you want it through my tree, but here's an Ack in case someone else wants to take it" sort of things, as I usually do when it's ambiguous). Without a changelog, cover letter, or the other patches in the set it's kind of hard to tell, though ;)