[Intel-gfx] [PATCH 3/5] drm/i915: retrieve current fb config into new plane_config structure at init v4

2013-11-25 Thread Jesse Barnes
get_plane_config works with shared fbs (Jesse) v3: s/ARGB/XRGB (Ville) use pipesrc width/height (Ville) fix fourcc comment (Bob) use drm_format_plane_cpp (Ville) v4: use fb for tracking fb data object (Ville) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h | 3

[Intel-gfx] [PATCH 2/5] drm/i915: split fb allocation and initialization v2

2013-11-25 Thread Jesse Barnes
If we use a stolen buffer, our probe callback shouldn't allocate a new buffer; we should re-use the one from the BIOS instead if possible. v2: fix locking (Jesse) Reviewed-by: Chris Wilson Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c

[Intel-gfx] [PATCH 5/5] drm/i915: don't memset the fb buffer if preallocated

2013-11-25 Thread Jesse Barnes
We want to preserve the BIOS/bootloader contents for later. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index c55d620..abe998c

[Intel-gfx] [PATCH 1/5] drm/i915: make pitch_for_width take a tiled arg v2

2013-11-25 Thread Jesse Barnes
And move it up in the file for earlier usage. v2: add pre-gen4 support as well (Chris) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 53 ++-- 1 file changed, 38 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915

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

2013-11-25 Thread Jesse Barnes
plit from plane_config readout and other display changes (Jesse) drop use_bios_fb option (Chris) update comments (Jesse) rework fbdev_init_bios for clarity (Jesse) drop fb obj ref under lock (Chris) v7: use fb object from plane_config instead (Ville) Signed-off-by: Jesse Ba

Re: [Intel-gfx] [PATCH 3/5] drm/i915: retrieve current fb config into new plane_config structure at init v4

2013-11-26 Thread Jesse Barnes
On Tue, 26 Nov 2013 13:57:10 + Chris Wilson wrote: > On Mon, Nov 25, 2013 at 03:51:17PM -0800, Jesse Barnes wrote: > > Read out the current plane configuration at init time into a new > > plane_config structure. This allows us to track any existing > > framebuffers atta

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-11-26 Thread Jesse Barnes
On Tue, 26 Nov 2013 14:09:48 + Chris Wilson wrote: > On Mon, Nov 25, 2013 at 03:51:18PM -0800, Jesse Barnes wrote: > > Retrieve current framebuffer config info from the regs and create an fb > > object for the buffer the BIOS or boot loader left us. This should >

[Intel-gfx] [PATCH] drm/i915: take mode config lock around crtc disable at suspend

2013-11-26 Thread Jesse Barnes
This is just a theoretical issue, but we need to do this to prevent the WARN in pipe_from_connector at suspend time. https://bugs.freedesktop.org/show_bug.cgi?id=71978 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c |2 ++ 1 file changed, 2 insertions(+) diff --git a

Re: [Intel-gfx] [PATCH 1/5] drm/i915: make pitch_for_width take a tiled arg v2

2013-11-26 Thread Jesse Barnes
On Tue, 26 Nov 2013 19:28:27 +0200 Ville Syrjälä wrote: > On Mon, Nov 25, 2013 at 03:51:15PM -0800, Jesse Barnes wrote: > > And move it up in the file for earlier usage. > > > > v2: add pre-gen4 support as well (Chris) > > > > Signed-off-by: Jesse Barnes

Re: [Intel-gfx] [PATCH 3/5] drm/i915: retrieve current fb config into new plane_config structure at init v4

2013-11-26 Thread Jesse Barnes
elds from the fb struct into the plane config struct. That makes cross checking and readout simple, and allows us to allocate if possible in the BIOS functions. But damnit, then I'd have to drop back to an earlier version of the patch and lose some changes... ugg -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-11-26 Thread Jesse Barnes
On Tue, 26 Nov 2013 18:54:04 +0100 Daniel Vetter wrote: > On Tue, Nov 26, 2013 at 02:09:48PM +, Chris Wilson wrote: > > On Mon, Nov 25, 2013 at 03:51:18PM -0800, Jesse Barnes wrote: > > > Retrieve current framebuffer config info from the regs and create an fb > > >

[Intel-gfx] [PATCH] drm/i915: drop DRM_ERROR in intel_fbdev init

2013-11-26 Thread Jesse Barnes
This should just be a debug. Add another debug msg to the inherit path while we're at it. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm

Re: [Intel-gfx] [PATCH 1/2] drm/i915/vlv: Make the vlv_dpio_read/vlv_dpio_write more PHY centric

2013-11-26 Thread Jesse Barnes
On Tue, 26 Nov 2013 15:10:22 -0800 Jesse Barnes wrote: > On Mon, 11 Nov 2013 10:23:24 +0100 > Daniel Vetter wrote: > > > On Wed, Nov 06, 2013 at 12:51:05PM +0200, Ville Syrjälä wrote: > > > On Wed, Nov 06, 2013 at 02:36:35PM +0800, Chon Ming Lee wrote: > > >

Re: [Intel-gfx] [PATCH 1/2] drm/i915/vlv: Make the vlv_dpio_read/vlv_dpio_write more PHY centric

