Re: [Intel-gfx] [PATCH 1/7] drm/i915: Fix SNB GT_MODE register setup

2014-02-05 Thread Ville Syrjälä
On Tue, Feb 04, 2014 at 09:23:06PM +, Chris Wilson wrote: > On Tue, Feb 04, 2014 at 09:59:15PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > On SNB we set up WaSetupGtModeTdRowDispatch:snb early in > > gen6_init_clock_gating(). That sets a bit in the GEN6_GT_MODE

Re: [Intel-gfx] [PATCH] lib/drmtest: don't use asprintf on signal paths

2014-02-05 Thread Imre Deak
On Wed, 2014-02-05 at 00:19 +0100, Daniel Vetter wrote: > On Wed, Feb 05, 2014 at 12:04:46AM +0200, Imre Deak wrote: > > On Tue, 2014-02-04 at 21:29 +, Chris Wilson wrote: > > > On Tue, Feb 04, 2014 at 09:15:14PM +0200, Imre Deak wrote: > > > > It's not signal safe and I got kms_flip in hung st

Re: [Intel-gfx] [PATCH] MAINTAINERS: Update drm/i915 git repo

2014-02-05 Thread Fengguang Wu
On Wed, Feb 05, 2014 at 08:54:15AM +0100, Daniel Vetter wrote: > On Tue, Feb 4, 2014 at 8:37 PM, Daniel Vetter wrote: > > On Tue, Feb 4, 2014 at 8:00 PM, Daniel Vetter > > wrote: > >> Moved to a common location so that Jani also can push to it, to avoid > >> moving it every time I go on vacation

Re: [Intel-gfx] [PATCH 1/7] drm/i915: Fix SNB GT_MODE register setup

2014-02-05 Thread Chris Wilson
On Wed, Feb 05, 2014 at 11:27:31AM +0200, Ville Syrjälä wrote: > On Tue, Feb 04, 2014 at 09:23:06PM +, Chris Wilson wrote: > > On Tue, Feb 04, 2014 at 09:59:15PM +0200, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > On SNB we set up WaSetupGtModeTdRowDispatch:

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Chris Wilson
On Tue, Nov 26, 2013 at 08:51:17AM -0800, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > Certain OpenGL features (e.g. transform feedback, performance monitoring) > require userspace code to submit batches containing commands such as > MI_LOAD_REGISTER_IMM to access various registers.

[Intel-gfx] [PATCH] drm/i915: Add a comment about WIZ hashing vs. thread counts

2014-02-05 Thread ville . syrjala
From: Ville Syrjälä Add a comment next to our WIZ hashing setup to remind people about the link between WIZ hashing disable bit and PS/WM thread counts. Suggested-by: Chris Wilson Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_pm.c | 16 1 file changed, 16 insert

Re: [Intel-gfx] [PATCH] drm/i915: Add a comment about WIZ hashing vs. thread counts

2014-02-05 Thread Chris Wilson
On Wed, Feb 05, 2014 at 12:43:47PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Add a comment next to our WIZ hashing setup to remind people about the > link between WIZ hashing disable bit and PS/WM thread counts. > > Suggested-by: Chris Wilson > Signed-off-by: Ville S

[Intel-gfx] [PATCH] tests/gem_userptr_benchmark: Benchmarking userptr surfaces and impact

2014-02-05 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This adds a small benchmark for the new userptr functionality. Apart from basic surface creation and destruction, also tested is the impact of having userptr surfaces in the process address space. Reason for that is the impact of MMU notifiers on common address space operati

[Intel-gfx] [RFC][PATCH] Userptr benchmark

2014-02-05 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A simple userptr benchmark measuring creation and destruction of userptr surfaces and also impact of having a different number of them in the process address space. Example test output from i7-4550U running Android is below. Questions, comments and ideas are welcome. IGT-V

Re: [Intel-gfx] [PATCH] drm/i915: don't double-restore ARB mode bits for kms

2014-02-05 Thread Jani Nikula
On Thu, 16 Jan 2014, Daniel Vetter wrote: > On Thu, Jan 16, 2014 at 5:54 PM, Paulo Zanoni wrote: >> 2014/1/16 Daniel Vetter : >>> Our init_clock_gating functions and related code should already take >>> care of this. And if they don't we'd better know. >> >> For both registers, I see functions ap

