Re: [Intel-gfx] [PATCH 19/22] drm/i915: kill pointless clearing of dev_priv->hws_map

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:51:06 +0200, Daniel Vetter wrote: > We kzalloc dev_priv, and we never use hws_map in intel_ringbuffer.c. > > Signed-Off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre _

Re: [Intel-gfx] [PATCH 15/22] drm/i915: move LP_RING&friends to i915_dma.c

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:51:02 +0200, Daniel Vetter wrote: > Wohoo! > > Now we only need to move all the gem/kms stuff that accidentally > landed in i915_dma.c out of it, and this will be our legacy dri1 > grave-yard. > > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris

Re: [Intel-gfx] [PATCH 14/22] drm/i915: extract dri1 breadcrumb update from irq handler

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:51:01 +0200, Daniel Vetter wrote: > ... and hide it in i915_dma.c. > > This way all the legacy stuff dealing with READ_BREADCRUMB and > LP_RING and friends is in i915_dma.c. > > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open

Re: [Intel-gfx] [PATCH 13/22] drm/i915: move dri1 irq ioctl code to i915_dma.c

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:51:00 +0200, Daniel Vetter wrote: > Let's just get this out of the way. > > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ Intel-gfx mailing list Intel-g

Re: [Intel-gfx] [PATCH 12/22] drm/i915: rip out dri1 breadcrumb updates from gen5+ irq handlers

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:59 +0200, Daniel Vetter wrote: > We never supported dri1 on gen5+. > > VLV never had that code, so no need to remove it. > > Signed-off-by: Daniel Vetter Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre _

Re: [Intel-gfx] [PATCH 11/22] drm/i915: kill intel_clear_scanline_wait

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:58 +0200, Daniel Vetter wrote: > This is a pretty racy way to close these races, and we have > much better means to cope with these races meanwhile: For > non-broken userspace we correctly wait for any outstanding > rendering, for broken userspace the hangcheck will save

Re: [Intel-gfx] [PATCH 10/22] drm/i915: remove LP_RING&friends from modeset code

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:57 +0200, Daniel Vetter wrote: > The LP refers to 'low priority' as opposed to the high priority > ring on gen2/3. So lets constrain its use to the code of that era. > > Unfortunately we can't yet completely remove the associated > macros from common headers and shove t

Re: [Intel-gfx] [PATCH 05/22] drm/i915: check for kms in dri1 ioctls

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:52 +0200, Daniel Vetter wrote: > Calling these when gem assumes full control of the hw won't end > in anything else than tears. So be a bit more paranoid here. > > Just serves as documentation. > > Signed-off-by: Daniel Vetter Having already killed do_init, I can't a

Re: [Intel-gfx] [PATCH 04/22] drm/i915: rip out dev_priv->has_gem

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:51 +0200, Daniel Vetter wrote: > Always true these days. It has been added originally to work > around some issues with the agp layer in 2.6.29: > > commit ac5c4e76180a74c7f922f6fa71ace0cef45fa433 > Author: Dave Airlie > Date: Fri Dec 19 15:38:34 2008 +1000 > >

Re: [Intel-gfx] [PATCH 03/22] drm/i915: rip out GEM drm feature checks

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:50 +0200, Daniel Vetter wrote: > We always set it so there's no point in checking. We could > instead add a bit that tells us whether gem is actually > initialized (i.e. either kms or gem_init_ioctl called), but > that's imho not worth it. > > So just rip it out. > > T

Re: [Intel-gfx] [PATCH 02/22] drm/i915: disallow gem ums init ioctl for kms

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:49 +0200, Daniel Vetter wrote: > This ioctl used in a kms driver is only useful to create massive > havoc. If used this would have rewritten existing and active PTEs. I would probably go with ENODEV rather than EINVAL though. Reviewed-by: Chris Wilson -Chris -- Chris

Re: [Intel-gfx] [PATCH 01/22] drm/i915: properly check for MODESET for kms driver ioctls

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 16:50:48 +0200, Daniel Vetter wrote: > Also ditch the cargo-culted dev_priv checks - either we have a > giant hole in our setup code or this is useless. Plainly bogus > to check for it in either case. > > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_displ

