Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1875175ybh; Tue, 14 Jul 2020 09:30:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX9zjuj48kz5JpKZWWtG07tLRgW5Zoig751Nm95qn4+CngtsXQcg55KfwdwUF1udskWnEC X-Received: by 2002:aa7:c98d:: with SMTP id c13mr5259879edt.188.1594744200276; Tue, 14 Jul 2020 09:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594744200; cv=none; d=google.com; s=arc-20160816; b=svdwzDy/A5gAuAFoe5hx2yMRNSP4wmGyGjsasilR8rW9uz/Ztcn0/TkR4THcRCT3ob d4P5w2oApKTcjMpcYd0SlmDcCcKHTDa7zkbPmNhTjgvtVzIQIKxSHbDCFlbtpYQJqSgk n9yu34JmPZcB+i38x32dPyUxUGy07vyfZvQGPVgZtkY0jAPa6QzXun7xvHcccRPT6Hun L8TSBm8BZfdEewDatnX/ux9Uy6ivmDDwyXzoumPQYPlGhzUpvW0DcmYcefCbT09ZnAqZ iBrBo7UdK6+dtzRejA2TCzOWyKw7k83EBXbnJqZJr3/qC+OzOPC+ninSFozi07zRhFEr zY+w== 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=dZqgKao3PXSjkf6MGJF8JvOcEjn5hOoYhfmuThMCPnc=; b=E+lDVdGwH6UDSuoZoYHMQqDtsgFUJDXuiQ8p5D6KcL+pUQTEp9p5DSbdfQqoYC9mkt i0rXKj7E9dczYG9eHo96M1tmyRTTFhU1DZ1gzzyUyfbsJbrPmC9LCx5fes2YaLSMp73D 7VzhKu01dWEQgqzEyq4vl512YWvjhBXqK68KI2BpqGotjmpdt8+AK36dAVxUBjGGWHUQ Atz1CsSMepZurp4oerZj3KAMzZEYkxJg3kKgPIuJY9PDWjTmP/c1Yb195LN95H/qj7Mi 8HpBxXqtZb0P6qndGi5Xk6eOITsUKGaizsmcTn73QBYIapdEAVxdh3ZrhB4wbjiFq0R6 kUtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="SsC/k4KH"; 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 v18si11578606edy.249.2020.07.14.09.29.36; Tue, 14 Jul 2020 09:30:00 -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="SsC/k4KH"; 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 S1728688AbgGNQ3F (ORCPT + 99 others); Tue, 14 Jul 2020 12:29:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:52692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725890AbgGNQ3F (ORCPT ); Tue, 14 Jul 2020 12:29:05 -0400 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.1]) (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 B70D8223AB; Tue, 14 Jul 2020 16:29:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594744145; bh=4odRCreeBpRWf9k9xWiKzOUUUo8g02gshG5+keJQUpI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SsC/k4KH0RiKnJyANHzdOQq2xkfSIzMcUbenVPrxpqUdLls+fCuP/Te4F3n2mT6ES Ksiq2dUy9HseBQclYz3xZf23DYiDtkE3PciLBNK4A248cYbmVaCAc4KLQ/LyYNx6o1 tOvT3MOvsF7BlEZ4t/IRK7luPGIQAsZR1fodbsXo= Date: Tue, 14 Jul 2020 09:29:03 -0700 From: Jakub Kicinski To: "Westergreen, Dalon" Cc: "Ooi, Joyce" , "See, Chin Liang" , "linux-kernel@vger.kernel.org" , "Nguyen, Dinh" , "davem@davemloft.net" , "thor.thayer@linux.intel.com" , "Tan, Ley Foon" , "netdev@vger.kernel.org" , Michal Kubecek Subject: Re: [PATCH v4 09/10] net: eth: altera: add msgdma prefetcher Message-ID: <20200714092903.38581b74@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <3bcb9020f0a3836f41036ddc3c8034b96e183197.camel@intel.com> References: <20200708072401.169150-1-joyce.ooi@intel.com> <20200708072401.169150-10-joyce.ooi@intel.com> <20200708144900.058a8b25@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20200714085526.2bb89dc6@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <3bcb9020f0a3836f41036ddc3c8034b96e183197.camel@intel.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, 14 Jul 2020 15:58:53 +0000 Westergreen, Dalon wrote: > On Tue, 2020-07-14 at 08:55 -0700, Jakub Kicinski wrote: > > On Tue, 14 Jul 2020 14:35:16 +0000 Ooi, Joyce wrote: > > > > I'm no device tree expert but these look like config options rather than > > > > HW > > > > description. They also don't appear to be documented in the next patch. > > > > > > The poll_freq are part of the msgdma prefetcher IP, whereby it > > > specifies the frequency of descriptor polling operation. I can add > > > the poll_freq description in the next patch. > > > > Is the value decided at the time of synthesis or can the driver choose > > the value it wants? > > It is not controlled at synthesis, this parameter should likely not be a > devicetree parameter, perhaps just make it a module parameter with a default > value. Let's see if I understand the feature - instead of using a doorbell the HW periodically checks the contents of the next-to-use descriptor to see if it contains a valid tx frame or rx buffer? I've seen vendors abuse fields of ethtool --coalesce to configure similar settings. tx-usecs-irq and rx-usecs-irq, I think. Since this part of ethtool API has been ported to netlink, could we perhaps add a new field to ethtool --coalesce?