From patchwork Mon Nov 4 01:39:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 11224843 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 832CA15AB for ; Mon, 4 Nov 2019 01:40:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5F751222C7 for ; Mon, 4 Nov 2019 01:40:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Plu0PsOT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5F751222C7 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ET4L/qfAKgvvtdiyOSbiqWxqjTIZzFBb3YwqMTDBcgE=; b=Plu0PsOTauFhKU JF67+S90SJ98bcY6+LB/lgchPmYDnLk2eBQE4VazbEWQSN3UaNpdhMKLu8WTHoBsxqizQMy6YMQwB o2KmdahqnkSJKVmVFFWHuXIFyTZyCuWfeNzAxlt+gFVx01g/vAoWYuAQC8GujQ/Oesi3tK1OZtpoS dfhvy6Sh/MkDYZyYbE0SDAMOfKepK6Jkb/L6BMcXBIc7bonW4D9eb6/twBbI20EViHI1MQAQa3Vi4 zRPk4iQvbko0raZbc2GUtLztfvgEhsTpbzJWY4LCziuEZHuYdVEegvC8WI0hfj21jePJ5ts6W/fhI OnqBtTthZV4pFV85EvhQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRRMG-0003U9-Qo; Mon, 04 Nov 2019 01:40:40 +0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iRRM5-0003Hj-2p; Mon, 04 Nov 2019 01:40:31 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4DDCFB1A5; Mon, 4 Nov 2019 01:40:25 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Subject: [RFC 0/7] ARM: dts: Mali for Realtek RTD1195/RTD1295 Date: Mon, 4 Nov 2019 02:39:25 +0100 Message-Id: <20191104013932.22505-1-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191103_174029_419819_EA4CFB83 X-CRM114-Status: GOOD ( 12.72 ) X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [195.135.220.15 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Andreas_F=C3=A4rber?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hello, This series adds the Mali GPU to Realtek RTD1195 and RTD1295 SoC DTs. DT patches depend on RTD1295 clk series, to be resent; RTD1195 clk to be sent. RTD1395 and RTD1619 DTs have not yet been prepared, only bindings while at it. My testing was unsuccessful so far... For RTD1195 I don't have a mali-supply yet, the bus clk was picked randomly to make binding/driver happy, and the address/size is not clear. For RTD1295 I don't have a bus clk specified; later patches add mali-supply as G2227 PMIC's DCDC3 for Zidoo X9S. RTD1295: [ 2.451713] panfrost 98050000.gpu: clock rate = 503929687 [ 2.457326] panfrost 98050000.gpu: failed to get regulator: -517 [ 2.463527] panfrost 98050000.gpu: regulator init failed -517 [ 2.755320] panfrost 98050000.gpu: clock rate = 503929687 [ 2.771280] panfrost 98050000.gpu: gpu soft reset timed out [ 2.777050] panfrost 98050000.gpu: Fatal error during GPU init [ 2.783236] panfrost: probe of 98050000.gpu failed with error -110 RTD1195 with 0x18030000: [ 3.722075] lima 18030000.gpu: IRQ pmu not found [ 3.727315] lima 18030000.gpu: mmu gpmmu dte write test fail [ 3.733237] lima: probe of 18030000.gpu failed with error -5 RTD1195 with 0x18003000: [ 3.722861] lima 18003000.gpu: IRQ pmu not found [ 3.728099] 8<--- cut here --- [ 3.731235] Unable to handle kernel paging request at virtual address f0879000 [ 3.738685] pgd = (ptrval) [ 3.741461] [f0879000] *pgd=80000000107003, *pmd=2b008003, *pte=00000000 [ 3.748396] Internal error: Oops: a07 [#1] PREEMPT SMP ARM [ 3.754019] Modules linked in: [ 3.757157] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.0-rc5-next-20191031+ #202 [ 3.765000] Hardware name: Realtek RTD1195 [ 3.769210] PC is at lima_mmu_init+0x2c/0x200 [ 3.773678] LR is at lima_device_init+0x1e0/0x644 [ 3.778498] pc : [] lr : [] psr: 80000013 [ 3.784919] sp : eb041db0 ip : eac00200 fp : 00000007 [ 3.790274] r10: eb2c3088 r9 : eb2c3058 r8 : 00000001 [ 3.795630] r7 : c101b650 r6 : c101b634 r5 : eb2c3040 r4 : eb2c3088 [ 3.802318] r3 : f0879000 r2 : cafebabe r1 : 0000001f r0 : eb2c3088 [ 3.809007] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user [ 3.816320] Control: 30c5387d Table: 00103000 DAC: fffffffd [ 3.822207] Process swapper/0 (pid: 1, stack limit = 0x(ptrval)) [ 3.828361] Stack: (0xeb041db0 to 0xeb042000) [ 3.832832] 1da0: 00000001 c1003e50 eb175800 c06733d0 [ 3.841215] 1dc0: 00000001 00000001 eb2c3040 c101b634 c101b650 00000001 eb2c3058 c0667664 [ 3.849599] 1de0: eac152d0 c063df04 ea858800 00000000 c10700d0 eb2c3070 ea858800 eb175810 [ 3.857981] 1e00: eb2c3040 ea858800 c1070158 00000000 c101b4f4 00000000 00000007 c066706c [ 3.866365] 1e20: 00000000 eb175810 c101b4f4 c0673868 eb175810 c1070154 00000000 c1070158 [ 3.874750] 1e40: 00000000 c0671a64 eb175810 c101b4f4 c101b4f4 c101be00 c0e31834 c0e31854 [ 3.883134] 1e60: 000000bc c0671d44 000000bc c0791fb4 c0a6affc eb175810 00000000 c101b4f4 [ 3.891518] 1e80: c101be00 c0e31834 c0e31854 000000bc 00000007 c0671ff0 00000000 c101b4f4 [ 3.899903] 1ea0: eb175810 c0672050 00000000 c101b4f4 c0671ff8 c066fdc4 00000007 eb035e58 [ 3.908287] 1ec0: eb0d70b4 c1003e50 c101b4f4 ea85dc00 00000000 c0670e10 c0bf306c c0e1b4b0 [ 3.916669] 1ee0: ffffe000 c101b4f4 c0e1b4b0 ffffe000 00000000 c06728b0 c1037700 c0e1b4b0 [ 3.925053] 1f00: ffffe000 c0202770 000000bc c02595e8 00000000 c0c76b00 c0c080f0 c0e004a4 [ 3.933437] 1f20: 00000000 00000006 00000006 c0bc22bc c0bb68d4 c0bb6888 00000000 ef5f5120 [ 3.941822] 1f40: ef5f5127 c1003e50 cccccccd 00000006 c1037700 c1003e50 c0e004a4 c0e40568 [ 3.950206] 1f60: c1037700 c1037700 c0e004a4 c0e00f24 00000006 00000006 00000000 c0e004a4 [ 3.958590] 1f80: c092052c 00000000 c092052c 00000000 00000000 00000000 00000000 00000000 [ 3.966972] 1fa0: 00000000 c0920534 00000000 c02011f8 00000000 00000000 00000000 00000000 [ 3.975356] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 3.983739] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000 [ 3.992134] [] (lima_mmu_init) from [] (lima_device_init+0x1e0/0x644) [ 4.000521] [] (lima_device_init) from [] (lima_pdev_probe+0x7c/0xc4) [ 4.008908] [] (lima_pdev_probe) from [] (platform_drv_probe+0x48/0x98) [ 4.017473] [] (platform_drv_probe) from [] (really_probe+0x1e0/0x34c) [ 4.025949] [] (really_probe) from [] (driver_probe_device+0x60/0x16c) [ 4.034424] [] (driver_probe_device) from [] (device_driver_attach+0x58/0x60) [ 4.043523] [] (device_driver_attach) from [] (__driver_attach+0x58/0xcc) [ 4.052264] [] (__driver_attach) from [] (bus_for_each_dev+0x78/0xc0) [ 4.060651] [] (bus_for_each_dev) from [] (bus_add_driver+0x184/0x1dc) [ 4.069127] [] (bus_add_driver) from [] (driver_register+0x74/0x108) [ 4.077425] [] (driver_register) from [] (do_one_initcall+0x58/0x1c4) [ 4.085814] [] (do_one_initcall) from [] (kernel_init_freeable+0x138/0x1d4) [ 4.094735] [] (kernel_init_freeable) from [] (kernel_init+0x8/0x110) [ 4.103122] [] (kernel_init) from [] (ret_from_fork+0x14/0x3c) [ 4.110878] Exception stack(0xeb041fb0 to 0xeb041ff8) [ 4.116059] 1fa0: 00000000 00000000 00000000 00000000 [ 4.124442] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 4.132823] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 4.139607] Code: f57ff04e e30b2abe e590300c e34c2afe (e5832000) [ 4.146186] ---[ end trace 26997bb6f978b400 ]--- [ 4.150936] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b [ 4.158791] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]--- Latest experimental patches at: https://github.com/afaerber/linux/commits/rtd1295-next Have a lot of fun! Cheers, Andreas Cc: devicetree@vger.kernel.org Cc: Rob Herring Andreas Färber (7): dt-bindings: gpu: mali-midgard: Tidy up conversion to YAML dt-bindings: gpu: mali-midgard: Add Realtek RTD1295 arm64: dts: realtek: rtd1295: Add Mali node dt-bindings: gpu: mali-utgard: Add Realtek RTD1195 ARM: dts: rtd1195: Add Mali node dt-bindings: gpu: mali-utgard: Add Realtek RTD1395 dt-bindings: gpu: arm-bifrost: Add Realtek RTD1619 .../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 1 + .../devicetree/bindings/gpu/arm,mali-midgard.yaml | 33 ++++----- .../devicetree/bindings/gpu/arm,mali-utgard.yaml | 5 ++ arch/arm/boot/dts/rtd1195.dtsi | 19 +++++ arch/arm64/boot/dts/realtek/rtd1295.dtsi | 85 ++++++++++++++++++++++ 5 files changed, 125 insertions(+), 18 deletions(-)