Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp587839pxb; Wed, 27 Jan 2021 15:59:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBF1sgjxR57AWvlzyKW08d3lJNxS6leqhvdSvhH5EHqOMiXVLXaTjuot6pabNeOiwnFxA8 X-Received: by 2002:a17:906:934c:: with SMTP id p12mr8456019ejw.269.1611791985073; Wed, 27 Jan 2021 15:59:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791985; cv=none; d=google.com; s=arc-20160816; b=F73ZAefhDfF3jNMyiTjyE6A2qwxXpSVi50bD2lrhw++7+XHQCCeGbcxUV/IW4phMbr F6NZIoGQSnxOQsi6wAg8zieqWk91GKX0CNiBMuf2TObILmVWovZLfUUqCCf++0Rlo0F9 Luw3yU16oDK03vTI2lI6BpKawuNjenqNOUeQzaA4LWmS3tlXG28UTK9YdRAwxk1Ac2yF Kb/jpnCeIfvpQa/4KA09vkhczI5Imx07aZj71JDYK412fBcFRSLd7y4wXCInz6zupKpK /uo6259dj6hzEOlUU3Df5YnTw1TUzfRCEzXPNrs5RPM77Z98PJfvEMqqIL8LH6b9zA7y yUmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8IuHHiUutEFXbFF/qalvtjsC18Gjq36DEQUsa/Payh8=; b=nO/Phj5oyNpv7UFXFndZ2hFCaQzpmuc2Itev1KDLdOsOWy1bNSLIn8Rp1g8MUicwlY wZlnCd1g4uE5BvkPLpomDjevTofz5IMpS/iRvzEz8jL+g8YkEdPY0+vKJmhcoa5jiAYm qT46i6dducg9nNifcIC/at6WLyxrKiTMSA3hSV9TXzpNrmrf5pxkTDGnaoDLH8VKmKkP 7r4dNH1GiQTeI3ivrNu/Jznm59EgO9+M1Z4L7WlFgEsUYCV+jwMQKpD3+IJrzEu7fTsj x3H5kL38DrIyeVavU5zEViv94YtsHpllnoldqOaWR81KKxpLicw8WspduiYRTxkNMp0X bbPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HLh1Cpeh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g13si1820854edp.359.2021.01.27.15.59.20; Wed, 27 Jan 2021 15:59:45 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HLh1Cpeh; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231851AbhA0OFi (ORCPT + 99 others); Wed, 27 Jan 2021 09:05:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:35546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232140AbhA0ODc (ORCPT ); Wed, 27 Jan 2021 09:03:32 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 782CF20799; Wed, 27 Jan 2021 14:02:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1611756172; bh=ZUFHXy1yL7HHCzaVO1elnvtzcSU5af6MJN5+qibd2eU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HLh1CpehNUPvHw423O/IJU/8FX08Yfa4hDIkf0rQmGg4t0sAqba0tfTexXHtRnncS evu0jL6g7hJt6xacLvSzUK6GjMFzUfoTTL4AhrXeSXOr88w7n9SpMkXS5UzLONmago 83HkrCxMa7OnMJ88gziCWAZa+Reknu9/GZo1Wjks= Date: Wed, 27 Jan 2021 15:02:49 +0100 From: Greg KH To: Ioana Ciornei Cc: linux-kernel@vger.kernel.org, laurentiu.tudor@nxp.com, Ioana Ciornei Subject: Re: [PATCH 0/5] bus: fsl-mc: add userspace support Message-ID: References: <20210114170752.2927915-1-ciorneiioana@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210114170752.2927915-1-ciorneiioana@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 07:07:47PM +0200, Ioana Ciornei wrote: > From: Ioana Ciornei > > This patch set adds userspace support in the fsl-mc bus along with a > rescan attribute to the root DPRC container. An earlier discussion on > this functionality can be found at the link below. I didn't continue > with the versioning scheme since quite some time has passed since the > last discussion. > https://lkml.org/lkml/2018/11/20/1162 > > The FSL_MC_SEND_MC_COMMAND ioctl acts as a direct passthrough to the > Management Complex (or MC) by passing fixed-length command/response > pairs. Keeping in mind that the MC manages DPAA2 hardware resources and > provides and object-based abstraction for sofware drivers, the proposed > ioctl interface enables userspace tools to do the following: > - Get layout information about the available resources abstracted and > exported by the Management Complex firmware. This is especially > useful to generate a complete description of the current hardware > resource partitioning. > - Manage DPAA2 objects lifecycle (create, destroy) and establish > connection between different components as needed. > > The ioctl interface is intended for dynamic usecases where DPAA2 objects > need to be created on demand or destroyed so that the underlying > hardware resources can be further repurposed. In static usecases, > depending on the requirements, a firmware configuration file can be used > to describe the needed DPAA2 objects, their attributes or any link > between them. > > Each command received through the ioctl interface is first checked > against a list of accepted MC commands. Also, commands which would alter > the hardware resource management require CAP_NET_ADMIN. The command is > also check so that it does not contain garbage beyond the maximum size > expected for that command id. I need an ack from the maintainers here before I can take this series. thanks, greg k-h