Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp480655rdb; Sat, 17 Feb 2024 19:22:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhfIo6/5eUijy7ssVHYcdr78OL9PaC1PRD2yx6kINZbXxSE2N1JOaHZOXdMbyUEl6mBTdi1awcoyF2KrfE2TbSgigXjAYXWoJr4U5SCA== X-Google-Smtp-Source: AGHT+IHtKKvDQNnFywgj931kQ6QMe7UG0E7jD9aoU373evgXkK8JTtwScxQAfYYp4AVy4kx7ZC3k X-Received: by 2002:a17:90a:a014:b0:299:2dbb:5149 with SMTP id q20-20020a17090aa01400b002992dbb5149mr9041672pjp.6.1708226563861; Sat, 17 Feb 2024 19:22:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708226563; cv=pass; d=google.com; s=arc-20160816; b=xPhn/VuA12ivr4cbwjiJT3Fmzkl2qodx+Jm2oA/QzweLTlj61R258bDhVZJh3eBW7n QSWvTK4tD2cIZeUtGXgBm1dJsyDHrYxV0E3mPdXcbv3y3DsqadQ0tzqTB8PrJ1dc5EK5 CXhNoPJwI3O+31TwVmhwC5FAbY2daahq9MVPRdZWGwZrc6slwdt92j3qllvUvzxna4aH 61B2NkEhbJfuKnhuplacbtvZrZ2K1S1MNuA+HONk9YdLOPKR3mjJGt02vVHlpd5V4iik VGl17yEcfwYjcoPAyYOlpKWHbccXjZeh6Fh1dkDcSMb5AitL0FRIFAx38xp8l9ooL+hV sJKA== 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=KdODG0Y1OLf0K5vrJFO6HqaDacG8btYDpFCoHIK3QgE=; fh=LNu0c3gNPK1mYjOca90icpQXFsjqhO0esU5jl/im0Do=; b=Xk8UOhfdrYPeXPmH4sHOr0uYsylLl3m3Be8kh1snUbYT4F++CrCmHRlwQcpLuedgpi FDQKzk792OXz0lX6XeeV0yF9Arh6k6ef/bCLLMJx2P+xAbNNFT/aloOzGmo+EnnnHXKa /PGZMfijGhHL8fW/MwLRvfdQ0M5ROEAy4ExhXhlM8Zh6H+1iQxBnXmJ8JfUskgjiBldk iX2KjNogymLgDV84WJccOE4kgGkYkWNS/OBYUH9xIc/zw8sC8nDKDone4fmIxU4ssNGo jnJipoFLksoE3JxQW3GJVO9SzSvhflhfxXwwZVoB0zy+Vr3SWgiT26o9iPBZ/mpr3ULU T1Zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bFi7B0eA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-70176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id bw32-20020a056a0204a000b005d47866f376si2353466pgb.854.2024.02.17.19.22.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 19:22:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bFi7B0eA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-70176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70176-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8DB12283416 for ; Sun, 18 Feb 2024 03:22:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D1521849; Sun, 18 Feb 2024 03:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bFi7B0eA" 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 2A65D15C0; Sun, 18 Feb 2024 03:22:34 +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=1708226555; cv=none; b=fKUFLYE8QbElSiMgv0I+wCCTF0ibIvNRITLql8Pc8WdgxiMjEoeejDa3S+RFrT1VQQQKRRTWLvW6oLQ/+OlCwc1Q9NPfRWteHUnU5mxEXH8cLftsycbSnHU53iSdIX20Lhz8dTosDY2MEKwD3p5lMb7pb9i9H8b4GEW5B3Riwkg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708226555; c=relaxed/simple; bh=OepOXvUp/jIusLtBhIQ3BEZ3rKiXUEDzMyoiEqL8BII=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WurIVWWN4LufhGr6y3nNlIw/8Fk457pFZUyFgGJfT8+8nyZQvZ+iOAi5XFnQmgTnHBoM/IaIYpjdlXrQub9wp/jsvcjxN9vfk6PuC7I6w9mloLTUq+rZ7b9+loIVFadwRqob/MsMq2wsA1Qlm+yEccTAuEzEIOmDAYaqhrmy0OI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bFi7B0eA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65CA1C433F1; Sun, 18 Feb 2024 03:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708226554; bh=OepOXvUp/jIusLtBhIQ3BEZ3rKiXUEDzMyoiEqL8BII=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bFi7B0eA65wcP5VVG9HxWBy2s3gtZf/jc+iKDCbBSXUyrmBKyMk5U9k/UoWXIRIyR n0EV8KgoZT4D/H1dGyDbh5XIwV3Ib5PHBeEJQDjb/iJexCWW10pBSar1Hd3WhjDQSh DKpjMbTre8A7ZbVh3fDSoN4o1N4vQH9Yz1roV5fZF23Pq66dzSjksTm9ODf7rZhAjf HJ1CRFJ3E9a2HI8gn/n56FdIlRtQt8rZQAlhGxXVcwsXLt/KTd2UU6fRUDdKfSFnQ/ vvl6ye3zsI5Uh5+i0XgmXeKOL7bX1k6Wuyv4xqdm2nWMEmupNPiJcomr45WnF38usj QfuyCryEopmFg== Date: Sat, 17 Feb 2024 21:22:31 -0600 From: Bjorn Andersson To: Bartosz Golaszewski Cc: Andy Gross , Konrad Dybcio , Elliot Berman , Krzysztof Kozlowski , Guru Das Srinagesh , Andrew Halaney , Maximilian Luz , Alex Elder , Srini Kandagatla , Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@quicinc.com, Bartosz Golaszewski , Deepti Jaggi Subject: Re: [PATCH v7 01/12] firmware: qcom: add a dedicated TrustZone buffer allocator Message-ID: <5ppezcfez6tb3xmeevznwefvjjwjefwyzb5r6co4zlo53ht2c2@tdbwgbnxaalt> References: <20240205182810.58382-1-brgl@bgdev.pl> <20240205182810.58382-2-brgl@bgdev.pl> 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: <20240205182810.58382-2-brgl@bgdev.pl> On Mon, Feb 05, 2024 at 07:27:59PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski [..] > diff --git a/drivers/firmware/qcom/qcom_tzmem.c b/drivers/firmware/qcom/qcom_tzmem.c > new file mode 100644 > index 000000000000..44a062f2abd4 > --- /dev/null > +++ b/drivers/firmware/qcom/qcom_tzmem.c > @@ -0,0 +1,302 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later Could you please confirm that "-or-later" is intended? > +/* > + * Memory allocator for buffers shared with the TrustZone. > + * > + * Copyright (C) 2023 Linaro Ltd. > + */ [..] > +/** > + * qcom_tzmem_pool_new() - Create a new TZ memory pool. > + * @size: Size of the new pool in bytes. > + * > + * Create a new pool of memory suitable for sharing with the TrustZone. > + * > + * Must not be used in atomic context. * Context: Describes whether the function can sleep, what locks it takes, * releases, or expects to be held. It can extend over multiple * lines. > + * > + * Returns: > + * New memory pool address or ERR_PTR() on error. * Return: Describe the return value of function_name. both from: https://docs.kernel.org/doc-guide/kernel-doc.html#function-documentation Regards, Bjorn