Re: [Intel-gfx] [PATCH 2/4] drm/i915: Fix POWER_DOMAIN_AUDIO refcounting.

2017-01-22 Thread Daniel Vetter
On Mon, Jan 16, 2017 at 12:00:46PM +0100, Maarten Lankhorst wrote: > Op 11-01-17 om 17:13 schreef Daniel Vetter: > > On Thu, Dec 15, 2016 at 03:29:43PM +0100, Maarten Lankhorst wrote: > >> If the crtc was brought up with audio before the driver loads, > >> then crtc_disable will remove a refcount

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Fix POWER_DOMAIN_AUDIO refcounting.

2017-01-16 Thread Maarten Lankhorst
Op 11-01-17 om 17:13 schreef Daniel Vetter: > On Thu, Dec 15, 2016 at 03:29:43PM +0100, Maarten Lankhorst wrote: >> If the crtc was brought up with audio before the driver loads, >> then crtc_disable will remove a refcount to audio that doesn't exist >> before. >> >> Fortunately we already set

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Fix POWER_DOMAIN_AUDIO refcounting.

2017-01-11 Thread Daniel Vetter
On Thu, Dec 15, 2016 at 03:29:43PM +0100, Maarten Lankhorst wrote: > If the crtc was brought up with audio before the driver loads, > then crtc_disable will remove a refcount to audio that doesn't exist > before. > > Fortunately we already set power domains on readout, so we can just add > the

[Intel-gfx] [PATCH 2/4] drm/i915: Fix POWER_DOMAIN_AUDIO refcounting.

2016-12-15 Thread Maarten Lankhorst
If the crtc was brought up with audio before the driver loads, then crtc_disable will remove a refcount to audio that doesn't exist before. Fortunately we already set power domains on readout, so we can just add the power domain handling to get_crtc_power_domains, which will update the power