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

Are files in /lib/firmware (Ubuntu) meant to be double compressed? #2236

Closed
mudler opened this issue Feb 8, 2024 Discussed in #2235 · 3 comments · Fixed by #2237
Closed

Are files in /lib/firmware (Ubuntu) meant to be double compressed? #2236

mudler opened this issue Feb 8, 2024 Discussed in #2235 · 3 comments · Fixed by #2237
Assignees
Labels
bug Something isn't working regression

Comments

@mudler
Copy link
Member

mudler commented Feb 8, 2024

Discussed in #2235

Originally posted by bidluo February 8, 2024
Not sure if that's the right terminology but I noticed after moving away from the provider images that my HW acceleration stopped working in the cluster due to i915 not being loaded properly with messages like this:

[   13.200098] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC firmware i915/adlp_guc_70.bin: fetch failed -ENOENT
[   13.200104] i915 0000:00:02.0: [drm] GT0: GuC firmware(s) can be downloaded from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915
[   13.200942] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/adlp_guc_70.bin version 0.0.0
[   13.201020] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC initialization failed -ENOENT
[   13.201026] i915 0000:00:02.0: [drm] *ERROR* GT0: Enabling uc failed (-5)
[   13.201030] i915 0000:00:02.0: [drm] *ERROR* GT0: Failed to initialize GPU, declaring it wedged!

After checking the /lib/firmware/i915 dir, I found that all the files there were double compressed (ie: adlp_guc_70.bin.zst.zst), I'm not sure if it's supposed to be like that but after decompressing once (so it becomes adlp_guc_70.bin.zst) HW acceleration works again as evidenced by a populated /dev/dri and a dmesg output that looks more favorable:

[   13.241021] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/adlp_dmc.bin (v2.20)
[   13.249765] i915 0000:00:02.0: [drm] GT0: GuC firmware i915/adlp_guc_70.bin version 70.5.1
[   13.249784] i915 0000:00:02.0: [drm] GT0: HuC firmware i915/tgl_huc.bin version 7.9.3
[   13.264935] i915 0000:00:02.0: [drm] GT0: HuC: authenticated for all workloads
[   13.265856] i915 0000:00:02.0: [drm] GT0: GUC: submission enabled
[   13.265858] i915 0000:00:02.0: [drm] GT0: GUC: SLPC enabled
[   13.266313] i915 0000:00:02.0: [drm] GT0: GUC: RC enabled

I've only checked the kairos/ubuntu:23.10-standard-amd64-generic-v2.5.0-k3sv1.29.0-k3s1 image but is this desired behavior?

@mudler
Copy link
Member Author

mudler commented Feb 8, 2024

@Itxaka looks like #1359 doubled modules?

@mudler mudler added bug Something isn't working regression labels Feb 8, 2024
@Itxaka
Copy link
Member

Itxaka commented Feb 8, 2024

@mudler got the build log? Iirc it shows the files being compressed when building artifacts so it should show us the source files. Maybe the compression is wrong but that has been in there for a long time with no reports of it failing so maybe we are running it twice now and the find is not exact enough so it picks compressed files?

Looking at this, Ubuntu which version? Maybe they come compressed in the latest Ubuntu hahaha

@Itxaka
Copy link
Member

Itxaka commented Feb 8, 2024

ahh no point, yeah 23.10 ships with compressed firmware finally! so we have to either not do it on ubuntu 23.10 or just negate in the find any files witrh zstd extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants