Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1516037rwd; Thu, 15 Jun 2023 11:32:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7j9kzN9rhgyfgF0cO6o2WMGinSSHO8Q4IqwUfWSxWhfYNFEA7oIQpcsJ5Nb2sWvttmGgU3 X-Received: by 2002:a05:6808:d52:b0:398:5d75:c0ac with SMTP id w18-20020a0568080d5200b003985d75c0acmr48154oik.14.1686853935638; Thu, 15 Jun 2023 11:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686853935; cv=none; d=google.com; s=arc-20160816; b=bz1u//1/SZyz0qWm2trO4z3QCRlpNpEFKtTl+0SnMIyamotRHblu80jVX9FYl+7BOR Z/dcT0KrmpDDYIOTghLxh9yQhSEcnloFrF6GhNudJM33QtnSbgeKkAIUPbaUKvTN7eDI mFl36WmWjAytjFMsW7Nxnll4/WFy4eaphlm/mv7Tm5uJ2HWrknD13iGd9tBlUnhugpTt CQA9ZeM2f3cMKdNrdqqSuXqXqj7FY1WWZhmde9EE+eFzzFSgELQgE5YOzL/ZhNrczE1l t+3/RAsZ48xtaCKjah2tja7qx26XCBFOgvLnjwf3jlF/nZu6Qr5x4F9lMN95IOd2ZQQW Me9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=TyNYAJPbrsk4+kV6DyQJsOygOqO+LfaaaEVKNin4xFM=; b=oiWQ/huxRmQD+Dhzu7rZbs9mrYBGE0W8XD7WpP4i9EHYJAnBaXmyPOcSAczTQEwipJ jWVgv8Uja3QhIakySovIfu5bhzdqmmMZ/r4y9TYZa3wY90C6wK1JIWXOVVer7Z5uTYXC TvTrLxkN+4zakE7t7MF1JK8eKqPHsx5zfr8zOaq6HslLKOkIy6eiGWdQOzyaOo0UMBx6 SQ1sL4AKbgAx3ffBrIsXlUN/JIDgq49EP0hOiQL1INUmjZg5eFGGmNs0UjjUDlunxv+5 FVn3ARbw65pXfvVadQVpqoP8MF2IfyuUEp2FX9dYaooenu1lghY4oWE0b136kPatnLHM EnuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=FYscYYVs; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h64-20020a638343000000b0054fec1eb2d8si2445215pge.177.2023.06.15.11.32.02; Thu, 15 Jun 2023 11:32:15 -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=@chromium.org header.s=google header.b=FYscYYVs; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232638AbjFOSOh (ORCPT + 99 others); Thu, 15 Jun 2023 14:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjFOSOf (ORCPT ); Thu, 15 Jun 2023 14:14:35 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94FE010F7 for ; Thu, 15 Jun 2023 11:14:33 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b39bf8d5faso23873461fa.1 for ; Thu, 15 Jun 2023 11:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1686852872; x=1689444872; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TyNYAJPbrsk4+kV6DyQJsOygOqO+LfaaaEVKNin4xFM=; b=FYscYYVsxDxn/+cJkq4UPRu4HqpXyg4D3FwGUrOibNEdKQjSw0euEBZVPfDUR6DCTF vkHZnjSJ/0vBEzmEaoZxIeEdLo/1YMK0NSrE6B5UQI7tV6Eo1QmM2WT8kfbMRyFPerTx pThLyNJ5QnqnXo4JBtrlmlDufSHgtFuSMHWDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686852872; x=1689444872; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TyNYAJPbrsk4+kV6DyQJsOygOqO+LfaaaEVKNin4xFM=; b=Gwhh3+KimLgVtp7m7BAR6mAi9hszh3iFxN9eawwkHukQ/wIgBMPJw46TLb6M3AV0IL FSO9/KKycGolLck3FHaMdPB5vJ1DHJT6k4HYMfl2+IsQld0XHVMvjYTlPgL2c2jN51lW WUG/b5bibou9Gpz0vT2feEpn2KLnvYbmup2dLEuep3/F/7KhH7KYR74qfneL23YvkMol Woj1XGbJVfVXfK2hDruNiCgQ6wxdoOOh/VnEFDa9G3FscnWq/VisbIUkuN/Ct9tXyxO9 s4fICZm7+MwmhR24uDDFqoQYG7upDk5Rf0A/Z7awDpFRD5fN6SPTlCkbxczzskcOSzRL yAQQ== X-Gm-Message-State: AC+VfDyaE8W7k7QJ6NujR1G6uhJtMT5musop9HBqeCdqsJpLranR0fbX 8ycr/KnhNAsFjIdvnx2eRdxpf7aohK28xPd8/cSvj8Z7 X-Received: by 2002:a2e:9615:0:b0:2ac:7d3b:6312 with SMTP id v21-20020a2e9615000000b002ac7d3b6312mr200774ljh.22.1686852871888; Thu, 15 Jun 2023 11:14:31 -0700 (PDT) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com. [209.85.208.53]) by smtp.gmail.com with ESMTPSA id j10-20020aa7c40a000000b0051a315d6e1bsm233103edq.70.2023.06.15.11.14.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jun 2023 11:14:31 -0700 (PDT) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-51400fa347dso1447a12.0 for ; Thu, 15 Jun 2023 11:14:31 -0700 (PDT) X-Received: by 2002:a50:d697:0:b0:510:b2b7:8a78 with SMTP id r23-20020a50d697000000b00510b2b78a78mr101415edi.5.1686852871368; Thu, 15 Jun 2023 11:14:31 -0700 (PDT) MIME-Version: 1.0 References: <20230601213440.2488667-1-dianders@chromium.org> <20230601143109.v9.6.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> In-Reply-To: <20230601143109.v9.6.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> From: Doug Anderson Date: Thu, 15 Jun 2023 11:14:18 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9 6/7] kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB To: Mark Rutland , Catalin Marinas , Will Deacon , Sumit Garg , Daniel Thompson , Marc Zyngier Cc: 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 , Jason Wessel , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Daniel, On Thu, Jun 1, 2023 at 2:37=E2=80=AFPM Douglas Anderson wrote: > > To save architectures from needing to wrap the call in #ifdefs, add a > stub no-op version of kgdb_nmicallback(), which returns 1 if it didn't > handle anything. > > Reviewed-by: Daniel Thompson > Signed-off-by: Douglas Anderson > --- > In v9 this is the only kgdb dependency. I'm assuming it could go > through the arm64 tree? If that's not a good idea, we could always > change the patch ("arm64: kgdb: Roundup cpus using IPI as NMI") not to > depend on it by only calling kgdb_nmicallback() if CONFIG_KGDB is not > defined. > > Changes in v9: > - Added missing "inline" > > Changes in v8: > - "Provide a stub kgdb_nmicallback() if !CONFIG_KGDB" new for v8 > > include/linux/kgdb.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h > index 258cdde8d356..76e891ee9e37 100644 > --- a/include/linux/kgdb.h > +++ b/include/linux/kgdb.h > @@ -365,5 +365,6 @@ extern void kgdb_free_init_mem(void); > #define dbg_late_init() > static inline void kgdb_panic(const char *msg) {} > static inline void kgdb_free_init_mem(void) { } > +static inline int kgdb_nmicallback(int cpu, void *regs) { return 1; } What do you think about landing just ${SUBJECT} patch in kgdb right now so it can end up in v6.5-rc1? It seems like this series is currently blocked on Mark getting a spare moment and it seems unlikely that'll happen this cycle. If we at least land the kgdb patch then it would make things all that much easier to land in the next cycle. The kgdb patch feels like it can make sense on its own... -Doug