Kernel Recipes 2026 - Security in the LLM ageKernel Recipes2026-11-23 | Kernel Recipes 2026 - Security in the LLM ageKernel Recipes 2023 - Netconf 2023 WorkshopKernel Recipes2023-10-05 | David will present a summary of the netconf workshop happening at Kernel Recipes this year. David MillerKernel Recipes 2023 - Demystifying the Linux kernel security processKernel Recipes2023-10-05 | There is a lot of misunderstanding about how the Linux kernel deals with security vulnerabilities. This talk will go into how the different Linux kernel security teams work, how security and bugfixes are handled, how changes are propagated out to the public, and how users must take advantage of these changes in order to have a secure system.
Greg KHKernel Recipes 2023 - sched_ext: pluggable scheduling in the Linux kernelKernel Recipes2023-10-05 | Scheduling is a notoriously difficult problem. An effective scheduler should fully utilize a system, while also optimizing for cache locality, while also accounting for real time constraints, while also accounting for battery life and power management, while also ensuring fairness, etc. The landscape of the tech industry has changed a lot in the last 15 years. Back in the late 2000s, cores were typically homogeneous, and were spaced further apart from one another. Modern systems are by comparison much more complex. Heterogeneous architectures are the norm for mobile devices, and are becoming more common in x86. Cache hierarchies are also less uniform, with Core Complex (CCX) chips having multiple shared L3 caches within a single socket. Use cases have evolved as well. Applications such as mobile and VR have latency requirements to avoid missing deadlines that impact user experience, and stacking workloads in data centers is constantly pushing the demands on the scheduler in terms of workload isolation and resource distribution. While CFS is a great scheduler, there are opportunities to continue to improve it for such use cases. With sched_ext, we can easily experiment and find scheduling algorithms that address these use cases by allowing developers to implement scheduling policies in BPF programs.
David VERNETKernel Recipes 2023 - A quarter century of Linux open source, my personal journeyKernel Recipes2023-10-05 | Having been involved with the Linux kernel and open source projects for 25 years teaches you as much about people as it does technology. From struggling college dropout working on CD-ROM code, to distro kernel work and even having a stint in the proprietary world, juggling the demands of OSS takes a toll on anyone involved. The Linux world never sleeps, but what is it like to be in the thick of it for this many years? And how has it changed?
Jens AXBOEKernel Recipes 2023 - How not to submit a patchset?Kernel Recipes2023-10-05 | What makes an apparently good patchset fail? Despite the fact it hasn’t been applied, did you know that working on this patchset might have actually been a great benefit for you and the kernel? A necessary step even?
Sometimes we involve into an idea that looks good at a first glance and might even look good to maintainers but eventually either:
Testing shows it’s not that awesome. The benefit/maintainance-burden ratio is unclear. So the patchset gets dropped in the end, or put aside waiting for better days. Then comes the time to realize how much you learned from it and how much the rest of the community also grew up from that failure.
Frederic WeisbeckerKernel Recipes 2023 - The maintainer’s POVKernel Recipes2023-10-05 | The collective work on the kernel between code submitters and maintainers is a strange symbiosis of constant back’n’forth and is often the source of mutual frustration. A lot of it can be avoided when everyone is on the same page when it comes to process, goals and priorities.
This talk tries to explain why everyone who works on the kernel should also be a maintainer, and how by only trying to walk in maintainers’ shoes, we all can improve the current situation.
Borislav PETKOVKernel Recipes 2023 - Coming soonKernel Recipes2023-10-05 | A deep dive into the preemption models of the Linux Kernel and a proposal for reducing the zoo
Thomas GleixnerKernel Recipes 2023 - Linux and gaming: the road to performanceKernel Recipes2023-10-05 | Playing games on Linux has come from a painful reality, with a lot of tinkering, to (sometimes) a one-click experience. This happened because a lot of effort has been put from companies and communities to adapt the stack to run this kind of workload in the best way possible. The kernel is part of this endeavor and in this talk we are going to know more about the new challenges introduced by games on Linux, how kernel developers overcame them and what’s next in backlog.
André ALMEIDAKernel Recipes 2023 - On the way to io_uring networkingKernel Recipes2023-10-05 | io_uring has set a remarkably high bar for storage performance. Consequently, attention has naturally turned towards networking as the next frontier. While io_uring provided basic primitives, like send and recv, from early days, their practical application to real-life scenarios proved somewhat insufficient to compete with traditional networking approaches. In this talk, I will be walking through the problems we had and the changes we’ve made, elaborate on the rationale behind them, and finally discuss how userspace can best be designed to take full advantage of io_uring.
Pavel BegunkovKernel Recipes 2023 - stress-ng: finding kernel bugs through stress testingKernel Recipes2023-10-05 | Stress-ng is a tool that stress tests kernels using deliberately intense testing to shake out various kernel (and hardware) bugs. This talk describes the different stress test methods available in stress-ng, typical kernel test coverage and the future direction of the stress-ng project.
Colin IAN KINGKernel Recipes 2023 - Hardware and its Concurrency HabitsKernel Recipes2023-10-05 | This talk will present a high-level overview of the hardware structure of modern computer systems, and then will use this structure to show how the laws of physics put limitations on the design and implementation of concurrent software. Venue permitting, it will include a stark visual exposition of these limitations. Finally, this talk will compare how well various synchronization use cases are aligned with modern hardware structure and the laws of physics. Audience members will gain a firmer intuition on the costs and benefits of different synchronization mechanisms.
Paul E McKenneyKernel Recipes 2023 - Update on Landlock: Audit, Debugging and MetricsKernel Recipes2023-10-05 | Landlock enables to sandbox Linux applications but it might be challenging to identify the cause of denied accesses. Being able to debug a security policy is an important feature for an access control system. Likewise, logging denied accesses (and their reason) helps detect attacks. Because Landlock is dedicated to unprivileged users, some restrictions applies to such features (e.g., no global rule identifier, scoped debugging). We’ll explain the in-development approach and the intended features to help developers sandbox their applications.
Mickaël SalaünKernel Recipes 2023 - Faster & Fewer Page FaultsKernel Recipes2023-10-05 | We have improved the Linux page fault mechanism to reduce the number of faults and handle them more quickly when they do happen. By managing memory in large folios, we reduce the number of page faults. The 4KiB page used on many architectures is simply too small for the amount of memory we need to manage today. When you take a page fault, the kernel can allocate multiple pages and map them all at the same time. By managing VMAs in a Maple Tree, we handle page faults more quickly. The Maple Tree is shallower than the red-black tree and uses the CPU cache more effectively. When you take a page fault, the kernel can find the information it needs to handle the page fault more quickly. These two projects together result in a significant reduction of time spent handling page faults and allow your computer to spend more of its time running user code. No cars were crashed in the execution of this project.
Matthew WilcoxKernel Recipes 2023 - Fast by Friday: Why Kernel Superpowers are EssentialKernel Recipes2023-10-05 | It is not ok that we speed weeks, even months, trying to solve why software is slow. Companies waste money on compute costs, users are unhappy with latency, and product evaluations run out of investigation time. It should not take more than a week to identify the root cause or causes for a performance issue, such that any performance issue reported on a Monday should be solved by Friday, or sooner. The kernel superpowers we have been building are essential for this dream, and allow us to explore performance analysis methodologies to achieve this that were previously a fantasy.
This talk explores the dream of “fast by Friday,” and shows how kernel technologies like eBPF, and performance methodologies, can get us there. The end goal is not more tools and metrics or having everyone learn eBPF bytecode. It’s about efficient computing, and solving inefficiencies as quickly as possible. It’s about saving cycles and carbon.
To be fast by Friday requires observability tools to work on Monday, and right now for many Linux environments that means /proc based tools and Ftrace, sometimes perf, and rarely the eBPF tracing tools: bcc and bpftrace. This and other current and future technical challenges will be discussed, including eBPF stack walking, runtime behavior and uprobes, compiler optimization defaults, OS default packages, and non-CPU targets (GPUs, accelerators).
Brendan GREGGKernel Recipes 2023 - Panic Attack – a discussion about kdump, panic notifiers, graphicsKernel Recipes2023-10-05 | The crash/panic path and all its related machinery were always subject to polemics; it’s an area naturally full of trade-offs, conflicting views and antagonistic goals. From one side we have kdump (also called crash_kexec), that requires a minimum touching before the kexec effectively happens; but at the same time, such crash kexec requires adapter resets and other special clean-ups (specially in hypervisors) to work properly. On top of that, add the non-kdump users that rely on panic notifiers to perform last minute actions or the data collection mechanisms, like kmsg dumpers (pstore as an example), the firmware-based approaches (like the PowerPC fadump) and the complete absence of graphical output in such scenarios, making it hard to debug or even to see what’s happening for a regular user.
The bootstrap of the discussion hereby proposed is the following thread, “The panic notifiers refactor”. This all started with a notifiers filter [0] I’ve submitted and Petr Mladek suggested that instead we should improve the notifiers – which led to this refactor. But this is quite polemic, as mentioned we have conflicting users/goals, so it’s hard to reach a consensus – part of it is due to the involvement of architecture code, which is very important for kexec/crash (for an example of an architecture spin-off discussion, see [1]). Also, as a reference for PCI devices resets/complexities in the kdump realm, see [2]. Part of this effort was merged as a set of fixes (see [3]), but I’m working in the second round of the refactor itself, taking into account the ideas from V1 and plan to submit that on July/2023. Now, to the 2nd part of this proposal: currently there is absolutely no way of having graphics output in a crash event. There was a (broken!) panic notifier some years ago, but it was properly removed. Recent efforts on that weren’t merged / didn’t progress much, see [4] for example. This area is becoming increasingly interesting, since Linux is getting used for gaming lately – for example, the Steam Deck [5] console is fully based on Linux and FOSS, but the users aren’t able to notice a panic due to lack of graphical output. Finally, there is also a potential for firmware-aid data collection or even graphics help – we currently struggle to have framebuffer graphics on kdump (see [6] and [7] for other discussions we bootstrapped about that some time ago). As per the above set of topics, we can see this area is quite prolific in multiple fronts, but it doesn’t usually receive the necessary “love” by the vendors or even distros – the efforts are usually quite diffuse and spread. So, the goal for such proposal is to present the latest advances and what’s missing and could be improved with regards kernel crash and its mechanisms to collect data in such panic event.
Guilherme G. PiccoliKernel Recipes 2023 - Gaining bounds-checking on trailing arraysKernel Recipes2023-10-05 | Having a dynamically-sized trailing array at the end of a structure is a popular code construct in the Linux kernel. However, trailing arrays can also be of a fixed size, which means that their size is well-defined at compile-time and remains fixed throughout their entire lifetime. Little is known about the fact that compilers like GCC have historically treated all trailing arrays, no matter what their size, as flexible-sized arrays. This is a problem if we want the compiler to help us detect out-of-bounds issues on such arrays both at compile-time and at run-time. Therefore, the compiler should first be able to clearly distinguish between those that are used as dynamically-sized arrays and those that are not (fixed-size arrays). In order to achieve this, GCC-13 is introducing the new -fstrict-flex-arrays option. And we, in the Kernel Self-Protection Project, have been transforming trailing zero-length and one-element arrays (what we call fake flexible-arrays) into modern C99 flexible-array members. We will see how the combination of both efforts, together with the addition of some important compiler attributes, will eventually help us be free of out-of-bounds vulnerabilities on trailing arrays in the upstream Linux kernel. We will also explore how this work is closely related, and contributes, to the most recent efforts to hardening key APIs like memcpy() and globally enabling options like -Warray-bounds.
Gustavo A.R. SILVAKernel Recipes 2023 - Resource control in production at MetaKernel Recipes2023-10-05 | Control groups (or cgroups for short) are one of the most fundamental technologies underpinning our modern love of containerisation and resource control. Back in 2016, we released a complete overhaul of how cgroups work internally: cgroup v2, released with Linux 4.5. This brought many new and exciting possibilities to increase system stability and throughput, but with those possibilities have also come challenges of a type which we have largely not faced in Linux before.
This talk will go into some of the challenges faced in overhauling Linux’s resource isolation and control capabilities, and how we’ve gone about fixing them. This will include some of the most complex and counter-intuitive practical effects we’ve seen in production, with details of how our expectations and knowledge have developed over the last 5 years using this on over a million machines in production, with insights that are immediately applicable to anyone who runs Linux at scale.
We will also go over the state-of-the-art of resource control in the “real world” outside of companies like Meta and Google, looking at how cgroup v2 is changing the technical landscape for distributions and containerisation technologies for the better.
Chris DownKernel Recipes 2023 - Evolving ftrace on arm64Kernel Recipes2023-10-05 | The Linux kernel’s ftrace mechanism makes it possible to dynamically attach hooks to kernel functions, and can be used for a variety of purposes including tracing, debugging, and live-patching.
The low-level details of ftrace differ by architecture, and recently the arm64’s ftrace implementation has evolved substantially with the implementation of DYNAMIC_FTRACE_WITH_ARGS and DYNAMIC_FTRACE_WITH_CALL_OPS, which enable richer, lower overhead tracing with relatively simple and maintainable architecture code.
This walk will cover the low-level details of arm64’s ftrace implementation, how it works, and why certain design choices were made.
Mark RutlandKernel Recipes 2023 - Getting the RK3588 SoC supported upstreamKernel Recipes2023-10-05 | The Rockchip RK3588 system-on-chip (SoC) is an impressive flagship with 8 ARM cores (4x A76, 4x A55), plenty of cache, and a vast amount of peripherals. Among other things this SoC has an Arm G610 Mali GPU, multiple PCIe lanes, hardware video decoders and encoders with 8K support, a display engine supporting 8K resolution, 6TOPs Neural Processing Unit (NPU), and quite a bit more.
For several months, engineers at Collabora have been working on upstream support for this SOC. There is still much to be done, but the basics are already working. In this talk, Sebastian will present the current upstream status and share how we got from “kernel does not know this platform and cannot boot it” to “working development platform with UART + network”. Afterwards Sebastian will go through the currently ongoing work, like the GPU, HDMI output and input support. The presentation will conclude with an outlook of the open work items.
Sébastien REICHELKernel Recipes - The Arm laptop projectKernel Recipes2023-10-05 | What would it take to run mainline Linux on an Arm laptop built for Windows? That was the question Linaro set out to answer in a project funded by Arm. A bit more than a year later, the Lenovo ThinkPad X13s can now be used as a daily driver while running mainline Linux without any out-of-tree patches on top.
This talk will give an overview of how this project came about; discuss some of the difficulties encountered, how they were addressed and what remains to be done; and provide a summary of the current status of the Arm laptop project.
Johan HOVOLDKernel Recipes 2023 - A unique way to maintain a Linux kernel subsystemKernel Recipes2023-10-05 | Steven Rostedt maintains the tracing subsystem of the Linux kernel. He has a unique workflow that incorporates several tools. He uses quilt on top of git to keep track of changes as well as a way to resolve conflicts when importing patches. Steven doesn’t type “make; make modules; make modules_install install” to build the kernel, but instead utilizes the ktest.pl program that he wrote and maintains within the kernel tools/testing directory. He has his own personal patchwork setup that reads his inbox to make sure he doesn’t miss any patches anymore.
Steven is going to talk about the various tooling he uses in his workflow. This is not about convincing others to use anything that he describes, as everyone has their own way of doing things. But hopefully, this will inspire people to think outside the box and become more efficient at their jobs.
Steven ROSTEDT, GoogleEmbedded Recipes 2023Kernel Recipes2023-10-05 | Day 1Embedded Recipes 2023Kernel Recipes2023-09-29 | Day 1Embedded Recipes 2023Kernel Recipes2023-09-28 | Day 1Kernel Recipes 2023Kernel Recipes2023-09-27 | Day 3Kernel Recipes 2023 (10th Edition)Kernel Recipes2023-09-26 | Day 3
kernel-recipes.orgKernel Recipes 2023Kernel Recipes2023-09-25 | Day 1Kernel Recipes 2023Kernel Recipes2023-09-25 | Day 1Embedded RecipesKernel Recipes2023-09-22 | Day 2Embedded Recipes 2022 - Tracing on embedded boardsKernel Recipes2022-08-23 | Embedded systems can have very limited resources. Using tools like trace-cmd and KernelShark require writing tracing data to disk and then post processing the data after the trace. But if the embedded device does not have much (or any) disk space, it makes it impossible to do such traces. But trace-cmd has a way to send the trace through the network. This will focus on how it does that, going into some of the low level details and possibly talk about how it does something similar for tracing guests on a host.
Steven Rostedt
More: embedded-recipes.org/2022/talks/tracing-on-embedded-boardsKernel Recipes - Creating custom Debian images for your embedded deviceKernel Recipes2022-08-23 | In this presentation, we will walk though how to get started using Debos to create Debian images for your cool new device. We will discuss how to combine a custom kernel with a Debian user space so you don’t have to rebuild the world, like with Yocto and Buildroot. Debos uses a YAML “recipe” to abstract common tasks and runs these commands inside a virtual machine. The end result is only limited by your imagination, but we will end up with a custom image for a device which can run both inside a QEMU virtual machine as well as on the Raspberry Pi. Chris will also discuss how to hook Debos into your CI system so that you can create and test images before merging important features.
Christopher Obbard
More: embedded-recipes.org/2022/talks/creating-custom-debian-images-for-your-embedded-deviceEmbedded Recipes 2022 - Creating custom Debian images for your embedded deviceKernel Recipes2022-08-23 | In this presentation, we will walk though how to get started using Debos to create Debian images for your cool new device. We will discuss how to combine a custom kernel with a Debian user space so you don’t have to rebuild the world, like with Yocto and Buildroot. Debos uses a YAML “recipe” to abstract common tasks and runs these commands inside a virtual machine. The end result is only limited by your imagination, but we will end up with a custom image for a device which can run both inside a QEMU virtual machine as well as on the Raspberry Pi. Chris will also discuss how to hook Debos into your CI system so that you can create and test images before merging important features.
Christopher Obbard
More: embedded-recipes.org/2022/talks/creating-custom-debian-images-for-your-embedded-deviceEmbedded Recipes 2022 - Advanced Camera Support on Allwinner SoCs with Mainline LinuxKernel Recipes2022-08-23 | Capturing pixels with a camera involves a number of steps, from the ADC reading the photosites in the image sensor to the final pixel values that are ready for encode/display, with various processing and transmission taking place along the way.
While simple cases put most of the heavy lifting on the image sensor’s side (through its embedded processor) and use a simple parallel bus for transmission, advanced cases require more work to be done outside of the sensor. In addition, modern high-speed transmission buses also bring-in more complexity.
This talk will present how support for such an advanced use case was integrated into the mainline Linux kernel, using the Media and V4L2 APIs. It involves supporting a sensor using the raw Bayer RGB format, transmission over the MIPI CSI-2 bus as well as support for the Image Signal Processor (ISP) found on Allwinner platforms. A specific focus will be set on this ISP, with details about the features it implements as well as the internal and userspace APIs that are used to support it.
The integration between all of the involved components will also be highlighted.
Paul Kocialkowski
More: embedded-recipes.org/2022/advanced-camera-support-on-allwinner-socs-with-mainline-linuxKernel Recipes 2022 - Advanced Camera Support on Allwinner SoCs with Mainline LinuxKernel Recipes2022-08-23 | Capturing pixels with a camera involves a number of steps, from the ADC reading the photosites in the image sensor to the final pixel values that are ready for encode/display, with various processing and transmission taking place along the way.
While simple cases put most of the heavy lifting on the image sensor’s side (through its embedded processor) and use a simple parallel bus for transmission, advanced cases require more work to be done outside of the sensor. In addition, modern high-speed transmission buses also bring-in more complexity.
This talk will present how support for such an advanced use case was integrated into the mainline Linux kernel, using the Media and V4L2 APIs. It involves supporting a sensor using the raw Bayer RGB format, transmission over the MIPI CSI-2 bus as well as support for the Image Signal Processor (ISP) found on Allwinner platforms. A specific focus will be set on this ISP, with details about the features it implements as well as the internal and userspace APIs that are used to support it.
The integration between all of the involved components will also be highlighted.
Paul Kocialkowski
More: embedded-recipes.org/2022/advanced-camera-support-on-allwinner-socs-with-mainline-linuxEmbedded Recipes 2022 - Secure Elements in a Trusted Execution EnvironmentKernel Recipes2022-08-23 | A Secure Element is a tamper resistant device that provides secure storage and an execution environment for sensitive data and cryptographic processing. They connect to the host processors through I2C or SPI on the physical channel and the T=1 ISO/IEC 7816 block oriented half-duplex protocol on the second layer.
A Trusted Execution Environment (TEE) is an area of the main processor that provides isolated execution and confidentiality of its assets. A TEE executes its own secure operating system with access to cryptographic algorithms that, depending on the SoC, can be implemented in software libraries (i.e: libtomcrypt, libmbedtls) or in hardware as accelerator co-processors.
The shared memory mechanisms used by TEEs to communicate with bootloaders and Rich Execution Environments (REE) such as Linux are a perfect match to transport block protocols like T=1. This gives a TEE the opportunity to share buses with a REE, while avoiding access collisions and without imposing static usage or power requirements.
This presentation will explain how the NXP EdgeLock SE05x driver was integrated and upstreamed to OP-TEE, and how it provides cryptographic support and secure storage to the boot firmware (U-boot), the TEE (OP-TEE), and the REE (Linux).
Jorge RamirezEmbedded Recipes 2022 - Can Linux based systems be safe as safety as possible ?Kernel Recipes2022-08-23 | During the years there are efforts to make Linux based systems be used in safety environments. But multi purpose kernels, like Linux, create a barrier that still is not transposed.
From ASIL to ISO certifications, and how regulations rules this are one of the first barriers on the process. But they are not the only ones.
The intention of this talk is to show where we are not ready, what are the efforts done by the community and industry and some insights on which possible research and development can be done.
Helio Chissini de Castro
More: embedded-recipes.org/2022/talks/can-linux-based-systems-be-safe-as-safety-as-possibleEmbedded Recipes 2022 - Linux as a UEFI bootloader and kexecing windowsKernel Recipes2022-08-23 | As strange as it first seems, chainloading Windows from Linux application might be the more secure way to boot the system. The Linux shell scripts can perform a TPM-rooted remote attestation, receive the BitLocker keys from the attestation server and safely pass them to Microsoft’s bootloader in a UEFI ramdisk via kexec. This specialized Linux also makes an ideal OS install and recovery environment since it can use the vendor-provided device drivers to talk to the hardware, allowing a generic kernel to work on most devices without customization.
Trammel Hudson
More: embedded-recipes.org/2022/talks/linux-as-a-uefi-boot-loader-and-kexecing-windowsEmbedded Recipes 2022 - Faster Boots with Timestamped Boot LoggingKernel Recipes2022-08-23 | When a system boots up, multiple components start loading in parallel as well as sequentially after another. Each of them spawn interactions with hardware which can take varying amounts of time. To optimize the boot time of a full system, we need to collect consistent logs of events that lead to time consumption with minimal overhead.
While working on VM launch time optimizations, I realized just how little visibility we have into what consumes time from “CPU runs an instruction” until “OS is up”. So I built a framework to easily extract that information.
This presentation outlines a unified boot logging framework and related infrastructure that exposes boot logs with time stamps from various pre-OS components via sysfs to Linux user space. Using convenient Linux (or other OS) utilities, you can then analyze these logs to determine which part in the boot flow is responsible for delays until you reach your OS.
Alexander Graf
More: embedded-recipes.org/2022/talks/faster-boots-with-timestamped-boot-loggingEmbedded Recipes 2022 - The next 50 million firmware updatesKernel Recipes2022-08-23 | In this talk I will briefly introduce the LVFS website used by hundreds of hardware vendors, and also the fwupd project now used by millions of end-users. Right from the start the LVFS was designed as an open ecosystem that respected your privacy, which allowed other projects such as “uSWID as a SBoM” and “Host Security ID” to flourish alongside. During the talk I’ll talk about the new projects, and show the latest usage metrics along with some graphs never seen before. As the LVFS grows, hundreds more vendors and millions more users will use the ecosystem we’ve developed to keep hardware secure. There are some huge hurdles still to overcome, and we can discuss ways to help with the audience during the question time.
Richard Hughes
More: embedded-recipes.org/2022/talks/the-next-50-million-firmware-updatesEmbedded Recipes 2022 - Designing an industrial audio application on Linux: a HW/SW codesign storyKernel Recipes2022-08-23 | The digitization of audio systems in the last decades, coupled with the performance improvements of digital electronics, have made it possible to design complex digital audio systems around Linux Systems-on-Chip, instead of traditional DSPs. Using Linux as an OS gives access to a range of tools that make it possible to develop new connected audio features at a lower cost. However, the analog to digital audio transition brought up new issues, such as clocking and synchronization, which cannot always be efficiently solved in software. In this talk, we will explore how different hardware/software partitioning impacts the performance of Linux digital audio systems, and show different co-design options to mitigate these issues.
Philip-Dylan Gleonec
More: embedded-recipes.org/2022/talks/designing-an-industrial-audio-application-on-linux-a-hw-sw-codesign-storyEmbedded Recipes 2022 - This is how libcamera will support your platformKernel Recipes2022-08-23 | libcamera provides a camera stack to Linux platforms. While the project goals, design, architecture and application API have been presented in multiple conferences over the last few years, little has been said of the internal details. This talk will focus on the pipeline handler and image processing algorithms (IPA) module side of libcamera, and explain, with real life examples, how to add support for a new platform to libcamera.
The audience will learn all they need about libcamera to extend it with support for their platform of choice.
Laurent Pinchart
More: embedded-recipes.org/2022/talks/this-is-how-libcamera-will-support-your-platformEmbedded Recipes 2022 - Weston multi-backend: screen recording, streaming, and remote controlKernel Recipes2022-08-23 | Embedded systems that are used as human machine interfaces for very different devices, such as agricultural, industrial, laboratory, or medical equipment, often face similar requirements: most of these devices have a GUI on a touchscreen, often there is a camera attached, or two. Being able to record some combination of those is desirable for documentation, security, or training purposes. Further, remote control capabilities may be required for normal operation or technical support.
For maintainability and to avoid code duplication, we like to implement this common functionality in shared code instead of in multiple vendor specific applications.
This talk is a report on using Wayland/Weston with IVI shell and DRM, PipeWire and VNC backends to implement remote controllable, recordable GUIs with special considerations for memory bandwidth constrained systems.
libAPU relies on DRM to manage memory and schedule requests. It uses RPMsg to communicate with the hardware accelerator. It uses remoteproc to power up the hardware accelerator and load the firmware.
Alexandre Bailon will present the libAPU, talks about what has been already implemented, what remains to do and the upcoming challenges.
Alexandre Bailon
More: embedded-recipes.org/2022/talks/a-path-to-upstream-ai-ml-acceleratorsKernel Recipes 2022 - Test-driven kernel releasesKernel Recipes2022-08-22 | Upstream Linux kernel testing has grown exponentially on many fronts during the past few years: kselftest is now more stable, KUnit gaining coverage and many out-of-tree test suites have kept growing. Many automated systems are running those tests continuously and regzbot has now become a central place for tracking regressions with weekly reports for mainline.
Despite these monumental achievements, mainline and stable releases still happen entirely at their maintainers’ discretion, in the absence of any known blocking regression. Linux kernel development has worked for many years while relying on subsystem maintainers’ testing tools and best-effort test reports. But in the same way that open-source has brought contributors together with a single code base, testing can bring kernel users together. Rather than having to rely heavily on downstream testing, we could bring some of the real-world quality control upstream too.
The aim of this talk is to raise a number of critical questions: What would it take to gate releases on a set of passing test results, even basic ones to start with? Can the upstream kernel community ever make such a culture shift? Could release tags include certified test results as a meaningful quality measurement for its users?
More: kernel-recipes.org/en/2022/we-wont-live-forever-so-what-does-that-meanKernel Recipes 2022 - Ftrace updateKernel Recipes2022-08-22 | A lot of neat little features has been added to the ftrace tracing subsystem. This will go over what those are. From synthetic events to event probes. New triggers and even user events. If you don’t know what these are, then this talk will explain them to you.
Steven Rostedt
Slides avaliable here: kernel-recipes.org/en/2022/ftrace-updateKernel Recipes 2022 - Rethinking the kernel camera frameworkKernel Recipes2022-08-22 | Video4Linux (V4L2) has enabled hundreds of different multimedia devices, from TV tuners to the webcam that has accompanied you during the pandemic. Unfortunately, it has been neglected by vendors when they have implemented camera stacks for mobile devices.
In this talk we will explore the reasons why V4L2 has not proliferated with complex ISP systems and what can be done to support those devices from an Open Source perspective.
Ricardo Ribalda
More: kernel-recipes.org/en/2022/talks/rethinking-the-kernel-camera-frameworkKernel Recipes 2022 - Make Linux developers fix your kernel bugKernel Recipes2022-08-22 | Pssst! Don’t tell anyone, but there is a rule that forces Linux developers to fix certain kind of kernel bugs. This is pretty strictly enforced by Linux creator and lead-developer Linus Torvalds himself, who occasionally even steps up to fix such problems himself. You can benefit from this, but for that you have to do some diagnostics and report your issue properly.
This talk will explain what you need to do and what kind of problems the aforementioned rule covers. Known this will even help you when dealing with other kind of bugs: a proper report will then dramatically increase the chance that someone takes a closer look and provides a fix. To round things up the talk will also explain how to spot problems that are unlikely to get fixed, to save you from wasting time.
Thorsten Leemhuis
More: kernel-recipes.org/en/2022/talks/make-linux-developers-fix-your-kernel-bugKernel Recipes 2022 - io_uring: path to zerocopy I/OKernel Recipes2022-08-22 | With I/O devices getting faster each year, memory copies are becoming more and more expensive, wasting a lot of CPU cycles and being a burden to the memory subsystem. The problem goes even deeper, as device-to-device transfers usually require intermediate steps, pumping the data through the RAM. We’re going to explore what io_uring has to offer and plans in the areas of zerocopy and peer-to-peer I/O.
Pavel Begunkov
More: kernel-recipes.org/en/2022/talks/io_uring-path-to-zerocopy-i-oKernel Recipes 2022 - Checking your work: validating the kernel by building and testing in CIKernel Recipes2022-08-22 | The Linux kernel is one of the most complex pieces of software ever written. Being in ring 0, bugs in the kernel are a big problem, so having confidence in the correctness and robustness of the kernel is incredibly important. This is difficult enough for a single version and configuration of the kernel, but becomes exponentially more difficult as you consider the need to validate the kernel across various configurations, architectures, trees, and branches.
While there are a number of great tools available to write tests for the kernel, and a number of great resources to run those tests and publish the results, our general testing and CI story is inconsistent. Some subsystems run a 100% stable kselftest suite on patchwork, others run regression tests in datacenters maintained by private companies, and yet others run tests on machines that reside in maintainers’ private datacenters (basements?).
The aim of this talk is to paint a relatively complete picture of the kernel testing story as it exits today, to highlight some of the pain-points felt by maintainers and contributors, and to suggest a way forward towards a more comprehensive and consistent testing story for the upstream community.