From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0040.outbound.protection.outlook.com [104.47.34.40]) by dpdk.org (Postfix) with ESMTP id 296122BA7 for ; Fri, 20 Jan 2017 05:49:02 +0100 (CET) Received: from CY1PR03CA0011.namprd03.prod.outlook.com (10.174.128.21) by DM5PR03MB2475.namprd03.prod.outlook.com (10.168.233.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Fri, 20 Jan 2017 04:49:00 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::197) by CY1PR03CA0011.outlook.office365.com (2603:10b6:600::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Fri, 20 Jan 2017 04:49:00 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; intel.com; dkim=none (message not signed) header.d=none;intel.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 BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Fri, 20 Jan 2017 04:49:00 +0000 Received: from [127.0.0.1] ([10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v0K4mqg4025238; Thu, 19 Jan 2017 21:48:56 -0700 To: Ferruh Yigit , References: <1484679174-4174-1-git-send-email-hemant.agrawal@nxp.com> <1484832240-2048-1-git-send-email-hemant.agrawal@nxp.com> <1484832240-2048-6-git-send-email-hemant.agrawal@nxp.com> <2aee9218-f7b6-fe4d-d0a5-59b28d8a9149@intel.com> CC: , , , , , Geoff Thorpe , "Roy Pledge" From: Hemant Agrawal Message-ID: <3b85b9ed-3c01-c400-00f3-05ff26e042c3@nxp.com> Date: Fri, 20 Jan 2017 10:18:51 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <2aee9218-f7b6-fe4d-d0a5-59b28d8a9149@intel.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131293613403196852; (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)(7916002)(336005)(39840400002)(39860400002)(39450400003)(39410400002)(39400400002)(39850400002)(39380400002)(2980300002)(1110001)(1109001)(3190300001)(339900001)(377454003)(24454002)(189002)(199003)(230700001)(53936002)(50466002)(23746002)(38730400001)(4326007)(105606002)(77096006)(229853002)(106466001)(104016004)(8936002)(54906002)(64126003)(68736007)(8656002)(2906002)(85426001)(83506001)(81156014)(8676002)(81166006)(31696002)(5001770100001)(86362001)(2950100002)(5660300001)(4001350100001)(6666003)(7126002)(7246003)(626004)(93886004)(305945005)(50986999)(92566002)(54356999)(356003)(76176999)(189998001)(31686004)(47776003)(33646002)(36756003)(65956001)(120886001)(65826007)(65806001)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2475; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:G7FfZm9KRZoqJ2ippbNSySANKg8vjM+l+Qi9n8X8qaNjhQd7Ov4rwGg9mhmIM82YpVyJtirW13OOG7DMzrxI9OyduEZAVV9hk9SfRsQmgEYlyeYghk+5l4G6zyIS+p3ZJGKGmlDFGgX6rTpeRZ3M2Fn0mXwIkE9rofrlsyzooOicelvloS7H+SSVe+xp3IQGbuym3lIOiFZT4QuX4UPfb4exdnYa1K7iHiMt+IA3R5TLCj7yyFXl21RnD2mOPgKd91WPTdAap6n/96JE9/HSqBQX3sDgRu6tUGAuDCrjOfPw2wC8xb5ZNpapYbAGbvbfQah/iZhB77X/N713pbP7XRXRusQa6fr+moSLS8PkLTtZSyHVmlIS+DJAQoQdzLFjh3MxIjRGkMOMs4B5VBUMNDdZl4WrkX5+UE1zOnK1jDidf6G6gveGz5j489VUrBfaGnuR4liLar5RaiJkWUj/wDwzrxQ4R/6plZiIvu53knoMsM0hdJBsZAlzNYaLeBy6Fj3fv4Dy57QFSpxvzXqvcFA3ShdmVwhYNQWQ9KXjotwyNDk6fFQJW8/3jT7DvoxLKVMqfIxhS5Md8cvn0Uhd0fjqUg25sw+s8TB6e3FMTz593I+Ao/t33loBQCmLKec/ X-MS-Office365-Filtering-Correlation-Id: c85c1a7e-0b46-4a0d-6c58-08d440efa6a1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2475; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2475; 3:gu3L4HDo40NlOE92bAh8AIfrBR332bY5OSNqLMGEc8Q9H/KYmw0zA1eL77FStqIvuc+LtZ1YQ1WNA3sJeaH7RXd8zyzqlZmkHKBdfRb8L9IX4DBQQRppOLTJzxN5a2PM4OIe9rW4iF2Rp5/cbhpG2BFvFoDKPhn4KUuIyoZ7rg1dnWIehIkctS9uxSpSYVgjW89+mbjTHdYUrjRrS/jU7namKxxdtq9INVlKPGL9PFG2mNDrpSpdB9QYbGrgr3sUp64TF85a2KZenj4SY+jukxg2/pCRNb7VG4MNSgT4gsl/pmNqgLenxdzMxpVO/jDfmaNuzL4wMu81g2hg/2p/tL7ms4R8wgXbCc56RzBrZygYiJaC/WcAA1ww6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QrAZw0qiTUdxSSHGPbSiz7RhTF4w/DhkPkUKE/XZn5t7MtqK+91mbZjOI/D7QDs1L4fchl5MpCfnhMbq/A4I5mwuRw3qFPeVPsY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(227817650892897)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13024025)(13023025)(13015025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123559025)(20161123565025); SRVR:DM5PR03MB2475; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2475; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2475; 4:orN/oU9v1a9MnhgHy3f6TilNPj4O2wZQeAWfqJUUJm3VFXeatGRlE895Pw8Je3A7ILNKCirT9YErMlhDdS5y9Jg4lDpHoG2Ilsmzfw9M1N3Yjss9ka9swQhPf9qNnilTtJdadN11WJnzIqQkC8WtSQlbg9m3Do1Vaxr5nHaJbG21AH9vcsZNZl04UbXejrCpJllC3AoUiPLFRIcct3nuQqidm+ixnV0LDMsrVu/6TW91ceWPDoYjy43yf/owIONXggDVRyxiTZBpvlGBfPmfvqStF/s1riMAQg69mBH2uPcMSUGGzHQDHMCU3T3ixzhcziZ2Q9sTx9ut2vR9d8BC8mJTDEGMqrP9UCSM3xl5ucZnDSB0+tZ7ZWVRWcCw2VdEbsROnPSaZleB/pLa8FrVwEuOSLs4UX5eTnScZ0gvRtkhy+at9ochz4+rpu0WqrpU/w9aqmENTLc3pIx/cwPuKuK5bEKj2o3tcmWz99yf0aO2MynQuqfBHNNpTM1X10VOD8pTMRrLPn9lV1+44+E+6Vl/vcpaRqMUKOMNnnbDbTFqVesoq//dq5DIY5y7UZWRnqaRjBhj9uOtKpXL1J10CkXWqhyV97cDturFAXzCFZlpEkxAfSSHG8ldagKIlzcfsAnmAiOxWJcPsXbOV+CX+RPg56sG1f0CUJiuxXlR4IHsqeehddGaxf33OkgdF+pDFByE+MbtQ0Gei1E2og1Q9Q6uOkJ91QssWz/YIIV9v7NJGaM2utRxAO3fTaBA4hmLgB3Rh/d9TYkmN7Vb5YE3FNF4qxgqVf5HlRaWbKn6q5pVUrcOVWLigvIZRzpMnQu6 X-Forefront-PRVS: 01930B2BA8 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR03MB2475; 23:EgeoeUivnQYdaOabO4XLDacpre+MWdKJlYbAq?= =?Windows-1252?Q?/SxlP0WS6GIyEXCF4n/WeaXxbRZ5J7M3igABDrxnGpRTH/3u4HHAYDq6?= =?Windows-1252?Q?mzlmOaZt9Q580vsqoilgYmBUWjFbCKRTm54vw8nb5MIPBq+JdM69fcBA?= =?Windows-1252?Q?yduAyQ9+3JAWnLGUdogT55/dCyzH3NrWQ1gfdyxPn0wXchIVXrZQoJOY?= =?Windows-1252?Q?1pYrZVXsxgyemD4D5vPPKXWC2JB7gvVovRt8hAJ/OnudJIUsf7sQ7sBY?= =?Windows-1252?Q?t3UzHpc/x9XmtB3s0m8IxnEyF1y7QcH1doSQzv01OxAue/5uGzzH4W1W?= =?Windows-1252?Q?u3SGWIJQ6NDJXNLyCpChFGutm7lpVb7ackrkDNoKETtcHdbddy8pRsq9?= =?Windows-1252?Q?9NNJPKaGMEGYyjBjiMtQeIX6To4yOrj6QvkdlVUyU05VZegOH8diszGy?= =?Windows-1252?Q?fU9rk1al+BlsVvREIwN+qaxWq6T4S+UJ8flqlFfflhkECxI+ZTv/Vx3W?= =?Windows-1252?Q?qwISbMA3fWg2ZzQ6TQGgQ/GlPTqDNRx9oDGLJKZEMlH0oMvm6z5XxGPD?= =?Windows-1252?Q?BCLiAzRjlYawrXID7CxoPmD0vcpM1RD3Kca+fqku/m3hH4s3A5dDwMzm?= =?Windows-1252?Q?LjG2QoufrzpEAe+tMTgP3ti+I69HgDX6uDWuLLtMQUqpFEZXsSTPe4on?= =?Windows-1252?Q?/MJ0dBG4dHieFxlQ6KflnA/1HNLDO/sf+0MnXNiktRBQovLyiuALbZhH?= =?Windows-1252?Q?LJsQqX21O92k1uUeOGBjWHA1GKl8Qd9bjBb6R69EnovW5uMiQAuqF81i?= =?Windows-1252?Q?GkKiVL+RDqtVrHHQ6pkApDkjJYWSaUouLVdh0lC6Wyur/CARmhQ9CahW?= =?Windows-1252?Q?BRQ1FuDLysqM26jRN52lnrBe9pIilEThjjkinOulmsYIIPBuAzrsvDoi?= =?Windows-1252?Q?jNJ8n+u3q+qOy1ecsHCQ+jK1e8nOR7NpxHIrNcffBp2Ng4XXxfltwejt?= =?Windows-1252?Q?6jnTzy8l+TSa5CStnYp4ObUQ0CfE/RDdrEZ+U7sBhD12uvaaTK9cvEUl?= =?Windows-1252?Q?RW94JRCosrH9l8c5i65G+peeSsOimD+Fs5PsjJOZGX/1GRs0RV68TPRr?= =?Windows-1252?Q?GUtdXpm1kavU+IwkZ9uhaCe3xZWgnZRh2F6Fj2M+ihx4lyrezSfAhaKx?= =?Windows-1252?Q?B6aNwMgaiZ48kWBEuyKFLskKMGqhD3nvNsR037lyeHFpOHXuzFHIdn+V?= =?Windows-1252?Q?CCpFqOZTLS8lnHDVK+mMqxHcg8/YdGEvvMvgEjMl40dyDontYHPA1KT9?= =?Windows-1252?Q?vS28JDDlGsw5rFA9uoC63G3njHR0aAzwUv/acEyrafQOaBnAKavtiMaT?= =?Windows-1252?Q?QqC9sL9dfh1W/x3d6gBX1wa5J3YIF/I1qLalYA0hHS+jsSXGV1KkR3/x?= =?Windows-1252?Q?guvYL0rYqWQ55y4N6vTKsqnBh2O37oh5aMRT/qSdGsjQRj5XizefK2p1?= =?Windows-1252?Q?0fAZvBAhcFkpKjhPQsG1+ZDMfCjSjHZ/MWKJ1Hd+C/mnGjI/VirfZI7f?= =?Windows-1252?Q?ST76mATZv1NjMsl0cytyFV5fBaAB2tYtNN/KozguhVIvT4OYMqgxQEuR?= =?Windows-1252?Q?spZKlQ704XhKJIR9JzWMiuOQ03jdVqxXyX+Vb1Ibhy51dPkWXre/FoGM?= =?Windows-1252?Q?R+0vR5wfod14YXZm7bCGBUmTjAZHKciK1OcQZ3PjaZJ/Fw4yjX3Bk4Ce?= =?Windows-1252?Q?NX2hGEeKwFA20q7qGWTspc7idbIcKWt2ae6QAc=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2475; 6:V3cuV8LhNjx3hgXw9EjyML2JOXJ524bNE5+cMO8IXL1fJ7itakWvKF0W1TycTBwDgZD2+iDCZUeBtM2uzyQPkQeOpcxonEqtwv02BVNNTK5zj5JminUhH7XRMZnZrv7UFLGXOqgJhQ7QKitBlVqBdQkB7vfkyPfnXo+Z4iou+F3YVugmUTJD5hcIkxeESyKnBpkW/5j+QYPv3bC4NTWImkNXJM2z0Oa/Z3Toh4JRBbxGuKwBeJ0ebDXVfegswvmkWEL56vX7ALK7mflxmr+NYWHQSQtHDBaaHsgP6wqNm+FE8T45fe2mkxBRfl7a4MuIXCcAkFmFzOldxHptEozMIQ6qBpKekeiEVlEKveIPeQt2PjCDULbgsA0yJER/+qWTTNC2BPVT1AMtnT9tdm3RH+H+7uXsSCaahrhTas5dB6NnrYnGVcom3VDCYncuyUrT; 5:fzfjpIpapI/nNuLKMI8FciK2J8JTghZWEwxazGwyODnpEKKdA2LbDhLuRKsv9TESYy1rCirfMqUK1DkuTnXGDCtMrcIODX8+368rtVQQ0bvdwctA8wieiOsBWbG6R5PGDOdSCFfgPXExCIA0DLLvx5eATYwnky+hx/HllYMvIeWHko3Upl9i252fNep9lBQR; 24:W+DvZa1EOxwp1/kZDopFshooGulslW3xJifmqc4NqPSP/+dUw+J7+UpJ0CEsPnCu0bk34UtWYvn6wk4rZ34KzAACAHWHy6Ukjdahof+qM+g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2475; 7:t67ZEUGY4DDVeBP2+Qqu1xtl4NV6EFwV7N1TUJAiqRkvQVZ5r4mtsIKjLH1RjtyFe9oILt5UhK6ZpP2tMgdXjTvRPmFAvFW23XopRLkMUn76WSAdirqzcCgDMPUWfGyqwMz3GIbbwS63RZH9udQJ86KqJ4jJw6C5UuvBnJwHWEk6XOlen1WPfBGye4+JaMPXm2tY/Ptx/lNu+aovge5YiwcTgUUmr1GpF+w5MC5wr7MsRXXqGdMJSj5gxQ/8PsBOEBzE+lYLC3Fq2EJBXnwvuiz/n/qLqpS92mBT/5PloZaXBC617APuEeAzjG12grRivqpe12LIUU2ff7opff8RfvIEttZIMOb+pCYnOXBQEMRBc2Zd1TUel/0q1UCrFU1IpwvQ80WV4c6zF+Y793knxvnPzk8ZI/ND4c9ZeCVV/7P+T1T57nWTdfLuknABWOxrqejYzFoGd0IAxgv69/n3Uw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 04:49:00.1012 (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: DM5PR03MB2475 Subject: Re: [dpdk-dev] [PATCHv5 03/33] drivers/common/dpaa2: adding qbman driver 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: , X-List-Received-Date: Fri, 20 Jan 2017 04:49:02 -0000 On 1/20/2017 12:37 AM, Ferruh Yigit wrote: > On 1/19/2017 1:23 PM, Hemant Agrawal wrote: >> QBMAN, is a hardware block which interfaces with the other >> accelerating hardware blocks (For e.g., WRIOP) on NXP's DPAA2 >> SoC for queue, buffer and packet scheduling. >> >> This patch introduces a userspace driver for interfacing with >> the QBMAN hw block. >> >> The qbman-portal component provides APIs to do the low level >> hardware bit twiddling for operations such as: >> -initializing Qman software portals >> -building and sending portal commands >> -portal interrupt configuration and processing >> >> This same/similar code is used in kernel and compat file is used >> to make it working in user space. >> >> Signed-off-by: Geoff Thorpe >> Signed-off-by: Roy Pledge >> Signed-off-by: Hemant Agrawal >> --- > > <...> > >> diff --git a/drivers/common/dpaa2/qbman/include/compat.h b/drivers/common/dpaa2/qbman/include/compat.h >> new file mode 100644 >> index 0000000..d321cc6 >> --- /dev/null >> +++ b/drivers/common/dpaa2/qbman/include/compat.h >> @@ -0,0 +1,403 @@ >> +/* Copyright (c) 2008-2016 Freescale Semiconductor, Inc. >> + * All rights reserved. > > Should this say "# BSD LICENSE" ? As in other file comments.. > There are multiple this kind of usage. > I can add it as per convention followed in DPDK. We are generally not adding that as BSD LICENSE is self determined by the clauses. >> + * >> + * Redistribution and use in source and binary forms, with or without >> + * modification, are permitted provided that the following conditions are met: >> + * * Redistributions of source code must retain the above copyright >> + * notice, this list of conditions and the following disclaimer. >> + * * Redistributions in binary form must reproduce the above copyright >> + * notice, this list of conditions and the following disclaimer in the >> + * documentation and/or other materials provided with the distribution. >> + * * Neither the name of Freescale Semiconductor nor the >> + * names of its contributors may be used to endorse or promote products >> + * derived from this software without specific prior written permission. >> + * > > <...> >