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: 10753643 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2169B13B4 for ; Wed, 9 Jan 2019 08:47:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1256528FB8 for ; Wed, 9 Jan 2019 08:47:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03D0A28FBE; Wed, 9 Jan 2019 08:47:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A81C128FB8 for ; Wed, 9 Jan 2019 08:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729826AbfAIIrA (ORCPT ); Wed, 9 Jan 2019 03:47:00 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:40616 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730006AbfAIIqo (ORCPT ); Wed, 9 Jan 2019 03:46:44 -0500 Received: by mail-wm1-f67.google.com with SMTP id f188so7190754wmf.5 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=l2TW6H5lSlN7ZtP0EjFJH22PUlUU1tV9ejmIJDu8qxXND0sjPEyo15C+b1DeqcFAQk ltq3na+JkK1jqB/iqY2wwQA7sGCgfZELxItywk4P2Qtg/rZLMkAHex2yz49HnGcQ8z/T jafpfnJyN1aIwi/jq9nNHfxFCseg7/EEF3K9vJ58VlYG6e4REnyWRu6BL5joCMEC6+i7 0zl5xGckPkrpj4OfXm3+rHaZINMnHKrv/73wkGc2MQeLWeZ4kJ8YbMkw3XYbc5oygKzk eg9pxUHVeCdR/QE7aLRkO9/CeJXGnlvsJ1+z/c3D0HpcbDlD22t2ihr+xjlf//ywED8z Y2Jw== X-Gm-Message-State: AJcUukfHrH973iZwKwQXVq5PXvu13X95nVTxuU0JzJO4hPfjYZSBJ+61 PfSYRi81Qwy7rJ/mhB2nUrb5iHPnOSs= X-Google-Smtp-Source: ALg8bN6MIuM7WcHY1reYDYS60QyEhkRMZpK/jQ1Ae7MSSl86lFtX8sBDN3qFYcjDEXcPbSIIbhc47A== 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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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 = {