Re: [Intel-gfx] [PATCH] drm/i915: don't double-restore ARB mode bits for kms

2014-02-05 Thread Daniel Vetter
On Wed, Feb 5, 2014 at 2:01 PM, Jani Nikula wrote: > On Thu, 16 Jan 2014, Daniel Vetter wrote: >> On Thu, Jan 16, 2014 at 5:54 PM, Paulo Zanoni wrote: >>> 2014/1/16 Daniel Vetter : Our init_clock_gating functions and related code should already take care of this. And if they don't we'd

Re: [Intel-gfx] Haswell DisplayPort Multi Stream Transport status

2014-02-05 Thread Damien Lespiau
On Wed, Jan 22, 2014 at 12:53:50PM +0900, Mike Hommey wrote: > Hi, > > What is the current status for DP MST support on Haswell? Are there > experimental patches that can be tested? If not, what can be done to > help progress? No patches to test yet. I would gate DP MST on the current DP aux refa

[Intel-gfx] [PATCH 1/2] drm/i915: Frob AGPBUSY# bit before enabling the vblank interrupt

2014-02-05 Thread ville . syrjala
From: Ville Syrjälä Not sure what would happen if an interrupt is generated between enabling the interrupt in PIPESTAT and frobbing the AGPBUSY# bit in INSTPM. Would the already pending interrupt cause exit from C3 or not? Let's not play such guessing games, and simply flip AGPBUSY# bit before en

[Intel-gfx] [PATCH 2/2] drm/i915: Flip the sense of AGPBUSY_DIS bit

2014-02-05 Thread ville . syrjala
From: Ville Syrjälä My Gen3 Bspec lists the AGPBUSY# bit in INSTPM as an enable bit rather than a disable bit. Our code has the opposite idea. Make the code match the spec. Might fix some gen3 C3 related interrupt delivery problems. Untested due to lack of hardware. Signed-off-by: Ville Syrjälä

[Intel-gfx] [PATCH 0/2] drm/i915: Potential gen3 vblank interrupt fixes

2014-02-05 Thread ville . syrjala
From: Ville Syrjälä The AGBBUSY# bit in INSTPM caught my eye while reading the code and having the spec open at the same time. This series makes the code match the spec, and also closes a potential race condition (which may or may not be real, depending on how the hardware works). Ville Syrjälä

Re: [Intel-gfx] [PATCH 03/13] drm/i915: Initial command parser table definitions

2014-02-05 Thread Jani Nikula
N.B. I'll likely make multiple passes on the patches while reviewing, for example I did not check any of the #define values here. On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > Add command tables defining irregular length commands for each ring. > This requires a

Re: [Intel-gfx] [RFC][PATCH] Userptr benchmark

2014-02-05 Thread Chris Wilson
On Wed, Feb 05, 2014 at 12:41:45PM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > A simple userptr benchmark measuring creation and destruction of userptr > surfaces and also impact of having a different number of them in the > process address space. > > Example test output from i7-4550

Re: [Intel-gfx] [PATCH 6/7] drm/i915: vlv: fix mapping of pipestat enable to status bits

2014-02-05 Thread Ville Syrjälä
On Tue, Feb 04, 2014 at 09:35:50PM +0200, Imre Deak wrote: > At least on VLV we can't get at the pipestat status bits by simply right > shifting the corresponding enable bits. The mapping between enable and > status bits for the sprite0,1 flip done and the PSR events don't follow > this rule, so we

Re: [Intel-gfx] [PATCH 1/2] drm/i915: move intel_hrawclk() to intel_display.c

2014-02-05 Thread Jesse Barnes
On Tue, 7 Jan 2014 18:01:33 +0200 Jani Nikula wrote: > Make it available outside of intel_dp.c. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/intel_display.c | 33 + > drivers/gpu/drm/i915/intel_dp.c | 34 > --

[Intel-gfx] Request for feedback - Sprite flip notification support

2014-02-05 Thread Vijay Purushothaman
Hello, In our current driver implementation we support flip notifications only for primary plane. So, in a full screen video playback scenario where only one sprite plane is active, the user space is forced to rely on primary plane flip notification even though there is no real need for this

Re: [Intel-gfx] [PATCH 6/7] drm/i915: vlv: fix mapping of pipestat enable to status bits

