From patchwork Tue Oct 30 22:18:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Anderson X-Patchwork-Id: 10661695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A16813A4 for ; Tue, 30 Oct 2018 22:19:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E55542A956 for ; Tue, 30 Oct 2018 22:19:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D81A32A97D; Tue, 30 Oct 2018 22:19:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 843A52A956 for ; Tue, 30 Oct 2018 22:19:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727690AbeJaHOV (ORCPT ); Wed, 31 Oct 2018 03:14:21 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:40934 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbeJaHOU (ORCPT ); Wed, 31 Oct 2018 03:14:20 -0400 Received: by mail-pg1-f194.google.com with SMTP id o14-v6so6350312pgv.7 for ; Tue, 30 Oct 2018 15:19:03 -0700 (PDT) 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=SPVTCN7yB3EvcS3VgTBTPuwRPE6icIQDbNo/cFgw8x4=; b=F5MtIjUSmfPSLlRLUcvlxb8bgwO944Vzlwsrb+STW1m9SKp+FbIUnhKepFgX1d/6zY WFEsTME5GAO3fNxqCMjL5qf9DfZtUWW/0eu+pQx31M+moNIAPuITstIM3gP6+QCFd8p4 spMZEp8n6pfvs7QIBWD5+GLOMia4bijBqXNww= 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=SPVTCN7yB3EvcS3VgTBTPuwRPE6icIQDbNo/cFgw8x4=; b=EyEB0GQtCg5AnATN/rTbLhwPvVk7kfM+9O8z85I+n8bvjCsX3pq0A5oRlKAt575t23 XpeyfL3CmphyvU//ypTwaem7P/+KIJPCk0vh5ZW3C93q/mBl9MVjSd/+Ur4wVehi91B9 Nffu8BoRyyPMtI/g9icWaeGJRSQKnQZdhH+b3fsz14H8uEp7mkxssrxKUfvovVOgmxbq ZrDmZ1fPd2PeTA3XTNnYU1F21lJOPcaWuh1HrlamZsP57AP7zqiRNoLTTB4a4neKA1NI xaTgWkB9erUONNbHIjXQLSg8tT0rlG/8rVHOmd3GQvIGcOBhX8TOOHGDjiWoFFvYQLBj N4yQ== X-Gm-Message-State: AGRZ1gKu0hPfoz8VPn0f07UxCv4qMj2LfkNVncy+xOfYlZwdR57sVvIy MD9nP7KDpeoEZWEoQ9ygd9OL8Q== X-Google-Smtp-Source: AJdET5c8VEq72Qy0GxQVPtDW46vA6aevXpwki6KHW4SNnqLPDwpMxBbEkvTAqWJGZKK3oeUkFc+Anw== X-Received: by 2002:a62:571b:: with SMTP id l27-v6mr521667pfb.209.1540937943074; Tue, 30 Oct 2018 15:19:03 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:c8e0:70d7:4be7:a36]) by smtp.gmail.com with ESMTPSA id c70-v6sm2889774pfe.93.2018.10.30.15.19.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 15:19:02 -0700 (PDT) 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 , Paul Burton , sparclinux@vger.kernel.org, Catalin Marinas , James Hogan , linux-hexagon@vger.kernel.org, x86@kernel.org, Vineet Gupta , Thomas Gleixner , Philippe Ombredanne , Kate Stewart , Will Deacon , Ralf Baechle , linux-snps-arc@lists.infradead.org, Andrew Morton , "H. Peter Anvin" , Yoshinori Sato , Benjamin Herrenschmidt , Greg Kroah-Hartman , Paul Mackerras , Ingo Molnar , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Huang Ying , "David S. Miller" , Rich Felker , Michael Ellerman , linux-kernel@vger.kernel.org, Richard Kuo , linuxppc-dev@lists.ozlabs.org Subject: [PATCH v2 0/2] kgdb: Fix kgdb_roundup_cpus() Date: Tue, 30 Oct 2018 15:18:41 -0700 Message-Id: <20181030221843.121254-1-dianders@chromium.org> X-Mailer: git-send-email 2.19.1.568.g152ad8e336-goog MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 v2: - Removing irq flags separated from fixing lockdep splat. - Don't use smp_call_function (Daniel). Douglas Anderson (2): kgdb: Remove irq flags from roundup kgdb: Fix kgdb_roundup_cpus() for arches who used smp_call_function() 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 | 38 +++++++++++++++++++++++++++++++++++++- 11 files changed, 60 insertions(+), 104 deletions(-)