Re: [Intel-gfx] [PATCH 6/8] drm/i915: Retrieve the current mode upon KMS takeover

2013-03-08 Thread Imre Deak
On Wed, 2013-02-06 at 11:10 +, Chris Wilson wrote: > Read the current hardware state to retrieve the active mode and populate > our CRTC config if that mode matches our presumptions. > > Signed-off-by: Chris Wilson > --- > drivers/gpu/drm/i915/i915_drv.h |2 + > drivers/gpu/drm/i91

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Retrieve the current mode upon KMS takeover

2013-03-08 Thread Imre Deak
On Wed, 2013-02-06 at 11:10 +, Chris Wilson wrote: > Read the current hardware state to retrieve the active mode and populate > our CRTC config if that mode matches our presumptions. > > Signed-off-by: Chris Wilson > --- > drivers/gpu/drm/i915/i915_drv.h |2 + > drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Retrieve the current mode upon KMS takeover

2013-02-07 Thread Paulo Zanoni
Hi 2013/2/6 Chris Wilson : > Read the current hardware state to retrieve the active mode and populate > our CRTC config if that mode matches our presumptions. On Haswell you need to read TRANS_DDI_FUNC_CTL(cpu_transcoder), check for bits TRANS_DDI_PVSYNC and TRANS_DDI_PHSYNC. > > Signed-off-by:

[Intel-gfx] [PATCH 6/8] drm/i915: Retrieve the current mode upon KMS takeover

2013-02-06 Thread Chris Wilson
Read the current hardware state to retrieve the active mode and populate our CRTC config if that mode matches our presumptions. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h |2 + drivers/gpu/drm/i915/intel_crt.c | 27 +++- drivers/gpu/drm/i915/intel_display.