Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4863843ybg; Mon, 21 Oct 2019 16:01:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzX4Cp2qFEEU7g1akwe+Ebz+5GrtIWX7ikdBko/zqQBicfSbU9tNP18yYQqSpONcxU3ujPP X-Received: by 2002:a17:906:6b88:: with SMTP id l8mr24633615ejr.26.1571698886767; Mon, 21 Oct 2019 16:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571698886; cv=none; d=google.com; s=arc-20160816; b=0HE+/JZ3V5fdvnkP2tWf3neTaD8TTsCmKWbhvoNNtJZYojUvb3y90n/CWd9C1/RPOx ahxMUJ8X/OguheoNZ/noF/bFBLVjx79dSf6b3iyihkKJvIkd3xcHkEMFHNy3XIQdjEi1 AKGfbgCHumGN4ZNaRwLxc65X+NQIVJHeQKFIvWKCLoN410Z9S1vxcjhSC4k427ZPQHsa uo2kfb0UNECHrJDOlvimDtTQbxr6p41pzDhM4A3nx4ZAbMFzz8d4R4MS+3OExriyt7pB M9/q2FargRB7Q1Beyp/OziWCfgDbMoKd+8wE/24i+nM7iayvJaSW1cQjBNZp/5JSp6/J mWlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=SURSLeTSL7wuoZg4pBrgsadycsCRF2eCp03BsgMlMG0=; b=0x3LR+AKaSjmNfvBM35n/iB8IdRWQQIw2/CtkdRJO4o5InqLjlKBVHedl/Lmg09c+L /wAlddEZ7yJhDwZMLJ7+BCspTz6J44h+BT4eqqE3zEL5zzgtk/TTa/aYpPT60NDHFxlZ jKLEZp8txe72H7QASgNWZUPEimb4FeafrzywjUUNGXIJ1JguhRnABSo0qyC8I2jKZuC9 TVLmpGTl1qU4NCicoZitZCGFusH7/V7EpHSMguHFJqvYjUucKaBB6oOX007nD2pm36/Z AO9odrMfkGemfmgO8RgOCg7rn2+yzVAdZ9NAFzXsOBe3y7oaFGaiCC9fsxppG//+OQ57 GZMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=Meag7SAC; 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 s7si10993758edd.290.2019.10.21.16.01.03; Mon, 21 Oct 2019 16:01:26 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=Meag7SAC; 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 S1730276AbfJUXAc (ORCPT + 99 others); Mon, 21 Oct 2019 19:00:32 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33738 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730350AbfJUXAc (ORCPT ); Mon, 21 Oct 2019 19:00:32 -0400 Received: by mail-pf1-f195.google.com with SMTP id q10so9381799pfl.0 for ; Mon, 21 Oct 2019 16:00:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=SURSLeTSL7wuoZg4pBrgsadycsCRF2eCp03BsgMlMG0=; b=Meag7SAC6vW6yZS/oje7Wm85r+tkPnshrrX39endzp5QbpqHafCu2b5AXixNaxzyr2 T0exF/nmDvNL6CK8t1HHVa/h+HdJSIQk/eVvIaVSUfJrmllzSibBHLek3MEJ+3WTpwFQ WNIOZv+NBWPOWfhffKEsVZc57W2r5RaQfk/xalhlm0MVkqj84GnTsmODiBjry3GbaDNR hEiAeZh/gdpzHD2Ky2Rdr/LbKFtZkBaOceFV/qRATTFS7WowRiOOo6AuhX77xP0w62Ul mjKL9ho2bijjXbK3kF5O2f3TT3ctDRA1oJf8dvFieS2zbAHUiF5n76su+tUwwvUiYTpH sQFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=SURSLeTSL7wuoZg4pBrgsadycsCRF2eCp03BsgMlMG0=; b=bnnTeUd3pd/dN5Kym+lXTyDelVlrYhIQ5fC5vss3BdQ48744v4F6/E3WZiZEKJZHWE JafaNITDpuX/wbcx8O05BYQMlYa/9OH/CWzeJHAFQoBpc5KaDkLmf0sKOwYMO62YTbI0 OY6W7zt5POL2JCCX8VmwDTgMLWIDuqQkXFopwD60kURLXXAK2BhdDlFBRZAmK3uzdxDq eBEukbaYJODaf+aNe87dJRMnUT88pVWTlPS1I8XchUTKSYY6xr7K3U/roNfzyhvR/454 DY5XxBo/9mfAan3Hk04ZrnVzflxFrlsTVTanYSo4HJYdFUStELfWheg7dbGD3bqt+uJo IspQ== X-Gm-Message-State: APjAAAUftw0vnztbUU97haOkOdqNZWI+zZKjtx23ArbOvqbeniSHgXHP iT4g5LF6hlNbtDe+gQ5HUqcJGg== X-Received: by 2002:a63:18d:: with SMTP id 135mr328237pgb.326.1571698831249; Mon, 21 Oct 2019 16:00:31 -0700 (PDT) Received: from cakuba.netronome.com (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id a16sm16448156pfa.53.2019.10.21.16.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 16:00:30 -0700 (PDT) Date: Mon, 21 Oct 2019 16:00:26 -0700 From: Jakub Kicinski To: Vasundhara Volam Cc: Sheetal Tigadoli , =?UTF-8?B?UmFmYcWC?= =?UTF-8?B?IE1pxYJlY2tp?= , Greg Kroah-Hartman , Michal Simek , Rajan Vaja , Scott Branden , Ray Jui , Vikram Prakash , Jens Wiklander , Michael Chan , "David S. Miller" , Vikas Gupta , Linux Kernel Mailing List , tee-dev@lists.linaro.org, bcm-kernel-feedback-list@broadcom.com, Netdev Subject: Re: [PATCH V2 3/3] bnxt_en: Add support to collect crash dump via ethtool Message-ID: <20191021160026.18b3491e@cakuba.netronome.com> In-Reply-To: References: <1571313682-28900-1-git-send-email-sheetal.tigadoli@broadcom.com> <1571313682-28900-4-git-send-email-sheetal.tigadoli@broadcom.com> <20191017122156.4d5262ac@cakuba.netronome.com> <20191018100122.4cf12967@cakuba.netronome.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Oct 2019 10:05:18 +0530, Vasundhara Volam wrote: > On Fri, Oct 18, 2019 at 10:31 PM Jakub Kicinski wrote: > > On Fri, 18 Oct 2019 12:04:35 +0530, Vasundhara Volam wrote: > > > On Fri, Oct 18, 2019 at 12:52 AM Jakub Kicinski wrote: > > > > On Thu, 17 Oct 2019 17:31:22 +0530, Sheetal Tigadoli wrote: > > > > > diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c > > > > > index 51c1404..1596221 100644 > > > > > --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c > > > > > +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c > > > > > @@ -3311,6 +3311,23 @@ static int bnxt_get_coredump(struct bnxt *bp, void *buf, u32 *dump_len) > > > > > return rc; > > > > > } > > > > > > > > > > +static int bnxt_set_dump(struct net_device *dev, struct ethtool_dump *dump) > > > > > +{ > > > > > + struct bnxt *bp = netdev_priv(dev); > > > > > + > > > > > +#ifndef CONFIG_TEE_BNXT_FW > > > > > + return -EOPNOTSUPP; > > > > > +#endif > > > > > > > > if (!IS_ENABLED(...)) > > > > return x; > > > > > > > > reads better IMHO > > > Okay. > > > > > > > > > > > But also you seem to be breaking live dump for systems with > > > > CONFIG_TEE_BNXT_FW=n > > > Yes, we are supporting set_dump only if crash dump is supported. > > > > It's wrong. > > Sorry not very clear. You are saying that support set_dump all the > time and return error, if the config option is not enabled? If yes, I > will modify the same way as it makes sense. Yes, I think users can expect that set will work even if there is only one dump type/flag supported. Technically implementing the set is not required from functional perspective, however, we could imagine software that always does a set before a get, and the set should not fail.