Missing DG2 HUC firmware (i915)

Bug #2029345 reported by ABCMoNa
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
firmware-nonfree (Debian)
Fix Released
Unknown
linux-firmware (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

Missing HUC firmware. For whatever it is required for, it won't work without the firmware.

[ Fix ]

Upstream linux-firmware commit 8f86b5ab3e051170ea240fc409d457e16e24bc21.

[ Test Case ]

$ cat /sys/kernel/debug/dri/1/gt/uc/huc_info

Should report HUC FW information.

[ Where Problems Could Occur ]

Limited to i915 DG2 (Arc2?) GPUs.

[ Original Description ]

$ sudo update-initramfs -k $(uname -r) -u
update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic
W: Possible missing firmware /lib/firmware/i915/dg2_huc_gsc.bin for module i915
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/vgubuntu-swap_1)
I: Set the RESUME variable to override this.
$

i915/dg2_huc_gsc.bin seems to be missing. While this is an experimental (?) Intel driver for Arc2 dedicated GPUs, and some of these products are no longer being sold, there will probably be people out there using it, and wishing to use the newer driver and HUC support.

Are there reasons not to include this firmware, or was it just an oversight, possibly following Debian's?

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-firmware 20220329.git681281e4-0ubuntu3.16
ProcVersionSignature: Ubuntu 6.2.0-26.26~22.04.1-generic 6.2.13
Uname: Linux 6.2.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: mona 2342 F.... pulseaudio
 /dev/snd/controlC1: mona 2342 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Aug 2 10:44:39 2023
