Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp20626lql; Fri, 12 Apr 2024 02:13:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPrMeMkOqHjDNm6cUNxqz4uP3NBWkeKHAhf+srPoFlWgOVwWYVHriHf3NJ9GpHo2+5q5dimZjDZOB8esBU6/o6r0Q52GRXBn6kPkR2rw== X-Google-Smtp-Source: AGHT+IHjids3j9u04T3W2TtKevZHt6tIHdy3vy6vbPaQVIz/GGSLcblDA4P/+PdiDDwqtTPLKd6u X-Received: by 2002:a17:903:32cb:b0:1e3:c291:2912 with SMTP id i11-20020a17090332cb00b001e3c2912912mr1987781plr.55.1712913224630; Fri, 12 Apr 2024 02:13:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712913224; cv=pass; d=google.com; s=arc-20160816; b=x7vtzy+OPO3sRMK6mRfsSSFZTh6wstuzngeGFaWZkqMUAK2vDISWY2kiDndcFbTrdQ EJXatIN06ESVlD+TfnmG1NDSLWnRemVGr7ZccIaDqYWt9agpmMOT58UWyi75Aq7zGFsw TKQ3sn9YxvnHiyF4xZsxLjdvnK9zdHICvhbiXOsLDdnziA9dddRQUKOx32ll2rR5LGzu 96FWr/EAwqKGGH+tC0LR2YJ995yHpoDf8Z2JSkzu2ALSPuddOmDD6/+8LhIXvWB1qH92 dBep18ft/HwBKSmpj4uwiCei5Z06USVQuW1n+Vjuk4IZYiLnWBxf884Awj1U1I13EwOI bcEQ== 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=khLeNmeFr4dEE7zUUulOnX9v44u9sQtomfWBa91taAk=; fh=+3keNzaSOvsaq+BXFM2IqKmKMiZV6QsxTCb//k4Cpek=; b=W+pMXl3Hg12vMnamUhoTadqazpGlJlq1FOUMNwPqZew+QnFNh7hBANAV82kBYVT4fA 3070/VGl/AdWE26dyE5ivbsa2PfBATp+qtdUSJkD6FcUh6BocbI8IFFQJwS/4Sz8cOvU 0vcY0m6wE5BmEUJHEs3qANF2R471m7Qp9rzwY92WsvqyLmN4NIe3c2897oZEz9aaVYYY Xi05mMmgGYQ61Po4begnjzt0hC2cd0Sex+KIhNtCU/9hsZJrzqvlNUXqV6p65M5USRsC xxUFIIO8jsDfxDYuXyhIH7MDl13DkLh/87n4uAocC8xo/nemJMlREDChc1V1+roPrBhD EYXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Ujsn0eY8; 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-142344-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142344-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q5-20020a170902bd8500b001e462e3dde8si2768570pls.244.2024.04.12.02.13.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:13:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142344-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Ujsn0eY8; 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-142344-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142344-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E8BD1289FA5 for ; Fri, 12 Apr 2024 09:10:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED4725466B; Fri, 12 Apr 2024 09:09:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="Ujsn0eY8" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 43D0E535C9; Fri, 12 Apr 2024 09:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712912949; cv=none; b=awssKaSrOm5xiFOj+Xjf+OmgVxUC7eMXJ/LI0ELa6uoI6COlpQBh3cPV9qWbVhxK63S9RAj2TrmBbsM9HPiX0ToOanrWc8meWLUj5xLMQb/37H5xqTUwGVNDLAlvzshk0dq+hGzxizyAishT9/ePhJrM4DVQ8Xk8u3EzKqj4OJA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712912949; c=relaxed/simple; bh=XynYdGnX4LVogsTrobOmVXzhFMegfGTunvcV5uxbo38=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WtcV3jzaUx+wlOFwGCc8KJLfIhGL6XOFYqUE56sMDTvGO3G0pao5SehMdkEL40ofjgAi7ncAi3OqsXiRhUdo192ciiO2+h9V+XVhO7bR+XY3KAC012bj5mP5iVSyBhrLG5CrKqDt51hDVxz/lsvAtKt+Cxwi3mzJAvQQXqra5cE= 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=Ujsn0eY8; arc=none smtp.client-ip=60.244.123.138 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: 4e9c9c42f8ac11eeb8927bc1f75efef4-20240412 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=khLeNmeFr4dEE7zUUulOnX9v44u9sQtomfWBa91taAk=; b=Ujsn0eY83HUTvWXWgwbuHFV12eTFG59Vyjqy9eJTo0cWmxIKF2X5VlrZIcWfppOOV66lzyzFsQumJb4AdG2K9WcgcnmMfe5yc8fRkWxsBSqq+2lCCyth1/5Uo80QvsfrQ5txnNbVCvxZv/EGhG2Hs46k1TVQ4jkgA5HjxLFnELQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:9e3c438b-6b14-4c2e-9898-eca7b0b96211,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:6f543d0,CLOUDID:20408091-e2c0-40b0-a8fe-7c7e47299109,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: 4e9c9c42f8ac11eeb8927bc1f75efef4-20240412 Received: from mtkmbs09n1.mediatek.inc [(172.21.101.35)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 40800353; Fri, 12 Apr 2024 17:09:03 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 12 Apr 2024 17:09:00 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 12 Apr 2024 17:08:59 +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 v5,04/23] v4l: add documentation for restricted memory flag Date: Fri, 12 Apr 2024 17:08:32 +0800 Message-ID: <20240412090851.24999-5-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240412090851.24999-1-yunfei.dong@mediatek.com> References: <20240412090851.24999-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-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10-1.051000-8.000000 X-TMASE-MatchedRID: QL+jDTIbnJ8LImHVm5AelymjEOrcO6AyTJDl9FKHbrkGxREerP+37XVX 4shSYpPIU5vypzAbVDHVv08+TJnoOz5RuU5LdcresgYw1+LBrk1D3kXYiJVSRHXDIkXAltiwo8W MkQWv6iXBcIE78YqRWo6HM5rqDwqt0665cBZqmv9WTaozwvRatithsKIE2Il2f+7rfOJbz4f7GK jDoopvq10xL6zkd6Digk9AEdlxs5azFz6j2+UpZYwAN2uiT6+64sOrsb4iT/K/bbEolHIgZUOc7 GjOamnWv5a9cmIodEs3UeAnV+tV65RMZUCEHkRt X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-1.051000-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 1A9376DACE1A482320D81B544C05D506A5E08BCEB3D040B61916C77BEE04C8112000:8 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.18.0