Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14204505pxu; Mon, 4 Jan 2021 16:13:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlzLldnddvDsZluwY9DOx1stK/Ts5eBnut+Ku7UUg/2qP+3l7qCSes9ZIoQdEQ7dhNc48Q X-Received: by 2002:a17:906:b306:: with SMTP id n6mr67776140ejz.473.1609805638192; Mon, 04 Jan 2021 16:13:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609805638; cv=none; d=google.com; s=arc-20160816; b=UxUe20BexL6+p3LCBB1kEqSonkTsuSDJwkXsLpETKXgwSAkLpPdWI9n4qhviGSn2Df LYT37kY+XE/7iZ23hgfeVyvUbP1lTCc3Nl61cDwFljbWo/xVn82VADcdh4GzmytkFycC M6+g3JQKUVHJYk3Ik6n/zYGCMhVUzp/gSuIBY2M7JQy2xAjoy6/Ec7Ux8XfBXiF2ORtD 7danOA8Caa2t3V26dGrRkJd2HNNIbduVkMODKBU2+LVrfgU5MkTvuf+xRzcCZnaH5BT5 h1kU76YheILSmZr5EusMYKMkZIA8DowzKJWKNKHYMhEA1PDencieDQ2vVjJ+2wpwFhdi iXqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OIB6bT25HUqJVnTMzY287Rsm2RovoewYK6tMaHbCshA=; b=zCA/r0N0DgFepQ29HZmNa3PNFlGtUCONGghk6MrZsp8B4DynMr9gH1fzcdghQHxEBn g/wfA+bLOKUI5w/sHybIEpvMPoWL0BYHXlRkAZfxg87X5seuXFnqP0eKznz1oRbd1J7j jRGUC01uq6VB24p0QfoGx1p1yeZzuI7CU5P7+v9qR7x/UUZY2nKwVnc5G5rI8wYPhvun Yo1WAODUTiMVRUmqcjWQBqlnSiHnsVp0/7AUn41lPJlzsO33wYqp4ymgCVjS0Qh2ftbx UEuDz4fcBVeNQmL8TekfyUgTlZcKSzOBi82xydZAfmqEmo9PzMuY42dE/R5b97b7n/r9 PQvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gc4pGuHX; 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 12si26174701edw.403.2021.01.04.16.13.35; Mon, 04 Jan 2021 16:13:58 -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=gc4pGuHX; 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 S1727895AbhAEAMm (ORCPT + 99 others); Mon, 4 Jan 2021 19:12:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727408AbhAEAMm (ORCPT ); Mon, 4 Jan 2021 19:12:42 -0500 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D558C0617A0 for ; Mon, 4 Jan 2021 16:11:45 -0800 (PST) Received: by mail-pf1-x42a.google.com with SMTP id h186so17377482pfe.0 for ; Mon, 04 Jan 2021 16:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OIB6bT25HUqJVnTMzY287Rsm2RovoewYK6tMaHbCshA=; b=gc4pGuHXHF8BYV9xB2luMT/mFtJhijVhaJHksLzP4ALZI4HEIjhIVSJfe/byXS8kZk IDmoGY1YlDdO744rrChNfBZVA9AO+k0ZArjBEAPyA2/J5PbVhaxh0gIUAuvnE8uDadpg th9TfxhxM4rE5Ts7j12KEt0CacR1ihte7rGnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OIB6bT25HUqJVnTMzY287Rsm2RovoewYK6tMaHbCshA=; b=p5lDkg5RUmSs59uiJZAPGpup3yJaJxEQWzxB6AS2L0u8X8elfl/b91W629mGdwUqUi al5Zh2FYTXNRXjMohYtP87FyBhcGb/8GhYjw7lS+NB2kG5Pnm5BAA5n+rikfpMAjS4Ov 7CK0XB1syTa6ZR2fYOFkOtHqvA9bcoaSEitVAHJp4lfmZSHa+cXcBqahdrMZ/cDrcRit G2i2aiw9Y1LD7iW5sE2tmNnwuxNjcXlmO5lPkWavRhL8cPsr/pjMOBqSxmKiVmagoLcK 0RbuXKikv1bNmDTdFhE3JxdLX3d6/Yu3SDcN0YOKhBjfKck1D+S4hHrXnEo/yDVGqo3v istQ== X-Gm-Message-State: AOAM532Q+0Nudg69CyZ3oMDy51WFRHnDBLmXHOwRw5D9qy0qkswowzZ5 Fs+QWWgPJAnbevdldiQmuKWu+Q== X-Received: by 2002:a63:af50:: with SMTP id s16mr74141717pgo.448.1609805505588; Mon, 04 Jan 2021 16:11:45 -0800 (PST) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:7220:84ff:fe09:41dc]) by smtp.gmail.com with ESMTPSA id bf3sm465620pjb.45.2021.01.04.16.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jan 2021 16:11:45 -0800 (PST) From: Nicolas Boichat To: Rob Herring , Steven Price , Alyssa Rosenzweig Cc: hsinyi@chromium.org, hoegsberg@chromium.org, fshao@chromium.org, boris.brezillon@collabora.com, Nicolas Boichat , Daniel Vetter , David Airlie , Tomeu Vizoso , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 3/4] drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 Date: Tue, 5 Jan 2021 08:11:18 +0800 Message-Id: <20210105081111.v6.3.I3af068abe30c9c85cabc4486385c52e56527a509@changeid> X-Mailer: git-send-email 2.29.2.729.g45daf8777d-goog In-Reply-To: <20210105001119.2129559-1-drinkcat@chromium.org> References: <20210105001119.2129559-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org GPUs with more than a single regulator (e.g. G-57 on MT8183) will require platform-specific handling, disable devfreq for now. Signed-off-by: Nicolas Boichat --- 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"); + return 0; + } + opp_table = dev_pm_opp_set_regulators(dev, pfdev->comp->supply_names, pfdev->comp->num_supplies); if (IS_ERR(opp_table)) { -- 2.29.2.729.g45daf8777d-goog