Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp33786pxh; Thu, 7 Apr 2022 13:08:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaK1l9ooGVidal5QEOCQ3kO8b6mMla2fu+UhiaYScTeKnmXqBaA8DPy3n45Q7X99zEuiZl X-Received: by 2002:a05:6a00:114e:b0:4c8:55f7:faad with SMTP id b14-20020a056a00114e00b004c855f7faadmr16137919pfm.86.1649362093024; Thu, 07 Apr 2022 13:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649362093; cv=none; d=google.com; s=arc-20160816; b=fo55QB9QyGYnYqlFeNitoc0uyu0tQdYfS17WFjBuRqQ6zzo3hX0UW/v2EWHW1ca8Os /3DeXWf4YTj4WkwPDlz7TDHa4yn/NQ1r97ttTDS2p9qdREmN6fKvSCuZwleEm0DOX1Ve s6RMlS6HgnbvzKIYtC7R0vVnnb9yioAGIRFK1Qk2OQSe6DSElYlXxd3748DQOFmibfln /UkhqOYWqU8m/+SF7kOuGF1NXpNpuKr/VHZrQb/2MZwVJPqLoMElDDgLHcALSnjk5fVy HqODxKEU8iNCogDU7QK+xyyKfgXTZv1QXexjy64ppep2G1lj7Kg/oqCJzDFSAwXQEx0v R6HQ== 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=s4H2T8JJWjYpt3XRuRhcXEKbniAwe816BUUeRliUgkw=; b=NVPCtw5xa9X9mCwSvXR56pOioaxPZ7qdUvvJ09AnF32SyascdKv/4hlkZ2yIObfbW2 aKmZlh7iaUUV3SQomPmckYXo+BhlBKb3TDWM6xWUxyQi+OJJ5JiSjbfRFyuFmFJhySJK VZrIpmkIFTQNyuU57NTyUp9OZMHPS4YuxFGbr+er5Va10hKMV81GbXVmHd47sz85UkRV CcFqAbFpGEGKRUTZ0qxuWhdI9jbU1zQ08sbJRb4I3hO+x9w1rvHBGBdoDvO9jLvsDO9L qrNWQZ52gtuPtW/RjgTpJLZYIi7HKYy5yfkTXkLvA/RloL6nZcKGDbZ7hZaqydpEOBnX vajw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RYYfcvd5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s14-20020a170902b18e00b001540b7dcf5bsi532763plr.498.2022.04.07.13.08.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 13:08:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RYYfcvd5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 646BD2AEE20; Thu, 7 Apr 2022 12:31:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240622AbiDGDiB (ORCPT + 99 others); Wed, 6 Apr 2022 23:38:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240677AbiDGDhf (ORCPT ); Wed, 6 Apr 2022 23:37:35 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13798237FD3; Wed, 6 Apr 2022 20:35:25 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id bq8so8113862ejb.10; Wed, 06 Apr 2022 20:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s4H2T8JJWjYpt3XRuRhcXEKbniAwe816BUUeRliUgkw=; b=RYYfcvd5j+SVV/sd5xTnMZnGZGK5WJeopGbkKSiIaFlplxy/lUvGU0BeF+Hj7cUQi/ YwXHsGAtNA5aYLC8HHzJ7wmtEVcC9G6qOh0WavFyKinlkK6cnHU0tnWPvL6J+4Fz+rqu 83JC0zexGRoU8GVxbnhGqK0cYymzxSMj0KSBkJY9MUR02ugeCFvxzWawMU0mqFKGNMGt GsIz6sj9Qb44ZG3LTfhgmuuGYj05RNIfk/hPym5qIUGgyWqMr2OnSDCtGJejCWk/BwG1 vbCBTZnWhpx4c1RvA2cv8Txp8wzfAjMxFiXNvNPgfKivp/v1I2pdTJ6BJmxm5I3vvaKj G9cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s4H2T8JJWjYpt3XRuRhcXEKbniAwe816BUUeRliUgkw=; b=NNnwzpui2KkcD17IjyJmt1k3PuO0E4bDhrM2H+8Db7wmTxTGz0IcicFGwRAR250biR 403b0o2/fvi1JDnvD0CXUfYGO5EmbLvRtfadYTlvyn6GPZeWn0lojqDcgPhT0fJGeyxg K5ggSCFBJpVWUI7XMzCND3FUWDujSMZO5ywQp6sGrCWfNITuGC/BagQx7nM0Vwj+MUQT oCkTI83c0UTU7EY8qW4SbFwOLKjipUw4CCmEezuRMpecNcfAguId/hTiGkOFRjE+k2PI qX8Tt5aN5O7I3wwyDbzrsHxjniUmMOygrA0xxvyIY7/kO8ck5hpEtNmLFT8x/dcMsy/H 84aQ== X-Gm-Message-State: AOAM5328VWi1eJVpkBDHMrUsZPxYK3fVlSj1JnVqL9d5cexLyQlsQLQ5 rRakej62psKI/kkNZHHTZG1vI4AOQKVUzRqkgxg= X-Received: by 2002:a17:907:8a19:b0:6e8:a7e:5f50 with SMTP id sc25-20020a1709078a1900b006e80a7e5f50mr11570936ejc.322.1649302524167; Wed, 06 Apr 2022 20:35:24 -0700 (PDT) MIME-Version: 1.0 References: <20220406142819.730238-1-guoren@kernel.org> In-Reply-To: <20220406142819.730238-1-guoren@kernel.org> From: Max Filippov Date: Wed, 6 Apr 2022 20:35:12 -0700 Message-ID: Subject: Re: [PATCH V3] xtensa: patch_text: Fixup last cpu should be master To: Guo Ren 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=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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, 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. -- Max