Skip to content

sys-kernel/coreos-modules: build Intel iGPU module #2349

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

ader1990
Copy link
Contributor

@ader1990 ader1990 commented Sep 30, 2024

See: flatcar/Flatcar#1306

This PR adds support for the Intel built-in GPU (CONFIG_DRM_I915=m)

Testing done

[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

Copy link
Member

@jepio jepio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment about AGP

@ader1990 ader1990 marked this pull request as draft September 30, 2024 14:09
Copy link

github-actions bot commented Sep 30, 2024

Build action triggered: https://github.com/flatcar/scripts/actions/runs/11143870993

Enable Intel iGPU usage in Flatcar.

The change only affects AMD64/x86 arch, as the GPU is part of the SoC.

See: flatcar/Flatcar#1306
@ader1990 ader1990 force-pushed the ader1990/enable-intel-igpu branch from 185f040 to a91d0f2 Compare October 1, 2024 10:17
@ader1990
Copy link
Contributor Author

ader1990 commented Oct 1, 2024

The resulting image needs testing on a real environment, currently I do not have one to test on.

Also, the passthrough implementation using qemu or another hypervisor will most likely need extra kernel config options options enabled, extra kernel parameteres enabled and possibly initrd changes.

Found these two documents that might be of help:
https://3os.org/infrastructure/proxmox/gpu-passthrough/gpu-passthrough-to-vm/#proxmox-configuration-for-gpu-passthrough
https://3os.org/infrastructure/proxmox/gpu-passthrough/igpu-split-passthrough/

Thanks.

@ader1990 ader1990 self-assigned this Oct 2, 2024
@ader1990 ader1990 marked this pull request as ready for review October 2, 2024 12:22
@ader1990
Copy link
Contributor Author

ader1990 commented Oct 2, 2024

The size increase in /usr is around 13MB, and the initrd increase is almost zero, as the driver is built as module and not loaded in the initrd stage.

The increase in /usr is not negligible, and consists of firmware binaries in /usr/lib/firmware/i915.

The AMD64 compressed image has increased to around 590MB from 585MB.

Any thoughts or opinions on the size increase? Another option would be a systemd-sysext, similar to the zfs one.

@savely-krasovsky
Copy link

savely-krasovsky commented Feb 22, 2025

@jepio are there any comments on merging that PR? Just completed my migration from CoreOS and was quite shocked to see that Flatcar doesn't ship i915 driver. It's crucial for homelab setups with hardware encoding (Plex, Jellyfin, etc).

@jepio
Copy link
Member

jepio commented Feb 24, 2025

Since this request has come up several times - let's merge it. We can figure out a sysext for optional kernel modules in the future.

@jepio jepio merged commit 754bb45 into main Feb 24, 2025
7 checks passed
@savely-krasovsky
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

4 participants