Re: [Intel-gfx] [PULL] drm-intel-next

2014-05-05 Thread Daniel Vetter
On Thu, May 1, 2014 at 1:26 AM, Dave Airlie airl...@gmail.com wrote: Merged, but 32-bit still a thing, CC [M] drivers/gpu/drm/i915/i915_cmd_parser.o /ssd/git/drm-next/drivers/gpu/drm/i915/i915_cmd_parser.c: In function ‘i915_parse_cmds’:

Re: [Intel-gfx] [PATCH] drm/i915: Sanitize the enable_ppgtt module option once

2014-05-05 Thread Alessandro Suardi
On Tue, Apr 29, 2014 at 12:44 PM, Chris Wilson ch...@chris-wilson.co.uk wrote: On Tue, Apr 29, 2014 at 11:53:58AM +0200, Daniel Vetter wrote: Otherwise we'll end up spamming dmesg on every context creation on snb with vt-d enabled. This regression was introduced in commit

[Intel-gfx] [PATCH v2] drm/i915: State readout and cross-checking for dp_m2_n2

2014-05-05 Thread Vandana Kannan
Adding relevant read out comparison code, in check_crtc_state, for the new member of crtc_config, dp_m2_n2, which was introduced to store link_m_n values for a DP downclock mode (if available). Suggested by Daniel. v2: Changed patch title. Daniel's review comments incorporated. Added relevant

[Intel-gfx] [PATCH 2/2] drm/i915: Flush request queue when waiting for ring space

2014-05-05 Thread Chris Wilson
During the review of commit 1f70999f9052f5a1b0ce1a55aff3808f2ec9fe42 Author: Chris Wilson ch...@chris-wilson.co.uk Date: Mon Jan 27 22:43:07 2014 + drm/i915: Prevent recursion by retiring requests when the ring is full Ville raised the point that our interaction with request-tail was

[Intel-gfx] [PATCH 1/2] drm/i915: Improve fallback ring waiting

2014-05-05 Thread Chris Wilson
A few improvements to the fallback method for waiting upon ring space: 1. Fix the start/end wait tracepoints to always be paired. 2. Increase responsiveness of checking 3. Mark the process as waiting upon io 4. Check for signal interruptions Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk

Re: [Intel-gfx] [PATCH v2] drm/i915: Pre-allocation of shmem pages of a GEM object

2014-05-05 Thread Chris Wilson
On Mon, May 05, 2014 at 09:55:29AM +0530, akash.g...@intel.com wrote: From: Akash Goel akash.g...@intel.com This patch could help to reduce the time, 'struct_mutex' is kept locked during either the exec-buffer path or Page fault handling path as now the backing pages are requested from shmem

[Intel-gfx] [PULL] topic/core-stuff

2014-05-05 Thread Daniel Vetter
Hi Dave, Update pull request with drm core patches. Mostly some polish for the primary plane stuff and a pile of patches all over from Thierry. Has survived a few days in drm-intel-nightly without causing ill. I've frobbed my scripts a bit to also tag my topic branches so that you have something

Re: [Intel-gfx] [RFC] libdrm_intel: Add support for userptr objects

2014-05-05 Thread Daniel Vetter
On Fri, May 02, 2014 at 10:15:30AM -0700, Ben Widawsky wrote: On Fri, May 02, 2014 at 11:27:45AM +0100, Tvrtko Ursulin wrote: On 05/01/2014 07:47 PM, Ben Widawsky wrote: On Wed, Feb 26, 2014 at 04:41:41PM +, Tvrtko Ursulin wrote: From: Tvrtko Ursulin tvrtko.ursu...@intel.com

[Intel-gfx] [RFC] drm/i915: Scratch page optimization for blanking buffer

2014-05-05 Thread akash . goel
From: Akash Goel akash.g...@intel.com There is a use case, when user space (display compositor) tries to directly flip a fb (without any prior rendering) on primary plane. So the backing pages of the object are allocated at page flip time only, which takes time. Since, this buffer is supposed to

Re: [Intel-gfx] [RFC] drm/i915: Scratch page optimization for blanking buffer

2014-05-05 Thread Chris Wilson
On Mon, May 05, 2014 at 05:13:18PM +0530, akash.g...@intel.com wrote: From: Akash Goel akash.g...@intel.com There is a use case, when user space (display compositor) tries to directly flip a fb (without any prior rendering) on primary plane. So the backing pages of the object are allocated

[Intel-gfx] [PATCH v4 25/25] drm/i915: vlv: add runtime PM support

2014-05-05 Thread Imre Deak
Add runtime PM support for VLV, but leave it disabled. The next patch enables it. The suspend/resume sequence used is based on [1] and [2]. In practice we depend on the GT RC6 mechanism to save the HW context depending on the render and media power wells. By the time we run the runtime suspend

Re: [Intel-gfx] [RFC] drm/i915: Scratch page optimization for blanking buffer

