[Intel-gfx] [PATCH 01/22] drm/i915: add more VLV IDs

2013-02-02 Thread Jesse Barnes
Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 51e9c76..69d0637 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++

[Intel-gfx] [PATCH 02/22] drm/i915: remove VLV MSI IRQ hack

2013-02-02 Thread Jesse Barnes
Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_irq.c |8 1 file changed, 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 6ba0573..f781ff0 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++

[Intel-gfx] [PATCH 03/22] drm/i915: add UCGCTL4 to display reg check on VLV

2013-02-02 Thread Jesse Barnes
Add a few regs needed for various clock gating init purposes and make sure they don't fall into the display offset range on VLV. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.c |1 + 1 file changed, 1 insertion(+) diff --git

[Intel-gfx] [PATCH 04/22] drm/i915: implement WaGTEnableMiFlush on VLV

2013-02-02 Thread Jesse Barnes
We don't generally use MI_FLUSH these days, but this bit may affect other flushing logic, so set it to be safe. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_ringbuffer.c |3 +++ 1 file changed, 3 insertions(+) diff --git

[Intel-gfx] Updated VLV patchset

2013-02-02 Thread Jesse Barnes
With the new boards, we've been able to test a few more things. This set is still a WIP, but I wanted to get it out for review. I also need to do some additional testing when I get back from FOSDEM, but others with VLV systems can try these out and let me know how it goes. Thanks, Jesse

[Intel-gfx] [PATCH 05/22] drm/i915: enable force wake, disable LLC on VLV

2013-02-02 Thread Jesse Barnes
Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 13b9b4f..b35b479 100644 --- a/drivers/gpu/drm/i915/i915_drv.c +++

[Intel-gfx] [PATCH 06/22] drm/i915: add power context allocation and setup on VLV

2013-02-02 Thread Jesse Barnes
The Gunit has a separate reg for this, so allocate some stolen space for the power context and initialize the reg. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.h|2 ++ drivers/gpu/drm/i915/i915_gem_stolen.c | 41

[Intel-gfx] [PATCH 07/22] drm/i915: new register for IS_DISPLAYREG

2013-02-02 Thread Jesse Barnes
From: Ben Widawsky b...@bwidawsk.net Signed-off-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.c |7 +++ drivers/gpu/drm/i915/i915_reg.h |1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH 08/22] drm/i915: allow force wake on VLV

2013-02-02 Thread Jesse Barnes
There's a separate bit in the Gunit to allow force wake control. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_gem.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index

[Intel-gfx] [PATCH 09/22] drm/i915: more clock gating disables on VLV

2013-02-02 Thread Jesse Barnes
Disable a swath of clock gating bits pending further testing and measurement. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_pm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c

[Intel-gfx] [PATCH 17/22] drm/i915: VLV hack: force DP to report connected

2013-02-02 Thread Jesse Barnes
--- drivers/gpu/drm/i915/intel_dp.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c index f4c8723..f346bab 100644 --- a/drivers/gpu/drm/i915/intel_dp.c +++ b/drivers/gpu/drm/i915/intel_dp.c @@ -2399,6 +2399,10 @@

[Intel-gfx] [PATCH 10/22] drm/i915: don't init LVDS on VLV

2013-02-02 Thread Jesse Barnes
Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_lvds.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 8c61876..feef18c 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++

[Intel-gfx] [PATCH 12/22] drm/i915: Fix VLV hdmi limits

2013-02-02 Thread Jesse Barnes
Fix the correct hdmi limits for VLV A0 Signed-off-by: Vijay Purushothaman vijay.a.purushotha...@intel.com --- drivers/gpu/drm/i915/intel_display.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] [PATCH 22/22] drm/i915: turbo RC6 support for VLV

2013-02-02 Thread Jesse Barnes
Uses slightly different interfaces than other platforms. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_pm.c | 148 +-- 1 file changed, 144 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c

[Intel-gfx] [PATCH 13/22] drm/i915: update DPIO constants for VLV

2013-02-02 Thread Jesse Barnes
Separate bits for HDMI and DP. Signed-off-by: Shobhit Kumar shobhit.ku...@intel.com Signed-off-by: Vijay Purushothaman vijay.a.purushotha...@intel.com --- drivers/gpu/drm/i915/intel_display.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git

[Intel-gfx] [PATCH 15/22] drm/i915: move DPIO init to init and resume, not unload

2013-02-02 Thread Jesse Barnes
The GOP should do this for us once at boot time, but on resume and to defend against the various BIOS versions, we init once at load time and also in the resume path. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/intel_display.c |5 ++--- 1 file changed, 2

[Intel-gfx] [PATCH 14/22] drm/i915: add HMDI workarounds on VLV

2013-02-02 Thread Jesse Barnes
Need to do some extra work at PLL disable time to allow HDMI to come back up on the next mode set. v2: take dpio lock around update - jbarnes only do WA on VLV -jbarnes Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org Signed-off-by: Vijay Purushothaman vijay.a.purushotha...@intel.com

