]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit91245ccfbb2a33493d77f95e814c5f0ba73eaf9c
tree841922a76fb85d8cbcaa7d6f64b5ea6c4d067370
parent8d029743340b77340fde11a0faf993dcf17a09c4
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