Received: by 10.223.185.116 with SMTP id b49csp5267619wrg; Wed, 7 Mar 2018 08:58:28 -0800 (PST) X-Google-Smtp-Source: AG47ELtxWFzlFlaYp9/wz9kEjv/Yrovtazt8zVF1X1beTB55rqUCiSTKSwPE2BLb+4jWPWPgqvjB X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr20470851pls.267.1520441908618; Wed, 07 Mar 2018 08:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520441908; cv=none; d=google.com; s=arc-20160816; b=bGUujTPH1RvSlfo14irDTGeawDwImCMbNfd8zXQCX+MmuanVI8zApwpCo5UCU8CNG8 RDgpEVgh3d/OlUlYZFloEe1FwVUcLEJcypdVYcdKYW37P+1MC5+gyg0vR+dFCt57h50X hHrsdQYJiQVjKp2l2iXz2Zwuqs0ZfZFwQesWIRQM++RSo+AC4VzCtayld6v/mGcyx6m+ Q6HkLIwpZB9CpLSysY5q/qIrRF2N+VAFlcULXCUSesb2pfEqL9GFcmZe4TtMbz+vW9Aj X/WgX6cLioYhgR+tnx/WcT59dQy+hSGcuRl9xbkh2S/e7mcVu3W08rxcDItM6Qf8YyUP YARg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=NYci2n4IWSUPAY+EKj6wqCdzS0Z0Vl0jS9rX8pDBPd4=; b=WuWKbIZlMXYS0uzbD2UNxQThiuuHypPfD/ke8AtK9uUIcOT0aflRcL0ylsbuB+8CD0 upiN9Py/XNiOtJ/5W+CePbJNwICKS334IZo2Y+kczvkaxfDrPFPu/FobhVH4KMrmkNaq 8wWpJuaF8wIMaoRu+ZPcyjNEK1aFq+06m1tl8xE8iG0JkICuROm10dhs2UV6tBFGAz3m Tl6Fwv98mpCKlr1Xp67wVaNfupYgauDXFFy0e6PUo2wKz2je5oxey2TEKa4gj4hqtXSt KdD1g7wGxjZmFw7QTM0SCea6p8NdgPfasNRYCAOesNg1IFCZwbljbfEUAdaynDgAjpqZ qXVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=A8qZ9sMs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si14112559pfi.300.2018.03.07.08.58.13; Wed, 07 Mar 2018 08:58:28 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=A8qZ9sMs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934091AbeCGQzB (ORCPT + 99 others); Wed, 7 Mar 2018 11:55:01 -0500 Received: from mail-ve1eur01on0069.outbound.protection.outlook.com ([104.47.1.69]:37577 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934262AbeCGQxK (ORCPT ); Wed, 7 Mar 2018 11:53:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=NYci2n4IWSUPAY+EKj6wqCdzS0Z0Vl0jS9rX8pDBPd4=; b=A8qZ9sMsVVXNba6r9eiRkfz+eDmu6MrThIgIqUUrs4QvYxyhwNLGHNVU9r4az4AgmxWofGF1N/ZUQA5LaGZbIUBmKQedvN2EX/dFWk5WcpM+3sagKIGIkNtg89fJiG2jSHdeCdQkt95Z/SVkg49O3Ar6UTa1vgX6kdajwo0DhFE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ioana.ciornei@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.49) by HE1PR04MB3210.eurprd04.prod.outlook.com (2603:10a6:7:1b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Wed, 7 Mar 2018 16:53:04 +0000 From: Ioana Ciornei To: gregkh@linuxfoundation.org, laurentiu.tudor@nxp.com Cc: linux-kernel@vger.kernel.org, stuyoder@gmail.com, ruxandra.radulescu@nxp.com, arnd@arndb.de, upstream-release@linux.freescale.net, Ioana Ciornei Subject: [PATCH 0/3] bus: fsl-mc: enhance Management Complex userspace support Date: Wed, 7 Mar 2018 10:51:34 -0600 Message-Id: X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: BN6PR1001CA0023.namprd10.prod.outlook.com (2603:10b6:405:28::36) To HE1PR04MB3210.eurprd04.prod.outlook.com (2603:10a6:7:1b::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 42e7bf02-2e96-4c07-d21c-08d5844be640 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:HE1PR04MB3210; X-Microsoft-Exchange-Diagnostics: 1;HE1PR04MB3210;3:96hwMnemsK6LgwWNQIltUdZ2OjJ4Q0uN/6Tp2PB3akOiIe/7MEvLsdPvG4NHqZxVGCY9JRBs0fuRApNdKAsh9XiPJsa6aY1TT2TIjehUSubUlHFErMucmp3ecRu+j07lG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ac3eqbxTmF98BuKakYFaOznQR6P+xOzTp7BVz37GvTRtU4BIK23FtZ0e6W1CutxXeE9TakzpwrFi17BFDhMKv34ExqeNBWNUmtUfEg8g6s2djFchKI1G62JVflR3CEIodAZcRXL7l9IFqa2d2dgLjlLFq2w7MFEWxid/hJ9BtbXhwBOYpEyflzBKWO7P3cU6u06l0DAONTPHk8AaCR0Dx;4:2OCPIJHvKhRg9nFlQ3kT5AqoBIcGAxULtvnoOXrrcgjWmDCK7Uv/4F/CWzuZdQV1W4TTTDsCJpgaO7k+xVJywGN8hoog+XYRpOU7FF0eS/wXR0RFJOpsUJcokITDatRHtXuuXeEqhNWYWl3Kh79DQtxMfeExV30AWW4n2X0SNPhF081XskhDJkueUodOq8OTbYKNXwHcGSAxlvpTMdarV0RRQLqqRkMB1cqua2OQrsoaA0zmMmfxXsXa3+7yY6dm/hS7vooUwX84f3xK8ylFRg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231220)(944501244)(52105095)(6055026)(6041288)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:HE1PR04MB3210;BCL:0;PCL:0;RULEID:;SRVR:HE1PR04MB3210; X-Forefront-PRVS: 0604AFA86B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(396003)(39380400002)(346002)(199004)(189003)(6486002)(36756003)(47776003)(6116002)(50226002)(3846002)(66066001)(8936002)(68736007)(8676002)(50466002)(48376002)(81156014)(81166006)(39060400002)(52116002)(6506007)(51416003)(386003)(7736002)(305945005)(2906002)(478600001)(25786009)(86362001)(53936002)(106356001)(16586007)(16526019)(186003)(105586002)(6666003)(97736004)(4326008)(6636002)(316002)(5660300001)(6512007)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR04MB3210;H:rhuath.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HE1PR04MB3210;23:PWwk/tlNpphTY8PqC9Cgq6Ncit3LK5QXtc6IFRLrZ?= =?us-ascii?Q?7MIPtsnDInvxYx5oJNPTi1TluNLayznI11kNLSjgEIz5oOmployLjauaJhPD?= =?us-ascii?Q?J/TvQOOwkE8ZkaUzaGrtN0zNnzyiKQTX4mNPEP2XjvKsTRTqd+2zVv/wrryx?= =?us-ascii?Q?Ws8pqf5Yjv5GMUyHsXvrGoag6RV+JAr20squvP1VKWKg9+S3dhdzms9ngG+r?= =?us-ascii?Q?qIQMD9NZ0RJHob5AY0pRHQ6l5fVFLMbkAQkGJXhs1eTciT08hwen7LgdUdvC?= =?us-ascii?Q?NnXe+KO6xb1Nt3ni9HLeXApomUTHPcPjiwUW5FDYgPkU3qndjbtZIFADHCj5?= =?us-ascii?Q?1dK48riB7uTD5e56BqUum8wLJ5WyuxpXQ5U40y/cfXXihTAymwLdDmyAaSmd?= =?us-ascii?Q?wANI0tNNJ2xBwktXFsAsx021kfrOflw5CpOBGW8kqbiqJv95V8VEv8Ai036v?= =?us-ascii?Q?Z8+Fu+FzGN6sklfM58SJDqAUXVk85kUMkeS9lAO263adgj8D0d55pSAyA4o/?= =?us-ascii?Q?qHVLjuQf70CdBO/ssAroJ2zk3UbBc7gVmHEYOdMRMpIiiAMXOtxFq0JSj1Z9?= =?us-ascii?Q?cIGUfdu4WSt/1KvdojLSf+6Hhl/qZrPzuj5Nkbeo5ev4HDUoXA7j/4a5ZUpN?= =?us-ascii?Q?InoVexYRKymMVu3m7MpsJeqQRPPdOV/DLZ2v8TybHPUblYFJw8dJlBZ77xIc?= =?us-ascii?Q?IQlOoLb9rMvidsjJzvC2rS1x1HE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+WD0VdS3tcpAtUT3iir7FTxV0/efwMPx3iRpgY9HQr0VbheAjwsCXT8jeMdC6VV2hflouivmPEhaDQWgIeqBZ31HLGb8A0LqJh1MFKCw6Z4wzRN+J67WjXGWgkYxg+0nWgJyD7GG2VkkZj6hikH1IUH3I=;24:rQcyx9dXglEYxQwvmA2VgT4McoIazhDe1ulXOpEfQZlAO8yALfaw7htI3Xgq7JNKJjiB7XLTs2ZE278vwc8k6iSr7xN5v3Th+1Cfd7Y3Y7U=;7:bvWpxlOrUw29ZCum5V00jPD9uZWACA/8KTHysLyw+/rYWKTLMUeWg5Id9u00k/UJdq8tzpXGwd3xoqP5i8XOFs44YAASgAGFUFOEjQFLhKjNiHgvrdODLTjdPsHGJvdsLGmUqi9zcnOYv0DkryLzpr91Tn9m8ii+gKjjW5I+Llht0kvDD1oroh1ZnJJf+LSkXc6qwhRCRPOf9YYhPtWVQ/LsnkOnYoZ5t+psrQF16WyXX+h89kNM8/WSz+dCP22F SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2018 16:53:04.6652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42e7bf02-2e96-4c07-d21c-08d5844be640 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3210 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds restool support in fsl-mc bus along with a rescan attribute to the root DPRC container. Ioana Ciornei (3): bus: fsl-mc: add restool userspace support bus: fsl-mc: add root dprc rescan attribute bus: fsl-mc: add bus rescan attribute Documentation/ioctl/ioctl-number.txt | 1 + Documentation/networking/dpaa2/overview.rst | 4 + drivers/bus/fsl-mc/Kconfig | 7 + drivers/bus/fsl-mc/Makefile | 3 + drivers/bus/fsl-mc/dprc-driver.c | 4 +- drivers/bus/fsl-mc/fsl-mc-allocator.c | 5 + drivers/bus/fsl-mc/fsl-mc-bus.c | 95 ++++++++++++ drivers/bus/fsl-mc/fsl-mc-private.h | 59 ++++++++ drivers/bus/fsl-mc/fsl-mc-restool.c | 219 ++++++++++++++++++++++++++++ 9 files changed, 395 insertions(+), 2 deletions(-) create mode 100644 drivers/bus/fsl-mc/fsl-mc-restool.c -- 1.9.1