Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3806833imu; Mon, 10 Dec 2018 08:08:03 -0800 (PST) X-Google-Smtp-Source: AFSGD/WmiIOXErXEAwOCuWTeMb4g/IlRzFmSjjq8xBwhT+KayY1PwEedsvuVPeyaMdhZd7wy7xGq X-Received: by 2002:a63:f844:: with SMTP id v4mr11305680pgj.82.1544458083658; Mon, 10 Dec 2018 08:08:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544458083; cv=none; d=google.com; s=arc-20160816; b=BhVLR2ZVJz9N61yJfYbx79Wyq1LqVuWx2LOesqwNSXrQaQViFB7Ea4Hd5fHQF/sxC0 0yvUqfixNCso1onA8yStcZsc6Zj/BT5dt0ImMVedHohXl+/n3JBaN3bigKZ2KP5qyj4P wUkE3x7TMWfAL5DHOnQvFbcr9n9DJDgF5LxYoUn4IBXtOjhPdIc3foSnkQh+Y5ez8wS0 XKVM3ipJVRkIo2uqk+GdCvrWDBky/+yZc9/Afu6q1iK7kYHXyHWrbe2HzcTtfAy1gC9w i1JxZ1uezbuTWNRVg0ZKaJyjM3mS+nQ0UHFUtWf4NLbRXQ8LgXLJ12H4MCC4/MTuALKd Vr9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=4qePpmEWMcPoiFopvgFlIuSMU2i4BjB69v/pstfajRw=; b=kmZqqB353g0dA7mMKzaTF9cq9KYLys3/XH+aCaoCiLHDNKtipkXGUjKXL/k6fVkZLW 07Q448txTlTJLXKwtWTZJcmhnpULPbehfVk75mfYFaduQtBTpQpub5yLc/tsfR0SxAJ+ 0vJc99J2nz3FUbM+TTFMMZM39mwIEUT8F2OjLEvvIjPHhZicMdz0ywMCuLtHR81948SJ JaFJ2fxXTn5OCHOoO+s2eVqi/woIjPcAGsIUb5pCSy0pqKPDEPxM7Dmkv39kxVfWZqOP J/spp/XpRSYbfjv/46ngQD5eKMf+6m/7oApLfIberGNCen3sGJ9Zyj/giUIdiBv0dTpz pe3g== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si9973512pgj.73.2018.12.10.08.07.48; Mon, 10 Dec 2018 08:08:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727455AbeLJNus (ORCPT + 99 others); Mon, 10 Dec 2018 08:50:48 -0500 Received: from foss.arm.com ([217.140.101.70]:54278 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbeLJNus (ORCPT ); Mon, 10 Dec 2018 08:50:48 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B336E1596; Mon, 10 Dec 2018 05:50:47 -0800 (PST) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.113]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2AE5F3F575; Mon, 10 Dec 2018 05:50:42 -0800 (PST) Date: Mon, 10 Dec 2018 13:50:39 +0000 From: Catalin Marinas To: Doug Anderson Cc: mhocko@suse.com, Benjamin Herrenschmidt , linux-sh@vger.kernel.org, Peter Zijlstra , kgdb-bugreport@lists.sourceforge.net, Will Deacon , LKML , dalias@libc.org, paulus@samba.org, mpe@ellerman.id.au, "H. Peter Anvin" , sparclinux@vger.kernel.org, Daniel Thompson , Yoshinori Sato , linux-hexagon@vger.kernel.org, x86@kernel.org, Russell King - ARM Linux , Ingo Molnar , ying.huang@intel.com, jhogan@kernel.org, linux-snps-arc@lists.infradead.org, rppt@linux.vnet.ibm.com, bp@alien8.de, Thomas Gleixner , Linux ARM , christophe.leroy@c-s.fr, Vineet Gupta , linux-mips@vger.kernel.org, Ralf Baechle , rkuo@codeaurora.org, paul.burton@mips.com, Jason Wessel , Andrew Morton , linuxppc-dev , David Miller Subject: Re: [REPOST PATCH v6 0/4] kgdb: Fix kgdb_roundup_cpus() Message-ID: <20181210135038.GC4048@arrakis.emea.arm.com> References: <20181205033828.6156-1-dianders@chromium.org> <20181207174231.GD11961@arrakis.emea.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Doug, On Fri, Dec 07, 2018 at 10:40:24AM -0800, Doug Anderson wrote: > On Fri, Dec 7, 2018 at 9:42 AM Catalin Marinas wrote: > > On Tue, Dec 04, 2018 at 07:38:24PM -0800, Douglas Anderson wrote: > > > 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 > > > > FWIW, trying these on arm64 (ThunderX2) with CONFIG_KGDB_TESTS_ON_BOOT=y > > on top of 4.20-rc5 doesn't boot. It looks like they leave interrupts > > disabled when they shouldn't and it trips over the BUG at > > mm/vmalloc.c:1380 (called via do_fork -> copy_process). > > > > Now, I don't think these patches make things worse on arm64 since prior > > to them the kgdb boot tests on arm64 were stuck in a loop (RUN > > singlestep). > > Thanks for the report! ...actually, I'd never tried CONFIG_KGDB_TESTS > before. ...so I tried them now: > > A) chromeos-4.19 tree on qcom-sdm845 without this series: booted up OK > B) chromeos-4.19 tree on qcom-sdm845 with this series: booted up OK > C) v4.20-rc5-90-g30002dd008ed on rockchip-rk3399 (kevin) with this > series: booted up OK > > Example output from B) above: > > localhost ~ # dmesg | grep kgdbts > [ 2.139814] KGDB: Registered I/O driver kgdbts > [ 2.144582] kgdbts:RUN plant and detach test > [ 2.165333] kgdbts:RUN sw breakpoint test > [ 2.172990] kgdbts:RUN bad memory access test > [ 2.178640] kgdbts:RUN singlestep test 1000 iterations > [ 2.187765] kgdbts:RUN singlestep [0/1000] > [ 2.559596] kgdbts:RUN singlestep [100/1000] > [ 2.931419] kgdbts:RUN singlestep [200/1000] > [ 3.303474] kgdbts:RUN singlestep [300/1000] > [ 3.675121] kgdbts:RUN singlestep [400/1000] > [ 4.046867] kgdbts:RUN singlestep [500/1000] > [ 4.418920] kgdbts:RUN singlestep [600/1000] > [ 4.790824] kgdbts:RUN singlestep [700/1000] > [ 5.162479] kgdbts:RUN singlestep [800/1000] > [ 5.534103] kgdbts:RUN singlestep [900/1000] > [ 5.902299] kgdbts:RUN do_fork for 100 breakpoints > [ 8.463900] KGDB: Unregistered I/O driver kgdbts, debugger disabled > > ...so I guess I'm a little confused. Either I have a different config > than you do or something is special about your machine? I tried it now on a Juno board both as a host and a guest and boots fine. It must be something that only triggers ThunderX2. Ignore the report for now, if I find anything interesting I'll let you know. -- Catalin