nouveau: properly check for _DSM function support
authorPeter Lekensteyn <lekensteyn@gmail.com>
Sat, 17 Dec 2011 11:53:43 +0000 (12:53 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Jan 2012 09:09:07 +0000 (09:09 +0000)
commit9075e85f46c598e4dfc852b16b256a32e2fb396f
tree841922a76fb85d8cbcaa7d6f64b5ea6c4d067370
parent3b32a592ea6e49145d4dc610b85dd9042226896d
nouveau: properly check for _DSM function support

According to the ACPI spec version 4, section 9.14.1, _DSM functions
must return a value with the first bit enabled if any DSM functions are
supported for the given UUID and revision ID. For a given function index n
to be marked supported, bit n must be enabled.

Signed-off-by: Peter Lekensteyn <lekensteyn@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_acpi.c