Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp730731ybl; Wed, 8 Jan 2020 05:01:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzoe0Jx6Tnb3Vsb53vM01/80bUyFKIQro9p6bvoTEm2DvTAMcYYfmwmYd+nC/R9WG/SEus9 X-Received: by 2002:aca:53c6:: with SMTP id h189mr2939810oib.11.1578488489282; Wed, 08 Jan 2020 05:01:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578488489; cv=none; d=google.com; s=arc-20160816; b=f/vWKm0r/62DPQNJ271cfs+tYs8iBg90dV7aqKFcYi3n8130z9Ct0luCIU0bhWxRFx yUAnDL/88jbGkPB8fnP4SC8JsOCa+uw7xWS/WifHmxL1W5wC75+PGwxA/0/omthJL0gp Snf7m5gwYRNJ6KEBD8+1t/jPt9An03aWUL8Jiq6jQ6jH7SkifWjKZ6bW2bYhPHZ7sEhA 1bO1AvUdgxO3J30aUitr8bS0yIM1t0MzwZ7xcmlTN8d/tIeutJqzxK2UIXqPokOqybUb nEpf+w5a5Aiq2jU/u3FSL5xg6N5WpiG4ofk4QIteW5Z8RBbJ/fPMs4t168nAq1tk9/i0 r7Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IZczy5VWeQPJhFW/MmTDMyCrMN3S0owhLGxs6e7Ccbc=; b=bUmLrHMnh8qjK+TnWO3++nMRxdNASRxVCRhgBqc3SlGu+Lv1fnrC6uQtnHl5Lr9fij ApI4SJ6oIj7j7XWMCA4e/dzvbNnusuWRlOFUiVk46lgobFkTNpFBqQ2UX1ji7qswFyx4 Jog7wfca1CghSrgcdC//ikH4qdodt/l7HWKfv5j0qAeSMQDuQv3Lf4e6NgIrQFDhf5eO rCwgiU5eHO7/aESUblovWpeswoa6cBQonN5w8hlqJUcMXENuHCPDx/efXFhxBq+enlN5 PC2jlIHSSyG7KSR2KXnhcT9JSJgDiN/zeVKPI9BIwsAfb5ktNqwtZ52ssOySpx6dHi+a peSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id o16si1771543otp.289.2020.01.08.05.01.14; Wed, 08 Jan 2020 05:01:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728426AbgAHM4x (ORCPT + 99 others); Wed, 8 Jan 2020 07:56:53 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56412 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726144AbgAHM4w (ORCPT ); Wed, 8 Jan 2020 07:56:52 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id 18140292E2E Date: Wed, 8 Jan 2020 07:56:45 -0500 From: Alyssa Rosenzweig To: Nicolas Boichat Cc: Rob Herring , David Airlie , Daniel Vetter , Mark Rutland , Matthias Brugger , Tomeu Vizoso , Steven Price , Liam Girdwood , Mark Brown , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, hsinyi@chromium.org Subject: Re: [PATCH v2 0/7] Add dts for mt8183 GPU (and misc panfrost patches) Message-ID: <20200108125645.GA3057@kevin> References: <20200108052337.65916-1-drinkcat@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <20200108052337.65916-1-drinkcat@chromium.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Patches 1,2,3,6 are: Reviewed-by: Alyssa Rosenzweig The remaining patches in the series are Acked-by. Reportedly the kernel should work on certain Bifrost boards more or less as-is, but I'm not positive about the details. It's possible some of these are G72-specific or MT-specific issues; Robin and Stephen will know more. Very nice work so far! Alyssa On Wed, Jan 08, 2020 at 01:23:30PM +0800, Nicolas Boichat wrote: > Hi! >=20 > Sorry for the long delay since https://patchwork.kernel.org/patch/1113238= 1/, > finally got around to give this a real try. >=20 > The main purpose of this series is to upstream the dts change and the bin= ding > document, but I wanted to see how far I could probe the GPU, to check tha= t the > binding is indeed correct. The rest of the patches are RFC/work-in-progre= ss, but > I think some of them could already be picked up. >=20 > So this is tested on MT8183 with a chromeos-4.19 kernel, and a ton of > backports to get the latest panfrost driver (I should probably try on > linux-next at some point but this was the path of least resistance). >=20 > I tested it as a module as it's more challenging (originally probing would > work built-in, on boot, but not as a module, as I didn't have the power > domain changes, and all power domains are on by default during boot). >=20 > Probing logs looks like this, currently: > [ 221.867726] panfrost 13040000.gpu: clock rate =3D 511999970 > [ 221.867929] panfrost 13040000.gpu: Linked as a consumer to regulator.14 > [ 221.868600] panfrost 13040000.gpu: Linked as a consumer to regulator.31 > [ 221.870586] panfrost 13040000.gpu: Linked as a consumer to genpd:0:130= 40000.gpu > [ 221.871492] panfrost 13040000.gpu: Linked as a consumer to genpd:1:130= 40000.gpu > [ 221.871866] panfrost 13040000.gpu: Linked as a consumer to genpd:2:130= 40000.gpu > [ 221.872427] panfrost 13040000.gpu: mali-g72 id 0x6221 major 0x0 minor = 0x3 status 0x0 > [ 221.872439] panfrost 13040000.gpu: features: 00000000,13de77ff, issues= : 00000000,00000400 > [ 221.872445] panfrost 13040000.gpu: Features: L2:0x07120206 Shader:0x00= 000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 > [ 221.872449] panfrost 13040000.gpu: shader_present=3D0x7 l2_present=3D0= x1 > [ 221.873526] panfrost 13040000.gpu: error powering up gpu stack > [ 221.878088] [drm] Initialized panfrost 1.1.0 20180908 for 13040000.gpu= on minor 2 > [ 221.940817] panfrost 13040000.gpu: error powering up gpu stack > [ 222.018233] panfrost 13040000.gpu: error powering up gpu stack > (repeated) >=20 > So the GPU is probed, but there's an issue when powering up the STACK, not > quite sure why, I'll try to have a deeper look, at some point. >=20 > Thanks! >=20 > Nicolas >=20 > v2: > - Use sram instead of mali_sram as SRAM supply name. > - Rename mali@ to gpu@. > - Add dt-bindings changes > - Stacking patches after the device tree change that allow basic > probing (still incomplete and broken). >=20 > Nicolas Boichat (7): > dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183 > arm64: dts: mt8183: Add node for the Mali GPU > drm/panfrost: Improve error reporting in panfrost_gpu_power_on > drm/panfrost: Add support for a second regulator for the GPU > drm/panfrost: Add support for multiple power domain support > RFC: drm/panfrost: Add bifrost compatible string > RFC: drm/panfrost: devfreq: Add support for 2 regulators >=20 > .../bindings/gpu/arm,mali-bifrost.yaml | 20 ++++ > arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 7 ++ > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 104 +++++++++++++++++ > drivers/gpu/drm/panfrost/panfrost_devfreq.c | 18 +++ > drivers/gpu/drm/panfrost/panfrost_device.c | 108 ++++++++++++++++-- > drivers/gpu/drm/panfrost/panfrost_device.h | 7 ++ > drivers/gpu/drm/panfrost/panfrost_drv.c | 1 + > drivers/gpu/drm/panfrost/panfrost_gpu.c | 15 ++- > 8 files changed, 267 insertions(+), 13 deletions(-) >=20 > --=20 > 2.24.1.735.g03f4e72817-goog >=20 --0F1p//8PRICkK4MW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEQ17gm7CvANAdqvY4/v5QWgr1WA0FAl4V0YcACgkQ/v5QWgr1 WA2z0Q//WX513kQuB2ztPrVdeEsNW0mXDe8s1n5AKMDsEY0qTeR48HQjPkug4+vX RCioXDCqH4EJDlQ+JSJZHD+Ehsy9NgMxFpBeJZNO/S9yh05ThDuxi1Cpp0jAan5L Xe1DqD9LeyOeH3UIOUkiUASyKs7JVozgO6x40jYa2z8bt4WN1aI4GOrJ0s0CpSOh 2oaN9oSPeCZYkAPk40m1Ygk/MNa+mpaVA5kDOF90YyhSh8fjXfhCopjRRTQh7koH O94imgpCBY6WPDSQGQv9itX54ZR41JUTjE+APpGMG4wnoVt7bdRF/YZdePz8LNlZ IqFWQ1e0EM0/BkoIGje9DO+jdC+Gu3ADBNrs67kqDlwaHMS7yb7q7HfGVYyS0+tF cJylSj1GQ2ChQXu6KwyMf44IEloUfFZ7y2oJWBp1BMvLbu+Sgdr6uEBu2tYJ0AYA L4WnOrEADX6BWjbo1BjKRflVYyjiz1SWptE4BrADD7aDuXH9w0OSE70x1fCscVBN hhyT6aZSESsKSilhgCwrnacA+9htvu3uEmDS0YWpCZ9UpVw9a7rb/S4T6wUJZBBG MoGXDDbLnFq2JcI48k45gp2HTGnjHwTsLmTpxrEo+QfnawFRVmnqWyPrHFJ1lVVO BE0kDN4lbWYYZCZ4vKT4GLHwXGBLTaTI6b7/V2ZaLQtv4tCuHzM= =jsFA -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--