Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2719023ybt; Tue, 16 Jun 2020 13:16:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+FY3B3rFuNujXT0yJnc41Pt2Hzl6HFTG/CXSrxLCZ7rh8v73NpAWsNBWDOr6wXUeVQk0O X-Received: by 2002:a05:6402:1767:: with SMTP id da7mr4328470edb.90.1592338568285; Tue, 16 Jun 2020 13:16:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592338568; cv=none; d=google.com; s=arc-20160816; b=trAG1ZU7qPyOzNuTcwhRDPlqtTM8R/xrp0AtPrUw5PfD405N0fLcTKfxjqbiAoPMrO imccspcpsGPNoRrZmNHZf7ppJorbQynp3gfZ6h0FfONJ1t1JuooQOpZZMGj3eVZgbKoz QGU4mkJixlPh8u9+wx92zEi4GX7fM47BrqgQmKBLmy6X15RbfPBDFx6zjlI1ytfTYese 2q5qOpV8XBvxzsiJL6bo5cZxgob78d6+bx5B644cl1k/g04YH+SGTC03+V9Cbc7wAwGh dyfUEdj9iMOjFD2MdyR0UWpaFReIa7vb38XeyMb431JOrFgnB25yE+1AHtOwVvniEAlA 1k/Q== 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=+1eTuORhHdMLQQA2x1np0x5XkJ2zcTQzo3g7uq5yfG8=; b=oV8g/y+27+LJjXonHHsNwg7/DPin0NGg/E7s1e6zu/gvHQASN8QWk2v38zAA+6/X9i s0dBbTIESXz6TBNSbwE0GtCtvzao4h7R9q/Cc2jcN+pFABJ5cSeVEeK+DTj7vaK27paV l4aXBgoXMIfrElj37p93n9T5ZC+EKMX8hdUMS6sR5Agk1uxw3QSC5QM9g4TZL0Qo9kj3 MtNcMUgAsEAP+zBgcjhFohUvQNunSsTza/HX0uGFMmZGUylZjVK1iXFpNgyKzSHmV7kq 6nYnTLXUIDPcmUjQEBCotnAX2MR0DjYkpBRI2FYqWeYxQGi/U//fr4Gk94eCC44+dClT vYow== 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 c3si5679695edl.102.2020.06.16.13.15.43; Tue, 16 Jun 2020 13:16:08 -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 S1731414AbgFPUNv (ORCPT + 99 others); Tue, 16 Jun 2020 16:13:51 -0400 Received: from mga06.intel.com ([134.134.136.31]:29213 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729167AbgFPUNu (ORCPT ); Tue, 16 Jun 2020 16:13:50 -0400 IronPort-SDR: kDdGVkMiEIhHcmMBYGg3CSKsKngtMdvcrsD9eGuoauIfZ2ASQcaPlj7o7OZOAQgS82hcr767AD 7S7c5A2iKaTA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jun 2020 13:13:49 -0700 IronPort-SDR: 3nJAAzy3YxiPJ0sP468sPM5Fu667Cvns/MXDS30yNAjYE82K/nNE7cMc219k9R1vmyhejpwwLH YfwJFcii7rpg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,519,1583222400"; d="scan'208";a="299034811" Received: from gosinald-mobl2.ger.corp.intel.com (HELO localhost) ([10.249.36.106]) by fmsmga004.fm.intel.com with ESMTP; 16 Jun 2020 13:13:44 -0700 Date: Tue, 16 Jun 2020 23:13:43 +0300 From: Jarkko Sakkinen To: Maxim Uvarov Cc: Linux Kernel Mailing List , "tee-dev @ lists . linaro . org" , peterhuewe@gmx.de, Jason Gunthorpe , Greg Kroah-Hartman , Jens Wiklander , linux-integrity@vger.kernel.org, Arnd Bergmann , Sumit Garg Subject: Re: [PATCHv6 1/3] optee: use uuid for sysfs driver entry Message-ID: <20200616201343.GE10412@linux.intel.com> References: <20200601150645.13412-1-maxim.uvarov@linaro.org> <20200601150645.13412-2-maxim.uvarov@linaro.org> <20200604083655.GA4026@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 Thu, Jun 04, 2020 at 12:16:21PM +0300, Maxim Uvarov wrote: > On Thu, 4 Jun 2020 at 11:37, Jarkko Sakkinen > wrote: > > > > On Mon, Jun 01, 2020 at 06:06:43PM +0300, Maxim Uvarov wrote: > > > With the evolving use-cases for TEE bus, now it's required to support > > > multi-stage enumeration process. But using a simple index doesn't > > > suffice this requirement and instead leads to duplicate sysfs entries. > > > So instead switch to use more informative device UUID for sysfs entry > > > like: > > > /sys/bus/tee/devices/optee-ta- > > > > > > Signed-off-by: Maxim Uvarov > > > Reviewed-by: Sumit Garg > > > > Why do you mean by duplicate sysfs entries? > > > > Without this change it will try to register something like that: > first stage w/o tee-supplicant: > /sys/bus/tee/devices/optee-clnt0 > /sys/bus/tee/devices/optee-clnt1 > /sys/bus/tee/devices/optee-clnt3 > Then with tee-supplicant also index started with 0. I.e. > /sys/bus/tee/devices/optee-clnt0 > /sys/bus/tee/devices/optee-clnt1 > ... > > So we need to increase global index or use some other unique names. Got it, thanks. /Jarkko