Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16265581rwd; Mon, 26 Jun 2023 07:51:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46F9ymWOD3Mmfvlck5EtiS+7AKxvgU8etgX62A1kXFBYE33ARIT2A1QB3Jl3S4xbIdokQe X-Received: by 2002:a05:6a20:7f8c:b0:11a:f632:78fb with SMTP id d12-20020a056a207f8c00b0011af63278fbmr37540365pzj.19.1687791072315; Mon, 26 Jun 2023 07:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687791072; cv=none; d=google.com; s=arc-20160816; b=oOb9zp4WKHGpvJNQLj4zaxlUM4FYA0kGZZbwDglDphCJYdWA67alJ5A62+cBeX0DDX IQxJFu/NZ0DSbghiRAtv3Ux7loQUBAT8xLu4uqGsD16fQRLQMiFg+x6W9UGNzyGM/p9A FXgIFtufTazsGCXhAlv5kB00sfWjyGLnHLnNvyvkPinfT6mu8Lz5LIZ2zWhGm0a6YWQy XuZRf2AjcjlVWPhe0Fw+ptlteercaRZk+IvV2GyRZnTkXhLEXi4/4j6uH8hFn/kK5FpB p95TW0cpYgUl7CuLMxGU1flQ9fKfc0y3AuuH/VmR8Tkd4Z32gG/OcuQ67Ik1fNnko45N 5x3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sOo0XC/Y4flNUsbiJzBoRTnJAgB9VDv1XM+zJzFrca0=; fh=PIix1orkn/zgu+cPQWpWbTS4UR6PoUSRioabX47Y/Vs=; b=DM8UBZUk67hDEoWNpLG4W+iXpB56kmc4E0OW5RifHxqx9k4shJnqIvR0534RMNDnH5 8xnDQpc3HToVGvGtaCYwSyiG0VDEyAd4LuDUPU2e5lUDtsg5y6TEHTfmEtlUYxXRbLW7 F5lpuBYtcxMsXQ/l4g1CYZ3xieUlPB3BvhSjXNnY3gbeI96u9zzXuF/gzyD8I8SFHJOP T3gpOSISe0l1Inyk9AU86yLEnVW7A4WzBkWYjUaDYi6kQGu9HbMnv3R6Qbzr9C+Vj9ly ZWyY8Hgs5sXq5rfemHEcdk//IiFP20XvuFM4eoiw6669iPi5uJx6fzl1CzBBYlfoit3A 2q2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="QsW3/nHL"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020aa78895000000b00665ff626133si5163194pfe.348.2023.06.26.07.51.00; Mon, 26 Jun 2023 07:51: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=@linaro.org header.s=google header.b="QsW3/nHL"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229524AbjFZOaq (ORCPT + 99 others); Mon, 26 Jun 2023 10:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbjFZOao (ORCPT ); Mon, 26 Jun 2023 10:30:44 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F287498 for ; Mon, 26 Jun 2023 07:30:42 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fa71e253f2so39118335e9.0 for ; Mon, 26 Jun 2023 07:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687789841; x=1690381841; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=sOo0XC/Y4flNUsbiJzBoRTnJAgB9VDv1XM+zJzFrca0=; b=QsW3/nHLhkexzxGA0twe/x2qW+MofrKWc20XzfvTwk9ZpPAmfEi5ih1e5YIuIT2lNC tjzCItcBDxFEFpbD7plDyGkfJ6B6tktDh1RDsc6ybYsCUOAiNzUnoB7b3UCawebRTjP+ IoVoceQUvr2vN6a2MOQFkk1b5sL3SecejNjv+vqiS03ImU7+AJ6TLazciDLoJy1LmNi/ QDPMsiuJuIIhwrC2wnDBhy0BD7hQrTbGaXffjQQ/QtmqFhMAfZPpTXoSijvnZwqpNWbS O7tcEJhLj/e72X+eQkt3abY6eNBxVugwOG2ALiWE2YSEe8VNPf1Bl5GntO/vsmEX50nc 9ayg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687789841; x=1690381841; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sOo0XC/Y4flNUsbiJzBoRTnJAgB9VDv1XM+zJzFrca0=; b=ZTyknMNP2t6WJUZgqM7sfDRMdoYJPcvHv8Hq9srkG5AgrsADuSJPDgkua+QIZiJOUW XpEfFYHdRvV8794a4mbPAU8vw7jvT/JCnlcaqgpqx3nV2pEgTRrxsVlnE0VvaJTeGHaE zMtvRRtf7TWVo7KyEHkVrPhwd2ZTzbLhfEm6T9IePIUTTrq6Y/LtA05OgPc0JS2Osk43 v5QN6PnAGaDitPlU93e7Qllvw93/MJ6+NDMZrjy7/+eFyrmJuNjZjEGqZBfh9eTRd7rC S/6u+hWzuhc24qdyD9rkLseZfKZUSYfovr0jogk6VAnt9NTSUY/tTzmMtlztZJByvDXf Fafw== X-Gm-Message-State: AC+VfDwWkt4F+QixI4n5UmWAcW8narHojQkY0to18myrABy1qoXzvGqs fFQBnl3rO38Z6myOCec064Y/Kw== X-Received: by 2002:a05:600c:10d1:b0:3f7:a20a:561d with SMTP id l17-20020a05600c10d100b003f7a20a561dmr27638549wmd.8.1687789841362; Mon, 26 Jun 2023 07:30:41 -0700 (PDT) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id t15-20020a0560001a4f00b00313f676832bsm1380811wry.93.2023.06.26.07.30.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 07:30:40 -0700 (PDT) Date: Mon, 26 Jun 2023 15:30:38 +0100 From: Daniel Thompson To: Doug Anderson Cc: Mark Rutland , Catalin Marinas , Will Deacon , Sumit Garg , Marc Zyngier , 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 Subject: Re: [PATCH v9 6/7] kgdb: Provide a stub kgdb_nmicallback() if !CONFIG_KGDB Message-ID: <20230626143038.GB95170@aspen.lan> References: <20230601213440.2488667-1-dianders@chromium.org> <20230601143109.v9.6.Ia3aeac89bb6751b682237e76e5ba594318e4b1aa@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 On Thu, Jun 15, 2023 at 11:14:18AM -0700, Doug Anderson wrote: > Daniel, > > On Thu, Jun 1, 2023 at 2:37 PM 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... Yes, grabbing this one should be fine! Daniel.