Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp166664rdg; Thu, 12 Oct 2023 01:58:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEv/AwJnSE9P7erXtVTi+bT9kNtuOuoQyX8WuWG8rPj/78Npi+XAOS8Feo3cpprHcaqdG37 X-Received: by 2002:a05:6358:5e0f:b0:143:5826:def3 with SMTP id q15-20020a0563585e0f00b001435826def3mr29755600rwn.14.1697101092802; Thu, 12 Oct 2023 01:58:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697101092; cv=none; d=google.com; s=arc-20160816; b=U3fxMS9QrL7IVSLSEqmTaBIkcMZ+q7jIuqtwc7Oh9o/N23ZtLNbMjf7rYj+2GP5O+G tnO6HIbQ0pe2jQbkyOjFeFFvHs8B53GSSxQ/LuSnJsp4kXLQAnmUIwd/YnS2jcvy40Mo 8ixr7enWr8ldZJ6K/j6sHdhRuilrB5ZSUMOp3WxbCdf5UQeqE11s9RfFPmDzvtkyz1BP Dg6GByUViO061iABhaw8/eyEbRB3+FtHqJhenGV9dp52U7QdtTnPZHi5I3naURA45cQp QDjuPnc1QT3laCf26/vmJ1cjzSjmx++zj9tl+YvV3Y8C5VRRMkfRtv/yqhhGdK/Lck7Z qCEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FNxgvXZFUnVUG5gVMUZSnX6j5v/1/Oe30G+w9xokwNU=; fh=VZAGomUADSXOIxpbb29hd7haZ5zrd2106yUzIqPDJBQ=; b=x3ys2MJ9ut5ea0cpUWKhM9I0AkE1Gqh5z+jHfXOTDhZCie2a9iJnN2/RabSiIS6f+k Zb025BJFWcf19HcrZGfEdtl96V09Q1aaT4Nta2dT1f9Q1+L4qDwL1Y2myJWeyoI7Xki9 s700gQxvQJdx25mowFBh5VRvR8UNB9/wXGb8Fxr9CnJpf+rLI3gv5WZDVU4SaPP4zB2r N4PcqATgGP+pwluNbVnjQa43Dxu4QQjo+kPxPqrzZPPiYKtYXp2VQ4k1Yj16ZJuQyYeP 2gIVFstPgeU9HBLcGyuES+ngtado0hs5G15KAtB+4fUwnERBo8M6s9AcXacKsT8x5FoP YwFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="SKv02az/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a187-20020a6390c4000000b0059b7f926c03si1767819pge.771.2023.10.12.01.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 01:58:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="SKv02az/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DE97380B5A1F; Thu, 12 Oct 2023 01:58:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235359AbjJLI6J (ORCPT + 99 others); Thu, 12 Oct 2023 04:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235323AbjJLI6G (ORCPT ); Thu, 12 Oct 2023 04:58:06 -0400 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EB6198 for ; Thu, 12 Oct 2023 01:58:04 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id ada2fe7eead31-4526b9078b2so274962137.0 for ; Thu, 12 Oct 2023 01:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1697101083; x=1697705883; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=FNxgvXZFUnVUG5gVMUZSnX6j5v/1/Oe30G+w9xokwNU=; b=SKv02az/kkjhcyDTlnigbGxaKEKWRHAHcaRqtyURmyUonaPUP6xDijvfNx+2KY0c9C gKUp4v9MMdqmQdLyWibjs5z4KbK0V2mpfm518+KaYcPeTY05Zjvdwf8X9fD6i+VVimWE L0OkEMzeaV6JW4SWL4ccJpRIs/21WLKMnOE8YBMjc+Q86RjjYTw3IXb9uexe2Jg4REW1 sJH7qP0sR7W4MAuPljJyeePxr/IOgJTqGfJDFjC3T2Z6aY9uSzmLU1MvhqxZHIIA15Hm KN49RDcFtxLpEUykHhzpur4K3Dhp5rHtFwZPqo5kIKrtErTVW0cu0aM7gePMgQUAqq7/ F1ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697101083; x=1697705883; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FNxgvXZFUnVUG5gVMUZSnX6j5v/1/Oe30G+w9xokwNU=; b=cjGkAl2UpXxzOHVgHCe2Pp2fzHmrG4xjJ8tr7T8wPjXwHJYH9EKsdMXOtp3WBTLKYc zK159Y7IKTuMExOyVMwHH5beTUtVbhCw3RDuo10UJFolO7Ge0yYbXWS4gzTZ/5n7ceSJ T3XTpAxIDVNLVVsHomM8CAWP4Q8PWgkjfjmgYNESB/+H27SKxAez+PMRX2lrShzmRNaG 7iuozSsWbCTnyNwWSyeaxFC0kDyHIGqHcp5o9dNvf24uYkHqupDctn5aYngU2ZxiG7tF wkwMWzjxLgOsiQlkA0raqNGRyCoWKzT9pwvjSoB9xYiS4x4/cxHbucLgFRSXU0I8uaAB Xd4w== X-Gm-Message-State: AOJu0YzX0HXzsXP6qCF9p480/mcM08zFoFobzZbXoiNowlx2uugleR5D GdSyWSkziidYnQaS2ZuzrhDoHaBcWrxsJVW9JwdwNw== X-Received: by 2002:a05:6102:2f6:b0:451:124:2bb2 with SMTP id j22-20020a05610202f600b0045101242bb2mr17259081vsj.1.1697101083005; Thu, 12 Oct 2023 01:58:03 -0700 (PDT) MIME-Version: 1.0 References: <20231009153427.20951-1-brgl@bgdev.pl> <20231009153427.20951-16-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 12 Oct 2023 10:57:52 +0200 Message-ID: Subject: Re: [PATCH v3 15/15] arm64: defconfig: enable SHM Bridge support for the TZ memory allocator To: Andrew Halaney Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Elliot Berman , Krzysztof Kozlowski , Guru Das Srinagesh , Maximilian Luz , Alex Elder , Srini Kandagatla , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@quicinc.com, Bartosz Golaszewski , Catalin Marinas , Will Deacon , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 01:58:12 -0700 (PDT) On Wed, Oct 11, 2023 at 11:20=E2=80=AFPM Andrew Halaney wrote: > > On Mon, Oct 09, 2023 at 05:34:27PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Enable SHM Bridge support in the Qualcomm TrustZone allocator by defaul= t > > as even on architectures that don't support it, we automatically fall > > back to the default behavior. > > Can you give some motivation for the Kconfig? It seems like what you've > wrote should just fallback to the non SHM bridge allocated memory, so I > don't see what having the option to exclude that at build time gives us. > If the hypervisor gets quirky in a new place other than the PAS image calls, we will be able to just disable SHM Bridge, otherwise the kernel will use it if it's supported even if it causes problems? Bart > > > > Signed-off-by: Bartosz Golaszewski > > --- > > arch/arm64/configs/defconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfi= g > > index 07011114eef8..ebe97fec6e33 100644 > > --- a/arch/arm64/configs/defconfig > > +++ b/arch/arm64/configs/defconfig > > @@ -255,6 +255,7 @@ CONFIG_INTEL_STRATIX10_RSU=3Dm > > CONFIG_EFI_CAPSULE_LOADER=3Dy > > CONFIG_IMX_SCU=3Dy > > CONFIG_IMX_SCU_PD=3Dy > > +CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=3Dy > > CONFIG_GNSS=3Dm > > CONFIG_GNSS_MTK_SERIAL=3Dm > > CONFIG_MTD=3Dy > > -- > > 2.39.2 > > >