Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3630741pxb; Mon, 24 Jan 2022 13:58:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtN93pjLGrYeOPQvTPlGh17bJASsui5KfzDyrlXD3jPKLVAkR1IBI85Z1tN6ZhjtH11oYl X-Received: by 2002:a17:902:e743:b0:14a:f395:3b2f with SMTP id p3-20020a170902e74300b0014af3953b2fmr15823138plf.110.1643061488623; Mon, 24 Jan 2022 13:58:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061488; cv=none; d=google.com; s=arc-20160816; b=U3WIa4amnHtxAIox1HSPE1B85vTpWSFJZ0DM+rI0Vs4WtytF3FuPqwJroQbwwNL2Z0 58o1kycFSTsJchCCnDynJ92dHA8IFPyS1rL534CM8i8V6MJRy7KKkYnQXZg+8sUYBEiN BKh9iyH6u125sotM/Dnj4BWMpMj6Cp/qw7S+EmNxFcKaGlNjM5niSuqwDnFLyT2fZmAt /+upvbAqFU6LM8cQQtpF1bCk5DbMvFUxKhegg1j+pHyFgFoOEy5C3AWn81TwVamaP05G hh933IXYuhMDo2p7vi+7VOiQUySGOU8MCQpCk1gnDgNk05nVmvWQMUF3y4BD8yuRRVmq 9scQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=R3Wfp/YlY6pzEMZ/rZoNJMHbv6F4nKuTrhYqYRYGtC8=; b=ldOG4DQMNIXMQZe+kMW1qtrFzOGitmoJ8u1Bxj+wUF8WCIFCucucnDTntTfdYAmvV/ vI6snOvBY1vAt6cE2aoRx9EcOiVztIgp4f0qZ0w6ov+L5PJ/+riR2bI4i0H8JYAXtBXn xlZrXSYAfiedNEaTBrTuhJDQjVWnjnpoepeqy6DXHhh9dmg4IZsY6Y8u9nN7X8PRm/Ne ucpqOv6R05vEkwFF4OSSxn3VY7fuQOW+Row8E1W0pWxtGI/iPmMdGmNDCwK0CBnqbRBT O/A5qOQ/B6hCioL5wxRXtUqHFlFBWHvwcaBXuzYrIEmL03b/MutsOiMuhWalNbsKdI4e KdBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Cmkeghe4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si220495pfv.38.2022.01.24.13.57.56; Mon, 24 Jan 2022 13:58:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Cmkeghe4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1457404AbiAXVle (ORCPT + 99 others); Mon, 24 Jan 2022 16:41:34 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:56402 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1445588AbiAXVEM (ORCPT ); Mon, 24 Jan 2022 16:04:12 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9201260C17; Mon, 24 Jan 2022 21:04:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CB6CC340EC; Mon, 24 Jan 2022 21:04:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058251; bh=73OCnF0ijlwNyF0VYdHcUtgcGaBD+/0/qpwxiORDKkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Cmkeghe4jxYM7AShIs3h/XivWkyFAg5IeFWfwRTMZbkfPY/iQtQ4GMbiFs69UtpKA tkjTh9Y9VDbJHP864PLJ255mzi9I++yGkUUlyK4prI1CoxXbOzyeHlCkZRizws0tp7 6VsJtcwSgvfto+n+s/SQ7fnyDR440FyC7JdpmJ8k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mansur Alisha Shaik , Stanimir Varbanov , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.16 0195/1039] media: venus: correct low power frequency calculation for encoder Date: Mon, 24 Jan 2022 19:33:04 +0100 Message-Id: <20220124184131.877920159@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mansur Alisha Shaik [ Upstream commit b1f9bb8020783a48151e3a2864fbdc70548566dd ] In exististing implimentation, in min_loaded_core() for low_power vpp frequency value is considering as vpp_freq instead of low_power_freq. Fixed this by correcting vpp frequency calculation for encoder. Fixes: 3cfe5815ce0e (media: venus: Enable low power setting for encoder) Signed-off-by: Mansur Alisha Shaik Signed-off-by: Stanimir Varbanov Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/qcom/venus/pm_helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c index cedc664ba755f..184f0cea2fdb8 100644 --- a/drivers/media/platform/qcom/venus/pm_helpers.c +++ b/drivers/media/platform/qcom/venus/pm_helpers.c @@ -587,8 +587,8 @@ min_loaded_core(struct venus_inst *inst, u32 *min_coreid, u32 *min_load, bool lo if (inst->session_type == VIDC_SESSION_TYPE_DEC) vpp_freq = inst_pos->clk_data.vpp_freq; else if (inst->session_type == VIDC_SESSION_TYPE_ENC) - vpp_freq = low_power ? inst_pos->clk_data.vpp_freq : - inst_pos->clk_data.low_power_freq; + vpp_freq = low_power ? inst_pos->clk_data.low_power_freq : + inst_pos->clk_data.vpp_freq; else continue; -- 2.34.1