Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1050960ybm; Wed, 27 May 2020 14:58:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTtfBxxTS+90xxy3J+V4PqQhziC6JYifkbA04TWwqxj1iExBofp2UhQOdJ4KcEmxpk18qB X-Received: by 2002:a05:6402:642:: with SMTP id u2mr187029edx.59.1590616683540; Wed, 27 May 2020 14:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590616683; cv=none; d=google.com; s=arc-20160816; b=JON2n7R8yJsjqTpr3dO5ZHZKO4XYlXB6VxGm0PmE103Rbc82xYz8emy0XD5zE4nXRG ahzKIW9VqQCw6FSowE4vttlUCn9WTnH5dqFmhrkpvO7aeDqd2szU6TdHtm9J6sQjOMNp wjEP9AOoAfx8QEpkK3UKzODuJfcuhkHm3pVRTgqo9rRerl9ksltNpevb2LBazn8ptwjr HXhZVfuZW37N7cmY4f6C8XqAi7v0OaDnAN5vmC7yUrwmn5VKAycnyVQo3NaE4eclHJmD ynaLuXEyoCfxIdMR6Om8lbCpSb4saSzD/CCaAuWVwhmUYUceuQePAPY7hduvLseNf239 gBQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:ironport-sdr:ironport-sdr; bh=EtEDyWAklRAMepgMq2S3Vr6y1s1hzLkCTSx5V0k7NNI=; b=JR8H2NLBv9luZab0+EysyWIY2Y346bu5YzPytjcddQLG8Wd9I3NwKzqLreNpY/mPZq FQdFxEP3sQewL2pk8B6bpROeUp6mDi0rq/mOgEfS3acZl6blM2kTagmU8u6dQnXMQc+b QVcEXkMtmVhl5HOTCy8BVPLehxVcXVSVIMssqDqpRqL8aot4a+ltbZJIGbzeU39iikp4 P9Nhsa4R9/9PhYLD4cgHEs9niwv1I30gsi+wbvHCTpJ4I/bvmIW/0/6BEapRXvmlgCCv XUHmJvN2R4oUdz3IXXEPUUytBvRqCuRemhN8erENZ7kP53KnRWcRMcrggmVIihGCmI1n 4LqA== 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 o18si2630521ejm.8.2020.05.27.14.57.40; Wed, 27 May 2020 14:58:03 -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 S1728007AbgE0TmL (ORCPT + 99 others); Wed, 27 May 2020 15:42:11 -0400 Received: from mga09.intel.com ([134.134.136.24]:63547 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbgE0TmK (ORCPT ); Wed, 27 May 2020 15:42:10 -0400 IronPort-SDR: Q00KUKvtNhuHszcP0YCJv52JhE7tcieR8leCsagWXCXLs7X/OCPZJ8jENGz+DY+aWDLL8A+wvi nfiBaZSTGzmA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2020 12:42:09 -0700 IronPort-SDR: W4jtM1/u653BoRgasjXEejeq1aqAtFU/BySfySt0SCF3aGn9VhSSvODMP8BefSpUISr6Cm9MKq X4NV1tABA8uQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,442,1583222400"; d="scan'208";a="468835945" Received: from lkakolx-mobl.ger.corp.intel.com ([10.249.43.73]) by fmsmga005.fm.intel.com with ESMTP; 27 May 2020 12:42:04 -0700 Message-ID: <81c59da1dc2a255c58e7e338f30285e68b4664d6.camel@linux.intel.com> Subject: Re: [PATCHv2 2/2] tpm_ftpm_tee: register driver on TEE bus 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 Date: Wed, 27 May 2020 22:42:03 +0300 In-Reply-To: References: <20200521064743.4769-1-maxim.uvarov@linaro.org> <20200521064743.4769-4-maxim.uvarov@linaro.org> <20200522171451.GD10319@linux.intel.com> <20200522200346.GB150221@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2020-05-25 at 09:50 +0300, Maxim Uvarov wrote: > Jakko, > tee-supplicant application provides state machine over callbacks with > RPC messages. > https://github.com/OP-TEE/optee_client/blob/master/tee-supplicant/src/tee_supplicant.c#L614 > It also allocates shm. Without running tee-supplicant > tee_client_open_session() will fail. > optee_open_session()->get_msg_arg()->tee_shm_alloc()->... > Optee team wanted to remove some dependencies from tee-supplicant with > moving code > to the kernel. But for now I think that should be out of the scope of > current patches due to > they fix driver initialization on tee bus without breaking current > functionality. So what is the role in high-level for tee-supplicant? Why does it exist? No time to dive into code unfortunately. These kernel commits do not explain in simple terms enough how all of these entities connect with each other, if you don't have that understanding beforehand. /Jarkko