Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5306297imd; Tue, 30 Oct 2018 15:31:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5dLwm2aJkwpRtTXveo+wKXXlaiSarEee7QUCdiwc7N5y/LcdGlHxNTZh9B6uWwSqvZ22+AV X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr560308plb.139.1540938669501; Tue, 30 Oct 2018 15:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540938669; cv=none; d=google.com; s=arc-20160816; b=g5jdq6RC9BDh5O11f/jy6H57JL4uONpV3bwWFiF7Id6/COZAjX3QCaVAnM36L7pjCr r7u0QuWAPQveUjIOigLVaK+ESKhTIY0eK/rS0Sjj0VwSuuKNvmfNiOh0YIJtnLcDky0v Bfpglz6tEjfHrUoGJp6c1Wty6liYbtP7bGgri9C5U9LZE8Q9yvMy7l3qWH0pQEVlSt9R utXtR72nuEp0iyK8lHKfWsiJ14gD+ZWnIWpUhMP7kn3naI1t+jgvPlcyvvtX7cDQwolX owX8jmUduYHHu4FlbCKLjYClZfK8goMvO6lCZ6ScwmYXQ1jNz3ZEn7iU564MvKDrXKhB wkkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bImqfsi8wLzHdpxcSUnzMo8Inz8+K2mhWJsVdXrdeuE=; b=keJ8IHf/LQyrX1Q2GcvCpJho1GhEmItDQ15I6hrS30+lhQXgOkl/9JYeoPeLVpwwZx 9t33VKb7xE0mXI1SK/Vc7JXfNEYbSpxNK12dSTZr019DsPRqVcuA1on+gS2xUMH9XX7d vB9BosOehtBOw/txNIRLHSSr/u/j2uhyyAd5LH52XC4P8GL9vUjVT2wlY98YcVD+1o8O jzMPmpO5/ssrZ0+Zpih1vVY52TLsTu/THAtKBLp1O97KHwvuXd00YK/A+NZ3o1MWeS6b myKjvp5KMWw1nMHqaE+8f+GgAJj9v7tOx4A8vkhwyisjYfixnzesToa7DhdweAc8NxrK 6JaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jcKtztE2; 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 h28-v6si24427004pgm.67.2018.10.30.15.30.52; Tue, 30 Oct 2018 15:31:09 -0700 (PDT) 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=jcKtztE2; 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 S1728100AbeJaHZk (ORCPT + 99 others); Wed, 31 Oct 2018 03:25:40 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:44488 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbeJaHZk (ORCPT ); Wed, 31 Oct 2018 03:25:40 -0400 Received: by mail-ua1-f67.google.com with SMTP id i30so5150811uae.11 for ; Tue, 30 Oct 2018 15:30:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bImqfsi8wLzHdpxcSUnzMo8Inz8+K2mhWJsVdXrdeuE=; b=jcKtztE2YqHIN/ivS3T1ZCw84PseggOPg6ZMa6O+Xwi3o8ePR9CuItoF1UQkA4p71Q AGZsRypdJ3G1dlog6rYXRUmhTbTueRGExx76PbPoqNk4VZEgIpuWOJayPkTqJ742AM58 KK7v5W/wbozKkaVztZ4jBMT+ZKckAgfW1zzOQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bImqfsi8wLzHdpxcSUnzMo8Inz8+K2mhWJsVdXrdeuE=; b=YkMmUZIAkMxAOWQlytXJKDx9xO1F9AYlkbaD21sLDjd3S5iTx0TUDlnF5wkVwYUyAj HDebU/iYuJ5eqUy0hmTB/yihi+64Y7AgXhcpznuz0lhgZ5FJUlsXbX1tUoczZ7S8TnjV 5mj+Us8u2HZu2n83IrhpswamYs35n7J24UcaK5EwqM+CydDauznDRegnMzZMkVOOweji 5HjaFPGSN2rPEu0Tje28+ns2HvBP9CnqJV/lD91xwstWhNr2VD1Qz6EGyDKM3txRCIwn 9/zeEFEm7zobXUX9ss4YSAQgYcS/NLXlyPEYk7YiZRQAGhYS3C0kGiQ9gR58F/iEtnWt FX4Q== X-Gm-Message-State: AGRZ1gKLSDBbQXpjyI8Ow+kNN+a6t9xwqSMZW2uzYoURzBacOmYnUCsp bcAMkh87HlDPHwoWr35uXKZ5kori78A= X-Received: by 2002:ab0:5b51:: with SMTP id v17mr273755uae.105.1540938619301; Tue, 30 Oct 2018 15:30:19 -0700 (PDT) Received: from mail-vk1-f181.google.com (mail-vk1-f181.google.com. [209.85.221.181]) by smtp.gmail.com with ESMTPSA id 131sm642238vko.28.2018.10.30.15.30.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Oct 2018 15:30:19 -0700 (PDT) Received: by mail-vk1-f181.google.com with SMTP id y14so748588vkd.1 for ; Tue, 30 Oct 2018 15:30:18 -0700 (PDT) X-Received: by 2002:a1f:8ac6:: with SMTP id m189mr251182vkd.79.1540938171170; Tue, 30 Oct 2018 15:22:51 -0700 (PDT) MIME-Version: 1.0 References: <20181029180707.207546-1-dianders@chromium.org> <20181029180707.207546-8-dianders@chromium.org> <20181030114603.xdvyvayzw2an5c3q@holly.lan> In-Reply-To: <20181030114603.xdvyvayzw2an5c3q@holly.lan> From: Doug Anderson Date: Tue, 30 Oct 2018 15:22:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 7/7] kgdb: Remove irq flags and local_irq_enable/disable from roundup To: Daniel Thompson Cc: Jason Wessel , Thomas Gleixner , Ingo Molnar , Greg Kroah-Hartman , linux-arm-msm , kgdb-bugreport@lists.sourceforge.net, kstewart@linuxfoundation.org, linux-mips@linux-mips.org, dalias@libc.org, linux-sh@vger.kernel.org, Benjamin Herrenschmidt , Will Deacon , LKML , mhocko@suse.com, paulus@samba.org, "H. Peter Anvin" , sparclinux@vger.kernel.org, linux-hexagon@vger.kernel.org, Stephen Rothwell , ysato@users.sourceforge.jp, mpe@ellerman.id.au, x86@kernel.org, Russell King - ARM Linux , Ingo Molnar , Catalin Marinas , jhogan@kernel.org, linux-snps-arc@lists.infradead.org, ying.huang@intel.com, rppt@linux.vnet.ibm.com, bp@alien8.de, Linux ARM , christophe.leroy@c-s.fr, pombredanne@nexb.com, Ralf Baechle , rkuo@codeaurora.org, paul.burton@mips.com, Vineet Gupta , Andrew Morton , linuxppc-dev , David Miller Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Oct 30, 2018 at 4:46 AM Daniel Thompson wrote: > > On Mon, Oct 29, 2018 at 11:07:07AM -0700, Douglas Anderson wrote: > > The function kgdb_roundup_cpus() was passed a parameter that was > > documented as: > > > > > the flags that will be used when restoring the interrupts. There is > > > local_irq_save() call before kgdb_roundup_cpus(). > > > > Nobody used those flags. Anyone who wanted to temporarily turn on > > interrupts just did local_irq_enable() and local_irq_disable() without > > looking at them. So we can definitely remove the flags. > > On the whole I'd rather that this change... > > > > Speaking of calling local_irq_enable(), it seems like a bad idea and > > it caused a nice splat on my system with lockdep turned on. > > Specifically it hit: > > DEBUG_LOCKS_WARN_ON(current->hardirq_context) > > ... and fixes for this this were in separate patches. They don't appear > especially related. Agreed that this is cleaner. Done for v2. -Doug