Re: [Intel-gfx] [PATCH] drm/i915: manage PCH PLLs separately from pipes

2012-04-23 Thread Daniel Vetter
On Fri, Apr 20, 2012 at 05:11:53PM +0100, Chris Wilson wrote: > From: Jesse Barnes > > PCH PLLs aren't required for outputs on the CPU, so we shouldn't just > treat them as part of the pipe. > > So split the code out and manage PCH PLLs separately, allocating them > when needed or trying to re-u

Re: [Intel-gfx] [PATCH] drm/i915: manage PCH PLLs separately from pipes

2012-04-23 Thread Eugeni Dodonov
On Mon, Apr 23, 2012 at 10:59, Eugeni Dodonov wrote: > On Fri, Apr 20, 2012 at 13:11, Chris Wilson wrote: > >> From: Jesse Barnes >> >> PCH PLLs aren't required for outputs on the CPU, so we shouldn't just >> treat them as part of the pipe. >> >> So split the code out and manage PCH PLLs separat

Re: [Intel-gfx] [PATCH] drm/i915: manage PCH PLLs separately from pipes

2012-04-23 Thread Jesse Barnes
On Fri, 20 Apr 2012 17:11:53 +0100 Chris Wilson wrote: > From: Jesse Barnes > > PCH PLLs aren't required for outputs on the CPU, so we shouldn't just > treat them as part of the pipe. > > So split the code out and manage PCH PLLs separately, allocating them > when needed or trying to re-use ex

Re: [Intel-gfx] [PATCH] drm/i915: i8xx interrupt handler

2012-04-23 Thread Daniel Vetter
On Sun, Apr 22, 2012 at 09:13:57PM +0100, Chris Wilson wrote: > gen2 hardware has some significant differences from the other interrupt > routines that were glossed over and then forgotten about in the > transition to KMS. Such as > > - 16bit IIR > - PendingFlip status bit > > This patch reintrod

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 09:18:25AM +0100, Chris Wilson wrote: > On Mon, 23 Apr 2012 04:06:41 -0400, Xi Wang wrote: > > On 32-bit systems, a large args->buffer_count from userspace via ioctl > > may overflow the allocation size, leading to out-of-bounds access. > > > > This vulnerability was intro

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Carsten Emde
On 04/23/2012 05:56 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 05:38:27PM +0200, Carsten Emde wrote: On 04/23/2012 05:22 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 05:06:53PM +0200, Carsten Emde wrote: On 04/23/2012 04:22 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 04:00:23PM

[Intel-gfx] [PATCH 22/22] drm/i915: move pnv|ilk_gem_mem_freq to intel_pm.c

2012-04-23 Thread Daniel Vetter
Because this is the place where we actually use the results of them. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 112 -- drivers/gpu/drm/i915/intel_pm.c | 113 +++ 2 files changed, 113 insertions(+),

[Intel-gfx] [PATCH 21/22] drm/i915: fixup __iomem mixups in ringbuffer.c

2012-04-23 Thread Daniel Vetter
Two things: - ring->virtual start is an __iomem pointer, treat it accordingly. - dev_priv->status_page.page_addr is now always a cpu addr, no pointer casting needed for that. Take the opportunity to remove the unnecessary drm indirection when setting up the ringbuffer iomapping. Signed-off-by:

[Intel-gfx] [PATCH 20/22] drm/i915: rework legacy GFX HWS handling

2012-04-23 Thread Daniel Vetter
To get the fun stuff out of the way, the legacy hws is allocated by userspace when the gpu needs a gfx hws. And there's no reference-counting going on, so userspace can simply screw everyone over. At least it's not as horrible as i810, where the ringbuffer is allocated by userspace ... We can't f

[Intel-gfx] [PATCH 19/22] drm/i915: kill pointless clearing of dev_priv->hws_map

2012-04-23 Thread Daniel Vetter
We kzalloc dev_priv, and we never use hws_map in intel_ringbuffer.c. Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_ringbuffer.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuf

[Intel-gfx] [PATCH 18/22] drm/i915: move rps/emon function declarations

