[Intel-gfx] [PATCH 6/6] tests/dpf: simple dpf test

2012-05-25 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- tests/Makefile.am |1 + tests/dpf_test|9 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index c7f4f73..3eec64f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -70,6 +70,7 @@ TESTS

[Intel-gfx] [PATCH 5/6] tools/dpf: Tool to read and write l3 remap registers.

2012-05-25 Thread Ben Widawsky
Signed-off-by: Ben Widawsky --- tests/dpf_test |8 +++ tools/Makefile.am |3 +- tools/intel_l3_parity.c | 159 +++ 3 files changed, 169 insertions(+), 1 deletion(-) create mode 100755 tests/dpf_test create mode 100644 tools/int

[Intel-gfx] [PATCH 4/4] drm/i915: l3 parity sysfs interface

2012-05-25 Thread Ben Widawsky
Dumb binary interfaces which allow root-only updates of the cache remapping registers. As mentioned in a previous patch, software using this interface needs to know about HW limits, and other programming considerations as the kernel interface does no checking for these things on the root-only inter

[Intel-gfx] [PATCH 3/4 v2] drm/i915: remap l3 on hw init

2012-05-25 Thread Ben Widawsky
If any l3 rows have been previously remapped, we must remap them after GPU reset/resume too. v2: Just return (no warn) on remapping init if not IVB (Jesse) Move the check of schizo userspace to i915_gem_l3_remap (Jesse) Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h |3 +++

[Intel-gfx] [PATCH 1/4 v2] drm/i915: Dynamic Parity Detection handling

2012-05-25 Thread Ben Widawsky
On IVB hardware we are given an interrupt whenever a L3 parity error occurs in the L3 cache. The L3 cache is used by internal GPU clients only. This is a very rare occurrence (in fact to test this I need to use specially instrumented silicon). When a row in the L3 cache detects a parity error the

[Intel-gfx] [PATCH 2/4] drm/i915: enable parity error interrupts

2012-05-25 Thread Ben Widawsky
The previous patch put all the code, and handlers in place. It should now be safe to enable the parity error interrupt. The parity error must be unmasked in both the GTIMR, and the CS IMR. Unfortunately, the docs aren't clear about this; nevertheless it's the truth. Reviewed-by: Jesse Barnes Sign

Re: [Intel-gfx] [PATCH 5/5] drm/i915: l3 parity sysfs interface

2012-05-25 Thread Ben Widawsky
On Fri, 25 May 2012 10:51:19 -0700 Jesse Barnes wrote: > On Fri, 27 Apr 2012 17:40:21 -0700 > Ben Widawsky wrote: > > > Dumb binary interfaces which allow root-only updates of the cache > > remapping registers. As mentioned in a previous patch, software using > > this interface needs to know ab

Re: [Intel-gfx] [PATCH] drm/i915: add min freq control to debugfs

2012-05-25 Thread Jesse Barnes
On Thu, 24 May 2012 20:51:40 +0100 Chris Wilson wrote: > On Thu, 24 May 2012 09:22:23 -0700, Jesse Barnes > wrote: > > This makes for easier benchmarking and testing. One can set a fixed > > frequency by setting min and max to the same value. > > > > Signed-off-by: Jesse Barnes > > --- > >

[Intel-gfx] [PATCH] drm/i915: add min freq control to debugfs

2012-05-25 Thread Jesse Barnes
This makes for easier benchmarking and testing. One can set a fixed frequency by setting min and max to the same value. v2: fix whitespace & comment (Eugeni) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_debugfs.c | 66 +++ 1 files changed, 66 inse

[Intel-gfx] [PATCH 4/4] drm/i915: add L3 bank clock gating disable on IVB and VLV

2012-05-25 Thread Jesse Barnes
Prevents a possible hang: WaDisableL3Bank2xClockGate. References: https://bugs.freedesktop.org/show_bug.cgi?id=50245 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_reg.h |3 +++ drivers/gpu/drm/i915/intel_pm.c |4 2 files changed, 7 insertions(+), 0 deletions(-) diff --g

[Intel-gfx] [PATCH 2/4] drm/i915: load boot context at driver init time

