Re: [Intel-gfx] [PATCH] drm/i915/vlv: Add VLV specific force wake routines.

2013-11-22 Thread S, Deepak
Thanks Jesse. We will re-run and compare the power numbers. -Original Message- From: Jesse Barnes [mailto:jbar...@virtuousgeek.org] Sent: Saturday, November 23, 2013 2:43 AM To: S, Deepak Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] [PATCH] drm/i915/vlv: Add VLV

[Intel-gfx] [PATCH] drm/i915: Retry reading DPCD when bogus values are read

2013-11-22 Thread Takashi Iwai
I got kernel WARNINGs frequently on Haswell laptops complaining about invalid max DP link bw. With drm.debug=0x0e, it turned out that the obtained DPCD is utterly bogus when it happens: [drm:intel_dp_get_dpcd], DPCD: 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d 4d This seems happening

Re: [Intel-gfx] [PATCH] drm/i915: setup workarounds on reset

2013-11-22 Thread Paulo Zanoni
Hi 2013/11/20 Mika Kuoppala mika.kuopp...@linux.intel.com: Daniel Vetter dan...@ffwll.ch writes: Hi Daniel, On Mon, Nov 18, 2013 at 04:34:44PM +0200, Mika Kuoppala wrote: Large parts of hw initialization is behind per gen clock gating functions. Including workarounds. Call

Re: [Intel-gfx] [PATCH] i915, debugfs: Fix uninitialized warning

2013-11-22 Thread Ville Syrjälä
On Thu, Nov 21, 2013 at 05:25:35PM +0100, Borislav Petkov wrote: On Thu, Nov 21, 2013 at 05:10:30PM +0100, Richard Weinberger wrote: diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 6ed45a984230..1191aa47adc9 100644 ---

Re: [Intel-gfx] [PATCH 8/9] drm/i915: Hook up dirtyfb ioctl for FBC nuke

2013-11-22 Thread Ville Syrjälä
On Thu, Nov 21, 2013 at 11:18:02PM +, Chris Wilson wrote: On Thu, Nov 21, 2013 at 09:29:52PM +0200, ville.syrj...@linux.intel.com wrote: From: Ville Syrjälä ville.syrj...@linux.intel.com FBC host modification tracking only works through GTT mmaps, so any direct CPU access needs to

Re: [Intel-gfx] [PATCH v2 4/8] drm/i915: use IS_HASWELL/BROADWELL instead of HAS_POWER_WELL

2013-11-22 Thread Paulo Zanoni
2013/11/14 Imre Deak imre.d...@intel.com: In intel_display_capture_error_state we use HAS_POWER_WELL to check if we are running on Haswell/Broadwell when accessing HSW_PWR_WELL_DRIVER which is specific to these platforms. Future platforms with power wells don't have this register, so

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915: support for multiple power wells

2013-11-22 Thread Paulo Zanoni
2013/11/14 Imre Deak imre.d...@intel.com: HW generations so far had only one always-on power well and optionally one dynamic power well. Upcoming HW gens may have multiple dynamic power wells, so add some infrastructure to support them. The idea is to keep the existing power domain API used

Re: [Intel-gfx] [PATCH v2 3/8] drm/i915: add always-on power wells instead of special casing them

2013-11-22 Thread Paulo Zanoni
2013/11/14 Imre Deak imre.d...@intel.com: Instead of using a separate function to check whether a power domain is is always on, add an always-on power well covering all these power domains and do the usual get/put on these unconditionally. Since we don't assign a .set handler for these the

Re: [Intel-gfx] [PATCH v2 3/8] drm/i915: add always-on power wells instead of special casing them

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 02:04:02PM -0200, Paulo Zanoni wrote: 2013/11/14 Imre Deak imre.d...@intel.com: Instead of using a separate function to check whether a power domain is is always on, add an always-on power well covering all these power domains and do the usual get/put on these

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Daniel Vetter
On Fri, Nov 22, 2013 at 12:01 PM, Keith Packard kei...@keithp.com wrote: Daniel Vetter dan...@ffwll.ch writes: Hm, where do we have the canonical source for all these fourcc codes? I'm asking since we have our own copy in the kernel as drm_fourcc.h, and that one is part of the userspace ABI

