Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp417923rdb; Wed, 20 Dec 2023 00:27:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2psAp1yb/g8PxpqpLoMyh7YhBcTLFVnv4JxeA3XH64JheAKePoHswRUxHzIvwq3LQNz39 X-Received: by 2002:a05:6870:1693:b0:203:a170:af3c with SMTP id j19-20020a056870169300b00203a170af3cmr3698653oae.55.1703060859518; Wed, 20 Dec 2023 00:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703060859; cv=none; d=google.com; s=arc-20160816; b=hapZ7QAAiC3Z8FVY4WoYWP1ypJcVJnSPcQRoBvk4ZlFrAPvHJKI/np4TZu3GoUa1tZ 5q/dySCqCU1gvcCJ6qlHmqmfPVxQmsz4FGNVNgpfKWdEBXkg969yp2Xn7ReflHRtRr1a NYJWsmLKIpW9ZzoJQb0Oy0h0c+HP/C3tvL4An09kBHjupjzed/5qkSYfaZXGXY6emLBN 5EcxkFZmNLc9kzdg0rUKEzt6ailpJqnhRJNx/jaKzTnTl6nQTpCm3VBvNc8doqi8laJl 7CfdLkppCulXKTkVJS5ADYaT5RoK9M7fQ9eOSwsd4MWUoQ1Qlmk1FTkLojInNR6RjlQG tOnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=Pdm6PTLkR+mB79HpuwHCRfVI5bOMcx6Rg7Rr4q94EQk=; fh=drAVWuwirTltG+H/unuodkOmmp+zZHrnABrJdZ3XlnA=; b=NOihuT12pb7PFV4WI0FW3/fUro0CW0IDJm9s+sJMhQ6sTpe0hATkPdauSKxo8Xi7UN ZEp7eaIQT8NzPwJ2qZktyVc15weBmNs/yJzWV/xvc0cFp5bxLiktGOhoHnoPtWZxbKN5 brxt3Hj0J5MKKxOnXRGN7DDbW648mB1luOdEQaQLPLSJSsVvpKTsyg7jUO75DCasLbef TRUzR+ypRItydp9/A+1e8Z3VrdvD3nYzOX/PRR4KMdbWW4KiF7+3yrQsE509DmWU8UVZ JyfrRyzEExUpaJvuwi7n56YydQZ2yOga3o+JfDfQHvi0GIukKhGKHCvuZU6jYVsm24R4 4Jvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fwXtfJ8U; spf=pass (google.com: domain of linux-kernel+bounces-6566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f7-20020a631f07000000b005ca5b61ca6asi11133916pgf.81.2023.12.20.00.27.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 00:27:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fwXtfJ8U; spf=pass (google.com: domain of linux-kernel+bounces-6566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 57DB9B23455 for ; Wed, 20 Dec 2023 08:26:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A255B1BDFD; Wed, 20 Dec 2023 08:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="fwXtfJ8U" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 A233F1DDD2; Wed, 20 Dec 2023 08:26:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BK5rZca016735; Wed, 20 Dec 2023 08:26:06 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=Pdm6PTLkR+mB79HpuwHCRfVI5bOMcx6Rg7Rr4q94EQk=; b=fw XtfJ8U1brySURW7r7HKbR1GrqJF69lKc+fQxkgXRLzHKV0TWqQSbmFfr9FlOGHrp OuULTvFlV0M4T5QYfpSY5+VbDsTysOmFg3myhu9r2M6pxjDtV29bkXDuuJGqPm0k cnhi/Cnc95+e7u4lfbvlYiGa2QUH1HNb7jMvX2Amph4PKyAG624Tdo4yWAMbyWfe 2Aps4/yrWEtcjoJV1/1a9cIVZj3O+MiUjRNubaQQH3j6reGjgehaNW8g3WGDer0a nh2ULuVNb8ZmfZhKDwk+BOYYZ3+vFUpDRmmG4ifCs/T1Fbn168LW/huCm+ESrWww G2IwRC/p+JcI01dXG4LQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v3r6rrk6e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 08:26:05 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BK8Q5Fj019322 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 Dec 2023 08:26:05 GMT Received: from [10.216.36.155] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 20 Dec 2023 00:26:00 -0800 Message-ID: <362360be-6b21-5f13-6107-ca05419cd5f2@quicinc.com> Date: Wed, 20 Dec 2023 13:55:57 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 27/34] media: iris: implement vb2 ops for buf_queue and firmware response Content-Language: en-US To: Konrad Dybcio , , , , , , , , CC: , References: <1702899149-21321-1-git-send-email-quic_dikshita@quicinc.com> <1702899149-21321-28-git-send-email-quic_dikshita@quicinc.com> <10f7180f-0241-4b69-b331-9d82da15e0c5@linaro.org> From: Dikshita Agarwal In-Reply-To: <10f7180f-0241-4b69-b331-9d82da15e0c5@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: kanpfhsZLVBU-7O7wsbhQV1XyAXXR1Rs X-Proofpoint-GUID: kanpfhsZLVBU-7O7wsbhQV1XyAXXR1Rs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 mlxscore=0 mlxlogscore=728 clxscore=1015 malwarescore=0 suspectscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312200057 On 12/19/2023 5:51 PM, Konrad Dybcio wrote: > On 18.12.2023 12:32, Dikshita Agarwal wrote: >> Implement vb2 ops for buf queue. Below are the different >> buffer attributes: >> BUF_ATTR_DEFERRED - buffer queued by client but not submitted >> to firmware. >> BUF_ATTR_READ_ONLY - processed buffer received from firmware >> as read only. These buffers are held in firmware as reference >> for future frame processing. >> BUF_ATTR_PENDING_RELEASE - buffers requested to be released >> from firmware. >> BUF_ATTR_QUEUED - buffers submitted to firmware. >> BUF_ATTR_DEQUEUED - buffers received from firmware. >> BUF_ATTR_BUFFER_DONE - buffers sent back to vb2. >> >> Buffers are submitted and received via HFI_CMD_BUFFER. >> Firmware associates below flags during buffer response: >> HFI_BUF_FW_FLAG_RELEASE_DONE - buffer released in firmware. >> HFI_BUF_FW_FLAG_READONLY - buffer used as reference in firmware. >> >> Input buffers dequeued from firmware are sent directly to vb2. >> >> Output buffers if read only, are sent to vb2 and also maintained >> in read only list. If the same read only buffer is received form >> client, HFI_BUF_HOST_FLAG_READONLY is attached to the buffer and >> submitted to firmware. Once the buffer is received from firmware >> as non read only, it is removed from read only list. >> >> Signed-off-by: Dikshita Agarwal >> --- > [...] > >> >> +enum iris_buffer_flags { >> + BUF_FLAG_KEYFRAME = 0x00000008, >> + BUF_FLAG_PFRAME = 0x00000010, >> + BUF_FLAG_BFRAME = 0x00000020, >> + BUF_FLAG_ERROR = 0x00000040, > BIT(3), 4, 5, 6? Sure, will update. > > Konrad >