Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp309886lqp; Wed, 22 May 2024 05:33:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQxlc7HM6NmgGRkSY8U56W9QD/Ezwtn8Gze2kG+/MTit0n+7uhVBjgBkOUnPy+B9LjzELZzTqrJM8Qh2b3oZf3S3XfxSsNK0zjDi5BcA== X-Google-Smtp-Source: AGHT+IGnvVE+CfTfVr3+tmUqzXfcNnpsunkKdAXK/1bnhj6zr2hhjIW3kZ/4wn/GHEL4Kz7IyjMf X-Received: by 2002:a05:6a20:948f:b0:1af:d7c1:d616 with SMTP id adf61e73a8af0-1b1f8844dd6mr1496499637.14.1716381194352; Wed, 22 May 2024 05:33:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716381194; cv=pass; d=google.com; s=arc-20160816; b=uIl3g9H3hK24M5ISzFAMAZWtKru4yVl1+axbFPj9so8VyCPQc4emmKlewUEtDTzqID l0HPVaY87As5mmYooRmlElFnENeiHpjPWM4rNQsxNm9Eorz5Ya1NRS62Mpo8lwjkWbTF LL0Wr46tEvkxxXJCUieHyc93uh5xTKljkUxddUU6XN+rmJIEexr2THgUdjijdzti7AY/ YJh0nGEcx40xaBULy3xgk9UZsmqv4TIQmAeHDt7w84524HSVEo+irOQMvmZXKBtzmabM JkIBmm/BptecoD3mUlN3cdK5MREFgS9V4uuxzUefXDYvFIh8XVUr3pbfhzhuP/E29BgQ rYtg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=BvMpVoZBxpYmC0HL2vYDl64KkyD1ERPQzI5CiZ5GXaU=; fh=hpjHcSul/w9OXVKfpfxF7hJjvlQNewdQfoo8FmPhga0=; b=Q/z4OZi+bbzeT1mqSow18hYwlP59Y3jPd+v9wI8ql5Sz1BhdTPcqipSxLe6UOV23CJ 3fe3GoOQEUoLaXRljiiaI4MqcfZOj6j48tFVPALgFrxarqA2mK7asmI06hxXWX5c3kaZ tRl7JpvaxYFYzZzuvPJeZrLCErwLNdH3aa006h58HExA8aUaI49ZAE0H/ITYnJZPPwzK 2HWm47sfYxKoRDwtZJb+xJs/6/1LemiSa2zzebZJOfUpA4Ov+2ZMWZLq6TlmVRv/eSLz U7JDinMGTp/D72zjRYJufmrvtngm9YQnRu6sZTSfEA1wCP+oev0aJQYQTKEvaU8VGGuj ONZg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=sozDw0DP; 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-186214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186214-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 41be03b00d2f7-668c02e25cesi6277400a12.609.2024.05.22.05.33.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 05:33:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186214-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=sozDw0DP; 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-186214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186214-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 9C960B2392D for ; Wed, 22 May 2024 12:24:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 221BF13D638; Wed, 22 May 2024 12:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="sozDw0DP" 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 E02AF13D53E; Wed, 22 May 2024 12:24:29 +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=1716380671; cv=none; b=oPxlj3BI4j5dGMNopQyD5yx39RoKPvPDonLUHnfJZ16Q5zdTA2HsBTIQRDQ9krMVhPkQwqUMDgSnA/390VjmVSWppvkqPEQnCTvrnhSscYivpNTatAXbAnYwfHJEIJAmAp271IgrVX1Th2gUWC+LNZgglW7KLrx6ESRMlOCeeIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716380671; c=relaxed/simple; bh=EPQiEdOm8pWQsKWJp92+fqy66UV0mN3U7t5279kB71c=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=JHvG0XiBGr2TPepNV6kriuR4VRZA0lbCpaTvmTLqUlL3kuGBSlLYPiDqmNJD8Lx5FEdAW4D/B9GUaNquqCv44ygtumPHuXkjBY2ds4FmyVC+7lTRhoen41xl3WolcXsAQvR0VoaGvzb5ktEi9A/tsr62oE3EjQ13DEd3mUBUh2g= 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=sozDw0DP; 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=1716380668; bh=EPQiEdOm8pWQsKWJp92+fqy66UV0mN3U7t5279kB71c=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=sozDw0DPD0uUURT3kUpLdSLj4oFB+YkwD4ki4HAn2/SPsB3gVGldkHTul93jLe1Yv sQz2WKx8N7XR5bH0rKz1lxIZG/eEYW8/lX59gPAjfXX62EtctyKRUG/vLSObWZBYhE IZfxvTjLTMrLP9IJpF63a2spdtVdyUpekBl8hU9PVA4WBLb3j8xlvxCxgarSRaf9z7 dlRtSh7i67t6SuGRlwIldPf6OYni9kAgtMoreCUswb70DhL9+iH+GgBBWFa597CUL8 HKRiDv7uU6C2OchAaGZVccJty1TSliFdFcbUVUHx+Qcok3c9JduJaBDtBu4Sx6KQsb BBWLUd04o+Utg== Received: from [100.95.196.182] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: andrzej.p) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D3E2337821A0; Wed, 22 May 2024 12:24:26 +0000 (UTC) Message-ID: Date: Wed, 22 May 2024 14:24:26 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Andrzej Pietrasiewicz Subject: Re: [PATCH v6,04/24] v4l: add documentation for restricted memory flag To: Yunfei Dong , Jeffrey Kardatzke , =?UTF-8?Q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , 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 , Sumit Semwal , Brian Starkey , John Stultz , "T . J . Mercier" , =?UTF-8?Q?Christian_K=C3=B6nig?= , Matthias Brugger , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com References: <20240516122102.16379-1-yunfei.dong@mediatek.com> <20240516122102.16379-5-yunfei.dong@mediatek.com> Content-Language: en-US In-Reply-To: <20240516122102.16379-5-yunfei.dong@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Yunfei & Jeffrey, W dniu 16.05.2024 o 14:20, Yunfei Dong pisze: > From: Jeffrey Kardatzke > > Adds documentation for V4L2_MEMORY_FLAG_RESTRICTED. > Why not in the patch where the flag is actually being added? From that commit until this commit it would be undocumented. While at it... > 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. is V4L2_BUF_CAP_SUPPORTS_RESTRICTED_MEM documented? Can it be referenced here in a way similar to how V4L2_BUF_CAP_SUPPORTS_MMAP_CACHE_HINTS is? Regards, Andrzej > > .. raw:: latex >