[Intel-gfx] [PULL] topic/drm-misc

2015-05-27 Thread Daniel Vetter
Hi Dave, One more round of drm-misc, again mostly atomic. Big thing is the userspace blob code from Daniel Stone, with support for the mode_id blob now added to the atomic ioctl. Finally we can do atomic modesets! Note that the atomic ioctl is still behind the module knob since the weston patches

Re: [Intel-gfx] [PATCH 02/13] drm/i915/skl: Make sure to break when not finding suitable PLL dividers

2015-05-27 Thread Jani Nikula
On Wed, 27 May 2015, Paulo Zanoni wrote: > 2015-05-07 14:38 GMT-03:00 Damien Lespiau : >> Right now, when finishing the cycle with odd dividers without finding a >> suitable candidate, we end up in an infinite loop. Make sure to break in >> that case. > > Cc stable? No, fixes for platforms that r

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Throw out WIP CHV power well definitions

2015-05-27 Thread Ville Syrjälä
On Wed, May 27, 2015 at 02:06:27PM +0200, Daniel Vetter wrote: > On Tue, May 26, 2015 at 08:22:39PM +0300, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Expecting CHV power wells to be just an extended versions of the VLV > > power wells, a bunch of commented out power well

Re: [Intel-gfx] [PATCH v2] drm/i915/hsw: Fix workaround for server AUX channel clock divisor

2015-05-27 Thread Jani Nikula
On Wed, 27 May 2015, jim.br...@linux.intel.com wrote: > From: Jim Bride > > According to the HSW b-spec we need to try clock divisors of 63 > and 72, each 3 or more times, when attempting DP AUX channel > communication on a server chipset. This actually wasn't happening > due to a short-circuit t

Re: [Intel-gfx] [PATCH v3 08/22] drm/i915: Zap call to drm_plane_helper_disable.

2015-05-27 Thread Matt Roper
On Wed, May 20, 2015 at 03:38:13PM +0200, Maarten Lankhorst wrote: > The primary plane can still be configured when crtc is off, > furthermore this is also a noop now that affected planes are > added on modesets. > > Signed-off-by: Maarten Lankhorst This was added in patch #2. Can we squash thi

Re: [Intel-gfx] [PATCH 13/13] drm/i915/skl: Prefer even dividers for SKL DPLLs

2015-05-27 Thread Paulo Zanoni
2015-05-27 18:39 GMT-03:00 Paulo Zanoni : > 2015-05-07 14:38 GMT-03:00 Damien Lespiau : >> Currently, if an odd divider improves the deviation (minimizes it), we >> take that divider. The recommendation is to prefer even dividers. > > The doc says "It is preferred to get as close to the DCO central

Re: [Intel-gfx] [PATCH 12/13] drm/i915/skl: Replace the HDMI DPLL divider computation algorithm

2015-05-27 Thread Paulo Zanoni
2015-05-27 18:28 GMT-03:00 Paulo Zanoni : > 2015-05-07 14:38 GMT-03:00 Damien Lespiau : >> The HW validation team came back from further testing with a slightly >> changed constraint on the deviation between the DCO frequency and the >> central frequency. Instead of +-4%, it's now +1%/-6%. >> >> Un

Re: [Intel-gfx] [PATCH v4 00/12] All sort of cdclk stuff

2015-05-27 Thread Joe Konno
Do we have an idea when this patch series will be reviewed? Customers are awaiting for this to be merged to the drm-intel fd.o repository. Cheers On 05/22/2015 01:22 AM, Mika Kahola wrote: > This patch series rebases Ville's original cdclk patch series > excluding the ones that are already

Re: [Intel-gfx] [PATCH 13/13] drm/i915/skl: Prefer even dividers for SKL DPLLs

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > Currently, if an odd divider improves the deviation (minimizes it), we > take that divider. The recommendation is to prefer even dividers. The doc says "It is preferred to get as close to the DCO central frequency as possible, but using an even divider

