Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1269970yba; Tue, 2 Apr 2019 05:58:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7Sopx6093aGugwWBA2/RCaVy+4/3XZf13XqtimgcUN7jkG+P8bcAZdFZK5MDvzxjL1TKQ X-Received: by 2002:aa7:92d5:: with SMTP id k21mr2175794pfa.223.1554209907966; Tue, 02 Apr 2019 05:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554209907; cv=none; d=google.com; s=arc-20160816; b=Bow32uWO22O8pZn0ze1CIRrEXmh4vPGcHDMZz6lmXKFfQ++MnrlwwWChqecx41lyhS TyojAUU70dH221/jv4abDO58H+QA8IQq5JUUbOdGlJqMopcn3ELbdki1Xrod470MhSDf h6IaxIp7N2bY18ROc4n5bELOFk4kKl08Cl+0SfGeLSaq8FppLBlnzMUap6zverWX4+CL 3IB8Y7Jg94Ol8eUTpd+qVLHrNRVjxPtCVp20hdyoSo24txiEyV25qwCHw0pyBypmDGvo KugWDY+wtr6nCfmrbg1wrXMJJk1vMdtpJpaAnODx3+nPMDbQxbWI6h627G87AAIwe++H plTA== 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=y3pGRlLcXGVTFGQaodXuUAwfvrHjPOd1ymIe9WAAHnQ=; b=qHuwAMmhmMVvUJ5JSzaoigcftlfzV2LsItUHhzaZFKiSWnos352k0KieayyF7+zsDJ 7TOD4+AAzyaFRHfy+kdUWgWooeB5yR4gsejbP+l6JJG0MRBGHxJ7uEcURxyh62YlveqG 549YKWy3T5T8V0g/MdFpjOEtb+VD1jn/s4tJ4Jux5iuPgJoQFXbkMCWja9LoesWUPgox 3s4fyDGmb2Ll+UQJlpZ6uq59MeExQft379s0IVimegJPIGPetm6bETb3YQPzue9qzrV8 Zf4oUMvfWK1zFs7CputIPipdKKwE+fdD20EeRoRIjYqBCE4FeBLOGwvzwzqmITPjYqqJ ArHg== 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 p12si10894888plo.206.2019.04.02.05.58.12; Tue, 02 Apr 2019 05:58:27 -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 S1730024AbfDBLXb (ORCPT + 99 others); Tue, 2 Apr 2019 07:23:31 -0400 Received: from foss.arm.com ([217.140.101.70]:49170 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfDBLXb (ORCPT ); Tue, 2 Apr 2019 07:23:31 -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 90186168F; Tue, 2 Apr 2019 04:23:30 -0700 (PDT) Received: from [10.1.196.75] (e110467-lin.cambridge.arm.com [10.1.196.75]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBBF93F59C; Tue, 2 Apr 2019 04:23:27 -0700 (PDT) Subject: Re: [PATCH v2 3/3] drm/panfrost: Add initial panfrost driver To: Alyssa Rosenzweig Cc: Rob Herring , Lyude Paul , Tomeu Vizoso , Eric Anholt , Maxime Ripard , Maarten Lankhorst , Neil Armstrong , Will Deacon , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , iommu@lists.linux-foundation.org, Daniel Vetter , "Marty E . Plummer" , Sean Paul , linux-arm-kernel@lists.infradead.org References: <20190401074730.12241-1-robh@kernel.org> <20190401074730.12241-4-robh@kernel.org> <6ce32759-ea83-ee79-33d3-237737f7b866@arm.com> <20190402003326.GB12934@rosenzweig.io> From: Robin Murphy Message-ID: Date: Tue, 2 Apr 2019 12:23:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190402003326.GB12934@rosenzweig.io> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/2019 01:33, Alyssa Rosenzweig wrote: >> the userspace definitely doesn't support T624 > > This is true, yes. Shouldn't be too hard to backport; if there's still > interest in Midgard 1st/2nd gen, I suppose I can grab hardware and sort > it out... I'm quite likely the only person trying this on an Arm Juno board, and even then it's really only for giggles because I can :) I guess there might be a fair few Odroid-XU3/XU4 (T628) users interested, though. >> You probably want a dma_set_mask_and_coherent() call for your 'real' output >> address size somewhere - the default 32-bit mask works out OK for RK3399, >> but on systems with RAM above 4GB io-pgtable will get very unhappy about DMA >> bounce-buffering. > > Out of curiosity, are there Mali systems with >4GB RAM? That sounds > awesome :) Now that the "early-access Armv8 silicon" angle has well and truly expired, Juno is essentially a prototyping platform where the SoC just serves to (slowly) drive interesting things in FPGA cards, so although it may have 8GB of RAM, it's not all that exciting. There is one somewhat more realistic board I'm aware of, namely HiKey 970 with a G72 and 6GB. >> Any chance of resurrecting the generic "arm,mali-midgard" compatible? :P > > ...Would that require editing everybody's DT file? If they already have one of the strings from the current upstream binding, no - I only mean to suggest adding it as an additional last-level fallback. That would aid compatibility with downstream DTs, for example RK3288 which currently has zero overlap: upstream: "rockchip,rk3288-mali", "arm,mali-t760"; downstream: "arm,malit764", "arm,malit76x", "arm,malit7xx", "arm,mali-midgard"; Similarly, it might be reasonable for panfrost_{gpu,mmu,job}_init() to retry platform_get_irq_byname() with uppercase interrupt names if the expected ones aren't found - obviously the upstream binding comes first and foremost, but I don't see any harm in quietly supporting bits of the downstream binding if it makes users' lives easier when switching between mainline and vendor kernels. Cheers, Robin.