Re: [Intel-gfx] [RFC 00/22] Add support for GuC-based SLPC

2016-01-26 Thread Jesse Barnes
On 01/22/2016 09:00 AM, Daniel Vetter wrote: > On Wed, Jan 20, 2016 at 06:26:02PM -0800, tom.orou...@intel.com wrote: >> From: Tom O'Rourke >> >> SLPC (Single Loop Power Controller) is a replacement for >> some host-based power management features. The SLPC >> implemenation runs in firmware on Gu

Re: [Intel-gfx] [RFC 00/22] Add support for GuC-based SLPC

2016-01-26 Thread Jesse Barnes
On 01/26/2016 09:00 AM, Daniel Vetter wrote: > On Tue, Jan 26, 2016 at 07:45:42AM -0800, Jesse Barnes wrote: >> On 01/22/2016 09:00 AM, Daniel Vetter wrote: >>> On Wed, Jan 20, 2016 at 06:26:02PM -0800, tom.orou...@intel.com wrote: >>>> From: Tom O'Rourke

Re: [Intel-gfx] [RFC PATCH 2/3] drm/i915: IOMMU based SVM implementation v16

2017-01-12 Thread Jesse Barnes
On Jan 12, 2017 8:04 AM, "Chris Wilson" wrote: On Thu, Jan 12, 2017 at 05:48:49PM +0200, Mika Kuoppala wrote: > Chris Wilson writes: > > > On Mon, Jan 09, 2017 at 06:52:53PM +0200, Mika Kuoppala wrote: > >> +static int i915_gem_context_enable_svm(struct i915_gem_context *ctx) > >> +{ > >> + int

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add the support of memory self-refresh on Ironlake

2010-04-12 Thread Jesse Barnes
NLAKE(dev)) { > > + I915_WRITE(ILK_DISPLAY_CHICKEN2, > > + (I915_READ(ILK_DISPLAY_CHICKEN2) | > > + ILK_DPARB_GATE | ILK_VSDPFD_FULL)); > > I can only hope this is named "chicken" i

Re: [Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-04-13 Thread Jesse Barnes
t_cpu_power(struct ips_driver *ips, u32 *last, int period) > > +{ > > + u32 val; > > + u32 ret; > > + > > + /* > > +* CEC is in joules/65535. Take difference over time to > > +* get watts. > > +*/ > > + val = thm_readl(THM_

[Intel-gfx] [PATCH] drm/i915: use PIPE_CONTROL instruction on 965+

2010-04-20 Thread Jesse Barnes
...and hang your box even faster. -- Jesse Barnes, Intel Open Source Technology Center diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 790fef3..11c25ab 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -240,11 +240,14

[Intel-gfx] Use PIPE_CONTROL where possible

2010-04-21 Thread Jesse Barnes
Recent hardware supports the PIPE_CONTROL command. It seems to be necessary for stability on Ironlake at least, and should be a performance win on other platforms. This patchset (tested on Ironlake only) adds support for the PIPE_CONTROL command and changes GEM to use it by default. There's a st

[Intel-gfx] [PATCH 1/5] drm/i915: cleanup FBC buffers at unload time

2010-04-21 Thread Jesse Barnes
This keeps the memory manager from complaining when we take it down. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_dma.c | 14 ++ drivers/gpu/drm/i915/i915_drv.h |3 +++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_dma.c

[Intel-gfx] [PATCH 2/5] drm/i915: use PIPE_CONTROL instruction on Ironlake and Sandy Bridge

2010-04-21 Thread Jesse Barnes
, on Ironlake and Sandy Bridge hardware. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h |4 + drivers/gpu/drm/i915/i915_gem.c | 145 +++--- drivers/gpu/drm/i915/i915_irq.c |8 +- drivers/gpu/drm/i915/i915_reg.h | 11 +++ 4 files changed

[Intel-gfx] [PATCH 4/5] drm/i915: use PIPE_CONTROL for GEM domain flushing

2010-04-21 Thread Jesse Barnes
This gives us finer grained cache control, so should be higher performance. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_gem.c | 52 +- 1 files changed, 39 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers

[Intel-gfx] [PATCH 5/5] drm/i915: enable PIPE_CONTROL on all 965 class chips

2010-04-21 Thread Jesse Barnes
Since it's supported on 965 and G4x, enable it there as well. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h |2 +- drivers/gpu/drm/i915/i915_irq.c | 33 ++--- 2 files changed, 27 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 3/5] drm/i915: use PIPE_CONTROL to retire commands

2010-04-21 Thread Jesse Barnes
This allows us to do less cache flushing on 965+ chipsets. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_gem.c | 25 + 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index

[Intel-gfx] [PATCH] drm/i915: avoid unnecessary PIPE_CONTROL flushing on non-Ironlake

2010-04-21 Thread Jesse Barnes
Avoid unnecessary PIPE_CONTROL flushing on non-Ironlake platforms where it shouldn't be needed. Signed-off-by: Jesse Barnes diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index e6a1cc0..56ff905 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gp

[Intel-gfx] [PATCH] drm/i915: remove unnecessary PIPE_CONTROL cache flushing

2010-04-21 Thread Jesse Barnes
Was better safe than sorry, but it appears these bits aren't necessary. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_gem.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 56

[Intel-gfx] [PATCH] drm/i915: fix non-Ironlake 965 class crashes

2010-04-23 Thread Jesse Barnes
e the HAS_PIPE_CONTROL macro in i915_get_gem_seqno, or we'll end up reading the wrong graphics memory, likely causing hangs, crashes, or worse. Reported-by: Zdenek Kabelac Reported-by: Toralf Förster Tested-by: Toralf Förster Signed-off-by: Jesse Barnes diff --git a/drivers/gpu/drm/i915/i9

Re: [Intel-gfx] [PATCH 5/7] drm/i915: use vblank and vsync interrupts on 945

2010-04-27 Thread Jesse Barnes
On Fri, 26 Mar 2010 11:07:19 -0700 Jesse Barnes wrote: > On 945, vblank delivery alone seems unreliable. The PIPE*STAT bits get > set correctly, but interrupts occur at a low frequency relative to > refresh. If we enable VSYNC interrupts as well however (even though we > only chec

Re: [Intel-gfx] [PATCH 0/4] Attempt to re-enable FBC on gen3

2010-04-30 Thread Jesse Barnes
On Thu, 29 Apr 2010 10:23:58 +0200 Tobias Doerffel wrote: > Hi, > > Am Freitag, 23. April 2010, um 17:17:38 schrieb Adam Jackson: > > Disclaimer: I haven't tested this extensively, it just seems > > logical, and I really hate to see us lose FBC on gen3 since that's > > the family being used in l

Re: [Intel-gfx] Framebuffer compression on GM45 disabled with KMS

2010-04-30 Thread Jesse Barnes
On Fri, 30 Apr 2010 13:04:23 +0100 Pedro Ribeiro wrote: > Hi all, > > My Xorg.log shows > > (**) intel(0): Kernel mode setting active, disabling FBC. > (**) intel(0): Framebuffer compression disabled > > Is this normal? I'm trying to lower power consumption for my laptop... > Enabling FBC shou

Re: [Intel-gfx] Framebuffer compression on GM45 disabled with KMS

2010-04-30 Thread Jesse Barnes
On Fri, 30 Apr 2010 13:04:23 +0100 Pedro Ribeiro wrote: > Hi all, > > My Xorg.log shows > > (**) intel(0): Kernel mode setting active, disabling FBC. > (**) intel(0): Framebuffer compression disabled > > Is this normal? I'm trying to lower power consumption for my laptop... > Enabling FBC shou

Re: [Intel-gfx] Framebuffer compression on GM45 disabled with KMS

2010-05-01 Thread Jesse Barnes
On Sat, 1 May 2010 01:01:12 +0100 Pedro Ribeiro wrote: > On 1 May 2010 00:06, Jesse Barnes wrote: > > On Fri, 30 Apr 2010 13:04:23 +0100 > > Pedro Ribeiro wrote: > > > >> Hi all, > >> > >> My Xorg.log shows > >> > >> (**) inte

Re: [Intel-gfx] [PATCH] drm/i915: don't queue flips during a flip pending event

2010-05-03 Thread Jesse Barnes
On Thu, 29 Apr 2010 15:52:36 -0700 Eric Anholt wrote: > > + if (intel_crtc->plane) > > + flip_mask = > > I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT; > > + else > > + flip_mask = > > I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT; + > > + /* Wait for any previous flip to fin

Re: [Intel-gfx] [PATCH 3/5] drm/i915: use PIPE_CONTROL to retire commands

2010-05-03 Thread Jesse Barnes
On Thu, 29 Apr 2010 14:26:38 -0700 Eric Anholt wrote: > On Wed, 21 Apr 2010 11:39:24 -0700, Jesse Barnes > wrote: > > This allows us to do less cache flushing on 965+ chipsets. > > I don't think this commit is correct. The ring processing will > continue past the

Re: [Intel-gfx] i915GM+vertical RR+FPS+OpenGL

2010-05-05 Thread Jesse Barnes
On Wed, 5 May 2010 18:14:47 -0700 (PDT) SD wrote: > Dear All. > > Sorry to disturb you again. > When I start glxgears on Fedora 13, it tells me that application and > suppose to be OpenGL, now synchronized to Vertical Refresh Rate > (VRR), which in my case - laptop LCD = 60. And it also tells me

Re: [Intel-gfx] Page flipping not working as expected for compositing - engineering resource available to help fix it

2010-05-10 Thread Jesse Barnes
access to /dev/dri/card0, so was falling back to swrast. When you're using > swrast, TFP only appears to work for pixmaps you create, not for compositing > pixmaps. > > Sorry for the noise, What about the indirect bug? Did that also go away when you fixed the perms issue? If

[Intel-gfx] Intelligent power sharing driver

2010-05-10 Thread Jesse Barnes
those now so I expect to be able to post them soon. Thanks, -- 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 1/2] timer: add on-stack deferrable timer interfaces

2010-05-10 Thread Jesse Barnes
In some cases (for instance with kernel threads) it may be desireable to use on-stack deferrable timers to get their power saving benefits. Add interfaces to support this for the IPS driver. Signed-off-by: Jesse Barnes --- include/linux/timer.h | 15 +++ kernel/timer.c

[Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-05-10 Thread Jesse Barnes
and/or GPU to increase their power consumption, and thus performance, when possible. The goal is to maximize performance within a given platform's TDP (thermal design point). Signed-off-by: Jesse Barnes --- drivers/platform/x86/Kconfig | 10 + drivers/platform/x86/Makefile|

Re: [Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-05-11 Thread Jesse Barnes
x86/intel_ips.c:1361: warning: type defaults to 'int' in > declaration of 'type name' > drivers/platform/x86/intel_ips.c:1361: warning: cast from pointer to integer > of different size > drivers/platform/x86/intel_ips.c:1361: warning: assignment makes pointer from &

Re: [Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-05-11 Thread Jesse Barnes
On Tue, 11 May 2010 07:59:19 -0700 Jesse Barnes wrote: > On Mon, 10 May 2010 22:00:46 -0400 > Andrew Morton wrote: > > > +#define thm_readb(off) readb(ips->regmap + (off)) > > > +#define thm_readw(off) readw(ips->regmap + (off)) > > > +#define

Re: [Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-05-11 Thread Jesse Barnes
On Tue, 11 May 2010 11:38:36 -0400 Andrew Morton wrote: > On Tue, 11 May 2010 11:18:54 -0700 Jesse Barnes > wrote: > > > > > > +#define thm_writeb(off, val) writeb((val), ips->regmap + (off)) > > > > > +#define thm_writew(off, val) writew((val

Re: [Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-05-14 Thread Jesse Barnes
ger > of different size > drivers/platform/x86/intel_ips.c:1373: warning: assignment makes pointer from > integer without a cast > > Both x86_64 and i386 fail. > Updated patch addressing your comments. I still have to figure out how to handle CPU hotplug, but other than tha

Re: [Intel-gfx] [PATCH 2/2] x86 platform driver: intelligent power sharing driver

2010-05-15 Thread Jesse Barnes
On Sat, 15 May 2010 01:54:56 -0700 Andy Isaacson wrote: > On Mon, May 10, 2010 at 10:00:46PM -0400, Andrew Morton wrote: > > > + int i; > > > + u16 avg; > > > + > > > + for (i = 0; i < IPS_SAMPLE_COUNT; i++) > > > + total += (u64)(array[i] * 100); > > > > Actually, that does work. Someh

Re: [Intel-gfx] [PATCH] drm/i915: Kill dangerous pending-flip debugging

2010-05-15 Thread Jesse Barnes
: > > Bug 28079 - "glresize" causes kernel panic in > intel_finish_page_flip. > https://bugs.freedesktop.org/show_bug.cgi?id=28079 Yeah, that's true. Good catch. Reviewed-by: Jesse Barnes ___ Intel-gfx mailing list Int

Re: [Intel-gfx] [PATCH] gpu/drm/i915: Don't disable panel for modesetting if pfit hasn't changed

2010-05-18 Thread Jesse Barnes
915/intel_lvds.c | 22 -- > 1 files changed, 20 insertions(+), 2 deletions(-) Looks good, we should get it upstream early in this cycle to get it some test coverage. If it doesn't work out it's easy to revert. Acked-by: Jesse Barnes -- Jesse Barnes,

[Intel-gfx] [PATCH 1/2] IPS driver: add GPU busy and turbo checking

2010-05-20 Thread Jesse Barnes
Be sure to enable GPU turbo by default at load time and check GPU busy and MCP exceeded status correctly. Also fix up CPU power comparison and work around buggy MCH temp reporting. Signed-off-by: Jesse Barnes --- drivers/platform/x86/intel_ips.c | 30 +- 1 files

[Intel-gfx] [PATCH 2/2] drm/i915: add power monitoring support

2010-05-20 Thread Jesse Barnes
-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_debugfs.c | 56 - drivers/gpu/drm/i915/i915_dma.c | 529 +- drivers/gpu/drm/i915/i915_drv.h | 20 ++- drivers/gpu/drm/i915/i915_irq.c | 28 +-- drivers/gpu/drm/i915/i915_reg.h | 41

[Intel-gfx] [PATCH] drm/i915: add timeout to FBC disable waits

2010-05-21 Thread Jesse Barnes
FBC disable on 965 can take long enough to trigger latency checks in the kernel so be sure to timeout after a reasonable period. Fixes https://bugzilla.kernel.org/show_bug.cgi?id=15015. Tested-by: James Ettle Signed-off-by: Jesse Barnes diff --git a/drivers/gpu/drm/i915/intel_display.c b

Re: [Intel-gfx] [PATCH 02/11] drm/i915: Hold the spinlock whilst resetting unpin_work along error path

2010-05-27 Thread Jesse Barnes
d-off-by: Chris Wilson > Cc: Jesse Barnes > Cc: Kristian Høgsberg > --- > drivers/gpu/drm/i915/intel_display.c | 20 > 1 files changed, 12 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH 04/11] drm/i915: Propagate error from unbinding an unfenceable object.

2010-05-27 Thread Jesse Barnes
On Thu, 27 May 2010 13:18:15 +0100 Chris Wilson wrote: > Signed-off-by: Chris Wilson > Cc: Jesse Barnes > --- > drivers/gpu/drm/i915/i915_gem.c | 10 +++--- > 1 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b

Re: [Intel-gfx] [PATCH] drm/i915: use wake_up instead of drm wrapper.

2010-05-28 Thread Jesse Barnes
on we don't have > that in our Fedora or RHEL backports wierd. > > Ignore this. > > I don't remember much discussion on changing drm_os_linux, but it > should have been fine. We should still kill the drm_os_linux bits where possible... -- Jesse Barnes, Intel Open Source

Re: [Intel-gfx] [ANNOUNCE] xf86-video-intel 2.11.901

2010-06-17 Thread Jesse Barnes
#x27;t work. This is git master from today > (a25573d5c47ebea34c076075e1993233d7db2b4f). Are these both on 945? If so, can you guys try two of the patches I posted earlier? In particular: drm/i915: fix page flipping on gen3 drm/i915: don't queue flips during a flip pending event (att

Re: [Intel-gfx] [ANNOUNCE] xf86-video-intel 2.11.901

2010-06-17 Thread Jesse Barnes
ls. Arg, ok, I'll refresh them and post new ones tomorrow. Thanks, -- 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] gpu/drm/i915: Add a blacklist to omit modeset on LID open

2010-06-18 Thread Jesse Barnes
el_no_modeset_on_lid)) > + return NOTIFY_OK; > if (!acpi_lid_open()) { > dev_priv->modeset_on_lid = 1; > return NOTIFY_OK; Other than the comment issue, this one looks fine to me. We just can't seem to win when it comes to lid h

Re: [Intel-gfx] [ANNOUNCE] xf86-video-intel 2.11.901

2010-06-18 Thread Jesse Barnes
On Thu, 17 Jun 2010 19:44:10 -0700 Jesse Barnes wrote: > On Fri, 18 Jun 2010 02:20:23 +0200 > Marc Deop i Argemí wrote: > > > On Friday June 18 2010 02:17:53 Andrew Lutomirski wrote: > > > Neither patch applies for me. > > > > One of them do

Re: [Intel-gfx] [ANNOUNCE] xf86-video-intel 2.11.901

2010-06-18 Thread Jesse Barnes
On Fri, 18 Jun 2010 13:04:50 -0700 Jesse Barnes wrote: > On Thu, 17 Jun 2010 19:44:10 -0700 > Jesse Barnes wrote: > > > On Fri, 18 Jun 2010 02:20:23 +0200 > > Marc Deop i Argemí wrote: > > > > > On Friday June 18 2010 02:17:53 Andrew Lutomirski wrote:

Re: [Intel-gfx] [ANNOUNCE] xf86-video-intel 2.11.901

2010-06-23 Thread Jesse Barnes
On Mon, 21 Jun 2010 16:32:48 -0400 Andrew Lutomirski wrote: > On Sun, Jun 20, 2010 at 11:29 AM, Andrew Lutomirski wrote: > > On Fri, Jun 18, 2010 at 4:04 PM, Jesse Barnes > > wrote: > >> On Thu, 17 Jun 2010 19:44:10 -0700 > >> Jesse Barnes wrote: > >>

[Intel-gfx] [PATCH] drm/i915: change default panel fitting mode to preserve aspect ratio

2010-06-24 Thread Jesse Barnes
We did this a long time ago in the DDX driver, but now this fix belongs in the kernel. Preserving the aspect ratio is a nicer default. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=18033. Tested-by: Josh Triplett Signed-off-by: Jesse Barnes diff --git a/drivers/gpu/drm/i915/intel_lvds.c

Re: [Intel-gfx] [PATCH] drm/i915: Fix VLV analog output shivers

2013-06-11 Thread Jesse Barnes
field names, we'll end up double taking everytime we look at these bits. So there's no good answer here... :/ -- 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 v2] drm/i915: Try harder to disable trickle feed on VLV

2013-06-12 Thread Jesse Barnes
struct > drm_device *dev) > > I915_WRITE(GEN7_UCGCTL4, GEN7_L3BANK2X_CLOCK_GATE_DISABLE); > > - g4x_disable_trickle_feed(dev); > + I915_WRITE(MI_ARB_VLV, MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE); > > I915_WRITE(CACHE_MODE_1, > _MASK

Re: [Intel-gfx] [PATCH 2/2] drm/i915: repin bound framebuffers on resume

2013-06-12 Thread Jesse Barnes
me. But we can restore the fences from dev_priv->fence_regs... > Actually we have a very similar problem after a GPU reset where we > should restore fences for pinned objects (i.e. the scanout). The patch > to fix both looks fairly straightforward. To be clear, this only affects gen3

Re: [Intel-gfx] [PATCH] drm/i915: Fix VLV PLL LPF coefficients for DAC

2013-06-13 Thread Jesse Barnes
vlv_dpio_write(dev_priv, DPIO_LFP_COEFF(pipe), >0x005f0021); I think it's ok, but can you specify the doc title in the commit message? Should make things easier to find in the rat's nest of files later. :) -- Jesse Barnes, In

Re: [Intel-gfx] [PATCH] drm/i915: Kill useless "Enable panel fitter" comments

2013-06-13 Thread Jesse Barnes
gt; > Reported-By: Yuly Novikov > Cc: Jesse Barnes > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_display.c | 4 > 1 file changed, 4 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c > b/drivers/gpu/drm/i915/intel_display

Re: [Intel-gfx] 'Timed out waiting for forcewake old ack to clear' and hangup on IvyBridge system

2013-06-22 Thread Jesse Barnes
se I can do besides using a special kernel with the backed out > commit ? Is it possible that others have the same problem ? Ouch, so a BIOS that uses the other forcewake mechanism seems to have escaped. Is there a newer one available for your system? I'm hoping it'll fix the issu

Re: [Intel-gfx] [PATCH] drm/i915: Introduce mapping of user pages into video memory (userptr) ioctl

2013-06-24 Thread Jesse Barnes
27;t think that is strictly required, just like we should not limit > > the user from using set_tiling. (Though the user is never actually going > > to tell the kernel about such tiling...). > > Yeah, I guess we could allow people to shot their foot off. Otoh i

Re: [Intel-gfx] [RFC][PATCH 2/2] drm/i915: Jump to at least RPe on VLV when increasing the GPU frequency

2013-06-25 Thread Jesse Barnes
elay < dev_priv->rps.rpe_delay) > + new_delay = dev_priv->rps.rpe_delay; > + } else > new_delay = dev_priv->rps.cur_delay - 1; > > /* sysfs frequency interfaces may have snuck in while servicing the Yeah, s

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Clean up VLV rps code a bit

2013-06-25 Thread Jesse Barnes
"min GPU freq: %d MHz (%u)\n", > + vlv_gpu_freq(dev_priv->mem_freq, > + dev_priv->rps.min_delay), > + dev_priv->rps.min_delay); > > - DRM_DEBUG_DRIVER("setting GPU freq to %d\

Re: [Intel-gfx] [RFC][PATCH 1/2] drm/i915: Don't increase the GPU frequency from the delayed VLV rps timer

2013-06-25 Thread Jesse Barnes
utex_unlock(&dev_priv->rps.hw_lock); > } > Hm that's not what I saw here; I stopped getting the timer interrupts when the GPU went idle. But that could be explained by punit fw differences. So this change looks ok to me. Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Sour

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Don't wait for Punit after each freq change on VLV

2013-06-25 Thread Jesse Barnes
) > - DRM_DEBUG_DRIVER("Punit overrode GPU freq: %d MHz (%u) > requested, but got %d Mhz (%u)\n", > - vlv_gpu_freq(dev_priv->mem_freq, val), val, > - vlv_gpu_freq(dev_priv->mem_freq, pval >> 8), > pval &

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Optimize the VLV Punit wait a bit

2013-06-25 Thread Jesse Barnes
nit_read(dev_priv, PUNIT_REG_GPU_FREQ_STS); > + } > + > + if (pval & 1) > + DRM_DEBUG_DRIVER("timed out waiting for Punit\n"); > > pval >>= 8; > 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/6] drm/i915: Use msecs_to_jiffies_timeout when waiting for Punit freq change

2013-06-25 Thread Jesse Barnes
g timeout = jiffies + msecs_to_jiffies_timeout(10); > u32 pval; > > WARN_ON(!mutex_is_locked(&dev_priv->rps.hw_lock)); 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/6] drm/i915: Make the rps new_delay comparison more readable

2013-06-25 Thread Jesse Barnes
dev_priv->rps.min_delay && > + new_delay <= dev_priv->rps.max_delay) { > if (IS_VALLEYVIEW(dev_priv->dev)) > valleyview_set_rps(dev_priv->dev, new_delay); > else Reviewed-by: Jesse Barnes -- Jesse Barn

Re: [Intel-gfx] [PATCH 6/6] drm/i915: GEN6_RP_INTERRUPT_LIMITS doesn't seem to exist on VLV

2013-06-25 Thread Jesse Barnes
; - I915_WRITE(GEN6_RP_INTERRUPT_LIMITS, limits); > - > dev_priv->rps.cur_delay = val; > > trace_intel_gpu_freq_change(vlv_gpu_freq(dev_priv->mem_freq, val)); I don't see it anymore either... so Reviewed-by: Jesse Barnes -- Jesse Barnes, Intel Open Sourc

Re: [Intel-gfx] Linux 3.10-rc7

2013-06-25 Thread Jesse Barnes
the PLL state on resume from hibernate, leading to this warning. The refcount is nonzero, indicating the pll is in use, but the active field is clear, which means we're missing an update somewhere. Shuah, just to confirm, does your resume actually work ok aside from the warning? I *think* it

Re: [Intel-gfx] Linux 3.10-rc7

2013-06-25 Thread Jesse Barnes
On Tue, 25 Jun 2013 19:59:28 + Shuah Khan wrote: > On 06/25/2013 01:52 PM, Jesse Barnes wrote: > > On Tue, 25 Jun 2013 21:37:37 +0200 > > Daniel Vetter wrote: > > > > >> > >> Adding more lists to cc + Jesse since he's the guilty one

Re: [Intel-gfx] Linux 3.10-rc7

2013-06-25 Thread Jesse Barnes
On Tue, 25 Jun 2013 20:51:27 + Shuah Khan wrote: > On 06/25/2013 02:06 PM, Jesse Barnes wrote: > > On Tue, 25 Jun 2013 19:59:28 + > > Shuah Khan wrote: > > > >> On 06/25/2013 01:52 PM, Jesse Barnes wrote: > >>> On Tue, 25 Jun 2013

Re: [Intel-gfx] [PATCH] [v2] drm/i915: Fix context sizes on HSW

2013-06-25 Thread Jesse Barnes
(17 * PAGE_SIZE) > > /* > * Overlay regs Yeah, we can't rely on the reg I guess, and this matches the docs (though they don't make it easy to figure it out)... I'd like to see a reference to the bspec where this information is kept, but other than that: 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 1/5] drm/i915: add fastboot param for fast & loose mode setting

2013-06-25 Thread Jesse Barnes
Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c |5 + drivers/gpu/drm/i915/i915_drv.h |1 + 2 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c index 4a4ec86..226d4d7 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] Moar fastboot

2013-06-25 Thread Jesse Barnes
Down to 5 patches, rebased on top of today's dinq and with changes requested by Daniel. This series is activated through the i915.fastboot=1 boot argument, and works here on my SNB laptop. We still have some prettying of userspace to do, but at least we avoid the panel power sequence so things ar

[Intel-gfx] [PATCH 2/5] drm/i915: get mode clock when reading the pipe config v7

2013-06-25 Thread Jesse Barnes
SWELL use port_clock field rather than a new CPU eDP clock field in crtc_config Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/intel_crt.c |1 + drivers/gpu/drm/i915/intel_display.c | 109 +++--- drivers/gp

[Intel-gfx] [PATCH 3/5] drm/i915: copy fetched mode state into crtc at setup_hw time v4

2013-06-25 Thread Jesse Barnes
-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 37 ++ 1 file changed, 37 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e75ce2f..8a7da45 100644 --- a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 4/5] drm/i915: turn off panel fitting at flip time if needed v2

2013-06-25 Thread Jesse Barnes
Need better pfit tracking to do this right. v2: use fastboot param around this hack Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 5/5] drm/i915: flip on a no fb -> fb transition if crtc is active v3

2013-06-25 Thread Jesse Barnes
-> fb flip behavior Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index a55e1e5..0e7324d 100644 --- a/drivers

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Fix VLV sprite register offsets

2013-06-26 Thread Jesse Barnes
(VLV_DISPLAY_BASE + 0x7229c) > +#define _SPBKEYMAXVAL(VLV_DISPLAY_BASE + 0x722a0) > +#define _SPBTILEOFF (VLV_DISPLAY_BASE + 0x722a4) > +#define _SPBCONSTALPHA (VLV_DISPLAY_BASE + 0x722a8) > +#define _SPBGAMC (VLV_DISPLAY_BASE + 0x722f4) > >

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: Fix VLV PLL LPF coefficients for DAC

2013-06-26 Thread Jesse Barnes
mp;crtc->base, INTEL_OUTPUT_HDMI)) > vlv_dpio_write(dev_priv, DPIO_LFP_COEFF(pipe), >0x005f0021); 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] drm/i915: copy fetched mode state into crtc at setup_hw time v5

2013-06-26 Thread Jesse Barnes
: rename function to intel_crtc_mode_from_pipe_config for consistency (Chris) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 37 ++ 1 file changed, 37 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915: get mode clock when reading the pipe config v8

2013-06-26 Thread Jesse Barnes
SWELL use port_clock field rather than a new CPU eDP clock field in crtc_config v8: remove stale pixel_multiplier sets (Daniel) multiply by pixel_multiplier in 9xx clock get too (Daniel) Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm

Re: [Intel-gfx] 'Timed out waiting for forcewake old ack to clear' and hangup on IvyBridge system

2013-06-26 Thread Jesse Barnes
On Sat, 22 Jun 2013 13:04:09 -0700 Guenter Roeck wrote: > On Sat, Jun 22, 2013 at 12:16:46PM -0700, Jesse Barnes wrote: > > On Fri, 21 Jun 2013 23:58:08 -0700 > > Guenter Roeck wrote: > > > > > Hi all, > > > > > > after upgrading one

Re: [Intel-gfx] [PATCH] drm/i915: Mask out hardware status bits from VLV DPLL register

2013-06-26 Thread Jesse Barnes
DPLL_PORTC_READY_MASK | > + DPLL_PORTB_READY_MASK); > } > > return true; As a rule I'd like to see comments explaining this too, so we don't have to dig through the changelog to figure i

Re: [Intel-gfx] [PATCH] drm/i915: Use wait_for() to wait for Punit to change GPU freq on VLV

2013-06-26 Thread Jesse Barnes
ut)) { > - DRM_DEBUG_DRIVER("timed out waiting for Punit\n"); > - break; > - } > - udelay(10); > - } while (pval & 1); > + if (wait_for(((pval = vlv_punit_read(dev_priv, PUNIT_REG_GPU_FREQ_STS)) &

Re: [Intel-gfx] [PATCH 1/2] Revert "drm/i915: Don't use the HDMI port color range bit on Valleyview"

2013-06-26 Thread Jesse Barnes
t; *encoder, > u32 hdmi_val; > > hdmi_val = SDVO_ENCODING_HDMI; > - if (!HAS_PCH_SPLIT(dev) && !IS_VALLEYVIEW(dev)) > + if (!HAS_PCH_SPLIT(dev)) > hdmi_val |= intel_hdmi->color_range; > if (adjusted_mode->flags & DRM_

Re: [Intel-gfx] [PATCH 2/2] drm/i915: s/LFP/LPF in DPIO PLL register names

2013-06-26 Thread Jesse Barnes
v_dpio_write(dev_priv, DPIO_LPF_COEFF(pipe), >0x005f0021); > else > - vlv_dpio_write(dev_priv, DPIO_LFP_COEFF(pipe), > + vlv_dpio_write(dev_priv, DPIO_LPF_COEFF(pipe), >0x00df); > > i

[Intel-gfx] [PATCH] drm/i915: get mode clock when reading the pipe config v9

2013-06-26 Thread Jesse Barnes
ff-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/intel_display.c | 120 +++--- drivers/gpu/drm/i915/intel_dp.c |7 ++ drivers/gpu/drm/i915/intel_sdvo.c|5 ++ 4 files changed, 123 insertions(+), 10 deletions(-)

[Intel-gfx] [PATCH] drm/i915: "Scotty, I need more power!"

2013-06-28 Thread Jesse Barnes
npredictable performance. Requested-by: Eric Anholt Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c |4 +++ drivers/gpu/drm/i915/i915_drv.h |1 + drivers/gpu/drm/i915/intel_pm.c | 54 +++ 3 files changed, 37 insertions(+), 22 deletions(-)

Re: [Intel-gfx] [PATCH] drm/i915: pixel multiplier readout support for pch ports

2013-06-28 Thread Jesse Barnes
. > > Cc: Imre Deak > Cc: Jesse Barnes > Signed-off-by: Daniel Vetter > --- > drivers/gpu/drm/i915/intel_display.c | 12 ++-- > drivers/gpu/drm/i915/intel_sdvo.c| 3 --- > 2 files changed, 6 insertions(+), 9 deletions(-) > > diff --git a/drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH 06/66] drm/i915: Conditionally use guard page based on PPGTT

2013-06-28 Thread Jesse Barnes
m_setup_global_gtt(dev, 0, mappable_size, gtt_size); > + i915_gem_setup_global_gtt(dev, 0, mappable_size, gtt_size, PAGE_SIZE); > } > > static int setup_scratch_page(struct drm_device *dev) Just a nitpick that can be changed with a follow on patch if others agree: I'd rather see the WARN_ON made a BUG_ON when checking that the guard_size is a multiple of PAGE_SIZE (which, incidentally, is the wrong value to use, but that's also for another cleanup). 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] drm/i915: boost GPU and CPU freq when leaving idle

2013-06-28 Thread Jesse Barnes
acked idleness elsewhere. I'm also unsure about the cpufreq calls; I don't really know if this will do what I want... Requested-by: Owen Taylor Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_gem_execbuffer.c | 24 drivers/gpu/drm/i915/intel_drv.h

Re: [Intel-gfx] [PATCH] drm/i915: boost GPU and CPU freq when leaving idle

2013-06-28 Thread Jesse Barnes
On Fri, 28 Jun 2013 19:37:01 +0100 Chris Wilson wrote: > On Fri, Jun 28, 2013 at 09:54:32AM -0700, Jesse Barnes wrote: > > Coming out of idle is usually due to some sort of user input (swiping a > > screen, clicking a button) and often results in some sort of graphical > > a

Re: [Intel-gfx] [PATCH 07/66] drm/i915: Use drm_mm for PPGTT PDEs

2013-06-28 Thread Jesse Barnes
(Jesse) > > v5: Don't subtract guard page since we now killed the guard page prior > to this patch. (Ben) > > Cc: Chris Wilson > Reviewed-by: Jesse Barnes > Signed-off-by: Ben Widawsky > --- > drivers/gpu/drm/i915/i915_drv.h | 1 + > drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH] drm/i915: boost GPU and CPU freq when leaving idle

2013-06-28 Thread Jesse Barnes
On Fri, 28 Jun 2013 12:10:51 -0700 Arjan van de Ven wrote: > On 6/28/2013 11:37 AM, Chris Wilson wrote: > > On Fri, Jun 28, 2013 at 09:54:32AM -0700, Jesse Barnes wrote: > >> Coming out of idle is usually due to some sort of user input (swiping a > >> screen, clicking

[Intel-gfx] [PATCH 1/2] drm/i915: fixup messages in pipe_config_compare

2013-07-01 Thread Jesse Barnes
Print out the flag that failed and fix up a mismatched paren. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |4 ++-- 1 file changed, 2 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 2/2] drm/i915: get clock config when checking CRTC state too

2013-07-01 Thread Jesse Barnes
We need to get the current hw state so we can compare against the expected state. References: https://bugs.freedesktop.org/show_bug.cgi?id=66444 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a

Re: [Intel-gfx] [PATCH 2/2] drm/i915: get clock config when checking CRTC state too

2013-07-01 Thread Jesse Barnes
On Mon, 1 Jul 2013 19:36:32 +0200 Daniel Vetter wrote: > On Mon, Jul 01, 2013 at 10:19:10AM -0700, Jesse Barnes wrote: > > We need to get the current hw state so we can compare against the > > expected state. > > > > References: https://bugs.freedesktop.org/show_bug.c

[Intel-gfx] [PATCH] drm/i915: split encoder get_config calls from crtc get_clock calls

2013-07-01 Thread Jesse Barnes
This should help on HSW, where we don't currently have a get_clock call. Reported-by: Paulo Zanoni Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm

Re: [Intel-gfx] [PATCH] drm/i915: Fix VLV DP RBR/HDMI/DAC PLL LPF coefficients

2013-07-09 Thread Jesse Barnes
amp;crtc->base, INTEL_OUTPUT_HDMI)) > vlv_dpio_write(dev_priv, DPIO_LPF_COEFF(pipe), > - 0x005f0021); > + 0x009f0003); > else > vlv_dpio_write(dev_priv, DPIO_LPF_COEFF(pipe), >

Re: [Intel-gfx] Dell U2412M monitor complains about input timing

2013-07-09 Thread Jesse Barnes
ly out of the range your monitor wants. If you can get that mode running with the VESA driver you could collect a register dump in the good and bad cases so we could compare... -- 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] Dell U2412M monitor complains about input timing

2013-07-09 Thread Jesse Barnes
On Tue, 09 Jul 2013 14:46:28 -0700 Christian Kreibich wrote: > On 07/09/2013 02:27 PM, Jesse Barnes wrote: > > Sounds like our pixel clock is probably out of the range your monitor > > wants. If you can get that mode running with the VESA driver you could > > collect a regi

Re: [Intel-gfx] [PATCH] drm/i915: Decrease pll->refcount when freeze gpu

2013-07-11 Thread Jesse Barnes
if we call ->off directly. Does suspend/resume still work both with and without X with this patch applied? If we trash the sw state, the VT switchless resume shouldn't work... -- 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] drm/i915: remove preliminary_hw_support variable

2013-07-11 Thread Jesse Barnes
;ve failed pretty hard to get things out and tested on time... Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_drv.c |5 - drivers/gpu/drm/i915/i915_drv.h |1 - 2 files changed, 6 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c ind

Re: [Intel-gfx] [PATCH] drm/i915: fix pfit regression for non-autoscaled resolutions

2013-07-12 Thread Jesse Barnes
On Fri, 12 Jul 2013 08:07:30 +0200 Daniel Vetter wrote: > I.e. for letter/pillarboxing. For those cases we need to adjust the > mode a bit, but Jesse gmch pfit refactoring in > > commit 2dd24552cab40ea829ba3fda890eeafd2c4816d8 > Author: Jesse Barnes > Date: Thu Apr 25 1

Re: [Intel-gfx] [PATCH] drm/i915: Decrease pll->refcount when freeze gpu

2013-07-12 Thread Jesse Barnes
HDMI use WRPLL1.After resume from > S4, HDMI use WRPLL2. The status is different during S4 > > Actually, the above problem is a regression caused by your commit: >commit 24576d23976746cb52e7700c4cadbf4bc1bc3472 >Author: Jesse Barnes >Date: Tue Mar 26 09:25:45 2013 -070

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