From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F7391990C4; Fri, 23 Aug 2024 14:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724423020; cv=none; b=Jxy9Rfk9L+cI25dIdOwsNGmj3oh2fotOsyXr/QCZA9yV4kH0UQKBXCUfXPGFuHlgtw+ZQxZyOmhckaP71iaXccJDtJnMhsvenkIgsY/20m49ThnYIejohLaMtLEW9ipC2WwqirriTDA0J0wZgXIWNqW0iMpyQ6xXV4jYUz7o9fU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724423020; c=relaxed/simple; bh=AK8H0CZqg3gpo1w46A6n9k1lH6deO7+ydmn/GPnW+8Y=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Nep0LWullTgu8MdzT4lw3cxIBAQeAoNj/8SAtB/9tlo0NEjOBNhL6NfcaV9X2LVqLC4upT53ifes2fQJT3Y/0+1LlQY+Cwy3X+wHw07pgriVhB/OQoxMDmRK9zFIAXAhSiWdSaJI8NWlm18VClXZy7kDAVUgLYntCNMC6eAcF9Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.231]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Wr2Jk4jDbz6GBl9; Fri, 23 Aug 2024 22:19:50 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id ECE691400DD; Fri, 23 Aug 2024 22:23:35 +0800 (CST) Received: from localhost (10.203.177.66) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 23 Aug 2024 15:23:35 +0100 Date: Fri, 23 Aug 2024 15:23:34 +0100 From: Jonathan Cameron To: Jason Gunthorpe CC: Andy Gospodarek , Aron Silverton , Dan Williams , Daniel Vetter , Dave Jiang , David Ahern , "Greg Kroah-Hartman" , Christoph Hellwig , Itay Avraham , Jiri Pirko , Jakub Kicinski , Leonid Bloch , Leon Romanovsky , , , Saeed Mahameed Subject: Re: [PATCH v3 05/10] fwctl: FWCTL_RPC to execute a Remote Procedure Call to device firmware Message-ID: <20240823152334.000071af@Huawei.com> In-Reply-To: <5-v3-960f17f90f17+516-fwctl_jgg@nvidia.com> References: <0-v3-960f17f90f17+516-fwctl_jgg@nvidia.com> <5-v3-960f17f90f17+516-fwctl_jgg@nvidia.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100005.china.huawei.com (7.191.160.25) To lhrpeml500005.china.huawei.com (7.191.163.240) On Wed, 21 Aug 2024 15:10:57 -0300 Jason Gunthorpe wrote: > Add the FWCTL_RPC ioctl which allows a request/response RPC call to device > firmware. Drivers implementing this call must follow the security > guidelines under Documentation/userspace-api/fwctl.rst > > The core code provides some memory management helpers to get the messages > copied from and back to userspace. The driver is responsible for > allocating the output message memory and delivering the message to the > device. > > Signed-off-by: Jason Gunthorpe Reviewed-by: Jonathan Cameron