Received: by 10.223.185.116 with SMTP id b49csp9018859wrg; Fri, 2 Mar 2018 11:51:36 -0800 (PST) X-Google-Smtp-Source: AG47ELtBKSOW0jucCVy/h23ONDRzjbpaivwS6BlrmmiBI74bsTDGcqc/HTghvfpTLxYF7Oe94I2c X-Received: by 10.98.13.24 with SMTP id v24mr6695765pfi.89.1520020296603; Fri, 02 Mar 2018 11:51:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520020296; cv=none; d=google.com; s=arc-20160816; b=OiL+DaXJO+wzguqrQtP84Nuit5uIAVXex3z1zPCJUsuJjIaf64j84gSqFEr59hVLcJ iVNUZegQD0RCDB89lnY9wwlmLj5DGtMQKbbnBdy8aoKE1XDDTcavPTt5h32IH/jx2/sr AJ5uOPEyxYfoe6EcgSkqN/L5JzkPx1jO5tummJjZMZNN64SXImGicNpCSqZpG3jnnyKo yPbcOvM3ZIy6WUBkT9LJ50Ai+AnGtERzusc8OP4VFPYjXgtbp1FrW1lIV4iDUi7uDzqi 8SvEfM40RdiLYOSk83TIGpSkdQrRBljHvLyWcU47tBq2tpaDqNLmTwOUzLSc8X7nUVQ6 bGcQ== 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=OYQIiRYJS3JeISIavxEki37rEp54Ca6O3MJuySO53BY=; b=A0HAxHbYdeyAY/X1eXYhgiiUQ0krSDztx1jcS2i3qEkydyQ9RiOqfPbvVrh/hbbgpl quzJ4tX9wZ4Qpr6PeyPTiTIswwLJobZTccr904mpTRTZQMEyo5Vbe0Nvx4Ek++fMaVxB 4/XjkLN5EKW490sO1sH3EZk+FZl3hi5PNsxL8ihPlUVRD+mJBDOhTULMSwMcF7iQpvi+ nXywa2rH16t7ip4LHlFyZsUp0EgF9U2rf+hqzw+tC37anhH1gjttUYT2k0E3vI6DPVHJ s1J77WoM/lcx5ENtHNCZ/68Fit3PWG2L9vsk+3UT+0/cOkLixDml8dka4yEb7ADiEumT ZxKA== 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 e91-v6si5260920plb.177.2018.03.02.11.51.20; Fri, 02 Mar 2018 11:51:36 -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 S936571AbeCBQeG (ORCPT + 99 others); Fri, 2 Mar 2018 11:34:06 -0500 Received: from mail.bootlin.com ([62.4.15.54]:38358 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936304AbeCBQeC (ORCPT ); Fri, 2 Mar 2018 11:34:02 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 306F5207E9; Fri, 2 Mar 2018 17:34:00 +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 shortcircuit=ham autolearn=disabled version=3.4.0 Received: from windsurf.lan (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id BD4E6206A6; Fri, 2 Mar 2018 17:33:59 +0100 (CET) Date: Fri, 2 Mar 2018 17:11:17 +0100 From: Thomas Petazzoni To: Antoine Tenart Cc: 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, nadavh@marvell.com, stefanc@marvell.com, 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: <20180302171117.2344a893@windsurf.lan> In-Reply-To: <20180302154044.25204-4-antoine.tenart@bootlin.com> References: <20180302154044.25204-1-antoine.tenart@bootlin.com> <20180302154044.25204-4-antoine.tenart@bootlin.com> 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 Fri, 2 Mar 2018 16:40:42 +0100, Antoine Tenart wrote: > -/* Initialize Tx FIFO's */ > +/* Initialize Tx FIFO's > + * The CP110's total tx-fifo size is 19kB. > + * Use large-size 10kB for fast port but 3kB for others. > + */ 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 ? 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 ? Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com