Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5492192pxj; Wed, 23 Jun 2021 02:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQo/Jl7nf3KuNe3stHQDYEFIwOYBqrcCxzlDj/IlNqJfaOzWpGYbs9E4EyeS2gxFD7kTD/ X-Received: by 2002:a5d:8b8b:: with SMTP id p11mr6482845iol.77.1624440224018; Wed, 23 Jun 2021 02:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624440224; cv=none; d=google.com; s=arc-20160816; b=lcD9reYqsbm8PtB06eZedWUPGwOylT+pWxRma2UieOal+/KYxUDHNKGecsDCSgCt2i y+w3FK4XftYU+QgOylttgId2Xpe9euZLaziR09docLNavNyViPIAfGqw1TbuhG7pw/Lo z7bwUxaIVph4ufuHLOTj2GkwQJO3TfLSxddWdXYsNSpszVTGFyUpC2Dhv9MCV8k90pZ/ jLgIbWUQwrAFH5Oy8HEnUOB8/YCDRyBucjnlgWEu5EDbul/6mZcY0M0camIIJGzCw/Y+ 0GMvKgsvbUXEhO4Z/pl/h2eLhFwwYzojw2WllHnpff48tallAPlaIk422Emjmt0hMaWu HVlQ== 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=XCajk1HrAlj47wC3+mkOuYZYpFGTdG0u/TJUK9omw44=; b=xi9yd/QdmGrAk6IVXru3Wz3kKD0RtLe6vqxmRQ4SmiKcUcsYhIZW5048yAEUexn3p+ bmArJfF3/lo5U/kkWepsGrz46EVGCtulIHw4nJcygXUkeymyC32Eq7zG81OcGZL6jCx4 Uin//8srZWiZBdYygNQCkKkTejGLEdd3/xFJgvS+9vvs2EM5rJnlH/7aeerhiChRyKK0 QpdvaIKjQN6BrK5eYiXKrW1yzqTTznPpXUdCiqV05H3Dxq+TFHCY+b99AlGKS+SprWjb +N3Mj91Fwa7L362Kq3kalyRzyyHNPUOcC08f8G1y2iiE2mhfXlScN2GQixNihvDqMruV b/fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20150623.gappssmtp.com header.s=20150623 header.b=ZjaDBmTS; 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 s10si24580852ioj.5.2021.06.23.02.23.31; Wed, 23 Jun 2021 02:23: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=ZjaDBmTS; 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 S230135AbhFWJZJ (ORCPT + 99 others); Wed, 23 Jun 2021 05:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230044AbhFWJZI (ORCPT ); Wed, 23 Jun 2021 05:25:08 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6567BC061756 for ; Wed, 23 Jun 2021 02:22:51 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id b5-20020a17090a9905b029016fc06f6c5bso1006019pjp.5 for ; Wed, 23 Jun 2021 02:22:51 -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=XCajk1HrAlj47wC3+mkOuYZYpFGTdG0u/TJUK9omw44=; b=ZjaDBmTSrHRM+Wans1JDGrXnF8h56nSyQWJrnDOhiSu9Q2czUooggcFrZeW5OrFfGe 4InlIJCaoDJvC2qM1tPyx5lrta50x/dPQl987+0qPfsgKDObwYOPDB7LmJS8+1QJB6Ww rS4dOgQLwHHqitlVJ9tG0jT4jxLfdMi+JjSzv7Ow1bmZGT5tnQ66jeeP+GqznH6E+7lp thH4WClVdZFYI68gRa5P93BRi8ycisjAk5KtuygYecegAGiEiByTGSGKIi1V/awM5lFS qvSiNzLRZFXxpal4mpSeK0GodO80oZtbqoDYsqQ5OFx5ifVecqcyFaVxnOkGI1Ao75tN jbtA== 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=XCajk1HrAlj47wC3+mkOuYZYpFGTdG0u/TJUK9omw44=; b=e2nLfxZ20vfQ5nX+u1mNKcM8lNIuEKykO60Lq7WDXGW1xIpXMT2u9luzxA8C/BCzfv uGXPY/SsrlMatxfCRFP0JWK+oYE4Y9NTBkq7syBGTeAyXSXcF63j5viCdOBnur8RXRNA TiA4eQhKiSSgNiid2e/NuLsZmutnY5LCvJgHSpVkKy6hnAWXsAbZ0owRK19DFluCiK0m 0mOxZVbMnhMv5HjBWMU7GkBlX5hlbwKuFljc+DsAYxm5Q/j7wlHl8KH/HveXjjkMTiLg QpGgH8gzJ3ZRLyTsBaH3IhkuaM2D/fF9Fl7yp0Q9/fwOZkJvwS1EvC0Xtf7ohs6ihsLp DIzA== X-Gm-Message-State: AOAM531trfWZ8NFuiyVP6LkcbZdLaa2zBYcmtyGws7Ur1wMt6pkW/Kc7 UuQWS4dK73uGSGfdnEer1YQe8A== X-Received: by 2002:a17:902:8601:b029:11c:4b4:e967 with SMTP id f1-20020a1709028601b029011c04b4e967mr26767197plo.75.1624440170945; Wed, 23 Jun 2021 02:22:50 -0700 (PDT) Received: from ?IPv6:240b:10:c9a0:ca00:d428:46bd:365e:3555? ([240b:10:c9a0:ca00:d428:46bd:365e:3555]) by smtp.gmail.com with ESMTPSA id q9sm460pgt.31.2021.06.23.02.22.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Jun 2021 02:22:50 -0700 (PDT) Subject: Re: [PATH 0/4] [RFC] Support virtual DRM To: Pekka Paalanen Cc: "Enrico Weigelt, metux IT consult" , devicetree@vger.kernel.org, Takanari Hayama , Thomas Zimmermann , linux-doc@vger.kernel.org, David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Kieran Bingham , Laurent Pinchart , Damian Hobson-Garcia References: <20210621062742.26073-1-etom@igel.co.jp> <7cde82a9-c60c-e527-eeac-eaad0c5842a1@metux.net> <1cfab5f9-f275-aa53-00de-5da3fcea71c5@igel.co.jp> <20210622111239.73aa87aa@eldfell> <20210623113922.1e603139@eldfell> From: Esaki Tomohito Message-ID: Date: Wed, 23 Jun 2021 18:22:47 +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: <20210623113922.1e603139@eldfell> 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:39, Pekka Paalanen wrote: > On Wed, 23 Jun 2021 15:56:05 +0900 > Esaki Tomohito wrote: > >> Hi, >> Thank you all for your comments. >> >> On 2021/06/22 17:12, Pekka Paalanen wrote: >>> On Tue, 22 Jun 2021 13:03:39 +0900 >>> Esaki Tomohito wrote: >>> >>>> Hi, Enrico Weigelt >>>> Thank you for reply. >>>> >>>> On 2021/06/22 1:05, Enrico Weigelt, metux IT consult wrote: >>>>> On 21.06.21 08:27, Tomohito Esaki wrote: >>>>> >>>>> Hi, >>>>> >>>>>> 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. >>>>> >>>>> Are you attempting to create an simple in-kernel compositor ? >>>> >>>> I think the basic idea is the same as DRMlease. >>> >>> Hi, >>> >>> indeed. Why not use DRM leases instead? >>> >> >> In this use case, I understand that this is not possible with DRM lease, >> am I wrong? >> I understand that it’s not possible to lease a plane and update planes >> on the same output independently from different processes in current DRM >> lease. >> >> If this is correct, what do you think of adding support for plane leases >> to the DRM lease to handle this case? > > Hi, > > I would love to see support added for leasing individual planes, > especially to replace the virtual DRM proposal which seems to be > eradicating everything that atomic modesetting and nuclear pageflip > have built over the many years. > > However, please note that "on the same output independently" is > physically impossible. Semantically, the planes define what a CRTC > scans out, and the CRTC defines the scanout timings. Therefore it is not > possible to update individual planes independently, they will all > always share the timings of the CRTC. > > That combined with KMS not allowing multiple updates to be queued at > the same time for the same CRTC (atomic commits and legacy pageflips > returning EBUSY) makes the plane updates very much inter-dependent. > > If you want to avoid EBUSY and have planes update on the vblank you > intended, you really need a userspace compositor to pull everything > together *before* submitting anything to the kernel. Hi, Thank you for your comments and advice. I will consider leasing a plane. Thanks, Esaki