Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1092461rdg; Wed, 11 Oct 2023 14:21:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGnA1GQ9+p+xkJGXQfMWjD6N58o4bjSVr2ES69hULHzZjSeuHBVHfBHOaM54/yyWpfNAxt X-Received: by 2002:a05:6870:829e:b0:1d6:6430:f743 with SMTP id q30-20020a056870829e00b001d66430f743mr23002692oae.19.1697059315878; Wed, 11 Oct 2023 14:21:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697059315; cv=none; d=google.com; s=arc-20160816; b=OYveOAe8so2nlNzoZoRuDC8ZIsHmI8YlzRa0XrJVLkXBYmTR5sD0BJDOHaYzr64w4E G2bcM4BAqzGXwgnLVOQuNteuIqr5JLs91oDHf6bYYJANoxXcUaQwclK0I/7B7OexgyTB f3kNSMyJ5JJ3yfvFE0dO3zRmUpO8E84kq6TwAoj0O4pBVzvUQHBVGwD7uwPuo+Yry3vq chSlU9PmIe4s1nITOL3e8ojluQoJ/JOFuPrLgS0nJzeP6dZ03DuZCv8ElqMVlex3ezx/ i8X46mivCPZ+nfLvVRMLAWp8F+2hzMbFbVql0b9p6U93GSZvbBSzF7gdP2TkGn2pEN96 /+Tg== 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:dkim-signature; bh=c2JKpLabPU19Z4PY1/R2zyWSv93z5Bntvht7KzYGyrY=; fh=3oYKZqZ7w1aSkWrvnkTFP3Zu2M7z06qNCwT6X2N3zKw=; b=QC9BskHiDBakRydcZQQuMgamsWs3VbDj/bE5FEcUJZ0krmAU83KZx6RwtxmKdVw833 oI/Z8h1hL4ua61LPH0Gst4SjYgPfrWs84+eo77MCNXnYtgkkygBoUlw5C6XyomZ+3MvG zbMSY9FQrMTxPdfeY07rMhonBVmjtCQchQiP0viRsNzVvUX3ubOxGCfOIrgAcCcbAf6i ST3Y8NLXAIyPovWWM5FaPGAtboabLtHr8WJabYWL1+76Q0urYBN52DGjIOgUFNCAqUDz prcJoGiVb4ZlOnjSnsklVpIEUWrmKid/SN/uad6m3+I3qO6ktW5JxRvDP4LPcIQZuj2f Bt7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="hpNCj/SO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y185-20020a638ac2000000b00578b379922bsi587781pgd.511.2023.10.11.14.21.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 14:21:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="hpNCj/SO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 01D66811F277; Wed, 11 Oct 2023 14:21:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233593AbjJKVVk (ORCPT + 99 others); Wed, 11 Oct 2023 17:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233133AbjJKVVj (ORCPT ); Wed, 11 Oct 2023 17:21:39 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47502A9 for ; Wed, 11 Oct 2023 14:20:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1697059250; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=c2JKpLabPU19Z4PY1/R2zyWSv93z5Bntvht7KzYGyrY=; b=hpNCj/SOb4UMt2bbD2gYA5n95kVy5pbNk8gI7wB9pqhZ7FjOaV9vcuJjJGqibNPrVy61PV 1yxk6ruIvYsixD7XbyVnPeAclfj5VLCIa04CHhx7QDcLdEq4jClZ3oMf/atETVAxz/BTdK PjVAyuTlYub/SScF8YeTarUnkcBwFk4= Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-691-zLPaznz9PBqAyTtIvB-nww-1; Wed, 11 Oct 2023 17:20:49 -0400 X-MC-Unique: zLPaznz9PBqAyTtIvB-nww-1 Received: by mail-oi1-f197.google.com with SMTP id 5614622812f47-3ae65e9d394so335495b6e.2 for ; Wed, 11 Oct 2023 14:20:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697059249; x=1697664049; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=c2JKpLabPU19Z4PY1/R2zyWSv93z5Bntvht7KzYGyrY=; b=he1hY9TTCSaYNvxVFTVA9RxFeVN7VEuBcqStSng3Vlx38XQjpX+om5Bm1JmC6QOUIx fhUrBO1HYATkDgn6DqYxSDvSnHRUIRVgdZtUJIMFwl3cCMoBMJMFfTfXBbli2zbm+4b8 oqGzPaI23FGA2p9hdze0bA/6KKJy1QBeTPTB7h7mT+JMp1QL/F5IMr9ERbvXPqgYL8Z4 swad34bYXoNd1nW1uP0H+LqqufBdpSQhWKVZCmx0cSCyxbOxzAZMqRKN3RmONd1wOldf /2wh70LM4KgJn3Wv58OqPisRMDsyQm14zFJETv56w9Baq/CQnr9ww9cIJRqW8+kjeE/e oAXw== X-Gm-Message-State: AOJu0Yw+70dNhA5Y1/RHGwzcmBLQaiId8d07JVqRql7IvYBVJtf6H4SK SzWD9/q2zGqYnPrIqSULX/7VKvGG5Cqd+IQO+R7+Uh8NxGDICPcfxbx+/h2CdzuAChKmMSMY2pV mipXNpXggvO6s+75rpiXmPpTV X-Received: by 2002:a05:6808:1b14:b0:3a8:3d5b:aad6 with SMTP id bx20-20020a0568081b1400b003a83d5baad6mr28232889oib.55.1697059248993; Wed, 11 Oct 2023 14:20:48 -0700 (PDT) X-Received: by 2002:a05:6808:1b14:b0:3a8:3d5b:aad6 with SMTP id bx20-20020a0568081b1400b003a83d5baad6mr28232878oib.55.1697059248764; Wed, 11 Oct 2023 14:20:48 -0700 (PDT) Received: from fedora ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id o16-20020ac841d0000000b004195faf1e2csm5627854qtm.97.2023.10.11.14.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 14:20:48 -0700 (PDT) Date: Wed, 11 Oct 2023 16:20:45 -0500 From: Andrew Halaney To: Bartosz Golaszewski 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 Subject: Re: [PATCH v3 15/15] arm64: defconfig: enable SHM Bridge support for the TZ memory allocator Message-ID: References: <20231009153427.20951-1-brgl@bgdev.pl> <20231009153427.20951-16-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009153427.20951-16-brgl@bgdev.pl> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 14:21:52 -0700 (PDT) X-Spam-Level: ** 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 default > 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. > > 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/defconfig > index 07011114eef8..ebe97fec6e33 100644 > --- a/arch/arm64/configs/defconfig > +++ b/arch/arm64/configs/defconfig > @@ -255,6 +255,7 @@ CONFIG_INTEL_STRATIX10_RSU=m > CONFIG_EFI_CAPSULE_LOADER=y > CONFIG_IMX_SCU=y > CONFIG_IMX_SCU_PD=y > +CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=y > CONFIG_GNSS=m > CONFIG_GNSS_MTK_SERIAL=m > CONFIG_MTD=y > -- > 2.39.2 >