Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp502517lqb; Thu, 29 Feb 2024 07:09:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUm/2CcXT5hMl1Ksbb7pXwXAWAe6TFSeyt2Te9TiiVRcuzsJHfaPqp3TGM4fuADteig69YWYataFCk/gtgEhYIGrO46DW3SmxVHp847lg== X-Google-Smtp-Source: AGHT+IHJi6o04xyHeGG8c6r8KJHnW+G8wbZYeqWppH3/iTZ26HOpUhNB5XsSSWB8PfKztubVzppN X-Received: by 2002:a05:620a:6885:b0:787:fd84:7bb7 with SMTP id rv5-20020a05620a688500b00787fd847bb7mr1758810qkn.55.1709219393458; Thu, 29 Feb 2024 07:09:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709219393; cv=pass; d=google.com; s=arc-20160816; b=MuM0Y20NDUsWxjlnHkgRw6nkvnkxV0JMOk/QAY3OPzY8PpZKObwotrcurHS28M2vCw shu4ygzOcghyrsZ+Xr/fIxukrypW7e5+4QFE2tI+STW+pmZwix/rCZS5Ig1ZCb07VLzT 7Y84pX/O1nmgDr7TUGBvH3AqGe0fVd9VJ/lVLXp3HWI0YPYgaeRtefG2qsb0+y4T3UcN UFu97ZHI1QfFvqdME5E/CuZD8Aw1Iqkgn/aLIVgm/ZA4BsPHap0KcHWqMxZaUWVsNXP2 dolo+EH7loL5yuj8n/nQ/VjrbKYPWQnDgK34DgVBH9bH2rl1AptBav2Vks63c5UYEDhm X6Rw== ARC-Message-Signature: i=2; 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=FuENqAaB6m4xxxysjIYTNmhvkd60JBJYJz+44lqrGUQ=; fh=QIsW0q5ECR0Pgqiz5f1tf4Ry9MD+ZNACPf8R8MHILx4=; b=l6lx0xW0RjNI9UI4jM/YEJliLJ6M8pzdt9g1Ly1ON8NfLSKFuNLMdgjeMyUQpXUKZ8 vE7i7/NtDgOtIyCozzjFHlMFrMThUlTD4AqVpR25/GvCwLqQaL+qsqAoOoTivnEJ+XXn SP+U3ls0JQNelJzgDN1mMEmsAiwMq6fwZK++Lp/2/HITHU04xME/GAuqQdAO7lIbGKM2 BI/vVqkWH1EcqtMBs7MhEm7vIL3YD3mQDvgAXdBz1m/hn2/VuZh7JsSwgRp8K5+QlF1m WTLla3F6AvhgONdjTkQMcY6ve03yXYL2wTzcYHXUzAiwStWoN9A1+A1HOj9qou7wjlvv IRyQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z6x3HCOH; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-86898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vv22-20020a05620a563600b00787fa005857si1546921qkn.178.2024.02.29.07.09.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 07:09:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Z6x3HCOH; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-86898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86898-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 269E91C22AF5 for ; Thu, 29 Feb 2024 15:09:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A65451386B1; Thu, 29 Feb 2024 15:09:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Z6x3HCOH" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 CFEB213776F; Thu, 29 Feb 2024 15:09:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709219377; cv=none; b=ro0jIntkPvNAyHXN2k46Bs2NjFdp5+j4j77dWXoiENIWEE33RTH61uNDmGLOgHxLmKqKQfIadcbD7qp3E8xC3/i4eKEeTtmpuVLDUB8IlWZEgVq3+QMSBkrC0107Wos0CBx9+lbzKBhgD2qT0XNnN46uEn7tfCMagxH3K36TMRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709219377; c=relaxed/simple; bh=tek9DUSGqpyfY4A1mYJ+aK0P4X9tgkILz9JjuHu4vjU=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=RMQa2eFlqhVV1T9YNqjYI9eCAxoAkWQuvgllKvmlkminpUio1qeU1z8y/zLKe9ZK9rO9RiLEHrgWpB3oeEPESCfQr7kmgEiAUQq8LanGojqFrWtqo/5Sav5JWV0Zx/WRM0gG3rMDc8L5e2pm2qmIsR7cLdoaw53MsP+Bj9A2hnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Z6x3HCOH; arc=none smtp.client-ip=205.220.180.131 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41T5L4Jb009844; Thu, 29 Feb 2024 15:09:20 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=FuENqAaB6m4xxxysjIYTNmhvkd60JBJYJz+44lqrGUQ=; b=Z6 x3HCOH0kVx/pcLmufD5esd7HnZkpkSLdzDeAEh8+ilHlZjCfo1kK+xjDzTNJ4WvR HIxHov3CPxqVaqTqGmtNLL18I5iTFhlbh3rVVvy6mZKFg5nm7hH5YzJCAEIGfT7y 3lEbuKFCUP11Dd+hld89fbKac6HW0fi9xhxcEs0Fb2aL/cijV+UBYsN/0/zUpOoS oUXYrtmuYsH8clTMSKcTTMb4tTdivVPAt35iwK1t8YKfTcnAWm55O4PYq5sFZe5q xIV7lc8YZypTUy5/dLuEX+WeJw6zFHrgpoq5nxM3ZAzNhEEuGoE9y9Av0KMHQe6B cxp+2w1mw4ug8ET/AnKA== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wjey3a2bh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Feb 2024 15:09:19 +0000 (GMT) Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41TF9IfM019512 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Feb 2024 15:09:18 GMT Received: from [10.216.47.47] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 29 Feb 2024 07:09:14 -0800 Message-ID: <8bf182b1-e05f-0c90-a358-e5c8bf6bd430@quicinc.com> Date: Thu, 29 Feb 2024 20:39:11 +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 00/34] Qualcomm video encoder and decoder driver Content-Language: en-US To: Hans Verkuil , , , , , , , , CC: , , "Dikshita Agarwal" References: <1702899149-21321-1-git-send-email-quic_dikshita@quicinc.com> From: Vikash Garodia In-Reply-To: <1702899149-21321-1-git-send-email-quic_dikshita@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 3-EWurB-1zpOuXLBF9A3jEH-Z7CLGVlc X-Proofpoint-GUID: 3-EWurB-1zpOuXLBF9A3jEH-Z7CLGVlc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-29_02,2024-02-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=19 lowpriorityscore=19 clxscore=1011 priorityscore=1501 impostorscore=0 mlxscore=0 malwarescore=0 phishscore=0 spamscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402290116 Hello All, On 12/18/2023 5:01 PM, Dikshita Agarwal wrote: > This patch series introduces support for Qualcomm new video acceleration > hardware architecture, used for video stream decoding/encoding. This driver > is based on new communication protocol between video hardware and application > processor. > This driver comes with below capabilities: > - V4L2 complaint video driver with M2M and STREAMING capability. > - Supports H264, H265, VP9 decoders. > - Supports H264, H265 encoders. > This driver comes with below features: > - Centralized resource and memory management. > - Centralized management of core and instance states. > - Defines platform specific capabilities and features. As a results, it provides > a single point of control to enable/disable a given feature depending on > specific platform capabilities. > - Handles hardware interdependent configurations. For a given configuration from > client, the driver checks for hardware dependent configuration/s and updates > the same. > - Handles multiple complex video scenarios involving state transitions - DRC, > Drain, Seek, back to back DRC, DRC during Drain sequence, DRC during Seek > sequence. > - Introduces a flexible way for driver to subscribe for any property with > hardware. Hardware would inform driver with those subscribed property with any > change in value. > - Introduces performance (clock and bus) model based on new hardware > architecture. > - Introduces multi thread safe design to handle communication between client and > hardware. > - Adapts encoder quality improvements available in new hardware architecture. > - Implements asynchronous communication with hardware to achieve better > experience in low latency usecases. > - Supports multi stage hardware architecture for encode/decode. > - Output and capture planes are controlled independently. Thereby providing a > way to reconfigure individual plane. > - Hardware packetization layer supports synchronization between configuration > packet and data packet. > - Introduces a flexibility to receive a hardware response for a given command > packet. > - Native hardware support of LAST flag which is mandatory to align with port > reconfiguration and DRAIN sequence as per V4L guidelines. > - Native hardware support for drain sequence. 1. We considered enhancing the venus driver to support iris functionality but concluded that the result would essentially be two parallel drivers implemented in the same folder. 2. Although the underlying hardware for venus and iris are quite similar, but there are other factors which brings the need of new driver: a. the host firmware interface (HFI) changed between the two. Venus supports HFI protocol 1.0 while iris supports HFI protocol 2.0. b. unlike HFI protocol 1.0, HFI protocol 2.0 is better aligned to V4L2 APIs. c. iris driver modularize platforms, hardware variants, and states to extend it for any upcoming SOC. Thereby more extendable to newer SOCs in future. d. Iris also supports many advanced features. 3. Based on the comments received on posted iris driver [1], we evaluated it further and to better align with the upstream standard and practices, we acknowledge that even though iris driver is the way forward, it would be ideal to bring in the Venus hardwares enabled in this driver. 4. Hence, we decided to rework iris driver to add support of HFI protocol 1.0 as well. 5. Initially we would start with adding support for one HFI protocol 1.0 based platform which would be SM8250. 6. SM8250 enablement on iris driver would be incremental, starting with basic decode for H264 codec. 7. In long-term, all venus supported platforms would be migrated to iris. 8. Iris driver and venus driver will co-exist till remaining supported targets also gets migrated to iris driver. 9. We would continue to support and maintain venus driver during this phased out approach. Please share your thoughts on the above proposal. [1] https://patchwork.kernel.org/project/linux-media/cover/1702899149-21321-1-git-send-email-quic_dikshita@quicinc.com/#25643473 Regards, Vikash