From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Ola Cewers <ola.cewers@gmail.com>
Cc: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org
Subject: Re: ucsi_acpi: PPM init fails at boot but succeeds on manual reload; DP alt mode cannot be entered
Date: Mon, 26 Oct 2026 10:19:45 +0100 [thread overview]
Message-ID: <at8bMW5KYDldhfJp@black.igk.intel.com> (raw)
In-Reply-To: <CANJWS4wk0u3yJMupUUimLiFW9kMLtAUJ0fuV=sGYTk8Uev2W9A@mail.gmail.com>
Hi Ola,
Sorry to keep you waiting. I was on vacation.
On Mon, Oct 05, 2026 at 03:44:03AM -0500, Ola Cewers wrote:
> (Resending as plain text; my previous copy was HTML and the list
> rejected it. Sorry for the duplicate.)
>
> Hi Heikki,
>
> Thanks for the reply, and sorry it took me so long to answer. My first
> mail never reached the list (it was rejected as HTML). I resent a
> revised version on 15 Sep as a separate thread ("ThinkPad X1 Carbon
> Gen 14: DP reconnect fails with Type-C ports registered; connector
> reset does not recover"), and the explanation below covers that thread
> too. I missed your reply until today.
>
> On Tue, Sep 22, 2026 at 12:46:55PM +0200, Heikki Krogerus wrote:
> > UCSI should not have any impact on the actual USB Power Delivery (PD)
> > negotiation which is also used with the alternate modes. UCSI is just
> > a status interface with a minimal level of (optional) control. The
> > actual USB PD negotiation is all handled in the firmware on UCSI
> > systems, the USB PD controller firmware of the Embedded Controller
> > (EC) firmware.
>
> You were right, and part 2 of my report should be withdrawn. The lost
> display after a replug was not caused by UCSI. It was a regression in
> the compositor backend, aquamarine 0.15.0 (Hyprland), tracked as
> hyprwm/aquamarine#386. When a connector goes away, 0.15.0 never
> disables its CRTC in the kernel. Reports in that issue show that on
> Type-C ports the connector then stays disconnected after a replug.
> That version arrived on this machine on 9 September, in the same
> update as kernel 7.2.3. aquamarine 0.15.1 fixes it here.
>
> I also need to retract one conclusion in my report. I ruled out the
> compositor because it never saw a connected output. The connector did
> stay disconnected, but the failure started in the compositor, which had
> left the old CRTC enabled.
>
> > Please confirm this by disabling the UCSI driver completely for
> > example by blacklisting it and then reproducing the issue.
>
> I have not run the blacklist test yet. The closest result I have is
> from today (kernel 7.2.5-3-omarchy, a distro build; aquamarine 0.15.1).
> PPM init had failed at boot and /sys/class/typec was empty, so the UCSI
> driver was loaded but had registered no ports. In that state I did
> three unplug/replug cycles with the lid open, using both USB-C ports
> and two Dell monitors, each on a direct USB-C cable. The display came
> back every time. So the EC re-enters DP alt mode by itself, as you
> described. I can still run the actual blacklist test if that would be
> useful.
Probable not necessary any more then.
> > Please report the issue to Lenovo in any case,
>
> That report is fwupd/firmware-lenovo#628. I have added a correction
> there as well:
> https://www.google.com/url?q=https://github.com/fwupd/firmware-lenovo/issues/628%23issuecomment-5990786692&source=gmail&ust=1791276243291000&sa=E
Thanks!
> > The other problem, where the ucsi fails to probe, may be solved
> > already with a workaround where the interface is attempted to be
> > detected multiple times instead of failing immediately.
>
> That would help here. PPM init still fails on 4 of the 6 boots I have
> had on 7.2.5-3-omarchy, either with -EINVAL after "possible UCSI driver
> bug 2" or with -ENODEV. Could you point me to the patch or the tree it
> is in? I am happy to test it on this machine.
It's this one:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2542613815381e090d5036d5751ab5e2fd9f8b07
Br,
--
heikki
prev parent reply other threads:[~2026-10-26 9:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CANJWS4xAUTD1Beq_0YBN_OecWr5yOz4L6cgmxYA5Ascbm9Lw-w@mail.gmail.com>
2026-09-22 10:46 ` ucsi_acpi: PPM init fails at boot but succeeds on manual reload; DP alt mode cannot be entered Heikki Krogerus
[not found] ` <CANJWS4wk0u3yJMupUUimLiFW9kMLtAUJ0fuV=sGYTk8Uev2W9A@mail.gmail.com>
2026-10-26 9:19 ` Heikki Krogerus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=at8bMW5KYDldhfJp@black.igk.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=ola.cewers@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox