Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2028369rwe; Fri, 2 Sep 2022 07:33:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4EfYIZmstMBzHUdtMJE94tWzJ5GpnFSNIxV5RFrfL+GT+8+eqdiJyGztRCAs+dJ4uUt5F1 X-Received: by 2002:a17:907:7215:b0:741:416f:fb59 with SMTP id dr21-20020a170907721500b00741416ffb59mr21832736ejc.150.1662129199243; Fri, 02 Sep 2022 07:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662129199; cv=none; d=google.com; s=arc-20160816; b=z7/nzX7qUI4XYPEWVKHT+YCJnOSanwxYv56Vfr4iXeuqOphtAAY4XXGdhF+Q5h7HBh ZVMP1d84N31EUYMGC5PrE8TTWg7U6xiBO4qOuQdVMglhut4MouNsSnaSr3NGWVQSbt3O aiErYDlTEGVBuYG150bJM1Gp+ouJzl0fa9xCcgUn1Comv+u8qMSvdNLkIS2RsFY5+lBV d1x75nJbdVGuxZmFdbS0X+Iz0iIcQojlVb8X76ELmqU4qfT95ZqvnsjviQLG5QG3p6rm K0eHDQvJFd+XESB5X9OuKYHg9T6RAcoPrCHmwW8MtNmVqy6qeMQEfa5rCflcjc6IiFWV 57og== 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=zs/OgvfGy+qELBiVypeJSaoL9JRRMhH6FpnhsCi6QEQ=; b=v8DmamTtT8S2ASxXoPFOGDO3rl3/HVFTFeufQUOHax2X+zGXA8nvTRFtE0sBE1tmz2 soJyXEt2+GSkoXFyRmRSuDF4AkVNv+MAYWkiLRem3W8BQMo33MPCAzWYFJBr+LFddm53 /+wmoC+jgX715Sf0YdvqTh25tRXsZ7sBEHhmniP5oW74W2tBmlooxmInuXyioNpdDPC9 JKBByYO2+xRDSHS+7M0RdnQtFjyuJ/42jJV54Ucyi8Vs/SUkkCV971yzUz8/ZoCFuqVc Ns/v8B4lI8/gwBkE2Z8cfAtpbcGWWQdE7nrAm2I9wVzWe+a8hmpLzpBdTG3xF8ByUiqu 4JcA== 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 dn3-20020a17090794c300b0073d866e5d4dsi2209348ejc.98.2022.09.02.07.32.47; Fri, 02 Sep 2022 07:33:19 -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 S237909AbiIBOML (ORCPT + 99 others); Fri, 2 Sep 2022 10:12:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238908AbiIBOLm (ORCPT ); Fri, 2 Sep 2022 10:11:42 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 794C2BF48 for ; Fri, 2 Sep 2022 06:39:48 -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 C7EFAD6E; Fri, 2 Sep 2022 05:40:45 -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 4AC3B3F766; Fri, 2 Sep 2022 05:40:38 -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 v2 00/10] firmware: arm_ffa: Refactoring and initial/minor v1.1 update Date: Fri, 2 Sep 2022 13:40:22 +0100 Message-Id: <20220902124032.788488-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 v1[1]->v2: - 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/ 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 | 130 +++++++++++++++++++++++------- drivers/tee/optee/ffa_abi.c | 46 +++++------ drivers/tee/optee/optee_private.h | 1 - include/linux/arm_ffa.h | 36 ++++++--- 5 files changed, 150 insertions(+), 67 deletions(-) -- 2.37.3