Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2532962pxb; Fri, 8 Oct 2021 09:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX1pa9NOYOBVwvAxJG9TF7fyB2/xDmRfMwCFAuB/Gev655stkjqQBRyzZ3zl9kmwV4DfCg X-Received: by 2002:a17:906:5590:: with SMTP id y16mr5470292ejp.286.1633711074969; Fri, 08 Oct 2021 09:37:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633711074; cv=none; d=google.com; s=arc-20160816; b=oemynTktzSoIqASf4dwUtPAVbOrpmMG1GpyIaWkRYHCyyPyPwsYCRWi6n4ZHUy19Ay G6hySyYTW8cc6kJbn6DCAenbWkfsTCkjVexP/4q5Su0FYbnwNtivGYAfSvngfY5DYNU0 heFE0L69iPLy+ERXL0EKYImbE0/LqE2+prienb599YLi+DGtUGb92taTiSI4jflhmlSU 4bbfnh/Xr0/V73DdiqDndOQfkaS0SlyImRVTUEZLegq7fdlDyerAdO9Cs6TocvxWFies RuSojfxYCFxQUTrmon5bZqIzBBW6ahCYXBn4zIXXCg+0+ThnHfOh++WWlC9qbyFJSjQB ELtQ== 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=lFkrc67z3ytRw6NlbJCz2mkRUytyFuJqeKBiU/lzrNo=; b=pi/Q4khuUnIYEBYwwFU5fIMS/jNcak7zXkYJNS4+kO5nR4WL6+GWg09DBMRGTCnVuY Imj8m6tQUAStJtDJHOszuI9lnRw+3HigGhz+rifA3ahd+6Zhondngao02SiTxSuYWmB4 Cj2Li0Azt9Bp/5FNt5sMJZ7En4jZFtzhh7wqS/ZSKage/SBVVS1jLwGWVrxvsJXZ3jcU OlC9TExNCFsI26MiVmg2LJAdb8sVc0v81SiH7SNizSR9AAtqRzvRMTVehSwm6XO/t0yG lkl7KmYnP+otQURJB+C7fcR+/w8rJE2EzHbe0OF9yA2dRYJ5LYet/4eDN/fxQAmmY6Us KsGA== 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=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v4si5709031edc.167.2021.10.08.09.37.31; Fri, 08 Oct 2021 09:37:54 -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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230476AbhJHQep (ORCPT + 99 others); Fri, 8 Oct 2021 12:34:45 -0400 Received: from foss.arm.com ([217.140.110.172]:34696 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbhJHQeo (ORCPT ); Fri, 8 Oct 2021 12:34:44 -0400 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 208381063; Fri, 8 Oct 2021 09:32:49 -0700 (PDT) Received: from bogus (unknown [10.57.21.181]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DAC583F66F; Fri, 8 Oct 2021 09:32:46 -0700 (PDT) Date: Fri, 8 Oct 2021 17:32:00 +0100 From: Sudeep Holla To: Jens Wiklander Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org, Sumit Garg , Sudeep Holla , Marc Bonnici , Jerome Forissier , sughosh.ganu@linaro.org Subject: Re: [PATCH v6 5/5] optee: add FF-A support Message-ID: <20211008163200.wgls7gijpsk556kl@bogus> References: <20211006070902.2531311-1-jens.wiklander@linaro.org> <20211006070902.2531311-6-jens.wiklander@linaro.org> <20211008132732.hbmkd3hftdydtrsc@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211008132732.hbmkd3hftdydtrsc@bogus> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 02:27:32PM +0100, Sudeep Holla wrote: > On Wed, Oct 06, 2021 at 09:09:02AM +0200, Jens Wiklander wrote: > > Adds support for using FF-A [1] as transport to the OP-TEE driver. > > > > Introduces struct optee_msg_param_fmem which carries all information > > needed when OP-TEE is calling FFA_MEM_RETRIEVE_REQ to get the shared > > memory reference mapped by the hypervisor in S-EL2. Register usage is > > also updated to include the information needed. > > > > The FF-A part of this driver is enabled if CONFIG_ARM_FFA_TRANSPORT is > > enabled. > > > > I am not sure if I missed this with earlier version but I see the below > warning the second time I insert the optee module. I am sure I tested it > with previous version when I was fixing issues with FF-A as a module. > > Not sure if I am missing something in my steps. > OK, more info, indeed I didn't observe this issue 2 weeks back with optee at commit 57e642f12085 ("core: enable system PTA upon user TA support"). The UUID(d96a5b40-c3e5-21e3-8794-1002a5d5c61b) wasn't enumerated with above commit. Today I am testing the latest commit 2de2880065f3 ("core: update reference link to PrimeCell Cache Controller"). Though it looks like an issue with the driver, the latest optee changes triggered the driver to hit this issue in my setup. Hope this helps. IIUC we are not undoing optee_register_device executed via optee_enumerate_devices in the exit path. -- Regards, Sudeep