Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1353297pxk; Thu, 10 Sep 2020 13:18:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPVfuU/Di5dFmmmHIvOuKbvscjTUYFLeiCIYL9zXQz/OAU2UIY6Qr5RJhwr2hwzBWnQ0ej X-Received: by 2002:a17:906:3495:: with SMTP id g21mr10286887ejb.121.1599769126388; Thu, 10 Sep 2020 13:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599769126; cv=none; d=google.com; s=arc-20160816; b=zf6UjBW9QpBtjUfACE02Yyj5uovKkBBb9t0alJqGkV1dHTnNf08QTkgm6jvs6y8pv6 DtsEpCit92j+AXjdVzd+3C3DXYPM0bA77IGdo4Zy6Sy4g5CkVMo9HGOL+QxgaUKjo169 QWetoelqrCxa35wLMyfanMgRphaa5zdd/Wa9TR+3VvV+ljhz9Q+IoLO3w7SLSmJPC9Qx AmeZDOpesIuAcrUZ5xF0mjou9GsKaAHgDkDj2NSkJHF3qaPACNQNQyOqT743Zvjxn358 mdS/GMUprN70CGd7N6xldorPUO1ppWYA/kbqJ9sB/DJ3/ZfHj8K5ux8+EmMCfZ3rs4+e 682w== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=o4K1mW5h65RvuW5OkWE0BKExNbd2u+ts/5mNWI3L658=; b=zI65h9Ct+dBkf9uOTWtj/o7DJFLC26Ni7XPJNiTCc3xf+9UBLGuW9oB+LwPQshYLIP rolgAjcxLYneu14QDSUl4pYZZPz6ojq2NpF3mct7efLlBzyok/yFf1+OnbxwSeIgHM/q ubbv6Amqtd83Z57cueqm1OfzO3Mfy1fs9suFSQpLCq3hTOdHRmQk2nEmJbx+abLSvnyr YsCjP0MtrkNWsGMkFj6FjpGYXNZEZA/JJKp0O6vshDR4pLP8VUF/+1gdbF9Fc6YcCwiC lL7eiLTFhNZNTBdWegGsVqeJR5YN511ureLaLZ36wxadamvx7op973B2QuOLR70CKRuI 5VOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R0ywRp5P; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si4398756ejm.636.2020.09.10.13.18.23; Thu, 10 Sep 2020 13:18:46 -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=@kernel.org header.s=default header.b=R0ywRp5P; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726358AbgIJURW (ORCPT + 99 others); Thu, 10 Sep 2020 16:17:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:50538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbgIJUQc (ORCPT ); Thu, 10 Sep 2020 16:16:32 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F3F4020829; Thu, 10 Sep 2020 20:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599768991; bh=+Uwc5UahmuCFhZYlV/hX/DJpXr+j00ks6tpmwU4b/+M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=R0ywRp5PhyRlRa7RSxir2ngnqYoi6YEyGdS+oOk3SGir2W3zS9WIHBLY0a2fwhCkW 3SWTwsJGJBn431DFEutEp0ZnIYqfGVjjLbqH4npLKRvA3AjnacR3tTL8aypsep+On7 TTGGD5Ljqs5AWoVQulqRmz4S7GHwtBVRYf7LfwuE= Date: Thu, 10 Sep 2020 13:16:29 -0700 From: Jakub Kicinski To: Oded Gabbay Cc: "Linux-Kernel@Vger. Kernel. Org" , netdev@vger.kernel.org, SW_Drivers , Greg Kroah-Hartman , "David S. Miller" , Omer Shpigelman Subject: Re: [PATCH 12/15] habanalabs/gaudi: add debugfs entries for the NIC Message-ID: <20200910131629.65b3e02c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20200910161126.30948-1-oded.gabbay@gmail.com> <20200910161126.30948-13-oded.gabbay@gmail.com> <20200910130138.6d595527@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> 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 Thu, 10 Sep 2020 23:10:47 +0300 Oded Gabbay wrote: > 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). Doesn't seem like this one shows any more information than can be queried with ethtool, right? > 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. What is this loopback for? Testing?