Re: [Intel-gfx] [PATCH v2 7/8] drm/i915: add a default always-on power well

2013-11-22 Thread Paulo Zanoni
2013/11/14 Imre Deak imre.d...@intel.com: So far we distinguished platforms without a dynamic power well with the HAS_POWER_WELL macro and for such platforms we didn't call any power domain functions. Instead of doing this check we can add an always-on power well for these platforms and call

Re: [Intel-gfx] [PATCH v2 8/8] drm/i915: add a debugfs entry for power domain info

2013-11-22 Thread Paulo Zanoni
2013/11/14 Imre Deak imre.d...@intel.com: Add a debugfs entry showing the use-count for all power domains of each power well. Signed-off-by: Imre Deak imre.d...@intel.com --- drivers/gpu/drm/i915/i915_debugfs.c | 69 + drivers/gpu/drm/i915/i915_drv.h

[Intel-gfx] [PATCH 1/2] intel_dump_decode: Actually parse the -d option

2013-11-22 Thread Damien Lespiau
Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- tools/intel_dump_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/intel_dump_decode.c b/tools/intel_dump_decode.c index a3cd2e5..959ec87 100644 --- a/tools/intel_dump_decode.c +++

[Intel-gfx] [PATCH 2/2] intel_dump_decode: Support the INTEL_DEVID_OVERRIDE env variable

2013-11-22 Thread Damien Lespiau
This is the one that already works in libdrm, so don't disappoint people coming with expectations. Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- tools/intel_dump_decode.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/intel_dump_decode.c

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 05:17:37PM +0100, Daniel Vetter wrote: On Fri, Nov 22, 2013 at 12:01 PM, Keith Packard kei...@keithp.com wrote: Daniel Vetter dan...@ffwll.ch writes: Hm, where do we have the canonical source for all these fourcc codes? I'm asking since we have our own copy in the

Re: [Intel-gfx] [PATCH] drm/i915: Prefer setting PTE cache age to 3