2013-11-26 Thread Jesse Barnes
gt; > Reviewed-by: Ville Syrjälä > > Queued for -next, thanks for the patch. Looks like this one gives me bogus DPIO values at least some of the time. Reverting to using 0x12 as the port ID seems to get me valid values back... -- Jesse Barnes, Intel Open Source Technology Center

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Report all GTFIFODBG errors

2013-11-27 Thread Jesse Barnes
GT_FIFO_CPU_ERROR_MASK); > > > > > + if (WARN(gtfifodbg, "GT wake FIFO error 0x%x\n", gtfifodbg)) > > > > > > > > I think you still need mask, there are ro fields != 0 in the same > > > > register. > > > > > > Which bits? VLV has those seven low bits, others just three low bits > > > AFAICS. > > > > OK, so the problem is that bspec seems to list some bogus junk for these > > registers. The gunit register HAS is what I used to write these patches. > > Someone with a VLV on their hands should double check whether real > > hardware agrees with the gunit register HAS. Any volunteers? > > Imre had a look on his VLV the other day, and the register contents seemed > to match the Gunit register HAS. So I think these patches should be doing > the right thing. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Fix GT wake FIFO free entries for VLV

2013-11-27 Thread Jesse Barnes
5_read32(dev_priv, GTFIFOCTL) & > GT_FIFO_FREE_ENTRIES_MASK; > > spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags); > return ret; I don't see this reg on HSW, but it looks like our HSW code uses this routine? Assuming the spec is just broken today..

Re: [Intel-gfx] [PATCH 1/2] drm/i915/vlv: correct promotion timer value for RC6 Timeout method.

2013-11-27 Thread Jesse Barnes
re to review my earlier ones? http://lists.freedesktop.org/archives/intel-gfx/2013-November/036112.html http://lists.freedesktop.org/archives/intel-gfx/2013-November/036111.html Thanks, -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing

[Intel-gfx] [PATCH] drm/i915: use crtc_htotal in watermark calculations to match fastboot

2013-11-27 Thread Jesse Barnes
This value is more correct, and matches what we read out in the fastboot code. Without this, the watermark code will panic after the first mode setting activity after a fastboot. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_pm.c | 14 +++--- 1 file changed, 7 insertions

[Intel-gfx] [PATCH] drm/i915: use crtc_htotal in watermark calculations to match fastboot v2

2013-11-27 Thread Jesse Barnes
This value is more correct, and matches what we read out in the fastboot code. Without this, the watermark code will panic after the first mode setting activity after a fastboot. v2: fix up HSW ->clock usage too (Ville) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_pm.c |

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Add power well arguments to force wake routines.

2013-11-27 Thread Jesse Barnes
VLV 0x1300b8 > #define FORCEWAKE_ACK_MEDIA_VLV 0x1300bc > #define FORCEWAKE_ACK_HSW 0x130044 This hunk is spurious, but doesn't really matter. Maybe Daniel can trim it out when he applies. Reviewed-by: Jesse Barnes --

Re: [Intel-gfx] [PATCH] drm/i915: Avoid div-by-zero in clock calculation funcs

2013-12-02 Thread Jesse Barnes
clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p); > } > @@ -443,6 +447,8 @@ static void i9xx_clock(int refclk, intel_clock_t *clock) > { > clock->m = i9xx_dpll_compute_m(clock); > clock->p = clock->p1 * clock->p2; > + if (WARN_ON(clock->n +

[Intel-gfx] [PATCH] drm/i915: don't force VDD on when shutting down a panel

2013-12-04 Thread Jesse Barnes
Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_dp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 1e372d5..cb33b67 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: don't force VDD on when shutting down a panel

2013-12-04 Thread Jesse Barnes
On Wed, 4 Dec 2013 18:24:56 -0200 Paulo Zanoni wrote: > 2013/12/4 Jesse Barnes : > > This causes trouble on some VLV systems, and generally costs power > > elsewhere. > > > > If this ends up causing trouble, it could just mean we need to get rid > > of VDD force

Re: [Intel-gfx] [PATCH 0/6] Enabling DRRS support in the kernel

2013-12-05 Thread Jesse Barnes
d the > implementation. > > So in short I know that my request extends the scope of your patches. But > upstream also imposes differing constraints than a product tree. It should be possible to still merge the automatic, in-kernel only DRRS bits though, right? Then work on making d

Re: [Intel-gfx] [PATCH] drm/i915: Introduce vblank work function

2013-12-06 Thread Jesse Barnes
for some reason Chris's code has been stalled the whole time (and didn't we have a wq patch for the sprite unpin even before that?). -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 3/5] drm/i915: fix VDD override off wait

2013-12-06 Thread Jesse Barnes
); > + > + if ((pp & POWER_TARGET_ON) == 0) > + msleep(intel_dp->panel_power_cycle_delay); > } > } > Lemme check the eDP docs on this one... it's supposed to be T12, which is the time between power cycles. Yeah th

Re: [Intel-gfx] [PATCH 4/5] drm/i915: save some time when waiting the eDP timings

