Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp144575pxu; Thu, 7 Jan 2021 00:36:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+KYZvIEAgnrXCwMJ43voXppcKNxoYNOwsaJ0aX2Otmu+EnszneQi58hUFAGwOiQ92Iqsk X-Received: by 2002:a17:906:8301:: with SMTP id j1mr5519919ejx.397.1610008560364; Thu, 07 Jan 2021 00:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610008560; cv=none; d=google.com; s=arc-20160816; b=J9pejqCmtakUkLGGXvYJxkLvNBih0oGJCcYooRXu8fYkFGUQIuPfCX66adZbnzP40s f5CsfSBLOGDhTm9HKXu2l+lCBb8MqcTXbxDJgLirmtiN4+RKYP+XyGcm67HO3BUNGYvs DLSnqrj8+eusTr0S8zPL47xiIf+Z3xdvynD5n8MuTx+QcT6Bv+/OQTgG7ytXv9Y8FdMy qmlOLBitw+fmr4sh3U1iOaek/+GmJhWnwZKsaV+5USX+cFdV70zcSMlyysi1quFmMmuA Gg5r4iMKDaPWwZTF6Q9oiqVVZg7dszrFDzRH0g/RD6uTMmfaK9zig5A8TZ6KkJrhUX5B s64Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gQKTD2k5jTC/ak1qbDKkDW6rySQgxZsQXv9EJxtEo2A=; b=n0JVCwgzzlGGo3WxraRPD8pAwPCaHuK77FjGe/P9zu1imBZ40k2m/25Ly4RhKSDMkO LWllIo0YMP77INglWAjsZ05mkXP8cu7BsJ+JYmGFNG51Pslpx6FolWnt/KMxUWDcIJqh H5h7IJDIhpZio2dyZFG4Z/JFmP9WW7vIzbBLauNpdT/4r85C+TJS41xR/igpGdtb1lQG YgBEbb284RVRQzn9pv8ln8JQHLn4DC+2SK13tGfkqRpF0Wuws8m8x4N4iwXbfPkuZy8G DZLOZC39hDgr1fIqeHsludgEQEg4E2yFUKGE+eupIjvQbe4KCksszd4mV3CJ9mUWcoKy L/Iw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si2094833ejc.189.2021.01.07.00.35.37; Thu, 07 Jan 2021 00:36:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725983AbhAGIci (ORCPT + 99 others); Thu, 7 Jan 2021 03:32:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbhAGIch (ORCPT ); Thu, 7 Jan 2021 03:32:37 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD90C0612F4 for ; Thu, 7 Jan 2021 00:31:57 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tomeu) with ESMTPSA id 8D1F61F462FA Subject: Re: [PATCH v7 3/4] drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 To: Nicolas Boichat , Rob Herring , Steven Price , Alyssa Rosenzweig Cc: hoegsberg@chromium.org, fshao@chromium.org, hsinyi@chromium.org, boris.brezillon@collabora.com, Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20210107082653.3519337-1-drinkcat@chromium.org> <20210107162632.v7.3.I3af068abe30c9c85cabc4486385c52e56527a509@changeid> From: Tomeu Vizoso Message-ID: Date: Thu, 7 Jan 2021 09:31:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20210107162632.v7.3.I3af068abe30c9c85cabc4486385c52e56527a509@changeid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/7/21 9:26 AM, Nicolas Boichat wrote: > GPUs with more than a single regulator (e.g. G72 on MT8183) will > require platform-specific handling, disable devfreq for now. > > Signed-off-by: Nicolas Boichat > --- > > Changes in v7: > - Fix GPU ID in commit message > > Changes in v6: > - New change > > drivers/gpu/drm/panfrost/panfrost_devfreq.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c > index f44d28fad085..1f49043aae73 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c > +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c > @@ -92,6 +92,15 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev) > struct thermal_cooling_device *cooling; > struct panfrost_devfreq *pfdevfreq = &pfdev->pfdevfreq; > > + if (pfdev->comp->num_supplies > 1) { > + /* > + * GPUs with more than 1 supply require platform-specific handling: > + * continue without devfreq > + */ > + DRM_DEV_ERROR(dev, "More than 1 supply is not supported yet\n"); Should this be info instead? Regards, Tomeu > + return 0; > + } > + > opp_table = dev_pm_opp_set_regulators(dev, pfdev->comp->supply_names, > pfdev->comp->num_supplies); > if (IS_ERR(opp_table)) { >