Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3505989pxj; Sun, 20 Jun 2021 23:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMTrk7nutZiopoN4NNtsp4L1k4cuEgs3DAJaSregN1RwUluQGUj04frbl8Sw5O1zaInuGQ X-Received: by 2002:a05:6638:380b:: with SMTP id i11mr1332904jav.57.1624257100173; Sun, 20 Jun 2021 23:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624257100; cv=none; d=google.com; s=arc-20160816; b=jc6irsDpTJx3DQg5CjGSo6rMNlPwJAogsHChNGd15fO0xDSzChvK8hCpfxbyzYJgyV Xgye+y5ZmM4XQb1zXihCFeVc+yLwSdQax4BeaL/D6Q3bfbXCEvEWfTcW3edj48ruxglK xf/iaJaLlLCnC3h+3AtR0rrYYIg407H0/QrO2wsh6WAnE84wWPYz/gEYdmjaiElvO06s oAhv9Z5S1S1+Qj9Y6pK0UkZeh+1LVLhV9ZuQCtsn8kjKaW3rz8osjIEiI3Y60JgTWUNM w9EB8NyX5bsjlvedZc22uMSMOX0018PKiD3eueg7h+st6txdOKqCCnGMjghEN/S4DAwq pX7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MByV6cpfz5xYL+DMP3l1hiWnj/Gzo6aYK3LpWdzWngw=; b=MQKouDCatwmCb2vYKpKOtgDgz7HBFDBFw1zta5mKwmQZ24L6pVBRVK3+xONITdr82x MC+rdWyBj4TttQ/O0VLdf4iVm8L1KPO9vH0XcEAymgW+oj0+g9oNmwGH79DvTM+tPccf 2YHXOadnVYmz0Jv3Zx4JmMU0TyfH/ukHkgsieixw1mkbYcYMw3tpI/4kWjmInOIARQl1 4yKwePI3LHG+tzhSF+woxyl5WVHYJYLNWKscl8CVcFJrCZzqC7tYxYNdggh3pK3ACHCY sXg4+iMFejUMjox4/xjoTPQx5yt6FXJKMZxszxUZlgeu4dDvL+YGIvczsoJtNx7nnkzT AO4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@igel-co-jp.20150623.gappssmtp.com header.s=20150623 header.b=INBgOxS5; 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 u12si13923890ilm.99.2021.06.20.23.31.28; Sun, 20 Jun 2021 23:31:40 -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=INBgOxS5; 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 S230332AbhFUGcG (ORCPT + 99 others); Mon, 21 Jun 2021 02:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbhFUGcD (ORCPT ); Mon, 21 Jun 2021 02:32:03 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 556C0C061768 for ; Sun, 20 Jun 2021 23:29:48 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id m17so4787426plx.7 for ; Sun, 20 Jun 2021 23:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MByV6cpfz5xYL+DMP3l1hiWnj/Gzo6aYK3LpWdzWngw=; b=INBgOxS5FqMrlNPVd6fydqECStt/0aXOX0ms8c86Xm9H5Czt0SAQViPwSHhxqBbA6L qRcQJRg1tLpFi1jd3YRlM9TPQAZEe9vlHLhIUZG2/tofLM97F6HSJ+0V8vqo94igM0QH Ve8BQkLBbpytMccLcNA83ZAOnFZ+Me8pWT90vJexeneqr1mlK5lFROQo4VxlAEaL/0z8 renQqq6zpBQB/+AYALWZ0i2wq0qJiZfNmj1jhfTdYDUTyUEd2UWY4AglxcN1qo03oekA YqZftYh5Yp6gT59Hg90rmIGFE1TTTFn7I2zjPlvTg7dVjOBkzngLkwHezWdFVpAckuai 8vtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MByV6cpfz5xYL+DMP3l1hiWnj/Gzo6aYK3LpWdzWngw=; b=bzKJklAotUYXaau4J7tAFpwS2DxqrF4NBM3cuNEoz9Ej2zW+Rs0PVvTGPW2kHfPDLB hF9CnDfIqx4PwxmAESYojpBwiZdNlpvIe29Hetj2XVcq5OaenSxSh2NRwUfAvYihCPl1 xcDTkHvwY8GnSFMnkxckyHTJP10e+bq2KP+swx1RSqa9hH6/3ZHhvQhb5hd8kJKlYAOl 2bcjfvg15E92H+gndoAym3jWUtwh71qNbylUOSeKP6JGnzMDkFyyahBZN61PU3EsjcHL ZTZ1KFY/alLCFz8to8H/kzenJ/WMdHxVLE7540Kl6tt48f2Ty/W6XXvopLVrEN0jrxMI TY8A== X-Gm-Message-State: AOAM533U2t1E3We7HhQ/5QroOEJQPrxh7hBFAVt7aSw/WE54F7N3sxt5 h1QmIXRGQJXonJ+WDYoQOj7WSGiS3f4KnMUJ X-Received: by 2002:a17:90a:ab96:: with SMTP id n22mr25432272pjq.92.1624256987850; Sun, 20 Jun 2021 23:29:47 -0700 (PDT) Received: from localhost.localdomain ([240b:10:c9a0:ca00:61b8:26ec:dc30:8823]) by smtp.gmail.com with ESMTPSA id j19sm15266018pgm.44.2021.06.20.23.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Jun 2021 23:29:47 -0700 (PDT) From: Tomohito Esaki To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , Kieran Bingham Cc: dri-devlel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, Tomohito Esaki Subject: [PATH 4/4] doc-rst: Add virtual DRM documentation Date: Mon, 21 Jun 2021 15:27:42 +0900 Message-Id: <20210621062742.26073-5-etom@igel.co.jp> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621062742.26073-1-etom@igel.co.jp> References: <20210621062742.26073-1-etom@igel.co.jp> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Tomohito Esaki --- Documentation/gpu/drivers.rst | 1 + Documentation/gpu/vdrm.rst | 51 +++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 Documentation/gpu/vdrm.rst diff --git a/Documentation/gpu/drivers.rst b/Documentation/gpu/drivers.rst index b4a0ed3ca961..bad0226de972 100644 --- a/Documentation/gpu/drivers.rst +++ b/Documentation/gpu/drivers.rst @@ -19,6 +19,7 @@ GPU Driver Documentation xen-front afbc komeda-kms + vdrm .. only:: subproject and html diff --git a/Documentation/gpu/vdrm.rst b/Documentation/gpu/vdrm.rst new file mode 100644 index 000000000000..2ab1699c2f42 --- /dev/null +++ b/Documentation/gpu/vdrm.rst @@ -0,0 +1,51 @@ +============================= + drm/vdrm virtual DRM driver +============================= + +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. + +The virtual DRM creates standalone virtual device and make DRM planes from a +master device (e.g. card0) accessible via one or more virtual device. However, +these plane are no longer accessible from the original device. +Each virtual device (and plane) can be accessed via a separate device file. + +The virtual DRM driver doesn't directly control the display hardware and has +no access to the physical bus. Instead, the virtual DRM driver issues requests +to the standard DRM device driver ("master" driver) when the hardware needs to +be controlled. The master driver is modified to notify the virtual DRM driver +of interrupt events from the display hardware. + +Plane position and size +======================= +The initial position, size and z-position of the plane used in virtual DRM is +specified in the device tree. The position and size of the planes are set as +properties and can be updated. The name of each property is as +follows: +* vdrm_offset_x: x-coordinate of the left-top of the plane on the screen +* vdrm_offset_y: y-coordinate of the left-top of the plane on the screen +* vdrm_width: width of the plane +* vdrm_height: height of the plane + +Virtual DRM Functions Reference +=============================== + +.. kernel-doc:: drivers/gpu/drm/vdrm/vdrm_api.h + :internal: + +.. kernel-doc:: drivers/gpu/drm/vdrm/vdrm_drv.c + :export: + +Driver limitations +================== +1. Each virtual DRM device only supports one plane per CRTC. + +2. Virtual DRM doesn't support hot plug connector. + +3. If virtual DRM has multiple CRTCs, the initial position and size of the + virtual DRM planes is the same for all planes, since they cannot be set + for each plane in the device tree. -- 2.25.1