Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1352427pxk; Thu, 10 Sep 2020 13:17:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHLIMjXFAKe1WWS9/2Lk+mP8zHkz8pONjESqwXcwykz73NHLaAEePNG6E3z9kS263rO/7s X-Received: by 2002:a50:ee15:: with SMTP id g21mr11425785eds.47.1599769034770; Thu, 10 Sep 2020 13:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599769034; cv=none; d=google.com; s=arc-20160816; b=e+/3Vo1fRvomc3y5B21yCRlAzofihx8x9261lfY4Bpgxhb/bqc7yipOX+MANDqRdeR lwBaxT5b7yAQnaOwBQdNKG/hYl4E8syszEk5mQonNlLQRFk654VKcp9vBKA+TWD5I3ks CSno4fIDHzcJ4TcfeD0bwQkiBDcLDMUH+Xw3ViPmkpkcnMzm/5CfGHoJjVQD4BwBbr5y l6Ynx9Wc3/Wa3KQ4ZJ2vpcIBu2fxueH2nGOBjNCKFXIzBpPvHz5b5v6n5vTXj2RvwFim owj239DmLx2j6uLY6PFza4hwjiu3mH6NjogbKHhQGPwQGWYFAVut6/ChS3Mz2vWKfDPY erSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PIaw4viVscD0xciePTKoxfM/fPGxfckTUhgAPLwZWUs=; b=WAPuANxE9O++VNQCsz2zJmunTkdqZcL0mW4wmKJUd2HlL1SgoZ/XLK38NqOmMNAJfA B0FUY1180cCgE25JtqBDZYYW6PYDZLaXSROHj1L6g2MbGjWojn/5S63HRaui5gg5Mvk9 wzmSpw0/et8GRKydy45dUX4cNbK5WjjrEXW4uSOLYoaImgWWiFS6hBCEDiJyC6cZBxyZ Pwt/ea0oPz/QNl3FV/FNflv9Pw9Dw0OtEUN6EdwF3tB3Td/4X9WvwegGeuoKmQsGLvEu +pi/e91hH6T7Kf/ztJ6v1jBdAUhBOp4RLiBQpVMknWdgoosp150qWlYSIq9n1PA7eGD5 bcEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F3oiey2g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si4287186edt.233.2020.09.10.13.16.52; Thu, 10 Sep 2020 13:17:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F3oiey2g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726769AbgIJUN7 (ORCPT + 99 others); Thu, 10 Sep 2020 16:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726914AbgIJULU (ORCPT ); Thu, 10 Sep 2020 16:11:20 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D49FC061573; Thu, 10 Sep 2020 13:11:16 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id i17so7150236oig.10; Thu, 10 Sep 2020 13:11:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PIaw4viVscD0xciePTKoxfM/fPGxfckTUhgAPLwZWUs=; b=F3oiey2grTNpBYbsJEvFtUCJHyYz7k3lOnbE+yuhGY5ji8Bjbk6qzqq1WlUZLXCI7l KvC8/vqPXdHZUYMkYXA8/RpJvvWfnwrhYnPHOPFIwPN37r83hes12G8KnvEGrZRZD22r CSh1RdNpvb5xDXNX9/wuKRoI61zyo4wahZOwp9n79/K1whLaqHYrgCiwYxGGYGH4iGuw sdHE7sjomnaHm70GtcQuhqY1eH4sKOcsaBkTkOoKjntzVFwnoesE21cnArKlOioSBSJA G29iOiMrBmZqn1pGXrb44n65vkf6SU+towPk8Ky5JV43LPHvBuz0tckD0BC5mArzhOyW YKfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PIaw4viVscD0xciePTKoxfM/fPGxfckTUhgAPLwZWUs=; b=BpKAMaGHHw4MXQKZHW/k1BmEjlwS0oHL+cPJZ9hVJZ269I7IUujsKBVGAm/4v5JDwC TtP8EETY+5x85cL4wo570M1rIuHLrcFqXP82tYbDmibVQui8Thybi567XPUVd5PytUmw fP0BygGCTH+dyHNNIm9cKtXAaxyTxMiERoahwA+/CY3KZevG3z1z9Hb9qByfXPAHgeDS 7j/RoPZVXzthpCSCcgqwzJHtkUIGh1rbtSl+fSO1hOCX81SNlpA4Gc+PUJzlU4Etdasi SbZIP0+VJonn5jCaM9q62Q7Aiqcyh3MeazylstNZdSUIOQRR4Mv8qrDDKb/xe3tXpmVR zpGg== X-Gm-Message-State: AOAM533ZsCP1XRgXwcPqQ6kX+0Ix0Xqu+Vb8+dJEHE/PzesMwjFRq/6u 95H438MFz+YbVa59HVO7NfxgZ5PYF9SQPosll0OrrBshCMrElg== X-Received: by 2002:a05:6808:a05:: with SMTP id n5mr1139541oij.154.1599768675322; Thu, 10 Sep 2020 13:11:15 -0700 (PDT) MIME-Version: 1.0 References: <20200910161126.30948-1-oded.gabbay@gmail.com> <20200910161126.30948-13-oded.gabbay@gmail.com> <20200910130138.6d595527@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200910130138.6d595527@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Oded Gabbay Date: Thu, 10 Sep 2020 23:10:47 +0300 Message-ID: Subject: Re: [PATCH 12/15] habanalabs/gaudi: add debugfs entries for the NIC To: Jakub Kicinski Cc: "Linux-Kernel@Vger. Kernel. Org" , netdev@vger.kernel.org, SW_Drivers , Greg Kroah-Hartman , "David S. Miller" , Omer Shpigelman Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 11:01 PM Jakub Kicinski wrote: > > On Thu, 10 Sep 2020 19:11:23 +0300 Oded Gabbay wrote: > > From: Omer Shpigelman > > > > Add several debugfs entries to help us debug the NIC engines and ports and > > also the communication layer of the DL training application that use them. > > > > There are eight new entries. Detailed description is in the documentation > > file but here is a summary: > > > > - nic_mac_loopback: enable mac loopback mode per port > > - nic_ports_status: print physical connection status per port > > - nic_pcs_fail_time_frame: configure windows size for measuring pcs > > failures > > - nic_pcs_fail_threshold: configure pcs failures threshold for > > reconfiguring the link > > - nic_pam4_tx_taps: configure PAM4 TX taps > > - nic_polarity: configure polarity for NIC port lanes > > - nic_check_link: configure whether to check the PCS link periodically > > - nic_phy_auto_neg_lpbk: enable PHY auto-negotiation loopback > > > > Signed-off-by: Omer Shpigelman > > Reviewed-by: Oded Gabbay > > Signed-off-by: Oded Gabbay > > debugfs configuration interfaces are not acceptable in netdev. no problem, but can we have only these two entries: > - nic_mac_loopback: enable mac loopback mode per port > - nic_ports_status: print physical connection status per port nic_ports_status is print only (not configuration). nic_mac_loopback is to set a port to loopback mode and out of it. It's not really configuration but rather a mode change. If not, what's the alternative ? Thanks, Oded