Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6845094yba; Tue, 14 May 2019 14:58:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxOqAtiR3G8HZwpWN9y3jkI6KHZxnSoRScPvgzZBZmIcM+k4cV+oUdLG6mmBh5QsRALkXRt X-Received: by 2002:a63:9dc8:: with SMTP id i191mr39593348pgd.91.1557871106372; Tue, 14 May 2019 14:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557871106; cv=none; d=google.com; s=arc-20160816; b=HrAMRx5s0pacxIy9Lr5lVidcx7b4HE0il5GpyO8AXn1sonH+hJqrpynqn5+KCIATBZ Ie6c0YL4iiERbO1PJUUIbw/pl0BDWD+55QRYws+HH6qpmfwViLVvf0ic2vuuzpCH7VwO flsfHy2yM6AbuHqznCKv3/Pz5kQDRj6il0JZO+bQ5VoVdZHp1MsYJp5fIMZZ7Af4ZwGA 98jfXBHEuOMHxZ4p3MU7/sJhn1tBCy7nf5ZeEZQmjhK45kvZGk4LyW6MsmHm3kKSU0ce q8a1i4DXOSLhLgeIltdNGtswlMrC9PnHk8FCBZFRHg1fMWlTOpCSQ4fGK/xeNyhhIoZW 5mAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=5e8svFGwyvtNIgwAbUv44z9SZQqnaXRilf0PqWnuPsY=; b=KfzJvLoBleeM+55H+8Kgcetn4IX+7WpLdhSTRHTiLhHpb2cR7BXFiIuDtvXehaFYQc FeMjf9DhxKHjBvd5KF+3VPonRw3TX7vXQnJcaWG4uVAz2/lm/nByqbTRrsIn7FirRCF8 oT7lHMllL7D4N7qmI2r1ehcArg5TLRfdAAeZ7QX6qdqra9iVq7Qxf/4QPO5WfqnfI933 grsHhGAQat5gI0qD04Jzw87VoZJ6GgnxB8HyUOIqOnGGdtoXLKK2UsAxH3aQVQPART+C WvaRcxm8aVAOmq8f+3EoKi4mNOxPO4Cu1gPuhPWIekJuI9S1yC7uu8mrJgpKeNjscWTt Zl/w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si15296plp.185.2019.05.14.14.58.12; Tue, 14 May 2019 14:58:26 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726454AbfENV5E (ORCPT + 99 others); Tue, 14 May 2019 17:57:04 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33988 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbfENV5D (ORCPT ); Tue, 14 May 2019 17:57:03 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D4213374; Tue, 14 May 2019 14:57:00 -0700 (PDT) Received: from [192.168.1.124] (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1C9803F703; Tue, 14 May 2019 14:56:57 -0700 (PDT) Subject: Re: [PATCH v4 0/8] Allwinner H6 Mali GPU support To: =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Neil Armstrong Cc: Mark Rutland , devicetree , David Airlie , linux-sunxi , linux-kernel , dri-devel , Maxime Ripard , Chen-Yu Tsai , Rob Herring , linux-arm-kernel References: <20190512174608.10083-1-peron.clem@gmail.com> <20190513151405.GW17751@phenom.ffwll.local> From: Robin Murphy Message-ID: <3c2c9094-69d4-bace-d5ee-c02b7f56ac82@arm.com> Date: Tue, 14 May 2019 22:56:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-05-14 10:22 pm, Clément Péron wrote: > Hi, > > On Tue, 14 May 2019 at 17:17, Clément Péron wrote: >> >> Hi, >> >> On Tue, 14 May 2019 at 12:29, Neil Armstrong wrote: >>> >>> Hi, >>> >>> On 13/05/2019 17:14, Daniel Vetter wrote: >>>> On Sun, May 12, 2019 at 07:46:00PM +0200, peron.clem@gmail.com wrote: >>>>> From: Clément Péron >>>>> >>>>> Hi, >>>>> >>>>> The Allwinner H6 has a Mali-T720 MP2. The drivers are >>>>> out-of-tree so this series only introduce the dt-bindings. >>>> >>>> We do have an in-tree midgard driver now (since 5.2). Does this stuff work >>>> together with your dt changes here? >>> >>> No, but it should be easy to add. >> I will give it a try and let you know. > Added the bus_clock and a ramp delay to the gpu_vdd but the driver > fail at probe. > > [ 3.052919] panfrost 1800000.gpu: clock rate = 432000000 > [ 3.058278] panfrost 1800000.gpu: bus_clock rate = 100000000 > [ 3.179772] panfrost 1800000.gpu: mali-t720 id 0x720 major 0x1 > minor 0x1 status 0x0 > [ 3.187432] panfrost 1800000.gpu: features: 00000000,10309e40, > issues: 00000000,21054400 > [ 3.195531] panfrost 1800000.gpu: Features: L2:0x07110206 > Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002821 AS:0xf > JS:0x7 > [ 3.207178] panfrost 1800000.gpu: shader_present=0x3 l2_present=0x1 > [ 3.238257] panfrost 1800000.gpu: Fatal error during GPU init > [ 3.244165] panfrost: probe of 1800000.gpu failed with error -12 > > The ENOMEM is coming from "panfrost_mmu_init" > alloc_io_pgtable_ops(ARM_MALI_LPAE, &pfdev->mmu->pgtbl_cfg, > pfdev); > > Which is due to a check in the pgtable alloc "cfg->ias != 48" > arm-lpae io-pgtable: arm_mali_lpae_alloc_pgtable cfg->ias 33 cfg->oas 40 > > DRI stack is totally new for me, could you give me a little clue about > this issue ? Heh, this is probably the one bit which doesn't really count as "DRI stack". That's merely a somewhat-conservative sanity check - I'm pretty sure it *should* be fine to change the test to "cfg->ias > 48" (io-pgtable itself ought to cope). You'll just get to be the first to actually test a non-48-bit configuration here :) Robin.