]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/opregion: add function to check if headless sku
authorJouni Högander <jouni.hogander@intel.com>
Fri, 10 Jun 2022 08:54:27 +0000 (11:54 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 16 Jun 2022 10:15:36 +0000 (13:15 +0300)
commite9eb77d70f2fb74b9061012eb31fca948e503252
tree5592ee5219fe68b2ed1da0fbccd7f77f1d1cbc2e
parent600a348ca506b90f877fa10e80ec6f63fcf2d4ba
drm/i915/opregion: add function to check if headless sku

Export headless sku bit (bit 13) from opregion->header->pcon as an
interface to check if our device is headless configuration.

This is mainly targeted for hybrid gfx systems. E.g. when display
is not supposed to be connected discrete graphics card it's
opregion can inform this is headless graphics card.

v3: Dummy version is now static inline function
v2: Check also opregion version

Bspec: 53441
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220610085429.52935-2-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_opregion.c
drivers/gpu/drm/i915/display/intel_opregion.h