Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp166625pxb; Tue, 2 Feb 2021 01:59:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaeM/v7zIZOsGGIV2rJ0Qt5i8NTCmXYMJMJ9xBevGnVJyBKh1lQyAPQfBDAO1bCfyQosRO X-Received: by 2002:a05:6402:220e:: with SMTP id cq14mr22904117edb.240.1612259956628; Tue, 02 Feb 2021 01:59:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612259956; cv=none; d=google.com; s=arc-20160816; b=s7fhL8zUnYS7nTE/NHGVWkzP8m0pRZeQ9zMYq2UfySJFXDHaZVKsnn4SEe/IR85zZ6 +26azzMlPsbYp0bFzuWNmWwjqWWysHLRUBdcot4tnT5ao96eRX/lkmTGaIy5hnDjzxwl UU/4+7+J1ghPLVc9CmCtD7c/+T8+MraC9LV3Iyj8TDFa9i3BlwgtrX0l/S81PlJqtQWN Ij46PXwDPjg7xDNat1sjIumKqUxjGq4pR+tyM9eg35tDwA37UYOdCxBZGkJhXFDKUV27 5okUq+TxbVOugxRAzz4TEazYDgr7AVQ1DLmweuWKoGMhQADKnyhZHP4yF8o84Oc1M5QS 4A3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oSu5LnDezbkQW2igD+Wufa7Ixlw8mwGd0GtozIF15/o=; b=U9hfzsRoA92LS3h58F6WeNmQOT6JSorGtMWo+edgChvdrRPSe++EJudn8FU5c0/Znf ggt/Nbm1h05J7mkcDhUenGFeY4vhnkhbXhcT+ijehcu6HdUG7LP8b5jRo2hgn9yAiwJ4 GWBFCclVisR5Swf7d6+8UirA7vwearLBd35sGOOomo9CQzUwBPFMGyKsWA8NUFETV57C g5z5FQSTtBdS4dwjmDL7C/jcN4G7OnXQjQB/2yPTFqThIz2UnhgVBfANTwtMeXYfIyzk Bdh5/PeuQY3GcvakHbHAWekff5PPnzfBndCMgxaO3NtKQqG6Q+7sCUYcmfFmVGLrP3b/ y+Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si15644edy.427.2021.02.02.01.58.52; Tue, 02 Feb 2021 01:59:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbhBBJ57 (ORCPT + 99 others); Tue, 2 Feb 2021 04:57:59 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:35527 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbhBBJ5q (ORCPT ); Tue, 2 Feb 2021 04:57:46 -0500 Received: from aptenodytes (196.109.29.93.rev.sfr.net [93.29.109.196]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id BA0BA24000C; Tue, 2 Feb 2021 09:56:56 +0000 (UTC) Date: Tue, 2 Feb 2021 10:56:56 +0100 From: Paul Kocialkowski To: "H. Nikolaus Schaller" Cc: Robin Murphy , Yong Wu , Rob Herring , Frank Rowand , Linux Kernel Mailing List , linux-arm-kernel , Discussions about the Letux Kernel Subject: Re: BOG: commit 89c7cb1608ac3 ("of/device: Update dma_range_map only when dev has valid dma-ranges") seems to break Pinephone display or LCDC Message-ID: References: <81FE44A3-38C8-4B78-BB77-C09B4FC80B0A@goldelico.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="FywNW6//oMEHP8B6" Content-Disposition: inline In-Reply-To: <81FE44A3-38C8-4B78-BB77-C09B4FC80B0A@goldelico.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --FywNW6//oMEHP8B6 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Nikolaus, On Tue 02 Feb 21, 10:18, H. Nikolaus Schaller wrote: > Hi, > since v5.11-rc6 my Pinephone display shows some moir=C3=A9 pattern. >=20 > I did a bisect between v5.11-rc5 and v5.11-rc6 and it told me that > the commit mentioned in the subject is the reason. >=20 > Reverting it makes the display work again and re-reverting fail again. >=20 > IMHO it seems as if the display DMA of the pinephone (allwinner suni-a54) > got influenced and stopped to scan the framebuffer. >=20 > The only dma-ranges I could find are defined here: >=20 > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >=20 > dma-ranges =3D <0x00000000 0x40000000 0xc0000000>; >=20 > but I can't tell if they are "valid" or not. >=20 > Any insights are welcome. And please direct to the right people/mailing l= ists > if they are missing. This may not be strictly the same thing, but is this patch in your tree: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210115175831.= 1184260-2-paul.kocialkowski@bootlin.com/ If not, it's worth a try to add it. If it is, it's worth doing a revert. My understanding is like DE2 does not need a particular DMA range and has D= RAM starting at 0x40000000 (just like the CPU) but it will map DRAM in a loop before and after this address. I suspect the issue shows because the pinephone has 2 GiB RAM while for oth= er boards with < 2 GiB RAM, removing 0x40000000 to the DMA addresses still poi= nts to the same location. So IMO the MBUS dma-ranges shouldn't apply to DE2. I think this is already the case in dt, but the mbus driver may add it if y= ou don't have that patch. I think I have a few A64 boards around, but probably not with 2 GiB RAM. If adding the patch doesn't help, I'll try to make a few test. Cheers! Paul --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --FywNW6//oMEHP8B6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmAZIegACgkQ3cLmz3+f v9GMSwf+M9LokGcpYmUUjM+QKbQiZN+fF/QxqEV2cZdtgl0cuDkv/sLpvDmmj5O4 LT75CStM2LUBo2KYk97saEHX+5KxDeOCDpcyKb+PiTIuCZ0K2XaxMoGSs24XBJHC +oPPXUWgZ5JowcwObvEyp9dnAjYeqSLmK8vtZs/n80hGWhvrvzf++Jdo0Qy+TAwK ltD54b3Y2Yl3P5jUB4SxmrK0/FPXOeId5yN8x316/rXEcCqntpMbTMjU1nqkAr4r ydOcWbqqdedPGVufLwvQaECPmBZrmI9Yxzsffbw3ijOrLAv5NHsSADG+D632WcgW tbDQj8VryIs602K1KVnMNWL+9oPxng== =x65B -----END PGP SIGNATURE----- --FywNW6//oMEHP8B6--