Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp505649ybj; Thu, 7 May 2020 00:40:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIodUv3nbIMRCwhpeqWo+/ny1Cb5+9f5XCBC4ryL1AwKPNg2CuwB7XyUji1Ubxoh0r5IDZ7 X-Received: by 2002:a17:906:17c5:: with SMTP id u5mr10793935eje.275.1588837207871; Thu, 07 May 2020 00:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588837207; cv=none; d=google.com; s=arc-20160816; b=kVEWMKtzmkwWhJEraGimQgX2vinWqaM+lgPkCuwXyitLyYsrm00JJW8DxRO1SOX6kK naISQYybpCR88wRsN8weX66cO+Lsbvp8/j0VJoraAUVDtldAxr6U5uFLvr8zGKjr7ToW pkIaR+fxJ61Gv8Cu5hbkNPxVTnN9Qx0aj0UC+13zjKl2zTb19pHixY+4oHyUjPMgE7RC iSDbzAXhDqkt9Nsjh4MwiscnGXzBQkd4KkkRUBLCnlQmdXGQTeR6E8wXm+0JhwQri85u hJZskTuH6LaulYH7SYvaaBbSyBqKIX1pgd8PNpji/hFxqMlao+XCS6K6JOLw1Js6PlfX E58Q== 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=jrDKimg4XSnr2IZg4R3/AgCjnimH0/hqQMGUEvWj90w=; b=thSnfnLFnBO4EbLCAweja7tth4w0AvpS7kmobrMiIlyiE/Vwf9BOm81JfiDTROUS2O yDobW+LFdvRL7zMkumPJ2zHLXUU/ixkTsqOGmjnMQrJ0DQkz1HCmuD1MEq9chn2yJqCC 4rqaO843whEtSDnuKJK7iMKuCyYLEMKpLfjf3l3fNcl18csDpkSWRNiE22ZDQfWY3Iow QoxZGfJ23vlkU5hWCPuRXBgdC8klu5qnHTGFcyzstOGOD2jMRn/mcr5Ch+gdpFxsnQKD F3jrDum1PY4XVemwDhUjUc+5yXO+AFzqsi532YUwzUJNoZOAxzMrvl2PxwglX1jNijgE kbXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o32si2557204edb.380.2020.05.07.00.39.44; Thu, 07 May 2020 00:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1725966AbgEGHfq (ORCPT + 99 others); Thu, 7 May 2020 03:35:46 -0400 Received: from inva021.nxp.com ([92.121.34.21]:50116 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbgEGHfp (ORCPT ); Thu, 7 May 2020 03:35:45 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5C619200F19; Thu, 7 May 2020 09:35:43 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 4DDB1200F10; Thu, 7 May 2020 09:35:43 +0200 (CEST) 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 F394A203C5; Thu, 7 May 2020 09:35:42 +0200 (CEST) From: Diana Craciun To: linux-kernel@vger.kernel.org Cc: laurentiu.tudor@nxp.com, stuyoder@gmail.com, leoyang.li@nxp.com, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, Diana Craciun Subject: [PATCH v2 00/12] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support Date: Thu, 7 May 2020 10:34:19 +0300 Message-Id: <20200507073431.2710-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 - driver_override support - functions to setup/tear down a DPRC - functions for allocating the pool of interrupts. In case of VFIO the interrupts are not configured at probe time, but later by userspace request v1 -> v2 - Remove driver_override propagation through various functions - Cache the DPRC API version The patches are related with "vfio/fsl-mc: VFIO support for FSL-MC devices" patches, but the series were split because they are targeting different subsystems. However, the mc-bus patches may suffer changes when addressing the VFIO review comments. Bharat Bhushan (3): bus/fsl-mc: add support for 'driver_override' in the mc-bus bus/fsl-mc: Add dprc-reset-container support bus/fsl-mc: Extend ICID size from 16bit to 32bit Diana Craciun (9): 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: Cache the DPRC API version 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: Do not rely on caller to provide non NULL mc_io bus/fsl-mc: Export IRQ pool handling functions to be used by VFIO drivers/bus/fsl-mc/dprc-driver.c | 181 ++++++++++++++++---------- drivers/bus/fsl-mc/dprc.c | 103 +++++++++++++-- drivers/bus/fsl-mc/fsl-mc-allocator.c | 12 +- drivers/bus/fsl-mc/fsl-mc-bus.c | 64 ++++++++- drivers/bus/fsl-mc/fsl-mc-private.h | 28 ++-- drivers/bus/fsl-mc/mc-io.c | 7 +- include/linux/fsl/mc.h | 29 ++++- 7 files changed, 313 insertions(+), 111 deletions(-) -- 2.17.1