2014-02-05 Thread Imre Deak
On Wed, 2014-02-05 at 16:54 +0200, Ville Syrjälä wrote: > On Tue, Feb 04, 2014 at 09:35:50PM +0200, Imre Deak wrote: > > At least on VLV we can't get at the pipestat status bits by simply right > > shifting the corresponding enable bits. The mapping between enable and > > status bits for the sprite

Re: [Intel-gfx] [PATCH 2/2] drm/i915: add a display info file to debugfs

2014-02-05 Thread Jesse Barnes
On Thu, 30 Jan 2014 19:58:43 -0200 Rodrigo Vivi wrote: > > + seq_printf(m, ", mode:\n"); > > + seq_printf(m, "\t\t%d:\"%s\" %d %d %d %d %d %d %d > > %d %d %d 0x%x 0x%x\n", > > + mode->base.id, mode->name, > > +

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

2014-02-05 Thread Jesse Barnes
On Sat, 14 Dec 2013 12:36:30 +0100 Daniel Vetter wrote: > On Sat, Dec 14, 2013 at 12:13:45PM +0100, Daniel Vetter wrote: > > On Thu, Dec 12, 2013 at 12:41:54PM -0800, Jesse Barnes wrote: > > > + ifbdev->helper.funcs->initial_config = intel_fb_initial_config; > > > > This here is a bit surprising

[Intel-gfx] [PATCH IGT] dpio: Add back get_dpio_port which is needed for future platform.

2014-02-05 Thread Chon Ming Lee
Future platform require the phy input to determine which PHY to target for. Signed-off-by: Chon Ming Lee --- lib/intel_iosf.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/intel_iosf.c b/lib/intel_iosf.c index f57212f..0c9f4d8 100644 --- a/lib/intel_ios

Re: [Intel-gfx] [PATCH] [RFC] drm/i915: Generate a hang error code

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 12:18:55 + Ben Widawsky wrote: > We get a large number of bugs which have a, "hey I have that too" > because they see a GPU hang in dmesg. While two machines of the same > model having a GPU hang is indeed a coincidence, it is far from enough > evidence to suggest they are

Re: [Intel-gfx] Request for feedback - Sprite flip notification support

2014-02-05 Thread Ville Syrjälä
On Wed, Feb 05, 2014 at 08:35:11PM +0530, Vijay Purushothaman wrote: > Hello, > > In our current driver implementation we support flip notifications only > for primary plane. So, in a full screen video playback scenario where > only one sprite plane is active, the user space is forced to rely on

Re: [Intel-gfx] [PATCH 7/7] drm/i915: vlv: handle only enabled pipestat interrupt events

2014-02-05 Thread Ville Syrjälä
On Tue, Feb 04, 2014 at 09:35:51PM +0200, Imre Deak wrote: > Atm we call the handlers for pending pipestat interrupt events even if > they aren't explicitly enabled by i915_enable_pipestat(). This isn't an > issue for events other than the vblank start event, since those are > always enabled anyway

Re: [Intel-gfx] [PATCH 02/13] drm/i915: Implement command buffer parsing logic

2014-02-05 Thread Jani Nikula
On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > The command parser scans batch buffers submitted via execbuffer ioctls before > the driver submits them to hardware. At a high level, it looks for several > things: > > 1) Commands which are explicitly defined as privil

Re: [Intel-gfx] [PATCH] [RFC] drm/i915: Generate a hang error code

2014-02-05 Thread Daniel Vetter
On Wed, Feb 05, 2014 at 02:59:08PM +, Jesse Barnes wrote: > On Tue, 4 Feb 2014 12:18:55 + > Ben Widawsky wrote: > > > We get a large number of bugs which have a, "hey I have that too" > > because they see a GPU hang in dmesg. While two machines of the same > > model having a GPU hang is

Re: [Intel-gfx] [PATCH 04/13] drm/i915: Reject privileged commands

2014-02-05 Thread Jani Nikula
On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > The spec defines most of these commands as privileged. A few others, > like the semaphore mbox command and some display commands, are also > reserved for the driver's use. Subsequent patches relax some of > these restri

Re: [Intel-gfx] [PATCH 7/7] drm/i915: vlv: handle only enabled pipestat interrupt events

2014-02-05 Thread Imre Deak
On Wed, 2014-02-05 at 17:11 +0200, Ville Syrjälä wrote: > On Tue, Feb 04, 2014 at 09:35:51PM +0200, Imre Deak wrote: > > Atm we call the handlers for pending pipestat interrupt events even if > > they aren't explicitly enabled by i915_enable_pipestat(). This isn't an > > issue for events other than

