Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp17004imu; Thu, 10 Jan 2019 16:59:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN7xUZ39v6TkhimxK+ZLpXqBBDfvafIKSwR/C/ynJaOj8nC4x3ymiRqH+l2L/AYplcrSzRrm X-Received: by 2002:a62:8985:: with SMTP id n5mr12555533pfk.255.1547168388848; Thu, 10 Jan 2019 16:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547168388; cv=none; d=google.com; s=arc-20160816; b=I2ywSyLEeZTAQ2ofqJ2VjlLxsZBqV53jlKPPrPipDU/ZJfh8GWR3c1rHvX6Bv0g5V5 SSY8svqUgoCjBvzZLsvDScuHmgm0ciloWUcyzpeY2lWt321p6i9kp3WhQfL2LxhEtCpj ov7rUBeBbBn8B9KLK5aL0xOM++Q3fwA5LSl6ZwbSPdFnHOCFEoxGPcTGA2++0L8ZK5+S TIfNBVPjFe6mpfAKpdNt6DdzWianjbuuK3ZqfiHG+9KYaysMiRmStVTojFaz+lOaMVis vcR9uMVXuNLDoqoE0wbiraCzWFSnkB9dI42QNuDVpcmB+WvoE57EX8szrlh36axjgVWo LM4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=tArBfX2/yWTLPAN6WGgGaPqHLNX3JSZr3+h2fOti0lQ=; b=0PZojfzFGNnq1nQMLQEeUhLdDBWKdexnaCD3sKRNpl1+TvLZ87ThkhxD3BSiVqZbYb sBt/qsU+OtY4KJL5oKozW8LYgzmI/1h5Gom0OKH3ZQ3uifeZ12+l5XZoZl2XIWl30e9P +6z3sHczPIfR8/jP0H5P20bRwuRmCldQNuAtqI/Zj8iQ2+ZsUQhtwL0u9f5mm1XB96j8 SsXPzElOuVEpXRc1E9OhrhJnNpuHRFi4jzHavriZx8TTn0xG5SSyNIE3hb0MnU/6si15 Ir1BGRLE3x2Ooj5ewWFOJO/qozkwpPPUzm/XhUuO6L+QfjZUr0Yx1TUWhmbX/IAwpMk8 oE+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="hgrOev/A"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j35si22311131pgl.223.2019.01.10.16.59.33; Thu, 10 Jan 2019 16:59:48 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="hgrOev/A"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728898AbfAKAh1 (ORCPT + 99 others); Thu, 10 Jan 2019 19:37:27 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:46639 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728788AbfAKAh0 (ORCPT ); Thu, 10 Jan 2019 19:37:26 -0500 Received: by mail-pf1-f194.google.com with SMTP id c73so6071534pfe.13 for ; Thu, 10 Jan 2019 16:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=tArBfX2/yWTLPAN6WGgGaPqHLNX3JSZr3+h2fOti0lQ=; b=hgrOev/AEn0v0YbfqI/buSHdETAPA0YE2mVEthVtuL5d9OOlMaebfPCSRubZ46m9sz 1k4Ygnp4f8xIWh8SMdjpp0AqPWb5bSEF40iXR1/V660S40VZjGnC7HQbEm596g9C2ozU pqTmRIrjkmPYqqHxZXHDCwyM4p3tJfIrr40Ov84pTrJQ2ZRP7CejJ2yKFxlO+2L2+6qE f6bfhAYPJJG7TM9zGNN7+lwXrVFXvOs3xwcbHZZ04mL/RAKizYD5l3aFbYMY/1Z4d1Qd VcKNjKznuPPTe4QRbVWMtvHhspv7oJ6HTiUA1ffGhplSGy1hQHiN3pUddr0Q9Z+4sisG uP4Q== 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:in-reply-to:references:date :message-id:mime-version; bh=tArBfX2/yWTLPAN6WGgGaPqHLNX3JSZr3+h2fOti0lQ=; b=LNhE2QvXuWEWgjvWgm7JIkPrBy9PXisvUuSVFl/NoYhEiYwhAtjGwjeuuIMt2TXSmb NFyvQoXs4iC9gXSQBWLOIlG0WuBMmScFyNWh9PiMnoO7szBXsD/QyK2jecq1F7lV3/d8 uZFV146L4+1iV00KbjICUoOgV1Hp+QN3T0EmVAMZnzAz+tR9/2nGHwV+HmM/GdcVBO/h gar0Gb0UHjpLUzLV9qZXLewMGguYYqbyLoP/sFoyiEI0vnXz5ILvt9m1qV5iEJ4gugn5 uru9T62xl4b1qH8Upsdv8TwzffOlf0/iayORdEyvE4hAeJ5AAJmSUg7T2G7YgGuuDhcD t1Ww== X-Gm-Message-State: AJcUuke0zDXlFDMOuvRB6YZS4BJzpAKm8AC0mVkdH1EwCHTIMVybxIDn OCmbVrD6EdsEAtNpM7Frqs1E2A== X-Received: by 2002:a63:1b58:: with SMTP id b24mr11203008pgm.247.1547167045786; Thu, 10 Jan 2019 16:37:25 -0800 (PST) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.googlemail.com with ESMTPSA id f32sm93544454pgf.80.2019.01.10.16.37.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 16:37:24 -0800 (PST) From: Kevin Hilman To: Neil Armstrong , Martin Blumenstingl , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, jbrunet@baylibre.com, robh+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, sboyd@kernel.org, mturquette@baylibre.com Subject: Re: [PATCH 0/5] Meson (32-bit): add support for the Mali GPU In-Reply-To: <13bd9d3a-3cbe-3952-03bb-ef5da6eec401@baylibre.com> References: <20181208171247.22238-1-martin.blumenstingl@googlemail.com> <13bd9d3a-3cbe-3952-03bb-ef5da6eec401@baylibre.com> Date: Thu, 10 Jan 2019 16:37:24 -0800 Message-ID: <7hef9kqbaz.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Neil Armstrong writes: > On 08/12/2018 18:12, Martin Blumenstingl wrote: >> This series adds support for the Mali-450 GPU on Meson8 and Meson8b. >> Meson6 uses a Mali-400 GPU but since we don't have a clock driver (and >> I don't have a device for testing) Meson6 is left out in this series. >> >> Meson8 uses a Mali-450 MP6 with six pixel processors. Meson8b (as >> cost-reduced SoC) uses a Mali-450 MP2 with two pixel processors. >> I tested both using the open source lima driver and a patched mesa >> from the lima project as well. Since we don't have display support >> on the 32-bit SoCs I used off-screen rendering as described in [0]. >> The result is (for example): [1] >> >> The bootloader (at least on my boards) leaves the Mali clock disabled >> by default. The board crashes when trying to access the Mali registers >> with the "core" clock disabled. >> Thus this series also implements the required clock driver changes. The >> Mali clock tree on Meson8b and Meson8m2 is almost identical to the one >> on GXBB (see the description of patch #3 for more details). Only Meson8 >> is slightly different as it doesn't have a glitch-free mux. Patch #2 >> prepares the meson8b clock driver so we can have different clocks per >> SoC. >> >> Dependencies: >> - the .dts changes depend on my other series "ARM: dts: meson: add the >> APB/APB2 busses" from [2] >> - the .dts changes from this series have no compile-time dependency on >> the clock driver changes because CLKID_MALI was defined in the >> dt-bindings since the first version of the clock driver (but it was >> not used until now). >> - the .dts changes from this series have a runtime dependency on the >> clock driver changes (also from this series) if you have a kernel >> patched with the lima driver (without the lima driver there's no >> runtime dependency) >> >> Other notes: >> By default the GPU runs off the XTAL clock (24MHz). The lima driver >> currently does not update the GPU clock rate. Different frequencies >> have to be requested by adding the following properties to the Mali >> GPU node (to run it at 510MHz for example): >> assigned-clocks = <&clkc CLKID_MALI>; >> assigned-clock-rates = <510000000>; >> >> >> [0] https://gitlab.freedesktop.org/lima/web/wikis/home >> [1] https://abload.de/img/dump0myic0.png >> [2] https://patchwork.kernel.org/cover/10719445/ >> >> >> Martin Blumenstingl (5): >> dt-bindings: gpu: mali-utgard: add Amlogic Meson8 and Meson8b >> compatible >> clk: meson: meson8b: use a separate clock table for Meson8 >> clk: meson: meson8b: add the GPU clock tree >> ARM: dts: meson8: add the Mali-450 MP6 GPU >> ARM: dts: meson8b: add the Mali-450 MP2 GPU >> >> .../bindings/gpu/arm,mali-utgard.txt | 6 + >> arch/arm/boot/dts/meson8.dtsi | 58 +++ >> arch/arm/boot/dts/meson8b.dtsi | 46 +++ >> drivers/clk/meson/meson8b.c | 349 +++++++++++++++++- >> drivers/clk/meson/meson8b.h | 9 +- >> 5 files changed, 461 insertions(+), 7 deletions(-) >> > > Applied patches 2 & 3 to next/drivers for Linux 5.1 > > Kevin, have fun with the other patches ! Fun was had. Patches 1, 4, 5 queued for v5.1 (branch: v5.1/dt) Kevin