Re: [Intel-gfx] [PATCH 00/24] MacBook Air patch sequence (v2)

2011-09-29 Thread Greg KH
On Thu, Sep 29, 2011 at 06:09:32PM -0700, Keith Packard wrote: > Ok, so I've split all of the changes into bite-sized pieces so that > they should make sense individually now. I've also added the same > asynchronous power control to the panel power, this reduces the > module load time down to about

[Intel-gfx] [PATCH 10/21] drm/i915: Wrap DP EDID fetch functions to enable eDP panel power

2011-09-29 Thread Keith Packard
Talking to the eDP DDC channel requires that the panel be powered up. Wrap both the EDID and modes fetch code with calls to turn the vdd power on and back off. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 31 --- 1 files changed, 28 insertions(

[Intel-gfx] [PATCH 18/21] drm/i915: Disable eDP VDD in a delayed work proc instead of synchronously

2011-09-29 Thread Keith Packard
There's no good reason to turn off the eDP force VDD bit synchronously while probing devices; that just sticks a huge delay into all mode setting paths. Instead, queue a delayed work proc to disable the VDD force bit and then remember when that fires to ensure that the appropriate delay is respecte

[Intel-gfx] [PATCH 14/21] drm/i915: Correct eDP panel power sequencing delay computations

2011-09-29 Thread Keith Packard
Store the panel power sequencing delays in the dp private structure, rather than the global device structure. Who knows, maybe we'll get more than one eDP device in the future. Look at both the current hardware register settings and the VBT specified panel power sequencing timings. Use the maximum

[Intel-gfx] [PATCH 20/21] drm/i915: Restrict ILK-specific eDP power hack to ILK

2011-09-29 Thread Keith Packard
This eliminates a fairly long delay when power sequencing newer hardware Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 51 +++ 1 files changed, 30 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu

[Intel-gfx] [PATCH 11/21] drm/i915: Enable eDP panel power during I2C initialization sequence

2011-09-29 Thread Keith Packard
The DP i2c initialization code does a couple of i2c transactions, which means that an eDP panel must be powered up. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b

[Intel-gfx] [PATCH 16/21] drm/i915: edp_panel_on does not need to return a bool

2011-09-29 Thread Keith Packard
The return value was unused, so just stop doing that. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 02b5162..56146a2 100644 ---

[Intel-gfx] [PATCH 12/21] drm/i915: Ensure eDP powered up during DP_SET_POWER operation in dp_prepare

2011-09-29 Thread Keith Packard
Any call to intel_dp_sink_dpms must ensure that the panel has power so that the DP_SET_POWER operation will be correctly received. The only one missing this was in intel_dp_prepare. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c |2 ++ 1 files changed, 2 insertions(+), 0 de

[Intel-gfx] [PATCH 09/21] drm/i915: Delay DP i2c initialization until panel power timings are computed

2011-09-29 Thread Keith Packard
On eDP, DDC requires panel power, but turning that on uses the panel power sequencing timing values fetch from the DPCD data. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp

[Intel-gfx] [PATCH 08/21] drm/i915: Turn force VDD back off when panel running in intel_dp_dpms

2011-09-29 Thread Keith Packard
The VDD force bit is turned on before touching the panel, but if it was enabled, there was no call to turn it back off. Add a call. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 13/21] drm/i915: Place long delays after each eDP VDD operation

2011-09-29 Thread Keith Packard
This ensures that the panel power sequencing is complete before attempting to communicate over the aux channel. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/

[Intel-gfx] [PATCH 07/21] drm/i915: Check for eDP inside intel_edp_panel_vdd_on/off

2011-09-29 Thread Keith Packard
Cleans up code dealing with eDP VDD a bit. Remove redundant checks in callers Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/int

[Intel-gfx] [PATCH 21/21] drm/i915: No need to wait for eDP power off delay if panel is on

2011-09-29 Thread Keith Packard
If the panel is powered up, there's no need to delay for the 'off' interval when turning the panel on. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/d

[Intel-gfx] [PATCH 19/21] drm/i915: Asynchronous eDP panel power off

2011-09-29 Thread Keith Packard
Using the same basic plan as the VDD force delayed power off, make turning the panel power off asynchronous. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 71 +-- 1 files changed, 53 insertions(+), 18 deletions(-) diff --git a/drivers/g

[Intel-gfx] [PATCH 17/21] drm/i915: Create helper functions to determine eDP power state

2011-09-29 Thread Keith Packard
We need to check eDP VDD force and panel on in several places, so create some simple helper functions to avoid duplicating code. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 39 ++- 1 files changed, 26 insertions(+), 13 deletions(-) di

[Intel-gfx] [PATCH 15/21] drm/i915: Move eDP panel fixed mode from dev_priv to intel_dp

2011-09-29 Thread Keith Packard
This value doesn't come directly from the VBT, and so is rather specific to the particular DP output. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_drv.h |1 - drivers/gpu/drm/i915/intel_dp.c | 35 --- 2 files changed, 16 insertions(+), 20 delet