[Intel-gfx] [PATCH 21/22] drm/i915: add media well to VLV force wake routines

2013-02-02 Thread Jesse Barnes
We could split this out into a separate routine at some point as an optimization. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.c |3 +++ drivers/gpu/drm/i915/i915_reg.h |3 +++ drivers/gpu/drm/i915/intel_pm.c |8 +++- 3 files changed, 13

[Intel-gfx] [PATCH 20/22] drm/i915: add Punit read/write routines for VLV

2013-02-02 Thread Jesse Barnes
Slightly different than other platforms. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.h |2 ++ drivers/gpu/drm/i915/i915_reg.h | 22 drivers/gpu/drm/i915/intel_pm.c | 74 +++ 3 files changed, 98

[Intel-gfx] [PATCH 16/22] drm/i915: VLV hack: Disable wm for VLV

2013-02-02 Thread Jesse Barnes
From: Vijay Purushothaman vijay.a.purushotha...@intel.com Pondicherry should take care in most cases. Watermark update is causing driver crash with divide error. Look again. For current usage, not needed. Signed-off-by: Vijay Purushothaman vijay.a.purushotha...@intel.com ---

[Intel-gfx] [PATCH 11/22] drm/i915: fixup port enumeration on VLV

2013-02-02 Thread Jesse Barnes
From: Vijay Purushothaman vijay.a.purushotha...@intel.com Updated to reflect newer boards. Signed-off-by: Vijay Purushothaman vijay.a.purushotha...@intel.com --- drivers/gpu/drm/i915/intel_display.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[Intel-gfx] [PATCH 18/22] drm/i915: add flush control reg to IS_DISPLAYREG check

2013-02-02 Thread Jesse Barnes
With the PTE poking code pulled into i915, we need to make sure we don't add the display offset to our TLB flush writes. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c

[Intel-gfx] [PATCH 19/22] drm/i915: use gen6 stolen check on VLV

2013-02-02 Thread Jesse Barnes
It uses the same bit definitions. Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_gem_gtt.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index eac2cec..3900b98

[Intel-gfx] VT switchless suspend/resume

2013-02-02 Thread Jesse Barnes
Finally got around to updating these patches here at FOSDEM. I made the core PM support for this into a function so multiple drivers can indicate their support and we'll be conservative about doing the switch if no drivers call in or if any driver indicates it can't support VT switchless

[Intel-gfx] [PATCH] PM: make VT switching to the suspend console optional v2

2013-02-02 Thread Jesse Barnes
KMS drivers can potentially restore the display configuration without userspace help. Such drivers can can call a new funciton, pm_vt_switch_required(false) if they support this feature. In that case, the PM layer won't VT switch to the suspend console at suspend time and then back to the

Re: [Intel-gfx] [PATCH 01/22] drm/i915: add more VLV IDs

2013-02-02 Thread Rodrigo Vivi
I was going to review them, but I couldn't find vlv ids at bspec. where is the ids list? On Sat, Feb 2, 2013 at 10:56 AM, Jesse Barnes jbar...@virtuousgeek.org wrote: Signed-off-by: Jesse Barnes jbar...@virtuousgeek.org --- drivers/gpu/drm/i915/i915_drv.c |3 +++ 1 file changed, 3

Re: [Intel-gfx] [PATCH 01/22] drm/i915: add more VLV IDs

2013-02-02 Thread Jesse Barnes
The IDs are off in the VLV doc sites, which are separate and internal only atm. Jesse On Sat, 2 Feb 2013 15:30:59 -0200 Rodrigo Vivi rodrigo.v...@gmail.com wrote: I was going to review them, but I couldn't find vlv ids at bspec. where is the ids list? On Sat, Feb 2, 2013 at 10:56 AM, Jesse

Re: [Intel-gfx] [PATCH] PM: make VT switching to the suspend console optional v2

2013-02-02 Thread Rafael J. Wysocki
On Saturday, February 02, 2013 04:34:08 PM Jesse Barnes wrote: KMS drivers can potentially restore the display configuration without userspace help. Such drivers can can call a new funciton, pm_vt_switch_required(false) if they support this feature. In that case, the PM layer won't VT switch

Re: [Intel-gfx] [PATCH] PM: make VT switching to the suspend console optional v2

2013-02-02 Thread Rafael J. Wysocki
On Saturday, February 02, 2013 08:39:21 PM Rafael J. Wysocki wrote: On Saturday, February 02, 2013 04:34:08 PM Jesse Barnes wrote: KMS drivers can potentially restore the display configuration without userspace help. Such drivers can can call a new funciton, pm_vt_switch_required(false) if

[Intel-gfx] [PATCH 1/2] configure.ac: Do not include `xext` and `xfixes` in `XVMCLIB`

2013-02-02 Thread Paul Menzel
Date: Sat, 2 Feb 2013 11:44:54 +0100 Building the package under Debian Sid/unstable, `dh_shlibdeps` informs that `libIntelXvMC.so.1.0.0` does not need to be linked against `libXext.so.6` or `libXfixes.so.3` [1]. $ debuild -b -us -uc […] make[1]: Entering directory

