summaryrefslogtreecommitdiffstats
path: root/meta-agl-drm-lease
AgeCommit message (Collapse)AuthorFilesLines
2023-06-01Enable lease transfer option at drm-lease-managerNaoto Yamaguchi1-1/+1
When leaser side has two or more drm master such as splash screen and compositor, drm master need to transfer from early user(splash) to main(compositor) user. This patch enable lease transfer option at drm-lease-manager. Bug-AGL: SPEC-4777 Change-Id: I4e573200602a4ea06ba31d5b986f60ab0e166fc5 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
2023-06-01Enable drm-lease support at psplashNaoto Yamaguchi18-0/+4436
The upstream version of psplash is supporting fb based splash screen. On the other hand, drm lease infrastructure is not support fb. This patch enable drm-lease support at psplash. This work contributed by Hiroyuki Ishii at CES2023 demo development. Bug-AGL: SPEC-4766 Change-Id: Idd9a1f5c96c5e294099f2d9c2ef87c5ca5769c2e Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
2022-11-03agl-compositor: Fix drm-lease patchMarius Vlad1-16/+15
Synchronize with AGL compositor and update the drm-lease patch to allow the AGL compositor to build. Bug-AGL: SPEC-4601 Change-Id: Ia76c0de7269917cebe19c7b789b62646de1f7914 Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
2022-09-17drm-lease: Bump SRCREV to fix ptest build failureDamian Hobson-Garcia1-1/+1
Bug-AGL: SPEC-3848 Change-Id: Iafba35a4fedf81b09edef57d7610d3714023cbae Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-09-16drm-lease: Fix build error due to weston updateHiroyuki Ishii1-0/+0
The patches seems to be applied correctly without any changes, so we just use wildcard to avoid build error due to version mis-matching. Bug-AGL: SPEC-4564 Signed-off-by: Hiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com> Change-Id: I61ab8beb1e97190c58987bf54217a9553efa6c39
2022-07-25drm-lease: Update agl-compositor supportDamian Hobson-Garcia1-11/+11
Update the DRM lease support for agl-compositor to reflect upstream changes. Bug-AGL: SPEC-4472 Change-Id: I306e02a6a7cc0a7046531f8d2ee09d808e69fcbd Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-07-14drm-lease-manager: Enable systemd notify supportHiroyuki Ishii2-2/+5
We'd like to enable this for solving some timing issue between drm-lease-manager and lxc in lxc-host-image-demo. Bug-AGL: SPEC-4427 Signed-off-by: Hiroyuki Ishii <ishii.hiroyuki002@jp.panasonic.com> Change-Id: I60b7b0cfd8f5caee4cf0bfc9b9828edfd700b12a
2022-06-09Revert "drm-lease-manager: Add lease-manager deamon to runtime dependencies"Naoto Yamaguchi2-4/+0
The original patch added drm-lease-manager runtime dependency to wayland compositor recipes. As a result, when wayland compositor install to image, drm-lease-manager is force install to that image. In case of container integrations, drm-lease-manager shall install to one root file system image only. Because drm master (leaser) can run only one process in one linux system. This patch broke this limitations silently. The other images of rootfs with drm-master cause runtime error of drm-lease-mabager. This runtime dependency need to delete. Bug-AGL : SPEC-4373 This reverts commit 0452f5635eac8105a7fb3bd4fb78af1f016c7ee7. Change-Id: Ifc471f2597e43897c0c2315851258d62b832ac8e Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
2022-04-27drm-lease: Add missing pkgconfig dependency to drm-lease-managerDamian Hobson-Garcia1-1/+1
Make sure that pkgconfig, which is necessary for compilation, is properly specified as a build dependency. Bug-AGL: SPEC-3815 Change-Id: I107b410c5c27ec824cd446db1339bb9a3ab603a3 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease: Update support for weston 10.0Damian Hobson-Garcia6-181/+72
Rebase drm-lease patches and remove changes that have already been applied upstream. BUG-AGL: SPEC-3815 Change-Id: Id524d221f91d0bdbac44c148e2983fab900070eb Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease: RPi4: Disable DRM_AUTH checks on wayland_clientsDamian Hobson-Garcia2-0/+46
DRM authentication does not work via a DRM Leases because the client can only authenticate against a lease owner (primary node), since the lease does not have a corresponding device file in the filesystem for clients to open. Bypassing DRM authentication by using render nodes is not yet fully supported in mesa, so for now, just try to authenticate and continue even if it fails. Bug-AGL: SPEC-4317 Change-Id: Ie6c82162037964da697d3ece80a8c463980d2658 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease: add drm-lease-manager configuration for R-CarDamian Hobson-Garcia2-0/+9
Add a drm-lease-manager configuration file that reflects the available outputs on the renesas R-Car. Also adds the extra HDMI output from the kingfisher board if available. Bug-AGL: SPEC-3815 Change-Id: Idfccd63cbbba8e118df501e575625769f0ced293 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease: add drm-lease-manager configuration for RPi4Damian Hobson-Garcia3-0/+11
Add a drm-lease-manager configuration file that reflects the available outputs on the RPi4. Bug-AGL: SPEC-3815 Change-Id: I75971dae1abb8fdb8147c98a2e9ca928ef5b9fe7 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease-manager: Add configuration file suppportDamian Hobson-Garcia6-4/+47
Use latest drm-lease-manager version and add a generic lease manager configuration file. Platforms should override this with something appropriate for their system. Bug-AGL: SPEC-3815 Change-Id: I3c0a4b137e53dab7ff2782791cfca951e4c14e13 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease-manager: Add lease-manager deamon to runtime dependenciesDamian Hobson-Garcia2-0/+4
The build dependency only adds the DRM lease client package to the built image. Since the client and server packages have been separated, the server needs to be explicitly added to the runtime dependencies in order to be included. Bug-AGL: SPEC-3815 Change-Id: I60429ba0431dde8628b35eeac1a3ea72933c2a9f Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-27drm-lease-manager: Rebase agl-compositor support patchDamian Hobson-Garcia1-9/+9
Rebase the patch so that it can be applied to the latest mainline code. Bug-AGL: SPEC-4297 Change-Id: Ib0e413e6aa8e9079a8a2ab8af1ec2691ec00308e Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2022-04-11meta-agl-drm-lease: rename Weston bbappendScott Murray1-0/+0
Rename Weston bbappend for upgrade to 10.0.0 in poky kirkstone, this will at least avoid parse errors, further investigation is required to get the local changes building. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I17b3e5cea93bb097d48a5ce4e7964987191e4f50
2022-03-24Declare layer compatibility with kirkstoneScott Murray1-1/+1
For tracking upstream, we need to update the layer compatibility. Bug-AGL: SPEC-3819 Change-Id: I23423baa371ed1b8b4a9024d9ac6f0c4d7e48185 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2022-03-08Extend drm-lease-manager support - Qt6.x eglfs-kmsNaoto Yamaguchi4-0/+338
The drm-lease-manager has capability for other drm client support. This patch extend support. Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Change-Id: I6f4b66e63e8662dca4679f18955f7fc693bbdf3d
2022-03-07meta-agl-drm-lease: Add DRM lease support to agl-compositorDamian Hobson-Garcia3-0/+221
Allow agl-compositor to use a DRM lease as its output so that it can be run in parallel with weston or other applications that output via a DRM lease. This will also allow the agl-demo-platform GUI to start on boot when the agl-drm-lease dist feature is enabled. AGL-Bug: SPEC-3838 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Change-Id: I32f25eec1931fa93c563f5bc99edc9bfda132342
2022-03-07drm-lease: Make drm-lease-manager sockets available to video groupDamian Hobson-Garcia1-0/+2
The default udev rules give read/write aceess to DRM devices for members of the "video" group. Use similar settings for drm-lease-manager's lease sockets. AGL-Bug: SPEC-3838 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Change-Id: I214046d098905465a99ec9e9431496cb522173fb
2022-02-26Revert "BUG FIX: Some guest apps don't show own GUI frequently"Naoto Yamaguchi3-98/+0
This reverts commit 73c5c413ce8f3c9a0c47180bfd5df87494be9842. This patch is workaround for wayland-wsegl in BSP5.5. In BSP 5.9, this issue was resolved. GL-Bug : SPEC-4269 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Change-Id: I7bb3b83e6347b2ccce74389aad7df864f155068b
2022-02-26Update render node patch to fix build error in BSP 5.9Naoto Yamaguchi2-6/+8
After BSP 5.9 is merged, linux-renesus fail building in drm-lease environment. It causes bsp kernel change at https://github.com/renesas-rcar/linux-bsp/commit/cd7ad23ceb3cbe67263ded2621dda08b4583b0f4 This patch update old patch to fix this build issue. AGL-Bug : SPEC-4269 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Change-Id: Iea8f37c9dbd766a971693a637cd4d90b35d4eef0
2021-11-17BUG FIX: Some guest apps don't show own GUI frequentlyNaoto Yamaguchi3-0/+98
Some guest apps don't show own GUI frequently. This bug is caused by wayland-wsegl, but it is depend on drm-lease environment use case. This bug was fixed in https://github.com/renesas-rcar/wayland-wsegl/commit/5a0a17bc0dafe577ec02ad2205c25bc8acb2c5e6 https://github.com/renesas-rcar/wayland-wsegl/commit/10c7f13a3d868d489054d8af4463bb68036055c6 But that fixed version can't use in Renesas BSP 5.5. This patch backport those patch to Renesas BSP 5.5 environment. Bug-AGL: SPEC-4134 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Change-Id: Ief99ced0cd83348583d8e578f101ec724eec0450
2021-11-02Update github.com git:// SRC_URIsmarlin_12.90.1marlin/12.90.112.90.1Scott Murray1-1/+1
GitHub is dropping unauthenticated git protocol access in January 2022, per: https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git While a workaround in the BitBake git fetcher is forthcoming, not specifying protocol=https for github.com git:// SRC_URIs will start resulting in warnings in Yocto 3.5/Kirkstone. To ease our upgrade path, go ahead and update our affected SRC_URIs. Note that this has been done by running the scripts/contrib/convert-srcuri.py script from latest poky, which also makes git branch specification explicit since the git fetcher is likely to require that in the future due to widespread switches from master to main branches. Bug-AGL: SPEC-4126 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ic3550f08b92916bede2f21442499836b882f2db8
2021-10-29[RCAR] Dynamic-layer update rcar-du support for BSP v5.5.0Ronan Le Martret1-3/+3
Bug-AGL: SPEC-4081 Change-Id: I1d8b3b0bdb9d969cfe25e76915965a21f0612fcc Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com> Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2021-10-27Fix fuzz for 0004-launcher-direct-handle-seat0-without-VTs.patchNaoto Yamaguchi1-6/+6
The drm-lease patch cause fuzz in weston building. Applying patch 0004-launcher-direct-handle-seat0-without-VTs.patch patching file libweston/launcher-direct.c Hunk #1 succeeded at 290 with fuzz 2. Hunk #2 succeeded at 302 (offset -2 lines). This patch update that patch. Bug-AGL: SPEC-4106 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Change-Id: I9bac494e712f3cb8d13576c57d81bac7631b8615
2021-08-20Convert to new override syntaxScott Murray5-11/+11
This is mostly the result of running a slightly customized version of the convert-overrides.py script from poky with additional overrides added. A few minor fixups were done by hand afterwards during a review of the changes. The intent of these changes is to minimize the effort to keep the "next" branch that builds against poky master up to date and tested in preparation for the switch to the next Yocto LTS release in early 2022. Bug-AGL: SPEC-4052 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I0bbae97331abee1367b368ce54ab39e3162a12ec
2021-06-07meta-agl-drm-lease: Improve usabilitylamprey_11.92.0lamprey/11.92.011.92.0Scott Murray5-1/+6
Changes: - Switch to using AGL_FEATURES instead of just directly modifying IMAGE_INSTALL in the feature template. - Move rcar3 kernel recipe bbappend to a dynamic-layer addition so the layer is usable on other platforms. Bug-AGL: SPEC-3955 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ie109cc3606d68d354aae9d902a60ef82272244bf
2021-04-28Divide package drm-lease-manager and libdlmclientNaoto Yamaguchi1-0/+3
In guest container, the dlm client (weston,kmscube) is only to use client library, but all file is installing to guest. This patch divide package drm-lease-manager and libdlmclient. Bug-AGL: SPEC-3892 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Signed-off-by: Naoto Yamaguchi <i33399_yamaguchi@aisin-aw.co.jp> Change-Id: I3fe15c28213f15455c9fb0ae441cc773c0ea5bd7
2021-04-22Rework for drm-lease-manager.serviceNaoto Yamaguchi1-0/+5
The drm-lease-manager.service is losing some discriptions such as 'After', 'Wants' and 'Type'. When 'After' and 'Wants' is not having, the drm-lease-manager service can't enable. This patch add these configurations. Bug-AGL: SPEC-3892 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp> Signed-off-by: Naoto Yamaguchi <i33399_yamaguchi@aisin-aw.co.jp> Change-Id: Ic95b2df33a0be61cd318e900da58efa02c189dc7
2021-04-16drm-lease: Update to latest versionDamian Hobson-Garcia1-1/+1
Adds support for detecting when a lease client application crashes and preventing the screen from blanking. Bug-AGL: SPEC-3862 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Change-Id: I7ae74087ccb2d847bc6fd1b0bfe4585459c98657
2021-04-06libweston: Don't request repaint in output enableDamian Hobson-Garcia2-0/+37
Allow for the compositor to start without first displaying a blank screen when no startup transition is used. This patch is under review in the mainline weston repository. It should be useable for other use cases besides drm-lease, but right now this patch causes the weston test suite to fail by unconvering an unrelated problem with wayland event handling[1]. For now, keep this with the drm-lease support under agl-devel until the weston test suite issue is resolved and the patch is merged upstream. [1]: https://gitlab.freedesktop.org/wayland/wayland/-/issues/201 Bug-AGL: SPEC-3816 Change-Id: Ib5a2f0dde833d88a17bd4e659ff1acee81acd21f Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2021-04-06drm-lease: Add seamless-transition supportDamian Hobson-Garcia1-1/+1
Update DRM lease manager to add DRM lease transition support. Bug-AGL: SPEC-3816 Change-Id: Ie8f003548db23b4d9f824c76e7927e4aebe67ceb Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2021-03-17drm-lease: Enable DRM render node on R-CarDamian Hobson-Garcia3-0/+71
When using DRM lease, wayland clients applications must be able to create an EGL context without DRM authentication. The latest R-Car OpenGL driver, can do this when the R-Car display driver must provides a render node. Enable the rcar-du render node and allow it to allocate of scanout buffers. Bug-AGL: SPEC-3730 Change-Id: Iae4f74afb69de3a7f9ddf3ec5113938ade81fda4 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2021-03-17drm-lease: Disable weston TTY switchDamian Hobson-Garcia4-2/+109
When running multiple instances of weston using the drm-backend, TTY switching should be disabled, so that both instances can be displayed at the same time. Backport patches from weston upstream that will disable TTY switching when either: * Any seat other than seat0 is used (multi-seat) * There are no real TTY devices available (often true when running in a container) Also, modify the layer priority and SRC_URI append style to make these patches apply after the AGL appfw layer to avoid patch fuzz warnings during build. Bug-AGL: SPEC-3730 Change-Id: Ie9bed50b1c3f60129b1efae95aa77bfcea45f568 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2021-03-09drm-lease: Add weston DRM lease integrationDamian Hobson-Garcia4-2/+454
Allow option for weston to use a DRM lease instead of the primary DRM device node when using the DRM backend. EGL clients will require a wayland EGL driver than can does not need DRM authentication. e.g. an implementation based on DRM render nodes. Bug-AGL: SPEC-3730 Change-Id: I12f6d5b5df62a90702431010ab685e3b0654912b Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
2021-03-05Add agl-drm-lease featureDamian Hobson-Garcia10-0/+411
The agl-drm-lease feature will add the DRM lease manager and client library to the current image. DRM lease support is also added to the kmscube test utility if it is installed. Bug-AGL: SPEC-3729 Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp> Change-Id: I75cfbc363724916202ec15bb71813f49d6b560eb