[Intel-gfx] [PATCH 06/21] drm/i915: Unlock PCH_PP_CONTROL always

2011-09-29 Thread Keith Packard
Avoid any question about locked registers by just writing the unlock pattern with every write to the register. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_reg.h |1 + drivers/gpu/drm/i915/intel_dp.c | 14 +- 2 files changed, 14 insertions(+), 1 deletions(-) diff

[Intel-gfx] [PATCH 05/21] drm/i915: Check eDP power when doing aux channel communications

2011-09-29 Thread Keith Packard
Verify that the eDP VDD is on, either with the panel being on or with the VDD force-on bit being set. This demonstrates that in many instances, VDD is not on when needed, which leads to failed EDID communications. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 22 +

[Intel-gfx] [PATCH 02/21] drm/i915: Shut down PCH interrupts during irq_uninstall

2011-09-29 Thread Keith Packard
This masks out all interrupts and ack's any pending ones at IRQ uninstall time to make sure we don't receive any unexpected interrupts later on. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_irq.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gp

[Intel-gfx] [PATCH 03/21] drm/i915: Remove extra 300ms delay during eDP mode setting

2011-09-29 Thread Keith Packard
There's no reason to enforce a 300ms delay during eDP mode setting. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index 44fef5e..f0c

[Intel-gfx] [PATCH 01/21] drm/i915: Enable digital port hotplug on PCH systems

2011-09-29 Thread Keith Packard
We were relying on the BIOS to set these bits, which doesn't always happen. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/i915_irq.c | 24 drivers/gpu/drm/i915/i915_reg.h |5 - 2 files changed, 28 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/

[Intel-gfx] [PATCH 04/21] drm/i915: Only use VBT panel mode on eDP if no EDID is found

2011-09-29 Thread Keith Packard
We're going to assume that EDID is more reliable than the VBT tables for eDP panels, which is notably true on MacBook machines where the VBT contains completely bogus data. Signed-off-by: Keith Packard --- drivers/gpu/drm/i915/intel_dp.c | 20 ++-- 1 files changed, 10 insertion

[Intel-gfx] [PATCH 00/24] MacBook Air patch sequence (v2)

2011-09-29 Thread Keith Packard
Ok, so I've split all of the changes into bite-sized pieces so that they should make sense individually now. I've also added the same asynchronous power control to the panel power, this reduces the module load time down to about 700ms on my MacBook Air, which is pretty nice. Given the length of th

Re: [Intel-gfx] Memory corruption on hibernate/thaw with KMS

2011-09-29 Thread Bojan Smojver
On Tue, 2011-09-27 at 16:12 +1000, Bojan Smojver wrote: > Does anyone have any idea what's causing this? Or better, how to fix > it? I can confirm that as of kernel 3.1.0-rc7 this is still a problem. Anyone? -- Bojan ___ Intel-gfx mailing list Intel-g

Re: [Intel-gfx] Performance regression using Firefox between 2.14 and 2.15

2011-09-29 Thread Clemens Eisserer
Hi, > We think we've fixed all the related bugs in the kernel, so you can try > flipping the switch and see what happens. Manuelle re-enabling relaxedfencing brings speed back to normal, quite a few pages that scrolled slow in firefox are now as snappy as before 2.15 :) > However, I think your s

Re: [Intel-gfx] Performance regression using Firefox between 2.14 and 2.15

2011-09-29 Thread Chris Wilson
On Thu, 29 Sep 2011 16:42:39 +0200, Clemens Eisserer wrote: > I was able to bisect the performance regression, the commit which > introduced it was: > > commit 686018f283f1d131073ef5917213e6a8ac013f26 > Author: Chris Wilson > Date: Tue Apr 12 08:23:04 2011 +0100 > > Turn relaxed-fencing

Re: [Intel-gfx] Performance regression using Firefox between 2.14 and 2.15

2011-09-29 Thread Daniel Vetter
On Thu, Sep 29, 2011 at 04:42:39PM +0200, Clemens Eisserer wrote: > I was able to bisect the performance regression, the commit which > introduced it was: > > commit 686018f283f1d131073ef5917213e6a8ac013f26 > Author: Chris Wilson > Date: Tue Apr 12 08:23:04 2011 +0100 > > Turn relaxed-fenc

Re: [Intel-gfx] Performance regression using Firefox between 2.14 and 2.15

2011-09-29 Thread Clemens Eisserer
I was able to bisect the performance regression, the commit which introduced it was: commit 686018f283f1d131073ef5917213e6a8ac013f26 Author: Chris Wilson Date: Tue Apr 12 08:23:04 2011 +0100 Turn relaxed-fencing off by default for older (pre-G33) chipset Are there plans to re-enable relax

[Intel-gfx] Performance regression using Firefox between 2.14 and 2.15

2011-09-29 Thread Clemens Eisserer
Hi, For quite some time now I experience slow scrolling on some pages when using FireFox, now I took the time to find the culprit. The slow scrolling only manifests when maximizing FireFox' window (screen size is 1920x1280), and manifests in "after-scrolling" (scrolling although mouse already stop