Re: [Intel-gfx] Lots of i915/drm spew on 3.4

2012-05-30 Thread Daniel Vetter
On Wed, May 30, 2012 at 11:31 PM, Dave Jones wrote: > On this hardware: > > 00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated > Graphics Controller (rev 02) > > I get this every boot with Linus current tree (up to > af56e0aa35f3ae2a4c1a6d1000702df1dd78cb76) Just a quick

Re: [Intel-gfx] [PATCH] drm/i915: extract object unplug code from busy/wait_timeout ioctl

2012-05-30 Thread Daniel Vetter
On Wed, May 30, 2012 at 01:41:28PM -0700, Ben Widawsky wrote: > On Wed, 30 May 2012 20:21:33 +0200 > Daniel Vetter wrote: > > > Both need to do the same dance (or at least should). Some slight > > changes: > > - busy_ioctl now unconditionally checks for olr. Before emitting a > > require flush

Re: [Intel-gfx] [PATCH 13/14] drm/i915: add some barriers when changing DIPs

2012-05-30 Thread Daniel Vetter
On Mon, May 28, 2012 at 04:43:00PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > On IVB and older, we basically have two registers: the control and the > data register. We write a few consecutitve times to the control > register, and we need these writes to arrive exactly in the specified >

Re: [Intel-gfx] [PATCH] drm/i915: extract object unplug code from busy/wait_timeout ioctl

2012-05-30 Thread Ben Widawsky
On Wed, 30 May 2012 20:21:33 +0200 Daniel Vetter wrote: > Both need to do the same dance (or at least should). Some slight > changes: > - busy_ioctl now unconditionally checks for olr. Before emitting a > require flush would have prevent the olr check and hence required a > second call to the

[Intel-gfx] [PATCH] drm/i915: extract object unplug code from busy/wait_timeout ioctl

2012-05-30 Thread Daniel Vetter
Both need to do the same dance (or at least should). Some slight changes: - busy_ioctl now unconditionally checks for olr. Before emitting a require flush would have prevent the olr check and hence required a second call to the busy ioctl to really emit the request. - the timeout wait now also

Re: [Intel-gfx] [PATCH] drm/i915: there's no cxsr on ilk

2012-05-30 Thread Eugeni Dodonov
On 05/30/2012 12:15 PM, Daniel Vetter wrote: Already discovered in commit 5a117db77e47e3946d1aaa7ce8deafafd9d76746 Author: Eugeni Dodonov Date: Thu Jan 5 09:34:29 2012 -0200 drm/i915: there is no pipe CxSR on ironlake but we've failed to rip out the code from the ironlake specific code.

[Intel-gfx] [PATCH] drm/i915: there's no cxsr on ilk

2012-05-30 Thread Daniel Vetter
Already discovered in commit 5a117db77e47e3946d1aaa7ce8deafafd9d76746 Author: Eugeni Dodonov Date: Thu Jan 5 09:34:29 2012 -0200 drm/i915: there is no pipe CxSR on ironlake but we've failed to rip out the code from the ironlake specific code. Cc: Eugeni Dodonov Signed-Off-by: Daniel Vet

Re: [Intel-gfx] [PATCH 2/2] drm/i915: don't chnage the original mode in dp_mode_fixup

2012-05-30 Thread Paul Menzel
Am Mittwoch, den 30.05.2012, 13:52 +0200 schrieb Daniel Vetter: Typo in »change« in the commit message. > We should only frob adjusted_mode. This is in preparation of > a massive patch by Laurent Pinchart to make the mode argument > const. > > After the prevous prep patch to use adjusted_mode->c

[Intel-gfx] [PATCH] drm/i915: compute the target_clock for edp directly

2012-05-30 Thread Daniel Vetter
Instead of abusing into mode->clock, because we should touch that one at all. First prep step to constify the mode argument to the intel_dp_mode_fixup function. The next patch will stop us from modifying mode->clock. Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c | 16 +

Re: [Intel-gfx] [PATCH] drm/i915: reuse the sdvo tv clock adjustment in ilk mode_set

