Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp271631rwr; Thu, 4 May 2023 02:50:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zxPMYctYBuT/msv669O4LOg+9EkDmJhpnjtnIhzuu4PWKPAC6wZ0Oqwh2ilNYscBArNlp X-Received: by 2002:a05:6a00:1148:b0:63b:4b4e:9ccf with SMTP id b8-20020a056a00114800b0063b4b4e9ccfmr1569387pfm.8.1683193825641; 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=O8np8S/16/hHeU1QUyKTeyKAH9fOrsw7DUFl93telLLzTzSpbftsFjzAV/jyc3SOmz 9kKYsFlzh2UPUBdAed/jblgcr6w50QeTEZvs2YGUx0xHjAcsWH3bRN6muHsMsPpVUzky HrW7tS3ApSy7PA96n7nTHUlzhaX5PuN+uhJt4RN66KOq5ONAwTg2zczRgmCpJoQFsT2X hsHgPTOMC4G11Wwvo6UW5IvO6WBL3uDgtWfiBAGGMOWHZTyqc6HIKxmbnlxwSXJ2hBDx vriu0AnpvMfNHLBSyknQhYWCuWtdD1gFYNyoq1EGs6yE29YU/EIQxdeBAwl2gUPJ76NR eLfQ== 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=C9wzoPtLCU63h+rhywL+/1qenadUnZlqR9zI3riRUpY=; b=NWwrNJe9WyGZDySyMvsKLoQDrZVCA1QHiV2BCQLYharZJdc4oiz/SPc3oR/TQOFhSN h0Lqr1Di/mGmjC0banjk57SWrrUKO7M0ja2FNQA/Lx7Ql0fho2Cy7SHtE2KwWsBvmGGF BJU+E3GwmYyYqImwuFmdWX8RccKlqC4S6xzP7R/656kTZLwXT4iRSyOGHrI2N6FqiG1h vwwnrvvSvHHNWjXJZAO8Xhfi0Hfee7FkEI8FWdhK2JFKGh3JKcHENyFBHTuO0I6X4pfJ POK06phYL3dLaO54lM/0AhSnVvRgne9tYQS9fEz/CHJiygwOxfPfNExlQX1ee/7OFo9+ V5yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="SpXHo2x/"; 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 i7-20020a654847000000b0051b1542d6efsi33604572pgs.213.2023.05.04.02.50.10; 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="SpXHo2x/"; 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 S230388AbjEDJjq (ORCPT + 99 others); Thu, 4 May 2023 05:39:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbjEDJjg (ORCPT ); Thu, 4 May 2023 05:39:36 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 055CE4C18; Thu, 4 May 2023 02:39:36 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3449KORb028223; Thu, 4 May 2023 09:39:33 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=C9wzoPtLCU63h+rhywL+/1qenadUnZlqR9zI3riRUpY=; b=SpXHo2x/CsytC4Tj5i1u+ZQGkXW8zTZ6K+NXvHjvN2PBEx/eDCu1UV6krbVDLC1vxO8O rzaw2MxcPhp9xHhlEEJrE9HgCwqqWwHNmrAaS59rMkszS0jEAAaKkau/YxYi2be+etDh kPczNNGeZBubsMSaEJu0jUbJCPEwuHRB559TGRanuUEjHB1W3e5VXK74uNt3e1+fwIbA yju+G1GcYysC+fluzcwyqRiQ1akCrQ1LjOxBttSeK2HTdfIv9ulZDQ3J+edEJPvHAtFN 1U7XvNYSDatfXvakZvMbPtoOkWepRyGjfmhGRXiCiz5JCq02jX1qRqthlTEfuuldewcU Fg== 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 3qbvghhgka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 May 2023 09:39:32 +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 3449dRPo014323; Thu, 4 May 2023 09:39:29 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3q8vaksvrk-1; Thu, 04 May 2023 09:39:29 +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 3449dTZX014345; Thu, 4 May 2023 09:39:29 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 3449dTtl014343; Thu, 04 May 2023 09:39:29 +0000 Received: by hu-sgudaval-hyd.qualcomm.com (Postfix, from userid 347544) id 63B5936CA; Thu, 4 May 2023 15:09:28 +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 v3 3/3] venus: fix EOS handling in decoder stop command Date: Thu, 4 May 2023 15:09:12 +0530 Message-Id: <1683193152-5808-4-git-send-email-quic_dikshita@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1683193152-5808-1-git-send-email-quic_dikshita@quicinc.com> References: <1683193152-5808-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-ORIG-GUID: 0bAQjLzvxSEJopj3bsHuNit8Ls5CAuU4 X-Proofpoint-GUID: 0bAQjLzvxSEJopj3bsHuNit8Ls5CAuU4 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 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 suspectscore=0 malwarescore=0 bulkscore=0 clxscore=1015 phishscore=0 spamscore=0 adultscore=0 priorityscore=1501 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 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: Vikash Garodia Signed-off-by: Viswanath Boma Signed-off-by: Dikshita Agarwal Tested-by: Nathan Hebert Reviewed-by: Konrad Dybcio --- 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