Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp68347pxh; Thu, 7 Apr 2022 14:12:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQgHBa1d9e74N4gmsFI8N7C9f7CV3k5QX5+d9tGAX+ZUtVHQK+mx+C4WicMTYsnz0JTBk6 X-Received: by 2002:a17:902:ea12:b0:156:1bfa:13ac with SMTP id s18-20020a170902ea1200b001561bfa13acmr15756426plg.80.1649365972464; Thu, 07 Apr 2022 14:12:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649365972; cv=none; d=google.com; s=arc-20160816; b=W4Jds9sVmS+f2z0zOzK6I9l0mUXGrv0csVRrjBcrIsW2cTODZd4IuKAFAETwboC9Z7 f0NSE4Kp0Zs5P7KlIr7VTDQFmITrD5neY5GxVAqt04ckHWB7f0ZFLtUHrYyfJlSsrybT X0ELRkID+o8LCgVaHz/YHsiLXFV7ekMeLvXqD8UMMIJiatSW5XkbXy5LGcWO6cJ4h3y2 aWtSTox/lXUzbmZcsAnmBOv6Ixey9CfrrajHaSyO5dB1So1om3Co6EgAq6AbONqPDkWx lC9g8in0/i1eN30/xoJAXiOJSHQByfGPnNooW0G/AYj2SaB6TjaCY2jvqlvWTVYHc4h/ nE1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=RECMdTtXE7VClveIEe/AJjQt2TcvQMX3DjgpE8M8nDM=; b=owMq/hvMlQIqS/cSoHRKNYLOJVE6ZQYxKvls/z7SJLZtSVJIrdiBuowGXHFdE8pBdZ ZdpDqL0AK4E40z+XYETzLQtMNH3vL0BovclAaFMWaUOKBpF03kncCpMPL7dtE6QSK7YI KdfMHP/Nc+9wvFrkZ7d6WSZDh59O77upjturYhGUFYGu9RHEEAFlVM0SvWmPCCSOiqGk Hyw8Ph7Dz1UlTpg4+odOQEeJ12gqC1mvjgiE14G4T7BUi73/Px5J/Nf8TLjx0PRe8O0N 31uI47oa6b/K5TVhWpnFX0c6i7bQHrmxaMS3Z2zcBHZsKkfD3Qht5kiSdUnD8jLutAUh RYJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aiyIuSfp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t187-20020a632dc4000000b003816043f111si24142291pgt.774.2022.04.07.14.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 14:12:52 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aiyIuSfp; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 44FBE4480A0; Thu, 7 Apr 2022 13:05:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241465AbiDGGkj (ORCPT + 99 others); Thu, 7 Apr 2022 02:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241375AbiDGGkL (ORCPT ); Thu, 7 Apr 2022 02:40:11 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABFA07487F; Wed, 6 Apr 2022 23:38:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D87C8B826C8; Thu, 7 Apr 2022 06:38:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C414C385A4; Thu, 7 Apr 2022 06:38:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649313488; bh=Gux6lWZnh1FCuzmez/42YXdKcrwefRFpEz+LdkFz5x4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aiyIuSfpcG1qz6EGNC86MrI3RdvIauFp9sq1Oqv7W+J6KKvsLjM6HG/PRX/xGG01g 7g7fm0z6o/qfCGrKUeRbTZn6zoeK7yZdqSSus0pMCD+e3l/uT+JXhBVhAkfro/AAmO YPtdbfnazds93BKkX57L7BCql1I4ds/n231CFFjKXNLpNr9iG4npZaQSrpTgQawtM/ yC3U+px6Ua/tNEuGE/3z1x4b+tMEp7RIzGJjsU/PRmVQBtROFinwCNYYCDzkWhGoSK LVet4cYqS5CEtpVnvmCfA5/3AoFImoPOHeoi/GowBuWWRK3hBFad7qgjVwPT1XDDCw qRWovNhiPVi/Q== Received: by mail-vs1-f54.google.com with SMTP id i186so2711793vsc.9; Wed, 06 Apr 2022 23:38:08 -0700 (PDT) X-Gm-Message-State: AOAM531W20gciLl3dFssKC9peA0ruBujGNzJd4Q1zd+15cjieZZOLv+b 89b6kQ8zWl8FN3URu5vFI2oJPX+IUbIbPVCa0a0= X-Received: by 2002:a05:6102:dd1:b0:325:80a9:b5d7 with SMTP id e17-20020a0561020dd100b0032580a9b5d7mr3705620vst.51.1649313487469; Wed, 06 Apr 2022 23:38:07 -0700 (PDT) MIME-Version: 1.0 References: <20220406142819.730238-1-guoren@kernel.org> In-Reply-To: From: Guo Ren Date: Thu, 7 Apr 2022 14:37:56 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3] xtensa: patch_text: Fixup last cpu should be master To: Max Filippov Cc: Arnd Bergmann , Chris Zankel , Linux-Arch , LKML , "open list:TENSILICA XTENSA PORT (xtensa)" , Guo Ren , Masami Hiramatsu , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 7, 2022 at 11:35 AM Max Filippov wrote: > > On Wed, Apr 6, 2022 at 7:28 AM 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 > > Reviewed-by: Max Filippov > > Reviewed-by: Masami Hiramatsu > > Cc: > > --- > > arch/xtensa/kernel/jump_label.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Thanks. Applied to my xtensa tree. I've missed the "Fixes:" for stable@vger.kernel.org, so I would update v3 to fix it. > > -- Max -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/