Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3514841pxa; Wed, 26 Aug 2020 02:27:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSIPLgSvC4vv2HDTzepAD4cEMBtnTVOG8DU9Kxtmkp+RZGNGj5h+wzu2+P2b9055//a3e+ X-Received: by 2002:aa7:cd52:: with SMTP id v18mr13111986edw.165.1598434045923; Wed, 26 Aug 2020 02:27:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598434045; cv=none; d=google.com; s=arc-20160816; b=ShTCbGVrkmQ514ewDPEW93TYDtRtuYySukV6NVFDvNXS+t/kxWK8rUx+FzbAhFj0gQ A2pakV7ep7oPZ8rxDk0Un3oCXOSEvgsXCxM4kOfuctKhgL0cbSPng3H9eHw4AhLIHlAO EKjxOpSj6Ozb35+XYbWvc5jpJcM0RsoA43H1tD9uEpDvn8ug5h/8+rXM1ylWbiJdVr12 oPfu7h7Rtum1skHFse/swT11PsRuv0WWB2E7al3sZ4aCvPwLv0oFYXOmsGj1NgOzbvx7 fLxhtFtUGM7MVOhtSdH3BgUqATAdAqGzmAMTl6pt/7KfocUGZyXgrKijEydmg0Jh2/Zg D8qg== 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=rgL38RKoqAiu08zXx9K4flU2ZqK4M/zikMCe1b2MzHs=; b=YWUXyiNkZqbYtwEfQWSHJTkRPvlk3fcwHVM2x9Rg3R0sG7dTvO5zEDMnkfbSBA9FES FN4k8uJOzDA5qsmWfINiZ8ZlwlWXtS1vYupLSAaPtL7qjMp2YuXyY5GqQVr6JX2KYPon zWoBS36HnOEEsfHI5Xz9P6HvG8y7myeR96JfGs3alyQVU0War8/PFLUD0W8RltsXqHCO 0dNsxAe1xuhqOOaJSKENv5zV77KaHwyxkJeZXV9/8Z9eaOL/ZFi2xbaJ0DLu9nNIkbf8 REcCEKya/fd+seM4kheI065D6gJ0nHe54Ld3BGjFpSKaiUW6tfAz5Oob3HBvstAizwfI KffQ== 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 s18si949179eds.407.2020.08.26.02.27.03; Wed, 26 Aug 2020 02:27:25 -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 S1727966AbgHZJ0W (ORCPT + 99 others); Wed, 26 Aug 2020 05:26:22 -0400 Received: from inva020.nxp.com ([92.121.34.13]:56208 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727793AbgHZJ0E (ORCPT ); Wed, 26 Aug 2020 05:26:04 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 389BC1A08E7; Wed, 26 Aug 2020 11:26:02 +0200 (CEST) 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 2B7051A16B9; Wed, 26 Aug 2020 11:26:02 +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 CA6A5202CA; Wed, 26 Aug 2020 11:26:01 +0200 (CEST) From: Diana Craciun To: linux-kernel@vger.kernel.org, laurentiu.tudor@nxp.com Cc: stuyoder@gmail.com, leoyang.li@nxp.com, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, bharatb.linux@gmail.com, Diana Craciun Subject: [PATCH v4 00/13] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support Date: Wed, 26 Aug 2020 12:25:14 +0300 Message-Id: <20200826092527.4992-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 v3 -> v4 - Rebased on the latest kernel. - Exported a dprc_remove function v2 -> v3 - Add a new version for dprc_get_obj_region - Export the cacheability bus specific bits defines 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. The patches do not address the comment regarding moving driver_override in the core code. I prefer not to tie these patches on that change and address that separately. 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 (10): 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 dprc_scan/dprc_remove functions 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 bus/fsl-mc: Add a new version for dprc_get_obj_region command drivers/bus/fsl-mc/dprc-driver.c | 175 ++++++++++++++++---------- drivers/bus/fsl-mc/dprc.c | 141 +++++++++++++++++---- 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 | 31 ++--- drivers/bus/fsl-mc/mc-io.c | 7 +- include/linux/fsl/mc.h | 41 +++++- 7 files changed, 349 insertions(+), 122 deletions(-) -- 2.17.1