[Intel-gfx] [PATCH 3/3] drm/i915: Expand DPF support to Haswell

2012-07-24 Thread Ben Widawsky
From: Ben Widawsky Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 001f8fb..f6a44d4 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/driv

[Intel-gfx] [PATCH 2/3] drm/i915: Macro to determine DPF support

2012-07-24 Thread Ben Widawsky
From: Ben Widawsky Originally I had a macro specifically for DPF support, and Daniel, with good reason asked me to change it to this. It's not the way I would have gone (and indeed I didn't), but for now there is no distinction as all platforms with L3 also have DPF. Signed-off-by: Ben Widawsky

[Intel-gfx] [PATCH 1/3] drm/i915: Add contexts for HSW

2012-07-24 Thread Ben Widawsky
Basic context support on HSW is no different than previous generations. The size of the context object changes, but that's about it. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem_context.c | 5 - drivers/gpu/drm/i915/i915_reg.h | 8 2 files changed, 12 insert

[Intel-gfx] [PATCH 9/9] drm/i915: enable rc6 on ilk again

2012-07-24 Thread Daniel Vetter
I have the faint hope that the total absence of any locking for the rps code wasn't too good an idea and could very well have caused some rc6 related regressions. Unfortunately we've never managed to reproduce these issues on any of our own machines, so the only way to go about this is to enable i

[Intel-gfx] [PATCH 8/9] drm/ips: move drps/ips/ilk related variables into dev_priv->ips

2012-07-24 Thread Daniel Vetter
Like with the equivalent change for gen6+ rps state, this helps in clarifying the code (and in fixing a few places that have fallen through the cracks in the locking review). Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_drv.h | 36 +--- drivers/gpu/drm/i915/i915_irq.c

[Intel-gfx] [PATCH 7/9] drm/i915: fix up ilk drps/ips locking

2012-07-24 Thread Daniel Vetter
We change the drps/ips sw/hw state from different callers: Our own irq handler, the external intel-ips module and from process context. Most of these callers don't take any lock at all. Protect everything by making the mchdev_lock irqsave and grabbing it in all relevant callsites. Note that we hav

[Intel-gfx] [PATCH 6/9] drm/i915: DE_PCU_EVENT irq is ilk-only

2012-07-24 Thread Daniel Vetter
Like all the other drps/ips stuff. Hence add the corresponding check, give the function a preciser prefix and move the single reg clearing into the rps handling function, too. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_irq.c | 10 +- 1 file changed, 5 insertions(+), 5 d

[Intel-gfx] [PATCH 5/9] drm/i915: kill dev_priv->mchdev_lock

2012-07-24 Thread Daniel Vetter
It's only ever a pointer to the global mchdev_lock, and we don't use it at all. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_drv.h |1 - drivers/gpu/drm/i915/intel_pm.c |1 - 2 files changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i91

[Intel-gfx] [PATCH 4/9] drm/i915: move all rps state into dev_priv->rps

2012-07-24 Thread Daniel Vetter
This way it's easier so see what belongs together, and what is used by the ilk ips code. Also add some comments that explain the locking. v2: Missed one place that the dev_priv->ips change caught ... Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_debugfs.c | 11 +++ drivers/g

[Intel-gfx] [PATCH 3/9] drm/i915: fixup up debugfs rps state handling

2012-07-24 Thread Daniel Vetter
- Take the dev->struct_mutex around access the corresponding state (and adjusting the rps hw state). - Add an assert to gen6_set_rps to ensure we don't forget about this in the future. - Don't set up the min/max_freq files if it doesn't apply to the hw. And do the same for the gen6+ cache sha

[Intel-gfx] [PATCH 2/9] drm/i915: properly guard ilk ips state

2012-07-24 Thread Daniel Vetter
The update_gfx_val function called from mark_busy wasn't taking the mchdev_lock, as it should have. Also sprinkle a few spinlock asserts over the code to document things better. Things are still rather confusing, especially since a few variables in dev_priv are used by both the gen6+ rps code and

[Intel-gfx] [PATCH 1/9] drm/i915: ensure rps state is properly lock-protected

2012-07-24 Thread Daniel Vetter
Pure paranoia-induced patch as part of a large work to fix up the locking around intel_mark_busy/idle. At least for the gen6+ rps state, locking seems to be sane and the hw/sw state is protected by dev->struct_mutex. The only thing missing is a paranoid WARN_ON in sanitize_pm. Signed-Off-by: Dani

[Intel-gfx] [PATCH 0/9] rps locking fixes

2012-07-24 Thread Daniel Vetter
Hi all While reviewing Chris' simplified mark_busy/idle code I've noticed that we seriously lack some locking. This series here fixes the first part around the gpu power handling, the pll up/downclocking might still be rather broken :( Since this clearly fixes some issues with the code, also try

Re: [Intel-gfx] HD 4000: Passthrough for HD audio formats

2012-07-24 Thread Daniel Vetter
On Tue, Jul 24, 2012 at 08:46:04PM +0200, Frederik Vogelsang wrote: > Hi, > > thanks for your feedback, Attila. > > 2012/7/24 alanwww1 : > > I already reported this problem here: > > https://bugs.freedesktop.org/show_bug.cgi?id=49055 > I see. I did not search bugzilla yet, because I thought this

Re: [Intel-gfx] HD 4000: Passthrough for HD audio formats

2012-07-24 Thread Frederik Vogelsang
Hi, thanks for your feedback, Attila. 2012/7/24 alanwww1 : > I already reported this problem here: > https://bugs.freedesktop.org/show_bug.cgi?id=49055 I see. I did not search bugzilla yet, because I thought this feature was related to my pretty new hardware components. It's a little disappointin

[Intel-gfx] [ANNOUNCE] Intel 12.07 graphics package release

2012-07-24 Thread Jin, Gordon
Hi, We'd like to announce Intel 12.07 graphics package release, with continuous stability and performance improvement over 12.02 release. Please check http://intellinuxgraphics.org/2012.07.html for the recommended stack, list of new features and known issues. We'd also like to thank all the de

Re: [Intel-gfx] [PATCH] properly enable the blc controller on the right pipe

2012-07-24 Thread Carsten Emde
On 07/20/2012 10:10 AM, Daniel Vetter wrote: On Fri, Jul 20, 2012 at 12:51:41AM +0200, Carsten Emde wrote: On 07/19/2012 04:40 PM, Daniel Vetter wrote: Well, the backlight-confusion branch had a bug and outright disabled the intel backlight :( drm-intel-next-queued should have fixes for all the

Re: [Intel-gfx] HD 4000: Passthrough for HD audio formats

2012-07-24 Thread alanwww1
Hi all ! I already reported this problem here: https://bugs.freedesktop.org/show_bug.cgi?id=49055 I was also in emailing on this problem with Intel developer Wu Fengguang. It is probably an Intel driver problem. His last email (back in may) was: "Hi Attila, Sorry for the delay! During the time