From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0062.outbound.protection.outlook.com [104.47.42.62]) by dpdk.org (Postfix) with ESMTP id CF0D858F6 for ; Fri, 16 Jun 2017 07:32:44 +0200 (CEST) Received: from BN6PR03CA0072.namprd03.prod.outlook.com (10.173.137.34) by BY2PR0301MB0597.namprd03.prod.outlook.com (10.160.124.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 05:32:42 +0000 Received: from BN1BFFO11FD041.protection.gbl (2a01:111:f400:7c10::1:100) by BN6PR03CA0072.outlook.office365.com (2603:10b6:404:4c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Fri, 16 Jun 2017 05:32:41 +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 BN1BFFO11FD041.mail.protection.outlook.com (10.58.144.104) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1157.12 via Frontend Transport; Fri, 16 Jun 2017 05:32:41 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5G5WNF7001003; Thu, 15 Jun 2017 22:32:39 -0700 From: Shreyansh Jain To: CC: , Date: Fri, 16 Jun 2017 11:10:38 +0530 Message-ID: <1497591668-3320-9-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131420647617084743; (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)(39450400003)(39860400002)(39840400002)(39400400002)(39850400002)(39380400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(85426001)(575784001)(77096006)(356003)(2950100002)(8676002)(53936002)(81166006)(8936002)(50466002)(110136004)(6916009)(33646002)(50226002)(4326008)(305945005)(105606002)(38730400002)(104016004)(86362001)(2906002)(36756003)(5660300001)(50986999)(498600001)(2351001)(48376002)(76176999)(5003940100001)(47776003)(54906002)(189998001)(8656002)(106466001)(2004002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0597; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11FD041; 1:SB5ll0D2smavso/u8SEmn/X40dG0NTE6Cj2oNWDrQ?= =?us-ascii?Q?E4hMvsnO/rkOampuR1KQll7riBMJmRoqPbemWQ/GoIFHz6Kzg0SumWtIWumI?= =?us-ascii?Q?OHG3ayViCOGqFBSvVsXaMYWgw1iA03wyWyBJnWC8DaClEf3uQQHfv9waikdI?= =?us-ascii?Q?f6kVnidsnxQ8x64CzMjl2OclqyG7GVot7lerZ9EesB1V+9eeRtMt2J66b5DC?= =?us-ascii?Q?zlsMFRcOohKs3o2uz+9Vlbw0kqLOBIR4prOe0Q3kkSgV6/xg3d+zHsndCs6z?= =?us-ascii?Q?+kSbxddTrBIWg9uMSVuFD1v/Bco17Mvwk38Y4kVid3rYp04vORLu/jNcrCp8?= =?us-ascii?Q?0uaIiIBerNgW2vlVgl/IyYfzypZqgEd9vrfhZpNmNCAQeGfIcyaXbyqRnzrZ?= =?us-ascii?Q?/ow/g9IgQt+uWyMvV1s6HW99Lulb6IxY8pVkrrhJVNGMLoQdKFpIoa1yYZNS?= =?us-ascii?Q?MaQaNrYGn83cCzLClXpM1jbOUlx3kfAYIkYtAb2Qao9+zYVv42iRgzEbc3rr?= =?us-ascii?Q?TpgoDzKnKrAYcOnOSdBo3LmIzzO2R2eAuPQTYlHCRmbl5Oj6E0G8hRkSI/ff?= =?us-ascii?Q?bVmPHwdgX/17wm7VZr4kdvjkwf5sVoB+11gqqb6YQ0RbjJluEZ8hf5DM5B/p?= =?us-ascii?Q?Ngn1oqdzRzHQZgx0KTdVuSkUf15qk3xCcc4qQ1QPF8xUx2/Ymq25OuEY5EMj?= =?us-ascii?Q?ZLgF+TILi58m8wb5PyDSr396uI9Nc1IOAy4cphIuCbLGKoEbBGRFvdxsCxBd?= =?us-ascii?Q?YjEGyIa/FNvk2a60txVOTFHtLhcP3qnysYvVa81hOF+mnd/iis4NP/apeJmV?= =?us-ascii?Q?X+8/zeCZ4U1j657iYMJeA5n8o78bgephTh4maaBgB3JV0iqpG0FGAuwEHtUt?= =?us-ascii?Q?wm/VJmSNvgKTsQdKq+dv/3hylFmz+U5rpQqStwHkQ86fIj6yo03FhcFf1STJ?= =?us-ascii?Q?XUKMzhZzgu0lYiEVpSp1gJSYZfQI27q3R+dG+GVBL8cDYdQsgdWJoqFePdLn?= =?us-ascii?Q?iH4/lmVw/LH4njlm9/LY94ppS7bux1jnti1su6Qq9RbbGnlnH7VNRgwMTjR/?= =?us-ascii?Q?zlxlBRFhrcXkmsNwpQhvgREaa+apGBQGbKDZ2CX7czSO7nxLw=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY2PR0301MB0597: X-MS-Office365-Filtering-Correlation-Id: a91024d6-155b-4d42-dbe7-08d4b4791bd2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR0301MB0597; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0597; 3:okXDAamVvdBLey4mkJUQgcARWaq27NGIf0mGLjX39RLhjtR9RyyTcpHpR3ae3jVX5QcdSsJOmv/i163oCe/2rrecesY8KIaF9RhgGDLEiCyZPFI+PnVroYVc0WnGR5NE40yjBu5OmRTzRu5vZGDe6xna9g0g7cdzPYyF6wsFIPon4o/I/EbE/nLDn2OZ0bjEZ0aZqvOfwRDb1naBqHW/pSBswFMO05hUuYxOhX7ZvrZKpF9Uce5CIeQ1HCSTcyEerJbIERIsebn910IepWYNWqxjS1dDKZoBfrQqN+mxW4DsB6puNTy6BPBskSCm74IkQMT9BaoHeOYa2zGQCbg4EXhqCB5KMnRHiQP2z2s9GTRIVnOprxodG2PmObL2e6HGmVM86r1MekECKNCz9MqjGx2l7cjC9fdBPPMs0Z1vPsfcfbgWVtMBvMvFXNxxOgKD; 25:ytP7wA2DFG8g61qQjQEhoL7OXAf5dXM20Yj2QiKq2xc6GSGuFmvTAi6b5KG1+RAeFUbN4hpPvHdFBFWoQwNPCcSJGLroK0JWbcECfjvjm2E72i1s/CLjc81HQ88CclXIwvdCt1x9E5vdYYA6qZhGK+i8LC4YONHl4um0/AhEwkIRwEszgfJXQAYttD1jApXgeNDLkdG3lYfqR8Bc6nxNxiJmm9umzKM6hNnDYRXmCuX5t5A1Jht5RQsbXVN0N8/FvAYCZd1LnhczECGecLg2I9USvLGUEKnXE8dJFHqfscWBgoTHvoupw7vdNJlTA5g49UKPxy/jRX0m8wRvcFJxX5Ra9aIlasNKCjKVKk1y0xeyKzqlup0Koe/RUVSoHhg13xKimU3JI0M1uJBcFEQK5ocfTtD4milw4u0OFVOwQkEk8XzkXyCiWRK2eR+4s+xw6mhzPHsj6PhCiogPS8ZxTrT+8jmUxavHAzUOXWuz+5o= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0597; 31:LUhnc6cBT4SUvcBaUoYMXfcfxMdEO3R4fxoUuGoNguwmjHcns0sm/e8rCE8vbrsvg4vnOihgG+pnv5xR7soxaiDLgwDy93FQYLhbmPPdauP/C2DjuK6weFAgLkUFyIDJDbIsFGOhAcWkp+xQpPA9W7o460AINljZFejlyP1vm7RgLkv61LcGIeLIoY47R/E93RNoNza0qODxgoDLxP9qJNn3YW2EhY2vYm/GF7ibZP8BMQYYaN2z7C/eQix8FaQ9y4DtrMoBEomkcwqdaWwppg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(35073007944872)(185117386973197)(227817650892897)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13016025)(8121501046)(5005006)(13018025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123565025)(20161123563025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123559100)(20161123556025)(20161123561025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR0301MB0597; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR0301MB0597; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0597; 4:+yBmL5isFr+eaqJCIimhzFh24yc99t0rTZeLELPx?= =?us-ascii?Q?ylOWIgAb20zA9Esd8iQyfQID6N7h+dXWnqIpZeujqfc9jZo+LjcbPn04XwfI?= =?us-ascii?Q?MC54eni/cKGqBX7JQtTaDyzPYvCO7nhsveDAtlN0qEWUpThgp0uxlDUX2NUf?= =?us-ascii?Q?uXFpZ9IaCg0PshikPV+igCb786mCRQM4QTQaAKEwHcrh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PJKd0dpbGqm5GyF5kvhn93DKbqIDK+AEaqrSMmi49y9?= =?us-ascii?Q?5cZvCvCf1doI2OIthMCKx8NCMZSqgUwsnSCI760xeduj4Ko4W56oLDJTX6Zk?= =?us-ascii?Q?6fV4EfOPhOvkCb7E+fgtrTY5f32ad/XFcp/YKDvlVRrF/fZPoEO8tFfxZ/Wb?= =?us-ascii?Q?+DLdhtXfug4KvBYPN9DCuNxn4rqy1EZ10CmAMAE8/FGW0w8JklOXgbGG7x2O?= =?us-ascii?Q?G3IzSbBCVH+ox734NpFKi1xHqpS0ZgKfuVk1KsRbWoYZv38qBTKGbGKEKuhZ?= =?us-ascii?Q?uxFdPAXzGnxixFP4hWAge3ZsbwL38Ohv8R16TdCv+ndLbRWg?= X-Forefront-PRVS: 0340850FCD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0597; 23:JJI9XrOp8Dxrxi/2Gc8m9q5QKT82qSgdoCwjFA0?= =?us-ascii?Q?W5oS0HXdKxcYGhFckGGqtaxlJi1EEURznh4WzRztGrXY03tPUMRBH6tdCCPJ?= =?us-ascii?Q?QWyCRN7RonM+5WcXCBoLZKolDt04rc2q7595X7Lg74VXc4/vgGk0vim+RszX?= =?us-ascii?Q?TSgznrPB+0zAz/t2MSiTQWooIo5vbykOAb32M/+uTBjEzpzRlDSKDWol60/4?= =?us-ascii?Q?1Ou026PYGlDmlQqgc0dIWAu9wnYb1IyhsIAvfliZueBaZzZn54StvIiNyMKr?= =?us-ascii?Q?XwCOo+tvl2x8xHXPXUy7ImLiOueqVlHXaNL+Zd/HnL0OEyeFHf7GXtVdepwA?= =?us-ascii?Q?kWx0fvhwl6+42xVUoPYP5vmwNJNZJbsVXOLCIiAWEOSDUIOb+1USmPw81Dpo?= =?us-ascii?Q?79lfHzR2pMJg5aahacGJ7FY59SRek9fMbug/1EWaO1FOPjELWYz6NGkxHdR6?= =?us-ascii?Q?xhPd2xCS4S+eBViUmXuv6f46HfB94nYo5rOm+tArn/tfQ4WY3BotcC93IZOd?= =?us-ascii?Q?Fd27FDCMw4Cm1XzDT2dft0ncpD0Twlj+Jh9WI3CuAWTIaO5Q7J0cmP0IPQTs?= =?us-ascii?Q?+EtreDrWegxFXNMbn2iB7TjKmvXfvygFWZeSihNsznhpeHHgW4hcjFXqHW73?= =?us-ascii?Q?F/g+YjdlL3Lt4lkSxOklec6SEHBCPvykamdVNi2PZDoxQ9dg7Uq7o0qNilFA?= =?us-ascii?Q?EFYdpZTMskjFW2mrP4QGEHF9kqAoKojMa6VAJh1uvtAqISXYmic1CE5TUmYg?= =?us-ascii?Q?qk9bDiYCSxpraW/8EerKiRPGQymjZr2ea5+ZCzPCxu2u0X7bvb25733DI9iB?= =?us-ascii?Q?d1ogpvPhkANU/PKNwRudjIymrvPlTAvXE+fTs+JOyH58QDhOIJr4JVWdTz9Y?= =?us-ascii?Q?NQhnM/+XYSUU50pb+ou8RIxTzbbmFL6Ygd2eIi13RStFij3LZakRRwcQ9yw7?= =?us-ascii?Q?jLSUf+o0gy98XBPY5ky1USQOiHi3SFN6LYBsH80a5Rbh8O4UZkIKFv33haG/?= =?us-ascii?Q?0MdBaZgMRknsSLcroxs7HwyEj++Sczj3REU688UxrusA1pl1RJKiHMixu56L?= =?us-ascii?Q?TOywqhSH+2ots1gqDhLdwZOvugQ3I/XRy03twJT1E9bX26yrkNh8vThrQKcc?= =?us-ascii?Q?GRd24YxZzy0INDJndQ3U6hU86+PZmp+EmTYt4htgqvetLUYaFSg4p1+OMQeg?= =?us-ascii?Q?zt9RijbgM+NiI1CFel3NSCkurCkTJNBONlIoPpjZnRV6QYFaStPbMXZxgi+C?= =?us-ascii?Q?nwi2cc3eyheTYqBfy9ygT6q4xAK6zdpf/GezcbzMYzDhveLHDnGKQ2NHd+V/?= =?us-ascii?Q?2Nw=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0597; 6:eMSP2DWWKM8U5rcVN+HFCfZUmImRCn3UHHTH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ZVQ9KNVccz4ktamSclF5AIdqYKPHKOhwK5gry3HLFB0lXr?= =?us-ascii?Q?ojP6djla6NrA2hS0T73Wz0TLtvZIrCstFCZRpixKNQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0597; 5:r21giKWtAcDIwF2H46uXXg60k8Co/8HngwDVK1Y7vSR8NJCUIV8QxNxropYLnUydqYS8jTHiTkhFsvdzPlcpOMfdqBCVWtdc79jQFt/gGCmNKYcSTyv+VKwy4DZrJZ2kObiUIsceOxM/TniBvFHx+UEq2PCh8c/cqTfd+LkKwn4Q7tlGHyBHpf2mMjrEtwJldMv2dbxQNHmKaxfa5yLH5NJC6M7w8tAFT3njuMb0dezJs/+E8EQ8nexUlarctL+VzDw9TkZJcMU0XZsfdcSUwbR+q/M7po8sQkxo7URT5htBTKBsOM/JuuoK5PM5APQKnOWSfBzNNsk2+t3jJkwr1f8a4SMR5ZN1hLuAmGX2LDAmccXwUUyFnp7NlGMD/3zefoLcyogtP91jC7sdheA7QPZ+E+m001XozKUBE1c0Z9NVGe8DEYlQxtAybZrFytEygno5FfBKwI4+SSffTvDsQEyglyPbRdilzOiF2iRGz7l7RhMuLAZBRPEaaO74J397tJOWO8viGE+/3xoQvIYdNw==; 24:dqdetdiav71jVqEbCVXHoztusziebNdZe3JWXXVecCdkM/AceXmNSG9IZiYU5rcndOWasHAcHHnS6CaMC7HYEGHBRz4sQZEEWqzded2kX/s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0597; 7:w26ea1wcxNPX9DTphp7rhFOEwIBLSpZdsSwPjH8XnaC27h6M4bSSXxznWihH9pcIi2grfeVgqULD9xxfHV5Detfxady9tI/7cU/rLNkEXJ0aDlE8D/HJklAx7QHzwzJrzCbouXZfgk6G7vcb7ZqvK62g7b4RX4poc+lACE9fyOMzo17CFXYWe7RamFKEvRmXpsb+Tk2m/5ETesgVg/NFVkncxF6MLJUT2oPL2+IUhawBaZ+ZqnSjRcYVA4r5aYsRzuUk0xP9p+KbTWKfnRwzt79s0xFcbJ6j+hPfqyToRDMu54Wpcvk/80mWa3M1Xm9JwIr6V6ttxhY1x4JczPgQV4ymbAn1mtJiuIXVuVeNAuVEPRGX5msQ3q/5yQ947eFYGBzhPCMKtSp2O4n0q8BxasAvLnDebNX/UDwKy1qDoTkhQ/xI0Fmfx2/QSuT2AClhCAA13eqHYUAMtXBf6G94LdJQiBjST9XNx3jH3Kwob4u5faLfpQEjjjDxQWsVa/rg1sPfu2RhmXhyNq33KEEJL9mw1Y3Xai/GSu3WVVfwUCBjBbLjYSlxnjv7Xrj8AQmRswuitTwzEUEboo27kqiIxJKGMNFAgf6pzb7loB35H7T8exeXxobRIctLz6dFuaYAc6GAc+uQ66a5+PeeRrlHUXJLV5yxQKMNARCItUSqL5i7LTD4oWLBu48FCDbGuEr3D9xKCi/Qb886Hhxm7eBr4PTAd0aL+W6XXWNOOmdh8DyFzL2AuNb6yLQmrqohMlBLq4dmgMG6s65NfSQI52EJhVSXzA+ZiOwhEFqXt4rLL00= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 05:32:41.5056 (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: BY2PR0301MB0597 Subject: [dpdk-dev] [PATCH 08/38] bus/dpaa: enable DPAA IOCTL portal 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, 16 Jun 2017 05:32:45 -0000 Userspace applications interact with DPAA blocks using this IOCTL driver. Signed-off-by: Geoff Thorpe Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/Makefile | 4 +- drivers/bus/dpaa/base/qbman/process.c | 331 ++++++++++++++++++++++++++++++++++ drivers/bus/dpaa/include/fsl_usd.h | 88 +++++++++ drivers/bus/dpaa/include/process.h | 107 +++++++++++ 4 files changed, 529 insertions(+), 1 deletion(-) create mode 100644 drivers/bus/dpaa/base/qbman/process.c create mode 100644 drivers/bus/dpaa/include/fsl_usd.h create mode 100644 drivers/bus/dpaa/include/process.h diff --git a/drivers/bus/dpaa/Makefile b/drivers/bus/dpaa/Makefile index 94849b8..22218e2 100644 --- a/drivers/bus/dpaa/Makefile +++ b/drivers/bus/dpaa/Makefile @@ -51,6 +51,7 @@ CFLAGS += -D _GNU_SOURCE CFLAGS += -I$(RTE_BUS_DPAA)/ CFLAGS += -I$(RTE_BUS_DPAA)/include +CFLAGS += -I$(RTE_BUS_DPAA)/base/qbman CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include @@ -68,6 +69,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_DPAA_BUS) += \ base/fman/fman.c \ base/fman/fman_hw.c \ base/fman/of.c \ - base/fman/netcfg_layer.c + base/fman/netcfg_layer.c \ + base/qbman/process.c include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/bus/dpaa/base/qbman/process.c b/drivers/bus/dpaa/base/qbman/process.c new file mode 100644 index 0000000..b8ec539 --- /dev/null +++ b/drivers/bus/dpaa/base/qbman/process.c @@ -0,0 +1,331 @@ +/*- + * This file is provided under a dual BSD/GPLv2 license. When using or + * redistributing this file, you may do so under either license. + * + * BSD LICENSE + * + * Copyright 2011-2016 Freescale Semiconductor Inc. + * Copyright 2017 NXP. + * + * 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 the above-listed copyright holders nor the + * names of any contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * GPL LICENSE SUMMARY + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ +#include +#include +#include +#include + +#include "process.h" + +#include + +/* As higher-level drivers will be built on top of this (dma_mem, qbman, ...), + * it's preferable that the process driver itself not provide any exported API. + * As such, combined with the fact that none of these operations are + * performance critical, it is justified to use lazy initialisation, so that's + * what the lock is for. + */ +static int fd = -1; +static pthread_mutex_t fd_init_lock = PTHREAD_MUTEX_INITIALIZER; + +static int check_fd(void) +{ + int ret; + + if (fd >= 0) + return 0; + ret = pthread_mutex_lock(&fd_init_lock); + assert(!ret); + /* check again with the lock held */ + if (fd < 0) + fd = open(PROCESS_PATH, O_RDWR); + ret = pthread_mutex_unlock(&fd_init_lock); + assert(!ret); + return (fd >= 0) ? 0 : -ENODEV; +} + +#define DPAA_IOCTL_MAGIC 'u' +struct dpaa_ioctl_id_alloc { + uint32_t base; /* Return value, the start of the allocated range */ + enum dpaa_id_type id_type; /* what kind of resource(s) to allocate */ + uint32_t num; /* how many IDs to allocate (and return value) */ + uint32_t align; /* must be a power of 2, 0 is treated like 1 */ + int partial; /* whether to allow less than 'num' */ +}; + +struct dpaa_ioctl_id_release { + /* Input; */ + enum dpaa_id_type id_type; + uint32_t base; + uint32_t num; +}; + +struct dpaa_ioctl_id_reserve { + enum dpaa_id_type id_type; + uint32_t base; + uint32_t num; +}; + +#define DPAA_IOCTL_ID_ALLOC \ + _IOWR(DPAA_IOCTL_MAGIC, 0x01, struct dpaa_ioctl_id_alloc) +#define DPAA_IOCTL_ID_RELEASE \ + _IOW(DPAA_IOCTL_MAGIC, 0x02, struct dpaa_ioctl_id_release) +#define DPAA_IOCTL_ID_RESERVE \ + _IOW(DPAA_IOCTL_MAGIC, 0x0A, struct dpaa_ioctl_id_reserve) + +int process_alloc(enum dpaa_id_type id_type, uint32_t *base, uint32_t num, + uint32_t align, int partial) +{ + struct dpaa_ioctl_id_alloc id = { + .id_type = id_type, + .num = num, + .align = align, + .partial = partial + }; + int ret = check_fd(); + + if (ret) + return ret; + ret = ioctl(fd, DPAA_IOCTL_ID_ALLOC, &id); + if (ret) + return ret; + for (ret = 0; ret < (int)id.num; ret++) + base[ret] = id.base + ret; + return id.num; +} + +void process_release(enum dpaa_id_type id_type, uint32_t base, uint32_t num) +{ + struct dpaa_ioctl_id_release id = { + .id_type = id_type, + .base = base, + .num = num + }; + int ret = check_fd(); + + if (ret) { + fprintf(stderr, "Process FD failure\n"); + return; + } + ret = ioctl(fd, DPAA_IOCTL_ID_RELEASE, &id); + if (ret) + fprintf(stderr, "Process FD ioctl failure type %d base 0x%x num %d\n", + id_type, base, num); +} + +int process_reserve(enum dpaa_id_type id_type, uint32_t base, uint32_t num) +{ + struct dpaa_ioctl_id_reserve id = { + .id_type = id_type, + .base = base, + .num = num + }; + int ret = check_fd(); + + if (ret) + return ret; + return ioctl(fd, DPAA_IOCTL_ID_RESERVE, &id); +} + +/***************************************/ +/* Mapping and using QMan/BMan portals */ +/***************************************/ + +#define DPAA_IOCTL_PORTAL_MAP \ + _IOWR(DPAA_IOCTL_MAGIC, 0x07, struct dpaa_ioctl_portal_map) +#define DPAA_IOCTL_PORTAL_UNMAP \ + _IOW(DPAA_IOCTL_MAGIC, 0x08, struct dpaa_portal_map) + +int process_portal_map(struct dpaa_ioctl_portal_map *params) +{ + int ret = check_fd(); + + if (ret) + return ret; + + ret = ioctl(fd, DPAA_IOCTL_PORTAL_MAP, params); + if (ret) { + perror("ioctl(DPAA_IOCTL_PORTAL_MAP)"); + return ret; + } + return 0; +} + +int process_portal_unmap(struct dpaa_portal_map *map) +{ + int ret = check_fd(); + + if (ret) + return ret; + + ret = ioctl(fd, DPAA_IOCTL_PORTAL_UNMAP, map); + if (ret) { + perror("ioctl(DPAA_IOCTL_PORTAL_UNMAP)"); + return ret; + } + return 0; +} + +#define DPAA_IOCTL_PORTAL_IRQ_MAP \ + _IOW(DPAA_IOCTL_MAGIC, 0x09, struct dpaa_ioctl_irq_map) + +int process_portal_irq_map(int ifd, struct dpaa_ioctl_irq_map *map) +{ + map->fd = fd; + return ioctl(ifd, DPAA_IOCTL_PORTAL_IRQ_MAP, map); +} + +int process_portal_irq_unmap(int ifd) +{ + return close(ifd); +} + +struct dpaa_ioctl_raw_portal { + /* inputs */ + enum dpaa_portal_type type; /* Type of portal to allocate */ + + uint8_t enable_stash; /* set to non zero to turn on stashing */ + /* Stashing attributes for the portal */ + uint32_t cpu; + uint32_t cache; + uint32_t window; + /* Specifies the stash request queue this portal should use */ + uint8_t sdest; + + /* Specifes a specific portal index to map or QBMAN_ANY_PORTAL_IDX + * for don't care. The portal index will be populated by the + * driver when the ioctl() successfully completes. + */ + uint32_t index; + + /* outputs */ + uint64_t cinh; + uint64_t cena; +}; + +#define DPAA_IOCTL_ALLOC_RAW_PORTAL \ + _IOWR(DPAA_IOCTL_MAGIC, 0x0C, struct dpaa_ioctl_raw_portal) + +#define DPAA_IOCTL_FREE_RAW_PORTAL \ + _IOR(DPAA_IOCTL_MAGIC, 0x0D, struct dpaa_ioctl_raw_portal) + +static int process_portal_allocate(struct dpaa_ioctl_raw_portal *portal) +{ + int ret = check_fd(); + + if (ret) + return ret; + + ret = ioctl(fd, DPAA_IOCTL_ALLOC_RAW_PORTAL, portal); + if (ret) { + perror("ioctl(DPAA_IOCTL_ALLOC_RAW_PORTAL)"); + return ret; + } + return 0; +} + +static int process_portal_free(struct dpaa_ioctl_raw_portal *portal) +{ + int ret = check_fd(); + + if (ret) + return ret; + + ret = ioctl(fd, DPAA_IOCTL_FREE_RAW_PORTAL, portal); + if (ret) { + perror("ioctl(DPAA_IOCTL_FREE_RAW_PORTAL)"); + return ret; + } + return 0; +} + +int qman_allocate_raw_portal(struct dpaa_raw_portal *portal) +{ + struct dpaa_ioctl_raw_portal input; + int ret; + + input.type = dpaa_portal_qman; + input.index = portal->index; + input.enable_stash = portal->enable_stash; + input.cpu = portal->cpu; + input.cache = portal->cache; + input.window = portal->window; + input.sdest = portal->sdest; + + ret = process_portal_allocate(&input); + if (ret) + return ret; + portal->index = input.index; + portal->cinh = input.cinh; + portal->cena = input.cena; + return 0; +} + +int qman_free_raw_portal(struct dpaa_raw_portal *portal) +{ + struct dpaa_ioctl_raw_portal input; + + input.type = dpaa_portal_qman; + input.index = portal->index; + input.cinh = portal->cinh; + input.cena = portal->cena; + + return process_portal_free(&input); +} + +int bman_allocate_raw_portal(struct dpaa_raw_portal *portal) +{ + struct dpaa_ioctl_raw_portal input; + int ret; + + input.type = dpaa_portal_bman; + input.index = portal->index; + input.enable_stash = 0; + + ret = process_portal_allocate(&input); + if (ret) + return ret; + portal->index = input.index; + portal->cinh = input.cinh; + portal->cena = input.cena; + return 0; +} + +int bman_free_raw_portal(struct dpaa_raw_portal *portal) +{ + struct dpaa_ioctl_raw_portal input; + + input.type = dpaa_portal_bman; + input.index = portal->index; + input.cinh = portal->cinh; + input.cena = portal->cena; + + return process_portal_free(&input); +} diff --git a/drivers/bus/dpaa/include/fsl_usd.h b/drivers/bus/dpaa/include/fsl_usd.h new file mode 100644 index 0000000..4ff48c6 --- /dev/null +++ b/drivers/bus/dpaa/include/fsl_usd.h @@ -0,0 +1,88 @@ +/*- + * This file is provided under a dual BSD/GPLv2 license. When using or + * redistributing this file, you may do so under either license. + * + * BSD LICENSE + * + * Copyright 2010-2011 Freescale Semiconductor, Inc. + * All rights reserved. + * + * 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 the above-listed copyright holders nor the + * names of any contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * GPL LICENSE SUMMARY + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef __FSL_USD_H +#define __FSL_USD_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#define QBMAN_ANY_PORTAL_IDX 0xffffffff + +/* Obtain and free raw (unitialized) portals */ + +struct dpaa_raw_portal { + /* inputs */ + + /* set to non zero to turn on stashing */ + uint8_t enable_stash; + /* Stashing attributes for the portal */ + uint32_t cpu; + uint32_t cache; + uint32_t window; + + /* Specifies the stash request queue this portal should use */ + uint8_t sdest; + + /* Specifes a specific portal index to map or QBMAN_ANY_PORTAL_IDX + * for don't care. The portal index will be populated by the + * driver when the ioctl() successfully completes. + */ + uint32_t index; + + /* outputs */ + uint64_t cinh; + uint64_t cena; +}; + +int qman_allocate_raw_portal(struct dpaa_raw_portal *portal); +int qman_free_raw_portal(struct dpaa_raw_portal *portal); + +int bman_allocate_raw_portal(struct dpaa_raw_portal *portal); +int bman_free_raw_portal(struct dpaa_raw_portal *portal); + +#ifdef __cplusplus +} +#endif + +#endif /* __FSL_USD_H */ diff --git a/drivers/bus/dpaa/include/process.h b/drivers/bus/dpaa/include/process.h new file mode 100644 index 0000000..989ddcd --- /dev/null +++ b/drivers/bus/dpaa/include/process.h @@ -0,0 +1,107 @@ +/*- + * This file is provided under a dual BSD/GPLv2 license. When using or + * redistributing this file, you may do so under either license. + * + * BSD LICENSE + * + * Copyright 2010-2011 Freescale Semiconductor, Inc. + * All rights reserved. + * + * 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 the above-listed copyright holders nor the + * names of any contributors may be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * GPL LICENSE SUMMARY + * + * ALTERNATIVELY, this software may be distributed under the terms of the + * GNU General Public License ("GPL") as published by the Free Software + * Foundation, either version 2 of that License or (at your option) any + * later version. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef __PROCESS_H +#define __PROCESS_H + +#include + +/* The process device underlies process-wide user/kernel interactions, such as + * mapping dma_mem memory and providing accompanying ioctl()s. (This isn't used + * for portals, which use one UIO device each.). + */ +#define PROCESS_PATH "/dev/fsl-usdpaa" + +/* Allocation of resource IDs uses a generic interface. This enum is used to + * distinguish between the type of underlying object being manipulated. + */ +enum dpaa_id_type { + dpaa_id_fqid, + dpaa_id_bpid, + dpaa_id_qpool, + dpaa_id_cgrid, + dpaa_id_max /* <-- not a valid type, represents the number of types */ +}; + +int process_alloc(enum dpaa_id_type id_type, uint32_t *base, uint32_t num, + uint32_t align, int partial); +void process_release(enum dpaa_id_type id_type, uint32_t base, uint32_t num); + +int process_reserve(enum dpaa_id_type id_type, uint32_t base, uint32_t num); + +/* Mapping and using QMan/BMan portals */ +enum dpaa_portal_type { + dpaa_portal_qman, + dpaa_portal_bman, +}; + +struct dpaa_ioctl_portal_map { + /* Input parameter, is a qman or bman portal required. */ + enum dpaa_portal_type type; + /* Specifes a specific portal index to map or 0xffffffff + * for don't care. + */ + uint32_t index; + + /* Return value if the map succeeds, this gives the mapped + * cache-inhibited (cinh) and cache-enabled (cena) addresses. + */ + struct dpaa_portal_map { + void *cinh; + void *cena; + } addr; + /* Qman-specific return values */ + u16 channel; + uint32_t pools; +}; + +int process_portal_map(struct dpaa_ioctl_portal_map *params); +int process_portal_unmap(struct dpaa_portal_map *map); + +struct dpaa_ioctl_irq_map { + enum dpaa_portal_type type; /* Type of portal to map */ + int fd; /* File descriptor that contains the portal */ + void *portal_cinh; /* Cache inhibited area to identify the portal */ +}; + +int process_portal_irq_map(int fd, struct dpaa_ioctl_irq_map *irq); +int process_portal_irq_unmap(int fd); + +#endif /* __PROCESS_H */ -- 2.7.4