Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1473192ybg; Tue, 2 Jun 2020 10:54:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3gdG3CvnwU3K9QdM7cWXbxpyE8P9I8DIYjqHUPKnqNsoV6wGT6FNBmbUPt7NZT+/I6Nu2 X-Received: by 2002:aa7:d05a:: with SMTP id n26mr28866597edo.173.1591120489042; Tue, 02 Jun 2020 10:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591120489; cv=none; d=google.com; s=arc-20160816; b=EPODXX0tck9/uPC6thrYBMqWVwjllSotnL+09Ljv3vnYHra7BWwv+SNW7i5C5+3Qif ZM+UoKBzaOI6kMuNWOiur0Wmv+A9bOhFEfcYJcr9QNl+7i0YlyIz3ML6mS1Z6MHXE2Eq LHHfH/9Psx/DlpivaxemPKeOxh8LzTD2l/hV5+Q8Oa9qojjnoCuJcr3rmLcR3Lg9hab/ EgjsBiw7PrQyAPdVf8MarFMBiPAJdfGlSpV4Nn/jm06OjXC4YNn8Ae1NU7fsAExEK9PZ UlyXH3WnzcarZQFzpHBjKvHLqaUdDRK9rVxnQjtea+GBdJRVc4JMW4mp2iqmp2c06lIM PkrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HZgulanud4yuYVbSEY2anFOdC3z8THltqCrqmdc0mYo=; b=mlLBMdeKPKieIItOUMhHRa9LIehCsFlY0ZHLiIGPKVeTSxSQ+Mk+1KxjiTaAhQx+je HTmTKumT4dx41PIW57AdTTmB6ctpSegIDsYjjPofgY1qidJvcthqHIeTuVTWkmP8wUPz VpU1D6/eUvpl3CWyAUufJkz3UFNiL2QqaxeU7RdaS5pj7sldLCLC5cSMtwrXdQTytRc4 jnflaTlju3yh+2vIG7L5ZEl+BFhJzdF3KU6uaP4dnKUaVIlKIN4zMZNMQJKt8anXvxAG i8AHb/9Wr1Fjrk+lyICmmkRVpxT28bEt6FjHDlv3gJG6I3+U59MYV9Jt2Jf9ErBr9I90 HM2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=dO9rC6U3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si1849619edn.589.2020.06.02.10.54.26; Tue, 02 Jun 2020 10:54:49 -0700 (PDT) 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=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=dO9rC6U3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727784AbgFBRwf (ORCPT + 99 others); Tue, 2 Jun 2020 13:52:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbgFBRwe (ORCPT ); Tue, 2 Jun 2020 13:52:34 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD53C05BD1E for ; Tue, 2 Jun 2020 10:52:34 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id s1so13689357ljo.0 for ; Tue, 02 Jun 2020 10:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anholt-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HZgulanud4yuYVbSEY2anFOdC3z8THltqCrqmdc0mYo=; b=dO9rC6U35ZJVsEEqeyiT2wqhpSYN9ZFHMHcUxncLMNKJV//15BuMSc2wnN6tjCAEjn TGbDcIgy4BS7Dl6Cg5LOM9okR/1FIFpXnuFgZF/LIexlxoI3jpg6+QOS+Cg58yW6wyS0 WKG1Dr+gmDrfMfj0ZKPlm+bWhBzIbkCDIV20Wt9UtHpsMOJ02zBPUAQKeii04sISDLAH OFTa8PehKlXok+f1TsVFQUCaXwQrxXJ1Fs8Rlms6BmuU2aMwAmixXfMXCSvFxUbiHbCB XNxz8DVWLPEzDOlU65p4syvY0bUbOKKy2msR0RdtwqXQE4eqWdmg7pTz1Q11FqLhyGlY +y/g== 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=HZgulanud4yuYVbSEY2anFOdC3z8THltqCrqmdc0mYo=; b=BRAa3Pk6UWD30QzKB302NuZn8MJqlyUwbf0oa95Zy8ywEa4/lXIipo+S5b+3xLtwfo VaEL8EMFkVdMSFZL/Np7kI4Or6ad3Tyhk4KpnkGfs5am6Y/+cYlUsqjQSjY3YEfn4Nl2 gyLRxrpHeOtda/Yhs5wYnSy6La3z4Zsz5I8tbcHlF9tTMLebCHkLUuyW9bE9RDSBtbUE TMzesZ/RxxrP2f/2Ljz6j39jc9Zrzty4NjyoRusVw6michUEWAHV/INAnnHFM8mJpC0W gTNuCL44MV0i3jad/Gant0DuYUmExiJ6EG4EXJIWlmuMZrePd9Jsk2KXM0odkdRUX3N/ /IAw== X-Gm-Message-State: AOAM531IzRnKLIbfAywThEg2gKxP7ICTqT/QBLO4t13EEGH1rugx1bXu sHoMwFSXRRm3jVNuNbV3mHRuxoOn9BPdVvB/Gj/Lkg== X-Received: by 2002:a2e:8ed3:: with SMTP id e19mr135042ljl.367.1591120352694; Tue, 02 Jun 2020 10:52:32 -0700 (PDT) MIME-Version: 1.0 References: <1aaadf9a5176591c891622cb00b0c50f42e569dc.1590594512.git-series.maxime@cerno.tech> <20200602125227.fe3mt5jnqd6u4pft@gilmour> In-Reply-To: <20200602125227.fe3mt5jnqd6u4pft@gilmour> From: Eric Anholt Date: Tue, 2 Jun 2020 10:52:21 -0700 Message-ID: Subject: Re: [PATCH v3 015/105] drm/vc4: hvs: Boost the core clock during modeset To: Maxime Ripard Cc: Nicolas Saenz Julienne , DRI Development , linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Dave Stevenson , Tim Gover , Phil Elwell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 2, 2020 at 5:52 AM Maxime Ripard wrote: > > Hi Eric, > > On Wed, May 27, 2020 at 09:33:44AM -0700, Eric Anholt wrote: > > On Wed, May 27, 2020 at 8:49 AM Maxime Ripard wrote: > > > > > > In order to prevent timeouts and stalls in the pipeline, the core clock > > > needs to be maxed at 500MHz during a modeset on the BCM2711. > > > > Like, the whole system's core clock? > > Yep, unfortunately... > > > How is it reasonable for some device driver to crank the system's core > > clock up and back down to some fixed-in-the-driver frequency? Sounds > > like you need some sort of opp thing here. > > That frequency is the minimum rate of that clock. However, since other > devices have similar requirements (unicam in particular) with different > minimum requirements, we will switch to setting a minimum rate instead > of enforcing a particular rate, so that patch would be essentially > s/clk_set_rate/clk_set_min_rate/. clk_set_min_rate makes a lot more sense to me. r-b with that obvious change. Thanks!