2013-12-06 Thread Jesse Barnes
anel_vdd; > + unsigned long last_power_cycle; > + unsigned long last_power_on; > + unsigned long last_backlight_off; > bool psr_setup_done; > struct intel_connector *attached_connector; > }; > @@ -707,6 +710,7 @@ void hsw_enable_ips(struct intel_crtc *crt

Re: [Intel-gfx] [PATCH] drm/i915: Move VLV PHY CRI clock enable into intel_init_dpio()

2013-12-10 Thread Jesse Barnes
t at the display */ > - if (IS_VALLEYVIEW(dev)) > - I915_WRITE(DPLL(PIPE_B), I915_READ(DPLL(PIPE_B)) | > - DPLL_INTEGRATED_CRI_CLK_VLV); > - > intel_init_dpio(dev); > > mutex_lock(&dev->struct_mutex); Reviewed-by: Jesse Barnes -- Jesse Barnes, I

Re: [Intel-gfx] [PATCH 5/5] drm/i915: init the DP panel power seq variables earlier

2013-12-10 Thread Jesse Barnes
> > intel_dp->psr_setup_done = false; > > - if (!intel_edp_init_connector(intel_dp, intel_connector)) { > + if (!intel_edp_init_connector(intel_dp, intel_connector, &power_seq)) { > i2c_del_adapter(&intel_dp->adapter); > if (is_edp(intel_dp)) { > cancel_delayed_work_sync(&intel_dp->panel_vdd_work); Yeah, seems reasonable. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 5/6] drm/i915/vlv: move DPIO init earlier v2

2013-12-12 Thread Jesse Barnes
It's needed for early mode state readout, which is in turn needed to inherit the BIOS config. So split out the reset, which we need on resume too, from the DPIO reg init, and do the latter earlier. v2: split reset and reg init Signed-off-by: Jesse Barnes --- drivers/gpu/drm

[Intel-gfx] [PATCH 1/6] drm/i915: unconditionally copy mode into crtc at boot time

2013-12-12 Thread Jesse Barnes
The BIOS code will need this to properly inherit the mode. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index af3717a..1ae3d44

[Intel-gfx] [PATCH 2/6] drm/i915: retrieve current fb config into new plane_config structure at init

2013-12-12 Thread Jesse Barnes
) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/intel_display.c | 130 +-- drivers/gpu/drm/i915/intel_drv.h | 8 +++ 3 files changed, 136 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 4/6] drm/i915: don't memset the fb buffer if preallocated

2013-12-12 Thread Jesse Barnes
We want to preserve the BIOS/bootloader contents for later. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index db75f22..53675d2

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

2013-12-12 Thread Jesse Barnes
esse) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 4 +- drivers/gpu/drm/i915/intel_drv.h | 4 +- drivers/gpu/drm/i915/intel_fbdev.c | 235 --- 3 files changed, 224 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/

[Intel-gfx] [PATCH 6/6] drm/i915: inform drm_fb_helper if we abandoned a connected output

2013-12-12 Thread Jesse Barnes
Otherwise subsequent fb activity will try to do blank/unblank on outputs that were never fully enabled. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Don't disable primary when color keying is used

2013-12-12 Thread Jesse Barnes
imary = drm_rect_equals(&dst, &clip); > + disable_primary = drm_rect_equals(&dst, &clip) && > !colorkey_enabled(intel_plane); > WARN_ON(disable_primary && !visible && intel_crtc->active); > > mutex_lock(&dev->struct_mutex

Re: [Intel-gfx] [PATCH 3/7] drm/i915: Add i915_get_crtc_scanline()

2013-12-12 Thread Jesse Barnes
intel_drv.h > @@ -580,6 +580,7 @@ void snb_enable_pm_irq(struct drm_i915_private *dev_priv, > uint32_t mask); > void snb_disable_pm_irq(struct drm_i915_private *dev_priv, uint32_t mask); > void hsw_pc8_disable_interrupts(struct drm_device *dev); > void hsw_pc8_restore_interrupts(struct drm_device *dev); > +int i915_get_crtc_scanline(struct drm_crtc *crtc); > > > /* intel_crt.c */ Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 4/7] drm/i915: Shuffle sprite register writes into a tighter group

2013-12-12 Thread Jesse Barnes
pixel_size, fb->pitches[0]); > linear_offset -= dvssurf_offset; > > + I915_WRITE(DVSSTRIDE(pipe), fb->pitches[0]); > + I915_WRITE(DVSPOS(pipe), (crtc_y << 16) | crtc_x); > + > if (obj->tiling_mode != I915_TILING_NONE) > I915_WRITE(DVSTILEOFF(pipe), (y << 16) | x); > else Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Make sprite updates atomic

2013-12-12 Thread Jesse Barnes
9,8 @@ ilk_update_plane(struct drm_plane *plane, struct drm_crtc > *crtc, > I915_MODIFY_DISPBASE(DVSSURF(pipe), >i915_gem_obj_ggtt_offset(obj) + dvssurf_offset); > POSTING_READ(DVSSURF(pipe)); > + > + intel_pipe_update_end(crtc); > } > > static void > @@ -503,6 +571,8 @@ ilk_disable_plane(struct drm_plane *plane, struct > drm_crtc *crtc) > struct intel_plane *intel_plane = to_intel_plane(plane); > int pipe = intel_plane->pipe; > > + intel_pipe_update_start(crtc); > + > I915_WRITE(DVSCNTR(pipe), I915_READ(DVSCNTR(pipe)) & ~DVS_ENABLE); > /* Disable the scaler */ > I915_WRITE(DVSSCALE(pipe), 0); > @@ -510,6 +580,8 @@ ilk_disable_plane(struct drm_plane *plane, struct > drm_crtc *crtc) > I915_MODIFY_DISPBASE(DVSSURF(pipe), 0); > POSTING_READ(DVSSURF(pipe)); > > + intel_pipe_update_end(crtc); > + > intel_update_sprite_watermarks(plane, crtc, 0, 0, false, false); > } > It looks like we may need to check for preemption again on local_irq_enable() according to preempt-locking.txt? Otherwise it looks like this does the right thing. With the above addressed or explained away: Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 6/7] drm/i915: Perform primary enable/disable atomically with sprite updates

2013-12-12 Thread Jesse Barnes
951,8 +963,8 @@ intel_update_plane(struct drm_plane *plane, struct > drm_crtc *crtc, > else > intel_plane->disable_plane(plane, crtc); > > - if (disable_primary) > - intel_disable_primary(crtc); > +

Re: [Intel-gfx] [PATCH 7/7] drm/i915: Add pipe update trace points

2013-12-12 Thread Jesse Barnes
; > local_irq_disable(); > > + trace_i915_pipe_update_start(crtc, min, max); > + > intel_crtc->vbl_received = false; > scanline = i915_get_crtc_scanline(crtc); > > @@ -78,10 +80,14 @@ static void intel_pipe_update_start(struct drm_crtc *crtc)

Re: [Intel-gfx] [PATCH 5/7] drm/i915: Make sprite updates atomic

2013-12-12 Thread Jesse Barnes
e the sprite bits went in, but for some reason they've never been merged. They're need to make the sprite stuff more usable by e.g. Weston. -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freed

Re: [Intel-gfx] [PATCH 1/6] drm/i915: unconditionally copy mode into crtc at boot time

2013-12-12 Thread Jesse Barnes
On Thu, 12 Dec 2013 22:21:29 +0100 Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 12:41:52PM -0800, Jesse Barnes wrote: > > The BIOS code will need this to properly inherit the mode. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH 6/6] drm/i915: inform drm_fb_helper if we abandoned a connected output

2013-12-12 Thread Jesse Barnes
On Thu, 12 Dec 2013 22:30:41 + Chris Wilson wrote: > On Thu, Dec 12, 2013 at 12:41:57PM -0800, Jesse Barnes wrote: > > Otherwise subsequent fb activity will try to do blank/unblank on outputs > > that were never fully enabled. > > Hmm, actually this highlights a b

Re: [Intel-gfx] [PATCH 1/6] drm/i915: unconditionally copy mode into crtc at boot time

2013-12-12 Thread Jesse Barnes
On Thu, 12 Dec 2013 23:39:39 +0100 Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 01:29:39PM -0800, Jesse Barnes wrote: > > On Thu, 12 Dec 2013 22:21:29 +0100 > > Daniel Vetter wrote: > > > > > On Thu, Dec 12, 2013 at 12:41:52PM -0800, Jesse Barnes wrote: > &

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-12-12 Thread Jesse Barnes
On Thu, 12 Dec 2013 23:54:37 +0100 Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 12:41:54PM -0800, Jesse Barnes wrote: > > Retrieve current framebuffer config info from the regs and create an fb > > object for the buffer the BIOS or boot loader left us. This should >

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-12-13 Thread Jesse Barnes
ting wrong, but given how tricky it can be, can you explain where we'll take the ref here, and show that the right thing will happen if/when we mode set away from this buffer? I haven't actually seen a bug here with or without this patch (no crashes or warns), but I thought I neede

[Intel-gfx] [PATCH 1/2] drm/i915: wrap crtc enable/disable

2013-12-13 Thread Jesse Barnes
This allows us to hide queuing of enable/disable later. --- drivers/gpu/drm/i915/i915_drv.c | 2 +- drivers/gpu/drm/i915/i915_drv.h | 4 +- drivers/gpu/drm/i915/intel_display.c | 83 +--- drivers/gpu/drm/i915/intel_drv.h | 1 + 4 files changed, 71 i

[Intel-gfx] [PATCH 2/2] drm/i915: make crtc enable/disable asynchronous

2013-12-13 Thread Jesse Barnes
The intent is to get back to userspace as quickly as possible so it can start doing drawing or whatever. It should also allow our suspend/resume/init time to improve a lot. --- drivers/gpu/drm/i915/i915_irq.c | 10 +- drivers/gpu/drm/i915/intel_display.c | 27

[Intel-gfx] [RFC] async CRTC enable/disable hack

2013-12-13 Thread Jesse Barnes
Obviously still need a lot of work (and I didn't quite get the patch split correctly, I meant commit the first bits earlier). I think the approach may be sound though, and is actually not too hard to get right with all the cross checking we have in place. Things to fix: - modeset cross check -

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-12-13 Thread Jesse Barnes
On Fri, 13 Dec 2013 21:47:45 +0100 Daniel Vetter wrote: > On Fri, Dec 13, 2013 at 8:09 PM, Jesse Barnes > wrote: > > On Thu, 12 Dec 2013 23:54:37 +0100 > > Daniel Vetter wrote: > > > >> > @@ -258,8 +357,102 @@ static void intel_fbdev_de

Re: [Intel-gfx] [PATCH 2/6] drm/i915: retrieve current fb config into new plane_config structure at init

2013-12-16 Thread Jesse Barnes
rm_mode_config_reset(dev); > > - intel_modeset_setup_hw_state(dev, false); > > - drm_modeset_unlock_all(dev); > > As mention in the dpio fixup patch I'd like this code block move to be > split out in a small prep patch. Ok will do. Thanks, -- Jesse Barnes, Intel Op

Re: [Intel-gfx] [PATCH 5/6] drm/i915/vlv: move DPIO init earlier v2

2013-12-16 Thread Jesse Barnes
On Sat, 14 Dec 2013 11:47:36 +0100 Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 12:41:56PM -0800, Jesse Barnes wrote: > > It's needed for early mode state readout, which is in turn needed to > > inherit the BIOS config. So split out the reset, which we need on > >

Re: [Intel-gfx] [PATCH 4/6] drm/i915: don't memset the fb buffer if preallocated

2013-12-16 Thread Jesse Barnes
On Sat, 14 Dec 2013 12:28:49 +0100 Daniel Vetter wrote: > On Thu, Dec 12, 2013 at 12:41:55PM -0800, Jesse Barnes wrote: > > We want to preserve the BIOS/bootloader contents for later. > > > > Signed-off-by: Jesse Barnes > > --- > > drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH 6/6] drm/i915: inform drm_fb_helper if we abandoned a connected output

2013-12-16 Thread Jesse Barnes
On Thu, 12 Dec 2013 22:30:41 + Chris Wilson wrote: > On Thu, Dec 12, 2013 at 12:41:57PM -0800, Jesse Barnes wrote: > > Otherwise subsequent fb activity will try to do blank/unblank on outputs > > that were never fully enabled. > > Hmm, actually this highlights a b

Re: [Intel-gfx] [PATCH 1/6] drm/i915: unconditionally copy mode into crtc at boot time

2013-12-16 Thread Jesse Barnes
On Thu, 12 Dec 2013 14:44:33 -0800 Jesse Barnes wrote: > On Thu, 12 Dec 2013 23:39:39 +0100 > Daniel Vetter wrote: > > > On Thu, Dec 12, 2013 at 01:29:39PM -0800, Jesse Barnes wrote: > > > On Thu, 12 Dec 2013 22:21:29 +0100 > > > Daniel Vetter wrote: > >

[Intel-gfx] [PATCH 3/8] drm/i915/vlv: split DPIO init and reset

2013-12-16 Thread Jesse Barnes
We only need to init the reg offset for DPIO once, but we need to reset DPIO at resume time and at init time. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 5/8] drm/i915: retrieve current fb config into new plane_config structure at init v7

2013-12-16 Thread Jesse Barnes
: split out init ordering changes (Daniel) don't fetch config if !CONFIG_FB Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/intel_display.c | 126 +++ drivers/gpu/drm/i915/intel_drv.h | 8 +++ 3

[Intel-gfx] [PATCH 4/8] drm/i915: read out hw state earlier

2013-12-16 Thread Jesse Barnes
We want to do this early on before we try to fetch the plane config, which depends on some of the pipe config state. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 8/8] drm/i915: inform drm_fb_helper if we abandoned a connected output v2

2013-12-16 Thread Jesse Barnes
Otherwise subsequent fb activity will try to do blank/unblank on outputs that were never fully enabled. v2: drop unnecessary enabled[] modifications in failure cases (Chris) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a

[Intel-gfx] [PATCH 7/8] drm/i915: don't memset the fb buffer if preallocated

2013-12-16 Thread Jesse Barnes
We want to preserve the BIOS/bootloader contents for later. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index db75f22..53675d2

[Intel-gfx] [PATCH 2/8] drm/i915/vlv: add early DPIO init v3

2013-12-16 Thread Jesse Barnes
Just add an early init since we may need to access DPIO regs early on. The init call in modeset_init_hw is also needed for the resume case, when we need to reset DPIO to keep things happy. v2: split reset and reg init v3: split patches (Daniel) Signed-off-by: Jesse Barnes --- drivers/gpu/drm

[Intel-gfx] [PATCH 1/8] drm/i915: unconditionally copy mode into crtc at boot time

2013-12-16 Thread Jesse Barnes
The BIOS code will need this to properly inherit the mode. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index af3717a..1ae3d44

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

2013-12-16 Thread Jesse Barnes
esse) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 4 +- drivers/gpu/drm/i915/intel_drv.h | 4 +- drivers/gpu/drm/i915/intel_fbdev.c | 235 --- 3 files changed, 224 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/

Re: [Intel-gfx] S3 resume and commit 24576d23976746cb52e7700c4cadbf4bc1bc3472

2013-12-17 Thread Jesse Barnes
roken state? > > Please file a bug report on bugs.freedesktop.org against DRI -> > DRM(Intel). Also please always cc relevant mailing lists when > reporting kernel issues. Are you using X with a recent (well not ancient) X driver? Do you have any other console drivers built in,

Re: [Intel-gfx] [PATCH] drm/dp: Clarify automated test constant and add constant for FAUX test pattern

2013-12-17 Thread Jesse Barnes
> > > > Signed-off-by: Todd Previte > > Reviewed-by: Jani Nikula Did this ever go in? -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 2/6] drm/i915: retrieve current fb config into new plane_config structure at init

2013-12-17 Thread Jesse Barnes
On Tue, 17 Dec 2013 09:38:36 +0100 Daniel Vetter wrote: > On Mon, Dec 16, 2013 at 04:01:41PM -0800, Jesse Barnes wrote: > > On Sat, 14 Dec 2013 12:01:47 +0100 > > Daniel Vetter wrote: > > > But I still think the fb lifetime management is a bit broken here and we > &

Re: [Intel-gfx] [PATCH 5/8] drm/i915: retrieve current fb config into new plane_config structure at init v7

2013-12-17 Thread Jesse Barnes
On Tue, 17 Dec 2013 10:03:12 + Chris Wilson wrote: > On Mon, Dec 16, 2013 at 04:34:26PM -0800, Jesse Barnes wrote: > > + if (INTEL_INFO(dev)->gen >= 4) { > > + if (plane_config->tiled) > > + offset = I915_READ(DSPTILEOFF

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-12-17 Thread Jesse Barnes
On Tue, 17 Dec 2013 10:34:39 + Chris Wilson wrote: > On Mon, Dec 16, 2013 at 04:34:27PM -0800, Jesse Barnes wrote: > > @@ -333,7 +535,8 @@ MODULE_LICENSE("GPL and additional rights"); > > void intel_fbdev_output_poll_changed(struct drm_device *dev) > > {

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-12-17 Thread Jesse Barnes
On Tue, 17 Dec 2013 22:17:22 +0100 Daniel Vetter wrote: > On Tue, Dec 17, 2013 at 10:05 PM, Jesse Barnes > wrote: > >> On Mon, Dec 16, 2013 at 04:34:27PM -0800, Jesse Barnes wrote: > >> > @@ -333,7 +535,8 @@ MODULE_LICENSE("GPL and a

Re: [Intel-gfx] [PATCH 6/8] drm/i915: Wrap the preallocated BIOS framebuffer and preserve for KMS fbcon v7

2013-12-17 Thread Jesse Barnes
On Tue, 17 Dec 2013 19:29:00 + Chris Wilson wrote: > On Mon, Dec 16, 2013 at 04:34:27PM -0800, Jesse Barnes wrote: > > int intel_fbdev_init(struct drm_device *dev) > > @@ -268,17 +461,25 @@ int intel_fbdev_init(struct drm_device *dev) > > struct drm_i915_pr

[Intel-gfx] [PATCH 01/10] drm/i915/vlv: add early DPIO init v3

2013-12-17 Thread Jesse Barnes
Just add an early init since we may need to access DPIO regs early on. The init call in modeset_init_hw is also needed for the resume case, when we need to reset DPIO to keep things happy. v2: split reset and reg init v3: split patches (Daniel) Signed-off-by: Jesse Barnes --- drivers/gpu/drm

[Intel-gfx] [PATCH 10/10] convert to using crtc->fb for BIOS fb management

2013-12-17 Thread Jesse Barnes
Along with refcounting changes and breakage. --- drivers/gpu/drm/i915/i915_gem_stolen.c | 2 ++ drivers/gpu/drm/i915/intel_display.c | 39 ++ drivers/gpu/drm/i915/intel_drv.h | 1 - drivers/gpu/drm/i915/intel_fbdev.c | 19 - 4 files cha

[Intel-gfx] [PATCH 09/10] port hotplug status live fix for VLV

2013-12-17 Thread Jesse Barnes
--- drivers/gpu/drm/i915/i915_reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index 2d20390..f91cb12 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -2119,9 +2119,9

[Intel-gfx] [PATCH 05/10] drm/i915: retrieve current fb config into new plane_config structure at init v8

2013-12-17 Thread Jesse Barnes
: split out init ordering changes (Daniel) don't fetch config if !CONFIG_FB v8: use proper height in get_plane_config (Chris) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h | 3 + drivers/gpu/drm/i915/intel_display.c | 130 +++ driver

[Intel-gfx] [PATCH 04/10] drm/i915: split aligned height calculation out

2013-12-17 Thread Jesse Barnes
For use by get_plane_config. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 0b8a058a..367d64d 100644

[Intel-gfx] [PATCH 02/10] drm/i915/vlv: split DPIO init and reset

2013-12-17 Thread Jesse Barnes
We only need to init the reg offset for DPIO once, but we need to reset DPIO at resume time and at init time. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 03/10] drm/i915: read out hw state earlier

2013-12-17 Thread Jesse Barnes
We want to do this early on before we try to fetch the plane config, which depends on some of the pipe config state. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 06/10] drm/i915: alloc intel_fb in the intel_fbdev struct

2013-12-17 Thread Jesse Barnes
Allocate this struct instead, so we can re-use another allocated elsewhere if needed. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 4 ++-- drivers/gpu/drm/i915/intel_drv.h | 2 +- drivers/gpu/drm/i915/intel_fbdev.c | 27 +++ 3 files

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

2013-12-17 Thread Jesse Barnes
buffer if preallocated (Chris) alloc ifbdev up front and pass to init_bios (Chris) check for bad ifbdev in restore_mode too (Chris) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_drv.h | 1 + drivers/gpu/drm/i915/intel_fbdev.c | 111 ++--- 2 file

[Intel-gfx] [PATCH 07/10] drm/i915: allow re-use BIOS connector config for initial fbdev config

2013-12-17 Thread Jesse Barnes
. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_fbdev.c | 91 ++ 1 file changed, 91 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_fbdev.c b/drivers/gpu/drm/i915/intel_fbdev.c index ee4b3c1..9e7f6d1 100644 --- a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 05/10] drm/i915: retrieve current fb config into new plane_config structure at init v8

2013-12-18 Thread Jesse Barnes
even knew that when I was writing it... will fix. -- Jesse Barnes, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 1/6] drm/i915: init the DP panel power seq variables earlier

