Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp784162ybg; Thu, 19 Mar 2020 08:42:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvB4lrH5nX2kjvLM2SrlDI/A9WXwDi6KN5AWCHuh4yNXeKFDkn3mkQxuLaV83ThgFfFhJEc X-Received: by 2002:a54:478d:: with SMTP id o13mr2905310oic.166.1584632526081; Thu, 19 Mar 2020 08:42:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584632526; cv=none; d=google.com; s=arc-20160816; b=ionQtLNKss2l1ipBV6WVd1CYEnwfQUWfjVZIZG6KbGrAmreehic37LkMTzeMIEIkmI rHFSqsAP0IaFOXlMEtFKjug1iQvA2WXWfi42QcoY331CoGgkfvbFcm0sLOpyeokPnngV /Hj70pJBVrJJgqwMfzY5u0A+RipIQ3fFr6pHe3kHr/ubtjtsKcLSk1IsQoKxNV24aYC+ jdzMPTIzDD8Vkx5ythBCGSS0ZAMUFt7QHfGzW4vuEV+tHpGWTqNAsyC7P1j9lZQpcJqN QCx3uSoInczjLCepCsDV26mRbIPLw2UPXKLkqop8d0tMKsnkms6hWlLVjNzSTJUI3v2W tPSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=CzOuwi/yxT3G8K7L20z/nOB6gWaeeleI63WM3prJkbU=; b=PEPTrXTHrlk7lCI1Gwc0D5FTB3L3bC3Vvk16JdKzR/i1i8CSzBtMx+SXtRIx4iVFu9 IMp5/GPU4scdycbruqBrrXLv1Cg9VZcr6qQLH06PnC1npWJrNIlrYY1hWMaD6FkDNl5l BPBOeqjf5HJUqG9LR3UJyHpbtlYOSuqFg/S0Lrh7RpI3xL3ozVSlQl5fEzpMmlh9Wlp0 FONoaBxZT84Mb6IfnqSmd0qiegvEYXbx6G5PtX4tFORaTMugorfWK26KHzEki0twXlwR c1DD4u72HZpJ6P70qyqkiCQP9UmiMQFyetR0S/qlju3Idmed1SNYGSykayqPrCwSDXfC BfyA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 f12si1331514oig.263.2020.03.19.08.41.42; Thu, 19 Mar 2020 08:42:06 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728023AbgCSPlE (ORCPT + 99 others); Thu, 19 Mar 2020 11:41:04 -0400 Received: from inva020.nxp.com ([92.121.34.13]:41338 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727462AbgCSPlE (ORCPT ); Thu, 19 Mar 2020 11:41:04 -0400 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 Cc: Diana Craciun 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.17.1