Re: [Intel-gfx] [PATCH 12/13] drm/i915/skl: Replace the HDMI DPLL divider computation algorithm

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > The HW validation team came back from further testing with a slightly > changed constraint on the deviation between the DCO frequency and the > central frequency. Instead of +-4%, it's now +1%/-6%. > > Unfortunately, the previous algorithm didn't quite

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use intel_plane_obj_offset from more places

2015-05-27 Thread Chris Wilson
On Wed, May 27, 2015 at 10:52:34AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > These are the display call sites so should use the proper helper. > > Also requires intel_plane_obj_offset to assume normal view when > plane pointer is not available. Eugh. If only the plane stored the o

Re: [Intel-gfx] [PATCH] drm/i915: disable IPS while getting the sink CRCs

2015-05-27 Thread Rodrigo Vivi
On Wed, May 27, 2015 at 1:14 PM, Paulo Zanoni wrote: > 2015-05-27 17:06 GMT-03:00 Rodrigo Vivi : >> On Wed, May 27, 2015 at 12:42 PM, Paulo Zanoni wrote: >>> 2015-05-27 16:35 GMT-03:00 Rodrigo Vivi : I didn't face this since I was letting IPS disabled on my tests here and the platforms

Re: [Intel-gfx] [PATCH] drm/i915: disable IPS while getting the sink CRCs

2015-05-27 Thread Paulo Zanoni
2015-05-27 17:06 GMT-03:00 Rodrigo Vivi : > On Wed, May 27, 2015 at 12:42 PM, Paulo Zanoni wrote: >> 2015-05-27 16:35 GMT-03:00 Rodrigo Vivi : >>> I didn't face this since I was letting IPS disabled on my tests here >>> and the platforms that I'm mostly concerned about sink CRC not working >>> wel

Re: [Intel-gfx] [PATCH] drm/i915: disable IPS while getting the sink CRCs

2015-05-27 Thread Rodrigo Vivi
On Wed, May 27, 2015 at 12:42 PM, Paulo Zanoni wrote: > 2015-05-27 16:35 GMT-03:00 Rodrigo Vivi : >> I didn't face this since I was letting IPS disabled on my tests here >> and the platforms that I'm mostly concerned about sink CRC not working >> well are the ones that doesn't have IPS. >> >> I'm

Re: [Intel-gfx] [PATCH 11/13] drm/i915/skl: Don't try to store the wrong central frequency

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > The orignal code started by storing the actual central frequency (in Hz, > using a uint64_t) in a uint32_t which codes for the register value. That > can't be right. > > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/intel_ddi.c | 2 -- >

Re: [Intel-gfx] [PATCH 10/13] drm/i915: Correctly prefix HSW/BDW HDMI clock functions

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > Those functions were the only one in existence when they were > introduced. We now now they are only valid for HSW/BDW. s/now now/now know/ Reviewed-by: Paulo Zanoni > > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/intel_ddi.c | 25 +

Re: [Intel-gfx] [PATCH] drm/i915: disable IPS while getting the sink CRCs

2015-05-27 Thread Paulo Zanoni
2015-05-27 16:35 GMT-03:00 Rodrigo Vivi : > I didn't face this since I was letting IPS disabled on my tests here > and the platforms that I'm mostly concerned about sink CRC not working > well are the ones that doesn't have IPS. > > I'm not sure this is the right way to solve this issue. Maybe we w

Re: [Intel-gfx] [PATCH] drm/i915: disable IPS while getting the sink CRCs

2015-05-27 Thread Rodrigo Vivi
I didn't face this since I was letting IPS disabled on my tests here and the platforms that I'm mostly concerned about sink CRC not working well are the ones that doesn't have IPS. I'm not sure this is the right way to solve this issue. Maybe we want to know the sink CRC when IPS is on. I believe

