mbox series

[SRU,U/N/OEM-6.8,0/1] Fix random HuC/GuC initialization failure of Intel i915 driver

Message ID 20240507033227.1879383-1-chris.chiu@canonical.com
Headers show
Series Fix random HuC/GuC initialization failure of Intel i915 driver | expand

Message

Chris Chiu May 7, 2024, 3:32 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/2061049

[Impact]
i915 error can sometimes be found in kernel message when booting the machine w/ power unplugged
kernel: i915 0000:00:02.0: [drm] ERROR GT1: GuC initialization failed -EIO
kernel: i915 0000:00:02.0: [drm] ERROR GT1: Enabling uc failed (-5)
kernel: i915 0000:00:02.0: [drm] ERROR GT1: Failed to initialize GPU, declaring it wedged!
The GPU won't work with this failure

[Fix]
Backport the upatream fix for allowing slow HuC loading.

[Test]
1. Unplug the power of the laptop and make sure it's charged by battery
2. Cold boot or Warm boot the machine and check the GuC init fail message.
3. Go to settings - > about --> graphics to make sure the GPU information is correct every boot.

[Where problems could occur]
Simply increase the loading time of HuC still get a working system. Should be low risk of regression.

John Harrison (1):
  drm/i915/huc: Allow for very slow HuC loading

 drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 10 ++--
 drivers/gpu/drm/i915/gt/uc/intel_huc.c    | 64 ++++++++++++++++++++---
 2 files changed, 63 insertions(+), 11 deletions(-)

Comments

Timo Aaltonen May 8, 2024, 10:11 a.m. UTC | #1
Chris Chiu kirjoitti 7.5.2024 klo 6.32:
> BugLink: https://bugs.launchpad.net/bugs/2061049
> 
> [Impact]
> i915 error can sometimes be found in kernel message when booting the machine w/ power unplugged
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: GuC initialization failed -EIO
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: Enabling uc failed (-5)
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: Failed to initialize GPU, declaring it wedged!
> The GPU won't work with this failure
> 
> [Fix]
> Backport the upatream fix for allowing slow HuC loading.
> 
> [Test]
> 1. Unplug the power of the laptop and make sure it's charged by battery
> 2. Cold boot or Warm boot the machine and check the GuC init fail message.
> 3. Go to settings - > about --> graphics to make sure the GPU information is correct every boot.
> 
> [Where problems could occur]
> Simply increase the loading time of HuC still get a working system. Should be low risk of regression.
> 
> John Harrison (1):
>    drm/i915/huc: Allow for very slow HuC loading
> 
>   drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 10 ++--
>   drivers/gpu/drm/i915/gt/uc/intel_huc.c    | 64 ++++++++++++++++++++---
>   2 files changed, 63 insertions(+), 11 deletions(-)
> 

Acked-by: Timo Aaltonen <timo.aaltonen@canonical.com>

note that for oem-6.8 you should send it to gitea
Tim Gardner May 13, 2024, 2:44 p.m. UTC | #2
On 5/7/24 05:32, Chris Chiu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2061049
> 
> [Impact]
> i915 error can sometimes be found in kernel message when booting the machine w/ power unplugged
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: GuC initialization failed -EIO
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: Enabling uc failed (-5)
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: Failed to initialize GPU, declaring it wedged!
> The GPU won't work with this failure
> 
> [Fix]
> Backport the upatream fix for allowing slow HuC loading.
> 
> [Test]
> 1. Unplug the power of the laptop and make sure it's charged by battery
> 2. Cold boot or Warm boot the machine and check the GuC init fail message.
> 3. Go to settings - > about --> graphics to make sure the GPU information is correct every boot.
> 
> [Where problems could occur]
> Simply increase the loading time of HuC still get a working system. Should be low risk of regression.
> 
> John Harrison (1):
>    drm/i915/huc: Allow for very slow HuC loading
> 
>   drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 10 ++--
>   drivers/gpu/drm/i915/gt/uc/intel_huc.c    | 64 ++++++++++++++++++++---
>   2 files changed, 63 insertions(+), 11 deletions(-)
> 
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Roxana Nicolescu May 27, 2024, 9:28 a.m. UTC | #3
On 07/05/2024 05:32, Chris Chiu wrote:
> BugLink: https://bugs.launchpad.net/bugs/2061049
>
> [Impact]
> i915 error can sometimes be found in kernel message when booting the machine w/ power unplugged
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: GuC initialization failed -EIO
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: Enabling uc failed (-5)
> kernel: i915 0000:00:02.0: [drm] ERROR GT1: Failed to initialize GPU, declaring it wedged!
> The GPU won't work with this failure
>
> [Fix]
> Backport the upatream fix for allowing slow HuC loading.
>
> [Test]
> 1. Unplug the power of the laptop and make sure it's charged by battery
> 2. Cold boot or Warm boot the machine and check the GuC init fail message.
> 3. Go to settings - > about --> graphics to make sure the GPU information is correct every boot.
>
> [Where problems could occur]
> Simply increase the loading time of HuC still get a working system. Should be low risk of regression.
>
> John Harrison (1):
>    drm/i915/huc: Allow for very slow HuC loading
>
>   drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 10 ++--
>   drivers/gpu/drm/i915/gt/uc/intel_huc.c    | 64 ++++++++++++++++++++---
>   2 files changed, 63 insertions(+), 11 deletions(-)
>
Applied to noble:linux master-next branch. Thanks!