2013-12-19 Thread Jesse Barnes
fbe0a188 > Author: Paulo Zanoni > Date: Wed Jun 12 17:27:24 2013 -0300 > drm/i915: extract intel_edp_init_connector > > v2: - Rewrite commit message. > > Reviewed-by: Jesse Barnes > Signed-off-by: Paulo Zanoni > --- > drivers/gpu/drm/i915/in

Re: [Intel-gfx] [PATCH 2/6] drm/i915: save some time when waiting the eDP timings

2013-12-19 Thread Jesse Barnes
diff --git a/drivers/gpu/drm/i915/intel_drv.h > b/drivers/gpu/drm/i915/intel_drv.h > index 46aea6c..92de688 100644 > --- a/drivers/gpu/drm/i915/intel_drv.h > +++ b/drivers/gpu/drm/i915/intel_drv.h > @@ -485,6 +485,9 @@ struct intel_dp { > int backlight_off_delay; > struct delayed_work panel_vdd_work; > bool want_panel_vdd; > + unsigned long last_power_cycle; > + unsigned long last_power_on; > + unsigned long last_backlight_off; > bool psr_setup_done; > struct intel_connector *attached_connector; > }; We could bikeshed the name all day, but this looks like a great improvement. Reviewed-by: Jesse Barnes ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 3/6] drm/i915: reset eDP timestamps on resume

2013-12-19 Thread Jesse Barnes
On Thu, 19 Dec 2013 14:29:41 -0200 Paulo Zanoni wrote: > + * Reset everything, otherwise when suspend/resume gets very fast, we > + * delay the resume based on the values that were set when we were still > + * suspending. > + */ > + intel_dp->last_power_on = tmp_jiffies -

Re: [Intel-gfx] [PATCH 4/6] drm/i915: remove a column of zeros from the eDP wait definitions

2013-12-19 Thread Jesse Barnes
CE_STATE_MASK) > +#define IDLE_CYCLE_VALUE (0 | PP_SEQUENCE_NONE | 0 > | PP_SEQUENCE_STATE_OFF_IDLE) > > static void ironlake_wait_panel_status(struct intel_dp *intel_dp, > u32 mask, Reviewed-by: Jesse Barnes ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [PATCH 5/6] drm/i915: don't wait for power cycle when waiting for power off

2013-12-19 Thread Jesse Barnes
_OFF_VALUE (0 | PP_SEQUENCE_NONE | 0 > | 0) > > #define IDLE_CYCLE_MASK (PP_ON | PP_SEQUENCE_MASK | > PP_CYCLE_DELAY_ACTIVE | PP_SEQUENCE_STATE_MASK) > #define IDLE_CYCLE_VALUE (0 | PP_SEQUENCE_NONE | 0 >

Re: [Intel-gfx] [PATCH 6/6] drm/i915: set the backlight panel delays registers to 1

