Message ID | 1680848758-3947-4-git-send-email-quic_dikshita@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp87070vqo; Thu, 6 Apr 2023 23:31:15 -0700 (PDT) X-Google-Smtp-Source: AKy350bCXKKKwNv5IX2CBJoYobg2moQ8s6e9nbRaYugYLpHH1p7+FFtt+CKhFE9p5QdB8jRQf85L X-Received: by 2002:aa7:c0c7:0:b0:4fb:395a:6aa4 with SMTP id j7-20020aa7c0c7000000b004fb395a6aa4mr720371edp.31.1680849074831; Thu, 06 Apr 2023 23:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680849074; cv=none; d=google.com; s=arc-20160816; b=n6YvASl6YcmmG2T07NFBGGiLiEf+u4HNHXZMflm8d9BthxaNL0CEq9ONiyrBdlYAIp KJ+yG+AC590f/EiJhziwZiI/lpB2OzKBPjzLDsP4bRHdLIBUjhColEfdb+q1AlSjZJXH e/9ziJLTDYPPvM5X3aS8TYA+bXQl2vEJQIouDjdex38+4moD1aQaGc4XkFy4RKM1jYw4 5N5J+oDeDXrGMicQbDGFocCmB535VdBTz4XXck2ZFRJycucqCjUgMgk8eI18Cg5hl98w 8/NhQXCh+WxEcnAucV3BGrqT8Z9ukUDyITm/NyJ7CjFcohwbGxv/sdpGA66ERI7C9HgM w+IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=xRNn1wTmCxRKHsvIBsgrwi6pAyzhbE4WXNT5SMx+u08=; b=rYkC3nYvEhn6ez9wBJLJa3tLORhchor7Fmpk7yS+4uvomiRJ3dVdaJft1d24i+5wDo TWn63ByUYJDM+/1drHy3YwQX808sEbZaJPYhA93iqX0Znx/tkCa3sMvXQhXOla/qGAMr GnRzli9BeKBif7HhRJnJix/tmN4EBdoIRLM3LtYgRPHgRmO2gWwJGXzpPg6HXMTthT3j UtXylflkjFSRSCWSuoNaFYGbaESeIyawVDwiS8oNH6YLnaihMAJDcOKBCK56pcsXBPzt jq4KopwXoCG900O2TpQIcOMNUipA99d2I4sE+2O0ryw03aL4zxcSzxhMyGAJsssV2maL 8HIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=j6kexSH9; 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 z7-20020a50eb47000000b004c03a4171b1si1811341edp.56.2023.04.06.23.30.49; Thu, 06 Apr 2023 23:31:14 -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=j6kexSH9; 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 S239509AbjDGG0a (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 7 Apr 2023 02:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239104AbjDGG0X (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Apr 2023 02:26:23 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07F4D9EE5; Thu, 6 Apr 2023 23:26:17 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3374pfZd028212; Fri, 7 Apr 2023 06:26:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=xRNn1wTmCxRKHsvIBsgrwi6pAyzhbE4WXNT5SMx+u08=; b=j6kexSH9wWonEXwYUcgvxm3ifUsGuCpWOw5CPyl9qYQvD2+Db2fikawmb7633iX/jnu3 gi+Sfa4Xeuyjz0XPcZTjv485mE+O4QT32beS7l8f2hF8NTdxUZlRqD1zati9/bluNi7T 5XGykVa1swN3JBCRIkbP2BmWOBFHgmF0aSdTk1+sAZqiss7IHVU+QULcThnGMv2I6jmE rGTJaN7Gsg9OtMBMHe8+UBuW8ERGEVIXkjkeaBesVcrkNBO7ISogWt34hdfBMOyWkpp0 68wonMtWh+tqaExd8Uc4Qg2e1vZqTckOUAXx7n0BR7X2TokyVAonf5wj8C8A+wUGT+xk Tw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ptb9wga7m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Apr 2023 06:26:13 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 3376QA8C014143; Fri, 7 Apr 2023 06:26:10 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3ppdpm5y9g-1; Fri, 07 Apr 2023 06:26:10 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3376QAoj014136; Fri, 7 Apr 2023 06:26:10 GMT Received: from hu-sgudaval-hyd.qualcomm.com (hu-dikshita-hyd.qualcomm.com [10.213.110.13]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3376Q9Ar014134; Fri, 07 Apr 2023 06:26:10 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 347544) id 4F56F1310; Fri, 7 Apr 2023 11:56:09 +0530 (+0530) From: Dikshita Agarwal <quic_dikshita@quicinc.com> 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 <quic_dikshita@quicinc.com>, Viswanath Boma <quic_vboma@quicinc.com> Subject: [PATCH v2 3/3] venus: fix EOS handling in decoder stop command Date: Fri, 7 Apr 2023 11:55:58 +0530 Message-Id: <1680848758-3947-4-git-send-email-quic_dikshita@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1680848758-3947-1-git-send-email-quic_dikshita@quicinc.com> References: <1680848758-3947-1-git-send-email-quic_dikshita@quicinc.com> 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-GUID: uo5dzR-VIevTFpbmOiA_w92qzwVYhD8U X-Proofpoint-ORIG-GUID: uo5dzR-VIevTFpbmOiA_w92qzwVYhD8U 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-04-07_03,2023-04-06_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 phishscore=0 malwarescore=0 bulkscore=0 adultscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 impostorscore=0 mlxlogscore=999 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304070059 X-Spam-Status: No, score=-0.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762497999455235177?= X-GMAIL-MSGID: =?utf-8?q?1762497999455235177?= |
Series |
fix decoder issues with firmware version check
|
|
Commit Message
Dikshita Agarwal
April 7, 2023, 6:25 a.m. UTC
Use firmware version based check to assign correct device address for EOS buffer to fix the EOS handling with different firmware version. Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com> Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by: Viswanath Boma <quic_vboma@quicinc.com> Tested-by: Nathan Hebert <nhebert@chromium.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- drivers/media/platform/qcom/venus/vdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 07/04/2023 09:25, Dikshita Agarwal wrote: > Use firmware version based check to assign correct > device address for EOS buffer to fix the EOS handling > with different firmware version. > > Signed-off-by: Dikshita Agarwal <quic_dikshita@quicinc.com> > Signed-off-by: Vikash Garodia <quic_vgarodia@quicinc.com> > Signed-off-by: Viswanath Boma <quic_vboma@quicinc.com> Order of sign-offs is incorrect. The SoB of the sender should be the last one. > Tested-by: Nathan Hebert <nhebert@chromium.org> > Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> > --- > drivers/media/platform/qcom/venus/vdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c > index f0394b9..c59b34f 100644 > --- a/drivers/media/platform/qcom/venus/vdec.c > +++ b/drivers/media/platform/qcom/venus/vdec.c > @@ -545,7 +545,7 @@ vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd) > > fdata.buffer_type = HFI_BUFFER_INPUT; > fdata.flags |= HFI_BUFFERFLAG_EOS; > - if (IS_V6(inst->core)) > + if (IS_V6(inst->core) && is_fw_rev_or_older(inst->core, 1, 0, 87)) > fdata.device_addr = 0; > else > fdata.device_addr = 0xdeadb000;
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index f0394b9..c59b34f 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -545,7 +545,7 @@ vdec_decoder_cmd(struct file *file, void *fh, struct v4l2_decoder_cmd *cmd) fdata.buffer_type = HFI_BUFFER_INPUT; fdata.flags |= HFI_BUFFERFLAG_EOS; - if (IS_V6(inst->core)) + if (IS_V6(inst->core) && is_fw_rev_or_older(inst->core, 1, 0, 87)) fdata.device_addr = 0; else fdata.device_addr = 0xdeadb000;