Skip to content
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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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

Successfully merging this pull request may close these issues.

3 participants