Skip to content

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
@github-actions
Copy link

github-actions bot commented Sep 30, 2024

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
@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

None yet

Development

Successfully merging this pull request may close these issues.

5 participants