From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B19E9C2BA83 for ; Thu, 13 Feb 2020 08:25:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 824FF20873 for ; Thu, 13 Feb 2020 08:25:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="WSPSjPgA"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="mpc0JeM0" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 824FF20873 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vHDnzYnV1DwoC2rmEpmH465uPbHtuGmNu1cxSWE73ZA=; b=WSPSjPgA4l61nL tt3T3z01j1cXC6mcosj2eT7U+9WiISgDM9vH8V55DT1M/XK/J2uRBfZR3hMwmsmh+6RNqAOp/Nn1C shI6agILS4eKCVp6pGD8eFzAmSGLZwuzWO3uHGkmhKUZvAE2HnYFiO0a5bBV/+1E42mpZ5aGrzTtJ V/CEPnN9WwTE9kK9X7GO5Zqh2+DmtqK8qXl4Ms94znSAD7+4WRnbt8JVgHCaSQksqRBZfZg7gGIwc zJQhwBqfalwj/aiMePRN3L7Ds2UgeMC+bfik5hO4/xVO4TqGWDOg0Cx5NOMY5w2VzMcLU5FnvsEnn N108vaW9pMRenczZ4ugw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j29oQ-0002wq-Qb; Thu, 13 Feb 2020 08:25:30 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j29o7-0002Wx-CL for linux-mediatek@lists.infradead.org; Thu, 13 Feb 2020 08:25:26 +0000 Received: by mail-qk1-x741.google.com with SMTP id w25so4894655qki.3 for ; Thu, 13 Feb 2020 00:25:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OK0wietKvUZvwARAxmAdcE7mqGpP2688mkrFendJI3c=; b=mpc0JeM0+dOlAf+F/vCTYHoR+PUYA7VQeKJNhPzJStLAgkkRV03DFL99y9egz3e68P lPCoDzkpJvdoyiVMw6PB/Dlh0Xa4d+vZUYPZE19Q2YMPwFx6GqbOhqUZsM2yIvmMYB4C 9GRN7zW46xO+BvOUOoI84rF0S+e8+9ZGjjrVM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OK0wietKvUZvwARAxmAdcE7mqGpP2688mkrFendJI3c=; b=t9NPddH2sVH7VwVca4pkN5c6RWHUeFxL+MJPCdd7JQc+F90Cg5EAAbimY5ZCRKjIDM NwAi0prB0O3U4xxkiqNNVnJ4/bcZuovzr/qvZXZ832v/bNSmxAtUiSiVhVdemP32zkSC SWGHo/FFZ4upMNvDUrWgGatclJr9E8Da3qrV6X5hcdxISliw1ULj4XlDq2h6V1bdxH9+ 7rsrcTDxthGzH2gYtPE7SCmHagbau9UgpdnNIFfW74YUEUu+s98WldE4ejWfn8HLICKA 1R+nW3jpsAPBoIjwQwZNHWm3BvwxWc7AlwUbNbHXXU26WtIo+qVRVmdgxF1M9ryHZmpO VVGg== X-Gm-Message-State: APjAAAWU/Si/KEgshpi8ZnSM3mVXHTdjYbJUNeSV2GeaR10/5h85WZTW t7DpUnbI1xDChVKHjkEUDhfo5o9jYf0/JKTXFYVJvA== X-Google-Smtp-Source: APXvYqz2tNr3c3qIVwpXL0Kiwvf19NSiJuWwJpM0OOB3yzEmPzpmBZQIrLG8zON5DYMYRdtNFRQMdyhNLsgoU/FJ9vY= X-Received: by 2002:a37:6595:: with SMTP id z143mr11724807qkb.457.1581582310226; Thu, 13 Feb 2020 00:25:10 -0800 (PST) MIME-Version: 1.0 References: <20200207052627.130118-1-drinkcat@chromium.org> <20200207052627.130118-8-drinkcat@chromium.org> In-Reply-To: From: Nicolas Boichat Date: Thu, 13 Feb 2020 16:24:59 +0800 Message-ID: Subject: Re: [PATCH v4 7/7] RFC: drm/panfrost: devfreq: Add support for 2 regulators To: Rob Herring X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200213_002511_452294_102D3F70 X-CRM114-Status: GOOD ( 14.75 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Devicetree List , Ulf Hansson , Tomeu Vizoso , David Airlie , lkml , Liam Girdwood , dri-devel , Steven Price , Stephen Boyd , Viresh Kumar , Mark Brown , "moderated list:ARM/Mediatek SoC support" , Alyssa Rosenzweig , Daniel Vetter , Hsin-Yi Wang , Matthias Brugger , linux-arm Mailing List Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Thu, Feb 13, 2020 at 3:57 PM Nicolas Boichat wrote: > > > [snip] > > > But then there's a slight problem: panfrost_devfreq uses a bunch of > > > clk_get_rate calls, and the clock PLLs (at least on MTK platform) are > > > never fully precise, so we get back 299999955 for 300 Mhz and > > > 799999878 for 800 Mhz. That means that the kernel is unable to keep > > > devfreq stats as neither of these values are in the table: > > > [ 4802.470952] devfreq devfreq1: Couldn't update frequency transition > > > information. > > > The kbase driver fixes this by remembering the last set frequency, and > > > reporting that to devfreq. Should we do that as well or is there a > > > better fix? This one is my bad, I was missing this patch in my forklift to 4.19: 22bd4df9dadf46f drm/panfrost: devfreq: Round frequencies to OPPs (should really try to boot that board on linux-next, but that's for another time) _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek