Received: by 10.223.185.116 with SMTP id b49csp1437401wrg; Sun, 4 Mar 2018 01:43:22 -0800 (PST) X-Google-Smtp-Source: AG47ELt3+uII/tJPon9ucf4krViA7lR7w3ds766n2WoBqNHVtPMypZGtZG7XDMx8ZjpV/tTqTtbw X-Received: by 10.101.76.134 with SMTP id m6mr9480189pgt.445.1520156602575; Sun, 04 Mar 2018 01:43:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520156602; cv=none; d=google.com; s=arc-20160816; b=cZwAm+qLsWTvMbxyO8KDU1LrOvZPXtoagf6DUImAnJWqecwFGHmYGJvxMBJzccYd8/ 7JW4FfQwTs8eUeODFWbsWIHmwK38psnArqyWlXyT6A9yKOGKrPeDGukcl7nes13Tc34L B8MZlj3C1ywmQyOtx6LNPniumOb1KICbUlCg8wqV7pjhMk6C3bPv5I7BV0TzjheTbyhA 8W8IwSH9sW7Z2g7AYa6wXeLhk0wOCDXN+ccrokkYJVvgT7xQreHgJM4Qv2Q46NkMsQAG Hq/qatUUMdX/dEVEdEI2C5AAun60ZAnsTt3YcavwMJsiUiHKWRy15GufUC+9rG9ub+l3 36Sg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=AvqBHNF3QHXVZnzmMxfIym5n2nWK4qjDR5Ft2s2DcLY=; b=Srh0opEtux+9G5hLKGgHcKBUpxgYue6agLJp9l2L7fAPFUQXnaCobfH4tT4ugFbfD6 +oL6vlhnSHdjX7NMoL8wFTy+eKXU6eQx060k9wVQ9jSjqrMT4jzz5JAuyoS6RIHrNYd8 +5U4sWIv7jhKPDz/fHnbcZlFYZjViIaa9OFTSsSIiIKJAqYPxFwwRA3qmFf0zJmqfJel hbPiGsIuejc4ArRn0uox0Lt8b/KJR398T69u8PDXrxcDMBUjW+yOXgj9HYshhVFaQwXw nS8mY/BIHmpgAxvEJsmbDCy+389BtgPIKM9nHuG6TvxHvg1W8VJIGAHLUTYu90pALbry tjHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si6757899pgq.471.2018.03.04.01.42.54; Sun, 04 Mar 2018 01:43:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbeCDJZX (ORCPT + 99 others); Sun, 4 Mar 2018 04:25:23 -0500 Received: from mail.bootlin.com ([62.4.15.54]:37875 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbeCDJZV (ORCPT ); Sun, 4 Mar 2018 04:25:21 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 0FE1320715; Sun, 4 Mar 2018 10:25:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from windsurf.home (LFbn-TOU-1-408-85.w86-206.abo.wanadoo.fr [86.206.234.85]) by mail.bootlin.com (Postfix) with ESMTPSA id 8DFE02036E; Sun, 4 Mar 2018 10:25:17 +0100 (CET) Date: Sun, 4 Mar 2018 10:25:18 +0100 From: Thomas Petazzoni To: Stefan Chulski Cc: Antoine Tenart , "davem@davemloft.net" , Yan Markman , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "maxime.chevallier@bootlin.com" , "gregory.clement@bootlin.com" , "miquel.raynal@bootlin.com" , Nadav Haklai , "mw@semihalf.com" Subject: Re: [PATCH net-next 3/5] net: mvpp2: use a data size of 10kB for Tx FIFO on port 0 Message-ID: <20180304102518.1963cb8a@windsurf.home> In-Reply-To: References: <20180302154044.25204-1-antoine.tenart@bootlin.com> <20180302154044.25204-4-antoine.tenart@bootlin.com> <20180302171117.2344a893@windsurf.lan> Organization: Bootlin (formerly Free Electrons) X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-linux-gnu) 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 Hello, On Sun, 4 Mar 2018 06:29:59 +0000, Stefan Chulski wrote: > > Is there a reason to hardcode 10KB for port 0, and 3KB for the other ports ? > > Would there be use cases where the user may want different configurations > > ? > > Design requirement are 10KB TX FIFO for the 10Gb/sec and 2.5KB for the 2.5Gb/sec. What is a "design requirement" ? Is it a HW design limitation ? > Since only port 0 support 10Gb/sec and ports 1&2 support up to 2.5Gb/sec. > I don't see any reason to change this configurations. > Also TX FIFO size could be set only during probe. > > > It's just that it feels very "hardcoded" to enforce specifically those numbers. > > > > Also, does it make sense to mention the CP110 here ? Is this 19 KB limitation > > a limit of the PPv2.2 IP, or of the CP110 ? > > PPv2.2 IP is part of 110 communication processor. Thanks, I know this :-) > Next communication processor will has different Packet processor or next generation of PPv2.x > Limit is PPv2.2 TX FIFO. So, the limitation has nothing to do with CP110 really, it's just a limitation of PPv2.2, and mentioning CP110 in the comment doesn't make much sense, correct ? Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com