Message ID | 1504860327-18451-14-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1245679ybm; Fri, 8 Sep 2017 01:49:03 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6kpSZnP+HA6LUoQGq963+COdrWDiICja4e+WXT8ynbNLyMb1KpLV/VtnUh1t5Hqkqed884 X-Received: by 10.223.196.11 with SMTP id v11mr1398233wrf.21.1504860543672; Fri, 08 Sep 2017 01:49:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504860543; cv=none; d=google.com; s=arc-20160816; b=ZmyOFCHnrN9tMl1lPRugEdnLy0qsxKom0Ax31kzBrUwYv8Zm3jT1haz0q2yGORqDLi awy3OOCsjKR5crleX/68g7a7J398rq3sAzWO4X/ekH5ZYgPav0aS7QTaYDTPqnIipXy4 YWfU5GmfmSnvmJT3umvEkx5cCxqIaDbwMICTx6gA+nfuEqKK+1h+Ph6ItunR6xsDxhsF PkXzofsp34TkpFfTEg+KhHbaVh9V8ulFTxhWCsUBcnFhUn+X6lfxO8JxLDSh0ASNFwmE Gf9Fb5XmzAIWs+FeUUxKgecDZcmujqjJrhpbFLmuFQjFm/fPP99bS9NhEPXGdu/B2MDV gNJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=glJJ0ACGQ4I9PvO8IDuyxh0J+xGSYF/Z7x83A3lUeWY=; b=rNqTcBNJcQjFVzwrXKk0q8h2tFgvPsmnTuEtxl6j0fsgwYVhwL52pqLKjGXSVSH4t1 aAUIPPpaspb/WUZPkWUwmEM0XJ4xjBY+9Y40ZJhIWY8rkIlhvdIIlgjFsucSvXVyGNhl Jy1sSW4iV5t7E3ymiS6eGaurIm3GINVgBpuozRcpDK+Kwyl7nAK4DsRdEGLLyH9z5KPv dri2gj6eMgHugpoXcznQf7/zCVHR0YOJwVuUyIW4JPDOyrGetZuD2tQEvIwkomh0o8UK MiHmk+J6M49rBNcadyZJbr0hff+HtVJbNtCsbKe2PZoj+qV58ZxmdFXomI6/tpR7uHon LjqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id b126si975818wmb.216.2017.09.08.01.49.03; Fri, 08 Sep 2017 01:49:03 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 663A419A10; Fri, 8 Sep 2017 10:46:23 +0200 (CEST) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0055.outbound.protection.outlook.com [104.47.40.55]) by dpdk.org (Postfix) with ESMTP id B2D03199F4 for <dev@dpdk.org>; Fri, 8 Sep 2017 10:46:17 +0200 (CEST) Received: from BN6PR03CA0089.namprd03.prod.outlook.com (10.164.122.155) by DM5PR03MB3324.namprd03.prod.outlook.com (10.174.241.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Fri, 8 Sep 2017 08:46:16 +0000 Received: from BN1AFFO11FD036.protection.gbl (2a01:111:f400:7c10::129) by BN6PR03CA0089.outlook.office365.com (2603:10b6:405:6f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Fri, 8 Sep 2017 08:46:16 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD036.mail.protection.outlook.com (10.58.52.240) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1385.11 via Frontend Transport; Fri, 8 Sep 2017 08:46:15 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v888jmoj023063; Fri, 8 Sep 2017 01:46:14 -0700 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <ferruh.yigit@intel.com>, <shreyansh.jain@nxp.com> Date: Fri, 8 Sep 2017 14:15:10 +0530 Message-ID: <1504860327-18451-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131493339759712640; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(8936002)(68736007)(33646002)(110136004)(6916009)(6666003)(2950100002)(53936002)(47776003)(104016004)(5003940100001)(5660300001)(85426001)(48376002)(50466002)(50226002)(4326008)(77096006)(54906002)(356003)(305945005)(8676002)(81166006)(36756003)(498600001)(2906002)(97736004)(86362001)(2351001)(8656003)(76176999)(105606002)(106466001)(189998001)(50986999)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB3324; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD036; 1:M1XyHhAoH4zTbVI1si7Po873Vp9E3nuJfsnd7Zjm/8pj6pgcB5138qb+0cT0Cbafmu0pVtnDBkIyPrQ4jCKNv6sYDi5RABYY0TJxJdynafbiywVPUt97CZvZPjZdFjHa MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72a4f988-0403-4fab-1980-08d4f696112c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR03MB3324; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB3324; 3:GXs8iQyn4biVpYT4vM2IYw1JIuvdfTrPfVWQ7hIbIKXIgzudGrodKHTsZWtfG4Uxl16aP9jX8Ua+DvPP7QJ1Qv44pK8F37Ijf0cp9OVWOn2UFc5b3eGqWzEJQhLhidxirk95J8BiHyrDna7bn98+1Y43FovC8OiwKDu6Piya6h3VmxWxlE1HQnY4AUGCSWA4IU8SPqVU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931mzfcKoeDgOBxkCnwLxcIjMSGFHN8TQ/mRj7eLElcDaoJTUPiojADhS3wSGu3s8Ia7kyg1cHCsYB5AE1sgNI9zjQ== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Microsoft-Antispam-PRVS: <DM5PR03MB3324BFE8118C0DFFCB48F83D89950@DM5PR03MB3324.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6096035)(20161123556025)(20161123559100)(20161123561025)(20161123563025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB3324; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB3324; X-Forefront-PRVS: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB3324; 23:7o0p9ju9gJr9nH1WOubo8T0pi8r4MqO+we4vg6w8m?= p2R8BjD8pw0/BUZWDvJKlq9RfpvHEyrEUgO7UfjWA6BNOyqnvScH604Xta1YonDGmN8/KFKM0kqx2fsD5IX8NsOyCZ5dIecpRUTGt92kLhtBkAg0puQQ9vONMBQiRJQi9HfwkKkYzdn8QiQh+ILJ0fyp9M8I1JXq7Ygxy0F+9MefL5EwuALdbWZWkNiiMj2/fGTb9eUJ98tFL6o3WpQEzqmvK48xrQSGgTntouqI30IceVMxLsL2nU3I5fVgb5TDqMSV7hJNUCtj6NcN9iY9P3XMb3CelYxGa4H79WaClc6QGEXasyLyqIyQX0bXbhKYIJO5stCBgPEQUuvOOfzUyPw3953j30ew6kUMq9lTu3pkLh23zyV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RSqXn3JmMKg==; 5:1xhA9Tn116d96Sh6HF7DXQU/r87C3j0OUu1ZI70ql6idrOdJo+95R6EozVFo2LkGmGraQAsEBc6hhuPr4GKRD2s2z5s0hloPqJrlZ5EPUF6+WHJQKYEaEgovt/QYhYxzBlcoqUhjy2qgGeESzaORQw==; 24:eBuJW7V+5HEDWv8JIhkpUG0CK7rYr6to3Q69O0657msXX7+kLhtve6HS6vNCkYPIZsN2nwvSHEXswTA/G1UjmaEMhG4Q2JsZ0PAKrWBzSQA=; 7:JPlEMwjCr1zcopxco5Jmtv9oXdUt6YflvLB0Lh4kdhnq3y+3s6y0/DySxCcnzlYQPxJBD6FiCus4hY2S/6EPirCYlA3ayWG0Ydpwu0BTNDc5Iw+HP70fSV3nrs7c/v2dNNVYvfx4uygh5BsJU3EoaXZ1QZEer7ehZZfE1WT04xZWNRAdaViAhuCpL/YFrBbOWvz21U79emDwguQZWtvuiO24jI71MuBlG9S5E96pF6s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 08:46:15.7996 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB3324 Subject: [dpdk-dev] [PATCH v2 13/30] bus/fslmc: add support for LX2160 platform X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
NXP DPAA2 PMD updates
|
expand
|
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index 7315555..8db1f6c 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -90,20 +90,22 @@ static int dpaa2_cluster_sz = 2; * Cluster 1 (ID = x02) : CPU0, CPU1, CPU2, CPU3; * Cluster 2 (ID = x03) : CPU4, CPU5, CPU6, CPU7; */ - -/* Set the STASH Destination depending on Current CPU ID. - * e.g. Valid values of SDEST are 4,5,6,7. Where, - * CPU 0-1 will have SDEST 4 - * CPU 2-3 will have SDEST 5.....and so on. +/* For LX2160 platform There are four clusters with following mapping: + * Cluster 1 (ID = x00) : CPU0, CPU1; + * Cluster 2 (ID = x01) : CPU2, CPU3; + * Cluster 3 (ID = x02) : CPU4, CPU5; + * Cluster 4 (ID = x03) : CPU6, CPU7; + * Cluster 1 (ID = x04) : CPU8, CPU9; + * Cluster 2 (ID = x05) : CPU10, CP11; + * Cluster 3 (ID = x06) : CPU12, CPU13; + * Cluster 4 (ID = x07) : CPU14, CPU15; */ + static int dpaa2_core_cluster_sdest(int cpu_id) { int x = cpu_id / dpaa2_cluster_sz; - if (x > 3) - x = 3; - return dpaa2_core_cluster_base + x; } @@ -278,6 +280,10 @@ dpaa2_configure_stashing(struct dpaa2_dpio_dev *dpio_dev, int cpu_id) dpaa2_core_cluster_base = 0x02; dpaa2_cluster_sz = 4; PMD_INIT_LOG(DEBUG, "\tLS108x (A53) Platform Detected"); + } else if ((mc_plat_info.svr & 0xffff0000) == SVR_LX2160A) { + dpaa2_core_cluster_base = 0x00; + dpaa2_cluster_sz = 2; + PMD_INIT_LOG(DEBUG, "\tLX2160 Platform Detected"); } first_time = 1; } diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 5d7a828..bb52a15 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -51,6 +51,7 @@ #define SVR_LS1080A 0x87030000 #define SVR_LS2080A 0x87010000 #define SVR_LS2088A 0x87090000 +#define SVR_LX2160A 0x87360000 #ifndef ETH_VLAN_HLEN #define ETH_VLAN_HLEN 4 /** < Vlan Header Length */