[PATCH 1/6] drm: No-Op redundant calls to drm_vblank_off() (v2)

2016-02-12 Thread Mario Kleiner
Otherwise if a kms driver calls into drm_vblank_off() more than once before calling drm_vblank_on() again, the redundant calls to vblank_disable_and_save() will call drm_update_vblank_count() while hw vblank counters and vblank timestamping are in a undefined state during modesets, dpms off etc.

[PATCH 1/6] drm: No-Op redundant calls to drm_vblank_off()

2016-02-09 Thread Mario Kleiner
On 02/09/2016 10:54 AM, Daniel Vetter wrote: > On Mon, Feb 08, 2016 at 02:13:24AM +0100, Mario Kleiner wrote: >> Otherwise if a kms driver calls into drm_vblank_off() more than once >> before calling drm_vblank_on() again, the redundant calls to >> vblank_disable_and_save() will call

[PATCH 1/6] drm: No-Op redundant calls to drm_vblank_off()

2016-02-09 Thread Daniel Vetter
On Mon, Feb 08, 2016 at 02:13:24AM +0100, Mario Kleiner wrote: > Otherwise if a kms driver calls into drm_vblank_off() more than once > before calling drm_vblank_on() again, the redundant calls to > vblank_disable_and_save() will call drm_update_vblank_count() > while hw vblank counters and vblank

[PATCH 1/6] drm: No-Op redundant calls to drm_vblank_off()

2016-02-08 Thread Mario Kleiner
Otherwise if a kms driver calls into drm_vblank_off() more than once before calling drm_vblank_on() again, the redundant calls to vblank_disable_and_save() will call drm_update_vblank_count() while hw vblank counters and vblank timestamping are in a undefined state during modesets, dpms off etc.