Re: [PATCH 4/5] nouveau: add dynamic gpu power off support.

2012-09-11 Thread Peter Wu
Hi Dave, > +int nouveau_dynamic_power_set_state(struct drm_device *dev, int state) > +{ > + struct nouveau_drm *drm = nouveau_drm(dev); > + pm_message_t pmm = { .event = PM_EVENT_SUSPEND }; > + > + if (state == DRM_SWITCH_POWER_DYNAMIC_OFF) { > + dev->switch_power_state = D

[PATCH 4/5] nouveau: add dynamic gpu power off support.

2012-09-10 Thread Peter Wu
Hi Dave, > +int nouveau_dynamic_power_set_state(struct drm_device *dev, int state) > +{ > + struct nouveau_drm *drm = nouveau_drm(dev); > + pm_message_t pmm = { .event = PM_EVENT_SUSPEND }; > + > + if (state == DRM_SWITCH_POWER_DYNAMIC_OFF) { > + dev->switch_power_state = D

[PATCH 4/5] nouveau: add dynamic gpu power off support.

2012-09-10 Thread Dave Airlie
From: Dave Airlie This adds the interfaces for nouveau to dynamically power off the GPU in an optimus system. It's based on nouveau git so may not apply everywhere. Signed-off-by: Dave Airlie #include #include - +#include #include "drmP.h" - +#include "drm_crtc_helper.h" #include "nouve

[PATCH 4/5] nouveau: add dynamic gpu power off support.

2012-09-09 Thread Dave Airlie
From: Dave Airlie This adds the interfaces for nouveau to dynamically power off the GPU in an optimus system. It's based on nouveau git so may not apply everywhere. Signed-off-by: Dave Airlie #include #include - +#include #include "drmP.h" - +#include "drm_crtc_helper.h" #include "nouve