* [PATCH] drm/nouveau: suspend to D3hot, not to D3cold
@ 2013-10-08 15:36 Maarten Lankhorst
[not found] ` <52542686.6000602-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Maarten Lankhorst @ 2013-10-08 15:36 UTC (permalink / raw)
To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
In the autumn and winter it's considered bad form to set power state to D3cold, it might
cause the device to freeze to death. This is also the case in the other seasons, so any
device in the southern hemisphere is affected too.
D3cold is not a valid state in a call to pci_set_power_state, only up to D3hot is allowed.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
---
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 89efeff..566e544 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -945,7 +945,7 @@ static int nouveau_pmops_runtime_suspend(struct device *dev)
ret = nouveau_do_suspend(drm_dev);
pci_save_state(pdev);
pci_disable_device(pdev);
- pci_set_power_state(pdev, PCI_D3cold);
+ pci_set_power_state(pdev, PCI_D3hot);
drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF;
return ret;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/nouveau: suspend to D3hot, not to D3cold
[not found] ` <52542686.6000602-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
@ 2013-10-08 22:05 ` Dave Airlie
0 siblings, 0 replies; 2+ messages in thread
From: Dave Airlie @ 2013-10-08 22:05 UTC (permalink / raw)
To: Maarten Lankhorst
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
On Wed, Oct 9, 2013 at 1:36 AM, Maarten Lankhorst
<maarten.lankhorst-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org> wrote:
> In the autumn and winter it's considered bad form to set power state to D3cold, it might
> cause the device to freeze to death. This is also the case in the other seasons, so any
> device in the southern hemisphere is affected too.
>
> D3cold is not a valid state in a call to pci_set_power_state, only up to D3hot is allowed.
NAK,
pci_set_power_state calls pci_platform_pm->set_state, which should be
acpi_pci_set_power_state, which clearly accepts D3cold as a parameter.
The only reason the HDMI audio driver doesn't use D3cold is because it
has no acpi handle for the device.
Dave.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-08 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 15:36 [PATCH] drm/nouveau: suspend to D3hot, not to D3cold Maarten Lankhorst
[not found] ` <52542686.6000602-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2013-10-08 22:05 ` Dave Airlie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.