From patchwork Wed Jan 9 08:46:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 155057 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp458212jaa; Wed, 9 Jan 2019 00:46:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN5SdyHwQ9OD3ylIzYJ9fO7A0f2FEui7/bADPBu8nfVzFbbEv2c/l/VOY2ydnhKEf+SxGpDn X-Received: by 2002:a63:8c6:: with SMTP id 189mr4605557pgi.322.1547023607128; Wed, 09 Jan 2019 00:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547023607; cv=none; d=google.com; s=arc-20160816; b=UMy3FqbCT0a1Qj1FOSyzrzQoRmKE8tNAAU3KczdI7WXI0KXpYPBY0n+eon4KcbQBwp mWi3Ff60CtWm70gyoF3ngnr5GgqjRsf0FwByw9+IYDPxlDjpri2kKsoCt6KbIoKs5DpS KjvJKh8hxnr+M2zvr0RV7VQ1ahiNAsuzJ/YoOAhMiQbUOqLwLDhlhgASHnhQBfKz62vG vGEPHTgv/25QWRWlc482Ar4KhrCfi0CDT7NOgFzugkXV+ZVbINqP7YeHJmgErkRrYRxK fdBUz8fnvb3kV2Pb8yKEnK2aP2QcKuTJIxd4GeXMyVdhNuIP5LgF5X5uYLiw4FguhKt/ jCMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=JVy9rLJK1wH8GJo67NVVXAN3d7xcFte20Fp4Qnn85fo=; b=DKvI4tm0gDct/QdEYl5sMYScpnWDoVxm6PqHtBzAghrxadf35F163WFxQMtEJp3n2O oz/5AbR1Lqj+bjga+v9mebD3N8BQOWzX0r6wLgZTahzGaidFLFHpq9TFkjGnX24CTA1t 1tRBpcMaKOeMca/+TEG7if2GQ15DPZPAh09z+MVYKCJ8VcLY9pch53iJYSmCw7Bg3Ixy 0jSJINKeeoS98FlEaY91LOPY2eXynNTERAdN842gTrfHit426kid4c1j7iFFZLbbC3Cx sn2AD0s7LTJwNdV37pPgTWpsH6q8IlCzpn4VXyznjjn3zGZ/9EWcxWdBbIZcV5dmCfcH rmMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPiWS2MB; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go15si22245162plb.219.2019.01.09.00.46.46; Wed, 09 Jan 2019 00:46:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MPiWS2MB; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729962AbfAIIqq (ORCPT + 15 others); Wed, 9 Jan 2019 03:46:46 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38194 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729994AbfAIIqp (ORCPT ); Wed, 9 Jan 2019 03:46:45 -0500 Received: by mail-wm1-f67.google.com with SMTP id m22so7249712wml.3 for ; Wed, 09 Jan 2019 00:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JVy9rLJK1wH8GJo67NVVXAN3d7xcFte20Fp4Qnn85fo=; b=MPiWS2MBeHIODDV+uJsBa3wrD2tUVziY2qsazfgicITBD9HIAvvn1jfwHgpM92yl2R 5Kvm66vuGRNm03lPXXvs1U7f+pqt0T9SG0w7QSX5XrkKt/fi5zCo2hZRs7O8R04V38TB cJhMqeulyFiRL4QuPfy7aC2T3Q6P2IvEcXKq0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JVy9rLJK1wH8GJo67NVVXAN3d7xcFte20Fp4Qnn85fo=; b=fASsN9j9AObjRyiVv2bNwjoqLfCsk7/yQgT4fTEpzoerj9mL7+gn4hB5yEtOAmm95x eB0L6PfUvTm+51M+Pureo6WdkV6O0Y6wcA28XeTMWH1xA68IvXvEp7a48SvUrx5LqfFF 1PCj/eOc0Uj05rIaGkQ4XJZEdKjriCVX45TaoYIey3FrthROnhuepUZZ/2wkAYrp3671 PnbAE5xMzd0CjwKQAyXZPiv6JH9BQroFKHITxMOEe1AwH+USoHDL4HVYRwfR1gPZcVUE zt7QsZBHbaPafXacLuaMzI8gs2queIMg9hKt4AWS4SRSGiFtELKnBZK2ZXA4OLvnLu4+ /mAw== X-Gm-Message-State: AJcUukdkpcXs07JrUaTyizZrvH0Teg8en3PxMyEQmkSmGbgDdEafAH76 KztXJpBWibbmsxpYlyd/mLQv/A== X-Received: by 2002:a1c:8c13:: with SMTP id o19mr4432885wmd.56.1547023602995; Wed, 09 Jan 2019 00:46:42 -0800 (PST) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id n82sm12776455wma.42.2019.01.09.00.46.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 00:46:42 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans Verkuil , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Tomasz Figa , Alexandre Courbot , Malathi Gottam , Stanimir Varbanov Subject: [PATCH 3/4] venus: core: correct frequency table for sdm845 Date: Wed, 9 Jan 2019 10:46:15 +0200 Message-Id: <20190109084616.17162-4-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190109084616.17162-1-stanimir.varbanov@linaro.org> References: <20190109084616.17162-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This corrects clock frequency table rates to be in sync with video clock controller frequency table. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index d95185ea32c3..739366744e0f 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -465,10 +465,12 @@ static const struct venus_resources msm8996_res = { }; static const struct freq_tbl sdm845_freq_table[] = { - { 1944000, 380000000 }, /* 4k UHD @ 60 */ - { 972000, 320000000 }, /* 4k UHD @ 30 */ - { 489600, 200000000 }, /* 1080p @ 60 */ - { 244800, 100000000 }, /* 1080p @ 30 */ + { 3110400, 533000000 }, /* 4096x2160@90 */ + { 2073600, 444000000 }, /* 4096x2160@60 */ + { 1944000, 404000000 }, /* 3840x2160@60 */ + { 972000, 330000000 }, /* 3840x2160@30 */ + { 489600, 200000000 }, /* 1920x1080@60 */ + { 244800, 100000000 }, /* 1920x1080@30 */ }; static const struct venus_resources sdm845_res = {