Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp419812pxj; Thu, 13 May 2021 07:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypTO3wk7p4yKt3CHs4x4mVD5T0/23eKq+4x7dUmAhmmgT36514iyscED1W+6/TEjksHOy/ X-Received: by 2002:a17:906:4a81:: with SMTP id x1mr5899196eju.508.1620917967045; Thu, 13 May 2021 07:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620917967; cv=none; d=google.com; s=arc-20160816; b=V3tMB9zXMr3zIVf5CSZaGBsbWLqUZVa/rnVp+9JOEB3oRdkwdLAsQ+8wdbiwJfduYh eU+rs4EE/gcrIHl41hFkq2xKeg3D+fh2rgiLto8fN5r9tKvnZF2z5paOLvPgwuasEbCW wUM58A4/ko+5QOFySpQtK2yA8eF+346nRrn14ZRRn53g6p/LzpC9g9NnhaYuMvdDKO6h EJ/aoJrJrxzPLRreG2aQMAqAItgA2hYQ6NEKY8eVAmJavqWDlGL24akPMPdLZSoYOHEp 4MZKGpWSeji45UNZz+3gpisVT+3/u+g/F8aMsMJK/xA0RhGGZXtjJnPtBn9x1ctGGRVR DIpA== 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=/8vd2SAwTdt88nX11VE63bL19uYaNF7maDv4yIT9Ok4=; b=XjeoE6qgeNIZIDUxoefIvJUgFVjcUDlLH2H4oMh5b5rXR9KWtif5Ja0UuDhzu84UDJ cylXDLGtn6I16xg4giWmbIUbF1njngnwDhSPr5Sev3YxZRG09jm6QuS2x5kIWcp2EDyS wnXW6Q9oY7YfAK5UG8P4SN+myic6Vd9lXQLm8n0XriA0602OOHk5mxC4w3rMDnyTZ2ag QT+Wo4Hdz0OjlfgIZ1YjVFe9atktXU9dUE8JpZltgFqvp4ZxNbclC2V6vIt00OYDsrjw 6saKwWEKv5JoGG9wcrFRIsQuP+YFtHDXQkcepM4Wv9VTXIWQ7hkyflwYhZk8HILJ4T4x hwYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=OdlYf21e; 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 cb3si3100867edb.209.2021.05.13.07.59.02; Thu, 13 May 2021 07:59:27 -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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=OdlYf21e; 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 S234716AbhEMO5G (ORCPT + 99 others); Thu, 13 May 2021 10:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234709AbhEMO4a (ORCPT ); Thu, 13 May 2021 10:56:30 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDFA2C061760 for ; Thu, 13 May 2021 07:55:19 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id l1so4267250ejb.6 for ; Thu, 13 May 2021 07:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/8vd2SAwTdt88nX11VE63bL19uYaNF7maDv4yIT9Ok4=; b=OdlYf21e3GAV7+fJtPuYd/MZ2x4Q9Ktm+p6MDIKe45eorVK0EItJBVTUhfRpEn1FKy wzScKBxoIgLTaEF0kfXWfKAsWcuCcWa3kZRhrmZnRtT3Y8Kyv3BIut7KInyGQK/Q7+82 S+MS6SQbce1OEAMhTpVs41rMza/m9fge+6nrVnaUWhQe7KfXS7z/YvfOYIzMysYwE9CT CqdFxylTupNIeHkP1Nqfg4LyMqQGMfcdVkBmNLsTXbZlq6CrAH7kDom2FjfWzECS5b0S mZvicBNTg4i76IA8Udo6EWsXsKvSB93DSIKbcwksVrNZgJEzPIXioVdLDVMMsyH/nVJw M1Qg== 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=/8vd2SAwTdt88nX11VE63bL19uYaNF7maDv4yIT9Ok4=; b=QWQ8+3RSXpHU/9v3XHHtv55lxG3RNPs0GBq2F67dZNXd1fJvzhSIR4Dqr5bWjXIjNj RaIT3U/+Hk0N5jQTYBj57oR2aSQuUxUNbCaZFwr4Peiu3Yd0nAY0LNx4ica51FejJR68 UsapFmRYu2AdGveowVQEMSAk2fnBKiu3eP7IAqJlHhkumTQ+UrkApSWY+AzSsHazG8Fi zuzryFnpQeFdd4qqPQQGpXeEU8MOKs4wE+vBkgsIsRMQz/U53XzGw8xLBMnQYF6aDHeU JTkm3MblO1PCnrXWtu5fvMxZS4vXjoZv0uxnTNx51fTGBbsOJLlQnHLKEF0MssDrshuH fG+w== X-Gm-Message-State: AOAM533c5UpPMJYZqHWZReqg4k0KTWJLErUPFSilTiVT1Xh//K0x2JnN DvGb5z9mGbg9fIsAh+OGsCWLnkLCGHPzA3seFrrsqg== X-Received: by 2002:a17:906:13db:: with SMTP id g27mr468360ejc.88.1620917718561; Thu, 13 May 2021 07:55:18 -0700 (PDT) MIME-Version: 1.0 References: <20210421052855.1279713-1-drinkcat@chromium.org> In-Reply-To: From: Ezequiel Garcia Date: Thu, 13 May 2021 11:55:06 -0300 Message-ID: Subject: Re: [PATCH v13 0/4] drm/panfrost: Add support for mt8183 GPU To: Neil Armstrong Cc: Nicolas Boichat , Rob Herring , Steven Price , Alyssa Rosenzweig , devicetree , Tomeu Vizoso , fshao@chromium.org, David Airlie , Linux Kernel Mailing List , Rob Herring , Boris Brezillon , "moderated list:ARM/Mediatek SoC support" , dri-devel , hsinyi@chromium.org, Matthias Brugger , hoegsberg@chromium.org, linux-arm-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, On Mon, 26 Apr 2021 at 06:59, Neil Armstrong wrote: > > Hi, > > On 21/04/2021 07:28, Nicolas Boichat wrote: > > Hi! > > > > This is just a rebase of the v11, untested (but it seems like > > Neil Armstrong recently tested it), with small changes in > > binding and dts. v11 cover follows: > > > > Follow-up on the v5 [1], things have gotten significantly > > better in the last year, thanks to the efforts on Bifrost > > support by the Collabora team (and probably others I'm not > > aware of). > > > > I've been testing this series on a MT8183/kukui device, with a > > chromeos-5.10 kernel [2], and got basic Chromium OS UI up with > > mesa 20.3.2 (lots of artifacts though). > > > > devfreq is currently not supported, as we'll need: > > - Clock core support for switching the GPU core clock (see 2/4). > > - Platform-specific handling of the 2-regulator (see 3/4). > > > > Since the latter is easy to detect, patch 3/4 just disables > > devfreq if the more than one regulator is specified in the > > compatible matching table. > > > > [1] https://patchwork.kernel.org/project/linux-mediatek/cover/20200306041345.259332-1-drinkcat@chromium.org/ > > [2] https://crrev.com/c/2608070 > > > > Changes in v13: > > - devfreq: Fix conflict resolution mistake when rebasing, didn't > > even compile. Oops. > > > > Changes in v12: > > - binding: Fix min/maxItems logic (Rob Herring) > > - Add gpu node to mt8183-pumpkin.dts as well (Neil Armstrong). > > > > Changes in v11: > > - binding: power-domain-names not power-domainS-names > > - mt8183*.dts: remove incorrect supply-names > > > > Changes in v10: > > - Fix the binding to make sure sram-supply property can be provided. > > > > Changes in v9: > > - Explain why devfreq needs to be disabled for GPUs with >1 > > regulators. > > > > Changes in v8: > > - Use DRM_DEV_INFO instead of ERROR > > > > Changes in v7: > > - Fix GPU ID in commit message > > - Fix GPU ID in commit message > > > > Changes in v6: > > - Rebased, actually tested with recent mesa driver. > > - Add gpu regulators to kukui dtsi as well. > > - Power domains are now attached to spm, not scpsys > > - Drop R-B. > > - devfreq: New change > > - Context conflicts, reflow the code. > > - Use ARRAY_SIZE for power domains too. > > > > Changes in v5: > > - Rename "2d" power domain to "core2" > > - Rename "2d" power domain to "core2" (keep R-B again). > > - Change power domain name from 2d to core2. > > > > Changes in v4: > > - Add power-domain-names description > > (kept Alyssa's reviewed-by as the change is minor) > > - Add power-domain-names to describe the 3 domains. > > (kept Alyssa's reviewed-by as the change is minor) > > - Add power domain names. > > > > Changes in v3: > > - Match mt8183-mali instead of bifrost, as we require special > > handling for the 2 regulators and 3 power domains. > > > > Changes in v2: > > - Use sram instead of mali_sram as SRAM supply name. > > - Rename mali@ to gpu@. > > > > Nicolas Boichat (4): > > dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 > > arm64: dts: mt8183: Add node for the Mali GPU > > drm/panfrost: devfreq: Disable devfreq when num_supplies > 1 > > drm/panfrost: Add mt8183-mali compatible string > > > > .../bindings/gpu/arm,mali-bifrost.yaml | 30 ++++- > > arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 5 + > > .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 5 + > > .../boot/dts/mediatek/mt8183-pumpkin.dts | 5 + > > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 105 ++++++++++++++++++ > > drivers/gpu/drm/panfrost/panfrost_devfreq.c | 9 ++ > > drivers/gpu/drm/panfrost/panfrost_drv.c | 10 ++ > > 7 files changed, 168 insertions(+), 1 deletion(-) > > > > Seems this version is ready to be applied if we get a review on the DT ? > > Mathias ? could you have a look ? > Given Rob has Acked the DT bindings, I think it's OK to apply patches 1, 3 and 4 via drm-misc, letting Mediatek people sort out the DT changes. My two unsolicited cents :-) Ezequiel