Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp623450rdb; Wed, 17 Jan 2024 12:04:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFbo55k1UU+q7WTFl/6gIc1DgOaeEwFntmfptOqu99oLWD7mfOW+5GgF4WK4CeavE+fFTcO X-Received: by 2002:a17:90a:cc04:b0:28e:2975:dd7 with SMTP id b4-20020a17090acc0400b0028e29750dd7mr3563505pju.5.1705521855452; Wed, 17 Jan 2024 12:04:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705521855; cv=pass; d=google.com; s=arc-20160816; b=H9TKgM5Lk3KdTzVZeFMSa3EPj2FXxNa4ZJNB+lX+YRzvHIqXD9e0UAQ62gyc+g+/1G 80U/duJQh6nvOzOc9J54MZBypnHM8lA3QGWgRn1bFJTgH1HRkwzGtIh9Vq32y+8ZdRK9 Icnlo0mL4Jvkik+sw83VUhgQ+x6zirknZaJp5Rrel6TluqVqAVYhHo5eC8piHK/ngByB sbvts2DfLa9aJtMCemWf4CBBVwkQGU+4Pm2xjebHnGukvLJEXLQDdf/VMzxDQRhZWIMU cTkn3QmipHeK7uE3ddoCQ1FNa82NLv4zzj8migHNndeR9TaTtajy+527xHgQLsRElrda U0iA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=AHUfvCfxd4k8Bgz5ztOEzg9LGWwV6DjTS5TyfNL8d9g=; fh=JyEXK/pLZQH0ypsTehNEw7aSNhm+xsDsZ02ECnuWFgs=; b=zYkE/Zvdho6ROeY701z2G3dkzCzPd1HD+BVvbBjI1SaVAxo8Aq638IUX98Ru29EnBW bDVjhoLy/hW5JbQpU1CMZkYDYIvmNopYmlz5p4KyNCrh12ODX0hwwSmP4F8cQLpS71y3 tOFaz1Q2ZutT4y5h/BBV3O60NX07i2M7FLe/wIDjXUOt/cnlMKOHGmODbL8Znc4d6SOU tQp512d9WxUZIHYN6+03+G8UtKlO7WgQ+PTrfS4WLNXSRIrqUzI9LqMTbpJjJVaXDs0B e76Z3D6eBmtVjkKDX3RpxCJmYb2VaTnkv5mgMAj/OP2RurB/9GqIwPWhhuuGtjMMZJ7q 1FIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dfyS3Ud0; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-29388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id k17-20020a170902c41100b001d3c228953fsi92731plk.392.2024.01.17.12.04.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 12:04:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dfyS3Ud0; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-29388-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 78316B24E19 for ; Wed, 17 Jan 2024 20:03:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B5124A17; Wed, 17 Jan 2024 20:03:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="dfyS3Ud0" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 825A224B2A; Wed, 17 Jan 2024 20:02:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705521780; cv=none; b=Dzq/qPhUmtaeQNKDuFBO5//tLzYerFkCeEcbguhQ8w8iEmjsKHs0T7rHt3VQ3EHca/kuX9tGDM3asqo0i//9ZAu1dinsCsfh2LU+7DA6360PQEzwZaCLh8VeuuC3IqrIK192rlBfCJpA6rLZc8bG+1nIbdqihND/fFPMNrPV5rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705521780; c=relaxed/simple; bh=ipV+rKUR/CE2oxvQo7qJXW3DS21dt/GIWuErpGmS7EI=; h=DKIM-Signature:Received:Message-ID:Subject:From:To:Cc:Date: In-Reply-To:References:Autocrypt:Content-Type: Content-Transfer-Encoding:User-Agent:MIME-Version; b=OzD5Rs7RK8rETjvvnkSiC3r4O67AW1UpyuefS68WWO3a/jEdyA8OSeAUwfe0lk69EDhTheojsj4N52AsYPIWQiY6QvtzdSno5MfWXWn8QHH7a8bfWvdYGFlIEHnV7vyZONceIys/J74seKCbvGKdldnRAGg80+yOcQKRMDWkJWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=dfyS3Ud0; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705521776; bh=ipV+rKUR/CE2oxvQo7qJXW3DS21dt/GIWuErpGmS7EI=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=dfyS3Ud0/YPnPIWUJg0da8N+L2V1HI5iAvT+we12fNamdAqj9lQgbgSok9QXMCK5q 9BsnCZZGa9tjO8+oO9hns/QB7YnA7u7FH9NCsOK7KkhMr3nNBAnXCNtB57D9fULf6W gmFYQahjIgcBPDx7oiaoknQ9olUd0+IkZBEX0kg3XNqIZdrqyu0bBCeDE64Phiy7/1 wcTaoV1IcWceb/Zd7DZ1epVkm+fQRERDWjLQH6ilvIcXEBJ/N69JqD4SzFgaiqqi+b 7LAGwMR9lFPr6itTFnQgkJFVLH093+CyTDl/K6wfpYV+as3icC/zNWG4/7dC3C77mI K8jSIrabuwq4w== Received: from nicolas-tpx395.localdomain (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 176823781FC7; Wed, 17 Jan 2024 20:02:52 +0000 (UTC) Message-ID: <3b4c8bedd57cf229a36fd195c4c9fe85809abf92.camel@collabora.com> Subject: Re: [PATCH v3,04/21] v4l: add documentation for secure memory flag From: Nicolas Dufresne To: Yunfei Dong , Jeffrey Kardatzke , =?ISO-8859-1?Q?N=EDcolas?= "F . R . A . Prado" , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert Cc: Chen-Yu Tsai , Yong Wu , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , Sumit Semwal , Brian Starkey , John Stultz , "T . J . Mercier" , Christian =?ISO-8859-1?Q?K=F6nig?= , Matthias Brugger , dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Date: Wed, 17 Jan 2024 15:02:48 -0500 In-Reply-To: <20231206081538.17056-5-yunfei.dong@mediatek.com> References: <20231206081538.17056-1-yunfei.dong@mediatek.com> <20231206081538.17056-5-yunfei.dong@mediatek.com> Autocrypt: addr=nicolas.dufresne@collabora.com; prefer-encrypt=mutual; keydata=mQGiBEUQN0MRBACQYceNSezSdMjx7sx6gwKkMghrrODgl3B0eXBTgNp6c431IfOOEsdvkoOh1kwoYcQgbg4MXw6beOltysX4e8fFWsiRkc2nvvRW9ir9kHDm49MkBLqaDjTqOkYKNMiurFW+gozpr/lUW15QqT6v68RYe0zRdtwGZqeLzX2LVuukGwCg4AISzswrrYHNV7vQLcbaUhPgIl0D+gILYT9TJgAEK4YHW+bFRcY+cgUFoLQqQayECMlctKoLOE69nIYOc/hDr9uih1wxrQ/yL0NJvQCohSPyoyLF9b2EuIGhQVp05XP7FzlTxhYvGO/DtO08ec85+bTfVBMV6eeY4MS3ZU+1z7ObD7Pf29YjyTehN2Dan6w1g2rBk5MoA/9nDocSlk4pbFpsYSFmVHsDiAOFje3+iY4ftVDKunKYWMhwRVBjAREOByBagmRau0cLEcElpf4hX5f978GoxSGIsiKoDAlXX+ICDOWC1/EXhEEmBR1gL0QJgiVviNyLfGJ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; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi, Le mercredi 06 d=C3=A9cembre 2023 =C3=A0 16:15 +0800, Yunfei Dong a =C3=A9c= rit=C2=A0: > From: Jeffrey Kardatzke >=20 > Adds documentation for V4L2_MEMORY_FLAG_SECURE. As I noticed from DMA Heap discussions, shall this also be renamed SECURE -= > RESTRICTED ? regards, Nicolas >=20 > Signed-off-by: Jeffrey Kardatzke > Signed-off-by: Yunfei Dong > --- > Documentation/userspace-api/media/v4l/buffer.rst | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/userspace-api/media/v4l/buffer.rst b/Documenta= tion/userspace-api/media/v4l/buffer.rst > index 52bbee81c080..a5a7d1c72d53 100644 > --- a/Documentation/userspace-api/media/v4l/buffer.rst > +++ b/Documentation/userspace-api/media/v4l/buffer.rst > @@ -696,7 +696,7 @@ enum v4l2_memory > =20 > .. _memory-flags: > =20 > -Memory Consistency Flags > +Memory Flags > ------------------------ > =20 > .. raw:: latex > @@ -728,6 +728,12 @@ Memory Consistency Flags > only if the buffer is used for :ref:`memory mapping ` I/O and the > queue reports the :ref:`V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS > ` capability. > + * .. _`V4L2-MEMORY-FLAG-SECURE`: > + > + - ``V4L2_MEMORY_FLAG_SECURE`` > + - 0x00000002 > + - DMA bufs passed into the queue will be validated to ensure they = were > + allocated from a secure dma-heap. > =20 > .. raw:: latex > =20