Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp152782pxu; Thu, 7 Jan 2021 00:54:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvtrfJdVPzQ71lsX9pvhD0qyrIpfs9GqI13XHUEC+wE6pFSerL9sVZihWAgEPMhUUJ5gof X-Received: by 2002:a17:906:1a01:: with SMTP id i1mr5603698ejf.315.1610009646731; Thu, 07 Jan 2021 00:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610009646; cv=none; d=google.com; s=arc-20160816; b=NFom69ySxbLLsF8EKgtsvVffFXS9EihWfGJpuuaS9sQcpMP2XL5ouqusuliQ0A7IR7 ZycRhwYmDGeBInOZtJxDpUZRmlG5Be+hs4TMpCYYRXag3mpLAqjtI7SoqvbB7BCL2HFM avHUwR670b+KLwbsAmDWzNkYeOIHVNpO+RFydVUOMc0M0lW+1IBGb0rrwtnKWGcZLu0v O/JhztLbOwMJwQcigG/MvOipw2vfWtNe/PPkAJK0TRNy/RZk2hG8vEZHSesn0BZ4YfV6 RlIh4gnk6nDUdPf/PrLEV1KLojmibYiSECd0y+ZsttHkQy4d3OqaJaRHnDOzjgZS8D0z g0NA== 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=P2yBBgACzK5XB2MGLTTT7HScXcY6n2iAGhmjH/Jq9e4=; b=QquiiaNTAYCyg/FrgWLl99UJIBBvubaCMrgzjUoicbHkrh8jNO1PoaL4hsK9DmB3p1 DAmmrIx3S3apvtcdPlcZBpj+/cGNmGRQe+e4Md78SFBzVtownIxBhrneoq/QwUUw+DGL 8+JO/d2Wci7Sn8yAMAa4bicbHWQM2Iezy9kbe6fnIHYbNXt/Ycy1RppIonMKoIcabfZd X0Aetb2E24zYSY71iELIQuv6GZiJab0+JqNSQEIAZKcr+ZRgBcF2mXRV3pj6S6/egpv7 UOdQW6Krxkzt7Ecoi+vycr4JaC3sAqrdxG10YUkd/TOxoz3+vGEl3KmUyANi7fgZ/1CR +EXQ== 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 jg16si1924398ejc.580.2021.01.07.00.53.43; Thu, 07 Jan 2021 00:54:06 -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 S1726805AbhAGIwX (ORCPT + 99 others); Thu, 7 Jan 2021 03:52:23 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37486 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbhAGIwX (ORCPT ); Thu, 7 Jan 2021 03:52:23 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tomeu) with ESMTPSA id E026A1F462C2 Subject: Re: [PATCH v7 3/4] drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 To: Nicolas Boichat Cc: Rob Herring , Steven Price , Alyssa Rosenzweig , Kristian Kristensen , Fei Shao , Hsin-Yi Wang , Boris Brezillon , Daniel Vetter , David Airlie , dri-devel , lkml References: <20210107082653.3519337-1-drinkcat@chromium.org> <20210107162632.v7.3.I3af068abe30c9c85cabc4486385c52e56527a509@changeid> From: Tomeu Vizoso Message-ID: Date: Thu, 7 Jan 2021 09:51:38 +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: 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:49 AM, Nicolas Boichat wrote: > On Thu, Jan 7, 2021 at 4:31 PM Tomeu Vizoso wrote: >> >> 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? > > Sure, will fix in v8. Thanks. With that change, patches 3 and 4 are R-b. Thanks again! Tomeu >> >> 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)) { >>>