2013-11-22 Thread Jesse Barnes
On Fri, 22 Nov 2013 10:37:53 + Chris Wilson ch...@chris-wilson.co.uk wrote: We have conflicting benchmark data that suggest either age 0 or age 3 is better. However, the earlier benchmark on which we based the switch to age 0 (commit 0d8ff15e9a15f2b393e53337a107b7a1e5919b6d Author: Ben

[Intel-gfx] Fix gen8 rendercopy instruction lengths

2013-11-22 Thread Damien Lespiau
Kayden noticed a few of those were wrong. It's clearly time to fix them! -- Damien ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

[Intel-gfx] [PATCH 2/4] rendercopy/bdw: Fix the various 3DSTATE_CONSTANT_* instruction length

2013-11-22 Thread Damien Lespiau
Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- lib/rendercopy_gen8.c | 48 +++- 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 723f4ef..8bcf2bb 100644 ---

[Intel-gfx] [PATCH 1/4] rendercopy/bdw: Fix the STATE_SIP instruction length

2013-11-22 Thread Damien Lespiau
Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- lib/rendercopy_gen8.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 660ff03..723f4ef 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -470,8

[Intel-gfx] [PATCH 3/4] rendercopy/bdw: Fix the 3DSTATE_HIER_DEPTH_BUFFER instruction length

2013-11-22 Thread Damien Lespiau
Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- lib/rendercopy_gen8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 8bcf2bb..0eeb179 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -783,7

[Intel-gfx] [PATCH 4/4] rendercopy/bdw: Fix the 3DSTATE_STENCIL_BUFFER instruction length

2013-11-22 Thread Damien Lespiau
Signed-off-by: Damien Lespiau damien.lesp...@intel.com --- lib/rendercopy_gen8.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c index 0eeb179..8d7d88b 100644 --- a/lib/rendercopy_gen8.c +++ b/lib/rendercopy_gen8.c @@ -789,7

Re: [Intel-gfx] [PATCH] drm/i915: Prefer setting PTE cache age to 3

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 09:53:23AM -0800, Jesse Barnes wrote: On Fri, 22 Nov 2013 10:37:53 + Chris Wilson ch...@chris-wilson.co.uk wrote: We have conflicting benchmark data that suggest either age 0 or age 3 is better. However, the earlier benchmark on which we based the switch to

Re: [Intel-gfx] [PATCH] drm/i915: Prefer setting PTE cache age to 3

2013-11-22 Thread Eric Anholt
Chris Wilson ch...@chris-wilson.co.uk writes: We have conflicting benchmark data that suggest either age 0 or age 3 is better. However, the earlier benchmark on which we based the switch to age 0 (commit 0d8ff15e9a15f2b393e53337a107b7a1e5919b6d Author: Ben Widawsky

Re: [Intel-gfx] [PATCH v2 4/8] drm/i915: use IS_HASWELL/BROADWELL instead of HAS_POWER_WELL

2013-11-22 Thread Imre Deak
On Fri, 2013-11-22 at 13:41 -0200, Paulo Zanoni wrote: 2013/11/14 Imre Deak imre.d...@intel.com: In intel_display_capture_error_state we use HAS_POWER_WELL to check if we are running on Haswell/Broadwell when accessing HSW_PWR_WELL_DRIVER which is specific to these platforms. Future

Re: [Intel-gfx] [PATCH v2 6/8] drm/i915: don't do BDW/HSW specific powerdomains init on other platforms

2013-11-22 Thread Imre Deak
On Fri, 2013-11-22 at 14:09 -0200, Paulo Zanoni wrote: 2013/11/14 Imre Deak imre.d...@intel.com: Signed-off-by: Imre Deak imre.d...@intel.com Since I assume all power wells will require some kind of register-checking and hardware-touching at the init paths, shouldn't we add

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915: support for multiple power wells

2013-11-22 Thread Paulo Zanoni
2013/11/22 Imre Deak imre.d...@intel.com: On Fri, 2013-11-22 at 13:53 -0200, Paulo Zanoni wrote: 2013/11/14 Imre Deak imre.d...@intel.com: HW generations so far had only one always-on power well and optionally one dynamic power well. Upcoming HW gens may have multiple dynamic power wells,

Re: [Intel-gfx] [PATCH v2 8/8] drm/i915: add a debugfs entry for power domain info

2013-11-22 Thread Imre Deak
On Fri, 2013-11-22 at 15:32 -0200, Paulo Zanoni wrote: 2013/11/14 Imre Deak imre.d...@intel.com: Add a debugfs entry showing the use-count for all power domains of each power well. Signed-off-by: Imre Deak imre.d...@intel.com --- drivers/gpu/drm/i915/i915_debugfs.c | 69

Re: [Intel-gfx] [PATCH] drm/i915: Fix module unloading with DRM_I915_UMS=n

2013-11-22 Thread Paulo Zanoni
2013/11/15 Daniel Vetter daniel.vet...@ffwll.ch: Oops, makes testing early boot failures in i915.ko a bit more pain, so let's fix it. v2: We already have a bit of static storage to track this (Chris). Cc: Chris Wilson ch...@chris-wilson.co.uk Signed-off-by: Daniel Vetter

[Intel-gfx] [PATCH] drm/i915: Drop forcewake w/a for missed interrupts/seqno on Sandybridge

2013-11-22 Thread Chris Wilson
I believe, and an evening of i-g-t, that our original workaround for the missed interrupts on Sandybridge, that of holding forcewake whilst we wait for an interrupts, is no longer required. This leaves us dependent on the second workaround of forcing an UC read of the ACTHD before reading back the

Re: [Intel-gfx] [PATCH] drm/i915: Drop forcewake w/a for missed interrupts/seqno on Sandybridge

2013-11-22 Thread Jesse Barnes
On Fri, 22 Nov 2013 20:35:24 + Chris Wilson ch...@chris-wilson.co.uk wrote: I believe, and an evening of i-g-t, that our original workaround for the missed interrupts on Sandybridge, that of holding forcewake whilst we wait for an interrupts, is no longer required. This leaves us dependent

Re: [Intel-gfx] [PATCH] drm/i915/vlv: Add VLV specific force wake routines.

2013-11-22 Thread Jesse Barnes
Also, you might re-run your power numbers with Chris's patch to drop the force wake ref around the irq get/put. That's the only one we normally take at runtime, so getting rid of it should give you even greater power savings in conjunction with the RC6 timeout update patch I already pushed.

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

2013-11-22 Thread Jesse Barnes
On Wed, 20 Nov 2013 15:10:39 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: + case DISPPLANE_8BPP: + return DRM_FORMAT_C8; + case DISPPLANE_BGRX555: + return DRM_FORMAT_ARGB1555; ^ X Oops fixed, thanks. These formats

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Kristian Høgsberg
On Fri, Nov 22, 2013 at 05:17:37PM +0100, Daniel Vetter wrote: On Fri, Nov 22, 2013 at 12:01 PM, Keith Packard kei...@keithp.com wrote: Daniel Vetter dan...@ffwll.ch writes: Hm, where do we have the canonical source for all these fourcc codes? I'm asking since we have our own copy in the

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 02:12:13PM -0800, Kristian Høgsberg wrote: On Fri, Nov 22, 2013 at 05:17:37PM +0100, Daniel Vetter wrote: On Fri, Nov 22, 2013 at 12:01 PM, Keith Packard kei...@keithp.com wrote: Daniel Vetter dan...@ffwll.ch writes: Hm, where do we have the canonical source for

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

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 01:55:35PM -0800, Jesse Barnes wrote: On Wed, 20 Nov 2013 15:10:39 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: + case DISPPLANE_8BPP: + return DRM_FORMAT_C8; + case DISPPLANE_BGRX555: + return DRM_FORMAT_ARGB1555;

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

2013-11-22 Thread Jesse Barnes
On Sat, 23 Nov 2013 01:08:17 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Fri, Nov 22, 2013 at 01:55:35PM -0800, Jesse Barnes wrote: On Wed, 20 Nov 2013 15:10:39 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: + case DISPPLANE_8BPP: +

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

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 03:21:08PM -0800, Jesse Barnes wrote: On Sat, 23 Nov 2013 01:08:17 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Fri, Nov 22, 2013 at 01:55:35PM -0800, Jesse Barnes wrote: On Wed, 20 Nov 2013 15:10:39 +0200 Ville Syrjälä

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

2013-11-22 Thread Jesse Barnes
On Sat, 23 Nov 2013 01:26:34 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Fri, Nov 22, 2013 at 03:21:08PM -0800, Jesse Barnes wrote: On Sat, 23 Nov 2013 01:08:17 +0200 Ville Syrjälä ville.syrj...@linux.intel.com wrote: On Fri, Nov 22, 2013 at 01:55:35PM -0800, Jesse

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Keith Packard
Kristian Høgsberg hoegsb...@gmail.com writes: I already explained to Keith why we use different sets of format codes in the DRI interface, but it's always fun to slam other peoples code. As we discussed, my complaint isn't so much about __DRI_IMAGE_FOURCC, but the fact that the __DRIimage

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Keith Packard
Ville Syrjälä ville.syrj...@linux.intel.com writes: What is this format anyway? -ENODOCS Same as MESA_FORMAT_SARGB8 and __DRI_IMAGE_FORMAT_SARGB8 :-) If its just an srgb version of ARGB, then I wouldn't really want it in drm_fourcc.h. I expect colorspacy stuff will be handled by various

Re: [Intel-gfx] [Mesa-dev] [PATCH] dri3, i915, i965: Add __DRI_IMAGE_FOURCC_SARGB8888

2013-11-22 Thread Ville Syrjälä
On Fri, Nov 22, 2013 at 03:43:13PM -0800, Keith Packard wrote: Ville Syrjälä ville.syrj...@linux.intel.com writes: What is this format anyway? -ENODOCS Same as MESA_FORMAT_SARGB8 and __DRI_IMAGE_FORMAT_SARGB8 :-) If its just an srgb version of ARGB, then I wouldn't really want it

[Intel-gfx] [QA] Testing report for `drm-intel-testing` (was: Updated -next) on ww47

2013-11-22 Thread Yang, Guang A
Summary We covered the platform: Baytrail-M, Haswell mobile, HSW desktop, HSW ULT, IvyBridge, SandyBridge, IronLake. In this circle, 3 new bugs are filed, 35 bugs are still opened, no WONTFIX bugs, 1 NOTABUG bugs ,no NOTOURBUG bugs, no Duplicated bugs, 1 REOPENED bugs, 6 bugs are fixed, 9 bugs