Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp272310rwl; Tue, 4 Apr 2023 23:44:53 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnMEJ8bZd2kp7TIPGoOm6jdeFv4HZM4W1hBLpfrm9ndZAq19zQ9GOWlGxOXN8nPcT/1Be6 X-Received: by 2002:a05:6402:656:b0:4fd:14d5:bb47 with SMTP id u22-20020a056402065600b004fd14d5bb47mr835288edx.38.1680677093114; Tue, 04 Apr 2023 23:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680677093; cv=none; d=google.com; s=arc-20160816; b=tinLHk9rnkB2hepGRPA2mtYDV3q2BZOUqUKO8KLJe9So6UIfKtqmS4oN+AJirmPRvS sMU9a01EaKm5wq5ZoIADGkSM0pJ2/QyUYLnPqOwn56rIKI+vxcmm2qlL+tQqjRFhWnLd O9x41MEHuu01e0ZaAF7/JNmQnH585GcKjFq+kic8Hj5tFU7NXUM/Fns3JNkzhjZTt1tB Ajz//rMNgkENDfbH5Up03zY8LR2+G1u00ciDVuMMMhOjSaulzlNYEY2o9nLMqZW4TbyA ADkIN64NxMqlX6ODMkWtK1L6BkKe3cNhx3ILM+ph+kbIDQ7FPdSdmTVTqt4L5w7XNMpu 2D9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=aQAQQtsT5e6+vLdaoAjRE4Dj+TiRwbJphmZ7LZWsMdQ=; b=J1VArft+Q+TOzreO+AxIpNj4duy0POF36ZrDO+RHQPu02vS4jJOzlMnPzunD47ZGO2 TP/jFgc6YQUyQs+P+K7N9AFuu6SCnp6Dq8AXhM32Eq2sQVamgJAUEgnG2Hbx1ROkIvBy WFoo4eSs3b8+iPZ5KBGFd2PxHAur8ykoUAVDqr2EOoK8PBhXbGyPxGgoYgQrWfiNS6sx 6nAncygV5DtsUJ5bWZF2r+wJd22odjofTjkYfGSPsfuGo9dH+CtPNwHMWjamgTfaElsE 1zQC41asG+f2MKhurmkjv1zN4mtnjpc0MZhh44hpzJ90kMo50bom5yNHPy4VERu1lr4M 5cKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i1jRXWFn; 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 q15-20020aa7da8f000000b005021f0d576asi8531589eds.689.2023.04.04.23.44.28; Tue, 04 Apr 2023 23:44:53 -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=i1jRXWFn; 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 S236911AbjDEGmA (ORCPT + 99 others); Wed, 5 Apr 2023 02:42:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231191AbjDEGl6 (ORCPT ); Wed, 5 Apr 2023 02:41:58 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D2F11FE7; Tue, 4 Apr 2023 23:41:56 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3353g7Er017906; Wed, 5 Apr 2023 06:41:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=aQAQQtsT5e6+vLdaoAjRE4Dj+TiRwbJphmZ7LZWsMdQ=; b=i1jRXWFnZnwrj1oNYMlGdYRZiDizC76CIGcGHUGSdlrC33WTalAmhAxcSFNtUtgZhyQJ 4nMDJVSiH2JvExA7FOI/Or2B9quo6na9Y3X/Uq/pNj6rC+AAhM7aXlnlzKli40JjH2GB Rt2XeJMXR8XRqw5J8FDJZ0ZxCw9tVQeOYwVvlQqBhWvBfJphW2f4lvt1DNDLBoUyYDTz NrS+FaeZuQejzhI73+FeJnboirAa+1SgDOCIRo7dbQIKzbQXATVrrbLU6Hl5rSPe3kc7 FQ4tS/eAshLMAsot+R0pekL0WWWu6VUZcABxKm8jH5CzEaSJWd2MPkeWssjz/VOczmnh /g== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3prnvg20ag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Apr 2023 06:41:51 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3356foaq031530 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 5 Apr 2023 06:41:50 GMT Received: from [10.50.42.101] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 4 Apr 2023 23:41:46 -0700 Message-ID: <62cc41a2-ff48-40b9-eb89-69e352e6f6e9@quicinc.com> Date: Wed, 5 Apr 2023 12:11:43 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 3/3] venus: fix EOS handling in decoder stop command Content-Language: en-US To: Konrad Dybcio , , , , , , CC: , , "Viswanath Boma" References: <1680589032-26046-1-git-send-email-quic_dikshita@quicinc.com> <1680589032-26046-4-git-send-email-quic_dikshita@quicinc.com> <93b78f82-d2db-fc1d-4bad-732f7a1b33de@linaro.org> From: Dikshita Agarwal In-Reply-To: <93b78f82-d2db-fc1d-4bad-732f7a1b33de@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: m1RwIexUAcCcMo38kAq_cfAf8aOJymA9 X-Proofpoint-ORIG-GUID: m1RwIexUAcCcMo38kAq_cfAf8aOJymA9 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-05_02,2023-04-04_05,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 mlxscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304050061 X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS 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 On 4/4/2023 11:54 PM, Konrad Dybcio wrote: > > On 4.04.2023 08:17, 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 >> Signed-off-by: Vikash Garodia >> Signed-off-by: Viswanath Boma >> Tested-by: Nathan Hebert >> --- > Does it only concern fw 1.0.xx? > > Konrad that's right. changes were made in later firmware (newer than 1.0.87) to make the behavior generic across all supported SOCs. Thanks, Dikshita >> 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;