2012-04-23 Thread Daniel Vetter
They're now in intel_pm.c, so group them a bit better. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_drv.h |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index b5f5181..09541a6 100

[Intel-gfx] [PATCH 16/22] drm/i915: disallow clip rects on gen5+

2012-04-23 Thread Daniel Vetter
Unfortunately there has been dri1 userspace that used gem to manage the gtt and hence also needed cliprects in the execbuf ioctl. So we can't ever remove that code without breaking the ioctl abi. But at least we can disable it on gen5+, because these horrible versions of mesa have not supported th

[Intel-gfx] [PATCH 17/22] drm/i915: move the ips code to intel_pm.c

2012-04-23 Thread Daniel Vetter
We now have a nice home for power management code, so let's use it! Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 472 +- drivers/gpu/drm/i915/intel_drv.h |3 + drivers/gpu/drm/i915/intel_pm.c | 478

[Intel-gfx] [PATCH 15/22] drm/i915: move LP_RING&friends to i915_dma.c

2012-04-23 Thread Daniel Vetter
Wohoo! Now we only need to move all the gem/kms stuff that accidentally landed in i915_dma.c out of it, and this will be our legacy dri1 grave-yard. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 26 ++ drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 14/22] drm/i915: extract dri1 breadcrumb update from irq handler

2012-04-23 Thread Daniel Vetter
... and hide it in i915_dma.c. This way all the legacy stuff dealing with READ_BREADCRUMB and LP_RING and friends is in i915_dma.c. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 13 + drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/i915_irq.c |

[Intel-gfx] [PATCH 13/22] drm/i915: move dri1 irq ioctl code to i915_dma.c

2012-04-23 Thread Daniel Vetter
Let's just get this out of the way. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 110 +++ drivers/gpu/drm/i915/i915_drv.h |4 -- drivers/gpu/drm/i915/i915_irq.c | 110 --- 3 files changed, 110 ins

[Intel-gfx] [PATCH 12/22] drm/i915: rip out dri1 breadcrumb updates from gen5+ irq handlers

2012-04-23 Thread Daniel Vetter
We never supported dri1 on gen5+. VLV never had that code, so no need to remove it. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_irq.c | 16 1 files changed, 0 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i9

[Intel-gfx] [PATCH 11/22] drm/i915: kill intel_clear_scanline_wait

2012-04-23 Thread Daniel Vetter
This is a pretty racy way to close these races, and we have much better means to cope with these races meanwhile: For non-broken userspace we correctly wait for any outstanding rendering, for broken userspace the hangcheck will save the day. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 10/22] drm/i915: remove LP_RING&friends from modeset code

2012-04-23 Thread Daniel Vetter
The LP refers to 'low priority' as opposed to the high priority ring on gen2/3. So lets constrain its use to the code of that era. Unfortunately we can't yet completely remove the associated macros from common headers and shove them into i915_dma.c to the other dri1 legacy support code, a few clea

[Intel-gfx] [PATCH 09/22] drm/i915: rip out dev_priv->tex_lru_log_granularity

2012-04-23 Thread Daniel Vetter
Assigned in setparam, used never. I didn't bother to dig through the archives to figure out what this was supposed to do. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c |1 - drivers/gpu/drm/i915/i915_drv.h |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff -

[Intel-gfx] [PATCH 08/22] drm/i915 disallow physical batchbuffers for KMS

2012-04-23 Thread Daniel Vetter
Even the horrible gen3 XvMC code has learned to do this right by the time xf86-video-intel releases learned to do kernel modesetting. So we can just disallow this. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) di

[Intel-gfx] [PATCH 07/22] drm/i915: create dev_priv->dri1 dragon dungeon^W^W sub-struct

2012-04-23 Thread Daniel Vetter
... and shove allow_batchbuffer in there. More dragons will follow suit. There's the curious case that we allow this for KMS ... Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 10 +- drivers/gpu/drm/i915/i915_drv.h | 11 ++- 2 files changed, 15 insertions

[Intel-gfx] [PATCH 06/22] drm/i915: move dri1 vblank stubs to i915_dma.c

2012-04-23 Thread Daniel Vetter
i915_dma.c contains most of the old dri1 horror-show, so move the remaining bits there, too. The code has been removed and the only thing left are some stubs to ensure that userspace doesn't try to use this stuff. vblank_pipe_set only returns 0 without any side-effects, so we can even stub it out w

[Intel-gfx] [PATCH 05/22] drm/i915: check for kms in dri1 ioctls

2012-04-23 Thread Daniel Vetter
Calling these when gem assumes full control of the hw won't end in anything else than tears. So be a bit more paranoid here. Just serves as documentation. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_dma.c | 18 ++ drivers/gpu/drm/i915/i915_irq.c | 12 +

[Intel-gfx] [PATCH 04/22] drm/i915: rip out dev_priv->has_gem

2012-04-23 Thread Daniel Vetter
Always true these days. It has been added originally to work around some issues with the agp layer in 2.6.29: commit ac5c4e76180a74c7f922f6fa71ace0cef45fa433 Author: Dave Airlie Date: Fri Dec 19 15:38:34 2008 +1000 drm/i915: GEM on PAE has problems - disable it for now. Signed-Off-by: Dan

[Intel-gfx] [PATCH 03/22] drm/i915: rip out GEM drm feature checks

2012-04-23 Thread Daniel Vetter
We always set it so there's no point in checking. We could instead add a bit that tells us whether gem is actually initialized (i.e. either kms or gem_init_ioctl called), but that's imho not worth it. So just rip it out. There's a little change in the wait_ring timeout, but we've never run with a

[Intel-gfx] [PATCH 02/22] drm/i915: disallow gem ums init ioctl for kms

2012-04-23 Thread Daniel Vetter
This ioctl used in a kms driver is only useful to create massive havoc. Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/i915/i915_gem.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 38490cd..787

[Intel-gfx] [PATCH 01/22] drm/i915: properly check for MODESET for kms driver ioctls

2012-04-23 Thread Daniel Vetter
Also ditch the cargo-culted dev_priv checks - either we have a giant hole in our setup code or this is useless. Plainly bogus to check for it in either case. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_display.c |3 +++ drivers/gpu/drm/i915/intel_overlay.c | 12

[Intel-gfx] [PATCH 00/22] dri1 dragon slaughtering

