Skip to contentSkip to conversation

ACPI errors on Lenovo C50-30 (AE_AML_INFINITE_LOOP, argument type mismatch)

Bug 104791 [email protected] 1 participant 8 messages Oct 22, 2015 – Jun 10, 2020 1 message not in the archive

lore
Share & tools
lore

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

#1 lore raw

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

Aaron Lu <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|ACPICA-Core                 |Video(DRI - non Intel)
           Assignee|[email protected]          |drivers_video-dri@kernel-bu
                   |                            |gs.osdl.org
            Product|ACPI                        |Drivers

--- Comment #5 from Aaron Lu <[email protected]> --- Moving to GPU for nouveau people to take a look.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw
In reply to a message not in the archive

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

Peter Wu <[email protected]> changed:

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

--- Comment #6 from Peter Wu <[email protected]> ---
The problem is that nouveau_switcheroo_optimus_dsm() unconditionally calls function 0x1B ("NOUVEAU_DSM_OPTIMUS_FLAGS") without checking that this function is actually supported. Lenovo's firmware decides to run into an infinite loop in this case instead of returning an error code.

Proposed patch:
https://lkml.kernel.org/r/[email protected]

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw
In reply to a message not in the archive

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

--- Comment #7 from James <[email protected]> --- (In reply to Peter Wu from comment #6)

Quoted 3 lines

Proposed patch:
https://lkml.kernel.org/r/1463244575-3515-1-git-send-email-peter@lekensteyn.
nl

Sorry I didn't immediately spot your response. (Bad Google spam filter.) I can't get the above link to work, please clarify and I'll try and remember how to build a patched kernel (it's been a while...).

Thanks.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw
In reply to a message not in the archive

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

--- Comment #8 from Peter Wu <[email protected]> --- Apparently the mail is not found on that list, try this one:
https://lists.freedesktop.org/archives/nouveau/2016-May/025039.html

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw
In reply to a message not in the archive

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

--- Comment #9 from James <[email protected]> --- This patch does stop the infinite loop on my machine.

(Although now with or without it nouveau seems to cause delays starting GNOME 3, but that's another bug report.)

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw
In reply to a message not in the archive

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

--- Comment #10 from Peter Wu <[email protected]> --- (In reply to James from comment #9)

Quoted 1 line

This patch does stop the infinite loop on my machine.

Cool, can I add your Tested-by: James <[email protected]> to the patch?

Quoted 2 lines

(Although now with or without it nouveau seems to cause delays starting GNOME 3, but that's another bug report.)

If it is a second or so, that is likely the card switching on or off. With or without this patch you can disable the power saving by setting the module option nouveau.runpm=0 (kernel cmdline) or "options nouveau runpm=0" (modprobe.conf snippet). Do you still experience a delay after that?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#7 lore raw
In reply to a message not in the archive

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

--- Comment #11 from James <[email protected]> --- (In reply to Peter Wu from comment #10)

Quoted 4 lines

(In reply to James from comment #9)

Quoted 1 line

This patch does stop the infinite loop on my machine.

Cool, can I add your Tested-by: James <[email protected]> to the patch?

Yes you may. Please note I tested this patch against the current Fedora 23 kernel, 4.4.9-300.fc23.x86_64.

Quoted 7 lines
Quoted 2 lines

(Although now with or without it nouveau seems to cause delays starting GNOME 3, but that's another bug report.)

If it is a second or so, that is likely the card switching on or off. With or without this patch you can disable the power saving by setting the module option nouveau.runpm=0 (kernel cmdline) or "options nouveau runpm=0" (modprobe.conf snippet). Do you still experience a delay after that?

It was more like 10 seconds. However the delay did disappear after using runpm=0.

(I generally don't use the nVidia chip on this machine even under Windows, it's an 820A on 4 PCIe lanes. I've not seen it show performance advantage over the built-in Intel HD5500, I don't know why Lenovo bothered with it.)

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw
In reply to a message not in the archive

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

James Ettle ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #12 from James Ettle ([email protected]) ---
I've not seen this for a while now, using the Nvidia 820A on this machine seems to be working OK. Closing, tested with kernel-5.6.16-300.fc32.x86_64.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel