Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp151833pxu; Thu, 7 Jan 2021 00:52:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJysMFxCYG6N34k3UCFKIZ4uBmck4/dn5hBOiyDryL9Sif2ALjlJCmgQ31PUnRpAJdlxtsAl X-Received: by 2002:a17:906:74e:: with SMTP id z14mr5380847ejb.362.1610009525243; Thu, 07 Jan 2021 00:52:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610009525; cv=none; d=google.com; s=arc-20160816; b=bC7Jvg4Kmhob6Cbcr8gBGdHbfGpyQHYiasqkPuAbVMEnKVpf6TaYMokethg+jsA7oS NKhLwkOVTvrHOuUer9w13dYYMPEW98DeEZ5p9j2o0fywWH3BhXp7H3rI2a1dRixVEv1b ClDpZasP3xJs+tx4tF0286Y4rV2VqWqREIZ/M2RW00fPnxlMF3H06ZXD/aM2CBE8Lle5 3fMQBcLuDU/3clAfsTV012V/2W7oo7Mkfdw8zi9kcejiEpsHYUrDpvqJnVhYVrCeWZnL 6A0FIGpGKgJx5wP+0cBctstv70THXq52r0nkZ0HHombZe6ZCzf3lIsIEJcMMn+SLY/zW YE7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=30GZdV6yoZTjN43UUf8O6lUN7KtKnrac+ulwk7uWls4=; b=XyromPZFj2CaWmJEduVD31M69MF92ycHHv5pK/DJpZ6lGwkwK/+IGMnG0ibqAEOC5f clmPczGoDVnCGlYiOxSqnUrDEIEZe+OjO1a++156tzawHcMUKOhK+Me0MUuETIdjATb7 604FxbCAZIwIRJkeDrvuCWlMcxlKy+OgIDRj871wRZ/RnvxX1jpIV6yYC2+pIBZNhvpF CSG6tjNgpagrrE/mSbTJT8FEQ3MFGPj1tLqaV9lJv2czavQ2IYepFVuDSNT9oRmmDZTm az5Ej50lh9/k9ve87gDcUxnEKLegk0bKOP6Q0brGYNIwUJaUxmyBkaIYb547g00DfBpt hdpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GiCjAe7f; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si1988290edy.561.2021.01.07.00.51.41; Thu, 07 Jan 2021 00:52:05 -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; dkim=pass header.i=@chromium.org header.s=google header.b=GiCjAe7f; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbhAGIud (ORCPT + 99 others); Thu, 7 Jan 2021 03:50:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbhAGIud (ORCPT ); Thu, 7 Jan 2021 03:50:33 -0500 Received: from mail-ua1-x931.google.com (mail-ua1-x931.google.com [IPv6:2607:f8b0:4864:20::931]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD03AC0612F4 for ; Thu, 7 Jan 2021 00:49:52 -0800 (PST) Received: by mail-ua1-x931.google.com with SMTP id y21so2026168uag.2 for ; Thu, 07 Jan 2021 00:49:52 -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=30GZdV6yoZTjN43UUf8O6lUN7KtKnrac+ulwk7uWls4=; b=GiCjAe7ft9jSLyjN1BGwf4PaudJDU7KZ42niY+wmkRHQVtqecDJaNwFCIUBe4R4rHt Vg3DtlmutWOSt87PgWrRapf9Le7H1YSmZinxozgcevt+7HEYJi14kAmRvWO2RBPMzRRW /EPVC7c5U/G6FJQt1X4rUwlgFrj/a9ffb96xE= 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=30GZdV6yoZTjN43UUf8O6lUN7KtKnrac+ulwk7uWls4=; b=oajEjp4WYwKzRI2Xu2JaSludemTEHcNV9V751hiKgyatkcqulj8xt7q+I9G2fm1JPI DiVasRgSnvIZAFkE5CeqionpNDc/ZPNfRJ+sBYWk8l4PYdjMliD/WK6d2bgxB3fX8SBT BBw6Dc9oxU3bpPNanHz7nkS2erE7AUWGaEQcqewbCpnU0n1RdgnBqOnFD/NqDjHk/uEu 5LFzqwyuL8l0ruPJK1VRNoxOGFNvG9SF5b6KARGknZnvvQNxhWBdKLVhVPszymhrhZKj 2/4mUqJoU8woPl5JMiB7nHaGfJlZ2JYea4nbOgksVFJpNS7KATdHATcYm8BmQQ7NtZXB 252Q== X-Gm-Message-State: AOAM531RkOLpAJiRwASG3Xj+e7C+Iq/r3ATFwHGWZGS1dfkSlfcqbLrK efZuYiN88erj5GCsLBbVtbM0Ko6CfBpRG+rOGl32yQ== X-Received: by 2002:ab0:3894:: with SMTP id z20mr6702320uav.82.1610009392004; Thu, 07 Jan 2021 00:49:52 -0800 (PST) MIME-Version: 1.0 References: <20210107082653.3519337-1-drinkcat@chromium.org> <20210107162632.v7.3.I3af068abe30c9c85cabc4486385c52e56527a509@changeid> In-Reply-To: From: Nicolas Boichat Date: Thu, 7 Jan 2021 16:49:41 +0800 Message-ID: Subject: Re: [PATCH v7 3/4] drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 To: Tomeu Vizoso Cc: Rob Herring , Steven Price , Alyssa Rosenzweig , Kristian Kristensen , Fei Shao , Hsin-Yi Wang , Boris Brezillon , Daniel Vetter , David Airlie , dri-devel , lkml Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > 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)) { > >