summaryrefslogtreecommitdiffstats
path: root/meta-egvirt/recipes-kernel
AgeCommit message (Collapse)AuthorFilesLines
2024-11-07Fix SPDX error when building virtio-loopback moduleTimos Ampelikiotis1-3/+3
Rename virtio-loopback recipe to be aligned with the required naming convention. Change-Id: Iead57ba3755c9654972776264b958fc22e82ce62 Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
2024-11-06Update virtio-can driverTimos Ampelikiotis3-296/+215
Updates [v2]: - Rename virtio-can recipe to solve SDPX error Updates [v1]: - Update virtio-can driver implementation and make it compatible with all kernel versions between v5.10 and v6.6. The implementation was tested on AGL refHW and raspberry pi 4 boards. Bug-AGL: SPEC-4966 Change-Id: I1b41d3e220b99f839e20b5b498aab8e1dc77c0ab Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
2024-11-04Enable the following virtio devices for linux-yocto kernelTimos Ampelikiotis6-2/+44
Specifically this commit enables virtio-can, virtio-input, virtio-sound and virtio-loopback for linux-yocto kernel. Bug-AGL: SPEC-4966 Change-Id: I856631c918129eb27f9dde7f594a0c601c8cc413 Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
2024-09-30Update virtio-loopback moduleTimos Ampelikiotis1-2/+2
Add multi-device feature Bug-AGL: SPEC-4966 Change-Id: I448c539e78fb28de4dc64deb59471d8f5a329fe2 Signed-off-by: Timos Ampelikiotis <t.ampelikiotis@virtualopensystems.com>
2023-12-13CAN, GPIO, RNG vhost-devices for virtio-loopback [v6]quillback_16.92.0quillback/16.92.016.92.0Michele Paolino17-5663/+18
This patch adds key components of the viritio-loopback architecture: - kernel-module-virtio-loopback: the virtio loopback kernel driver - CAN, GPIO and RNG vhost-user devices from meta-virtualization (commit a215d8320edee0a317a6511e7e2efa5bba867486) Notes: - libgpiod, comes from meta-openembedded commit 3029554ceb0b0bb52a8d8ec3f0a75c5113662fe6 - cleaned eg-virt from unused drivers (kernel-module-virtio-video) Bug-AGL: SPEC-4834 V2 changes: - related meta-virtualization commit message added in the cover letter - updated libgpio recipe to v2.1 - SPEC reference added in cover letter v3 - add vhost-device-can preliminary version. This is placed here with the objective to share the link when proposing the new device to the rust-vmm/vhost-device community - remove cargo-update-recipe-crates includes in bb file because it is not supported by the rust mixin layer - vhost-device folder README changes v4 - fixed libgpiod required version - tested ref hw and qemu x86/64 builds - vsock, scsi and i2c rust devices removed from the build as they are not yet integrated in virtiod-loopback - cleaned-up kernel modules kernel-module-virtio-video and gstreamer1.0-plugins-bad - virtio-loopback-driver set to 2-or-later v5 - Merge with Jan-Simon version v4: - remove broken kernel-module-virtio-video - use FEATURE_PACKAGES instead of IMAGE_INSTALL:append - rename virtio-loopback-driver.bb to kernel-module-virtio-loopback_git.bb for consistency v6 - adding version in the title - removing MODULE_GIT_REPOSITORY in kernel-modules Change-Id: Id6cc58e777b9edad03b6c50d0dddaac8601edeaf Signed-off-by: Michele Paolino <m.paolino@virtualopensystems.com> Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
2023-11-07virtio-loopback kernel driver: Follow updates on the repoAngelos Mouzakitis1-1/+1
Change-Id: I9944c2d385363eda108bd1a585e25d5a3433116a Signed-off-by: Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com>
2023-10-13virtio-loopback: Update upstream to epsilon branchesAngelos Mouzakitis1-1/+1
These is the prerequisite work to enable support for feature vhost-devices on the adapter (gpu, sound, gpio) v2: Add sound support on virtio-loopback-adapter v2: Update recipe names of adapter and loopbackdriver with virtio- prefixes v2: Update recipes URI location to AGL-gerrit servers Change-Id: I15b45d37f0726864629749e8cb77dd6cf6d03628 Signed-off-by: Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com>
2023-05-05virtio-loopback: v5: Add recipes for virtio-loopback supportAngelos Mouzakitis4-0/+26
Includes the virtio-loopback kernel module, the adapter application, the vhost-user devices from QEMU and a Rust vhost-user-rng device implementation. v2: Update recipes to conform with the OE-Styleguide v3: Recipes fixes for generic builds v4: Generalize the recipes to build for different architectures v5: Update recipes to comply with the OE-Styleguide Change-Id: I67c14fd77e564c0aecdde40dc1cf7e893dae6de1 Signed-off-by: Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com>
2022-11-10virtualization: Add virtio-can driver as external module.Vasyl Vavrychuk4-0/+1235
This driver should conform RFC spec draft v2 [1]. This driver is based on RFC version [2]. Imported from internal OpenSynergy's revision: 3918336a7caab95a72442c33945a193ca893d5e8 Supply build file `Kbuild` and do not supply makefile [3] since external kernel module could be built without it. On the other hand, module BitBake class relies on wrapper makefile presence, therefore `MAKE_TARGETS` and `MODULES_INSTALL_TARGET` had to be set to specify arguments per [3]. Add driver as an external module to avoid unnecessary kernel rebuild and simplify future updates. [1]: https://lists.oasis-open.org/archives/virtio-dev/202208/msg00159.html [2]: https://lists.oasis-open.org/archives/virtio-dev/202208/msg00160.html [3]: https://www.kernel.org/doc/html/v6.0/kbuild/modules.html Change-Id: I9b654f58cc0c34983cd4103a5f7836263db79ec7 Bug-AGL: SPEC-4597 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2022-09-22egvirt: linux-yocto: Support linux-yocto-dev for VIRTIO.Vasyl Vavrychuk4-3/+128
Bug-AGL: SPEC-4453 Change-Id: Ib3641884bac404c7281df37e5ed4f4939e2830b4 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2022-06-08egvirt: linux-yocto: Add virtio_bt driver.Vasyl Vavrychuk3-0/+91
virtio-bt is not part of OASIS standard yet (v1.2) but Linux kernel has driver for virtio transport for BT HCI. Submit driver to meta-agl-devel since patch [1] is WIP and has a known issue. [1]: 0002-Bluetooth-virtio_bt-fix-device-removal.patch Bug-AGL: SPEC-4363 Change-Id: Ib6851df24d430e991a4e9078345bef7e440fb6de Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2022-06-08egvirt: linux-yocto: Remove virtio-scmi patches.Vasyl Vavrychuk5-184/+0
Those patches are now in mainline kernel, so they are moved to meta-agl. Bug-AGL: SPEC-3865, SPEC-4365 Change-Id: I08a184c6db63afef67a2e0906bc6a9a61ec4286f Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2022-06-08egvirt: linux-yocto: Adapt for kernel v5.15.Vasyl Vavrychuk22-3791/+70
* Remove changes already present in v5.15. * Refresh other patches. * Document how to recreate kernel configs for future reference. Bug-AGL: SPEC-4365 Change-Id: If8f900c9de7d8536364d71288902fd842d3ddc5f Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2022-03-24Update to SPDX license namesScott Murray1-1/+1
Apply updates from running the new convert-spdx-licenses script from upstream. This is not currently a hard requirement from upstream, but futureproofs for when the license name mapping is finally removed. Bug-AGL: SPEC-3819 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Iad7f9d353d3111287e2b39ee98cd872e2b7fec32
2021-12-07virtualization: Add virtio-video driver as external module.Vasyl Vavrychuk16-0/+5847
This driver should conform WIP spec v3 [1] with some updates for spec v4 [2], and, some unspecified features such as VIRTIO_VIDEO_DEVICE_CAMERA. Imported from internal OpenSynergy's revision: bcc33b6b9e0156b381a70c54d2df02c57b63d270 Kernel was configured with necessary features for this driver: enable MEDIA_SUPPORT disable MEDIA_SUBDRV_AUTOSELECT enable MEDIA_PLATFORM_SUPPORT enable VIDEO_VIRTIO Keep driver as an external module to simplify future updates. [1]: https://lists.oasis-open.org/archives/virtio-dev/202002/msg00002.html [2]: https://lists.oasis-open.org/archives/virtio-dev/202006/msg00072.html Bug-AGL: SPEC-4148 Change-Id: Iea339194b22443f67b3e2ffddca84118357a2f15 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2021-11-23virtualization: linux-yocto build fail due to missing FILESEXTRAPATHS:prepend.Vasyl Vavrychuk1-0/+2
Apparently linux-yocto with meta-egvirt enabled was not built. Bug-AGL: SPEC-3865 Change-Id: I4e70ea0ec9e57b3c12e67fe2f9e533f2b78e1518 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2021-11-01virtualization/linux-yocto: iio/scmi: Add reading "raw" attribute support.Andriy Tryshnivskyy3-0/+143
agl-service-iiodevices reads IIO device "raw" attribute. Patches were adapted for current kernel version. Bug-AGL: SPEC-3865 Upstream-Status: Submitted [https://lore.kernel.org/all/20211024091627.28031-1-andriy.tryshnivskyy@opensynergy.com/] Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Change-Id: I4f3e14e9d557a13ff955de43035e564d80873038
2021-10-14virtualization/linux-yocto: Add SCMIv3.0 Sensor Extensions patches.Andriy Tryshnivskyy7-0/+1484
IIO SCMI driver assumes that those changes are present. It fails to compile without them. Bug-AGL: SPEC-3865 Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Change-Id: Ia0011b5b621fc08321a1d74f3ae00e2780f3188a
2021-10-14virtualization/linux-yocto: Enable IIO SCMI.Andriy Tryshnivskyy2-0/+2
Snippet has been updated using menuconfig/diffconfig tasks. Bug-AGL: SPEC-3865 Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Change-Id: I7c885d818f6ae80804f5ae9446072af05332bdf2
2021-10-14virtualization/linux-yocto: Backport IIO SCMI based sensors driver.Andriy Tryshnivskyy2-0/+802
This patch series is the latest implementation of ARM SCMI Protocol based IIO Device. Patch was cherry-picked from branch [1] created by IIO maintainer. [1]: https://lore.kernel.org/lkml/20210311210844.34371d8d@archlinux/ Bug-AGL: SPEC-3865 Upstream-Status: Submitted [https://lore.kernel.org/lkml/20210309231259.78050-1-jbhayana@google.com/] Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Change-Id: Idef6f0630887c49c1d8e651a5ac753ad74b20dc0
2021-10-14virtualization/linux-yocto: Enable virtio SCMI driver.Andriy Tryshnivskyy2-0/+6
Snippet has been generated using menuconfig/diffconfig tasks. Enabled VIRTIO_SCMI and ARM_SCMI_PROTOCOL. Switch off enabled by default ARM_SCMI_POWER_DOMAIN since it is not planned to be used at the moment. Bug-AGL: SPEC-3865 Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Change-Id: Ic4d3623c0fe330513a04b503c2037f0769d6ce69
2021-10-14virtualization/linux-yocto: Backport virtio SCMI driver.Andriy Tryshnivskyy11-0/+1489
This patch series is a "RFC v2" implementation of a driver for virtio SCMI device [1]. [1]: https://github.com/oasis-tcs/virtio-spec/blob/master/virtio-scmi.tex Bug-AGL: SPEC-3865 Upstream-Status: Submitted [https://lore.kernel.org/linux-arm-kernel/20201105212116.411422-1-peter.hilber@opensynergy.com/] Signed-off-by: Andriy Tryshnivskyy <andriy.tryshnivskyy@opensynergy.com> Change-Id: I653cb44769232ae5434bd54169910fd0518f1db8
2021-01-15meta-egvirt, templates: Remove virtio-aarch64 machine.koi_10.92.0koi/10.92.010.92.0Vasyl Vavrychuk6-69/+0
It is moved to meta-agl repository. Bug-AGL: SPEC-3668 Change-Id: I7f02d5afe42f96a955ebd1ea7735a9b84fee9cc8 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
2020-11-17meta-egvirt, templates: Add virtio-aarch64 machineVasyl Vavrychuk6-0/+69
This machine is intended to run in ARMv8 virtualized environment that provides VirtIO devices. AGL machine configuration files are based on qemuarm64 machine from meta-agl branch master commit e1da0efcd2eece82b0326798cfeaeb8dd48797fc. Yocto machine configuration files are based on qemuarm64 machine from Poky branch dunfell commit 4e931b1d05018923dc145cd97f6f965f5cb6e1a5. Yocto Linux Kernel is used as recommended in [1]. Its metadata for the created machine are based on qemuarm64-standard.scc from yocto-kernel-cache branch yocto-5.4 commit 4aeda12f7f7eb84613ae1fe6e22cd9cd9790c20b. The rationale behind creating new machine is a wish to have a machine that could run on other hypervisor/virtual machine monitor that implements VirtIO, not necessary QEMU. For now, virtio-aarch64 machine runs under QEMU and OpenSynergy COQOS Hypervisor. virtio-aarch64 machine includes following changes comparing to qemuarm64: * use virtio-gpu instead of VGA display (to be upstreamed to work in conjunction with runqemu gl, sdl, etc. options) * use virtio-bus instead of PCI bus QEMU devices * remove unneeded configurations [1]: https://www.yoctoproject.org/docs/3.1.2/bsp-guide/bsp-guide.html#released-bsp-recommendations Bug-AGL: SPEC-3668 Change-Id: Iccfee8613de63770d371a57f0caab1c1eba8d912 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>