From patchwork Fri Jul 10 08:52:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Wiklander X-Patchwork-Id: 11656045 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3600713BD for ; Fri, 10 Jul 2020 08:52:35 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 2F0DB2080D; Fri, 10 Jul 2020 08:52:35 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9803207DF for ; Fri, 10 Jul 2020 08:52:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ydtyon2y" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9803207DF Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=jens.wiklander@linaro.org Received: by mail-lj1-f194.google.com with SMTP id q7so5594772ljm.1 for ; Fri, 10 Jul 2020 01:52:34 -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=SOf7VhktuFKx34ZBJi++opyzeaVIB9yGYq7CWp3mcyA=; b=Ydtyon2yZkRskjNRgg9ckcUMJhuBUZC9/N1BgTM9oRG5sHrjthBBFCoeMaYrSRRLl1 mbYBa9Mam9gU02NSM67e6IEf6o6Y6j7L8w8IGEXOmy0S1VSCP72clbky59RRtAR+279e KM0jAvq2C2H3s4E8CMrbxa4pyK/FR81uP0GTHU6RGsatBY1LQQLs34LJYEHjqFZjmb17 61bDBO7qWJ5XsIJFRZiH/f0nANLe6ZIJvMSf4m6EhxdbrdKrNKy/Zsi3wwy/tRAQ//DO WdZUP57cru6wQgwd/VC9Ihcx+oe+cFSQ7hAeICXCHFheCXRLFF4/Y3Y9rDMyQ2JoDMnX Vbfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=SOf7VhktuFKx34ZBJi++opyzeaVIB9yGYq7CWp3mcyA=; b=ssQhsSYBq1CKrer7FmoSUlzsWU4AqnfqTqW88LqEckZqod33EdkIW+IPUvF7Hharbl 9SXDAjtHLcWygxyC/okxfJQhixp1EyGfoyC530Yx/4bZeKJGtdzybRCfqk2RB4wLQLjs CeCw7MKExMNzDpRE8dVLYu9f6S5i7aTir70lZETBqny91LqnvVNOzhbkKqRPIZKQrdvr eUqsze0vXMdLkbJRnh6f7SofImHROI2y6F/FsJRJeQxVkIWvQBWDI2gjwALUzdcwztxr gvmn3qHn2wK7maEXQrlhTkpTVLG8T6nFT0mPozjQ1lQxL60vMcfimvJ8X0JQ8Fxu3XOf zXMg== X-Gm-Message-State: AOAM533iSK8ofBIB3qnybiMLQslI1ZQWp/icVCnVtgomlMP06aGuGppF R0rVXGg0dTHxwb+tqbi9GEdDgw== X-Google-Smtp-Source: ABdhPJzsqEaYR4D2UhGTLMEzgTZ8UByj8LNtRq/174vcISNAaOMoiTIZUE7Ht2Hh67s5i3KuNIuqng== X-Received: by 2002:a2e:9619:: with SMTP id v25mr40788978ljh.324.1594371153084; Fri, 10 Jul 2020 01:52:33 -0700 (PDT) Received: from jade (h-249-223.A175.priv.bahnhof.se. [98.128.249.223]) by smtp.gmail.com with ESMTPSA id q13sm1919854lfb.55.2020.07.10.01.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jul 2020 01:52:32 -0700 (PDT) Date: Fri, 10 Jul 2020 10:52:30 +0200 From: Jens Wiklander List-Id: To: arm@kernel.org, soc@kernel.org Cc: Linux Kernel Mailing List , Linux ARM , tee-dev@lists.linaro.org, op-tee@lists.trustedfirmware.org, Jarkko Sakkinen , Maxim Uvarov , Sumit Garg Subject: [GIT PULL] optee bus for v5.9 Message-ID: <20200710085230.GA1312913@jade> MIME-Version: 1.0 Content-Disposition: inline Hello arm-soc maintainers, Please pull these patches enabling multi-stage OP-TEE bus enumeration and also adds a TPM driver for a OP-TEE based fTPM Trusted Application. The TPM driver depends on and takes advantage of the multi-stage OP-TEE bus enumeration by indicating that it should be probed after tee-supplicant has been started. Jarkko, one of the TPM maintainers, has been involved in reviewing these patches and agrees that I can include the TPM patch in the pull request. Thanks, Jens The following changes since commit 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162: Linux 5.7 (2020-05-31 16:49:15 -0700) are available in the Git repository at: git://git.linaro.org/people/jens.wiklander/linux-tee.git tags/optee-bus-for-v5.9 for you to fetch changes up to 9f1944c23c8cb1c033b73de80cf6c612a2a80a2b: tpm_ftpm_tee: register driver on TEE bus (2020-07-10 09:41:58 +0200) ---------------------------------------------------------------- Enable multi-stage OP-TEE bus enumeration Probes drivers on the OP-TEE bus in two steps. First for drivers which do not depend on tee-supplicant. After tee-supplicant has been started probe the devices which do depend on tee-supplicant. Also introduces driver which uses an OP-TEE based fTPM Trusted Application depends on tee-supplicant NV RAM implementation based on RPMB secure storage. ---------------------------------------------------------------- Maxim Uvarov (3): optee: use uuid for sysfs driver entry optee: enable support for multi-stage bus enumeration tpm_ftpm_tee: register driver on TEE bus Documentation/ABI/testing/sysfs-bus-optee-devices | 8 +++ MAINTAINERS | 1 + drivers/char/tpm/tpm_ftpm_tee.c | 70 +++++++++++++++++++---- drivers/tee/optee/core.c | 27 ++++++++- drivers/tee/optee/device.c | 38 ++++++------ drivers/tee/optee/optee_private.h | 10 +++- 6 files changed, 119 insertions(+), 35 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-bus-optee-devices