Public bug reported:

[ Impact ]

The spd5118 sensor will not function normally if Intel's SMBus has the
SPD Write Disable bit set. Notably, during a resume, the following
messages would appear because driver is not able to sync back the cached
register values:

    [1300273.242285] spd5118 2-0050: Failed to write b = 0: -6
    [1300273.242297] spd5118 2-0050: PM: dpm_run_callback(): spd5118_resume 
[spd5118] returns -6
    [1300273.242309] spd5118 2-0050: PM: failed to resume async: error -6

[ Fix ]

Cherry-pick the following 2 patches:

    1. i2c: smbus: introduce Write Disable-aware SPD instantiating functions[1]
    2. i2c: i801: Do not instantiate spd5118 under SPD Write Disable[2]

[ Tests ]

1. Install and boot the kernel. Check dmesg. The following message
should not appear:

    [    2.819557] spd5118 2-0050: DDR5 temperature sensor: vendor
0x06:0x32 revision 1.6

2. Suspend the system and resume. The error messages should not appear.

[ Where the problem could occur ]

This makes the spd5118 device not instantiate at all during the i801
controller probe. This was however what the driver author recommended,
so let's do it this way before a better solution appears.

[Additional Information]

[1] 
https://lore.kernel.org/all/20250430-for-upstream-i801-spd5118-no-instantiate-v2-1-2f54d91ae...@canonical.com/
[2] 
https://lore.kernel.org/all/20250613-for-upstream-not-instantiate-spd5118-v2-1-cf456ed9b...@canonical.com/
[3] 
https://lore.kernel.org/all/[email protected]/

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: linux-oem-6.14 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: jira-somerville-2085 oem-priority

** Summary changed:

- [SRU] Do not instantiate SPD5118 sensors
+ [SRU] Do not instantiate SPD5118 sensors on i801 SMBus controllers

** Tags added: jira-somerville-2085 oem-priority

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2114963

Title:
  [SRU] Do not instantiate SPD5118 sensors on i801 SMBus controllers

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/2114963/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to