Received: by 10.223.185.116 with SMTP id b49csp1324455wrg; Sat, 3 Mar 2018 22:32:56 -0800 (PST) X-Google-Smtp-Source: AG47ELunigniChGBCQwCYeqDc54uIAD05HTqAzoDkgP5Yux2a0/i2z7BqK/qsPAeyMgsd+LuNOY3 X-Received: by 10.98.233.3 with SMTP id j3mr11375446pfh.38.1520145176216; Sat, 03 Mar 2018 22:32:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520145176; cv=none; d=google.com; s=arc-20160816; b=QSrscpp5wyMVjqAAuFJLpmPJi6g/hsshbvW3wlOxckhQjFO+K5BX79zbySJQ61fOt8 ZZ3lYTQPDx2MnkiQQw0LgRKvFbebrVpY7YbdUJlP0w6fXvFodb+I8ZcrLw73hcK/WmX3 UHNw8ZS9ymVZrFNvkL0W+VE9dtxa0MNTS9RakSDXd9L6nLx48+tphynmZjudNq/h1X5k cSG3algJlwwJgIw1Xr1DPvnrjqudguV9xXRZP490TROusKvyArLPKnH38onQzgTwRuJ7 BI1myt2NYGj8pIuChVI7Qw2q6BaCtIq3lzO72Jjqh0hA3kJROl6E9JucvYxQHtj4FRwX cMrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :arc-authentication-results; bh=g7t5r87cuyNY7kvoa03Cq/HvyfVvpGDeOwSBHK1u4Yw=; b=os4vsmPOvMMD72jVqqUl8z80giRtDndGNBm5BiMPE47uRf1ZsGx1/8klpfXVEnICQt 6q9CLzSJ8ZCpFfJVNXiMbGWwNU0xo/fK1WSk1fKIqNffoPrdz49eE0brV8jpzIvVspZy DfnEXWdp0GVa02f1NEXnoF6SfK9JgDI/ewOeOW4PrcZ1GNOspGdUZM4VqIDCfD4vAwcy ScnQJDgcX45ZGp/j5UCHoRgcboStuTDmJ8uMOMxZnWrBf8sDULGt/weuYtiR38PCYYPz Mkq4ptovnDU2JiIt6QGAuFmaklKsMIFKu0glTxpLxG/FRg7pzMIWfzr/+il1bAetg6ba nWgg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9-v6si7313899plo.659.2018.03.03.22.32.01; Sat, 03 Mar 2018 22:32:56 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752371AbeCDGaN convert rfc822-to-8bit (ORCPT + 99 others); Sun, 4 Mar 2018 01:30:13 -0500 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:40332 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751427AbeCDGaM (ORCPT ); Sun, 4 Mar 2018 01:30:12 -0500 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w246U5as015236; Sat, 3 Mar 2018 22:30:05 -0800 Received: from il-exch02.marvell.com ([199.203.130.102]) by mx0a-0016f401.pphosted.com with ESMTP id 2gfsxq9ypc-5 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 03 Mar 2018 22:30:05 -0800 Received: from IL-EXCH01.marvell.com (10.4.102.220) by IL-EXCH02.marvell.com (10.4.102.221) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 4 Mar 2018 08:30:00 +0200 Received: from IL-EXCH01.marvell.com ([fe80::5d63:81cd:31e2:fc36]) by IL-EXCH01.marvell.com ([fe80::5d63:81cd:31e2:fc36%20]) with mapi id 15.00.1210.000; Sun, 4 Mar 2018 08:29:59 +0200 From: Stefan Chulski To: Thomas Petazzoni , 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" , 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 Thread-Topic: [PATCH net-next 3/5] net: mvpp2: use a data size of 10kB for Tx FIFO on port 0 Thread-Index: AQHTsj192xJjJ5DFzUShqEYMfMH8kaO8/C6AgAKgx/A= Date: Sun, 4 Mar 2018 06:29:59 +0000 Message-ID: References: <20180302154044.25204-1-antoine.tenart@bootlin.com> <20180302154044.25204-4-antoine.tenart@bootlin.com> <20180302171117.2344a893@windsurf.lan> In-Reply-To: <20180302171117.2344a893@windsurf.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.5.102.207] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-04_03:,, signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=712 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803040083 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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 > ? > Design requirement are 10KB TX FIFO for the 10Gb/sec and 2.5KB for the 2.5Gb/sec. 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. Next communication processor will has different Packet processor or next generation of PPv2.x Limit is PPv2.2 TX FIFO. Stefan.