Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp567875pxk; Wed, 16 Sep 2020 10:59:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbCNJO0q9XREDCxD9U/+trZET0eEMypEzeLG6UZkJH5LSPT6QiB3CyEZhzXWM6RDDV1PkH X-Received: by 2002:a17:906:4cd6:: with SMTP id q22mr26220989ejt.139.1600279187073; Wed, 16 Sep 2020 10:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600279187; cv=none; d=google.com; s=arc-20160816; b=J3cFFun20ra7XIxOZUpZ/m79/dIgXuYSw8c+jxYtpGh5pILun1pwh5lS+wKWCbQ4nP yt5Wp3neH0nQprBNQV9Rwt3xDdvv21wugI6tmVT1x8u6yeW1P5IFm0ybTt6RqiRo+173 s0mxJrhPykzuSNzJkm7BtKi0F+iDe8mVkisv6b0DOFzQOi5ILKtaGFwFbSKhmX6SMAt/ 7+sduMO0ypuuopE5XRPUK2P0VKPW3SoTSRIKeq9IYebzRx91pKYmJotp09woSH9v5z2/ hPLsqO4+lZGfAD267rd3bc4zIlxYMr/ODqRLljrkS+KzCJWUEL7APzQjyxayjNa8X3wr McgQ== 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=bThVR/06t3Jva7EqLE8Eg07FMC6YVWHZznDF3xBBtIQ=; b=VaSMrsp+w8pvEBECcT+ZH8opZ8k6echc7eAxioY6EX8Zv3OAnetvRVr1s2oGec6QSl yoXqyrDUsoNCfYflsfP16MYpUtZIwgFUjMwGdtK4xJCF4WoSqktqID2k4wgncw4LYhEF wsJd6qA7MYyDKHfl+FM9IjxoJacIew8uKLJuMG8GYVKfdTTeszhe1QsA6082KkZVUFsT YFmrmef1QYggK7jqDggVXJyAKLpHUBOgnaA9FcEBxqG8lzAwtpLUrNz6Fq3OQQ7Jkx8w Ovo5PYctay98fpLiu+dy5hgUxTT6hF7Wn6xtsnMlDaeD+CSc+ZCUWdZoakCJEQbbSnk6 IlNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=feZ82Zrs; 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 gv24si12106530ejb.258.2020.09.16.10.59.24; Wed, 16 Sep 2020 10:59:47 -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=feZ82Zrs; 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 S1727650AbgIPRz6 (ORCPT + 99 others); Wed, 16 Sep 2020 13:55:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:45736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727648AbgIPRzb (ORCPT ); Wed, 16 Sep 2020 13:55:31 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.4]) (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 36ED3222EA; Wed, 16 Sep 2020 16:38:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600274322; bh=rflpX5n+9OObJA8GzIUK1V/BxsZIGf+Dt4zGo4jzs5A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=feZ82ZrsZ+ZgI7uB+wqDcLOBx6pjp6unANhcnBAzF9+sdsU3ARzjL9H7JLe9QGque +wuBy8qGITyz3UwWl3YRcdpq6I1S62IGvfKL+NpNxFtqQTCNWSPPmiWOohbKSHGMbg e1uVVBB8xaUDjBGEwRq5hxKzu0uzlfudWwfFS5/8= Date: Wed, 16 Sep 2020 09:38:40 -0700 From: Jakub Kicinski To: Oded Gabbay Cc: Omer Shpigelman , "Linux-Kernel@Vger. Kernel. Org" , "netdev@vger.kernel.org" , SW_Drivers , Greg Kroah-Hartman , "David S. Miller" Subject: Re: [PATCH 12/15] habanalabs/gaudi: add debugfs entries for the NIC Message-ID: <20200916093840.27112c98@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> <20200910131629.65b3e02c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200910133058.0fe0f5e3@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200914095018.21808fae@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 Tue, 15 Sep 2020 15:57:16 +0300 Oded Gabbay wrote: > On Mon, Sep 14, 2020 at 7:50 PM Jakub Kicinski wrote: > > What's the use for a networking device which only communicates with > > itself, other than testing? > > No use, and we do have a suite of tests that runs from user-space on > the device after we move the interfaces to loopback mode. > The main problem, as Omer said, is that we have two H/W bugs: > > 1. Where you need to reset the entire SoC in case you want to move a > single interface into (or out of) loopback mode. So doing it via > ethtool will cause a reset to the entire SoC, and if you want to move > all 10 ports to loopback mode, you need to reset the device 10 times > before you can actually use that. > > 2. Our 10 ports are divided into 5 groups of 2 ports each, from H/W > POV. That means if you move port 0 to loopback mode, it will affect > port 1 (and vice-versa). I don't think we want that behavior. > > That's why we need this specific exception to the rule and do it via > debugfs. I understand it is not common practice, but due to H/W bugs > we can't workaround, we ask this exception. Are those tests open source? Are you sure you need this upstream? Are your users going to run those tests?