Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5454232pxj; Wed, 23 Jun 2021 01:22:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjRD+BCi5wzGEP7/i/8lumOkycIYiVpAfg7xUD3cMp86QTVoIaGWEbtrP5xubl0vfNA6Hj X-Received: by 2002:a05:6402:90a:: with SMTP id g10mr10572673edz.365.1624436564909; Wed, 23 Jun 2021 01:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624436564; cv=none; d=google.com; s=arc-20160816; b=aS2zMQFRps/AvEOjX23WRksoADxBx3+ty9v6yUIdQihsinoELdyKt5zU6//alXmj4e moMyt5YYhpYbmG7zWHyKv23+7Sf/HPwWHGSejz9IAadYw7R933RQhXwNeTSRsqsKmjtg JxCfVQMvdcmfxavZm7UZ8fjqxNpH3AjIfW5Yvsu5bQUafthPbS1t9VnatcNcgNwZLs6r O8VdxUi6McoEFlmtxz8SyF2DNUlEROYw7QrKlQMHp33Tt1Z5EyOqGcrdignusbz61Of7 I0R1YtgYf2rpPcdG7JJMX2Ut7oF54oUUFM72C0BVBQH5//2xqdSE3cgUTNGSQgBd7qE6 v3mg== 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:from:references :cc:to:subject:dkim-signature; bh=/vpjqLnLja8zZg9F85wBmeicNZJ5E0kfTwub6S5I0nY=; b=aVwg6LeI/kaE2VetZZcfNaklyIPeXTlsXNp0t9gLz4a8dN8yX/VpDDKIlpEM7i60Yc +4F8RYDqw6fpDN0RGY4tdYjOOHsrnORm2YLeevGXZw5Wn5zqGv+Dj33zjB8lzI+lW4Qj cShcMVZya5Hbjg4xtRt6CyYqKLnPvSHKxRJi2N5KldA+1bLHtZ1noU1a812Fw1XvK2Hm LDXnFvFzc/0X4gIXT04Jg7XZOMWoLRUmgXVXnzN7h3qKeH7zPaOYCpVfUcCniwGsl13z rV91UsemnbILgG8kA0M/wHLFqD+lK6PVltoRJOqK3LukcgreJxqAsX6okgRvB14kdy0b jmmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20150623.gappssmtp.com header.s=20150623 header.b=qyjoMEne; 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 gf1si16652956ejb.318.2021.06.23.01.22.22; Wed, 23 Jun 2021 01:22:44 -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; dkim=pass header.i=@igel-co-jp.20150623.gappssmtp.com header.s=20150623 header.b=qyjoMEne; 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 S230052AbhFWIXp (ORCPT + 99 others); Wed, 23 Jun 2021 04:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbhFWIXp (ORCPT ); Wed, 23 Jun 2021 04:23:45 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 384E5C061574 for ; Wed, 23 Jun 2021 01:21:28 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id 69so773820plc.5 for ; Wed, 23 Jun 2021 01:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/vpjqLnLja8zZg9F85wBmeicNZJ5E0kfTwub6S5I0nY=; b=qyjoMEneFPyQG6FmpAm+blLv6qUuFnSfiHq9cwsD6vkL+N14a/IYUIUTUqOY2t15qU orTFA+SzPPKYQEg/vg6aUJWkEx4TNqvO2RtgVWJyvQui+pZ/TnKX2y/OlFv2vaDUb+hu VkuvJASiJfLUZ1yJJ2NAquzoKz2lDAduMIwIg8GEvgocPlEJinWAs1aMnQ9o5SDiwVWA Tb+Cfp7SYSHZRtDLkBPMD1NQlBDQEHQ3ig7VsNPKaUOn3isd1x2Ziyr37iLaozV2eDeS lGHyBldZdyHiqvHwnT6yiHmAVW525lIsaTkLsMit19GQWxbdY/vVswfJvppCEZBlKmwE JnGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/vpjqLnLja8zZg9F85wBmeicNZJ5E0kfTwub6S5I0nY=; b=QWKyltr0sm7gn9zvX2pfB2IFrr5i9uZeSUR4VLAvvv1vnKt9eoSKot8joHE0U+dLkU Zst6ew/sqJNF+/tm468pq4T/W2ENuKDq9NjJSntTd10gVrqs/B9U3CAE9mA7JsSlJRlv +Gisw7KSbC5YbHOPs5QC9hmxzy9+YFMm4G42y9Rmr81dASq9VS5alfjBPXmMpwwQYhVd Grk4bN+ouH/HHenMSjwR1YMhu6fVaONII+Dd/yVsHGBxQYCv30WRv9FhJVTdD+kLyVNq AMnmBJdJ4sFkXzJs7muXqFtUBGiwkOtO8xjDTqNjTWP8O2+w37xRLoKvnLbGpBrfhOnV YAUg== X-Gm-Message-State: AOAM530KUseodM+7+5Af51Lc4RsHHt1IhRjJqPkhoIaSL/RGlSufo9lh VKbW8NmRX606FslWhtBsI3GS2g== X-Received: by 2002:a17:90a:4ec8:: with SMTP id v8mr8506910pjl.178.1624436487667; Wed, 23 Jun 2021 01:21:27 -0700 (PDT) Received: from ?IPv6:240b:10:c9a0:ca00:1102:c007:eee:4478? ([240b:10:c9a0:ca00:1102:c007:eee:4478]) by smtp.gmail.com with ESMTPSA id d13sm1552726pfn.136.2021.06.23.01.21.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Jun 2021 01:21:26 -0700 (PDT) Subject: Re: [PATH 0/4] [RFC] Support virtual DRM To: =?UTF-8?Q?Michel_D=c3=a4nzer?= , Pekka Paalanen 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> <01a20860-8fe2-2762-5678-d9a75f70e20a@daenzer.net> From: Esaki Tomohito Message-ID: <0fd18324-f396-ba76-1c8b-d048e5b72dca@igel.co.jp> Date: Wed, 23 Jun 2021 17:21:24 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <01a20860-8fe2-2762-5678-d9a75f70e20a@daenzer.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/06/23 17:04, Michel Dänzer wrote: > 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). Thank you for providing specific examples. Best regards Esaki