From patchwork Fri Aug 25 10:49:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 110996 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp812039qge; Fri, 25 Aug 2017 03:53:16 -0700 (PDT) X-Received: by 10.223.171.18 with SMTP id q18mr580001wrc.12.1503658396566; Fri, 25 Aug 2017 03:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503658396; cv=none; d=google.com; s=arc-20160816; b=fBRgm9Tpkxk+yIDGFQcH619GIuCaENUN7FWopwpqtEnacyzhNNuPN+MKQrrzVEix9U SxbD50VEj1/gQDjU/Ldfnxdwa8XCTYKkXUYA0Vl6lGr4YJFlPhMK9NKO55OUmvXqGEPN 559n/1psaBtoHgk/pjZNCggTMxkNZFSCwA0JqvjAtpJVXf3sFe+UUBKcQR6oKH63opFf /0idy3xPgEWz5cR8jX60oEgI9iO6VVTZ1S3RGMeBnLW23WlJfBUPWjjA5Ah/c1Cp6soH XzK/sGWjifML0QIB16gKXBguDi4mMkgY4ePyzBsrRlJf749mzVF9ELVoULAo7Zx7ZD5q rkcQ== 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=Fphm/8Ch0eVO1VyLuAt37euRLGzUWyHHHHmtb1vN/EPNkaoshbgaYgQhxLwe47r0wM ekYin27WUWgWfshXrRrlAsi726yyxeAr6GuDOh9yyAvhyyCM1orkuO0BCSYFNiXKf4kY Qv7tE/MB+JUr/ePEIUuxzxLoNNeTrMEZptkGdtP26COgZeZm6D5pzSGPKVWXLEzRLw97 ADjraHVm+r/h8P4vqr6mCKMCo4I4Xm8qK5tvgzEiOqFpPLpErFeKmsOAqepKVe1s1jbA +03gGUs4LP/BdZOQQMteZMmVYxDo8aWx3mIxxS/hg4ScgA6eD8b9wPFLsJzOfF359JZ6 VkTg== 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: Received: from dpdk.org ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id m188si1032611wmg.245.2017.08.25.03.53.16; Fri, 25 Aug 2017 03:53:16 -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 798F9996E; Fri, 25 Aug 2017 12:50:34 +0200 (CEST) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0044.outbound.protection.outlook.com [104.47.41.44]) by dpdk.org (Postfix) with ESMTP id 89B2D9185 for ; Fri, 25 Aug 2017 12:50:27 +0200 (CEST) Received: from BN3PR03CA0101.namprd03.prod.outlook.com (10.174.66.19) by CO2PR03MB2262.namprd03.prod.outlook.com (10.166.92.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1385.9; Fri, 25 Aug 2017 10:50:26 +0000 Received: from BN1BFFO11FD043.protection.gbl (2a01:111:f400:7c10::1:168) by BN3PR03CA0101.outlook.office365.com (2603:10b6:400:4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18 via Frontend Transport; Fri, 25 Aug 2017 10:50:26 +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 BN1BFFO11FD043.mail.protection.outlook.com (10.58.144.106) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 10:50:25 +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 v7PAnw6H032070; Fri, 25 Aug 2017 03:50:23 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 25 Aug 2017 16:19:29 +0530 Message-ID: <1503658183-4078-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131481318261777420; (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)(1110001)(1109001)(339900001)(199003)(189002)(86362001)(110136004)(8656003)(8936002)(50986999)(50226002)(76176999)(104016004)(68736007)(81156014)(8676002)(2906002)(81166006)(36756003)(53936002)(6916009)(47776003)(2950100002)(97736004)(77096006)(305945005)(85426001)(4326008)(50466002)(48376002)(626005)(356003)(498600001)(5660300001)(106466001)(54906002)(2351001)(105606002)(33646002)(189998001)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2262; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD043; 1:IuXwbbWws3ojCnGl+UM5UwuFOCKdJTkXSmN5wFv0QzqUQSe/sCSTZqA2yUYcOjPxVWDnl4Lto3cKsH9R5jS+xK2UAg0MkbTUtCo+9PqSNvofiJSiwHmEs48tmwgkBriZ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22283356-9086-4384-e40c-08d4eba7180e 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:CO2PR03MB2262; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2262; 3:orXxNsCRpIPN/MxbpAHOAWgrvf7QIUo0+BLFL6yViCZEq+R7er1sBIo2wnjUPigYrQTa9aGmBgU6BpfnyzlJHiUqI6dVgSGCcb+sTTsM5w8/9+i96GBKNh4mlBuVbCLAMvAN0OMpg0xDD0z4nz623eHUOdmoQxZiLpWMmUB9IV3uJgac88N048sgrihoyGUdIMAsBDQ5Hs1VD5aSf7vpsqwEZ8bMnG3Q/V/d9usJt3r+PsY5+O01sUZSkDNZdHgB4Pwo3fzBFn0l2PRLZLPfWDhHAiixbyE8wpXP+eTOEzJAB15Qhk9UXjacr+4gAG9xEGaPHiMiF0oxmXyi4eWl1imxSxHXxW/UI0qsO0X4jl0=; 25:C7O+U54/tBvAzHQYVnvTrZFFcPIm4cPukCS6nJBequ8PqFSQZbFUk47NRm8sjSJtu9XUwH6NotEpYTr9GPk/R7NED6dLahN32OPN8cn3xwmEVEYbyLEgZfdA+C0B77Mo/qOVCvKR6dg2MquTPhiKtiZ0E3KDVGrjPxySljTgJ1Spgz2VYu5UQHWQcxrR1oB/he1H6Fx4MnK8xaiHI1JyfBwiGi08JMhNokpReY18OoZl7SubOfDfydj3PZJe3eDxbKUIR2rD2FDy1NbiOJVcVBYPubdHURigeqxFl3cKP6Hek640CBiO7zpK4AraqLQw24u6eNlD5/fy/r6iYIBRzA== X-MS-TrafficTypeDiagnostic: CO2PR03MB2262: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2262; 31:PlzgcSkBCngzMnOLl7PcGHkOgf46tXcb52hRcr1MK9qpNRUYkdXj5jfA44mSQgTV4zVxTWS43YQH92oPYlOuB/GXf6dtt21w2jqr2gXEuYMuRSB6uz9sxAVc61wF6jl+rw4zES3OpLMEaZ0yzK4E15r1gKYv8OdCMrJqzBD9pMOq+rA910vGEvGMV9Zwkkzq7RNSzaWWCeScRrfBBiW3V3IwGA5dnvYJpg9C8bb/C6o=; 4:/zV33pYub7OOdsw3rntOXoMZou/jCZhg9GDQFwxwGi7LI8E9QJC5wU7q9ldK6M3wA/qkASveN/M0E8z6ylFPloWPZ403Exy6n5RoyGgrUfmPrMEtIAzOsXaAyqzxSsv0jaitoHKTpuvkeInvShoQYk59VRhC8Z2DV/iNM7AoIGcufmUpEXi6zNRa7kGwCBSGnFrfGyVbgTTQHfEeIOh7IdqJ8dEya1Iv+i8lfQqu25zUkDovVRPGoofvnnW9cQRjLz9nIluFk8On3E2N3WIJhpqeshRUWdaIwXOu4wEzS4Q4tMu9LfBlSU2Cna9nmIPkMm51gLo3bqPgQKBbFnGNJQ== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13018025)(13016025)(8121501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(20161123561025)(20161123565025)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2262; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2262; X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2262; 23:wlbwdt2Yk1/rcTAyxLhdc3z9NLaCyfs880DWcr74/?= pXP7hATkVC8vQjQcu7cdTjlRHUurO7HyfY+BK4k3A4PiUeFySWORdD3a62P4lbtRO4avDFsLdyLnmMZiMX5KNu21nFTzlC03/pN/b5uR8BvAwhwoKTi/Cd+OUS4IiKlZRN+DqRfIWQzCZfbojBa+QMLS+VK3Pvt65EG1AxkoUNyk2iPp7dqTLyGZWSWgCedXYPsusMu1Qcs72c+wlH4dRV4lqJY/8lJRUAkrp4PanxI17haYsIbWINVQBAPBNeqzzujbqUz3RXpLCO55U9MfMK3SXNfAeTzQFoBhyxddgEOjYSxDDGGFZmf+AUyYtjyZkmXTG1YA3dxNAy+PwCcEKpGosa7ESRlpslf52lC2Bfx4CcX2nZh9Zk2h/YCylcnyfMdnug9Hkj6OFCsHEHS7uK4xFGgAOwk7l0nD12qnwmzdbH2JZnldywrOLTEH6Btd6x1sJ6iUEtkSg6RY0nIDIg0oKuTbqzu7AnFtAevclwTgyRPf/Dgd/Gnq677BGoQY/FrlLRydWHPT+LucSBuWttrnrDyIxGNjF6HtNYbue3MuK/kJwmGkWb+eV3vxi1CWaNdg/WnCng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5yb4BhoPREe87kKwt1rDHKK+T7Bxpouj5Cm7Zkbu2JUzdF6D41ibL9txeg=; 7:uTPEuhb0R0Z7EjO9/nFhmMvdKuF8onRZnuFWg7M8WCxpT4i6eERX5COdzciiHcCMYem7tWhrSNHLtaH6EXBBgXLmPiXT2vx+7uVLqt+cFZIC5K70oKyMb5dUGoNuWsn3rRnb/6zHbCFrGaQScxjPnYPTUH6KFzAD6tUUpP9ThKZFK4dIcTeODzrLE7QbrqSJlvyy64buwGW9Msq33DeWPXwAC+wMTXGWp8Rs4qL1ZOI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:50:25.7097 (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: CO2PR03MB2262 Subject: [dpdk-dev] [PATCH 13/27] 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Ashish Jain Signed-off-by: Ashish Jain --- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 22 ++++++++++++++-------- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + 2 files changed, 15 insertions(+), 8 deletions(-) -- 2.7.4 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 */