Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2942000pxb; Mon, 18 Oct 2021 05:15:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9MZvX+i2XJP14ZfM5qln8IR2eUoz+TaoYhzbfjuEZKm6++8XXQscThIDqOD8EhIW8cLm1 X-Received: by 2002:a17:906:f24c:: with SMTP id gy12mr29076285ejb.478.1634559341421; Mon, 18 Oct 2021 05:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634559341; cv=none; d=google.com; s=arc-20160816; b=V/mlGuSYYda4iu61QjbCcCqLLnK7xneHRjFAxtaC2TldUeWyrA6JRiVdOjJWPM5Jc7 Ua5Qx85FaGLEaDkRzxCKTnMFDVKq7e1HjnIrw+mCaXXyAGbz8GcCgvkw1OHI47mMA4PN +bpWZBbH2ZUXu10a+WeVv/cgkG0bGiGTNFgz0B2eL+gL9g/LF7MBozDwFTKAy0Kuap1L 5j45jjpOXuzdzTgNRd/dA0qSjjoZanCWLZ/ZAJ7PHLlHPp9N6qDqsiRa7kOCACqgiHeV zZmYRJI3qx2T0fdYHsegvqvrqAk2mrsYu4bAOxltfiWTSn4Yv0Pc31u2Na0YwV2/YsFD 0POA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=TX6EfNcesD6AFpSmkWfASRr7QWijxOVxr8diDKAguug=; b=fdHGposn77wTpjYd7E03Yl9XHg3BpmBOIgSDP1yUYIDynB2/AUDW1DKzuhP6cuEMB5 ZcB2bLQBzoQawzutL4/ksr6ZfDF7nEUjBSW9pY5BINIpUtLHH00x4Gv9h37ubDkvqqfq LMoM7DzPLqWtnLNos6rXMTR3l47ulCUuwLiNnvhijStevKUiHzT9WisZv9SgZCSVJ84U EREY0ETgtRM8EjRkQEIV7+InvACbgbOHmn8uEwFXebh2vahUC1o8juyDm4o0P5uJiORx FsPvnj0QdtWA/gWFxPxoqer/SlRhrbHrI7ue7pDErAy0dB0NAG4lcZPyxcWGOwfQ9kfD 1Czw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RVOxDu4F; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si30372618edb.295.2021.10.18.05.15.17; Mon, 18 Oct 2021 05:15:41 -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; dkim=pass header.i=@linaro.org header.s=google header.b=RVOxDu4F; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230005AbhJRMPj (ORCPT + 99 others); Mon, 18 Oct 2021 08:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbhJRMPi (ORCPT ); Mon, 18 Oct 2021 08:15:38 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A534C06161C for ; Mon, 18 Oct 2021 05:13:27 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id o11so8634778ljg.10 for ; Mon, 18 Oct 2021 05:13:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=TX6EfNcesD6AFpSmkWfASRr7QWijxOVxr8diDKAguug=; b=RVOxDu4FFforRKFoxAvoyorF7CocY7yNyOu9VgebzdNR175rwXxap9U60Dy1SB2gH0 YTphR1K0AjvthzuBNETIAFNRVzfGt1SY40flk27eUlyhnLb/+LH0RUYuOjMfRR5nf/vd Rb/WqhTr+qfrC+qzK8QF1eiQRRVPl4CYeV4mg5ey7magmJBG0Xx1qiCQPcAHKvelUVEy 3xiwLj4iGSD2gDIwHjjZNbNTzzJ851jhkNctpXjVHQXK8y975CPJzV2TZlS6nfDaZG1K Z7BDVIUUoHeFpQjgU381WRZSJJXb5okuXKIZPoMH3vn9xHax+7SBnsVMw9GmVzl0GtA6 J8Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=TX6EfNcesD6AFpSmkWfASRr7QWijxOVxr8diDKAguug=; b=RJptjOGWAeySWOuYJdcPf8TuyifjzykvByF0mgKFtdKntSP6upGGgQqZ9G7a8XP9Fc iTusCL9GjrHfiJldxUwgvHmwIjGtMWkh3Es/8gCqT6FpR/Bp4QSIAEZrSa5QBWw645WP l2vCZ5HFDthDNo1+cIVesXsrABqaanh/QpOPT9xgS7ZROFwHs2ajNjSt5XLw0OiZWFUS oM5lvBf6SUDaNVEHvlLlEAnvkXL5TaeaWfrP8lA3ub1h/jhDfU+GXTrbt7+ybsYi0IOL FDcnV2+zWMufkQfzk6FwWmn933Hy2gblZsUi7Oe7EF08h4EUdh02lAKak/pj2zMI4hhI 3bKw== X-Gm-Message-State: AOAM530a8Q059EjJTc5edmca1mhrhWCX8CDFBX8VQ/Zs/UIXFtYdJEJJ xvNMe9dlYWuPxoQcogNrtxUwjEL4NQ35lw== X-Received: by 2002:a2e:6e06:: with SMTP id j6mr32115032ljc.120.1634559205764; Mon, 18 Oct 2021 05:13:25 -0700 (PDT) Received: from jade (h-94-254-48-165.A175.priv.bahnhof.se. [94.254.48.165]) by smtp.gmail.com with ESMTPSA id c19sm1614982ljj.130.2021.10.18.05.13.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 05:13:25 -0700 (PDT) Date: Mon, 18 Oct 2021 14:13:24 +0200 From: Jens Wiklander To: arm@kernel.org, soc@kernel.org Cc: op-tee@lists.trustedfirmware.org, Linux Kernel Mailing List Subject: [GIT PULL] OP-TEE FF-A for V5.16 Message-ID: <20211018121324.GA2943530@jade> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello arm-soc maintainers, Please pull these patches which adds support for FF-A [1] in the OP-TEE driver. There's a bit of shuffling in the code where everyhting related to the old SMC based ABI is moved to drivers/tee/optee/smc_abi.c, but there should not be any changed in behavior for with the old ABI. Note that this is based on top of the recent fix 7f565d0ead26 ("tee: optee: Fix missing devices unregister during optee_remove") which has already been requested to be pulled. Thanks, Jens The following changes since commit 7f565d0ead264329749c0da488de9c8dfa2f18ce: tee: optee: Fix missing devices unregister during optee_remove (2021-10-12 13:24:39 +0200) are available in the Git repository at: git://git.linaro.org/people/jens.wiklander/linux-tee.git tags/optee-ffa-for-v5.16 for you to fetch changes up to 4615e5a34b95e0d81467f6d2176f19a5d184cb5d: optee: add FF-A support (2021-10-18 11:44:23 +0200) ---------------------------------------------------------------- Add FF-A support in OP-TEE driver Adds supports for the OP-TEE driver to communicate with secure world using FF-A [1] as transport. [1] https://developer.arm.com/documentation/den0077/latest ---------------------------------------------------------------- Jens Wiklander (5): tee: add sec_world_id to struct tee_shm optee: simplify optee_release() optee: refactor driver with internal callbacks optee: isolate smc abi optee: add FF-A support drivers/tee/optee/Makefile | 5 +- drivers/tee/optee/call.c | 445 ++---------- drivers/tee/optee/core.c | 719 ++------------------ drivers/tee/optee/ffa_abi.c | 911 +++++++++++++++++++++++++ drivers/tee/optee/optee_ffa.h | 153 +++++ drivers/tee/optee/optee_msg.h | 27 +- drivers/tee/optee/optee_private.h | 157 ++++- drivers/tee/optee/rpc.c | 237 +------ drivers/tee/optee/shm_pool.c | 101 --- drivers/tee/optee/shm_pool.h | 14 - drivers/tee/optee/smc_abi.c | 1361 +++++++++++++++++++++++++++++++++++++ include/linux/tee_drv.h | 7 +- 12 files changed, 2728 insertions(+), 1409 deletions(-) create mode 100644 drivers/tee/optee/ffa_abi.c create mode 100644 drivers/tee/optee/optee_ffa.h delete mode 100644 drivers/tee/optee/shm_pool.c delete mode 100644 drivers/tee/optee/shm_pool.h create mode 100644 drivers/tee/optee/smc_abi.c