linux_dsm_epyc7002/drivers/video/nvidia
Rafael J. Wysocki 3a2d5b7001 PM: Introduce PM_EVENT_HIBERNATE callback state
During the last step of hibernation in the "platform" mode (with the
help of ACPI) we use the suspend code, including the devices'
->suspend() methods, to prepare the system for entering the ACPI S4
system sleep state.

But at least for some devices the operations performed by the
->suspend() callback in that case must be different from its operations
during regular suspend.

For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
pass it to the device drivers' ->suspend() methods during the last phase
of hibernation, so that they can distinguish this case and handle it as
appropriate.  Modify the drivers that handle PM_EVENT_SUSPEND in a
special way and need to handle PM_EVENT_HIBERNATE in the same way.

These changes are necessary to fix a hibernation regression related
to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-23 10:40:04 -08:00
..
Makefile [PATCH] Rewritten backlight infrastructure for portable Apple computers 2006-06-25 10:00:59 -07:00
nv_accel.c nvidiafb: prevent triggering of softlockup 2007-05-08 11:15:32 -07:00
nv_backlight.c backlight: Convert from struct class_device to struct device 2007-07-16 01:20:23 +01:00
nv_dma.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
nv_hw.c nvidiafb: Add proper support for Geforce 7600 chipset 2007-07-17 10:23:11 -07:00
nv_i2c.c nvidiafb: Correctly assign the i2c class with the port reversal 2007-10-16 09:43:20 -07:00
nv_local.h nvidiafb: prevent triggering of softlockup 2007-05-08 11:15:32 -07:00
nv_of.c [POWERPC] Rename get_property to of_get_property: drivers 2007-05-02 20:04:32 +10:00
nv_proto.h backlight: Remove uneeded nvidia set_power calls 2007-02-20 08:38:45 +00:00
nv_setup.c nvidiafb: Add proper support for Geforce 7600 chipset 2007-07-17 10:23:11 -07:00
nv_type.h nvidiafb: Add boot option to reverse i2c port assignment 2007-10-16 09:43:19 -07:00
nvidia.c PM: Introduce PM_EVENT_HIBERNATE callback state 2008-02-23 10:40:04 -08:00