Re: [Intel-gfx] [PATCH 1/7] drm/i915: vlv: don't unmask IIR[DISPLAY_PIPE_A/B_VBLANK] interrupt

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 21:35:45 +0200 Imre Deak wrote: > Bspec and the code suggests that the interrupt signaled by IIR[7,5] > (DISPLAY_PIPE_A/B_VBLANK) is a first level IRQ flag for the second > level PIPEA/BSTAT[2] (Start of Vertical Blank) interrupt. Measuring > the relative timings of when IIR[7

Re: [Intel-gfx] [PATCH 06/13] drm/i915: Add register whitelists for mesa

2014-02-05 Thread Jani Nikula
On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > These registers are currently used by mesa for blitting, > transform feedback extensions, and performance monitoring > extensions. > > Signed-off-by: Brad Volkin > --- > drivers/gpu/drm/i915/i915_cmd_parser.c | 55 >

Re: [Intel-gfx] [PATCH 2/7] drm/i915: factor out valleyview_pipestat_irq_handler

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 21:35:46 +0200 Imre Deak wrote: > This will be used by other platforms too, so factor it out. > > The only functional change is the reordeing of gmbus_irq_handler() wrt. > the hotplug handling, but since it only schedules a work, it isn't an > issue. > > Signed-off-by: Imre

Re: [Intel-gfx] [PATCH 3/7] drm/i915: vlv: s/spin_lock_irqsave/spin_lock/ in irq handler

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 21:35:47 +0200 Imre Deak wrote: > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/i915_irq.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c > index b5524ea..e0e5190 100644

Re: [Intel-gfx] [PATCH 08/13] drm/i915: Enable register whitelist checks

2014-02-05 Thread Jani Nikula
On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > MI_STORE_REGISTER_MEM, MI_LOAD_REGISTER_MEM, and MI_LOAD_REGISTER_IMM > commands allow userspace access to registers. Only certain registers > should be allowed for such access, so enable checking for those commands. >

Re: [Intel-gfx] [PATCH 4/7] drm/i915: unify FLIP_DONE macro names

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 21:35:48 +0200 Imre Deak wrote: > s/FLIPDONE/FLIP_DONE/ to make all FLIP_DONE macro names consistent. > > No functional change. > > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/i915/i915_irq.c | 2 +- > drivers/gpu/drm/i915/i915_reg.h | 18 +- > 2 file

Re: [Intel-gfx] [PATCH 10/13] drm/i915: Enable PPGTT command parser checks

2014-02-05 Thread Jani Nikula
On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > Various commands that access memory have a bit to determine whether > the graphics address specified in the command should use the GGTT or > PPGTT for translation. These checks ensure that the bit indicates > PPGTT tran

Re: [Intel-gfx] [PATCH 11/13] drm/i915: Reject commands that would store to global HWS page

2014-02-05 Thread Jani Nikula
On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > PIPE_CONTROL and MI_FLUSH_DW have bits that would write to the > hardware status page. The driver stores request tracking info > there, so don't let userspace overwrite it. > > Signed-off-by: Brad Volkin > --- > drive

Re: [Intel-gfx] [PATCH 00/13] Gen7 batch buffer command parser

2014-02-05 Thread Jani Nikula
FYI, I did an initial review "sweep" of this. Will focus more on the logic and registers etc. next. BR, Jani. On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > From: Brad Volkin > > Certain OpenGL features (e.g. transform feedback, performance monitoring) > require userspace code to sub

Re: [Intel-gfx] [PATCH 5/7] drm/i915: pass status instead of enable flags to i915_enable_pipestat

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 21:35:49 +0200 Imre Deak wrote: > There isn't any PSR interrupt enable bit for pipe A, so we couldn't > enable it through the current API. Passing the corresponding status bits > solves this and also makes the mapping between enable and status bits > simpler on VLV (addressed

Re: [Intel-gfx] Request for feedback - Sprite flip notification support

2014-02-05 Thread Vijay Purushothaman
On 2/5/2014 8:43 PM, Ville Syrjälä wrote: On Wed, Feb 05, 2014 at 08:35:11PM +0530, Vijay Purushothaman wrote: Hello, In our current driver implementation we support flip notifications only for primary plane. So, in a full screen video playback scenario where only one sprite plane is active, th

Re: [Intel-gfx] [PATCH 2/7] drm/i915: factor out valleyview_pipestat_irq_handler

2014-02-05 Thread Daniel Vetter
On Tue, Feb 04, 2014 at 09:35:46PM +0200, Imre Deak wrote: > This will be used by other platforms too, so factor it out. > > The only functional change is the reordeing of gmbus_irq_handler() wrt. > the hotplug handling, but since it only schedules a work, it isn't an > issue. > > Signed-off-by:

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

2014-02-05 Thread Jesse Barnes
On Tue, 4 Feb 2014 11:56:47 +0100 Daniel Vetter wrote: > On Mon, Feb 03, 2014 at 03:28:37PM +, Tvrtko Ursulin wrote: > > > > On 01/29/2014 08:34 PM, Daniel Vetter wrote: > > >Actually I've found something else to complain about: > > > > > >On Tue, Jan 28, 2014 at 2:16 PM, Chris Wilson > >

Re: [Intel-gfx] [PATCH] [RFC] drm/i915: Generate a hang error code

2014-02-05 Thread Jesse Barnes
On Wed, 5 Feb 2014 16:15:02 +0100 Daniel Vetter wrote: > On Wed, Feb 05, 2014 at 02:59:08PM +, Jesse Barnes wrote: > > On Tue, 4 Feb 2014 12:18:55 + > > Ben Widawsky wrote: > > > > > We get a large number of bugs which have a, "hey I have that too" > > > because they see a GPU hang in

Re: [Intel-gfx] [PATCH 5/7] drm/i915: pass status instead of enable flags to i915_enable_pipestat

2014-02-05 Thread Daniel Vetter
On Wed, Feb 05, 2014 at 03:35:15PM +, Jesse Barnes wrote: > I almost think we should just separate enable vs status entirely. As > long as the bits are named consistently it may be easier to follow (as > Ville found in your next patch with the subtle remapping of status > bits). Yeah, I think

Re: [Intel-gfx] [PATCH] [RFC] drm/i915: Generate a hang error code

2014-02-05 Thread Daniel Vetter
On Wed, Feb 05, 2014 at 04:03:45PM +, Jesse Barnes wrote: > On Wed, 5 Feb 2014 16:15:02 +0100 > Daniel Vetter wrote: > > > On Wed, Feb 05, 2014 at 02:59:08PM +, Jesse Barnes wrote: > > > On Tue, 4 Feb 2014 12:18:55 + > > > Ben Widawsky wrote: > > > > > > > We get a large number of

Re: [Intel-gfx] [PATCH] [RFC] drm/i915: Generate a hang error code

2014-02-05 Thread Daniel Vetter
On Wed, Feb 5, 2014 at 5:18 PM, Daniel Vetter wrote: > I'd still like to see the same information > dumped into the error state though. This was re: Jesse's idea on irc to dump pid/comm, too. But adding the same gpu hang cookie computation to the error state decoder might still make sense. -Danie

[Intel-gfx] [PATCH] drm/i915: Record pid/comm of hanging task

2014-02-05 Thread Chris Wilson
After finding the guilty batch and request, we can use it to find the process that submitted the batch and then add the culprit into the error state. This is a slightly different approach from Ben's in that instead of adding the extra information into the struct i915_hw_context, we use the informa

Re: [Intel-gfx] Request for feedback - Sprite flip notification support

2014-02-05 Thread Ville Syrjälä
On Wed, Feb 05, 2014 at 09:25:36PM +0530, Vijay Purushothaman wrote: > On 2/5/2014 8:43 PM, Ville Syrjälä wrote: > > On Wed, Feb 05, 2014 at 08:35:11PM +0530, Vijay Purushothaman wrote: > >> Hello, > >> > >> In our current driver implementation we support flip notifications only > >> for primary pl

Re: [Intel-gfx] [PATCH 5/7] drm/i915: pass status instead of enable flags to i915_enable_pipestat

2014-02-05 Thread Ville Syrjälä
On Wed, Feb 05, 2014 at 05:12:39PM +0100, Daniel Vetter wrote: > On Wed, Feb 05, 2014 at 03:35:15PM +, Jesse Barnes wrote: > > I almost think we should just separate enable vs status entirely. As > > long as the bits are named consistently it may be easier to follow (as > > Ville found in your

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

2014-02-05 Thread Jesse Barnes
The BIOS or boot loader will generally create an initial display configuration for us that includes some set of active pipes and displays. This routine tries to figure out which pipes and connectors are active and stuffs them into the crtcs and modes array given to us by the drm_fb_helper code. S

[Intel-gfx] [PATCH 2/6] drm/i915: get_plane_config for i9xx v9

2014-02-05 Thread Jesse Barnes
Read out the current plane configuration at init time into a new plane_config structure. This allows us to track any existing framebuffers attached to the plane and potentially re-use them in our fbdev code for a smooth handoff. v2: update for new pitch_for_width function (Jesse) comment how

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

2014-02-05 Thread Jesse Barnes
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 allow for smooth transitions to userspace apps once we finish the initial configuration construction. v2: check for non-native modes and adjust (Jesse) fi

Re: [Intel-gfx] [PATCH] drm/i915: Record pid/comm of hanging task

2014-02-05 Thread Jesse Barnes
On Wed, 5 Feb 2014 16:40:41 + Chris Wilson wrote: > After finding the guilty batch and request, we can use it to find the > process that submitted the batch and then add the culprit into the error > state. > > This is a slightly different approach from Ben's in that instead of > adding the

[Intel-gfx] [PATCH] tests/gem_userptr_benchmark: Benchmarking userptr surfaces and impact

2014-02-05 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This adds a small benchmark for the new userptr functionality. Apart from basic surface creation and destruction, also tested is the impact of having userptr surfaces in the process address space. Reason for that is the impact of MMU notifiers on common address space operati

[Intel-gfx] [PATCH 3/6] drm/i915: get_plane_config support for ILK+

2014-02-05 Thread Jesse Barnes
This should allow BIOS fb inheritance to work on ILK+ machines too. Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 92 ++ 1 file changed, 92 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_di

Re: [Intel-gfx] [PATCH 1/6] drm/i915: split aligned height calculation out

2014-02-05 Thread Chris Wilson
On Wed, Feb 05, 2014 at 05:30:43PM +, Jesse Barnes wrote: > 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_displa

Re: [Intel-gfx] [PATCH] tests/gem_userptr_benchmark: Benchmarking userptr surfaces and impact

2014-02-05 Thread Daniel Vetter
On Wed, Feb 05, 2014 at 05:33:06PM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > This adds a small benchmark for the new userptr functionality. > > Apart from basic surface creation and destruction, also tested is the > impact of having userptr surfaces in the process address space. Re

[Intel-gfx] [PATCH 1/6] drm/i915: split aligned height calculation out

2014-02-05 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 4d4a0d9..e2f1db6 100644 ---

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

2014-02-05 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

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

2014-02-05 Thread Chris Wilson
On Wed, Feb 05, 2014 at 05:30:48PM +, Jesse Barnes wrote: > +static bool intel_fbdev_init_bios(struct drm_device *dev, > + struct intel_fbdev *ifbdev) > +{ > + struct intel_framebuffer *fb = NULL; > + struct drm_crtc *crtc; > + struct intel_crtc *intel_c

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Chris Wilson
On Wed, Feb 05, 2014 at 10:18:44AM -0800, Volkin, Bradley D wrote: > On Wed, Feb 05, 2014 at 02:28:29AM -0800, Chris Wilson wrote: > > On Tue, Nov 26, 2013 at 08:51:17AM -0800, bradley.d.vol...@intel.com wrote: > > > From: Brad Volkin > > > > > > Certain OpenGL features (e.g. transform feedback,

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Volkin, Bradley D
On Wed, Feb 05, 2014 at 02:28:29AM -0800, Chris Wilson wrote: > On Tue, Nov 26, 2013 at 08:51:17AM -0800, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > Certain OpenGL features (e.g. transform feedback, performance monitoring) > > require userspace code to submit batches containi

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Daniel Vetter
On Wed, Feb 5, 2014 at 7:18 PM, Volkin, Bradley D wrote: > On Wed, Feb 05, 2014 at 02:28:29AM -0800, Chris Wilson wrote: >> On Tue, Nov 26, 2013 at 08:51:17AM -0800, bradley.d.vol...@intel.com wrote: >> > From: Brad Volkin >> > >> > Certain OpenGL features (e.g. transform feedback, performance mo

Re: [Intel-gfx] [PATCH 02/13] drm/i915: Implement command buffer parsing logic

2014-02-05 Thread Volkin, Bradley D
On Wed, Feb 05, 2014 at 07:15:35AM -0800, Jani Nikula wrote: > On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > The command parser scans batch buffers submitted via execbuffer ioctls > > before > > the driver submits them to hardware. At a high level, it looks

Re: [Intel-gfx] [PATCH 04/13] drm/i915: Reject privileged commands

2014-02-05 Thread Volkin, Bradley D
[snip] On Wed, Feb 05, 2014 at 07:22:33AM -0800, Jani Nikula wrote: > On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > > diff --git a/drivers/gpu/drm/i915/i915_reg.h > > b/drivers/gpu/drm/i915/i915_reg.h > > index 13ed6ed..2b7c26e 100644 > > --- a/drivers/gpu/drm/i915/i915_reg.h > > +++ b

Re: [Intel-gfx] [PATCH 06/13] drm/i915: Add register whitelists for mesa

2014-02-05 Thread Volkin, Bradley D
On Wed, Feb 05, 2014 at 07:29:12AM -0800, Jani Nikula wrote: > On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > These registers are currently used by mesa for blitting, > > transform feedback extensions, and performance monitoring > > extensions. > > > > Signed-

Re: [Intel-gfx] [PATCH 08/13] drm/i915: Enable register whitelist checks

2014-02-05 Thread Volkin, Bradley D
On Wed, Feb 05, 2014 at 07:33:28AM -0800, Jani Nikula wrote: > On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > > From: Brad Volkin > > > > MI_STORE_REGISTER_MEM, MI_LOAD_REGISTER_MEM, and MI_LOAD_REGISTER_IMM > > commands allow userspace access to registers. Only certain registers > > sho

[Intel-gfx] [PATCH v2 7/7] drm/i915: vlv: handle only enabled pipestat interrupt events

2014-02-05 Thread Imre Deak
Atm we call the handlers for pending pipestat interrupt events even if they aren't explicitly enabled by i915_enable_pipestat(). This isn't an issue for events other than the vblank start event, since those are always enabled anyways. Otoh, we enable the vblank start event on-demand, so we'll end u

[Intel-gfx] [PATCH v2 5/7] drm/i915: pass status instead of enable flags to i915_enable_pipestat

2014-02-05 Thread Imre Deak
There isn't any PSR interrupt enable bit for pipe A, so we couldn't enable it through the current API. Passing the corresponding status bits solves this and also makes the mapping between enable and status bits simpler on VLV (addressed in an upcoming patch). Except of checking for invalid status

[Intel-gfx] [PATCH v2 6/7] drm/i915: vlv: fix mapping of pipestat enable to status bits

2014-02-05 Thread Imre Deak
At least on VLV we can't get at the pipestat status bits by simply right shifting the corresponding enable bits. The mapping between enable and status bits for the sprite0,1 flip done and the PSR events don't follow this rule, so we need to map them separately. The PSR enable for pipe A is DPFLIPS

Re: [Intel-gfx] [PATCH 10/13] drm/i915: Enable PPGTT command parser checks

2014-02-05 Thread Volkin, Bradley D
[snip] On Wed, Feb 05, 2014 at 07:37:51AM -0800, Jani Nikula wrote: > On Wed, 29 Jan 2014, bradley.d.vol...@intel.com wrote: > > int i915_needs_cmd_parser(struct intel_ring_buffer *ring) > > { > > + drm_i915_private_t *dev_priv = > > + (drm_i915_private_t *)ring->dev->dev_private; >

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Volkin, Bradley D
On Wed, Feb 05, 2014 at 10:30:00AM -0800, Daniel Vetter wrote: > On Wed, Feb 5, 2014 at 7:18 PM, Volkin, Bradley D > wrote: > > On Wed, Feb 05, 2014 at 02:28:29AM -0800, Chris Wilson wrote: > >> On Tue, Nov 26, 2013 at 08:51:17AM -0800, bradley.d.vol...@intel.com wrote: > >> > From: Brad Volkin >

[Intel-gfx] [PATCH 2/2] drm/i915: Add Baytrail PSR Support.

2014-02-05 Thread Rodrigo Vivi
This patch adds PSR Support to Baytrail. Baytrail cannot easily detect screen updates and force PSR exit. So we inactivate it on {busy_ioctl, set_domain, sw_finish and mark_busy} and update to enable it back on next display mark_idle. v2: Also inactivate PSR on cursor update. v3: Inactivate PSR o

[Intel-gfx] [PATCH 1/2] drm/i915: Update PSR on resume.

2014-02-05 Thread Rodrigo Vivi
Since now on update is also been called out of set_base let's use a mutex to protec psr state changes. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_suspend.c | 4 drivers/gpu/drm/i915/intel_dp.c | 17 ++--- 3 files ch

[Intel-gfx] [PATCH] tests/kms_psr_sink_crc: Create test to test PSR by checking panel CRC.

2014-02-05 Thread Rodrigo Vivi
v2: Wait psr enable with timeout and more subtest added. v3: Add wait for v_blank leeting test more reliable and preparing to add Baytrail per-pipe tests. v4: Call busy_ioctl on mmap_gtt to match the real usage and remove the need of inactivate on set_domain, what was semantically wrong. v5

Re: [Intel-gfx] [PATCH v2 6/7] drm/i915: vlv: fix mapping of pipestat enable to status bits

2014-02-05 Thread Ville Syrjälä
On Wed, Feb 05, 2014 at 08:55:07PM +0200, Imre Deak wrote: > At least on VLV we can't get at the pipestat status bits by simply right > shifting the corresponding enable bits. The mapping between enable and > status bits for the sprite0,1 flip done and the PSR events don't follow > this rule, so we

Re: [Intel-gfx] Add reset subtest to pm_rps

2014-02-05 Thread Jeff McGee
Gentle ping on this patch set for igt. Thanks, Jeff ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] Add two new subtests to pm_rps

2014-02-05 Thread Jeff McGee
Gentle ping on this patch set for igt. Thanks, Jeff ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Daniel Vetter
On Wed, Feb 5, 2014 at 8:00 PM, Volkin, Bradley D wrote: > To test/merge, we'd have to change the series to take out the part where > patch 02/13 sets I915_DISPATCH_SECURE to avoid a BUG_ON() when > i915.enable_cmd_parser=1. > But yes, otherwise the parsing works and I think should be sufficient

[Intel-gfx] [PATCH v3 6/7] drm/i915: vlv: fix mapping of pipestat enable to status bits

2014-02-05 Thread Imre Deak
At least on VLV we can't get at the pipestat status bits by simply right shifting the corresponding enable bits. The mapping between enable and status bits for the sprite0,1 flip done and the PSR events don't follow this rule, so we need to map them separately. The PSR enable for pipe A is DPFLIPS

Re: [Intel-gfx] [RFC 00/22] Gen7 batch buffer command parser

2014-02-05 Thread Volkin, Bradley D
On Wed, Feb 05, 2014 at 11:17:25AM -0800, Daniel Vetter wrote: > On Wed, Feb 5, 2014 at 8:00 PM, Volkin, Bradley D > wrote: > > To test/merge, we'd have to change the series to take out the part where > > patch 02/13 sets I915_DISPATCH_SECURE to avoid a BUG_ON() when > > i915.enable_cmd_parser=1.

Re: [Intel-gfx] Add reset subtest to pm_rps

2014-02-05 Thread Daniel Vetter
On Wed, Feb 05, 2014 at 01:21:34PM -0600, Jeff McGee wrote: > Gentle ping on this patch set for igt. Both series pulled in, sorry for slacking off a bit. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _

Re: [Intel-gfx] Request for feedback - Sprite flip notification support

2014-02-05 Thread Vijay Purushothaman
On 2/5/2014 10:18 PM, Ville Syrjälä wrote: On Wed, Feb 05, 2014 at 09:25:36PM +0530, Vijay Purushothaman wrote: On 2/5/2014 8:43 PM, Ville Syrjälä wrote: On Wed, Feb 05, 2014 at 08:35:11PM +0530, Vijay Purushothaman wrote: Hello, In our current driver implementation we support flip notificati

Re: [Intel-gfx] [PATCH 2/7] drm/i915: factor out valleyview_pipestat_irq_handler

2014-02-05 Thread Jani Nikula
On Wed, 05 Feb 2014, Daniel Vetter wrote: > On Tue, Feb 04, 2014 at 09:35:46PM +0200, Imre Deak wrote: >> This will be used by other platforms too, so factor it out. >> >> The only functional change is the reordeing of gmbus_irq_handler() wrt. >> the hotplug handling, but since it only schedules