Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9CCECC433EF for ; Thu, 9 Jun 2022 19:26:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A0452843C0; Thu, 9 Jun 2022 21:26:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id C8757843AF; Thu, 9 Jun 2022 21:26:29 +0200 (CEST) Received: from sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B9B80843AF for ; Thu, 9 Jun 2022 21:26:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=mark.kettenis@xs4all.nl Received: from localhost (bloch.sibelius.xs4all.nl [local]) by bloch.sibelius.xs4all.nl (OpenSMTPD) with ESMTPA id 948af934; Thu, 9 Jun 2022 21:26:20 +0200 (CEST) Date: Thu, 9 Jun 2022 21:26:20 +0200 (CEST) From: Mark Kettenis To: Alexander Graf Cc: xypron.glpk@gmx.de, agust@denx.de, sjg@chromium.org, mbrugger@suse.com, da@libre.computer, u-boot@lists.denx.de In-Reply-To: (message from Alexander Graf on Thu, 9 Jun 2022 21:04:37 +0200) Subject: Re: [PATCH 0/6] Add video damage tracking References: <20220606234336.5021-1-agraf@csgraf.de> <50a4149c-e4ff-f834-2bdf-0ba334e8a933@gmx.de> Message-ID: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean > Date: Thu, 9 Jun 2022 21:04:37 +0200 > From: Alexander Graf > > On 07.06.22 10:28, Heinrich Schuchardt wrote: > > On 6/7/22 01:43, Alexander Graf wrote: > >> This patch set speeds up graphics output on ARM by a factor of 60x. > >> > >> On most ARM SBCs, we keep the frame buffer in DRAM and map it as cached, > >> but need it accessible by the display controller which reads directly > >> from a later point of consistency. Hence, we flush the frame buffer to > >> DRAM on every change. The full frame buffer. > > > > Isn't a similar problem already solved by CONFIG_VIDEO_COPY? > > > > Leaving the frame buffer uncached would convert the ARM problem into the > > X86 case? > > > It solves a similar problem, yes. However, it requires us to allocate > the frame buffer size twice, and we would need to dynamically toggle the > MMU mappings of the frame buffer to WC instead of cached. That's code we > don't have today. For the Apple M1 the framebuffer is covered by the "memory map" and maps it as Normal-NC, but that is because the framebuffer is already set up at the point where u-boot takes control.