2012-05-25 Thread Jesse Barnes
According to the bspec for MBCTL: Driver must set bit in the following scenarios: - to realod teh h/w boot context every time it gets loaded through OS - after an FLR clears the register (BIOS won't run afterwards) References: https://bugs.freedesktop.org/show_bug.cgi?id=50237 Signed-off-by:

[Intel-gfx] [PATCH 3/4] drm/i915: add TDL unit clock gating disable for IVB and VLV

2012-05-25 Thread Jesse Barnes
Another required workaround for a potential hang: WaDisableTDLUnitClockGating. References: https://bugs.freedesktop.org/show_bug.cgi?id=50245 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_reg.h |1 + drivers/gpu/drm/i915/intel_pm.c |2 ++ 2 files changed, 3 insertions(+), 0 d

[Intel-gfx] [PATCH 1/4] drm/i915: disable RCBP and VDS unit clock gating on IVB and VLV

2012-05-25 Thread Jesse Barnes
The RCBP workaround still applies on these chips, and we need VDS as well. v2: remove MB boot fetch that snuck in (Daniel) add workaround tags to comments for easier internal tracking (Daniel) References: https://bugs.freedesktop.org/show_bug.cgi?id=50251 Signed-off-by: Jesse Barnes --- dri

Re: [Intel-gfx] [PATCH 4/5] drm/i915: remap l3 on hw init

2012-05-25 Thread Ben Widawsky
On Fri, 25 May 2012 10:39:57 -0700 Jesse Barnes wrote: > On Fri, 27 Apr 2012 17:40:20 -0700 > Ben Widawsky wrote: > > > If any l3 rows have been previously remapped, we must remap them after > > GPU reset/resume too. > > > > Signed-off-by: Ben Widawsky > > --- > > drivers/gpu/drm/i915/i915_d

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Dynamic Parity Detection handling

2012-05-25 Thread Ben Widawsky
On Fri, 25 May 2012 10:34:58 -0700 Jesse Barnes wrote: > On Fri, 27 Apr 2012 17:40:18 -0700 > Ben Widawsky wrote: > > + > > +/** > > + * ivybridge_parity_work - Workqueue called when a parity error interrupt > > + * occurred. > > + * > > + * Doesn't actually do anything except notify userspace s

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Dynamic Parity Detection handling

2012-05-25 Thread Jesse Barnes
On Fri, 25 May 2012 10:34:58 -0700 Jesse Barnes wrote: > > + misccpctl = I915_READ(GEN7_MISCCPCTL); > > + I915_WRITE(GEN7_MISCCPCTL, misccpctl & ~GEN7_DOP_CLOCK_GATE_ENABLE); > > DOP clock gating should be unconditionally disabled, you can move this > to the clock gating routine. Ok I dug in

Re: [Intel-gfx] [PATCH 5/5] drm/i915: l3 parity sysfs interface

2012-05-25 Thread Jesse Barnes
On Fri, 27 Apr 2012 17:40:21 -0700 Ben Widawsky wrote: > Dumb binary interfaces which allow root-only updates of the cache > remapping registers. As mentioned in a previous patch, software using > this interface needs to know about HW limits, and other programming > considerations as the kernel i

Re: [Intel-gfx] [PATCH 4/5] drm/i915: remap l3 on hw init

2012-05-25 Thread Jesse Barnes
On Fri, 27 Apr 2012 17:40:20 -0700 Ben Widawsky wrote: > If any l3 rows have been previously remapped, we must remap them after > GPU reset/resume too. > > Signed-off-by: Ben Widawsky > --- > drivers/gpu/drm/i915/i915_drv.h |3 +++ > drivers/gpu/drm/i915/i915_gem.c | 26 +

Re: [Intel-gfx] [PATCH 3/5] drm/i915: enable parity error interrupts

2012-05-25 Thread Jesse Barnes
On Fri, 27 Apr 2012 17:40:19 -0700 Ben Widawsky wrote: > The previous patch put all the code, and handlers in place. It should > now be safe to enable the parity error interrupt. The parity error must > be unmasked in both the GTIMR, and the CS IMR. Unfortunately, the docs > aren't clear about th

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Dynamic Parity Detection handling

2012-05-25 Thread Jesse Barnes
On Fri, 27 Apr 2012 17:40:18 -0700 Ben Widawsky wrote: > + > +/** > + * ivybridge_parity_work - Workqueue called when a parity error interrupt > + * occurred. > + * > + * Doesn't actually do anything except notify userspace so that userspace may > + * disable things later on. kdoc style comment b

Re: [Intel-gfx] [PATCH 02/14] drm: handle HDP and polled connectors separately

2012-05-25 Thread Adam Jackson
On 5/24/12 3:26 PM, Daniel Vetter wrote: Instead of reusing the polling code for hdp handling, split them up. This has a few consequences: - Don't touch HDP capable connectors in the poll loop. - Only touch HDP capable connectors in drm_helper_hpd_irq_event. - Run the HDP handling directly instea

Re: [Intel-gfx] [PATCH 28/43] drm: don't zero out the CRTC even if it's the same as the current one

2012-05-25 Thread Jesse Barnes
On Fri, 25 May 2012 13:33:07 +0100 Chris Wilson wrote: > From: Jesse Barnes > > In set_config we currently try to reset the CRTC if both the requested > CRTC and the currently bound one are the same. The reason for this > appears to be lost to history (it pre-dates KMS support upstream at > le

[Intel-gfx] [PATCH 16/43] drm/i915: Support readback of stolen objects upon error

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_irq.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index f4b2281..6eca39e 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/g

[Intel-gfx] [PATCH 01/43] drm/i915: Track unbound pages

2012-05-25 Thread Chris Wilson
When dealing with a working set larger than the GATT, or even the mappable aperture when touching through the GTT, we end up with evicting objects only to rebind them at a new offset again later. Moving an object into and out of the GTT requires clflushing the pages, thus causing a double-clflush p

[Intel-gfx] [PATCH 31/43] drm/i915: use fb helper probe when building BIOS config

2012-05-25 Thread Chris Wilson
From: Jesse Barnes And make sure we register the BIOS config framebuffer if needed. --- drivers/gpu/drm/i915/intel_drv.h |2 ++ drivers/gpu/drm/i915/intel_fb.c | 12 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/

[Intel-gfx] [PATCH 03/43] drm/i915: Try harder to allocate an mmap_offset

2012-05-25 Thread Chris Wilson
Given the persistence of an offset for the lifetime of an object, itis easy to contemplate how the mmap space becomes badly fragmented to the point that further allocations fail with ENOSPC. Our only recourse at this point is to try to purge the objects to release some space and reattempt the alloc

[Intel-gfx] [PATCH 02/43] drm/i915: Only pwrite through the GTT if there is space in the aperture

2012-05-25 Thread Chris Wilson
Avoid stalling and waiting for the GPU by checking to see if there is sufficient inactive space in the aperture for us to bind the buffer prior to writing through the GTT. If there is inadequate space we will have to stall waiting for the GPU, and incur overheads moving objects about. Instead, only

[Intel-gfx] [PATCH 05/43] drm/i915: Pin pages for pread

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 38 +++--- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 597a1ff..aa01e44 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 08/43] drm/i915: Fix detection of stolen base for gen2

2012-05-25 Thread Chris Wilson
It was not until the G33 refresh, that a PCI config register was introduced that explicitly said where the stolen memory was. Prior to 865G there was not even a register that said where the end of usable low memory was and where the stolen memory began (or ended depending upon chipset). Before then

[Intel-gfx] [PATCH 09/43] drm/i915: Fix location of stolen memory register for SandyBridge+

2012-05-25 Thread Chris Wilson
A few of the earlier registers where enlarged and so the Base Data of Stolem Memory Register (BDSM) was pushed to 0xb0. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_stolen.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH 11/43] drm/i915: Always use the scatterlists if available for GTT insertion

2012-05-25 Thread Chris Wilson
If we have created a scatterlist for the physical mapping of the object, simply use it. This facilitates the later insertion of stolen objects into the GATT which are not backed by struct page. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_gtt.c | 19 --- 1 file

[Intel-gfx] [PATCH 13/43] drm/i915: Delay allocation of stolen space for FBC

2012-05-25 Thread Chris Wilson
As we may wish to wrap regions preallocated by the BIOS, we need to do that before carving out contiguous chunks of stolen space for FBC. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h|1 + drivers/gpu/drm/i915/i915_gem_stolen.c | 114 +--

[Intel-gfx] [PATCH 14/43] drm/i915: Extract general object init routine

2012-05-25 Thread Chris Wilson
As we wish to create specialised object constructions in the near future that share the same basic GEM object struct, export the default initializer. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/i915_gem.c | 32 +++-

[Intel-gfx] [PATCH 15/43] drm/i915: Allow objects to be created with no backing pages, but stolen space

2012-05-25 Thread Chris Wilson
In order to accommodate objects that are not backed by struct pages, but instead point into a contiguous region of stolen space, we need to make various changes to avoid dereferencing obj->pages or obj->base.filp. First introduce a marker for the stolen object, that specifies its offset into the s

[Intel-gfx] [PATCH 18/43] drm/i915: Handle stolen objects for pread

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 44 ++- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index d46e1dd..7576937 100644 --- a/drivers/gpu/drm/i91

[Intel-gfx] [PATCH 32/43] drm/i915: read current LVDS config at boot

2012-05-25 Thread Chris Wilson
From: Jesse Barnes To better optimize mode sets that occur at boot time. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_lvds.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 9de

[Intel-gfx] [PATCH 19/43] drm/i915: Introduce i915_gem_object_create_stolen()

2012-05-25 Thread Chris Wilson
Allow for the creation of GEM objects backed by stolen memory. As these are not backed by ordinary pages, we create a fake dma mapping and store the address in the scatterlist rather than obj->pages. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h|3 + drivers/gpu/drm

[Intel-gfx] [PATCH 21/43] drm/i915: Allocate ringbuffers from stolen memory

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_ringbuffer.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 0f4149e..64a0ea0 100644 --- a/drivers/gpu/drm/i915/intel_rin

[Intel-gfx] [PATCH 24/43] drm/i915: Split the framebuffer_info creation into a separate routine

2012-05-25 Thread Chris Wilson
This will be shared with wrapping the BIOS framebuffer into the fbdev later. In the meantime, we can tidy the code slightly and improve the error path handling. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_fb.c | 125 +-- 1 file changed, 69 inse

[Intel-gfx] [PATCH 37/43] drm/i915: Skip modifying PCH DREF if not changing clock sources

2012-05-25 Thread Chris Wilson
Modifying the clock sources (via the DREF control on the PCH) is a slow multi-stage process as we need to let the clocks stabilise between each stage. If we are not actually changing the clock sources, then we can return early. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH 29/43] drm/fb: don't NULL encoder CRTCs at fb init time

2012-05-25 Thread Chris Wilson
From: Jesse Barnes --- drivers/gpu/drm/drm_fb_helper.c |5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 391fc41..3c7b876 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1242,1

[Intel-gfx] [PATCH 28/43] drm: don't zero out the CRTC even if it's the same as the current one

2012-05-25 Thread Chris Wilson
From: Jesse Barnes In set_config we currently try to reset the CRTC if both the requested CRTC and the currently bound one are the same. The reason for this appears to be lost to history (it pre-dates KMS support upstream at least). Remove this restriction to allow existing configs to be simple

[Intel-gfx] [PATCH 26/43] drm: add initial_config function to fb helper and add i915 support

2012-05-25 Thread Chris Wilson
From: Jesse Barnes Rather than building a config which may or may not work, let the driver build an initial fb config. This allows the driver to use the BIOS boot configuration for example, displaying kernel messages and the initial fb console on the same outputs the BIOS lit up at boot time. I

[Intel-gfx] [PATCH 27/43] drm/i915: read initial config from hardware

2012-05-25 Thread Chris Wilson
From: Jesse Barnes This allows subsequent mode sets to do less work if possible, reducing flicker and speeding up boot time. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/drm_fb_helper.c | 11 ++-- drivers/gpu/drm/i915/intel_display.c | 101 +- drivers

[Intel-gfx] [PATCH 33/43] drm/i915: more debug messages when BIOS display config can't be replicated

2012-05-25 Thread Chris Wilson
From: Jesse Barnes Makes debugging new configs easier. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fb.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 12a0c14..5550de7 100644 ---

[Intel-gfx] [PATCH 35/43] drm/i915: add panel shutdown debug message

2012-05-25 Thread Chris Wilson
From: Jesse Barnes We want to avoid these as much as possible. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_lvds.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 0248391..83204b6 100644 --- a/d

[Intel-gfx] [PATCH 39/43] drm/i915: remove unnecessary arg from intel_crtc_mode_get

2012-05-25 Thread Chris Wilson
From: Jesse Barnes We were passing a drm_device and drm_crtc. Just get the drm_device from the drm_crtc structure. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |6 +++--- drivers/gpu/drm/i915/intel_drv.h |3 +-- drivers/gpu/drm/i915/intel_dvo.c |2 +

[Intel-gfx] [PATCH 42/43] drm/i915: HACK: hard code existing mode clock to 137500

2012-05-25 Thread Chris Wilson
From: Jesse Barnes This is roughly 1920x1080 with reduced blanking. Hack it for now until we read out the real clock from HW or from the panel's native mode. --- drivers/gpu/drm/i915/intel_display.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/d

[Intel-gfx] [PATCH 07/43] drm: Introduce drm_mm_create_block()

2012-05-25 Thread Chris Wilson
To be used later by i915 to preallocate exact blocks of space from the range manager. Signed-off-by: Chris Wilson Cc: Dave Airlie --- drivers/gpu/drm/drm_mm.c | 49 ++ include/drm/drm_mm.h |4 2 files changed, 53 insertions(+) diff --g

[Intel-gfx] [PATCH 43/43] drm/i915: HACK: force plane enable at plane update time

2012-05-25 Thread Chris Wilson
From: Jesse Barnes If the BIOS was in VGA mode, the planes may have been disabled, so we need to enable them when the first update_plane call comes in. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i9

[Intel-gfx] [PATCH 40/43] drm/i915: fetch sync polarity when building initial configuration

2012-05-25 Thread Chris Wilson
From: Jesse Barnes Read the sync polarity from the output configuration when assigning the initial mode to the current configuration. This allows a later set_config call to match the current mode and use a flip instead. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_crt.c |

[Intel-gfx] [PATCH 41/43] drm/i915: remove unnecessary arg from intel_crtc_clock_get

2012-05-25 Thread Chris Wilson
From: Jesse Barnes Just use crtc->dev instead of passing the dev.. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index

[Intel-gfx] [PATCH 38/43] drm/i915: Disable unused CRTCs

2012-05-25 Thread Chris Wilson
We need to turn off any CRTCs that may have been left on by the BIOS but that we are not wrapping for KMS. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_fb.c | 75 +-- 1 file changed, 72 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 36/43] drm/i915: try to handle multi-head BIOS configurations too

2012-05-25 Thread Chris Wilson
From: Jesse Barnes If the BIOS hands us a multi-pipe configuration, try to allocate an fb large enough for the largest screen and preserve the mode. Still need to fix the other initial_config function in case one or more of the pipes was rejected due to an incompatibility with the others. Signe

[Intel-gfx] [PATCH 34/43] drm/i915: allow 8 bit BIOS configs to be inherited

2012-05-25 Thread Chris Wilson
From: Jesse Barnes Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fb.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index 5550de7..74bd22e 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b

[Intel-gfx] [PATCH 30/43] drm/i915: when reading initial config, don't clobber PCH clock state

2012-05-25 Thread Chris Wilson
From: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 6afe082..4ff412a 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/in

[Intel-gfx] [PATCH 25/43] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_dma.c |4 ++ drivers/gpu/drm/i915/intel_display.c |3 - drivers/gpu/drm/i915/intel_drv.h |1 + drivers/gpu/drm/i915/intel_fb.c | 118 -- 4 files changed, 119 insertions(+), 7 delet

[Intel-gfx] [PATCH 23/43] drm/i915: Introduce i915_gem_object_create_stolen_for_preallocated

2012-05-25 Thread Chris Wilson
Wrap a preallocated region of stolen memory within an ordinary GEM object, for example the BIOS framebuffer. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h|5 +++ drivers/gpu/drm/i915/i915_gem_stolen.c | 58 2 files changed, 63 inse

[Intel-gfx] [PATCH 22/43] drm/i915: Allocate overlay registers from stolen memory

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_overlay.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index a1ae18a..3d520cf 100644 --- a/drivers/gpu/drm/i915/intel_overlay.c +

[Intel-gfx] [PATCH 20/43] drm/i915: Allocate fbcon from stolen memory

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_fb.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fb.c b/drivers/gpu/drm/i915/intel_fb.c index bf86907..d7ebf6c 100644 --- a/drivers/gpu/drm/i915/intel_fb.c +++ b/drivers/gpu/drm/i91

[Intel-gfx] [PATCH 17/43] drm/i915: Handle stolen objects in pwrite

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 46 ++- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index ec4ddeb..d46e1dd 100644 --- a/drivers/gpu/drm/i91

[Intel-gfx] [PATCH 12/43] drm/i915: Tidy handling of the scatterlist by ppgtt

2012-05-25 Thread Chris Wilson
Check to see if we've reached the end before dereferencing to get the next scatterlist. This helps when creating scatterlists by hand. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem_gtt.c |8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/dr

[Intel-gfx] [PATCH 10/43] drm/i915: Avoid clearing preallocated regions from the GTT

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h |2 ++ drivers/gpu/drm/i915/i915_gem_gtt.c | 35 --- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index e1

[Intel-gfx] [PATCH 06/43] drm/i915/debugfs: Show (count, size) of purgeable objects in i915_gem_objects

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_debugfs.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 3e00b27..5c9f542 100644 --- a/drivers/gpu/drm/i915/i915_d

[Intel-gfx] [PATCH 04/43] drm/i915: Pin backing pages for pwrite

2012-05-25 Thread Chris Wilson
Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 44 ++- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 578b38a..597a1ff 100644 --- a/drivers/gpu/drm/i91

[Intel-gfx] [RFC] fastboot

2012-05-25 Thread Chris Wilson
Here's the current state of the fastboot work by Jesse. The goal is to preserve the framebuffer as setup by the BIOS or grub for fbcon and so avoid any flicker right up until X. X is likely to replace everything and so incur a modechange, but ultimately even it may be satisfied and we may contrive

Re: [Intel-gfx] [PATCH] drm/i915/hdmi: Fix reg values for g4x_hdmi_connected

2012-05-25 Thread Daniel Vetter
On Fri, May 25, 2012 at 09:25:35AM -0300, Paulo Zanoni wrote: > 2012/5/25 Chris Wilson : > > Paulo pointed out that gen4 re-used the SDVO registers for HDMI (the > > separate HDMI registers where introduced with the first PCH) and so > > g4x_hdmi_connected() never selected the right bit and always

Re: [Intel-gfx] [PATCH] drm/i915/hdmi: Fix reg values for g4x_hdmi_connected

2012-05-25 Thread Paulo Zanoni
2012/5/25 Chris Wilson : > Paulo pointed out that gen4 re-used the SDVO registers for HDMI (the > separate HDMI registers where introduced with the first PCH) and so > g4x_hdmi_connected() never selected the right bit and always returned > disconnected. > > Regression in > > commit 8ec22b214d76773c

Re: [Intel-gfx] [PATCH 4/4] [RESEND] drm/i915: s/i915_wait_request/i915_wait_seqno/g

2012-05-25 Thread Daniel Vetter
On Thu, May 24, 2012 at 03:03:11PM -0700, Ben Widawsky wrote: > Wait request is poorly named IMO. After working with these functions for > some time, I feel it's much clearer to name the functions more > appropriately. > > Of course we must update the callers to use the new name as well. > > This

[Intel-gfx] [PATCH] drm: introduce DRM_CONNECTOR_POLL_FORCE

2012-05-25 Thread Daniel Vetter
Useful for ->detect functions that have different behaviour if force is set. This way probe_single_connector can avoid to do the expensive edid dance on connectors where this is not needed. I've checked through all drivers and set this flag everywhere where the connector->detect function has diffe

Re: [Intel-gfx] [pull] drm-intel-fixes for 3.5

2012-05-25 Thread Daniel Vetter
On Thu, May 24, 2012 at 05:56:24PM +0200, Daniel Vetter wrote: > Hi Dave, > > A set of fixes for 3.5: > - Fixes for regressions in 3.5: fix spurious gmbus NAK, fix module unload, > fix pch pll asserts. > - Fix up eDP panel power sequencing - turns out we need to keep vdd on > while switching e

[Intel-gfx] [PATCH] drm/i915/hdmi: Fix reg values for g4x_hdmi_connected

2012-05-25 Thread Chris Wilson
Paulo pointed out that gen4 re-used the SDVO registers for HDMI (the separate HDMI registers where introduced with the first PCH) and so g4x_hdmi_connected() never selected the right bit and always returned disconnected. Regression in commit 8ec22b214d76773c9d89f4040505ce10f677ed9a Author: Chris

Re: [Intel-gfx] [PATCH] drm/i915: Remove the error message for unbinding pinned buffers

2012-05-25 Thread Daniel Vetter
On Thu, May 24, 2012 at 07:11:20PM +0100, Chris Wilson wrote: > This is now used intentionally to prevent proliferation of is-pinned > checks upon the inactive list following: > > commit 1b50247a8ddde4af5aaa0e6bc125615372ce6c16 > Author: Chris Wilson > Date: Tue Apr 24 15:47:30 2012 +0100 > >

Re: [Intel-gfx] [PATCH] drm/i915: Limit page allocations to lowmem (dma32) for i965

2012-05-25 Thread Daniel Vetter
On Thu, May 24, 2012 at 08:48:12PM +0100, Chris Wilson wrote: > Broadwater and Crestline share a limitation that prevent it from > relocating general surface state above 4GiB. The only recourse we have > since any buffer object may be used as a relocation target is then to > limit all object alloca