2012-05-30 Thread Chris Wilson
On Wed, 30 May 2012 14:52:26 +0200, Daniel Vetter wrote: > Jesse extracted this nice helper in his i9xx_crtc_mode_set refactor, > but we have the identical code in ironlake_ccrtc_mode_set. And that > function is huge, so extracting some code full of magic numbers is > always nice. > > Noticed wh

[Intel-gfx] [PATCH] drm/i915: reuse the sdvo tv clock adjustment in ilk mode_set

2012-05-30 Thread Daniel Vetter
Jesse extracted this nice helper in his i9xx_crtc_mode_set refactor, but we have the identical code in ironlake_ccrtc_mode_set. And that function is huge, so extracting some code full of magic numbers is always nice. Noticed while trying to get a handle on our dp clock code. Signed-Off-by: Daniel

Re: [Intel-gfx] [PATCH 1/2] drm/i915: adjusted_mode->clock in the dp mode_fixup

2012-05-30 Thread Daniel Vetter
On Wed, May 30, 2012 at 01:18:35PM +0100, Chris Wilson wrote: > On Wed, 30 May 2012 13:52:02 +0200, Daniel Vetter > wrote: > > ... instead of changing mode->clock, which we should leave as-is. > > > > We only touch that if it's a panel, and then adjusted mode->clock > > equals adjusted_mode->clo

Re: [Intel-gfx] [PATCH 1/2] drm/i915: adjusted_mode->clock in the dp mode_fixup

2012-05-30 Thread Chris Wilson
On Wed, 30 May 2012 13:52:02 +0200, Daniel Vetter wrote: > ... instead of changing mode->clock, which we should leave as-is. > > We only touch that if it's a panel, and then adjusted mode->clock > equals adjusted_mode->clock. Outside of intel_dp.c we only use > ajusted_mode->clock in the mode_se

Re: [Intel-gfx] [PATCH 14/14] drm/i915: make sure HDMI port is disabled inside set_infoframes

