From patchwork Thu May 4 09:39:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dikshita Agarwal X-Patchwork-Id: 8916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp181237vqo; Thu, 4 May 2023 02:50:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5KfBOIqlrOXLel3tIzdIMn4vMKxDZKP4gjYuaYyZ8eRJ6An6cz09h+JxElRrvP/nxE9CDB X-Received: by 2002:a05:6a00:1952:b0:636:f5f4:5308 with SMTP id s18-20020a056a00195200b00636f5f45308mr1912976pfk.7.1683193825754; Thu, 04 May 2023 02:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683193825; cv=none; d=google.com; s=arc-20160816; b=nTPCI7GOZDo42TWs6VGo9a4yHTgRoP3uPSOze9AN6m/1csd16UI+UImCPZCe7zJaJ6 3jF6JXqlUhbTtklyOCapMm9qjqz8vojqI9gkVbsUSQmuirH29PIKvUa1hMDbs0YeTeXD xl37HbJaCzDUuZh7im7ODXrwuAIcoryuX4f31nrbneKojo6vy3isrAr+it71yxl8At74 SI3lijfAuRdsFzJPyIoY+IjU6yuJFMSuvUAjmFa714kAh8g4k5rPh3M4Tt6TbwWp73ad aEaVnKAs4NlWUvpvqdpBinqCdrPppYMyVuDI8Be6Aepu4wKtvQUblHRyWvWLbwEJUKXZ MKnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=bfjr312VruXMUFzyFs48bfe9zvLy7jOHbUKWetzUKbw=; b=DyC0tBkfYWHWONBeLMpg2pkjphc/Hoh0VC407Tz9OZ5z3oyii1E6XT7IHKhDzQfF1y hjqOTjIDtrK4JiT3swXmQX3pAPMoCsrxZoXDXFLdvt6d9urwg6Y0j6X8+/46l1IyxMtF mughygkoMM9gOZ7n56u0FiQ8Yl+iDe5M2lL7yRm5P30LzWeynSFdeE6mMtRzf3uM1JiP 7mHY/Kpc0TXyX44KfLI+vEf+ZyPDSux4zDC4F6gcI6D3i0u+zj2WpMhrJYQtAJqzXTFV M56ba2BA853iQ+Hb1zrC6MixE99NchQ4oDtGS9RX2FyqxYMO+VqSF0GhoMZ4HBu70FD0 PEtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y5EiSDXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a635c53000000b00524d6cd6415si31361690pgm.665.2023.05.04.02.50.11; Thu, 04 May 2023 02:50:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Y5EiSDXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230110AbjEDJje (ORCPT + 99 others); Thu, 4 May 2023 05:39:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbjEDJjd (ORCPT ); Thu, 4 May 2023 05:39:33 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51DBE46BF; Thu, 4 May 2023 02:39:32 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3447Y0kk019661; Thu, 4 May 2023 09:39:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=bfjr312VruXMUFzyFs48bfe9zvLy7jOHbUKWetzUKbw=; b=Y5EiSDXc3cq0OpiKv20xVhTGoSEuH0xiNG7bqvmmt8jNiqq3e8sN8C0uHtJl6NZDPfCB FgwChOoziKfrVVGmZhPCaaM3uE7dyQjtQXkzqExihQ5jwJ19FzqAbjvmozLUgMwvuilz vCFr294g19Fc8XfWf9Bi4WOYZWLeR/647Mmth4NHmyg/Rm+u/CpZQIf+xZ36dM8ZB5vZ /NUPHEnzOlUbU8FrOESpK/vrR7089qrQ+5OYSKsWUhqB00VErreJopZtylLv/IstZL9k pgEA05eHDU+g+H81yfkHKZqyHXUegli8fCRclCNuWksr58aPDOkJlrscBmc7vPywIXPr Nw== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qc5bn0k7m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 09:39:28 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 3449dNo3014252; Thu, 4 May 2023 09:39:23 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3q8vaksvqw-1; Thu, 04 May 2023 09:39:23 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3449dNIO014247; Thu, 4 May 2023 09:39:23 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-dikshita-hyd.qualcomm.com [10.213.110.13]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3449dNpd014245; Thu, 04 May 2023 09:39:23 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 347544) id 7CBB736CA; Thu, 4 May 2023 15:09:22 +0530 (+0530) From: Dikshita Agarwal To: linux-media@vger.kernel.org, stanimir.k.varbanov@gmail.com, quic_vgarodia@quicinc.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mchehab@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dikshita Agarwal Subject: [PATCH v3 0/3] fix decoder issues with firmware version check Date: Thu, 4 May 2023 15:09:09 +0530 Message-Id: <1683193152-5808-1-git-send-email-quic_dikshita@quicinc.com> X-Mailer: git-send-email 2.7.4 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: znXAmEr3Ci5T44U2Hh1Filp-QpuJBzpq X-Proofpoint-GUID: znXAmEr3Ci5T44U2Hh1Filp-QpuJBzpq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-04_06,2023-05-03_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 suspectscore=0 mlxlogscore=913 clxscore=1015 priorityscore=1501 malwarescore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305040079 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764956648880087553?= X-GMAIL-MSGID: =?utf-8?q?1764956648880087553?= This series includes the changes to - add firmware version based check to enable/disable some feature. - add support of new HFI to notify sequence change event to driver during resolution change at interframe. - use firmware version based check to fix EOS handling for different firmware versions. With this series, divided the previous version [1] into multiple patches as suggested in review comments. [1] https://patchwork.kernel.org/project/linux-media/list/?series=733169 change since v2: added firmware version based check for all supported firmwares. added return value check of scanf. addressed other review comments. change since v1: addressed coding comments. Dikshita Agarwal (3): venus: add firmware version based check venus: enable sufficient sequence change support for vp9 venus: fix EOS handling in decoder stop command drivers/media/platform/qcom/venus/core.h | 20 +++++++++++++++++++ drivers/media/platform/qcom/venus/hfi_cmds.c | 1 + drivers/media/platform/qcom/venus/hfi_helper.h | 2 ++ drivers/media/platform/qcom/venus/hfi_msgs.c | 27 ++++++++++++++++++++++++-- drivers/media/platform/qcom/venus/vdec.c | 10 +++++++++- 5 files changed, 57 insertions(+), 3 deletions(-)