Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4360929pxj; Mon, 21 Jun 2021 21:08:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoGpyZ2YHTPlhbfuotun23dCcFroqvwE40XIzQZSlHk2o82WRI4U+6mbD0IWVgImdVzYrB X-Received: by 2002:a17:906:7212:: with SMTP id m18mr1648578ejk.351.1624334925989; Mon, 21 Jun 2021 21:08:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624334925; cv=none; d=google.com; s=arc-20160816; b=T3peolm8p1oFQ0JBiKGIZcrCCOc26g7tbHTxAdLkW3ggA9H8lsz1IYxkyJiR+MHVVm YBeg7hTRsHGOQ/TaJhxma1pwPnGgD4mpaP7/k2SAzBw0QWqOP1Y58pHH5PcWf96jdgyb OU5zrSl7DhiabmlCFltEp+jeWgW35K6/SkSMbgOy5R/OCJVTVw72GIHni9CqQdeNkuOv u75g+3y176Rm2QwmL93IpZjrsSeZGWH5k8peE68OV+Z0T9lr+53xY+E+RlY6FXvnK93X eNd0B+KVjmMZeXYOwH4ldwecAPRR/8n6n7fpdezeG+tnx/8wtgaaP+NdSJxYmilsh9Gt K70Q== 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=fDlc9TgaOD99jTxAWrDaocLPhWL0A0Lj9SHYh7Mvk9o=; b=TPh/c71jTTVu5BuQbRsBpEns7OEW0sc4/X/5wGWCuaQpctHWSYHL97DZSO/+2qo3qI hEP0wrhNhpk7j0BmvLjEUF9SZsaOyiM3WZ4XbF4W524+pGjD7EERPUScepzlrAbDy1c5 shUa/LZu2sOpDWUg/UFPSlojfLSONmHxOtz6WZDbejEn54IJ16/LYGZ4HweswlkMOa/q Bz1Zl28Xt+sRoTcgV68F0+vYiaIaBNmTq8rkZcdHu1ea/xVTqsdz6mr+MNm6zjuQMOY5 pypPhTACDoS0MDfiP+TM3uT41AtIt/or1k0GnuL6npoTIfd9gphzUhfB9PaIERaHJqk/ Jk/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20150623.gappssmtp.com header.s=20150623 header.b=o0yFPlq7; 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 d19si5650782ejo.229.2021.06.21.21.08.23; Mon, 21 Jun 2021 21:08:45 -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=o0yFPlq7; 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 S229690AbhFVEGE (ORCPT + 99 others); Tue, 22 Jun 2021 00:06:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbhFVEGA (ORCPT ); Tue, 22 Jun 2021 00:06:00 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA14C061756 for ; Mon, 21 Jun 2021 21:03:44 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id g6so15402786pfq.1 for ; Mon, 21 Jun 2021 21:03:44 -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=fDlc9TgaOD99jTxAWrDaocLPhWL0A0Lj9SHYh7Mvk9o=; b=o0yFPlq7pxYmbagKCCg+kimNiPNQn/TmmpLhgBCc4+gKAdI7guTaFh2HLcqRgOS+Y2 N31G1dYSTwJFSZONsIs6aTmlvFyMWs7sUSs6w5r2lIeIl7U7eAi64P51JFyLNIVopMIe clgwoPZrwBAPqe177UXF7XDOkjJEPcpxs/DLMSjcqe+emsSTFic8ZBcNj2+ZCBmsRZSL pIaW4QYUGKMmZVLpKimMt2ZiXi24RBko8/fxW56iwZZhUKa4Z5Yz0RJB7pLrd6CGGysv 4XFfuEt1cuayw5S6wYtqWNXLKq10QMJK/uZ2WyJulx4ckrvePNwDHZkP4e9ANEJGr9uu 3nLg== 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=fDlc9TgaOD99jTxAWrDaocLPhWL0A0Lj9SHYh7Mvk9o=; b=pc1XiA6g0dMrSbN6LPKQo0aisNno1wNGFfoQJR7l7eUDUP6AR5aqeqHbt2HxqNuOq7 5jbXG6Fm9GPaojak1WjqtSTI3SQEWp8iPz/Nfyqu2JLsKdCmPYVLbF1SXSs7d4+1tNRn 0LmQ2KZDG9+8Nb56d9DJFlxycK/jWRZJ3G2IZzM6zK54eAg9QbMljF4vu7tdcSo5yiV3 v0x3YwA1iS/znJb1TiTPgBZ5i9SansJBefrK51FU1zdIp9cRo0jtVKshLokhtfbl6+u9 YOEzfP7LaziWfc/STJZBF+7tK2bUrtUFEDlQ1fdw1ZN+TDZ2PZl+xvJZp0qY3P4Lox0r LkCA== X-Gm-Message-State: AOAM531z8+TAKiCTfIYiBMueUlVTP1rvUitxkxm8xZhIOMriuLAq7Y42 LgO2nHyI0AGC2eYmBetUQZmWJw== X-Received: by 2002:a62:b618:0:b029:2f9:f3b1:8afd with SMTP id j24-20020a62b6180000b02902f9f3b18afdmr1572467pff.81.1624334623646; Mon, 21 Jun 2021 21:03:43 -0700 (PDT) Received: from ?IPv6:240b:10:c9a0:ca00:5192:32ad:e5be:23cd? ([240b:10:c9a0:ca00:5192:32ad:e5be:23cd]) by smtp.gmail.com with ESMTPSA id 20sm16946099pfi.170.2021.06.21.21.03.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Jun 2021 21:03:43 -0700 (PDT) Subject: Re: [PATH 0/4] [RFC] Support virtual DRM To: "Enrico Weigelt, metux IT consult" Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , Kieran Bingham , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Damian Hobson-Garcia , Takanari Hayama References: <20210621062742.26073-1-etom@igel.co.jp> <7cde82a9-c60c-e527-eeac-eaad0c5842a1@metux.net> From: Esaki Tomohito Message-ID: <1cfab5f9-f275-aa53-00de-5da3fcea71c5@igel.co.jp> Date: Tue, 22 Jun 2021 13:03:39 +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: <7cde82a9-c60c-e527-eeac-eaad0c5842a1@metux.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. We want to separate the resources from the master in units of planes, so we proposed virtual DRM. I think the advantage of vDRM is that you can use general DRM APIs in userland. > I don't think that's not the way to go, at least not by touching each > single display driver, and not hardcoding the planes in DT. Thank you for comment. I will reconsider about DT. > What's the actual use case you're doing that for ? Why not using some > userland compositor ? 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. 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. On the other hand, if we use vDRM, the image will be displayed at the next VSYNC, so it will be displayed after 1 VSYNC at most. Also, since the compositor is a single point of failure, we may not want to make it dependent on it. Best regards Tomohito Esaki