2013-12-19 Thread Jesse Barnes
NEL_POWER_UP_DELAY_SHIFT) | > - (seq->t8 << PANEL_LIGHT_ON_DELAY_SHIFT); > - pp_off = (seq->t9 << PANEL_LIGHT_OFF_DELAY_SHIFT) | > + (1 << PANEL_LIGHT_ON_DELAY_SHIFT); > + pp_off = (1 << PANEL_LIGHT_OF

Re: [Intel-gfx] [PATCH 02/19] drm/i915: get/put runtime PM without holding rps.hw_lock

2013-12-19 Thread Jesse Barnes
On Thu, 19 Dec 2013 11:54:52 -0200 Paulo Zanoni wrote: > From: Paulo Zanoni > > We'll need this when we merge PC8 and Runtime PM: the PC8 > enable/disable functions need that lock. > > Also, it's good practice to not hold a lock for longer than strictly > needed. > > Signed-off-by: Paulo Zano

Re: [Intel-gfx] [PATCH 5/6] drm/i915: don't wait for power cycle when waiting for power off

2013-12-19 Thread Jesse Barnes
On Thu, 19 Dec 2013 09:38:45 -0800 Jesse Barnes wrote: > On Thu, 19 Dec 2013 14:29:43 -0200 > Paulo Zanoni wrote: > > > From: Paulo Zanoni > > > > Function ironlake_wait_panel_off should just wait for the power off > > delay, while function ironlake_wait_

[Intel-gfx] [PATCH] drm/i915: fix fastboot pfit disable hack to update pipe w/h

2013-12-19 Thread Jesse Barnes
sible in the new mode. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 4d1357a..7e46d75 100644 --- a/drivers/gpu/drm/i915/intel_disp

[Intel-gfx] [PATCH] drm/i915: use crtc_htotal when calculating ilk watermarks

2013-12-20 Thread Jesse Barnes
uthor: Jesse Barnes Date: Wed Nov 27 11:10:26 2013 -0800 drm/i915: use crtc_htotal in watermark calculations to match fastboot v2 It's needed for ILK+ platforms to fastboot without crashing on a divide by 0 after a DPMS on action. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH] drm/i915: fix fastboot pfit disable hack to update pipe w/h

2014-01-06 Thread Jesse Barnes
On Thu, 19 Dec 2013 10:48:01 -0800 Jesse Barnes wrote: > When fastbooting, we read out the pipe timings early on, and then in a > panel fitted config, disable the fitter later. But we weren't updating > the pipe src h/w, which meant the mouse cursor was clipped to the > pfitted

[Intel-gfx] [PATCH] drm/i915/bdw: don't try to check IPS state on BDW

2014-01-06 Thread Jesse Barnes
According to Art, we don't have a way to read back the state reliably at runtime, at least not without risking disabling it again. So drop the readout and checking on BDW. References: https://bugs.freedesktop.org/show_bug.cgi?id=71906 Signed-off-by: Jesse Barnes --- drivers/gpu/drm

Re: [Intel-gfx] [PATCH] drm/i915: fix fastboot pfit disable hack to update pipe w/h

2014-01-07 Thread Jesse Barnes
On Tue, 7 Jan 2014 08:07:13 +0100 Daniel Vetter wrote: > On Tue, Jan 7, 2014 at 12:31 AM, Jesse Barnes > wrote: > > On Thu, 19 Dec 2013 10:48:01 -0800 > > Jesse Barnes wrote: > > > >> When fastbooting, we read out the pipe timings early on, and then in a >

Re: [Intel-gfx] [PATCH] drm/i915: fix fastboot pfit disable hack to update pipe w/h

2014-01-07 Thread Jesse Barnes
On Tue, 7 Jan 2014 08:07:13 +0100 Daniel Vetter wrote: > On Tue, Jan 7, 2014 at 12:31 AM, Jesse Barnes > wrote: > > On Thu, 19 Dec 2013 10:48:01 -0800 > > Jesse Barnes wrote: > > > >> When fastbooting, we read out the pipe timings early on, and then in a >

[Intel-gfx] [PATCH] drm/i915/bdw: don't try to check IPS state on BDW v2

2014-01-07 Thread Jesse Barnes
ranch in disable (Paulo) always report IPS as enabled on BDW (Paulo) References: https://bugs.freedesktop.org/show_bug.cgi?id=71906 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_debugfs.c | 2 +- drivers/gpu/drm/i915/intel_display.c | 19 +++ 2 files change

Re: [Intel-gfx] [PATCH] drm/i915/bdw: don't try to check IPS state on BDW

2014-01-07 Thread Jesse Barnes
On Tue, 7 Jan 2014 17:49:05 -0200 Paulo Zanoni wrote: > 2014/1/6 Jesse Barnes : > > According to Art, we don't have a way to read back the state reliably at > > runtime, at least not without risking disabling it again. So drop the > > readout and checking on BDW. &

[Intel-gfx] [PATCH] drm/i915: check modeset state after a pipe_set_base if using fastboot

2014-01-07 Thread Jesse Barnes
Otherwise we won't check the state until the next DPMS transition, which may never happen. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm

[Intel-gfx] [PATCH] drm/i915: fastboot support for HSW and BDW

2014-01-08 Thread Jesse Barnes
No idea if this is correct or not, all the WRPLL programming is new to me. Paulo, can you take a look? At least it doesn't complain on my BDW here... Thanks, Jesse --- drivers/gpu/drm/i915/i915_reg.h | 6 drivers/gpu/drm/i915/intel_ddi.c | 2 +- drivers/gpu/drm/i915/intel_displa

<    2   3   4   5   6   7   8   9   10   11   >