]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Stop calling intel_opregion unregister/register in suspend/resume
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Oct 2018 11:05:54 +0000 (11:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 30 Oct 2018 11:52:54 +0000 (11:52 +0000)
commita950adc6c343c918e4728648f7a59ba42d79c1ce
tree8d8251c71d0be025f2340f0e0b8db4f8a554ecad
parentb379e30629c0ce912f032809a31c11e6fbddda63
drm/i915: Stop calling intel_opregion unregister/register in suspend/resume

If we reduce the suspend function for intel_opregion to do the minimum
required, the resume function can also do the simple task of notifier
the ACPI bios that we are back. This avoid some nasty restrictions on
the likes of register_acpi_notifier() that are not allowed during the
early phase of resume.

v2: Keep the order of acpi notify vs turning off ardy/drdy the same.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181030110554.4111-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_opregion.c
drivers/gpu/drm/i915/intel_opregion.h