2012-05-30 Thread Daniel Vetter
On Mon, May 28, 2012 at 04:43:01PM -0300, Paulo Zanoni wrote: > From: Paulo Zanoni > > This function is supposed to be used at mode set time, so prevent > against future mistakes by adding a WARN(). > > Problems when calling it when the HDMI port is enabled: > - It may disable sending DIPs (on

[Intel-gfx] [PATCH 2/2] drm/i915: don't chnage the original mode in dp_mode_fixup

2012-05-30 Thread Daniel Vetter
We should only frob adjusted_mode. This is in preparation of a massive patch by Laurent Pinchart to make the mode argument const. After the prevous prep patch to use adjusted_mode->clock instead of mode->clock the only thing left is to clean up things a bit. I've opted to pass in an adjust_mode pa

[Intel-gfx] [PATCH 1/2] drm/i915: adjusted_mode->clock in the dp mode_fixup

2012-05-30 Thread Daniel Vetter
... instead of changing mode->clock, which we should leave as-is. We only touch that if it's a panel, and then adjusted mode->clock equals adjusted_mode->clock. Outside of intel_dp.c we only use ajusted_mode->clock in the mode_set functions. Within intel_dp.c we only use it to calculate the dp di

Re: [Intel-gfx] [PATCH] drm/i915: don't chnage the original mode in dp_mode_fixup

2012-05-30 Thread Daniel Vetter
On Wed, May 30, 2012 at 11:58:43AM +0100, Chris Wilson wrote: > On Wed, 30 May 2012 12:28:04 +0200, Daniel Vetter > wrote: > > We should only frob adjusted_mode. This is in preparation of > > a massive patch by Laurent Pinchart to make the mode argument > > const. > > > > The only thing we actua

Re: [Intel-gfx] [PATCH 3/3] drm/i915: assert that the IBX port transcoder select w/a is implemented

2012-05-30 Thread Daniel Vetter
On Wed, May 30, 2012 at 11:27:46AM +0100, Chris Wilson wrote: > On Wed, 30 May 2012 12:31:58 +0200, Daniel Vetter > wrote: > > Let's be a bit more paranoid here. > > > > Signed-off-by: Daniel Vetter > > --- > > drivers/gpu/drm/i915/intel_display.c |6 ++ > > 1 files changed, 6 insertio

Re: [Intel-gfx] [PATCH] drm/i915: don't chnage the original mode in dp_mode_fixup

2012-05-30 Thread Chris Wilson
On Wed, 30 May 2012 12:28:04 +0200, Daniel Vetter wrote: > We should only frob adjusted_mode. This is in preparation of > a massive patch by Laurent Pinchart to make the mode argument > const. > > The only thing we actually touch is mode->clock, but only if > it's a panel. And in that case we al

Re: [Intel-gfx] [PATCH 2/3] drm/i915: implement IBX hdmi transcoder select workaround

2012-05-30 Thread Chris Wilson
On Wed, 30 May 2012 12:31:57 +0200, Daniel Vetter wrote: > Bspec Vol 3, Part 3, Section 3.8.1.1, bit 30: > > "[DevIBX] Writing to this bit only takes effect when port is enabled. > Due to hardware issue it is required that this bit be cleared when port > is disabled. To clear this bit software m

Re: [Intel-gfx] [PATCH 1/3] drm/i915: clarify IBX dp workaround

2012-05-30 Thread Chris Wilson
On Wed, 30 May 2012 12:31:56 +0200, Daniel Vetter wrote: > Instead of checking for !CPT, check for IBX to make it clearer that > this is a IBX-specific workaround. No functional change because we > smash the PPT PCH into the HAS_PCH_CPT check and atm DP isn't enabled > on the haswell LPT PCH yet.

Re: [Intel-gfx] gstreamer-vaapi does not work with g45

2012-05-30 Thread Niccolò Belli
Il 30/05/2012 04:39, Matt Turner ha scritto: fyi, I just filed a request for gstreamer-vaapi yesterday: https://bugs.gentoo.org/show_bug.cgi?id=418077 Well done, I opened a bug for this issue too: https://bugs.freedesktop.org/show_bug.cgi?id=50390 In the meantime you can find a gst-plugins-vaa

Re: [Intel-gfx] [PATCH 3/3] drm/i915: assert that the IBX port transcoder select w/a is implemented

2012-05-30 Thread Chris Wilson
On Wed, 30 May 2012 12:31:58 +0200, Daniel Vetter wrote: > Let's be a bit more paranoid here. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_display.c |6 ++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH] drm/i915: don't chnage the original mode in dp_mode_fixup

2012-05-30 Thread Daniel Vetter
We should only frob adjusted_mode. This is in preparation of a massive patch by Laurent Pinchart to make the mode argument const. The only thing we actually touch is mode->clock, but only if it's a panel. And in that case we also set adjusted_mode->clock to the same value. All the generic code alr

[Intel-gfx] [PATCH 3/3] drm/i915: assert that the IBX port transcoder select w/a is implemented

2012-05-30 Thread Daniel Vetter
Let's be a bit more paranoid here. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 3c71850..a9bc673 100644 --- a/

[Intel-gfx] [PATCH 2/3] drm/i915: implement IBX hdmi transcoder select workaround

2012-05-30 Thread Daniel Vetter
Bspec Vol 3, Part 3, Section 3.8.1.1, bit 30: "[DevIBX] Writing to this bit only takes effect when port is enabled. Due to hardware issue it is required that this bit be cleared when port is disabled. To clear this bit software must temporarily enable this port on transcoder A." Unfortunately the

[Intel-gfx] [PATCH 1/3] drm/i915: clarify IBX dp workaround

2012-05-30 Thread Daniel Vetter
Instead of checking for !CPT, check for IBX to make it clearer that this is a IBX-specific workaround. No functional change because we smash the PPT PCH into the HAS_PCH_CPT check and atm DP isn't enabled on the haswell LPT PCH yet. See Bspec Vol 3, Part 3, Section 4.[3-5].1 about DP[BCD], bit 30

Re: [Intel-gfx] gstreamer-vaapi does not work with g45

2012-05-30 Thread Oliver Seitz
But isn't this a decision to be made by the mainline maintainers? Obviously, but why shouldn't they reject a widely requested feature when the code is mature enough? There was nothing ever rejected, as no patch was ever recieved. So I was told on the MPlayer-users mailing list. MPlayer deve