Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5547361rwl; Mon, 3 Apr 2023 23:21:44 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEAozyiukRHtlipYEGj98nPbnFV/lRCaTE96ekQ7Pu9WWPpyUQ1fQS6exyhSC5620EI17k X-Received: by 2002:a17:90b:1b03:b0:23f:3ee2:8ec6 with SMTP id nu3-20020a17090b1b0300b0023f3ee28ec6mr1609228pjb.11.1680589304380; Mon, 03 Apr 2023 23:21:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680589304; cv=none; d=google.com; s=arc-20160816; b=TkOEX4fcjFlKdysIjKRtJknnbaQ7mJ1uBanXkQGTOtWd5RM8lrdESgEKDn/CpjgpxG AZjjZNmIumXl4Rm4xAKABLiPWI/dAATg5g8UkoU4sOcPglGR1y1fiA3fyEbzaRQ/Zyqb bqtfsHgPjd6TStp9JWS5cBClg/1HCNHyx/zS9qtJR7uSM0PbxymV9DBmO4kZovrJx527 anubE6uRHxraNBRYypu4e4QaTd37/PiZKAUs7bMoPnv73zr9vreAFCN/j2uuHjmNrkce OIdXe0san3nexUrkzr5Kryk8XsI50BNI9Fu+oFm0whXDSZEEZpY4iXd6eIBfp6Ye1RrC atUg== 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=QCbU4Us3JwDR7tMefYDEltxnregNvaXA8Q9OulYvGkg=; b=JjPKz+4wTmkqxjf7U9iydJVB1TPbBjt4e5l4VVSEOI8kyFkNYlzAeH+j1m4Kar8oEN JDj7mKv/g5f2IW+aqgoCgVptuMaqU66Sq6CTaCX6XJMhx1/5FQkI6s2xPA473HxmMXVN ntY6PmNwLuoPw7MTwAaOrti7PsNgqYg2xGbMAob3vox1oYTPacVerY8kiISQO0G5b0Qr fJzZvyzi+J0h3ajBK5QS4c4QZI0vvb3qEA09BFjR/Vm9/+EK4xZT9ZybedgbFeOCo/SM Zj+5B2Ia79I41iKdBp9pBRnIachBYFrwzuogX3LGwXvvzJversIgCZDmifnJ+QzM+IMB PnVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ay8Zd2wW; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a1709027c9000b0019b0c650267si9215522pll.510.2023.04.03.23.21.32; Mon, 03 Apr 2023 23:21:44 -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=ay8Zd2wW; 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 S233796AbjDDGSc (ORCPT + 99 others); Tue, 4 Apr 2023 02:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233692AbjDDGSS (ORCPT ); Tue, 4 Apr 2023 02:18:18 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52A5E1BD8; Mon, 3 Apr 2023 23:18:01 -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 3344uOus022342; Tue, 4 Apr 2023 06:17:23 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=QCbU4Us3JwDR7tMefYDEltxnregNvaXA8Q9OulYvGkg=; b=ay8Zd2wWTm5dcHLIePAADLuZlQieIRpesopzFqMS002T2v7C0DyO1AC7TFAd5NPkpD58 CxVnhKMgQ+15/GOallIqVNUNM1JJG2xNOtnxErHaUqbjk5cwaejVBW2yqqXnq/xQMUuu of7lkTDkWG0SjLabAVFpRyAQTFtCIgGWibnIDhki0oNoVSL+Cdvf+OZ+d6xfc0ekJqjM dV2Xc5RioFZJwZwH7Ex9K+2Cp258Om6h4ebgUluP2QpgSMo2PtXvI0bG4ASX0uR553ov lUdB6Kv65DaGbt9zdlV3A7kySIGRBsl15074leRTispkl7liW7n7SXebjsnAzj9HU50e zA== 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 3pqy6224ge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 06:17:22 +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 3346HJL7026785; Tue, 4 Apr 2023 06:17:19 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3ppdpkhu48-1; Tue, 04 Apr 2023 06:17:19 +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 3346HJGq026778; Tue, 4 Apr 2023 06:17:19 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 3346HJvs026777; Tue, 04 Apr 2023 06:17:19 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 347544) id 8C6D932EE; Tue, 4 Apr 2023 11:47:18 +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 , Viswanath Boma Subject: [PATCH 3/3] venus: fix EOS handling in decoder stop command Date: Tue, 4 Apr 2023 11:47:12 +0530 Message-Id: <1680589032-26046-4-git-send-email-quic_dikshita@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1680589032-26046-1-git-send-email-quic_dikshita@quicinc.com> References: <1680589032-26046-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: NTcNPRkZMnD2HwfTxzFoRjJzrlVTXGEP X-Proofpoint-ORIG-GUID: NTcNPRkZMnD2HwfTxzFoRjJzrlVTXGEP 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-03_19,2023-04-03_03,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 adultscore=0 impostorscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040057 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Vikash Garodia Signed-off-by: Viswanath Boma Tested-by: Nathan Hebert --- 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; -- 2.7.4