drm/nouveau/acpi: check for function 0x1B before using it
authorPeter Wu <peter@lekensteyn.nl>
Fri, 15 Jul 2016 13:12:17 +0000 (15:12 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 30 Jul 2016 08:19:45 +0000 (18:19 +1000)
commitcba97805cb69d5b1a1d3bb108872c73b5bf0e205
treee39848026859b29a45924f831f0eba547ca9267a
parenta12e78dd3e727094e449ee4e3b752ea9b6f8db01
drm/nouveau/acpi: check for function 0x1B before using it

Do not unconditionally invoke function 0x1B without checking for its
availability, it leads to an infinite loop on some firmware.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=104791
Fixes: 5addcf0a5f0fad ("nouveau: add runtime PM support (v0.9)")
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Acked-by: Dave Airlie <airlied@redhat.com
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_acpi.c