Skip to contentSkip to conversation

UCSI failing due to probe() getting version 0

DISCUSSION Oliver Neukum 2 participants 4 messages Aug 5, 2021 – Aug 12, 2021 USB

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying this on a new laptop, but I am getting a result I do not understand.
ucsi_acpi_probe() is called, but ucsi_register() fails with -ENODEV, because ucsi->version is 0.

If I dump the ucsi_acpi buffer I get:

00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

And, frankly I do not understand that. Why have the ACPI device but show version number 0?

    Regards
        Oliver

#1 lore raw
Quoted 7 lines · Oliver Neukum

Hi,

I am trying this on a new laptop, but I am getting a result I do not understand.
ucsi_acpi_probe() is called, but ucsi_register() fails with -ENODEV, because ucsi->version is 0.

Quoted 6 lines

If I dump the ucsi_acpi buffer I get:

00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

And, frankly I do not understand that. Why have the ACPI device but show version number 0?

Because of BIOS bugs.

Ideally we should be able to rely on the _STA method of the ACPI device, but unfortunately with UCSI we can't rely on that alone. On some systems the BIOS claims that the device is enabled (based on _STA) even when the platform doesn't actually support UCSI at all.

If you remove the check, does the driver work?

Br,

Signature · 1 line
heikki
#2 lore raw

On 11.08.21 15:23, Heikki Krogerus wrote:
Hi,

Quoted 8 lines

Because of BIOS bugs.

Ideally we should be able to rely on the _STA method of the ACPI device, but unfortunately with UCSI we can't rely on that alone. On some systems the BIOS claims that the device is enabled (based on _STA) even when the platform doesn't actually support UCSI at all.

If you remove the check, does the driver work?

Unfortunately, no it does not:

[    4.657715] ACPI Error: No handler for Region [ECSI] (00000000862594d8) [EmbeddedControl] (20210604/evregion-135) [    4.657734] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20210604/exfldio-265)
[    4.657754] ACPI Error: Aborting method \_SB.UBTC.ECWR due to previous error (AE_NOT_EXIST) (20210604/psparse-531)
[    4.658812] ACPI Error: Aborting method \_SB.UBTC._DSM due to previous error (AE_NOT_EXIST) (20210604/psparse-531)
[    4.659646] ACPI: \_SB_.UBTC: failed to evaluate _DSM (0x6) [    4.659657] ucsi_acpi USBC000:00: ucsi_acpi_dsm: failed to evaluate _DSM 1
[    4.659665] ucsi_acpi USBC000:00: failed to reset PPM!
[    4.659683] ucsi_acpi USBC000:00: PPM init failed (-5)

    Regards
        Oliver

#3 lore raw
Quoted 5 lines · Oliver Neukum

On 11.08.21 15:23, Heikki Krogerus wrote:
Hi,

Quoted 2 lines

Because of BIOS bugs.

Quoted 8 lines
Quoted 6 lines

Ideally we should be able to rely on the _STA method of the ACPI device, but unfortunately with UCSI we can't rely on that alone. On some systems the BIOS claims that the device is enabled (based on _STA) even when the platform doesn't actually support UCSI at all.

If you remove the check, does the driver work?

Unfortunately, no it does not:

OK, so your laptop does not support UCSI even though the BIOS claims it does.

thanks,

Signature · 1 line
heikki