From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E897FC433DF for ; Thu, 15 Oct 2020 11:06:20 +0000 (UTC) Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62F062072D for ; Thu, 15 Oct 2020 11:06:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="pLOQ8l/K" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 62F062072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=driverdev-devel-bounces@linuxdriverproject.org Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B684B87403; Thu, 15 Oct 2020 11:06:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SFiZaRvy7rqC; Thu, 15 Oct 2020 11:06:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3CE6D87407; Thu, 15 Oct 2020 11:06:19 +0000 (UTC) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8D7E61BF3E8 for ; Thu, 15 Oct 2020 11:06:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 88F162E620 for ; Thu, 15 Oct 2020 11:06:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Bs38n+YdMSt for ; Thu, 15 Oct 2020 11:06:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pj1-f65.google.com (mail-pj1-f65.google.com [209.85.216.65]) by silver.osuosl.org (Postfix) with ESMTPS id 7E5AE2E645 for ; Thu, 15 Oct 2020 11:06:12 +0000 (UTC) Received: by mail-pj1-f65.google.com with SMTP id a17so1637265pju.1 for ; Thu, 15 Oct 2020 04:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3agPMtqAij1qga3Qozc4HBm1uOcDmeRGeVCYjoCjyCc=; b=pLOQ8l/K7RgbgufocZ1NX2e0Ob/lMxvs2pThx5xdcjy7ggXY/fm1e+RWG1WbuqJkOE f8bmhjW7x9DYWEeuLbn0nX1VhyNcPQH9XgIPweNJT2mTBgRqTa7mWwzkQ8tFtfO3OmQr tqavvNlCC+yizHYNa7H4taKHnwHAUHEytGfa9CSr6ZQz9uWmBS4TXLYLQWnPGUWkQSpd XCoLRKJIIBrLbxTaQTX7i9qMT4Gvayv8uQUzbTsyy3G3dFHaWWsV5OkbnfOSsi+B1iaH VFTJd2/RQaYMMI2bAnITzJcZ+20h5A5lDoxxPBtC8S4zuwe1JtEkyXeXoxXmVISsOh6s Tbmw== 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:references :mime-version:content-disposition:in-reply-to; bh=3agPMtqAij1qga3Qozc4HBm1uOcDmeRGeVCYjoCjyCc=; b=PdX+ZBKRKADBK5LiWSt4Ag55N8U1McNe0cL6a/mwEj2OWgqyIYP5bXwO2T8YcWMnsy V/XIFbxVPVEU9VQRM9suQBTMhVQILrkkaD2tEXCrJlHh1dWn1BTyQ51S5UkNJk1De6b5 Y0kyRpePg8VxVC0SbI8Feyx0lAkLZdnxUY2yRtdjtJ8CaflLs1g6p+ANTtE9e4mSsvVc rBfFJWLBMUXYKk5lQTaMmfAMcMM/Edqj8H4bWuKEgnWeS/VsGBJeqa8gOKrDIGcqyJ8a FeyARfSdARTJMWr98rKR/+emf1lQ4rUt/ixU3wXx8Xh3lzM5/NWyhXAF7YDYRwOQQ7RN OmCw== X-Gm-Message-State: AOAM531j8cKmspi1HpS3wkCxmfqa5Z9Z+MKAuRJ5R7PyD/9YWKCi1AqU nOql3wDBdFq51rhDyJ3qYGk= X-Google-Smtp-Source: ABdhPJzWgXIZMNd4WB1mQHIPBb1vFqXu9LmmgWEvLfa6xvXx7x5G6+/sLIRGlqorcO1F8OGG/+w0LA== X-Received: by 2002:a17:90b:ed3:: with SMTP id gz19mr3852073pjb.53.1602759972000; Thu, 15 Oct 2020 04:06:12 -0700 (PDT) Received: from f3 (ae055068.dynamic.ppp.asahi-net.or.jp. [14.3.55.68]) by smtp.gmail.com with ESMTPSA id n203sm3253627pfd.81.2020.10.15.04.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 04:06:10 -0700 (PDT) Date: Thu, 15 Oct 2020 20:06:06 +0900 From: Benjamin Poirier To: Coiby Xu Subject: Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver Message-ID: <20201015110606.GA52981@f3> References: <20201008115808.91850-1-coiby.xu@gmail.com> <20201008115808.91850-2-coiby.xu@gmail.com> <20201010073514.GA14495@f3> <20201010102416.hvbgx3mgyadmu6ui@Rk> <20201010134855.GB17351@f3> <20201012112406.6mxta2mapifkbeyw@Rk> <20201013003704.GA41031@f3> <20201015033732.qaihehernm2jzoln@Rk> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201015033732.qaihehernm2jzoln@Rk> X-BeenThere: driverdev-devel@linuxdriverproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Driver Project Developer List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, "supporter:QLOGIC QLGE 10Gb ETHERNET DRIVER" , Manish Chopra , Greg Kroah-Hartman , Shung-Hsi Yu , open list , "open list:QLOGIC QLGE 10Gb ETHERNET DRIVER" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: driverdev-devel-bounces@linuxdriverproject.org Sender: "devel" On 2020-10-15 11:37 +0800, Coiby Xu wrote: > On Tue, Oct 13, 2020 at 09:37:04AM +0900, Benjamin Poirier wrote: > > On 2020-10-12 19:24 +0800, Coiby Xu wrote: > > [...] > > > > I think, but didn't check in depth, that in those drivers, the devlink > > > > device is tied to the pci device and can exist independently of the > > > > netdev, at least in principle. > > > > > > > You are right. Take drivers/net/ethernet/mellanox/mlxsw as an example, > > > devlink reload would first first unregister_netdev and then > > > register_netdev but struct devlink stays put. But I have yet to > > > understand when unregister/register_netdev is needed. > > > > Maybe it can be useful to manually recover if the hardware or driver > > gets in an erroneous state. I've used `modprobe -r qlge && modprobe > > qlge` for the same in the past. > > Thank you for providing this user case! > > > > > Do we need to > > > add "devlink reload" for qlge? > > > > Not for this patchset. That would be a new feature. > > To implement this feature, it seems I need to understand how qlge work > under the hood. For example, what's the difference between > qlge_soft_reset_mpi_risc and qlge_hard_reset_mpi_risc? Or should we use > a brute-force way like do the tasks in qlge_remove and then re-do the > tasks in qlge_probe? I don't know. Like I've said before, I'd recommend testing on actual hardware. I don't have access to it anymore. > Is a hardware reference manual for qlge device? I've never gotten access to one. The only noteworthy thing from Qlogic that I know of is the firmware update: http://driverdownloads.qlogic.com/QLogicDriverDownloads_UI/SearchByProduct.aspx?ProductCategory=322&Product=1104&Os=190 It did fix some weird behavior when I applied it so I'd recommend doing the same if you get an adapter. _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel