Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9394657pxu; Mon, 28 Dec 2020 15:04:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKCu3jsmd3driCfthDgLKjZ+9Ifw4AujCxPYrlAoI3HcQ8M4zKGVVzDnKdl+WEKspVANJB X-Received: by 2002:a17:906:43c5:: with SMTP id j5mr44588023ejn.530.1609196683788; Mon, 28 Dec 2020 15:04:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609196683; cv=none; d=google.com; s=arc-20160816; b=qqLJWDkV9kBhKOasAbokfjrP0BoDi6JzqGsb60vaaIbQ/bQ5g7mzbEJWZZ6I3+14yn LUnHoo7CfGLN+tQZuhYUEZ6O8/SYsckuudyM0E5xv7rJxFPaEHpQYmSKIQnoQ4nX941/ pK3D9kLpXS9t+aalUeePhHXqLrsyrqHBl5II6RU5k1PfYvEM5dfGJWRcEd5kakno8odC 8JS7/AJzfO5CxqDjYUR/xD9P3Kd6DSVTrbIdmeYBOJlUBI75pmzFrOA9EfBpUY+nHTMD phtpNXa7F/82oefE8wHygnrTRBVjHO18OlTCmOZrfMtwCZye6yQLktTJ+LZ1YN7W6FsY LDCw== 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=jPExANvgyZ0vcR4zZiOpg2YgZqlMq1n80sq1DZ5hjcA=; b=nb1wP/+1593oEboLMkTybF+wI70ZnWifma5571CqdG+0pZy5XRmsQy5ZqQTFXIeAQt /ic1eoqUUxbys7nJDNLKw5FasWSUMIb0W/wcJ5PdYSxkwbUCj8DrVp7Z/gqGSBF/fylj jJV2yrd8nuyFyswsybTOulK3XD4zeK22fKlu5QdGWmCu5NsCPwNKMQePyFfT7NS9ZC2D e9P2XoSIoxM6m046/9ATzLW+6zU1zLUyDWQ6zkbS0U3ofT8asxIzktE7gRQJ97K+pgbJ b5xjG/f/T0j3nYv7piI6zhab1PVK1begigihMraKq6TCUnBWvOCpO295hgY8b5fcFMNg m0Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=u4yZHHva; 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 30si21556297edv.385.2020.12.28.15.04.21; Mon, 28 Dec 2020 15:04:43 -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=u4yZHHva; 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 S2437674AbgL1OFn (ORCPT + 99 others); Mon, 28 Dec 2020 09:05:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:40146 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437659AbgL1OFj (ORCPT ); Mon, 28 Dec 2020 09:05:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4F0CD20791; Mon, 28 Dec 2020 14:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164298; bh=Snkvk+AWRDH5BzQpZp6bCd4k6sBOTEMGA5ZiyqCsS0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u4yZHHvabKjinHbCpegFutaj8e1tgK3Pn2XD6BAblPi20AG9dug5vgenb0vn3J2Tb pL5xdoUzsINAuQcPpuANJQ7skruAADftmd/b+0nxbvJ3yKsCgiBh/Uh5dAAgM2AqSY X/owbTmJoZHo8wBi+Kta09dWGIPlBZqDil/JYrws= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mansur Alisha Shaik , Stephen Boyd , Stanimir Varbanov , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 131/717] media: venus: core: vote with average bandwidth and peak bandwidth as zero Date: Mon, 28 Dec 2020 13:42:09 +0100 Message-Id: <20201228125027.222875788@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 e44fb034b03231cd117d6db73fb8048deab6ea41 ] As per bandwidth table video driver is voting with average bandwidth for "video-mem" and "cpu-cfg" paths as peak bandwidth is zero in bandwidth table. suspend") Fixes: 07f8f22a33a9e ("media: venus: core: remove CNOC voting while device Signed-off-by: Mansur Alisha Shaik Reviewed-by: Stephen Boyd Signed-off-by: Stanimir Varbanov Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/qcom/venus/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index fa363b8ddc070..d5bfd6fff85b4 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -385,11 +385,11 @@ static __maybe_unused int venus_runtime_resume(struct device *dev) const struct venus_pm_ops *pm_ops = core->pm_ops; int ret; - ret = icc_set_bw(core->video_path, 0, kbps_to_icc(1000)); + ret = icc_set_bw(core->video_path, kbps_to_icc(20000), 0); if (ret) return ret; - ret = icc_set_bw(core->cpucfg_path, 0, kbps_to_icc(1000)); + ret = icc_set_bw(core->cpucfg_path, kbps_to_icc(1000), 0); if (ret) return ret; -- 2.27.0