Re: regression: Null pointer exception on resume from S3 with i2c DesignWare driver

From: Jarkko Nikula
Date: Fri May 06 2022 - 04:44:55 EST


Hi

On 5/5/22 12:52, Thorsten Leemhuis wrote:
Running Manjaro on a Gigabyte B660M DS3H DDR4 with custom 5.17 kernel. Confirmed on other distributions and kernels back to 5.12; issue is not present on most recent 5.11 kernel. dmesg traceback points to i2c DesignWare driver, specifically drivers/i2c/busses/i2c-designware-master.c:369. It seems the msgs struct passed in to i2c_dw_xfer_msg is null.

Similar issue seems to be reported here: https://lore.kernel.org/lkml/YY5BRrE8bLyvd3PB@xxxxxxxxxxxxxxxxxx/t/

lspci output: https://pastebin.com/MwFM2VBJ
dmesg from crashed kernel: https://pastebin.com/t6GsHjkq
kernel config: https://pastebin.com/awrSve5u

Could somebody take a look into this? Or was this discussed somewhere
else already? Or even fixed?

Anyway, to get this tracked:

#regzbot introduced: v5.11..v5.12
#regzbot from: Samuel Clark <slc2015@xxxxxxxxx>
#regzbot title: i2c: designware: Null pointer exception on resume from S3
#regzbot link: https://bugzilla.kernel.org/show_bug.cgi?id=215907

Thanks for sharing the bug. The reason why it occurs after v5.11 is that the i2c-designware support for Alder Lake -S came to v5.12 and issue is hiding before it.

Looks like there are suspend/resume issues with i2c-designware on some Gigabyte motherboards. I commented in the bugzilla if Samuel can attach the ACPI dump there.

Jarkko