New: Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
https://bugzilla.kernel.org/show_bug.cgi?id=222021
Bug ID: 222021
Summary: Not charging via USB C after Kernel update
"underpowered" Dell XPS + workaround
Product: Drivers
Version: 2.5
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: USB
Assignee: [email protected]
Reporter: [email protected]
Regression: No
System: Dell XPS 15 9500
Kernel: 7.2.4-3-cachyos
Distro: CachyOS (Arch-based)
Description:
When the AC adapter is connected while the system is powered off, or already connected during boot, charging works normally. However, plugging in the same (original Dell) AC adapter while the system is already running and unplugged causes the OS to report the adapter as underpowered / "not charging", even though the identical adapter charges correctly at boot or offline.
Steps to reproduce:
1. Boot the laptop with the AC adapter unplugged
2. Once fully booted, plug in the original Dell AC adapter
3. Observe: system reports adapter as underpowered / not charging
4. Power off and charge while off → works normally
5. Reboot with adapter already connected → charges normally
6. Suspend and resume with adapter connected → charging resumes correctly
dmesg (relevant excerpt from boot):
[ 8.703625] ucsi_acpi USBC000:00: unknown error 0 [ 8.703631] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
This started suddenly following a routine system/kernel update via pacman; no hardware or adapter changes were made. Adapter and battery confirmed functional via the offline/boot-charging test described above.
Workaround: a suspend/resume cycle after plugging in restores correct charging behavior.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
https://bugzilla.kernel.org/show_bug.cgi?id=222021
The Linux kernel's regression tracker (Thorsten Leemhuis) ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from The Linux kernel's regression tracker (Thorsten Leemhuis) ([email protected]) --- Please check if vanilla 7.3-rc3 or later is still affected. If it is, attach a
dmesg from 7.3 and a working kernel (ideally vanilla, too); and if no developer
shows up within a few days with an idea what's wrong, please use a git
bisection to identify the culprit.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222021
Lovekesh Solanki ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from Lovekesh Solanki ([email protected]) --- I wonder if this could be a firmware side issue, but you said this started after a kernel update so I guess git bisection is useful.
When you do test mainline and bisect, could you also test this attached patch? I suppose when UCSI_GET_PDOS fails we could reset PPM and retry the read once. Also, did you perform a firmware or bios update around same time?
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222021
--- Comment #3 from Lovekesh Solanki ([email protected]) --- Created attachment 310869
--> https://bugzilla.kernel.org/attachment.cgi?id=310869&action=edit
Reset if Error
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222021
--- Comment #4 from SpliNter ([email protected]) ---
Thanks for the reply! Ill test it as soon as I can.Regarding bios/firmware
updates: no updates where done before the bug appeared.
-------- Ursprüngliche Nachricht --------Von: [email protected] Datum:
18.09.26 18:20 (GMT+01:00) An: [email protected] Betreff: [Bug 222021] Not cha https://bugzilla.kernel.org/show_bug.cgi?id=222021--- Comment #3 from Lovekesh Solanki ([email protected]) ---Created attachment 310869 --> https://bugzilla.kernel.org/attachment.cgi?id=310869&action=editReset if Error-- You may reply to this email to add a comment.You are receiving this mail because:You reported the bug.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222021
--- Comment #5 from SpliNter ([email protected]) ---
Update: I'm now on 7.2.9-1-cachyos (not vanilla mainline, so I haven't tested 7.3-rc yet).
On hotplug the charger now ends upcharging, but the state is unstable for a few seconds.
udevadmmonitor -s power_supply after plugging in the original Dell adapter shows within ~6 s: 4 change events for ucsi-source-psy-USBC000:003, 1 for AC and 2 for BAT0 (I saw "not charging" briefly, then charging, flipping twice).
dmesg shows "ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)" not only at boot but on plug-in as well; the latest one (409.498) is logged right after the AC change event at 409.34, so it coincides with the hotplug.
Earlier today it stayed "not charging" on the same kernel
(at about 70% battery, it is allowed to charge up to 80%), so the problem is intermittent.
I'm about to test mainline and patch today and report back.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222021
--- Comment #6 from SpliNter ([email protected]) --- Tested mainline 7.3.0-rc6-1 (Arch AUR linux-mainline, unpatched, default config)
Result: no change compared to 7.2.9.
- dmesg: "ucsi_acpi USBC000:00: unknown error 0" followed by "UCSI_GET_PDOS failed (-5)" at boot (9.2 s) and again when plugging in AC while running (396.2 s, coincides with the AC event at 396.3 s).
- The desktop battery status flaps on plug-in: plugged in -> not charging -> charging (3 changes). BAT0 ends up as "Charging".
- udevadm monitor --subsystem-match=power_supply: 4 changes of ucsi-source-psy-USBC000:003 within ~6 s, 1x AC, 2x BAT0 (identical to 7.2.9).
udevadm monitor --subsystem-match=power_supply (AC plugged in at ~396 s):
KERNEL[394.326132] change .../USBC000:00/power_supply/ucsi-source-psy-USBC000:003 KERNEL[394.869343] change .../USBC000:00/power_supply/ucsi-source-psy-USBC000:003 KERNEL[396.322197] change .../ACPI0003:00/power_supply/AC KERNEL[396.382409] change .../PNP0C0A:00/power_supply/BAT0 KERNEL[397.542787] change .../USBC000:00/power_supply/ucsi-source-psy-USBC000:003 KERNEL[399.928510] change .../PNP0C0A:00/power_supply/BAT0 KERNEL[400.631229] change .../USBC000:00/power_supply/ucsi-source-psy-USBC000:003
dmesg:
[ 9.247627] ucsi_acpi USBC000:00: unknown error 0 [ 9.247630] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5) [ 396.214445] ucsi_acpi USBC000:00: unknown error 0 [ 396.214454] ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)
Next I will test 7.3.0-rc6 with the "Reset if Error" patch (attachment 310869).
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.
[Bug 222021] Not charging via USB C after Kernel update "underpowered" Dell XPS + workaround
In reply to [email protected]https://bugzilla.kernel.org/show_bug.cgi?id=222021
--- Comment #7 from SpliNter ([email protected]) --- Tested 7.3.0-rc6 with the patch.
Kernel: Arch linux-mainline 7.3rc6-2 with the patch added, default config (uname: 7.3.0-rc6-2-mainline-dirty).
Summary: charging works on plug-in with and without the patch (as it already did on 7.2.9). The remaining symptoms (UCSI error, status flapping) are not changed by the patch.
- AC plugged in while running (~352 s uptime): "ucsi_acpi USBC000:00: unknown error 0" + "UCSI_GET_PDOS failed (-5)" appears twice (352.38 s and 352.87 s). Unpatched 7.3.0-rc6 had it once at the same event (396.2 s).
- No UCSI error at boot this time (unpatched: one at 9.2 s). This is a single boot, so I would not read much into it.
- udevadm monitor --subsystem-match=power_supply: identical to the unpatched
run: 4 changes of ucsi-source-psy-USBC000:003 within ~6 s, 1x AC, 2x BAT0.
- The desktop battery status flaps on plug-in: "plugged in but discharging" -> "not charging" -> "charging" (3 states).
BAT0 ends up as "Charging", so the battery does charge, which fixes my issue.
Unpatched 7.3.0-rc6 and 7.2.9 behave the same.
Thank you for the effort.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.