Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp463232rwl; Thu, 6 Apr 2023 23:32:05 -0700 (PDT) X-Google-Smtp-Source: AKy350Yt9rrIORh5K7v8p18fvTOlzRX5wsJKLKsLwUiJS8KeUA7TNRM9yxeW6WP2fU+2UtoltXCt X-Received: by 2002:a05:6402:78a:b0:502:1f0d:140b with SMTP id d10-20020a056402078a00b005021f0d140bmr694292edy.11.1680849125495; Thu, 06 Apr 2023 23:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680849125; cv=none; d=google.com; s=arc-20160816; b=09t1+5Joq6xYnNT3/a55fA2gsPguUlMI6EF+FnM4sj3carsm4GguSfSrKYGG3zM6Fp uWWho3gCU0vKpyWzaTXWw/+hrCfKJxOrcinemVGD5CudTIeXGmKr+HZpFqc/5saHFCkA BwvSUsHWN8meCwa8jKKoBRjcUP8RgLK1dlK310Ehg+jdcuKz9uaIVtX9vlasVavqkTD0 AF/x3u7eHEbMaDduPpgcKd4ko9X5mfi4LvpXQwAhmKJQFzt2svYn7avmSZE4kh9WoqsI nryMvTLXaVOXYeMNLWNnbdDc2OTTH98tikrYew1nFAntzWwafIBtemDiNQ1ijntyG8Wt Q8Nw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020aa7c588000000b004acbeceab83si2916035edq.448.2023.04.06.23.31.39; Thu, 06 Apr 2023 23:32:05 -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 S239506AbjDGG03 (ORCPT + 99 others); Fri, 7 Apr 2023 02:26:29 -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 ); 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 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 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: 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 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