Re: [Intel-gfx] [PATCH 08/13] drm/i915/skl: Remove unnecessary () used with abs_diff()

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > abs_diff() properly protects its parameters, so no need for the outer () > here. Patches 3, 4, 5, 6, 7 and 8: Reviewed-by: Paulo Zanoni > > Signed-off-by: Damien Lespiau > --- > drivers/gpu/drm/i915/intel_ddi.c | 2 +- > 1 file changed, 1 insertion

Re: [Intel-gfx] [PATCH 09/13] drm/i915/skl: Use MISSING_CASE() in skl_wrpll_params_populate()

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > We now have a special macro for those cases. I'm not sure if this patch is an improvement. Before it, we always knew which "switch" statement was bad since we used to print either "PDiv" or "KDiv". After the patch, it will not be possible to know from

Re: [Intel-gfx] [PATCH 15/21] drm/i915/gtt: Fill scratch page

2015-05-27 Thread Tomas Elf
On 22/05/2015 18:05, Mika Kuoppala wrote: During review of dynamic page tables series, I was able to hit a lite restore bug with execlists. I assume that due to incorrect pd, the batch run out of legit address space and into the scratch page area. The ACTHD was increasing due to scratch being all

Re: [Intel-gfx] [PATCH 02/13] drm/i915/skl: Make sure to break when not finding suitable PLL dividers

2015-05-27 Thread Paulo Zanoni
2015-05-07 14:38 GMT-03:00 Damien Lespiau : > Right now, when finishing the cycle with odd dividers without finding a > suitable candidate, we end up in an infinite loop. Make sure to break in > that case. Cc stable? Reviewed-by: Paulo Zanoni > > Signed-off-by: Damien Lespiau > --- > drivers/

[Intel-gfx] [PATCH v2] drm/i915/hsw: Fix workaround for server AUX channel clock divisor

2015-05-27 Thread jim . bride
From: Jim Bride According to the HSW b-spec we need to try clock divisors of 63 and 72, each 3 or more times, when attempting DP AUX channel communication on a server chipset. This actually wasn't happening due to a short-circuit that only checked the DP_AUX_CH_CTL_DONE bit in status rather than

Re: [Intel-gfx] [RFC PATCH 00/11] drm/i915: Expose OA metrics via perf PMU

2015-05-27 Thread Ingo Molnar
* Peter Zijlstra wrote: > > As it is currently the kernel doesn't need to know anything about the > > semantics of individual counters being selected, so it's currently > > convenient > > that we can aim to maintain all the counter meta data we have in userspace > > according to the changing

[Intel-gfx] [PATCH i-g-t v3] lib/tests/igt_segfault.c Add unit test to test segfault handling

2015-05-27 Thread Derek Morton
Unit test to check a segfaulting subtest is handled correctly. v2: Added script to check subtest results v3: Removed script. Updated test to use fork to monitor return status. Signed-off-by: Derek Morton --- lib/tests/Makefile.sources | 1 + lib/tests/igt_segfault.c | 139 ++

Re: [Intel-gfx] [RFC PATCH 00/11] drm/i915: Expose OA metrics via perf PMU

2015-05-27 Thread Peter Zijlstra
On Thu, May 21, 2015 at 12:17:48AM +0100, Robert Bragg wrote: > > > > So for me the 'natural' way to represent this in perf would be through > > event groups. Create a perf event for every single event -- yes this is > > 53 events. > > So when I was first looking at this work I had considered the

[Intel-gfx] [PATCH i-g-t] scripts/run-tests.sh: add option to not retry incomplete tests on resume

2015-05-27 Thread Mike Mason
This patch utilizes piglit's new --no-retry option. That option prevents incomplete tests from being retried when resuming a test run. This is necessary because retrying tests that cause a crash or reboot prevents a test run from being resumed. This patch also adds -s to the piglit command line. T

