Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5450174pxj; Wed, 23 Jun 2021 01:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzYslW2w59wosqnCH/weyRijDCmE61V6XNstHNLHf1yFexrvAW9Dq3WkEczzYpjXmwhpC+ X-Received: by 2002:a02:914a:: with SMTP id b10mr7805133jag.59.1624436190303; Wed, 23 Jun 2021 01:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624436190; cv=none; d=google.com; s=arc-20160816; b=i3h4aSJ/eg0lteOwBVZ1F0ozxjGhl1HCYi3IeaEAEwaQIBVBWS9z+DS974OwI7jmaK 8saTZdpZmTpMe32Ff6kksGoO7dWQ6/oGQEGmepo3F7L3vy/iZAu/nr2RzZ9L9r2uboFi qirHyBixbr+6EqKMTPtUemZdYlDWsXy/SgmbCEqzG9+W5kkOW4NDn3wnm2e/XWEpSZV3 jG4l2NrrWEYAzt5UA2ov3aTZqqYLMulluEPgdAxvsUXu9MivoeXZpxLcqCXBr+NPXPDw 4vcrtPCrMLwYDINxvuxjJ0IKyortTWMWCqjMFTTJand4f+GXexVmgfhmeJQ6XpnCutdq N5mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=4KEMEX/D0bdSvyFmfeH3nB602Ea4yUrQ90Wb3aQnH+M=; b=FaIfz0KJfTtzB7HJfshFiTvcup25oYG+lz5foR2EV///Y+iY6R/SHxuqF4aiIanuqF RZ8hnaDMS8zkQJlp4N2ZFLYgrDjewMCFpOt+s/VdPgUWW5gYiaBHppqDzBy+rFCz+zn4 CGIMqOudSDl6Cl9pL+cSlAjn96361loYrGhpo2PfFzo+hTkslQHC67Ata1NFarWkbf3+ RMcMMBeRHwOWmZy6CrnqZCmWB2OrauTjdwFWCHuBxozwQlFOUnc8luFBGeaklNE55Ejg u7ASQxJ2DVtIR/FfWlkxuIyth6nlq+M8gIuTrjdotrKJ8xruqzf7CN019VXtUlLtOQzN nl0g== 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 t17si2219896jaj.108.2021.06.23.01.16.18; Wed, 23 Jun 2021 01:16:30 -0700 (PDT) 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 S230151AbhFWIQq (ORCPT + 99 others); Wed, 23 Jun 2021 04:16:46 -0400 Received: from mail.netline.ch ([148.251.143.180]:51934 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbhFWIQm (ORCPT ); Wed, 23 Jun 2021 04:16:42 -0400 X-Greylist: delayed 566 seconds by postgrey-1.27 at vger.kernel.org; Wed, 23 Jun 2021 04:16:40 EDT Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id A5F4F20201B; Wed, 23 Jun 2021 10:04:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 79HC0Bm0bZjt; Wed, 23 Jun 2021 10:04:54 +0200 (CEST) Received: from thor (24.99.2.85.dynamic.wline.res.cust.swisscom.ch [85.2.99.24]) by netline-mail3.netline.ch (Postfix) with ESMTPA id 9EB0E20201A; Wed, 23 Jun 2021 10:04:53 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.94.2) (envelope-from ) id 1lvxsN-000klp-H7; Wed, 23 Jun 2021 10:04:47 +0200 To: Pekka Paalanen , Esaki Tomohito Cc: devicetree@vger.kernel.org, Takanari Hayama , linux-doc@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Kieran Bingham , Laurent Pinchart , Thomas Zimmermann , Damian Hobson-Garcia References: <20210621062742.26073-1-etom@igel.co.jp> <9853d0a9-6053-db64-9c79-40b7e0689eec@suse.de> <85593f2f-5aa9-6023-ecba-c5275a468b71@igel.co.jp> <20210622105757.2b9dec32@eldfell> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Subject: Re: [PATH 0/4] [RFC] Support virtual DRM Message-ID: <01a20860-8fe2-2762-5678-d9a75f70e20a@daenzer.net> Date: Wed, 23 Jun 2021 10:04:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210622105757.2b9dec32@eldfell> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-06-22 9:57 a.m., Pekka Paalanen wrote: > On Tue, 22 Jun 2021 13:02:59 +0900 > Esaki Tomohito wrote: > >> Hi, Thomas >> Thank you for reply. >> >> On 2021/06/21 16:10, Thomas Zimmermann wrote: >>> Hi >>> >>> Am 21.06.21 um 08:27 schrieb Tomohito Esaki: >>>> Virtual DRM splits the overlay planes of a display controller into >>>> multiple >>>> virtual devices to allow each plane to be accessed by each process. >>>> >>>> This makes it possible to overlay images output from multiple >>>> processes on a >>>> display. For example, one process displays the camera image without >>>> compositor >>>> while another process overlays the UI. >>> >>> I briefly looked over your patches. I didn't understand how this is >>> different to the functionality of a compositor? Shouldn't this be solved >>> in userspace? >> >> I think when latency is important (e.g., AR, VR, for displaying camera >> images in IVI systems), there may be use cases where the compositor >> cannot be used. > > Hi, > >> Normally, when the image is passed through the compositor, it is >> displayed after 2 VSYNC at most, because the compositor combines the >> image with VSYNC synchronization. > > This is not a universal fact. You can write a Wayland compositor that > consistently reaches app-to-screen latency of less than one monitor > refresh cycle, while also using KMS planes. > > I believe Weston succeeds in this already if you write the Wayland > application accordingly. For a specific example, https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1620 allows app-to-screen latency as low as ~6 ms (including a fixed 2 ms buffer to avoid skipped frames). mutter doesn't use KMS planes yet, but if anything I'd expect that to help rather than hurt for latency (if the compositor doesn't need to draw anything). -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer