Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2546454imu; Tue, 6 Nov 2018 17:06:15 -0800 (PST) X-Google-Smtp-Source: AJdET5evYxBKod27gKubvmUNuNnV3aQDv5kdaBVxGlWuX2ojacQpqoYE4KHd73osy7lA4ECwZUwZ X-Received: by 2002:a17:902:b784:: with SMTP id e4-v6mr28075027pls.45.1541552775295; Tue, 06 Nov 2018 17:06:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541552775; cv=none; d=google.com; s=arc-20160816; b=y+vHYpS5vCKXklqYgNMwlQbsfQdESQiRa7ShnlUsmx/RFyLkDLPyUOLts63w15R7Aw EC9m1yx54orfBQ5UUWeUE1SIbvtD87YFNMMFLm1qBxESLuYjgXAjYmiASU72zUNaVJZk k9rEIQ3xoiWymajSNE8remYScXC0TP0/UsusOE10xHW0TBVU8eR1Ut/RcnFTpQdFKJgz GSYxl6O9AvwI7UR6Ytm9JcE0ND1HMi3Nevr3F6xgu+xLApii/O/H5fu4ch+6yU7soZbE gj0TTr1RrCzDW+i9qrl6KsjtWqsVB1CoXCkLm4F8Bu7pqlPf1AQ7rDi77IrKaCv6SLQT EcCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=AdAdeS4sZQ8YU1vAJNV5eR8xeGN1ehQuodDt1kCsI6A=; b=UorwUQOlQ+4g+4HXCE4pAPjku93dVOl17qeEvUyGkloqN6dW+gOPAF2hZBStoyjP+d kPlL9lDot4Q2hOS3gMJGOVBNnfcUjN4O9SSNgNFNCP+EjJHTrew4Aa2efHqPevmUAFNW 5flLuWeF4xhUbk02h2M8PPg196rd2pvOjGJ7H/q42T2v9FCmLS9+Ds+Iwcdg21Cqnzde ANABswFEvLTS6gB1qy19Ri1fE8dmolCnOmYZg5zuozHbQCvReXYr6VE3lvC0DHzRJtSl YFJRlh8fJ5aVfAhclY/mx5Az34EP1yf5FZZ+U+WQrSB7jpVbfXatRDdBSOQfzelTFwoB YMIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W7j4p7n6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18-v6si41349790pfc.253.2018.11.06.17.06.00; Tue, 06 Nov 2018 17:06:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=W7j4p7n6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388740AbeKGKcN (ORCPT + 99 others); Wed, 7 Nov 2018 05:32:13 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:46211 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388065AbeKGKcN (ORCPT ); Wed, 7 Nov 2018 05:32:13 -0500 Received: by mail-pl1-f193.google.com with SMTP id c13-v6so7036208plz.13 for ; Tue, 06 Nov 2018 17:04:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AdAdeS4sZQ8YU1vAJNV5eR8xeGN1ehQuodDt1kCsI6A=; b=W7j4p7n6cVnICxU3fNbrsRLIna/24le2c2DHgzKLMFf5CQnUYOE2mZUtt2Rw7cFgi6 K1v0NjXfenWwuPfGX4TL/6/Henxpcn35IpbF7yXLn6/NLFzfnwdGwXNL7gL4KSJTVfu4 3gwDRe5HZSKr3bULeqf4DdS9aSwrikmCeHVEY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AdAdeS4sZQ8YU1vAJNV5eR8xeGN1ehQuodDt1kCsI6A=; b=LG+YxXpqys1+QRkcYNVRHgUnViX0ZNLgcl4XOww5ghjLpVcyxEpSLM4V1B/a3mCIvk fM9CCmZP0Gt3HWg7p6Yg+mh/KGJi/brWrp1zj7f1a07wfodh6cTVkvHdkI1/QhHFEbHb kkE76+5/qTXn35s2Jx6VBHMEtK3RLGhEu8FFXFi3jQGLIlXjz8f/pst56qmXN1LRCqpB X25NgtFJpfs38FIgWhg4ZrLZ5Et7PCdAmEjHt/WoZ5moA+th/aalBmLdOi3yzgNvyOB5 qMBokNzEnJvH2mQuYkM1ocoaaXMBvFL+cDCW+SmXa21n/eUtjQMJlcsKJ//NwcYrYAeQ OIKQ== X-Gm-Message-State: AGRZ1gIdWnO7JUe4M7V3hrkyJfZt7QaqWguiBLO+PLXTuGh0C9ReJG+a JF6ENY8sMvZSc3rHX2aZCna39Q== X-Received: by 2002:a17:902:2:: with SMTP id 2-v6mr29324872pla.178.1541552652131; Tue, 06 Nov 2018 17:04:12 -0800 (PST) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:c8e0:70d7:4be7:a36]) by smtp.gmail.com with ESMTPSA id v37sm30134695pgn.5.2018.11.06.17.04.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 17:04:11 -0800 (PST) From: Douglas Anderson To: Jason Wessel , Daniel Thompson Cc: kgdb-bugreport@lists.sourceforge.net, Peter Zijlstra , Douglas Anderson , linux-mips@linux-mips.org, linux-sh@vger.kernel.org, Borislav Petkov , linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org, Catalin Marinas , James Hogan , linux-hexagon@vger.kernel.org, x86@kernel.org, Vineet Gupta , Thomas Gleixner , Michal Hocko , Ralf Baechle , linux-snps-arc@lists.infradead.org, Andrew Morton , "H. Peter Anvin" , Yoshinori Sato , Benjamin Herrenschmidt , Will Deacon , Paul Burton , Ingo Molnar , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Huang Ying , "David S. Miller" , Rich Felker , Michael Ellerman , Mike Rapoport , Paul Mackerras , Richard Kuo , linuxppc-dev@lists.ozlabs.org Subject: [PATCH v3 0/4] kgdb: Fix kgdb_roundup_cpus() Date: Tue, 6 Nov 2018 17:00:24 -0800 Message-Id: <20181107010028.184543-1-dianders@chromium.org> X-Mailer: git-send-email 2.19.1.930.g4563a0d9d0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series was originally part of the series ("serial: Finish kgdb on qcom_geni; fix many lockdep splats w/ kgdb") but it made sense to split it up. It's believed that dropping into kgdb should be more robust once these patches are applied. Changes in v3: - No separate init call. - Don't round up the CPU that is doing the rounding up. - Add "#ifdef CONFIG_SMP" to match the rest of the file. - Updated desc saying we don't solve the "failed to roundup" case. - Document the ignored parameter. - Patch #3 and #4 are new. Changes in v2: - Removing irq flags separated from fixing lockdep splat. - Removing irq flags separated from fixing lockdep splat. - Don't use smp_call_function (Daniel). Douglas Anderson (4): kgdb: Remove irq flags from roundup kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function() kgdb: Don't round up a CPU that failed rounding up before kdb: Don't back trace on a cpu that didn't round up arch/arc/kernel/kgdb.c | 10 ++----- arch/arm/kernel/kgdb.c | 12 --------- arch/arm64/kernel/kgdb.c | 12 --------- arch/hexagon/kernel/kgdb.c | 32 ---------------------- arch/mips/kernel/kgdb.c | 9 +------ arch/powerpc/kernel/kgdb.c | 6 ++--- arch/sh/kernel/kgdb.c | 12 --------- arch/sparc/kernel/smp_64.c | 2 +- arch/x86/kernel/kgdb.c | 9 ++----- include/linux/kgdb.h | 22 +++++++++------ kernel/debug/debug_core.c | 55 +++++++++++++++++++++++++++++++++++++- kernel/debug/debug_core.h | 1 + kernel/debug/kdb/kdb_bt.c | 11 +++++++- 13 files changed, 88 insertions(+), 105 deletions(-) -- 2.19.1.930.g4563a0d9d0-goog