[Intel-gfx] [drm-intel:topic/drm-misc 17/19] DockBook: Warning(include/drm/drm_crtc.h:1190): No description found for parameter 'prop_mode_id'

2015-05-27 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel topic/drm-misc head: 5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f commit: 955f3c334f0fb2b843efad5cc6d3b7e141e9d666 [17/19] drm/atomic: Add MODE_ID property reproduce: make htmldocs All warnings: Warning(drivers/gpu/drm/i915/i915_irq.c:484): No des

Re: [Intel-gfx] [PATCH i-g-t] scripts/run-tests.sh: Allow adding excluded tests on resume

2015-05-27 Thread Mason, Michael W
Abandoning this patch because the piglit patch on which it depends was not accepted. I will submit a new patch that uses the approved piglit change. From: Mason, Michael W Sent: Monday, May 18, 2015 2:59 PM To: intel-gfx@lists.freedesktop.org Cc: Mason, Mic

[Intel-gfx] [drm-intel:topic/drm-misc 16/19] DockBook: Warning(include/drm/drm_crtc.h:308): No description found for parameter 'mode_blob'

2015-05-27 Thread kbuild test robot
tree: git://anongit.freedesktop.org/drm-intel topic/drm-misc head: 5ceecb2fa720c01a97e6fa2353c2b8f1e8d69f1f commit: 99cf4a29fa24461bbfe22125967188a18383eb5c [16/19] drm/atomic: Add current-mode blob to CRTC state reproduce: make htmldocs All warnings: Warning(drivers/gpu/drm/i915/i915_irq

Re: [Intel-gfx] [PATCH i-g-t] kms_rotation_crc: Update rotation direction for kernel changes

2015-05-27 Thread Damien Lespiau
On Tue, May 26, 2015 at 04:48:40AM +, Jindal, Sonika wrote: > Thanks for sending this.. I realized that I had a patch for this which I > never sent :) > > Reviewed-by: Sonika Jindal Pushed, thanks for the patch and review. Probably a good time to start thinking about applying for an fdo acc

Re: [Intel-gfx] [PATCH i-g-t v2] lib/tests/igt_segfault.c Add unit test to test segfault handling

2015-05-27 Thread Morton, Derek J
>-Original Message- >From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel Vetter >Sent: Wednesday, May 27, 2015 1:20 PM >To: Morton, Derek J >Cc: intel-gfx@lists.freedesktop.org; Wood, Thomas >Subject: Re: [Intel-gfx] [PATCH i-g-t v2] lib/tests/igt_segfault.c Add unit >

Re: [Intel-gfx] [PATCH 5/7] drm/i915: abstract port hotplug long pulse detection more

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 03:03:43PM +0300, Jani Nikula wrote: > Add platform specific functions to decipher the register contents > instead of just returning the shift value. Use macros instead of magic > numbers to look at the register bits. > > As a side effect, if an unsupported port is passed,

Re: [Intel-gfx] [PATCH 5/7] drm/i915: abstract port hotplug long pulse detection more

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 02:41:29PM +0200, Daniel Vetter wrote: > On Wed, May 27, 2015 at 03:03:43PM +0300, Jani Nikula wrote: > > Add platform specific functions to decipher the register contents > > instead of just returning the shift value. Use macros instead of magic > > numbers to look at the r

Re: [Intel-gfx] [PATCH i-g-t] tests/pm_backlight: Add backlight test

2015-05-27 Thread Antti Koskipää
On 05/26/2015 02:37 PM, Jani Nikula wrote: > On Sat, 23 May 2015, Antti Koskipaa wrote: >> This is a basic sanity test of the backlight sysfs interface. >> >> Issue: VIZ-3377 >> Signed-off-by: Antti Koskipaa >> --- >> tests/.gitignore | 1 + >> tests/Makefile.sources | 1 + >> tests/pm

Re: [Intel-gfx] [RFC 09/12] drm/i915/config: Add VBT settings configuration.

