Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp555664ybr; Fri, 22 May 2020 13:07:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpobiEybIxSIpELsQd+BJtQgcwVobmVX2ZSLPx4lx6cZMI8aNoMRylx72/gytunkIp9E3+ X-Received: by 2002:a50:c091:: with SMTP id k17mr4343297edf.106.1590178049003; Fri, 22 May 2020 13:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590178048; cv=none; d=google.com; s=arc-20160816; b=RwngoCnbqYUeZfUGZINBd4BMamPRXzH7rFGTcxFiS9hmSKYk5hh8yGECOh8bnoUCUi XHiIvaHCNchU7Zihgw/X52EFJAY4wWs2QzG/C/OAprtOWPfPKzEzHNaBCW6rZALGRZrM 1+fAWtkt1sDF8jnS45OorN++f9NJ/FPxpkwpJ2GKBP1YzvMf4Q+TBBZ4f09+3AV1/mC3 5c31F7SDYwj54YCRUDSpYmc2lsW4AerBGEg9CfFyxDmtdCySlwIYjb6MH8wzBWum6hUx Yrf7I0ZoC0uWPWNHGiVpdogWW3GBIr7IAgB4X8l83IFkZ7iA+eupVg4aQBBDwMt9xGkF c7ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=6D8tEqVfNYT74xap8qm/C3sffeHQ7HcSVhP3JqJjQRs=; b=hvPkZkgDxsGBECjoaIZ4zR8oDRkCYjuITJERMwsnWqmIhGEQighvtvVwbJ+dR+RSls vxRCxT6jkVIw9o6u+7mHeSRptggQ5ZtCwrRfN04LbDeUXUHNnwoSL2PpWNVroG8NyQEY LL8Ino7uaAPvNxWplqUSdppv43bDd+KOjXO07mPnvr2OpFo9I+LVzW1CPtHbtAm58sSw sREsLdO3eJvUeAYtKPk9BEQIyd9XO0Ja0/9x3RZtfr9dRL0sirPrLv3NAmbNjeSXtKqf FQhs8zriy2J0jsN3vB7pWCbbaGkxfVn1kHOmkDOXW5sR3rF1D96fQWLqoqomiFgQwL8X sZyA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si5772761ejp.54.2020.05.22.13.07.06; Fri, 22 May 2020 13:07:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730960AbgEVUDx (ORCPT + 99 others); Fri, 22 May 2020 16:03:53 -0400 Received: from mga06.intel.com ([134.134.136.31]:20425 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730893AbgEVUDw (ORCPT ); Fri, 22 May 2020 16:03:52 -0400 IronPort-SDR: +gDlE+e81/whp9+O3/bQlgy1q1MIJTOAcC8JCP1Hz0FOwK0yv/RguEYre6KPyuzRDWDVV2fGID F/kxuBhFVlFg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 May 2020 13:03:48 -0700 IronPort-SDR: UMxqP361Z5IU1SbIPlTOY0/kGZzClrkRm2tcgFjt2ftgo2VBoWiQ/jJLxFFMgoU5ThQTW2lPDS V1wHC6cYp+Sg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,422,1583222400"; d="scan'208";a="412856691" Received: from rpurrx-mobl1.ger.corp.intel.com (HELO localhost) ([10.252.58.10]) by orsmga004.jf.intel.com with ESMTP; 22 May 2020 13:03:45 -0700 Date: Fri, 22 May 2020 23:03:46 +0300 From: Jarkko Sakkinen To: Maxim Uvarov Cc: Linux Kernel Mailing List , "tee-dev @ lists . linaro . org" , peterhuewe@gmx.de, jgg@ziepe.ca, Greg Kroah-Hartman , Jens Wiklander , linux-integrity@vger.kernel.org, Arnd Bergmann , Sumit Garg Subject: Re: [PATCHv2 2/2] tpm_ftpm_tee: register driver on TEE bus Message-ID: <20200522200346.GB150221@linux.intel.com> References: <20200521064743.4769-1-maxim.uvarov@linaro.org> <20200521064743.4769-4-maxim.uvarov@linaro.org> <20200522171451.GD10319@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 22, 2020 at 10:29:44PM +0300, Maxim Uvarov wrote: > On Fri, 22 May 2020 at 20:15, Jarkko Sakkinen > wrote: > > > > On Thu, May 21, 2020 at 09:47:43AM +0300, Maxim Uvarov wrote: > > > Register driver on TEE bus. module tee registers bus, > > > > "on the TEE bus" > > > > "The module tee" > > > > > and module optee calls optee_enumerate_devices() to scan > > > all devices on the bus. Trusted Application for this driver > > > > Looking at drivers/tee, it shows that tee and optee are in fact the same > > module as opposed to what your commit message says. > > > > In the current kernel it's 2 different modules. > > > > can be Early TA's (can be compiled into optee-os). In that > > > case it will be on OPTEE bus before linux booting. Also > > > optee-suplicant application is needed to be loaded between > > > OPTEE module and ftpm module to maintain functionality > > > for fTPM driver. > > > > Why is this needed and why things worked before having this? > > > > Before these changes user space has to drive boot sequence. I.e. tee > and optee modules loads, then application tee-supplicant has to start > and only then module ftpm can be loaded. The reason for that is > storage services are implemented in userspace and driver needs them. Is the TPM implementation uploaded to TEE from user space and or what storage are we talking about? Not sure how these storage services connect to the TPM. /Jarkko