Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2886144pxb; Sat, 6 Feb 2021 11:02:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZhY0ewgCByYs4zAfnejuBqrC2Y5hTCvulvDA+Ryeu3Gefv9Wn9N2KxSHJnjvxzKXyCnWp X-Received: by 2002:a05:6402:40c4:: with SMTP id z4mr9345784edb.15.1612638156823; Sat, 06 Feb 2021 11:02:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612638156; cv=none; d=google.com; s=arc-20160816; b=n6IJOw9dbIDeJ18De88OyqPHZd5vM//PtkSD8Z1JA5SWI4PhpInRimwncyXg1T8x6N Q6tl9P2tsURNU3At+54ELhMOXZH9yH7XXFsnuVxsGGboCZ/0Ezs+mzVVehCJ+H7+ENk1 YTYQY2RrD35L8cvKo8DKrtvEqMtxuQOGXwjhwXVsUVoj/8QNpJf34PMU34oUTcvUY5L8 N8pblpAubIZu8e6vnKZPgas2ytp8qVtHvSXtW6EbFxrJN+XzQvC+7hN2qK8ZghjHt3rn a43giEgf9SXcJetJhQcMA5ssIM3aivoifmt+pqw+aqJb08wWyx06MtCpsYQeS57GLPQZ kh0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pJ9l0Gm7ttcEwsXpjvfTeDJEweWQHyzuCvwSEpB3874=; b=RKmPqnmxwbV0lYm0jcRrlHlPqCiGNm7ShQHyKwfqQKgiGpvXe8wdGjIFrSvY53rFj8 GMilbafDp5ctaeottJEWL0Wql9N6SQ99UBGEDCa+RrqV+S75iGomKXcNjty4FT2T/N6H d9/Twa4SqW03XH5ygJKUwerUptNtfK8e/5UZ2F7nxHz7ZMWAMK8ZGObdUo/d2a74vPHX JgF82XB7OY4oFDr0MkThc2fXBKgBEEgcnVafBqCdcfEdVoNvDT3j5cJ0wwSYL0iBdaKc L1Z2HXD5sAvWKPWZtuxud6Jcke8MIh46dvKpUJLVEwdog1DGI4S4/dTxqta96wXkGYzt zwEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=gDNJrIzG; 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 c21si7365721eja.329.2021.02.06.11.02.11; Sat, 06 Feb 2021 11:02:36 -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; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=gDNJrIzG; 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 S230421AbhBFSAw (ORCPT + 99 others); Sat, 6 Feb 2021 13:00:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230415AbhBFSAv (ORCPT ); Sat, 6 Feb 2021 13:00:51 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E38BC06174A for ; Sat, 6 Feb 2021 10:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pJ9l0Gm7ttcEwsXpjvfTeDJEweWQHyzuCvwSEpB3874=; b=gDNJrIzGbydqUakJBySlA47p+h bQwtbp3uIxAox1SGrkesAHq/YJ3NlgBthxY09Uu6+QfQmkZUIKzxrBlKHVuBg4/CiZPPf5J6RqXQd kayvZfBFEbedtbwE2Bu/mFHcJRa4ODkHO3i1dZGvWyK/A01IcC0xsqdVKvd10xC18t4c=; Received: from p200300ccff3272001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff32:7200:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1l8RsD-00022M-8y; Sat, 06 Feb 2021 19:00:01 +0100 Date: Sat, 6 Feb 2021 18:59:56 +0100 From: Andreas Kemnade To: Paul Kocialkowski Cc: Discussions about the Letux Kernel , "H. Nikolaus Schaller" , Rob Herring , Frank Rowand , Linux Kernel Mailing List , Yong Wu , Robin Murphy , linux-arm-kernel Subject: Re: [Letux-kernel] 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: <20210206185956.64921c80@aktux> In-Reply-To: References: <81FE44A3-38C8-4B78-BB77-C09B4FC80B0A@goldelico.com> <13D0EFBB-E2A1-4BA3-9F99-CF2B85127074@goldelico.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.0 (-) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Feb 2021 16:10:18 +0100 Paul Kocialkowski wrote: > Hey, >=20 > 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: =20 > > >> 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: =20 > > >>>> 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 ag= ain. > > >>>>=20 > > >>>> IMHO it seems as if the display DMA of the pinephone (allwinner su= ni-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/ma= iling lists > > >>>> if they are missing. =20 > > >>>=20 > > >>> This may not be strictly the same thing, but is this patch in your = tree: > > >>> https://patchwork.kernel.org/project/linux-arm-kernel/patch/2021011= 5175831.1184260-2-paul.kocialkowski@bootlin.com/ > > >>>=20 > > >>> If not, it's worth a try to add it. =20 > > >>=20 > > >> No, it hasn't arrived in v5.11-rc6 (or linux-next) yet. > > >>=20 > > >> But it fixes the issue. =20 > > >=20 > > > Great! The patch should already be on its way to the next RC. =20 > >=20 > > Fine! > > =20 > > >=20 > > > And nice to see you're active on Pinephone as well! =20 > >=20 > > I have a developer unit and the LetuxOS kernel already supports it a li= ttle. 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 > >=20 > > Sure, you are well remembered :) > >=20 > > I still have the dream to revitalize Replicant 4.2 for the GTA04 just f= or fun. I can already boot to Replicant touch screen with a v5.4 kernel. v5= .10 fails when trying to spawn zygote... =20 >=20 > Oh I see! I think Android has made some significant progress is its abili= ty > to use mainline (4.2 was an early stage and I remember having to backport > patches to use some mainline features back then). >=20 > Maybe it would be easier with Replicant 6, but you'd have to go through t= he > device bringup phase again, which is never nice. >=20 well, we have done some experimental Replicant 6 images, but it is unbeleavable slow. Do not know why. The bootanimation process(even though there is no "animation") draws a lot of cpu power. Regards, Andreas