2015-05-27 Thread Daniel Vetter
On Tue, May 26, 2015 at 02:20:00PM -0700, Bob Paauwe wrote: > On Thu, 21 May 2015 10:37:07 +0200 > Daniel Vetter wrote: > > > On Wed, May 20, 2015 at 10:07:58AM -0700, Bob Paauwe wrote: > > > On Fri, 15 May 2015 12:39:20 +0300 > > > Ville Syrjälä wrote: > > > > > > > On Tue, Feb 24, 2015 at 09:

Re: [Intel-gfx] [PATCH i-g-t v2] lib/tests/igt_segfault.c Add unit test to test segfault handling

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 10:34:26AM +0100, Derek Morton wrote: > Unit test to check a segfaulting subtest is handled correctly. > > v2: Added script to check subtest results > > Signed-off-by: Derek Morton > --- > lib/tests/Makefile.sources | 3 ++ > lib/tests/igt_segfault.c| 57 ++

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Adjust sideband locking a bit for CHV/VLV

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 11:03:09AM +0300, Jani Nikula wrote: > On Tue, 26 May 2015, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > chv_enable_pll() doesn't need to hold sb_lock for the entire duration of > > the function. Drop the lock as soon as possible. > > > > valleyview_

Re: [Intel-gfx] [PATCH] drm/i915: Kill intel_flush_primary_plane()

2015-05-27 Thread Daniel Vetter
On Tue, May 26, 2015 at 08:27:23PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > The primary plane frobbing was removed from the sprite code in > commit ecce87ea3ab55ad0dc64460e6422c357d158a55e > Author: Maarten Lankhorst > Date: Tue Apr 21 17:12:50 2015 +0300 > >

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Throw out WIP CHV power well definitions

2015-05-27 Thread Daniel Vetter
On Tue, May 26, 2015 at 08:22:39PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Expecting CHV power wells to be just an extended versions of the VLV > power wells, a bunch of commented out power wells were added in > anticipation when Punit folks would implement it all. T

[Intel-gfx] [PATCH 6/7] drm/i915: remove useless DP and DDI encoder ->hot_plug hooks

2015-05-27 Thread Jani Nikula
The hotplug callbacks for DP and DDI effectively did nothing. Remove them. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_ddi.c | 15 --- drivers/gpu/drm/i915/intel_dp.c | 7 --- 2 files changed, 22 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/driver

[Intel-gfx] [PATCH 7/7] drm/i915/dsi: remove non-op hot plug callback

2015-05-27 Thread Jani Nikula
Not needed or used. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dsi.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/drm/i915/intel_dsi.c index 51966426addf..3a93cdac757a 100644 --- a/drivers/gpu/drm/i915/intel_dsi.c +++ b/dr

[Intel-gfx] [PATCH 4/7] drm/i915: group all hotplug related fields into a new struct in dev_priv

2015-05-27 Thread Jani Nikula
There are plenty of hotplug related fields in struct drm_i915_private scattered all around. Group them under one hotplug struct. Clean up naming while at it. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_dma.c | 8 ++-- drivers/gpu/drm/i915/i915_drv.c | 12 ++

[Intel-gfx] [PATCH 5/7] drm/i915: abstract port hotplug long pulse detection more

2015-05-27 Thread Jani Nikula
Add platform specific functions to decipher the register contents instead of just returning the shift value. Use macros instead of magic numbers to look at the register bits. As a side effect, if an unsupported port is passed, consistently return false (indicating short hotplug) instead of returni

[Intel-gfx] [PATCH 0/7] drm/i915 hotplug cleanup

2015-05-27 Thread Jani Nikula
Trying to make the hotplug code a bit nicer to work with. Hopefully more to follow. BR, Jani. Jani Nikula (7): drm/i915: reduce indent in i9xx_hpd_irq_handler drm/i915: reduce duplicate conditions in i9xx_hpd_irq_handler drm/i915: reduce indent in intel_hpd_irq_handler drm/i915: group al

[Intel-gfx] [PATCH 1/7] drm/i915: reduce indent in i9xx_hpd_irq_handler

2015-05-27 Thread Jani Nikula
Bail out early if nothing to do. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_irq.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index

[Intel-gfx] [PATCH 3/7] drm/i915: reduce indent in intel_hpd_irq_handler

2015-05-27 Thread Jani Nikula
Continue to loop early if there's nothing to do. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_irq.c | 49 ++--- 1 file changed, 26 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm

Re: [Intel-gfx] [PATCH i-g-t] lib/tests/igt_segfault.c Add unit test to test segfault handling

2015-05-27 Thread Daniel Vetter
On Tue, May 26, 2015 at 04:47:45PM +, Morton, Derek J wrote: > -Original Message- > From: daniel.vet...@ffwll.ch [mailto:daniel.vet...@ffwll.ch] On Behalf Of > Daniel Vetter > Sent: Tuesday, May 26, 2015 4:27 PM > To: Morton, Derek J > Cc: intel-gfx; Wood, Thomas > Subject: Re: [Intel-

[Intel-gfx] [PATCH 2/7] drm/i915: reduce duplicate conditions in i9xx_hpd_irq_handler

2015-05-27 Thread Jani Nikula
Move dp aux irq handling within the same branch instead of duplicating the conditions. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_irq.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/dr

Re: [Intel-gfx] [PATCH 15/16] drm/i915: Wa32bitGeneralStateOffset & Wa32bitInstructionBaseOffset

2015-05-27 Thread Daniel Vetter
On Tue, May 26, 2015 at 09:16:11PM +0100, Chris Wilson wrote: > On Tue, May 26, 2015 at 05:25:48PM +0200, Daniel Vetter wrote: > > On Tue, May 26, 2015 at 03:21:22PM +0100, Michel Thierry wrote: > > > There are some allocations that must be only referenced by 32bit > > > offsets. > > > > To limit

[Intel-gfx] [PULL] topic/drm-fixes

2015-05-27 Thread Jani Nikula
Hi Dave, here's a drm regression fix for drivers only partially converted to atomic. BR, Jani. The following changes since commit 030bbdbf4c833bc69f502eae58498bc5572db736: Linux 4.1-rc3 (2015-05-10 15:12:29 -0700) are available in the git repository at: git://anongit.freedesktop.org/drm-i

Re: [Intel-gfx] [PATCH] drm/i915/skl: changed the filename of csr firmware

2015-05-27 Thread Daniel Vetter
On Tue, May 26, 2015 at 05:21:56PM -0700, Rodrigo Vivi wrote: > On Thu, May 21, 2015 at 5:04 AM, Animesh Manna > wrote: > > Naming convention of csr firmware will be - > > _dmc__.bin > > > > Accordingly updated the same in code. > > > > Signed-off-by: Animesh Manna > > --- > > drivers/gpu/drm/i

Re: [Intel-gfx] [PATCH i-g-t 4/3] tests/gem_ctx_param_basic: Expand ctx_param tests

2015-05-27 Thread Daniel Vetter
On Thu, May 21, 2015 at 12:44:53PM +0300, David Weinehall wrote: > tests/gem_ctx_param_basic: Expand ctx_param tests > > Expand the context parameter tests to cover the > no-zeromap parameter. > > Signed-off-by: David Weinehall > --- > gem_ctx_param_basic.c | 24 +++- > 1

Re: [Intel-gfx] [PATCH 00/03] Preventing zero GPU virtual address allocation

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 07:54:44AM +, Zou, Nanhai wrote: > > -Original Message- > > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf > > Of > > Daniel Vetter > > Sent: Thursday, May 21, 2015 12:01 AM > > To: Chris Wilson; intel-gfx > > Subject: Re: [Intel-gfx]

Re: [Intel-gfx] [PATCH v3 15/22] drm/i915: Read hw state into an atomic state struct

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 07:30:01AM +0200, Maarten Lankhorst wrote: > Hey, > > Op 20-05-15 om 18:04 schreef maarten.lankho...@linux.intel.com: > > From: Ander Conselvan de Oliveira > > > > To make this work we load the new hardware state into the > > atomic_state, then swap it with the sw state. >

Re: [Intel-gfx] [PATCH] drm/i915: Remove unnecessary null check in execlists_context_unqueue

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 12:49:52PM +0300, Jani Nikula wrote: > On Mon, 27 Apr 2015, Michel Thierry wrote: > > commit 53292cdb066950611e5bc2e0eb109c7edb42af78 ("drm/i915: Workaround > > to avoid lite restore with HEAD==TAIL") added a check for req0 != null > > which is unnecessary. > > > > The only

[Intel-gfx] [PATCH 3/3] drm/i915: Use intel_plane_obj_offset from more places

2015-05-27 Thread Tvrtko Ursulin
From: Tvrtko Ursulin These are the display call sites so should use the proper helper. Also requires intel_plane_obj_offset to assume normal view when plane pointer is not available. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/intel_display.c | 8 +--- drivers/gpu/drm/i915/inte

[Intel-gfx] [PATCH 2/3] drm/i915: Show human readable GGTT view name in debugfs

2015-05-27 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Makes it a little bit more debug friendly not having to remember which number is what. Signed-off-by: Tvrtko Ursulin Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_debugfs.c | 11 ++- drivers/gpu/drm/i915/i915_gem_gtt.c | 11 +++ drivers/gpu/drm/i915/i9

[Intel-gfx] [PATCH 1/3] drm/i915: Only show view type for GGTT VMAs

2015-05-27 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Printing it for PPGTT VMAs only adds noise since we have defined view types are only applicable for GGTT. Signed-off-by: Tvrtko Ursulin Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_debugfs.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --g

Re: [Intel-gfx] [PATCH] drm/i915: Remove unnecessary null check in execlists_context_unqueue

2015-05-27 Thread Jani Nikula
On Mon, 27 Apr 2015, Michel Thierry wrote: > commit 53292cdb066950611e5bc2e0eb109c7edb42af78 ("drm/i915: Workaround > to avoid lite restore with HEAD==TAIL") added a check for req0 != null > which is unnecessary. > > The only way req0 could be null is if the list was empty, and this is > already a

Re: [Intel-gfx] [PATCH 2/3] drm/radeon: Switch to drm_vblank_on/off

2015-05-27 Thread Daniel Vetter
On Wed, May 27, 2015 at 06:21:24PM +0900, Michel Dänzer wrote: > On 27.05.2015 18:04, Daniel Vetter wrote: > > These should be functionally equivalent to the older per/post modeset > > functions, except that they block out drm_vblank_get right away. > > There's only the clock adjusting code (outsid

[Intel-gfx] [PATCH i-g-t v2] lib/tests/igt_segfault.c Add unit test to test segfault handling

2015-05-27 Thread Derek Morton
Unit test to check a segfaulting subtest is handled correctly. v2: Added script to check subtest results Signed-off-by: Derek Morton --- lib/tests/Makefile.sources | 3 ++ lib/tests/igt_segfault.c| 57 ++ lib/tests/igt_segfault_check.sh | 61 +++

Re: [Intel-gfx] [PATCH 2/3] drm/radeon: Switch to drm_vblank_on/off

2015-05-27 Thread Michel Dänzer
On 27.05.2015 18:04, Daniel Vetter wrote: > These should be functionally equivalent to the older per/post modeset > functions, except that they block out drm_vblank_get right away. > There's only the clock adjusting code (outside of pageflips) in > readone which uses drm_vblank_get. But that code d

Re: [Intel-gfx] [PATCH 00/03] Preventing zero GPU virtual address allocation

2015-05-27 Thread David Weinehall
On Thu, May 21, 2015 at 10:50:37AM +0100, Chris Wilson wrote: > It also have just as much risk as reporting EBUSY due to the CL client > trying to use a pinned buffer. > > However, it is a security hole because the same process can arrange to > have whatever buffer it likes at 0 then access it thr

[Intel-gfx] [PATCH 3/3] drm/irq: Make drm_vblank_pre/post_modeset internal

2015-05-27 Thread Daniel Vetter
Now that all drivers are switched over to drm_vblank_on/off we can relegate pre/post_modeset to the purely drm_irq.c internal role of supporting on userspace. As usual switch to the drm_legacy_ prefix to make it clear this is for old drivers only. Signed-off-by: Daniel Vetter --- Documentation/

[Intel-gfx] [PATCH 2/3] drm/radeon: Switch to drm_vblank_on/off

2015-05-27 Thread Daniel Vetter
These should be functionally equivalent to the older per/post modeset functions, except that they block out drm_vblank_get right away. There's only the clock adjusting code (outside of pageflips) in readone which uses drm_vblank_get. But that code doesn't synchronize against concurrent modesets and

[Intel-gfx] [PATCH 1/3] drm/nouveau: Use drm_vblank_on/off consistently

2015-05-27 Thread Daniel Vetter
In commit 9cba5efab5a8145ae6c52ea273553f069c294482 Author: Mario Kleiner Date: Tue Jul 29 02:36:44 2014 +0200 drm/nouveau: Dis/Enable vblank irqs during suspend/resume drm_vblank_on/off calls where added around suspend/resume to make sure vblank stay doesn't go boom over that transition.

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Adjust sideband locking a bit for CHV/VLV

2015-05-27 Thread Ville Syrjälä
On Wed, May 27, 2015 at 11:03:09AM +0300, Jani Nikula wrote: > On Tue, 26 May 2015, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > chv_enable_pll() doesn't need to hold sb_lock for the entire duration of > > the function. Drop the lock as soon as possible. > > > > valleyview_

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Adjust sideband locking a bit for CHV/VLV

2015-05-27 Thread Jani Nikula
On Tue, 26 May 2015, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > chv_enable_pll() doesn't need to hold sb_lock for the entire duration of > the function. Drop the lock as soon as possible. > > valleyview_set_cdclk() does a potential lock+unlock+lock+unlock cycle > with sb_lock.

Re: [Intel-gfx] [PATCH 00/03] Preventing zero GPU virtual address allocation

2015-05-27 Thread Zou, Nanhai
> -Original Message- > From: Intel-gfx [mailto:intel-gfx-boun...@lists.freedesktop.org] On Behalf Of > Daniel Vetter > Sent: Thursday, May 21, 2015 12:01 AM > To: Chris Wilson; intel-gfx > Subject: Re: [Intel-gfx] [PATCH 00/03] Preventing zero GPU virtual address > allocation > > On Wed, M

[Intel-gfx] [PATCH] testdisplay: Fix segfault after first modeset fails

2015-05-27 Thread Ander Conselvan de Oliveira
When testing all modes on a connector with a single mode, if the modeset fails, the code attempts to remove fb_info[-1], because old_fb still has the inital value of -1. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90625 Signed-off-by: Ander Conselvan de Oliveira --- tests/testdisplay

[Intel-gfx] [PATCH] drm/i915: Include VLV in self refresh status

2015-05-27 Thread Ander Conselvan de Oliveira
The line between maxfifo and SR is a blurry one. Since we treat them as the same thing, just read out the registers set up in intel_set_memory_cxsr(). References: https://bugs.freedesktop.org/show_bug.cgi?id=89792 Signed-off-by: Ander Conselvan de Oliveira --- On 04/02/2015 11:42 AM, Ville Syr