Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp396545iob; Wed, 18 May 2022 04:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr7+EEli7+X1NNf8fH93uC4CbiUYmlA6hvGn2xJIwwIwCwL1/gKahzR03ynUQAwjTLd9l0 X-Received: by 2002:a63:f156:0:b0:3ab:ada6:b463 with SMTP id o22-20020a63f156000000b003abada6b463mr23139773pgk.462.1652874357439; Wed, 18 May 2022 04:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652874357; cv=none; d=google.com; s=arc-20160816; b=MSYJEaviJQVWeorachwSdZ5m79wNYt7MepL4GJEoJLrWVEinnT/1uVzfZ1KNxcbXMZ S/U2SV5qoJLemoBNsk8MrRzMspH9P/M7Mfh+ratP8fJs2NB4wZwD2EGKkSGnCQyRlTgi tK/JIAdNn0QSaDmwxhrkn+NuC7HO+5jQlqpbqlg9xlTBJUqMbfP7hPpiiU4EJARgjc3D zTDezVXzyN4mqVzn8AeY0zTl3ZbF5rFwnwkHS7jnOrdX8rjh9VfJhX6nExIY9jf3GoTJ aZP6LJMxdlDVJxfne+f2VU7IQokLmb7yR6Zr5ARxYYJ11snFb9ILARU6xeKxYqy9/b2W BkDw== 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:date:subject:cc:to:from:dkim-signature; bh=f/91TCuD4JeMeVBshQeSHUO7oyELdzQI4JBN6LkSWsg=; b=r4WivjZ5WlDrvkUEdL7A8qM/G0QhcddUAA7pRkynPMaUufAyrNopXIPSJZJrAatuXM ww5MELd+6fYIsWW42O1Czeb21kES9Jm7DY0oMFsvRfoBR0qFxICg7yzJRNJ0my2dP5mP QNAqYQXlaJlZbzrKjPw918V0LELbP8yi+h6/zeSzNig180GhTkJ8+dfRj/CuSYN1RoZL jMlwV5SxPXPmmWVYuY5uU1Jy9om+q9hP6DD1Hq9mzkQ8LdnOrbdAxg76euJfW7dtOCEw w5QseyNpAmuAiXPZdujwaPYJFYa4WrnZIpUlrKD8a0SDzL9jTos3pOqfQHg1xag9xGm/ LIlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eJQ4XPZT; 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=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x194-20020a6331cb000000b003d8228b5f83si2196549pgx.283.2022.05.18.04.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:45:57 -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=@intel.com header.s=Intel header.b=eJQ4XPZT; 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=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5805C179084; Wed, 18 May 2022 04:43:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235733AbiERLnR (ORCPT + 99 others); Wed, 18 May 2022 07:43:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235762AbiERLnL (ORCPT ); Wed, 18 May 2022 07:43:11 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3FF32B1BC; Wed, 18 May 2022 04:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652874189; x=1684410189; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=tw6Z4f9Bhax1c/2buQLmzsM9gge//sdJmnyXlU32Rlc=; b=eJQ4XPZTsxO31SOu3CgTf0SfECcc/z4uOMlHSfwXEMihacHB2ZRa0Bnt e/Gqt0EqxjbiE472AUwTMDxungnabNqFGMm5VOk78GIm3bIJgPupwL5+9 Qb0Xgri5rvLGyynGh0mAJhn4X0QsOQLfSnMc646emdTj/qD3j3J/tiibK NWGm80XKFNfPj1NvaTKI/41nkeptpIGLNS7KcAvodL2ldyXP6OZr+j/PW 1wLUr/6IpQ3Ibiv6EvZqSPotK9VvJDThgWaG8Lu/zY4gOQtNOjAbUt48W J9DcERwFF+FhGzj3/0eTzfy2cuy7lNfwhs9Le3RjfKd561i4eJ3f9mYYl g==; X-IronPort-AV: E=McAfee;i="6400,9594,10350"; a="358038747" X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="358038747" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 04:43:09 -0700 X-IronPort-AV: E=Sophos;i="5.91,234,1647327600"; d="scan'208";a="597743292" Received: from zq-optiplex-7090.bj.intel.com ([10.238.156.125]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2022 04:43:07 -0700 From: Zqiang To: paulmck@kernel.org, frederic@kernel.org Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rcu: Add cpu-exp indicator to expedited RCU CPU stall warnings Date: Wed, 18 May 2022 19:43:10 +0800 Message-Id: <20220518114310.1478091-1-qiang1.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 This commit adds a "D" indicator to expedited RCU CPU stall warnings. when an expedited grace period begins, due to CPU disable interrupt time too long, cause the IPI(rcu_exp_handler()) unable to respond in time, this debugging id will be showed. runqemu kvm slirp nographic qemuparams="-m 4096 -smp 4" bootparams= "isolcpus=2,3 nohz_full=2,3 rcu_nocbs=2,3 rcutree.dump_tree=1 rcutorture.stall_cpu_holdoff=30 rcutorture.stall_cpu=40 rcutorture.stall_cpu_irqsoff=1 rcutorture.stall_cpu_block=0 rcutorture.stall_no_softlockup=1" -d rcu_torture_stall start on CPU 1. ............ rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 1-...D } 26467 jiffies s: 13317 root: 0x1/. rcu: blocking rcu_node structures (internal RCU debug): l=1:0-1:0x2/. Task dump for CPU 1: task:rcu_torture_sta state:R running task stack: 0 pid: 76 ppid: 2 flags:0x00004008 Signed-off-by: Zqiang --- kernel/rcu/tree_exp.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h index 4c7037b50703..f092c7f18a5f 100644 --- a/kernel/rcu/tree_exp.h +++ b/kernel/rcu/tree_exp.h @@ -637,10 +637,11 @@ static void synchronize_rcu_expedited_wait(void) continue; ndetected++; rdp = per_cpu_ptr(&rcu_data, cpu); - pr_cont(" %d-%c%c%c", cpu, + pr_cont(" %d-%c%c%c%c", cpu, "O."[!!cpu_online(cpu)], "o."[!!(rdp->grpmask & rnp->expmaskinit)], - "N."[!!(rdp->grpmask & rnp->expmaskinitnext)]); + "N."[!!(rdp->grpmask & rnp->expmaskinitnext)], + "D."[!!(rdp->cpu_no_qs.b.exp)]); } } pr_cont(" } %lu jiffies s: %lu root: %#lx/%c\n", -- 2.25.1