From patchwork Thu Mar 19 15:40:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diana Madalina Craciun X-Patchwork-Id: 11447565 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 868D292A for ; Thu, 19 Mar 2020 15:41:13 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3970220775 for ; Thu, 19 Mar 2020 15:41:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mHHV5LBB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3970220775 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ri9uyX6CikX5dTCye+r3EYTKPF/UGZLe6twvCWrTFv8=; b=mHH V5LBBmIQMiyH1qSCnAtA5AuVSLMa4gWpN737l92jf3UEQCOo53WonUyWnrYaRv1zGaR7ChEJnPNAc DcuxSERuuKtVJ2DtyE6+s/SbAFJEtKOPTGyk1a4IFFD4b+Zp3lKd06RqG5J0e2QBoVIENnPGogYPj U3X8WADX9w8iJwSm9Y3siFSd0UwNyvTLxRs1apCv9gYk+qZv4+bPJBVCxxOPor8HFkBNs+OYA0K4Y QIV+v3ykINc+uo3cFy9OJtwUVZzXdJITmzzdP9hYusIK5TU8rmrTEBo6F1NgaSP3OBQm60YaHtJxd qnv9TzbXuHG0K1gp5SgKISSXtNCuK3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jExID-0000lt-Bs; Thu, 19 Mar 2020 15:41:09 +0000 Received: from inva020.nxp.com ([92.121.34.13]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jExIA-0000ky-NE for linux-arm-kernel@lists.infradead.org; Thu, 19 Mar 2020 15:41:08 +0000 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id DC8AB1A010D; Thu, 19 Mar 2020 16:41:02 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id D00B71A0117; Thu, 19 Mar 2020 16:41:02 +0100 (CET) Received: from fsr-ub1864-111.ea.freescale.net (fsr-ub1864-111.ea.freescale.net [10.171.82.141]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 82FB8205C2; Thu, 19 Mar 2020 16:41:02 +0100 (CET) From: Diana Craciun To: linux-kernel@vger.kernel.org, laurentiu.tudor@nxp.com, stuyoder@gmail.com, leoyang.li@nxp.com, linux-arm-kernel@lists.infradead.org, bharatb.yadav@gmail.com Subject: [PATCH 00/10] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support Date: Thu, 19 Mar 2020 17:40:41 +0200 Message-Id: <20200319154051.30609-1-diana.craciun@oss.nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200319_084106_897558_508DAA16 X-CRM114-Status: UNSURE ( 7.16 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [92.121.34.13 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Diana Craciun MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The vfio-mc bus driver needs some additional services to be exported by the mc-bus driver like: - a way to reset the DPRC container - support for driver_override such taht the objects within a DPRC to be bind to the VFIO driver - functions to setup/tear dowan a DPRC - functions for allocating the pool of interrupts. In case of VFIO the interrupts are not configured at probe time, but later, when the userspace configures the interrupts. Bharat Bhushan (3): bus/fsl-mc: add support for 'driver_override' in the mc-bus bus/fsl-mc: Propagate driver_override for a child DPRC's children bus/fsl-mc: Add dprc-reset-container support Diana Craciun (7): bus/fsl-mc: Do no longer export the total number of irqs outside dprc_scan_objects bus/fsl-mc: Add a new parameter to dprc_scan_objects function bus/fsl-mc: Set the QMAN/BMAN region flags bus/fsl-mc: Export a dprc scan function to be used by multiple entities bus/fsl-mc: Export a cleanup function for DPRC bus/fsl-mc: Add a container setup function bus/fsl-mc: Export IRQ pool handling functions to be used by VFIO drivers/bus/fsl-mc/dprc-driver.c | 184 ++++++++++++++++---------- drivers/bus/fsl-mc/dprc.c | 41 ++++++ drivers/bus/fsl-mc/fsl-mc-allocator.c | 12 +- drivers/bus/fsl-mc/fsl-mc-bus.c | 81 +++++++++++- drivers/bus/fsl-mc/fsl-mc-private.h | 23 +--- drivers/bus/fsl-mc/mc-io.c | 7 +- include/linux/fsl/mc.h | 27 ++++ 7 files changed, 279 insertions(+), 96 deletions(-)