Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5840903rwb; Wed, 7 Sep 2022 08:42:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR6vsNDJJIgmT500dDLk8EvE7t4cRqS7Gh+ZWFepQexEWzJhVk6MDN/ebCF0kItA4FtNyplx X-Received: by 2002:a17:903:124f:b0:171:4c36:a6ab with SMTP id u15-20020a170903124f00b001714c36a6abmr4507116plh.141.1662565327771; Wed, 07 Sep 2022 08:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662565327; cv=none; d=google.com; s=arc-20160816; b=DZRJYuIynK4LepbBzcjBA6RrhhXSKZdTc4bdsxH4xpC3vHkCF7c3ljep/WpCKbY0v7 G9xdhTC5IKzRVJzAwphfwhRhpqI1M7gHaq+mnTTw8f0XbMvJbclY/kaWFXpV6gDOMjQA 0izFzpiHc58d1hrAqMITc5rJz3fnEgROTFNU9zINPAJ0uv0GuU1IMgpiidGShOZQh0fV RlCJpDnT2odoobf2blRKde8xEwGDJAGv2WD/CjTAG1OEyC66x2Y3lcPCrFuk7WwpSKMc z+cUP23NGfEqDsPaV61TCxlrtZEWtHTojDIhBHwc6fDxAcqh0S6opNi+9rGmjTv3w/ic 0Qug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=WFyQqZ7Nnr6uT9p23UAYzyNY6MXD7tvRpOEXsVhV7nk=; b=B7geVz0V7jUGPBqo7l4IL6qrvu3x41dzOlAJdFpp3F+mAz96OqsaElOALpAMj6lm3A Gr4Xw2UhGL2DaxKLMF2sNVehaCRKJwcFfAQyTP/rmmSLG0vAwnJgmFsuROI3fxK15UwX nDMKWdoGmB38kKLGMGHCp4HLMDoZuxyXB/5w4hniz6rDZcaZ7cekJWEeq25Y9EqUDZM/ f/O5bjM7LLTyP/NYp7IE4LzZ20FcnB4njKI1kRJh1R7is7yvYZTozhVFOvA2NJNs9Rvu lvJ+blCH11Crs0s0AAjKu6Ym/V9kKrkn1RJbYd57XY9O/qq51xdkGQ3leZsOT/Y0upWA trRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x17-20020a170902ec9100b00174da3a29a7si18519037plg.185.2022.09.07.08.41.55; Wed, 07 Sep 2022 08:42:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbiIGOwr (ORCPT + 99 others); Wed, 7 Sep 2022 10:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiIGOwp (ORCPT ); Wed, 7 Sep 2022 10:52:45 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 56EA7A99D5 for ; Wed, 7 Sep 2022 07:52:44 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 653FE106F; Wed, 7 Sep 2022 07:52:50 -0700 (PDT) Received: from usa.arm.com (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C40F93F71A; Wed, 7 Sep 2022 07:52:42 -0700 (PDT) From: Sudeep Holla To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org Cc: Sudeep Holla , Marc Bonnici , Achin Gupta , Jens Wiklander , Valentin Laurent , Lukas Hanel , Coboy Chen Subject: [PATCH v3 00/10] firmware: arm_ffa: Refactoring and initial/minor v1.1 update Date: Wed, 7 Sep 2022 15:52:30 +0100 Message-Id: <20220907145240.1683088-1-sudeep.holla@arm.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi All, This series is just some refactoring in preparation to add FF-A v1.1 support. It doesn't have any memory layout or notification changes supported in v1.1 yet. Regards, Sudeep v2[2]->v3: - Fixed the logic to set 32bit mode which was wrong. - Ensured that we advance each partition info size by returned size even if the size is greater than the partition_info structure, we will still just copy the right size. v1[1]->v2[2]: - Merged dropping of ffa_ops in optee_ffa structure and using ffa_dev->ops into single patch - Added separate patch(didn't fit any patch strictly to fit in) to rename ffa_dev_ops as ffa_ops as suggested by Sumit - Fixed some minor comments, handling size > structure size in partition_info_get and added extra parameter to ffa_features to get both possible output/interface properties. [1] https://lore.kernel.org/all/20220830100700.344594-1-sudeep.holla@arm.com [2] https://lore.kernel.org/all/20220902124032.788488-1-sudeep.holla@arm.com Sudeep Holla (10): firmware: arm_ffa: Add pointer to the ffa_dev_ops in struct ffa_dev tee: optee: Drop ffa_ops in optee_ffa structure using ffa_dev->ops directly firmware: arm_ffa: Remove ffa_dev_ops_get() firmware: arm_ffa: Add support for querying FF-A features firmware: arm_ffa: Use FFA_FEATURES to detect if native versions are supported firmware: arm_ffa: Make memory apis ffa_device independent firmware: arm_ffa: Rename ffa_dev_ops as ffa_ops firmware: arm_ffa: Add v1.1 get_partition_info support firmware: arm_ffa: Set up 32bit execution mode flag using partiion property firmware: arm_ffa: Split up ffa_ops into info, message and memory operations drivers/firmware/arm_ffa/bus.c | 4 +- drivers/firmware/arm_ffa/driver.c | 131 +++++++++++++++++++++++------- drivers/tee/optee/ffa_abi.c | 46 +++++------ drivers/tee/optee/optee_private.h | 1 - include/linux/arm_ffa.h | 36 +++++--- 5 files changed, 151 insertions(+), 67 deletions(-) -- 2.37.3