Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2810249rwb; Mon, 7 Aug 2023 04:04:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjY8o0+EUVBEBe1KIJR1daNWVxcplI72Vg95qFd9jKh9sDaII4QbVNH5JB9pi/Etl0fq4w X-Received: by 2002:ac2:5f59:0:b0:4f6:2317:f387 with SMTP id 25-20020ac25f59000000b004f62317f387mr5205490lfz.35.1691406252080; Mon, 07 Aug 2023 04:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691406252; cv=none; d=google.com; s=arc-20160816; b=UWH+9dS3Y+wDOnQ9lyGMN4y1cHSn++1fWpcSlGrEIYPGNnQWRWQCjIBKT5PE+T4rzD X7Tv43X0QmmjzThnDqD4Q2vA94CjPMvC6kGrR0kT4Ts1cQL3r9Zy2gI2sx8/pxk8cVmw zLcRs2AYceWQ6nsb6kGnsGetYHGxbqJvPQw9O6k0aJVcPhhX2xivSBxQkTrVG9pzKr2g +BuSqCGfhR9akgkkHpjFJAuJjHy+FTSRLwOqRhnZoBjXyp9S+s9/P+W7UPwASa/pxH61 G2uaRZ50Zq4sP9gSqspFOu9ohNU40BH7TIb+mu8CSiPwWsWcawWGSoDGW7zWyCBiYyi4 jjJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=bkh9W+9oFz1h89zfc80Gdiveqp+Ndsij2w5D5I3C600=; fh=SK5Itg49Qd3eAPVC5Fp2XpUHle09ehKRlydxl7jJmLI=; b=aWlPerV3+VdTyBOrqdkTaIoyo5hnk1QpkwagPj3oLX6hJwZSnYQbKx0xiljVH/qKrG ynlyCkaRX9usrOhTINBLpF+FoO89rt7OZPZlio/86T69EUU5WrZdBApFFVFU3456qvmV q3hk+YCriDn0d/YlnD/iFtcUBpiN+mdDGED6cvyqUv5zyYPlhwsCyCz2z7FNzHsnHCGR RGRiWfZbrfa46febcWfZjA43UnjKc8ifeymCvBR0rAJ/Ao/r4FvneSDDxR3y3WjBtvuV iSRhXTzA81jVJDWyvxfRTucsdjDl1E9qEg0v5yywaw6iisb19QhMtDTHEkEMAI4gtYDk 3CPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTR4HktO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a056402344f00b00522cf82d56asi4915466edc.115.2023.08.07.04.03.38; Mon, 07 Aug 2023 04:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XTR4HktO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230078AbjHGKsp (ORCPT + 99 others); Mon, 7 Aug 2023 06:48:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjHGKso (ORCPT ); Mon, 7 Aug 2023 06:48:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FC4419B0; Mon, 7 Aug 2023 03:47:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A6D16617A0; Mon, 7 Aug 2023 10:47:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3C07C433C7; Mon, 7 Aug 2023 10:47:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691405227; bh=UAackwL7UM7HgpYl/6xaBi50e0epZnNRDwJYOlZupq4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XTR4HktOiAPHWP3h5fhk2wD4UGXcszx/1wmiz0cTUw4hgJdMG/oBFXfBL5g8PRXDm yLyTKTnw9g7BoWrTvMncRJn8LkXHzRuxipnZVjx0vFvcXrqT4eR86TG5LTl5tNbObo xJQ/FGp3frhFh6/f8dqgOoKdt8ON2EbmmdwfHh1i08coEHUQBuFyz/x83TcE1yqtjt 7TqWEYZDHjUKH3kW5qO6/n6uSTXpZqFvYnjjmhqi5LD4LAJSCsEkKcRIcR2CCWQAgo Gs1ws/3JxfY+LKKLeFt9C8F81JN/6L0Q0raPKMl4v1iHyjfJxQnAsOOrha9B/6u7Tz 9Y1H3yabnBsiw== Received: from disco-boy.misterjones.org ([217.182.43.188] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qSxlQ-002nFK-Gz; Mon, 07 Aug 2023 11:47:04 +0100 MIME-Version: 1.0 Date: Mon, 07 Aug 2023 11:47:04 +0100 From: Marc Zyngier To: Mark Rutland Cc: Douglas Anderson , Catalin Marinas , Will Deacon , Sumit Garg , Daniel Thompson , linux-perf-users@vger.kernel.org, ito-yuichi@fujitsu.com, Chen-Yu Tsai , Ard Biesheuvel , Stephen Boyd , Peter Zijlstra , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, kgdb-bugreport@lists.sourceforge.net, Masayoshi Mizuma , "Rafael J . Wysocki" , Lecopzer Chen , Wei Li , linux-kernel@vger.kernel.org Subject: Re: [PATCH v9 7/7] arm64: kgdb: Roundup cpus using the debug IPI In-Reply-To: References: <20230601213440.2488667-1-dianders@chromium.org> <20230601143109.v9.7.I2ef26d1b3bfbed2d10a281942b0da7d9854de05e@changeid> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 217.182.43.188 X-SA-Exim-Rcpt-To: mark.rutland@arm.com, dianders@chromium.org, catalin.marinas@arm.com, will@kernel.org, sumit.garg@linaro.org, daniel.thompson@linaro.org, linux-perf-users@vger.kernel.org, ito-yuichi@fujitsu.com, wens@csie.org, ardb@kernel.org, swboyd@chromium.org, peterz@infradead.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, kgdb-bugreport@lists.sourceforge.net, msys.mizuma@gmail.com, rafael.j.wysocki@intel.com, lecopzer.chen@mediatek.com, liwei391@huawei.com, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On 2023-08-07 11:28, Mark Rutland wrote: > On Thu, Jun 01, 2023 at 02:31:51PM -0700, Douglas Anderson wrote: >> From: Sumit Garg >> >> Let's use the debug IPI for rounding up CPUs in kgdb. When the debug >> IPI is backed by an NMI (or pseudo NMI) then this will let us debug >> even hard locked CPUs. When the debug IPI isn't backed by an NMI then >> this won't really have any huge benefit but it will still work. >> >> Signed-off-by: Sumit Garg >> Signed-off-by: Douglas Anderson >> --- >> >> Changes in v9: >> - Remove fallback for when debug IPI isn't available. >> - Renamed "NMI IPI" to "debug IPI" since it might not be backed by >> NMI. >> >> arch/arm64/kernel/ipi_debug.c | 5 +++++ >> arch/arm64/kernel/kgdb.c | 14 ++++++++++++++ >> 2 files changed, 19 insertions(+) > > This looks fine to me, but I'd feel a bit happier if we had separate > SGIs for > the backtrace and the KGDB callback as they're logically unrelated. Well, we're a bit stuck here. We have exactly *one* spare SGI with GICv3, as we lose 8 of them to the secure side. One possibility would be to mux some of the lesser used IPIs onto two SGIs (one with standard priority, and one with NMI priority). M. -- Jazz is not dead. It just smells funny...