Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2030397rbb; Tue, 27 Feb 2024 08:32:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV61ie1LqG/HjJBOtpY0QiSFybdagi/xm/ChQ0df6rx0JDOrITTNTsu9eotC80T7q1tVMhh7z0wWXhCUjhYn8+GRwVJTkM6FfNFXZbd6Q== X-Google-Smtp-Source: AGHT+IFu0NurjVu+uWzTZRK4/HY6EqDAZR2jTOFnCbxmzG1X3V9FrvEj8CKG0hAZeDEXsV0AqIzi X-Received: by 2002:a05:6402:1801:b0:565:b456:435d with SMTP id g1-20020a056402180100b00565b456435dmr5997052edy.17.1709051539982; Tue, 27 Feb 2024 08:32:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709051539; cv=pass; d=google.com; s=arc-20160816; b=qBUC4Go4XjqXO/RrN3fabMI7yDPhwq7eyfHr1J5JBBmhPQQNgNy+aVECqLVwAg6KN7 Qzgg6KJybBF8UCWBYyBYbZ7Lw0SMjf7lfpZ/bzX2iLgzbU2+iiqAd15KlUNrFL44CPIP QoR27N6JYLdiWvFNMGruyzTkjRWhPvw+QYAc3sy8a98SphUuY20m4bKePiaeAW8EWy2w RwFmeVcKqKZWZejkXFJURabu7ddByUZtm9SlGjhiQbcT/0OkYGH1uwgkhV4lcq6lSTWN AOi3uuFSCWTWVUl0xr1qCjsh6tfRuD0P/x13IBLIeUuBcEjsYvu8meqlB+OW29jIiTA0 OI/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gj7o3ItODA7OPjmosI11buBosWUtigjEZ24YR9K1ZP8=; fh=0pqJg8PFc6tPEOEt97FednI75U7GcTv+t92BRTRsC7Y=; b=gZ6YFrdmcrRzwXBXM3WD6sgHfF5sNPSG/M+GTlXmRTyDWI7tZsK9pK/AJxQ99uRB3M CFrUMB3ViDoVt2UI1nWkqrZ+QW3Xu5md3lbfmjA+uglYU5fVgnZPOYvwFBH3HU3djT90 YrnnShC47Du7Y8QuCn63ibgY0vmcJE+su+6euC4Y2x+89A8hlmz9lae1ppoqow4Z6zD3 ATY2DbWphZJyLBm/LaZ9ezmqcERm5LUZfI+qI7y6mhndD4UAGPG4RlJ/fjeTs+bZJzTt w7G/XNz73MUrkfAafvN/trLFgUhq+YznG9yOiqk5tq+2FGX48RveJGiGNCr2SSBTr1Bf FdGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mA+RoLAB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b1-20020aa7c6c1000000b005664dc1157esi251316eds.143.2024.02.27.08.32.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 08:32:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mA+RoLAB; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-83608-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83608-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 881291F22D7F for ; Tue, 27 Feb 2024 16:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F190E1F61C; Tue, 27 Feb 2024 16:32:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mA+RoLAB" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 231ED1C6B0; Tue, 27 Feb 2024 16:32:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051529; cv=none; b=T2nKbOtFIDunUSPMwhWZpK5PWaYwibD+QP7gk8ikntcljUDCoUHAuoYutrQQIWBzP7vyTnhAFVO/77gNl8h4p3D/DMihUUS5x/UaGcOWyov+hTkXhU96U4wmH/NnlXG12ekLnSTLxx3DfcJ+oQetKZ0cbIffA1UDV/tK+4UTjPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709051529; c=relaxed/simple; bh=RVOmV7opcG+gfaoaK7ZieDs/a184WdxcY859DX5OCug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bRRIIyriPV7rnekSguAALYZW3RMeXIlLk2ybQZVK9lxfU9RfAIbiX1owwQ5Ys9XywbqgJ2SrxtFzdrNanJ0i0+6eGEklXfxw59TNIQVDzsXd1rntuRj1yEAybKGLqti8fuKCJ0RvdjUid0GqHRJjOQk6niFtmkb9SX145HAAjWA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mA+RoLAB; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63488C433C7; Tue, 27 Feb 2024 16:32:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709051528; bh=RVOmV7opcG+gfaoaK7ZieDs/a184WdxcY859DX5OCug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mA+RoLAB5nO4H9jo6BOsampkp8zSGaN6IXadt41IaJ5KW3HoWIhooPDFMSy1Znsw5 4Ijj59HZfiLZ7T7Sufm2wwUwYqwXUIxrs0JD76I33pm+B5US4URMQkY1BqHRd4ikSb chkfhAE4TWq1BKv6zpaqQb/cz9GjCYj9diquUmFS/y1JsOolrNuWmabTqJ1pC3bYm2 X+vcW3aIjTT/qNtn4f+vy25KJG09gLkyx7h70f0m+V8SXmJLKYJMv0YkDY9ugsjU0u a4ZXXgYBscERlYOWbuCTUw/g6jHEax7H3u+QOj+BfCTW3vcIhoqfoRIDDGsIVJdF3L NoiYkXFTfvG3g== Date: Tue, 27 Feb 2024 10:32:05 -0600 From: Bjorn Andersson To: Srinivas Kandagatla Cc: Bartosz Golaszewski , Andy Gross , Konrad Dybcio , Elliot Berman , Krzysztof Kozlowski , Guru Das Srinagesh , Andrew Halaney , Maximilian Luz , Alex Elder , Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@quicinc.com, Bartosz Golaszewski Subject: Re: [PATCH v7 00/12] arm64: qcom: add and enable SHM Bridge support Message-ID: References: <20240205182810.58382-1-brgl@bgdev.pl> <98dea91a-5d2b-432e-8949-46179c824d1b@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98dea91a-5d2b-432e-8949-46179c824d1b@linaro.org> On Mon, Feb 19, 2024 at 03:17:24PM +0000, Srinivas Kandagatla wrote: > On 17/02/2024 19:58, Bjorn Andersson wrote: > > On Mon, Feb 05, 2024 at 07:27:58PM +0100, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > We've established the need for using separate secured memory pools for > > > SCM and QSEECOM > > > > Where has this need been established, what is the actual problem you're > > solving with this series? > > SHMbridge will restrict the amount of memory that TZ can see, making system > more secure. > Then tell me this in the cover letter and commit messages. > Need for having different pools makes this more scalable overall, so that > different usecases can run seamlessly. ex: loading a TA and SCM calls. > How is it more scalable to give each "client" a chunk of 256KB instead of them sharing a pool of ~4GB memory? > > > > Does SCM and QSEECOM, as it's implemented in the kernel today, not work > > satisfactory? > > > > > as well as the upcoming scminvoke driver. > > > > > > > Is smcinvoke driver upstreaming blocked by not transitioning the scm > > driver to a "secure memory pool"? > > > > Is this happening now, or do we need to merge this series when that day > > comes? > > SMCInvoke development is happening now, I see no reason for this patchset to > wait for it. > As presented, I see no reason to merge this series. > This series can go as it is for two reasons. > 1> improves system security in general > 2> Hardware Wrapped key support patches also use this which are also in good > shape and tested, ready to be merged. > Then tell me this in the cover letter and commit messages! It's not sufficient that I happen to know the answer to these questions, neither community nor maintainer should not have to guess these things. Regards, Bjorn