2014-05-05 Thread Akash Goel
On Mon, 2014-05-05 at 12:47 +0100, Chris Wilson wrote: On Mon, May 05, 2014 at 05:13:18PM +0530, akash.g...@intel.com wrote: From: Akash Goel akash.g...@intel.com There is a use case, when user space (display compositor) tries to directly flip a fb (without any prior rendering) on

Re: [Intel-gfx] [RFC] drm/i915: Scratch page optimization for blanking buffer

2014-05-05 Thread Chris Wilson
On Mon, May 05, 2014 at 06:03:17PM +0530, Akash Goel wrote: On Mon, 2014-05-05 at 12:47 +0100, Chris Wilson wrote: On Mon, May 05, 2014 at 05:13:18PM +0530, akash.g...@intel.com wrote: From: Akash Goel akash.g...@intel.com There is a use case, when user space (display compositor)

Re: [Intel-gfx] [PATCH v3 24/25] drm/i915: propagate the error code from runtime PM callbacks

2014-05-05 Thread Ville Syrjälä
On Wed, Apr 30, 2014 at 09:53:08PM +0300, Imre Deak wrote: On Wed, 2014-04-30 at 21:05 +0300, Ville Syrjälä wrote: On Tue, Apr 15, 2014 at 04:39:45PM +0300, Imre Deak wrote: Atm, none of the RPM callbacks can fail, but the next patch adding RPM support for VLV changes this, so prepare for

[Intel-gfx] [PATCH 01/10] drm/i915/bdw: Implement a basic PM interrupt handler

2014-05-05 Thread deepak . s
From: Ben Widawsky benjamin.widaw...@intel.com Almost all of it is reusable from the existing code. The primary difference is we need to do even less in the interrupt handler, since interrupts are not shared in the same way. The patch is mostly a copy-paste of the existing snb+ code, with

[Intel-gfx] [PATCH 04/10] drm/i915/chv: Added CHV specific register read and write

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com Support to individually control Media/Render well based on the register access. Add CHV specific write function to habdle difference between registers that are sadowed vs those that need forcewake even for writes. v2: Drop write FIFO for CHV and add comman

[Intel-gfx] [PATCH 02/10] drm/i915: Enable PM Interrupts target via Display Interface.

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com In BDW, Apart from unmasking up/down threshold interrupts. we need to umask bit 32 of PM_INTRMASK to route interrupts to target via Display Interface. v2: Add (131) mask (Ville) Signed-off-by: Deepak S deepa...@linux.intel.com ---

[Intel-gfx] [PATCH 00/10] Enable RC6/Turbo on CHV

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com Squashed some of the patches and created a new patch series. Addressed review comments on most of the patches. Ben Widawsky (1): drm/i915/bdw: Implement a basic PM interrupt handler Deepak S (7): drm/i915: Enable PM Interrupts target via Display

[Intel-gfx] [PATCH 03/10] drm/i915/chv: Enable Render Standby (RC6) for Cherryview

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com v2: Configure PCBR if BIOS fails allocate pcbr (deepak) v3: Fix PCBR condition check during CHV RC6 Enable flag set v4: Fixup PCBR comment msg. (Chris) Rebase against latest code (Deak) Fixup Spurious hunk (Ben) Signed-off-by: Deepak S

[Intel-gfx] [PATCH 10/10] drm/i915/chv: Freq(opcode) request for CHV.

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com On CHV, All the freq request should be even. So, we need to make sure we request the opcode accordingly. Signed-off-by: Deepak S deepa...@linux.intel.com Reviewed-by: Ben Widawsky b...@bwidawsk.net --- drivers/gpu/drm/i915/i915_drv.h | 1 +

[Intel-gfx] [PATCH 07/10] drm/i915/chv: CHV doesn't need WaRsForcewakeWaitTC0

2014-05-05 Thread deepak . s
From: Ville Syrjälä ville.syrj...@linux.intel.com Skip __gen6_gt_wait_for_thread_c0() on CHV. Reviewed-by: Mika Kuoppala mika.kuopp...@intel.com Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_uncore.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[Intel-gfx] [PATCH 06/10] drm/i915/chv: Enable RPS (Turbo) for Cherryview

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com v2: Disable media turbo and Add DOWN_IDLE_AVG support (Ville) v3: Mass rename of the dev_priv-rps variables in upstream. v4: Rebase against latest code. (Deepak) Signed-off-by: Deepak S deepa...@linux.intel.com Signed-off-by: Daniel Vetter

[Intel-gfx] [PATCH 09/10] drm/i915/chv: Added CHV specific DDR fetch into init_clock_gating

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com Signed-off-by: Deepak S deepa...@linux.intel.com [vsyrjala: Fix merge fubmle where the code ended up in g4x_disable_trickle_feed() instead of cherryview_init_clock_gating()] Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com Acked-by: Ben Widawsky

[Intel-gfx] [PATCH 05/10] drm/i915/chv: Streamline CHV forcewake stuff

2014-05-05 Thread deepak . s
From: Deepak S deepa...@linux.intel.com Streamline the CHV forcewake functions just like was done for VLV. This will also fix a bug in accessing the common well registers, where we'd end up trying to wake up the wells too many times since we'd call force_wake_get/put twice per register access,

