From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A8C9C433E0 for ; Fri, 5 Feb 2021 15:11:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 970DA64E58 for ; Fri, 5 Feb 2021 15:11:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 970DA64E58 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=b1R9H4l4gUINVnVFBF9TwinFpssz1UmeziCbQu37TvE=; b=bgmyNFtma1HkcB7GyHwNtq1dG 3aZsxhi0ZES/mRttJri2JJuMSa9avDzKtuvamkjGsXFRHQZ0+D11ldaMgTzXWBjHi1ygLX9Ru5O0n ZiD14H0Qex5bcBvOhV9Jlv1x123enU+glciXDuy3EsRRzXzdY4dzbDFLRRuNrsxnjd/tPD783gIuQ uXx2NfWZNX58KbjwsfBz2vD29bcPTM1KnXpYrrxyGp+CJn4D8De6F4qU7mR7G1qdjRm08bfT6zydZ UkN8ijPS+jG1OtPcRuHAIdHsUq+5BRvFRnOEduXux2rhFTfhYXIBmkscYoWSGG2aThDron4kBU8sT r8bnagQdg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l82kc-0006IR-7K; Fri, 05 Feb 2021 15:10:26 +0000 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l82kY-0006Hy-PS for linux-arm-kernel@lists.infradead.org; Fri, 05 Feb 2021 15:10:24 +0000 X-Originating-IP: 93.29.109.196 Received: from aptenodytes (196.109.29.93.rev.sfr.net [93.29.109.196]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 6F07B40015; Fri, 5 Feb 2021 15:10:18 +0000 (UTC) Date: Fri, 5 Feb 2021 16:10:18 +0100 From: Paul Kocialkowski To: "H. Nikolaus Schaller" 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> <13D0EFBB-E2A1-4BA3-9F99-CF2B85127074@goldelico.com> MIME-Version: 1.0 In-Reply-To: <13D0EFBB-E2A1-4BA3-9F99-CF2B85127074@goldelico.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210205_101023_010073_082C698D X-CRM114-Status: GOOD ( 25.70 ) 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: Rob Herring , Frank Rowand , Linux Kernel Mailing List , Yong Wu , Discussions about the Letux Kernel , Robin Murphy , linux-arm-kernel Content-Type: multipart/mixed; boundary="===============2748821258828200518==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2748821258828200518== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NhpUC++SYlbyNDNM" Content-Disposition: inline --NhpUC++SYlbyNDNM Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Tue 02 Feb 21, 16:07, H. Nikolaus Schaller wrote: > Hi Paul, >=20 > > Am 02.02.2021 um 14:42 schrieb Paul Kocialkowski : > >=20 > > Hi Nikolaus, > >=20 > > On Tue 02 Feb 21, 11:50, H. Nikolaus Schaller wrote: > >> Hi Paul, > >>=20 > >>> Am 02.02.2021 um 10:56 schrieb Paul Kocialkowski : > >>>=20 > >>> Hi Nikolaus, > >>>=20 > >>> 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 agai= n. > >>>>=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/mail= ing lists > >>>> if they are missing. > >>>=20 > >>> This may not be strictly the same thing, but is this patch in your tr= ee: > >>> https://patchwork.kernel.org/project/linux-arm-kernel/patch/202101151= 75831.1184260-2-paul.kocialkowski@bootlin.com/ > >>>=20 > >>> If not, it's worth a try to add it. > >>=20 > >> No, it hasn't arrived in v5.11-rc6 (or linux-next) yet. > >>=20 > >> But it fixes the issue. > >=20 > > Great! The patch should already be on its way to the next RC. >=20 > Fine! >=20 > >=20 > > And nice to see you're active on Pinephone as well! >=20 > I have a developer unit and the LetuxOS kernel already supports it a litt= le. This is why I observed the issue with -rc6 >=20 > > You might remember me from > > the Replicant project, as I've worked a bit on the GTA04 :) >=20 > Sure, you are well remembered :) >=20 > I still have the dream to revitalize Replicant 4.2 for the GTA04 just for= fun. I can already boot to Replicant touch screen with a v5.4 kernel. v5.1= 0 fails when trying to spawn zygote... Oh I see! I think Android has made some significant progress is its ability to use mainline (4.2 was an early stage and I remember having to backport patches to use some mainline features back then). Maybe it would be easier with Replicant 6, but you'd have to go through the device bringup phase again, which is never nice. Cheers, Paul --=20 Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com --NhpUC++SYlbyNDNM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEJZpWjZeIetVBefti3cLmz3+fv9EFAmAdX9kACgkQ3cLmz3+f v9GFMAgAnqzb02bU1xw4W/ZQTV4u/H+RjuIscu8QyAmTJQ4RJc7Nggl5VEJsPqed PUpdFkySE74+mKOAVCbv72LNE75VowT40avbmDqqPY+IZ0ddohasFOTNawQ8dPFf ZeS5kkRJj72AzdKuUIeboRXi2LjPmKgFDtAq7WSzjb8GG2sGSkjgpLNA5/c59l5O s5LLkrWDC5VyR0NXViBMb8ICLPS3mM4MgoyYs5NMRWDkj8wXadaKebl0+/TBEqZz m6fltCsuEpCGJmWMTvme1ixujhJQXqOlWr95OaJ4gNdF85kmRrT10P/zqJldOCGN KJP9QtzHP08Xvd7rSwaTzX5XtP48Rw== =ESK6 -----END PGP SIGNATURE----- --NhpUC++SYlbyNDNM-- --===============2748821258828200518== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2748821258828200518==--