Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp342739iob; Wed, 18 May 2022 03:29:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs22NON2PdFPY3A2SLtwwp5kzJiYkxY45RajcVR8MMXv7ObODn2g6qlh/Mp/n4Uiyx45hv X-Received: by 2002:a17:90a:408e:b0:1dd:4847:cbcc with SMTP id l14-20020a17090a408e00b001dd4847cbccmr41108390pjg.214.1652869785138; Wed, 18 May 2022 03:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652869785; cv=none; d=google.com; s=arc-20160816; b=dtPVM9bB3nNoB+v6lpYhqmNTCJ8JtVT9wzJPkr9FzWUHHjSbAfOgONapZ9XsL2FbAV Kx86BxaR7FwuOl9b96wc21x0HMVYYGGtRpBZHdm5MiocXdOCjJHcxEGml8YiqgSLPc+v /2jEM8jBM6uw+ZS1Jz3WDlDTcCOPOJ7a3wI0vENySudCFub5lqsHfrYtFLMeldHCDBeA 74J38d6RYGhBNMIDEKiB7IZKCEX5hOBaVp+T6Z7b3ar8VJ2vpiFA/KUxsdy/5hT6d0UE jU8MuqhleSiiBOu0BH7T23bgJVEmWUKwuk5uzP00y/flMH8Aj8uh0mrJHv5XV1DecbiN LCHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6ure4qDgV04DA4+yxEtCyl4dzh5Rtra0pAPo/y5NqNE=; b=OYFUb9E0VMtTxLq8Hgq68RmAVFxBi/B7wN4t3VT35a/gYG/43/NMkNOqAqYmGWYjuj GM5+CsHfrO8USqNUlAsSYnn6ld7qamPU9jsQEuDdcDbn+rrgdO20mwCIOqDbHcHWaUUg Dl2ylfMP3GAUWU4jrgJ40qOoESYxtyQAeoRKQztUEkH+FrF15Osvz9l7LyRslCrhERu0 mI/hrPcLoIn54tUrMDAIfGNGcFXaO5/5c2gsSbLLEO68ggYaCkh+JzA/3SisGQfy2mYZ E6nHdA5QdD09Cksdi0yI76e/mviRY96D3CdyOCSGcS7FycilHXfkKG+J3J1+lvQWXS8k AMoA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y10-20020a170902caca00b0015d1f88d9b9si1990809pld.458.2022.05.18.03.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 03:29:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 052BF2181B; Wed, 18 May 2022 03:11:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234981AbiERKL2 (ORCPT + 99 others); Wed, 18 May 2022 06:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235110AbiERKLQ (ORCPT ); Wed, 18 May 2022 06:11:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2C0EA258 for ; Wed, 18 May 2022 03:11:13 -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 26AB523A; Wed, 18 May 2022 03:11:13 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 58E493F718; Wed, 18 May 2022 03:11:12 -0700 (PDT) Date: Wed, 18 May 2022 11:11:09 +0100 From: Sudeep Holla To: Gyorgy Szing Cc: Sumit Garg , "linux-kernel@vger.kernel.org" , "op-tee@lists.trustedfirmware.org" , Sudeep Holla Subject: Re: [PATCH] tee: Add Arm FF-A TEE driver Message-ID: <20220518101109.xdmiuj5gjqg3drhm@bogus> References: <20220408134144.1532704-1-sudeep.holla@arm.com> <20220426144545.6qkn6iwayuwpvi7g@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, May 17, 2022 at 06:55:47PM +0100, Gyorgy Szing wrote: > Hi Sumit, > > The best way to test the driver is to use the PSA SPs from Trusted Services > similarly as described on the wiki page above. We have merged the TEE driver > enablement patches to integration branch of TS recently, and as a result the > set-up and build instructions above will build an end-to-end config using > the TEE driver. > The TEE driver integration needs to be changed though. Instead of building > the TEE driver as an out of tree module from our fork [2], you might want to > change the config to use the driver posted by Sudeep. If you wish to use the > op-tee build flow, the makefiles in OP-TEE/build repo part of the above > set-up need modification too. Correct I have done something similar when testing as a module. > TS will build multiple test executables targeting the Linux user-space. For > TEE driver testing any of these targeting the "arm-linux" environment will > do, but I suggest using the "ts-service-test". > > AFAIK Sudeep is testing with TS too using a similar set-up. > Indeed. I just made couple of minor changes to the way app checks the presence of the driver and dropped the version check. Ref: ffarpc_caller_check_version in components/rpc/ffarpc/caller/linux/ffarpc_caller.c to make progress. > [2] https://gitlab.arm.com/linux-arm/linux-trusted-services > -- Regards, Sudeep