[Intel-gfx] [PATCH 08/10] drm/i915/chv: Skip gen6_gt_check_fifodbg() on CHV

2014-05-05 Thread deepak . s
From: Ville Syrjälä ville.syrj...@linux.intel.com CHV uses the gen8 shadow register mechanism so we shouldn't be checking the GT FIFO status. This effectively removes the posting read, so add an explicit posting read using FORCEWAKE_ACK_VLV (which is what use in vlv_forcewake_reset()).

Re: [Intel-gfx] [RFC] drm/i915: Scratch page optimization for blanking buffer

2014-05-05 Thread Akash Goel
On Mon, 2014-05-05 at 13:39 +0100, Chris Wilson wrote: On Mon, May 05, 2014 at 06:03:17PM +0530, Akash Goel wrote: On Mon, 2014-05-05 at 12:47 +0100, Chris Wilson wrote: On Mon, May 05, 2014 at 05:13:18PM +0530, akash.g...@intel.com wrote: From: Akash Goel akash.g...@intel.com

Re: [Intel-gfx] [PATCH] drm/i915: Support 64b execbuf

2014-05-05 Thread Daniel Vetter
On Thu, May 01, 2014 at 10:18:52AM +, Barbalho, Rafael wrote: -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of Chris Wilson Sent: Thursday, May 01, 2014 9:13 AM To: Widawsky, Benjamin Cc: Intel GFX Subject: Re: [Intel-gfx]

Re: [Intel-gfx] [PATCH] drm/i915: Support 64b relocations

2014-05-05 Thread Daniel Vetter
On Thu, May 01, 2014 at 09:04:50AM +0100, Chris Wilson wrote: On Mon, Apr 28, 2014 at 05:18:28PM -0700, Ben Widawsky wrote: All the rest of the code to enable this is in my branch. Without my branch, hitting 32b offsets is impossible. The code has always supported 64b, but it's never

Re: [Intel-gfx] [RFC] drm/i915: Scratch page optimization for blanking buffer

2014-05-05 Thread Daniel Vetter
On Mon, May 05, 2014 at 05:13:18PM +0530, akash.g...@intel.com wrote: From: Akash Goel akash.g...@intel.com There is a use case, when user space (display compositor) tries to directly flip a fb (without any prior rendering) on primary plane. So the backing pages of the object are allocated

Re: [Intel-gfx] [PATCH 07/71] drm/i915/chv: Add DPFLIPSTAT register bits for Cherryview

2014-05-05 Thread Daniel Vetter
On Fri, May 02, 2014 at 11:29:16AM +0300, Ville Syrjälä wrote: On Thu, May 01, 2014 at 01:55:23PM +, Barbalho, Rafael wrote: -Original Message- From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of ville.syrj...@linux.intel.com Sent: Wednesday,

[Intel-gfx] [PATCH v1 0/3] Adding support for plane constant alpha drm property.

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble sagar.a.kam...@intel.com This patch series introduces drm property for plane level alpha. These patches are based on following patches which are already under review/reviewed: Documentation: drm: describing drm properties exposed by various drivers Propagate the error from

[Intel-gfx] [PATCH v1 1/3] drm/i915: Add set_property function for planes

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble sagar.a.kam...@intel.com Cc: daniel.vet...@ffwll.ch Cc: jani.nik...@linux.intel.com Cc: ville.syrj...@linux.intel.com Cc: indranil.mukher...@intel.com Cc: shashidhar.hirem...@intel.com Cc: vandita.kulka...@intel.com Cc: vijay.a.purushotha...@intel.com Cc:

[Intel-gfx] [PATCH v1 3/3] Documentation: drm: describing plane constant alpha property

2014-05-05 Thread sagar . a . kamble
From: Sagar Kamble sagar.a.kam...@intel.com Cc: rdun...@infradead.org Cc: alexander.deuc...@amd.com Cc: airl...@redhat.com Cc: laurent.pinch...@ideasonboard.com Cc: dh.herrm...@gmail.com Cc: daniel.vet...@ffwll.ch Cc: jani.nik...@linux.intel.com Cc: ville.syrj...@linux.intel.com Cc:

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Flush request queue when waiting for ring space

2014-05-05 Thread Ben Widawsky
On Mon, May 05, 2014 at 09:07:33AM +0100, Chris Wilson wrote: During the review of commit 1f70999f9052f5a1b0ce1a55aff3808f2ec9fe42 Author: Chris Wilson ch...@chris-wilson.co.uk Date: Mon Jan 27 22:43:07 2014 + drm/i915: Prevent recursion by retiring requests when the ring is

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Flush request queue when waiting for ring space

2014-05-05 Thread Chris Wilson
On Mon, May 05, 2014 at 11:49:12AM -0700, Ben Widawsky wrote: On Mon, May 05, 2014 at 09:07:33AM +0100, Chris Wilson wrote: During the review of commit 1f70999f9052f5a1b0ce1a55aff3808f2ec9fe42 Author: Chris Wilson ch...@chris-wilson.co.uk Date: Mon Jan 27 22:43:07 2014 +