Bug 218836

Summary: Framework Laptop 16 i2c-hid Based Touchpad Sometimes Fails To Initialize Properly On Early Boot
Product: Drivers Reporter: Arazil (kernel)
Component: I2CAssignee: Drivers/I2C virtual user (drivers-i2c)
Status: NEW ---    
Severity: normal CC: mario.limonciello
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: Kernel Log During Failed Boot Attempt
Kernel Log During Successful Boot Attempt

Description Arazil 2024-05-14 11:27:36 UTC
Created attachment 306291 [details]
Kernel Log During Failed Boot Attempt

We are experiencing an issue where the touch pad on the Framework Laptop 16 fails to initialize properly when the "i2c-hid" is loaded early in the boot process. This issue is especially prominent when "i2c-hid" is built directly into the kernel. When the "i2c-hid" module is built in, the issue occurs roughly 50% of the time. (https://community.frame.work/t/touchpad-not-working-since-update-archlinux/50304) Moving the module load to later in the boot process appears to resolve this issue by making initialization more likely to succeed. (https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/releases/v39.1)

Kernel version: Linux artemis 6.9.0-1-git-01560-ga7c840ba5fa7 #1 SMP PREEMPT_DYNAMIC Tue, 14 May 2024 01:49:25 +0000 x86_64 GNU/Linux

We are using the standard Arch Linux AUR "linux-git" package with the following kernel configuration changes:

CONFIG_I2C_DEBUG_CORE=y
CONFIG_I2C_DEBUG_ALGO=y
CONFIG_I2C_DEBUG_BUS=y
CONFIG_I2C_HID=y
CONFIG_I2C_HID_ACPI=y
CONFIG_I2C_HID_OF=y
CONFIG_I2C_HID_CORE=y

We tried reverting the following patches without any behavior impact (good or bad):

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.8.y&id=fb49deec375aa5beca4a5d71d7a74ec951872f28

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.8.y&id=418c5575d56410c6e186ab727bf32ae32447d497

Impacted devices seem to include: "PIXA3854:00" and "i2c_designware AMDI0010:03"
Comment 1 Arazil 2024-05-14 11:28:05 UTC
Created attachment 306292 [details]
Kernel Log During Successful Boot Attempt