Skip to contentSkip to conversation

ideapad_acpi: VPC2004:00: DYTC interface is not available. platform_profile interface is unavailable

Bug 212985 [email protected] 2 participants 7 messages May 7, 2021 – Feb 5, 2022 1 message not in the archive x86 platform drivers

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]/

#2 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=212985

Barnabás Pőcze ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Barnabás Pőcze ([email protected]) --- That message is not necessarily a bug. That interface is not available on all devices. Can you check if the VPC2004 ACPI device has a method named "DYTC"?

Quoted 1 line

The conservation_mode interface is available but cannot be used.

Sorry, that's on me. There is a glaring typo in the driver, I'll send a patch to fix it shortly.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.
#3 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=212985

--- Comment #2 from Tim S ([email protected]) --- Thanks a lot.

Quoted 1 line

Can you check if the VPC2004 ACPI device has a method named "DYTC"?

If I'm understanding correctly, you're saying to check the disassembled ACPI tables, right? The disassembled dsdt.dsl does appear to contain a DYTC method:

        Device (VPC0)
        {
            Name (_HID, "VPC2004")  // _HID: Hardware ID
            Name (_UID, Zero)  // _UID: Unique ID
            Name (_VPC, Zero)
            Name (VPCD, Zero)
            Method (_STA, 0, NotSerialized)  // _STA: Status
            {
                Return (0x0F)
            }

            Method (DYTC, 1, Serialized)
            {
                ITSV = Zero
                ITSM = Zero
                Local0 = Zero
                Local1 = (Arg0 & 0x01FF)
                Local2 = (Arg0 & 0xFFFFFE00)
                Switch (Local1)
                {
                    Case (Zero)

         ....

I'll attach the full file, in case it is needed.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.
#5 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=212985

--- Comment #4 from Barnabás Pőcze ([email protected]) ---

Quoted 2 lines

If I'm understanding correctly, you're saying to check the disassembled ACPI tables, right?

Yes, exactly.

From this part:

            Method (DYTC, 1, Serialized)
            {
                ITSV = Zero
                ITSM = Zero
                Local0 = Zero
                Local1 = (Arg0 & 0x01FF)
                Local2 = (Arg0 & 0xFFFFFE00)
                Switch (Local1)
                {
                    Case (Zero)
                    {
                        If (!Local2)
                        {
                            Local0 |= One
                            Local0 |= 0x0100
                            Local0 |= Zero
                            Local0 |= 0x40000000
                        }
                        Else
                        {
                            Local0 |= Zero
                            Local0 |= 0x04
                        }
                    }

it **seems to me** that only DYTC v4 is supported on that model - although I'm not sure. The ideapad_acpi driver will only expose the platform_profile functionality if it finds DYTC v5 or newer. The code was adapted from the thinkpad_acpi driver, and the platform_profile support was contributed to that driver by Lenovo employee Mark Pearson. I cannot remember the exact reason why earlier versions are not supported, you could possibly write to the PDx86 mailing list (platform-driver-x86 at vger.kernel.org) and CC him if you want to know more; or search back on lore.kernel.org.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.
#7 lore raw
In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=212985

Luis O ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #6 from Luis O ([email protected]) ---
Sorry for bothering, but I noticed than in kernel 5.16.5 there's a new message:

[    8.069951] ideapad_acpi VPC2004:00: DYTC_VERSION is less than 4 or is not
allowed: 4
[    8.069953] ideapad_acpi VPC2004:00: DYTC interface is not available
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.