Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp211372rdb; Sun, 28 Jan 2024 22:31:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEzNhzY2L5XcvhdPbwfwE1gNpQYc5V70I8GYQEeK260czAyWKYbqDf4+W847s5HtnpQWOdS X-Received: by 2002:a17:90a:f517:b0:290:69f2:bdee with SMTP id cs23-20020a17090af51700b0029069f2bdeemr1500672pjb.25.1706509881448; Sun, 28 Jan 2024 22:31:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706509881; cv=pass; d=google.com; s=arc-20160816; b=j1tSldvordtnF8F3wlz2vranbNJ0E9PsBRSJG2blfwBYEmCysHdFNOwEeAn72WzRQu 7rohgcbXe/yKriixq8n88s/qiEDE5OooB6hD22c5ymaQcUhsoSGVpj5mCFEpjDesms3K 2rfnV8QucgAC0USzHRJ2Infw7/erKXZ4TzKVL5wRO+jravzroezpDdpZFJhPepkjjrY4 wq+sboNcUcPRFtMH0R3pRxAr+wjKj83KmmzcdpExSHtOIbV1dTSte7HvmxUt6yNVUJ7E MrJ6hIesgEdW01p+vpqAo7WeSmaD7CCM5fzJcq7ORiFrH3sVxmJagvO/zZflD/2RW8M4 hdvQ== 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=Jm1zUP85NkLhaS8mFbLRiIHu8uZd7NKlphUk8mYvM1c=; b=o/4kwWxI7s6LXWNFL8RzRyYD3WqlrjoVfbzBYEjZYlssmgo9QfynQGBViYJPRa9bkn L3nUdxh1Tym91xZnmaCDGk8g4ZjBkZ7tx7o7PUjKQK0MgaXzs4kIqSt+BVU7MUv8xcjf XE1DVsRUs02So8s5pbHv8LgRp8q1uqFarnaTEgCRDrF88ssdHXK3C0Lpq1xHncQ7a0R7 3+z7wk/NeDvq2W3YQZJFFZWT7eegYmsghjIJ0dbf8Tm725V1xB40K1YlIJo6F8fENnuT sNIOCSzPxn7zdUT2xzp8Ekmo+0GGBlYBy7b2vybUZjGW9azh3OexzH+kma4WJh4JA4XJ +rEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mIlsVpIt; 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-42237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42237-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id iz21-20020a17090ae79500b002900e52586fsi5126626pjb.20.2024.01.28.22.31.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 22:31:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42237-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=@mediatek.com header.s=dk header.b=mIlsVpIt; 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-42237-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42237-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 19BC2284815 for ; Mon, 29 Jan 2024 06:31:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D06F24EB5F; Mon, 29 Jan 2024 06:30:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="mIlsVpIt" 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 AB7471E885; Mon, 29 Jan 2024 06:30:48 +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=1706509850; cv=none; b=t4zSZNQJ12jAEhZxEuml/cqYc96EfnDPoK0pl4seQLeJMjoa2CmpQxQc4IApPM0Fol2is+B+9FrzbmtXckNQ7574rwEiLm8DKbN0s6vbQVteS3NPeHq/m3f57FfUOaOKsGnk3EP/gX6myBZUHbNtVxEqPId4daQvflU4vAtCutk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706509850; c=relaxed/simple; bh=XynYdGnX4LVogsTrobOmVXzhFMegfGTunvcV5uxbo38=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=h97SuGuK4cp0edJZuYbllQbfGQl2KoJInp3vgKRuGSc492D0YWwMffHIGqvn7oubpSTXI486+RCPnVW5XFXUGBuBnua0FJQSEev+MuNH6KwBJMftWebc6KH27IAUYAqW2sEra0hp28dykzj2n0PZCSrFcnO5qEWtTKGg7K/kuzg= 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=mIlsVpIt; 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: ed6240babe6f11ee9e680517dc993faa-20240129 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=mIlsVpIt8O3m6cIA2cqfWHDuDtavMub8L5qyq7Sd6+axb6xrS3hsYUt0XyrtjpcNi0mCCrOkk3xwEP1GoIxOPIB15bn6sK+dI+GUfK11GG5TMv2mFKCvKgm16K7MWtMiftiMWVjkU+zmk3SSeTWEKVrIR4FohNy2Gn8jlg3ww08=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.36,REQID:32b165f5-2a90-4003-9091-9190f5539130,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:6e16cf4,CLOUDID:e4a85c83-8d4f-477b-89d2-1e3bdbef96d1,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: ed6240babe6f11ee9e680517dc993faa-20240129 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 531033874; Mon, 29 Jan 2024 14:30:42 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 29 Jan 2024 14:30:41 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 29 Jan 2024 14:30:40 +0800 From: Yunfei Dong To: Jeffrey Kardatzke , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert 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 v4,04/22] v4l: add documentation for restricted memory flag Date: Mon, 29 Jan 2024 14:30:07 +0800 Message-ID: <20240129063025.29251-5-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240129063025.29251-1-yunfei.dong@mediatek.com> References: <20240129063025.29251-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.18.0