2012-04-23 Thread Daniel Vetter
Hi all, So I got a bit bored over the w/e and decided to take my broadsword and dwell a bit in the dri1 dragon dungeon. The big battle I've lost is against the cliprects stuff, we can't rip that out because dri1 userspace using gem depends upon that. DRI1 userspace using gem ... Otherwise my jour

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 05:38:27PM +0200, Carsten Emde wrote: > On 04/23/2012 05:22 PM, Daniel Vetter wrote: > >On Mon, Apr 23, 2012 at 05:06:53PM +0200, Carsten Emde wrote: > >>On 04/23/2012 04:22 PM, Daniel Vetter wrote: > >>>On Mon, Apr 23, 2012 at 04:00:23PM +0200, Carsten Emde wrote: > >>> [..

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Carsten Emde
On 04/23/2012 05:22 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 05:06:53PM +0200, Carsten Emde wrote: On 04/23/2012 04:22 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 04:00:23PM +0200, Carsten Emde wrote: [..] The idea was to boot with kms and see whether any of these values would res

Re: [Intel-gfx] [PATCH 09/10] drm/i915: wait render timeout ioctl

2012-04-23 Thread Ben Widawsky
On Sun, 22 Apr 2012 14:45:13 +0200 Daniel Vetter wrote: > On Fri, Apr 20, 2012 at 06:23:31PM -0700, Ben Widawsky wrote: > > Finally we can use the new timed seqno waiting function to allow > > userspace to wait on a request with a timeout. This implements that > > interface. > > > > The new ioct

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 05:06:53PM +0200, Carsten Emde wrote: > On 04/23/2012 04:22 PM, Daniel Vetter wrote: > >On Mon, Apr 23, 2012 at 04:00:23PM +0200, Carsten Emde wrote: > >># intel_reg_write 0x61250 0x8000 > >>Value before: 0xE000 > >>Value after: 0x8000 > >># intel_reg_read 0x6125

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Carsten Emde
On 04/23/2012 04:22 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 04:00:23PM +0200, Carsten Emde wrote: # intel_reg_write 0x61250 0x8000 Value before: 0xE000 Value after: 0x8000 # intel_reg_read 0x61254 0x61254 : 0xB4A0B4A # intel_reg_write 0x61250 0xa000 Value before: 0x8000

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 04:00:23PM +0200, Carsten Emde wrote: > # intel_reg_write 0x61250 0x8000 > Value before: 0xE000 > Value after: 0x8000 > # intel_reg_read 0x61254 > 0x61254 : 0xB4A0B4A > > # intel_reg_write 0x61250 0xa000 > Value before: 0x8000 > Value after: 0xA000 >

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Carsten Emde
On 04/23/2012 03:39 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 03:15:02PM +0200, Carsten Emde wrote: On 04/23/2012 02:36 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 02:32:57PM +0200, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 01:54:23PM +0200, Carsten Emde wrote: On 04/23/2012 11

Re: [Intel-gfx] [PATCH] drm/i915: manage PCH PLLs separately from pipes

2012-04-23 Thread Eugeni Dodonov
On Fri, Apr 20, 2012 at 13:11, Chris Wilson wrote: > From: Jesse Barnes > > PCH PLLs aren't required for outputs on the CPU, so we shouldn't just > treat them as part of the pipe. > > So split the code out and manage PCH PLLs separately, allocating them > when needed or trying to re-use existing

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 01:32:31PM +0100, Chris Wilson wrote: > On Mon, 23 Apr 2012 14:21:20 +0200, Daniel Vetter wrote: > > On my specs bit29 is pipe assignement, we should set it if the panel is on > > pipe B (well, it just takes the pll to do the modulation from that pipe > > then). > > On CTL

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 03:15:02PM +0200, Carsten Emde wrote: > On 04/23/2012 02:36 PM, Daniel Vetter wrote: > >On Mon, Apr 23, 2012 at 02:32:57PM +0200, Daniel Vetter wrote: > >>On Mon, Apr 23, 2012 at 01:54:23PM +0200, Carsten Emde wrote: > >>>On 04/23/2012 11:32 AM, Daniel Vetter wrote: > Th

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Carsten Emde
On 04/23/2012 02:36 PM, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 02:32:57PM +0200, Daniel Vetter wrote: On Mon, Apr 23, 2012 at 01:54:23PM +0200, Carsten Emde wrote: On 04/23/2012 11:32 AM, Daniel Vetter wrote: There's a bit in the docs for gen4 only that says whether the backlight control

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 02:32:57PM +0200, Daniel Vetter wrote: > On Mon, Apr 23, 2012 at 01:54:23PM +0200, Carsten Emde wrote: > > On 04/23/2012 11:32 AM, Daniel Vetter wrote: > > >There's a bit in the docs for gen4 only that says whether the > > >backlight control is inverted. And both the quirk w

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 14:21:20 +0200, Daniel Vetter wrote: > On my specs bit29 is pipe assignement, we should set it if the panel is on > pipe B (well, it just takes the pll to do the modulation from that pipe > then). On CTL1 rather than CTL2, if that makes a difference. Listed in both the IBX and

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 01:54:23PM +0200, Carsten Emde wrote: > On 04/23/2012 11:32 AM, Daniel Vetter wrote: > >There's a bit in the docs for gen4 only that says whether the > >backlight control is inverted. And both the quirk we have and > >all bugs only concern i965gm and gm45 (and mostly Acer) a

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
On Mon, Apr 23, 2012 at 10:53:31AM +0100, Chris Wilson wrote: > On Mon, 23 Apr 2012 11:32:14 +0200, Daniel Vetter > wrote: > > There's a bit in the docs for gen4 only that says whether the > > backlight control is inverted. And both the quirk we have and > > all bugs only concern i965gm and gm45

Re: [Intel-gfx] [PATCH 2/2] drm/i915: pnv has a backlight polarity control bit, too

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 11:32:15 +0200, Daniel Vetter wrote: > So let's use it. > > We already correctly ignore bit0 on gen < 4, now we also now why ;-) > I've decided that losing that single bit of precision isn't worth the > trouble to sprinkle IS_PINEVIEW checks all over the backlight control > c

Re: [Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 11:32:14 +0200, Daniel Vetter wrote: > There's a bit in the docs for gen4 only that says whether the > backlight control is inverted. And both the quirk we have and > all bugs only concern i965gm and gm45 (and mostly Acer) afaics. > > So lets drop the quirk and use the bit in

[Intel-gfx] [PATCH 2/2] drm/i915: pnv has a backlight polarity control bit, too

2012-04-23 Thread Daniel Vetter
So let's use it. We already correctly ignore bit0 on gen < 4, now we also now why ;-) I've decided that losing that single bit of precision isn't worth the trouble to sprinkle IS_PINEVIEW checks all over the backlight control code - that code is way too fragile imo. Cc: Chris Wilson Signed-Off-b

[Intel-gfx] [PATCH 1/2] drm/i915: clear up backlight inversion confusion on gen4

2012-04-23 Thread Daniel Vetter
There's a bit in the docs for gen4 only that says whether the backlight control is inverted. And both the quirk we have and all bugs only concern i965gm and gm45 (and mostly Acer) afaics. So lets drop the quirk and use the bit instead. Also clean up the BLC register definitions a bit by correctly

Re: [Intel-gfx] [PATCH v2 2/2] drm/i915: fix integer overflow in i915_gem_do_execbuffer()

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 04:06:42 -0400, Xi Wang wrote: > On 32-bit systems, a large args->num_cliprects from userspace via ioctl > may overflow the allocation size, leading to out-of-bounds access. > > This vulnerability was introduced in commit 432e58ed ("drm/i915: Avoid > allocation for execbuffer

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: fix integer overflow in i915_gem_execbuffer2()

2012-04-23 Thread Chris Wilson
On Mon, 23 Apr 2012 04:06:41 -0400, Xi Wang wrote: > On 32-bit systems, a large args->buffer_count from userspace via ioctl > may overflow the allocation size, leading to out-of-bounds access. > > This vulnerability was introduced in commit 8408c282 ("drm/i915: > First try a normal large kmalloc

Re: [Intel-gfx] Updated -next

2012-04-23 Thread Sun, Yi
Okay, I'm just going to write mail to you for that issue. Thanks --Yi Sun > -Original Message- > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter > Sent: Monday, April 23, 2012 3:39 PM > To: Intel Graphics Development; Sun, Yi > Subject: Re: Updated -nex

Re: [Intel-gfx] Updated -next

2012-04-23 Thread Daniel Vetter
On Sat, Apr 21, 2012 at 06:40:32PM +0200, Daniel Vetter wrote: > Hi all, > > Highlights: > - More gmbus patches from Daniel Kurtz, I think gmbus is now ready, all > known issues fixed. > - Fencing cleanup and pipelined fencing removal from Chris. > - rc6 residency interface from Ben, useful for

Re: [Intel-gfx] [PATCH] drm/i915: rc6 residency (fix the fix)

2012-04-23 Thread Daniel Vetter
On Sun, Apr 22, 2012 at 07:57:33PM -0700, Ben Widawsky wrote: > On Sun, 22 Apr 2012 18:39:23 +0100 > Chris Wilson wrote: > > > On Sun, 22 Apr 2012 10:35:29 -0700, Ben Widawsky > > wrote: > > > On Sun, 22 Apr 2012 16:49:53 +0100 > > > Chris Wilson wrote: > > > > > > > On Fri, 20 Apr 2012 11:50:

Re: [Intel-gfx] Does intel GM35 support libva?

2012-04-23 Thread Xiang, Haihao
The libva driver for Intel doesn't support GM35. Thanks Haihao > Howdy, > > Xorg says: > [ 36196.880] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so > [ 36196.880] drmOpenDevice: node name is /dev/dri/card0 > [ 36196.880] drmOpenDevice: open result is 9, (OK) > [ 36196.880] drmOpenByBu