Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp247228lqo; Thu, 16 May 2024 05:25:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUP6QFVBAnVMTEFCldKlju6ar3rD981XVH0mh2/WUnnMcb5hnJFUg5DkP5/uzHg1Z3MPG+2pq9TKrp7sVlAP58PdeY3NTpgX98l8Np+DA== X-Google-Smtp-Source: AGHT+IFA8//5sTH4rl2rl+7/ePz4WoY5Sbkz0AdaVRLmXN1SyXpequXTM+D4rIzCaDjR4B7betvh X-Received: by 2002:a05:6a20:e605:b0:1b0:1916:92d3 with SMTP id adf61e73a8af0-1b019169331mr5502366637.10.1715862320241; Thu, 16 May 2024 05:25:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715862320; cv=pass; d=google.com; s=arc-20160816; b=iaI60zjVJRXSw06tPfgXxygdgS3FsBD8MVcQGCOHMhdK9HUZaZhjF4P1xjJjGRcAaw uEuG16DTxW/qVzeaAnPkIUCIWkz6lZOLnOSDIwhuT8fbtdjG7S26HvyICP7w7I5uS34c GZY5RjXzjV1yutRbz1mNkae8KVkoysyEFIOVj5eN1pHiKjSVSS+QZeUQXJ7FmVvbJK1M c/nAE3/RfvXkMNYIfjbFL+IEEJOOJPRFYB18Gg+9c/7Hz7+iPPZPTUkcsYPMYo5uiaJQ RweP6lQIf0XasnSHJkdbCnHDxjdJz+NAc/ghj3fhf6jKkQKkQGEjQ8ucwBAi+e/SFh1a KmoA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xeweRzJYcKjXRAjEmm1BvsiICj+90Ol864tdWm391kg=; fh=biKe3ab6vu9B2YV/BY0rSGdgJ9M/b05dGcvzyA7ivrs=; b=q6kiouVQ15kt1dLullTCXWr11P6o72QacIPvlZmpeOLq45Z6OEptf6tzO7paoaBXAb 4E1JagbOVEA7cZZBZcYtp69Mel02Y9draDmnen8dUg5UAd6/8Y/U6ohm+TYwGCArmTBr 2svyStQFPv0SvcUQ4D/BUSvUbZEr5Z30T+JYJk42jaB6c93oZ2Gr62yGffsJhlaQ2vx7 AzqGcpYm0glR2FR6d63lfNiUZuBhGeJuoJQXkjThEpqUxUc9nxETPxc3iDpROESxRy5F sgCrHG3maCjD+Q/zFvxlq+cGTAampSL07QP7zqCfjEB5yT/qLoG0uQz92nrcKi2tYY2w tioQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KKJEAYNF; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-181001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63413d72d45si15418333a12.882.2024.05.16.05.25.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 05:25:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181001-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=@mediatek.com header.s=dk header.b=KKJEAYNF; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-181001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.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 A065BB245FF for ; Thu, 16 May 2024 12:23:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEBB014D705; Thu, 16 May 2024 12:21:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="KKJEAYNF" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 C229514A4D7; Thu, 16 May 2024 12:21:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715862088; cv=none; b=K4P7twYx1NWH2s9vNAYUH4N/ILzRmw+IPAyMUuTqHd+rCJ+1Hh5OtH3XhuiLXxGQP4WK8YTbjUVsg1KTDk0xc6362/ca70nm5fUtVj418UY/+myBBQMEP9bMjk8tREfvyA+dji1mO+ax65xBeLjrMFYAvl+EvkGkPCWJo7ORsYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715862088; c=relaxed/simple; bh=/hf734OdcMaFWwiLNNbyneiweb+co3ZZqV4MaSrTQWY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JOnUK4KmnvoQsve1C6mZqYvHbV0Mf+b/TgbDdKcPwsfo8AM6QN8lQW2JQT2MalaJn5OcF47epo+HLQ8iM6EbDKyTuY+orkSwElGMFV2+tpNJXmN/tKFOhumjCt+qknn1HudEGPvxOko36rdgednvszy1NsxCoBX1Ju/1UHAiiHc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=KKJEAYNF; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: c9d59f52137e11ef8065b7b53f7091ad-20240516 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=xeweRzJYcKjXRAjEmm1BvsiICj+90Ol864tdWm391kg=; b=KKJEAYNF+jtT5xyY4Px4uJVFP10MV3jHvzVwG8HDlbzFrsGuLbUl2FzwHbgKhjI0yj+Ggn/6YTyLd9cWN5hwlgix2jEN51cpZBUSs8rGqabgGuv/4LR66XVOFcq21WeYGEGNznVMu/56FiVFo6kEZ71vZ48gH+WQ2c4Y6hnLYGo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.38,REQID:de78d464-cac6-4d18-8bf9-e1eac9a27e3b,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:82c5f88,CLOUDID:0009f083-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: c9d59f52137e11ef8065b7b53f7091ad-20240516 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 680623611; Thu, 16 May 2024 20:21:14 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS09N2.mediatek.inc (172.21.101.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Thu, 16 May 2024 05:21:13 -0700 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Thu, 16 May 2024 20:21:12 +0800 From: Yunfei Dong To: Jeffrey Kardatzke , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nathan Hebert , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Sebastian Fricke , Tomasz Figa , Mauro Carvalho Chehab , Marek Szyprowski CC: Chen-Yu Tsai , Yong Wu , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , Yunfei Dong , Sumit Semwal , Brian Starkey , John Stultz , "T . J . Mercier" , =?UTF-8?q?Christian=20K=C3=B6nig?= , Matthias Brugger , , , , , , Subject: [PATCH v6,04/24] v4l: add documentation for restricted memory flag Date: Thu, 16 May 2024 20:20:42 +0800 Message-ID: <20240516122102.16379-5-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240516122102.16379-1-yunfei.dong@mediatek.com> References: <20240516122102.16379-1-yunfei.dong@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N From: Jeffrey Kardatzke Adds documentation for V4L2_MEMORY_FLAG_RESTRICTED. Signed-off-by: Jeffrey Kardatzke Signed-off-by: Yunfei Dong --- Documentation/userspace-api/media/v4l/buffer.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/userspace-api/media/v4l/buffer.rst b/Documentation/userspace-api/media/v4l/buffer.rst index 52bbee81c080..807e43bfed2b 100644 --- a/Documentation/userspace-api/media/v4l/buffer.rst +++ b/Documentation/userspace-api/media/v4l/buffer.rst @@ -696,7 +696,7 @@ enum v4l2_memory .. _memory-flags: -Memory Consistency Flags +Memory Flags ------------------------ .. raw:: latex @@ -728,6 +728,14 @@ 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-RESTRICTED`: + + - ``V4L2_MEMORY_FLAG_RESTRICTED`` + - 0x00000002 + - The queued buffers are expected to be in restricted memory. If not, an + error will be returned. This flag can only be used with ``V4L2_MEMORY_DMABUF``. + Typically restricted buffers are allocated using a restricted dma-heap. This flag + can only be specified if the ``V4L2_BUF_CAP_SUPPORTS_RESTRICTED_MEM`` is set. .. raw:: latex -- 2.25.1