Bug 217960

Summary: Linux 6.5.5 - kernel BUG with ucsi_acpi
Product: Drivers Reporter: Oleksii Shevchuk (alxchk)
Component: USBAssignee: Default virtual assignee for Drivers/USB (drivers_usb)
Status: NEW ---    
Severity: normal CC: bagasdotme
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg1
dmesg2
dmesg 6.4.3

Description Oleksii Shevchuk 2023-10-01 12:43:35 UTC
After update to linux 6.5.5 I observed several crashes during bootup when USB drive connected to USB-C hub. To find out what has been crashed I enabled EFI pstore. Unfortunately there were no crashes after that. However, there are kernel BUG traces in dmesg. After several experiments I found strong correlation between ucsi_acpi driver and the crash.

I blacklisted:
blacklist typec_ucsi
blacklist ucsi_acpi
blacklist roles
blacklist typec

Two dmesgs are in attachment. 

The messages to search:
ucsi_acpi USBC000:00: possible UCSI driver bug 2
ucsi_acpi USBC000:00: error -EINVAL: PPM init failed
Comment 1 Oleksii Shevchuk 2023-10-01 12:43:53 UTC
Created attachment 305170 [details]
dmesg1
Comment 2 Oleksii Shevchuk 2023-10-01 12:44:06 UTC
Created attachment 305171 [details]
dmesg2
Comment 3 Bagas Sanjaya 2023-10-01 14:06:05 UTC
(In reply to Oleksii Shevchuk from comment #0)
> After update to linux 6.5.5 I observed several crashes during bootup when
> USB drive connected to USB-C hub. To find out what has been crashed I
> enabled EFI pstore. Unfortunately there were no crashes after that. However,
> there are kernel BUG traces in dmesg. After several experiments I found
> strong correlation between ucsi_acpi driver and the crash.
> 
> I blacklisted:
> blacklist typec_ucsi
> blacklist ucsi_acpi
> blacklist roles
> blacklist typec
> 
> Two dmesgs are in attachment. 
> 
> The messages to search:
> ucsi_acpi USBC000:00: possible UCSI driver bug 2
> ucsi_acpi USBC000:00: error -EINVAL: PPM init failed

Do you have this issue on v6.4?
Comment 4 Oleksii Shevchuk 2023-10-01 14:25:15 UTC
No. Here is dmesg from 6.4.3 without blacklists
Comment 5 Oleksii Shevchuk 2023-10-01 14:25:41 UTC
Created attachment 305172 [details]
dmesg 6.4.3
Comment 6 Bagas Sanjaya 2023-10-01 23:40:51 UTC
On 01/10/2023 21:25, bugzilla-daemon@kernel.org wrote:
> https://bugzilla.kernel.org/show_bug.cgi?id=217960
> 
> --- Comment #4 from Oleksii Shevchuk (alxchk@gmail.com) ---
> No. Here is dmesg from 6.4.3 without blacklists
> 

Then please bisect (see Documentation/admin-guide/bug-bisect.rst
for instructions).