[Intel-gfx] [PATCH 2/2] configure.ac: Do not include `x11-xcb`, `xcb-dri2` and `xcb-aux` in `XVMCLIB`

2013-02-02 Thread Paul Menzel
Date: Sat, 2 Feb 2013 20:33:36 +0100 Building the package under Debian Sid/unstable, `dh_shlibdeps` informs that `libI810XvMC.so.1.0.0` does not need to be linked against `libX11-xcb.so.1`, `libxcb-dri2.so.0`, `libxcb-util.so.0` or `libxcb.so.1` [1]. $ debuild -b -us -uc […]

[Intel-gfx] [PATCH 00/10] [RFC v2] quick dump

2013-02-02 Thread Ben Widawsky
This is my second attempt at winning approval for the series. First one was: https://patchwork.kernel.org/patch/1493131/ In spending the time to rework this tool, I've begun to lose my belief in some of the original motivations I had. Even if you don't want to review, but just like (or dislike)

[Intel-gfx] [PATCH 01/10] configure.ac: Fix spacing

2013-02-02 Thread Ben Widawsky
Almost all based on vim's config file type. It got it wrong in a few places which were fixed by hand. Signed-off-by: Ben Widawsky b...@bwidawsk.net --- configure.ac | 94 +--- 1 file changed, 46 insertions(+), 48 deletions(-) diff --git

[Intel-gfx] [PATCH 02/10] configure.ac: Add vim magic modeline

2013-02-02 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index b75a9d4..1c56fa4 100644 --- a/configure.ac +++ b/configure.ac @@ -135,3 +135,5 @@ AC_CONFIG_FILES([

[Intel-gfx] [PATCH 03/10] quick_dump: A dump utility different than reg_dumper

2013-02-02 Thread Ben Widawsky
This is the base tool for quick dump. At it's heart, quick dump is simply a basic text parsing thingie which plugs into intel-gpu-tools to do something similar to intel_reg_dumper. The format for the register definition files is very open, so it's just something simple for now. Signed-off-by:

[Intel-gfx] [PATCH 04/10] quick_dump: gen6 support

2013-02-02 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- tools/quick_dump/Makefile.am| 1 + tools/quick_dump/gen6_other.txt | 1 + tools/quick_dump/sandybridge| 1 + 3 files changed, 3 insertions(+) create mode 100644 tools/quick_dump/gen6_other.txt create mode 100644

[Intel-gfx] [PATCH 05/10] quick_dump: gen7 support

2013-02-02 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- tools/quick_dump/Makefile.am| 1 + tools/quick_dump/gen7_other.txt | 1 + tools/quick_dump/ivybridge | 1 + 3 files changed, 3 insertions(+) create mode 100644 tools/quick_dump/gen7_other.txt create mode 100644

[Intel-gfx] [PATCH 06/10] quick_dump: vlv support

2013-02-02 Thread Ben Widawsky
This patch includes a patch from Jesse which removed a bunch of VLV registers which were useless in my original RFC. Cc: Jesse Barnes jbar...@virtuousgeek.org Signed-off-by: Ben Widawsky b...@bwidawsk.net --- tools/quick_dump/Makefile.am | 1 + tools/quick_dump/valleyview | 6 +++

[Intel-gfx] [PATCH 07/10] configure.ac: Add swig dependency

2013-02-02 Thread Ben Widawsky
As far as I can tell (and recommended to me by Matt) taking these m4 extension macros from http://www.gnu.org/software/autoconf-archive/ doesn't require the project distribute GPL. I am a bit confused from reading the license. I'd really hope someone can comment. The only other solution would be

[Intel-gfx] [PATCH 08/10] quick_dump: SWIG chipset interface

2013-02-02 Thread Ben Widawsky
This isn't strictly necessary it would have been easy enough to simply convert intel_chipset.h but this should be nice prep work for directly doing MMIO. It also serves as a nice review point. It's demonstrated with an autodetect function in the script. That autodetect has a hardcoded path that

[Intel-gfx] [PATCH 09/10] quick_dump: Connect libpciaccess and other utils

2013-02-02 Thread Ben Widawsky
Make a register access library with sample to do register reads Signed-off-by: Ben Widawsky b...@bwidawsk.net --- tools/quick_dump/Makefile.am | 14 +- tools/quick_dump/chipset.i | 16 ++-- tools/quick_dump/intel_chipset.c | 7 +++

[Intel-gfx] [PATCH 10/10] quick_dump: Use the register access library

2013-02-02 Thread Ben Widawsky
Signed-off-by: Ben Widawsky b...@bwidawsk.net --- tools/quick_dump/quick_dump.py | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/quick_dump/quick_dump.py b/tools/quick_dump/quick_dump.py index 44aa2ba..5c88ef1 100755 --- a/tools/quick_dump/quick_dump.py +++