Dependencies: firmware-sof-signed 2.0-1ubuntu4.1
InstallationDate: Installed on 2023-02-12 (170 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
MachineType: Microsoft Corporation Surface Laptop 4
PackageArchitecture: all
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.2.0-26-generic root=/dev/mapper/vgubuntu-root ro quiet splash
RelatedPackageVersions:
 linux-restricted-modules-6.2.0-26-generic N/A
 linux-backports-modules-6.2.0-26-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.16
SourcePackage: linux-firmware
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/11/2023
dmi.bios.vendor: Microsoft Corporation
dmi.bios.version: 22.101.143
dmi.board.name: Surface Laptop 4
dmi.board.vendor: Microsoft Corporation
dmi.chassis.type: 9
dmi.chassis.vendor: Microsoft Corporation
dmi.modalias: dmi:bvnMicrosoftCorporation:bvr22.101.143:bd04/11/2023:svnMicrosoftCorporation:pnSurfaceLaptop4:pvr124I00061T000M0100000D0B05F1C01P16Y1U00S0:rvnMicrosoftCorporation:rnSurfaceLaptop4:rvr:cvnMicrosoftCorporation:ct9:cvr:skuSurface_Laptop_4_19501951:
dmi.product.family: Surface
dmi.product.name: Surface Laptop 4
dmi.product.sku: Surface_Laptop_4_1950:1951
dmi.product.version: 124I:00061T:000M:0100000D:0B:05F:1C:01P:16Y:1U:00S:0
dmi.sys.vendor: Microsoft Corporation

Revision history for this message
ABCMoNa (abcmona) wrote :
Revision history for this message
Juerg Haefliger (juergh) wrote :

That firmware was released to kernel.org linux-firmwware after Jammy released, that's why it's missing in Jammy. We can SRU it into JAmmy but do you have the HW to test it?

Changed in linux-firmware (Ubuntu):
status: New → Incomplete
tags: added: kern-7607
Revision history for this message
ABCMoNa (abcmona) wrote :

I don't actually have a dedicated Intel GPU (and I think this firmware is specific to this?) to test it, sorry.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

I actually do have DG2 (Arc something) and can test it with the hwe stack plus firmware. This should be enough to enable it on jammy, as lunar works fine.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

that said, huc is needed only (?) for media decode/encode, and I don't think we have support for that in jammy

Revision history for this message
Jianshui Yu (jianshui) wrote :

Hi Timo
I reproduce the issue on my laptap(intel iGPU + DG2) with ubuntu jammy after upgrade to kernel 6.2.0-26-generic and linux-firmware 20220329.git681281e4-0ubuntu3.17

$ uname -r
6.2.0-26-generic

$ sudo apt list --installed | grep linux-firmware

linux-firmware/jammy-updates,jammy-updates,now 20220329.git681281e4-0ubuntu3.17 all [installed]

$ cat /sys/kernel/debug/dri/1/gt/uc/huc_info
HuC firmware: i915/dg2_huc_gsc.bin
        status: MISSING
        version: found 0.0.0
        uCode: 0 bytes
        RSA: 0 bytes
HuC status: 0x00164000

if Huc missing, it will break media hardware decode/encode

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

I have a Lenovo ThinkPad T14 Gen2 (11th gen intel) with Iris gpu and I see this after upgrading to kernel 6.2.

00:02.0 VGA compatible controller: Intel Corporation TigerLake-LP GT2 [Iris Xe Graphics] (rev 01)

update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic
W: Possible missing firmware /lib/firmware/i915/dg2_huc_gsc.bin for module i915

As pointed out above, this is a bug in the debian packaging (comment #4). Should be straightforward to fix.
 Why is the status "Incomplete"?

Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-firmware (Ubuntu Jammy):
status: New → Confirmed
Juerg Haefliger (juergh)
description: updated
Revision history for this message
BENDERLOQ (bender35) wrote :

hello

Here another with the same problem, I have a GA-H61M-S2PV with an i5 of 2nd generation and give me the same error in each kernel update.

If it serves you, my PC has no dual start and has an Intel Graphics 2000 graphic, if I can help this error in the testing part, tell me.

I do not observe any operating anomaly programs or games (it works well)

Revision history for this message
BENDERLOQ (bender35) wrote :

Hello, here I leave a temporary solution, I have done it and it no longer shows me the error:

In normal mode, type this command in order to download the kernel.org file:

wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915/dg2_huc_gsc.bin

now later with the root user, type the command cp in this way:

cp dg2_huc_gsc.bin /lib/firmware/i915/

log out of root and type the following command to update the initramfs with the new driver:

sudo update-initramfs -u

We type the password and the error will no longer appear.

reboot to secure driver installation

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

it's included in lunar and up

Changed in linux-firmware (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Jianshui Yu (jianshui) wrote :

what will it be in jammy?
thanks

Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu Jammy):
status: Confirmed → Fix Committed
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello ABCMoNa, or anyone else affected,

Accepted linux-firmware into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/linux-firmware/20220329.git681281e4-0ubuntu3.18 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote (last edit ):

Confirming that package linux-firmware 20220329.git681281e4-0ubuntu3.18 did fix the problem for me in Jammy.

Setting up linux-firmware (20220329.git681281e4-0ubuntu3.18) ...
update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic
update-initramfs: Generating /boot/initrd.img-5.19.0-50-generic

(no warnings).

And a quick inspection of the generated initrd file shows the firmware is now added to it:

$ lsinitramfs initrd.img-6.2.0-26-generic | grep -i dg2
usr/lib/firmware/i915/dg2_dmc_ver2_08.bin
usr/lib/firmware/i915/dg2_guc_70.bin
usr/lib/firmware/i915/dg2_huc_gsc.bin

Revision history for this message
Jianshui Yu (jianshui) wrote :

confirm the issue is fixed by 20220329.git681281e4-0ubuntu3.18.

Get:1 http://cn.archive.ubuntu.com/ubuntu jammy-proposed/main amd64 linux-firmware all 20220329.git681281e4-0ubuntu3.18 [255 MB]
Fetched 249 MB in 22s (11.4 MB/s)
(Reading database ... 211564 files and directories currently installed.)
Preparing to unpack .../linux-firmware_20220329.git681281e4-0ubuntu3.18_all.deb ...
Unpacking linux-firmware (20220329.git681281e4-0ubuntu3.18) over (20220329.git681281e4-0ubuntu3.17) ...
Setting up linux-firmware (20220329.git681281e4-0ubuntu3.18) ...
update-initramfs: Generating /boot/initrd.img-6.2.0-26-generic

$ dmesg| grep huc
[ 4.908511] i915 0000:00:02.0: [drm] HuC firmware i915/tgl_huc.bin version 7.9.3
[ 7.074184] i915 0000:03:00.0: [drm] HuC firmware i915/dg2_huc_gsc.bin version 7.10.3

sudo cat /sys/kernel/debug/dri/1/gt/uc/huc_info
HuC firmware: i915/dg2_huc_gsc.bin
        status: RUNNING
        version: found 7.10.3
        uCode: 0 bytes
        RSA: 0 bytes
HuC status: 0x00164001

Timo Aaltonen (tjaalton)
tags: added: verification-done-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-firmware - 20220329.git681281e4-0ubuntu3.18

---------------
linux-firmware (20220329.git681281e4-0ubuntu3.18) jammy; urgency=medium

  * External thunderbolt3 & built-in monitor black out on AMD Ryzen 9 PRO 7940HS w/ Radeon 780M Graphics (LP: #2029384)
    - amdgpu: Update DMCUB for DCN314 & Yellow Carp
  * Update PHX GPU F/W (LP: #2027959)
    - amdgpu: update GC 11.0.1 firmware for amd.5.5 release
    - amdgpu: update GC 11.0.4 firmware for amd.5.5 release
    - amdgpu: Update GC 11.0.1 and 11.0.4
  * Include the RTL8851BE support (LP: #2029377)
    - rtl_bt: Add firmware and config files for RTL8851B
    - rtw89: 8851b: add firmware v0.29.41.0
  * Missing DG2 HUC firmware (i915) (LP: #2029345)
    - i915: Add HuC 7.10.3 for DG2

 -- Juerg Haefliger <email address hidden> Tue, 15 Aug 2023 11:06:25 +0200

Changed in linux-firmware (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Update Released

The verification of the Stable Release Update for linux-firmware has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
BENDERLOQ (bender35) wrote :
Download full text (42.1 KiB)

hello

quick test made to the new linux-firmware

I send the result of the lshw saying the computer on which the new version has been installed:

c50
    descripción: Equipo de escritorio
    producto: To be filled by O.E.M. (To be filled by O.E.M.)
    fabricante: Gigabyte Technology Co., Ltd.
    versión: To be filled by O.E.M.
    serie: To be filled by O.E.M.
    anchura: 64 bits
    capacidades: smbios-2.7 dmi-2.7 smp vsyscall32
    configuración: boot=normal chassis=desktop family=To be filled by O.E.M. sku=To be filled by O.E.M. uuid=03000200-0400-0500-0006-000700080009
  *-core
       descripción: Placa base
       producto: H61M-S2PV
       fabricante: Gigabyte Technology Co., Ltd.
       id físico: 0
       versión: x.x
       serie: To be filled by O.E.M.
       ranura: To be filled by O.E.M.
     *-firmware
          descripción: BIOS
          fabricante: American Megatrends Inc.
          id físico: 0
          versión: FD
          date: 03/23/2012
          tamaño: 64KiB
          capacidad: 2560KiB
          capacidades: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb biosbootspecification uefi
     *-cache:0
          descripción: L1 caché
          id físico: 4
          ranura: CPU Internal L1
          tamaño: 128KiB
          capacidad: 128KiB
          capacidades: internal write-through
          configuración: level=1
     *-cache:1
          descripción: L2 caché
          id físico: 5
          ranura: CPU Internal L2
          tamaño: 1MiB
          capacidad: 1MiB
          capacidades: internal write-through instruction
          configuración: level=2
     *-cache:2
          descripción: L3 caché
          id físico: 6
          ranura: CPU Internal L3
          tamaño: 6MiB
          capacidad: 6MiB
          capacidades: internal write-back instruction
          configuración: level=3
     *-memory
          descripción: Memoria de sistema
          id físico: 7
          ranura: Placa de sistema o placa base
          tamaño: 8GiB
        *-bank:0
             descripción: DIMM DDR3 Síncrono 1333 MHz (0,8 ns)
             producto: ST51264BA1339.16FM
             fabricante: 859B
             id físico: 0
             serie: 011F15CC
             ranura: ChannelA-DIMM0
             tamaño: 4GiB
             anchura: 64 bits
             reloj: 1333MHz (0.8ns)
        *-bank:1
             descripción: DIMMProject-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-03-14 06:38+0000Last-Translator: Paco Molinero <email address hidden>Language-Team: Spanish <email address hidden>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2023-08-01 15:17+0000X-Generator: Launchpad (build d80dbb5bdc9110f3a64cc968928033472d5e0509) [vacío]
             producto: [Empty]
             fabricante: [Empty]
             id físico: 1
             serie: [Empty]
             ranura: ChannelA-DIMM1
        *-bank:2
             descripción: DIMM DDR3 Síncrono 1333 MHz (0,8 ns)
             producto: 99U5471-012.A00LF
             fabrican...

Revision history for this message
BENDERLOQ (bender35) wrote :

hello

checked reboot, no apparent problems
correct hardware recognition (tested with a connected monitor)
all ok, bug fixed

Greetings

Changed in firmware-nonfree (Debian):
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.