Re: [Intel-gfx] [PATCH] drm/i915: list self-refresh as enabled on newer platforms

2015-04-02 Thread shuang . he
Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6125 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -3

Re: [Intel-gfx] [PATCH] drm/i915: Silence a sparse warning

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6124 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -2 272/272

Re: [Intel-gfx] [PATCH 20/20] drm/i915: Enable skylake sprite plane scaling using shared scalers

2015-04-02 Thread He, Shuang
Hi, Chandra Yes, I agree There is some noise pre-existing bugs, you can ignore it for now. We're figuring out an way to filter them out Thanks --Shuang > -Original Message- > From: Konduru, Chandra > Sent: Friday, April 3, 2015 1:21 AM > To: He, Shuang; Gao, Ethan

Re: [Intel-gfx] [PATCH] drm: Defer disabling the vblank IRQ until the next interrupt (for instant-off)

2015-04-02 Thread Michel Dänzer
On 02.04.2015 20:34, Chris Wilson wrote: > On vblank instant-off systems, we can get into a situation where the cost > of enabling and disabling the vblank IRQ around a drmWaitVblank query > dominates. However, we know that if the user wants the current vblank > counter, they are also very likely t

Re: [Intel-gfx] [PATCH] drm/i915: Allow userptr backchannel for passing aroung GTT mappings

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6123 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -1 272/272

Re: [Intel-gfx] [PATCH 00/20] skylake display scalers

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:29PM -0700, Chandra Konduru wrote: > primary changes in this version are: > - moved changes to state from commit patch to check path (Matt) > - squashed few patches into others (Matt) > - rebased colorkey related patches ontop of recent updates (Daniel) > - rebased all

Re: [Intel-gfx] [PATCH 19/20] drm/i915: Enable skylake primary plane scaling using shared scalers

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:48PM -0700, Chandra Konduru wrote: > This patch enables skylake primary plane display scaling using shared > scalers atomic desgin. > > v2: > -use single copy of scaler limits (Matt) > > v3: > -move detach_scalers to crtc commit path (Matt) > -use values in plane_sta

Re: [Intel-gfx] [PATCH 20/20] drm/i915: Enable skylake sprite plane scaling using shared scalers

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:49PM -0700, Chandra Konduru wrote: > This patch enables skylake sprite plane display scaling using shared > scalers atomic desgin. > > v2: > -use single copy of scaler limits (Matt) > > v3: > -detaching scalers moved to crtc commit path (Matt) > > Signed-off-by: Cha

Re: [Intel-gfx] [PATCH 13/20] drm/i915: use current scaler state during readout_hw_state.

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:42PM -0700, Chandra Konduru wrote: > During readout_hw_state, rebuild crtc scaler_state from hw state: > - crtc scaler id > - scaler users This patch doesn't look like it actually does what you're advertising here. If your firmware or bootloader or whatever has pro

Re: [Intel-gfx] [PATCH 10/20] drm/i915: Add atomic function to setup scalers scalers for a crtc.

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:39PM -0700, Chandra Konduru wrote: > intel_atomic_setup_scalers sets up scalers based on staged scaling > requests coming from a crtc and its planes. This function should be > called from crtc level check path. > > If staged requests are supportable, function assigns

Re: [Intel-gfx] [PATCH 09/20] drm/i915: Add helper function to update scaler_users in crtc_state

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:38PM -0700, Chandra Konduru wrote: > This helper function stages a scaler request for a plane/crtc into > crtc_state->scaler_users (which is a bit field). It also performs > required checks before staging any change into scaler_state. > > v2: > -updates to use single

Re: [Intel-gfx] [PATCH 11/20] drm/i915: Helper function to detach a scaler from a plane or crtc

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:40PM -0700, Chandra Konduru wrote: > This function is called from commit path of a plane or crtc. > It programs scaler registers to detach (aka. unbinds) scaler > from requested plane or crtc if it isn't in use. It also resets > scaler_id in crtc/plane state. The last

Re: [Intel-gfx] [PATCH 06/20] drm/i915: Convert primary plane 16.16 values to regular ints

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:35PM -0700, Chandra Konduru wrote: > This patch converts intel_plane_state->src rect from 16.16 > values into regular ints. > > This approach aligns with sprite_plane_state->src rects > which are already in regular ints. > > Signed-off-by: Chandra Konduru You're no

Re: [Intel-gfx] [PATCH 08/20] drm/i915: Helper function to update skylake scaling ratio.

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:37PM -0700, Chandra Konduru wrote: > Helper function updates supported scaling ratios based on cdclk and > crtc clocks. > > v2: > -update single copy of scaling ratios (Matt) > > v3: > -min scaling ratio is limited by either display engine limit or clocks, > it is n

Re: [Intel-gfx] [PATCH 01/20] drm/i915: Adding drm helper function drm_plane_from_index().

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:30PM -0700, Chandra Konduru wrote: > Adding drm helper function to return plane pointer from index where > index is a returned by drm_plane_index. > > v2: > -avoided nested loop by adding loop count (Daniel) > > Signed-off-by: Chandra Konduru This should just have

Re: [Intel-gfx] [PATCH 03/20] drm/i915: skylake scaler structure definitions

2015-04-02 Thread Matt Roper
On Wed, Apr 01, 2015 at 07:59:32PM -0700, Chandra Konduru wrote: > skylake scaler structure definitions. scalers live in crtc_state as > they are pipe resources. They can be used either as plane scaler or > panel fitter. > > scaler assigned to either plane (for plane scaling) or crtc (for panel >

Re: [Intel-gfx] [PATCH v2] drm/i915: Clean-up idr table if context create fails.

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6122 -Summary- Platform Delta drm-intel-nightly Series Applied PNV 272/272

Re: [Intel-gfx] [PATCH 1/2] drm/i915/bxt: Determine BXT slice/subslice/EU info

2015-04-02 Thread Jeff McGee
On Wed, Apr 01, 2015 at 08:20:44AM +0200, Daniel Vetter wrote: > On Tue, Mar 31, 2015 at 09:59:22AM -0700, jeff.mc...@intel.com wrote: > > From: Jeff McGee > > > > BXT uses a subset of the SKL fuse registers, because it has at > > most 1 slice and at most 6 EU per subslice. > > > > Signed-off-by

Re: [Intel-gfx] [PATCH 7/8] drm/i915/skl: Assert the requirements to enter or exit DC6.

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: Suketu Shah > > Warn if the conditions to enter or exit DC6 are not satisfied such > as support for runtime PM, state of power well, CSR loading etc. > > v2: Removed camelcase in functions and variables. > > v3: Do some minimal che

Re: [Intel-gfx] [PATCH 8/8] drm/i915/skl: Enable runtime PM

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: Suketu Shah > > Enable runtime PM for Skylake platform > > v2: After adding dmc ver 1.0 support rebased on top of nightly. (Animesh) > > Issue: VIZ-2819 > Signed-off-by: A.Sunil Kamath > Signed-off-by: Suketu Shah > Signed-off-by

Re: [Intel-gfx] [PATCH 6/8] drm/i915/skl: Add DC6 Trigger sequence.

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: Suketu Shah > > Add triggers for DC6 as per details provided in skl_enable_dc6 > and skl_disable_dc6 implementations. > > Also Call POSTING_READ for every write to a register to ensure > it is written to immediately > > v1: Remove

Re: [Intel-gfx] [PATCH 5/8] drm/i915/skl: Implement enable/disable for Display C6 state.

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: "A.Sunil Kamath" > > This patch just implements the basic enable and disable > functions of DC6 state which is needed for SKL platform. > > Its important to load SKL CSR program before calling enable. > > DC6 is a deeper power savi

Re: [Intel-gfx] [PATCH 4/8] drm/i915/skl: Assert the requirements to enter or exit DC5.

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: Suketu Shah > > Warn if the conditions to enter or exit DC5 are not satisfied such > as support for runtime PM, state of power well, CSR loading etc. > > v2: Removed camelcase in functions and variables. > > v3: Do some minimal che

Re: [Intel-gfx] [PATCH 3/8] drm/i915/skl: Add DC5 Trigger Sequence.

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: Suketu Shah > > Add triggers as per expectations mentioned in gen9_enable_dc5 > and gen9_disable_dc5 patch. > > Also call POSTING_READ for every write to a register to ensure that > its written immediately. > > v1: Remove POSTING_R

Re: [Intel-gfx] [PATCH] drm: Defer disabling the vblank IRQ until the next interrupt (for instant-off)

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6120 -Summary- Platform Delta drm-intel-nightly Series Applied PNV 272/272

Re: [Intel-gfx] [PATCH] drm/i915: list self-refresh as enabled on newer platforms

2015-04-02 Thread Jesse Barnes
On 04/02/2015 11:42 AM, Ville Syrjälä wrote: > On Thu, Apr 02, 2015 at 11:18:49AM -0700, Jesse Barnes wrote: >> I guess this is a lie for 8xx, but newer stuff takes care of this for >> us. >> >> References: https://bugs.freedesktop.org/show_bug.cgi?id=89792 >> Signed-off-by: Jesse Barnes >> --- >>

Re: [Intel-gfx] [PATCH] drm/i915: list self-refresh as enabled on newer platforms

2015-04-02 Thread Ville Syrjälä
On Thu, Apr 02, 2015 at 11:18:49AM -0700, Jesse Barnes wrote: > I guess this is a lie for 8xx, but newer stuff takes care of this for > us. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=89792 > Signed-off-by: Jesse Barnes > --- > drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ > 1 fil

[Intel-gfx] [PATCH] drm/i915: list self-refresh as enabled on newer platforms

2015-04-02 Thread Jesse Barnes
I guess this is a lie for 8xx, but newer stuff takes care of this for us. References: https://bugs.freedesktop.org/show_bug.cgi?id=89792 Signed-off-by: Jesse Barnes --- drivers/gpu/drm/i915/i915_debugfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_debugfs.c

Re: [Intel-gfx] [PATCH 20/20] drm/i915: Enable skylake sprite plane scaling using shared scalers

2015-04-02 Thread Konduru, Chandra
Hi Shuang, Looking at starting with '*': *BYT igt@gem_exec_bad_domains@conflicting-write-domain PASS(9) FAIL(1)PASS(1) Above failure seems unrelated to my patch series. I suspect this pre-exist before my changes. Can you double check whether above failure is pre-existing before any action

Re: [Intel-gfx] [PATCH] drm/i915: Allow disabling the destination colorkey for overlay

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6119 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -2 272/272

Re: [Intel-gfx] [PATCH 2/2] drm/i915/vlv: remove wait for previous GFX clk disable request

2015-04-02 Thread Darren Hart
Jesse Barnes virtuousgeek.org> writes: > Looks like it was introduced in: > > commit 650ad970a39f8b6164fe8613edc150f585315289 > Author: Imre Deak intel.com> > Date: Fri Apr 18 16:35:02 2014 +0300 > > drm/i915: vlv: factor out vlv_force_gfx_clock and check for pending > force-of > > b

Re: [Intel-gfx] [PATCH i-g-t v5] tests: install test programs to libexec

2015-04-02 Thread Thomas Wood
On 31 March 2015 at 13:53, Joonas Lahtinen wrote: > Install the test programs by default so that they can be packaged. > > Tested with the testdisplay test so that it still runs after the > modifications as it depends on a data file to be present. Need to > pass -r option to enable QR code display

[Intel-gfx] [RFC][PATCH] tracing/drm: Remove unused TRACE_SYSTEM_STRING define

2015-04-02 Thread Steven Rostedt
The tracing infrastructure is adding a macro TRACE_SYSTEM_STRING, and hit the following build failure: In file included from include/trace/define_trace.h:90:0, from drivers/gpu/drm/.//radeon/radeon_trace.h:209, from drivers/gpu/drm/.//radeon/radeon_trace

Re: [Intel-gfx] [PATCH 30/49] drm/i915/bxt: add display initialize/uninitialize sequence

2015-04-02 Thread Ville Syrjälä
On Tue, Mar 17, 2015 at 11:39:56AM +0200, Imre Deak wrote: > From: Vandana Kannan > > Add display clock/PHY initialization sequence as per BSpec. > > Until GOP/VBIOS provides an upper limit value for CDCLK, comparing clock > value with 624 MHz and returning 0 in case it exceeds. > > Note that t

Re: [Intel-gfx] [PATCH] drm/i915: Allow userptr backchannel for passing aroung GTT mappings

2015-04-02 Thread Chris Wilson
On Thu, Apr 02, 2015 at 05:11:58PM +0100, Tvrtko Ursulin wrote: > >+static struct drm_i915_gem_object * > >+find_object_from_vma(struct drm_device *dev, > >+ struct drm_i915_gem_userptr *args) > >+{ > >+struct drm_i915_gem_object *obj = NULL; > >+struct vm_area_struct *vma;

Re: [Intel-gfx] [PATCH] drm/i915: Allow userptr backchannel for passing aroung GTT mappings

2015-04-02 Thread Tvrtko Ursulin
Hi, Typo in subject, then below. On 04/02/2015 04:04 PM, Chris Wilson wrote: Once userptr becomes part of client API, it is almost a certainly that eventually someone will try to create a new object from a mapping of another client object, e.g. new = vaImport(vaMap(old, &size), size); (using

Re: [Intel-gfx] [RFC i-g-t v5] tests/gem_exec_pad_to_size: Test object padding at execbuf

2015-04-02 Thread Thomas Wood
On 2 April 2015 at 13:54, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > This tests the new EXEC_OBJECT_PAD_TO_SIZE exec_object2 flag. Just two things from an i-g-t perspective: the new binary needs adding to .gitignore and it would be good to include a short description of the test using the

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl: Support for 90/270 rotation

2015-04-02 Thread Matt Roper
On Thu, Apr 02, 2015 at 10:24:02AM +0530, Jindal, Sonika wrote: > > > On 4/1/2015 11:52 PM, Matt Roper wrote: > >On Mon, Mar 30, 2015 at 02:04:57PM +0530, Sonika Jindal wrote: > >>v2: Moving creation of property in a function, checking for 90/270 > >>rotation simultaneously (Chris) > >>Letting pr

Re: [Intel-gfx] [PATCH 2/8] drm/i915/skl: Implement enable/disable for Display C5 sttate.

2015-04-02 Thread Imre Deak
On ke, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: "A.Sunil Kamath" > > This patch just implements the basic enable and disable > functions of DC5 state which is needed for both SKL and BXT. > > Its important to load respective CSR program before calling > enable, which anyways will

Re: [Intel-gfx] [PATCH 1/2] drm/i915/skl: Allow universal planes to position

2015-04-02 Thread Matt Roper
On Thu, Apr 02, 2015 at 10:08:27AM +0530, Jindal, Sonika wrote: > > > On 4/1/2015 11:51 PM, Matt Roper wrote: > >On Mon, Mar 30, 2015 at 02:04:56PM +0530, Sonika Jindal wrote: > >>Signed-off-by: Sonika Jindal > > > >It looks like this is dependent on Ville's patch > > > > [PATCH v2 6/9] drm/i9

[Intel-gfx] [PATCH] drm/i915: Silence a sparse warning

2015-04-02 Thread ville . syrjala
From: Ville Syrjälä ../drivers/gpu/drm/i915/intel_pm.c:3185:45: warning: Initializer entry defined twice ../drivers/gpu/drm/i915/intel_pm.c:3185:52: also defined here Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [Intel-gfx] [RFC] drm/i915: _wait_for might be called when irq is off

2015-04-02 Thread Chris Wilson
On Thu, Apr 02, 2015 at 07:21:40PM +0530, deepa...@linux.intel.com wrote: > From: Deepak S > > Sometimes, i915 might call _wait_for when irq is disabled. > If the cpu is the main cpu to process jiffies, jiffies > wouldn't be increased as this cpu disables irq. Then, > time_after(jiffies, timeout_

Re: [Intel-gfx] [PATCH 1/8] drm/i915/skl: Add support to load SKL CSR firmware

2015-04-02 Thread Imre Deak
On ke, 2015-04-01 at 16:22 +0530, Animesh Manna wrote: > From: "A.Sunil Kamath" > > Display Context Save and Restore support is needed for > various SKL Display C states like DC5, DC6. > > This implementation is added based on first version of DMC CSR program > that we received from h/w team. >

[Intel-gfx] [PATCH] drm/i915: Allow userptr backchannel for passing aroung GTT mappings

2015-04-02 Thread Chris Wilson
Once userptr becomes part of client API, it is almost a certainly that eventually someone will try to create a new object from a mapping of another client object, e.g. new = vaImport(vaMap(old, &size), size); (using a hypothethical API, not meaning to pick on anyone!) Since this is actually fair

Re: [Intel-gfx] [PATCH 20/20] drm/i915: Enable skylake sprite plane scaling using shared scalers

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6118 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -1 272/272

[Intel-gfx] [RFC] drm/i915: _wait_for might be called when irq is off

2015-04-02 Thread deepak . s
From: Deepak S Sometimes, i915 might call _wait_for when irq is disabled. If the cpu is the main cpu to process jiffies, jiffies wouldn't be increased as this cpu disables irq. Then, time_after(jiffies, timeout__) becomes meaningless. If gunit doesn't work now, kernel wouldn't exit as the timeout

Re: [Intel-gfx] [PATCH] Correct drm display mode table about 1856x1392 @75Hz mode

2015-04-02 Thread Ville Syrjälä
On Thu, Apr 02, 2015 at 06:54:34PM +0800, liu,lei wrote: > From: "liu,lei" > > According DMT spec, vss of this mode should be 1393, vse should > be 1396. > > VESA MONITOR TIMING STANDARD: > > Timing Name = 1856 x 1392 @ 75Hz > Hor Total Time = 8.889; (usec) = 320 chars = 2560 Pixels > Hor Sync

[Intel-gfx] [PATCH v2] drm/i915: Clean-up idr table if context create fails.

2015-04-02 Thread deepak . s
From: Deepak S Cleanup idr table if any error happens after __create_hw_context() in i915_gem_create_context() v2: add a new err_idr (Daniel) Signed-off-by: Deepak S --- drivers/gpu/drm/i915/i915_gem_context.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/g

Re: [Intel-gfx] [PATCH] drm/i915: Clean-up idr table if context create fails.

2015-04-02 Thread Deepak S
On Monday 30 March 2015 09:13 PM, Daniel Vetter wrote: On Mon, Mar 30, 2015 at 08:03:58PM +0530, deepa...@linux.intel.com wrote: From: Deepak S Cleanup idr table if any error happens after __create_hw_context() in i915_gem_create_context() Signed-off-by: Deepak S --- drivers/gpu/drm/i915

Re: [Intel-gfx] looks like a issue in do_switch() and mi_set_context() in i915_gem_context.c?

2015-04-02 Thread Wang, Zhi A
Hi Chris: I begin to understand that before the "prev" context object is unpinned, it's set to active by i915_vma_move_to_active, so the shrinker will wait for it. Thanks for the help. Every time I learned a lot from you. Thanks. :) -Original Message- From: Chris Wilson [mailto:ch..

[Intel-gfx] [RFC i-g-t v5] tests/gem_exec_pad_to_size: Test object padding at execbuf

2015-04-02 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This tests the new EXEC_OBJECT_PAD_TO_SIZE exec_object2 flag. Similar to some other tests, it uses knowledge of the DRM allocation policy in order to get two objects mapped adjacent to each other. It is then possible to verify that the pad to size flag will move them apart.

Re: [Intel-gfx] [PATCH] drm/i915: Allow legacy interface for legacy Y tiled display

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6113 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -2 272/272

[Intel-gfx] [PULL] drm-intel-fixes

2015-04-02 Thread Jani Nikula
Hi Dave - A colorkey ioctl oops fix from Ville, cc: stable, and a backport of Chris' 0-length batch allocation fix from drm-next. BR, Jani. The following changes since commit e42391cd048809d903291d07f86ed3934ce138e9: Linux 4.0-rc6 (2015-03-29 15:26:31 -0700) are available in the git repos

Re: [Intel-gfx] [PATCH] Correct drm display mode table about 1856x1392 @75Hz mode

2015-04-02 Thread Jani Nikula
Please prefix the subject with "drm/edid: " and send the patch to dri-de...@lists.freedesktop.org. In general, scripts/get_maintainer.pl will tell you where to send the patches; intel-gfx is for stuff under drivers/gpu/drm/i915. Thanks, Jani. On Thu, 02 Apr 2015, "liu,lei" wrote: > From: "liu,

[Intel-gfx] [PATCH 4/6] drm/i915: Don't use staged config in check_digital_port_conflicts()

2015-04-02 Thread Ander Conselvan de Oliveira
Reduce dependency on the staged config by using the atomic state instead. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/intel_display.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drive

[Intel-gfx] [PATCH 2/6] drm/i915: Don't use intel_crtc->new_config in pll calculation code

2015-04-02 Thread Ander Conselvan de Oliveira
Move towards atomic by using the atomic state instead. Signed-off-by: Ander Conselvan de Oliveira --- 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_disp

[Intel-gfx] [PATCH 0/6] Remove more staged config usage

2015-04-02 Thread Ander Conselvan de Oliveira
These patches remove usage of the staged config from the modeset path that I overlooked in my previous patch series. Ander Conselvan de Oliveira (6): drm/i915: Don't use staged config for VLV cdclk calculations drm/i915: Don't use intel_crtc->new_config in pll calculation code drm/i915: Remo

[Intel-gfx] [PATCH 1/6] drm/i915: Don't use staged config for VLV cdclk calculations

2015-04-02 Thread Ander Conselvan de Oliveira
Now that we use a drm atomic state for the legacy modeset, it is possible to get rid of the usage of intel_crtc->new_config in the function intel_mode_max_pixclk(). Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/intel_display.c | 55 +++- 1 f

[Intel-gfx] [PATCH 3/6] drm/i915: Remove intel_crtc->new_config

2015-04-02 Thread Ander Conselvan de Oliveira
It's not needed anymore, now that all the users were converted to using an atomic state. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/intel_display.c | 31 --- drivers/gpu/drm/i915/intel_drv.h | 1 - 2 files changed, 32 deletions(-) diff

[Intel-gfx] [PATCH 5/6] drm/i915: Don't use staged config in check_encoder_cloning()

2015-04-02 Thread Ander Conselvan de Oliveira
Reduce dependency on the staged config by using the atomic state instead. Signed-off-by: Ander Conselvan de Oliveira --- drivers/gpu/drm/i915/intel_display.c | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_disp

[Intel-gfx] [PATCH 6/6] drm/i915: Don't use staged config in intel_mst_pre_enable_dp()

2015-04-02 Thread Ander Conselvan de Oliveira
For the conversion to atomic. The pre_enable() hooks are called as part of the crtc enable sequence, at which point the staged config was already made effective. Furthermore, the function actually changes hardware state, so it should anyway deal with current and not staged config. Signed-off-by: A

Re: [Intel-gfx] [PATCH 08/49] drm/i915: Re-enable RPS wait-boosting for all engines

2015-04-02 Thread Chris Wilson
On Thu, Apr 02, 2015 at 04:39:56PM +0530, Deepak S wrote: > > > On Friday 27 March 2015 04:31 PM, Chris Wilson wrote: > >This reverts commit ec5cc0f9b019af95e4571a9fa162d94294c8d90b > >Author: Chris Wilson > >Date: Thu Jun 12 10:28:55 2014 +0100 > > > > drm/i915: Restrict GPU boost to the

[Intel-gfx] [PATCH] drm: Defer disabling the vblank IRQ until the next interrupt (for instant-off)

2015-04-02 Thread Chris Wilson
On vblank instant-off systems, we can get into a situation where the cost of enabling and disabling the vblank IRQ around a drmWaitVblank query dominates. However, we know that if the user wants the current vblank counter, they are also very likely to immediately queue a vblank wait and so we can k

Re: [Intel-gfx] [PATCH 02/49] drm/i915: Agressive downclocking on Baytrail

2015-04-02 Thread Deepak S
On Friday 27 March 2015 04:31 PM, Chris Wilson wrote: Reuse the same reclocking strategy for Baytail as on its bigger brethren, Sandybridge and Ivybridge. In particular, this makes the device quicker to reclock (both up and down) though the tendency now is to downclock more aggressively to comp

Re: [Intel-gfx] [PATCH 08/49] drm/i915: Re-enable RPS wait-boosting for all engines

2015-04-02 Thread Deepak S
On Friday 27 March 2015 04:31 PM, Chris Wilson wrote: This reverts commit ec5cc0f9b019af95e4571a9fa162d94294c8d90b Author: Chris Wilson Date: Thu Jun 12 10:28:55 2014 +0100 drm/i915: Restrict GPU boost to the RCS engine The premise that media/blitter workloads are not affected by boos

Re: [Intel-gfx] [RFC i-g-t v4] tests/gem_exec_pad_to_size: Test object padding at execbuf

2015-04-02 Thread Chris Wilson
On Thu, Apr 02, 2015 at 11:45:59AM +0100, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > This tests the new EXEC_OBJECT_PAD_TO_SIZE exec_object2 flag. > > Similar to some other tests, it uses knowledge of the DRM > allocation policy in order to get two objects mapped adjacent > to each other.

Re: [Intel-gfx] Kernel panic every other reboot/poweroff since 3.19.3 ( commit 9a6f5130143 )

2015-04-02 Thread Jani Nikula
On Tue, 31 Mar 2015, Steven Honeyman wrote: > On 31 March 2015 at 17:50, Matt Roper wrote: >> On Tue, Mar 31, 2015 at 08:54:19AM +0200, Daniel Vetter wrote: >>> Adding mailing lists (and hooray for me mixing up addresses, so now >>> there's a disclaimer at the bottom). >>> -Daniel >> >> It looks

Re: [Intel-gfx] [PATCH 1/8] drm/i915/skl: Add support to load SKL CSR firmware

2015-04-02 Thread Animesh Manna
On 04/01/2015 04:08 PM, Damien Lespiau wrote: On Wed, Apr 01, 2015 at 01:18:25PM +0530, Animesh Manna wrote: +struct intel_css_header { Just a small question, what does CSS mean in this context? that's the first time I see it. CSS stands for "Code signing service". In case on Guc/Huc, firmwa

[Intel-gfx] [PATCH] Correct drm display mode table about 1856x1392 @75Hz mode

2015-04-02 Thread liu,lei
From: "liu,lei" According DMT spec, vss of this mode should be 1393, vse should be 1396. VESA MONITOR TIMING STANDARD: Timing Name = 1856 x 1392 @ 75Hz Hor Total Time = 8.889; (usec) = 320 chars = 2560 Pixels Hor Sync Start = 6.889; (usec) = 248 chars = 1984 Pixels H Back Porch = 1.222; (use

Re: [Intel-gfx] [RFC i-g-t v3] tests/gem_exec_pad_to_size: Test object padding at execbuf

2015-04-02 Thread Tvrtko Ursulin
On 04/01/2015 05:39 PM, Chris Wilson wrote: On Wed, Apr 01, 2015 at 05:31:16PM +0100, Chris Wilson wrote: On Wed, Apr 01, 2015 at 05:07:25PM +0100, Tvrtko Ursulin wrote: On 04/01/2015 04:42 PM, Chris Wilson wrote: On Wed, Apr 01, 2015 at 04:14:52PM +0100, Tvrtko Ursulin wrote: + /* Re

[Intel-gfx] [RFC i-g-t v4] tests/gem_exec_pad_to_size: Test object padding at execbuf

2015-04-02 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This tests the new EXEC_OBJECT_PAD_TO_SIZE exec_object2 flag. Similar to some other tests, it uses knowledge of the DRM allocation policy in order to get two objects mapped adjacent to each other. It is then possible to verify that the pad to size flag will move them apart.

Re: [Intel-gfx] [PATCH 2/2] drm/i915/vlv: remove wait for previous GFX clk disable request

2015-04-02 Thread Deepak S
On Thursday 02 April 2015 02:52 AM, Jesse Barnes wrote: Looks like it was introduced in: commit 650ad970a39f8b6164fe8613edc150f585315289 Author: Imre Deak Date: Fri Apr 18 16:35:02 2014 +0300 drm/i915: vlv: factor out vlv_force_gfx_clock and check for pending force-of but I'm not su

Re: [Intel-gfx] [PATCH 1/2] drm/i915/vlv: save/restore the power context base reg

2015-04-02 Thread Deepak S
On Thursday 02 April 2015 02:52 AM, Jesse Barnes wrote: Some BIOSes (e.g. the one on the Minnowboard) don't save/restore this reg. If it's unlocked, we can just restore the previous value, and if it's locked (in case the BIOS re-programmed it for us) the write will be ignored and we'll still h

Re: [Intel-gfx] [PATCH 19/19] drm/i915: Modeset global_pipes() update

2015-04-02 Thread Ville Syrjälä
On Thu, Apr 02, 2015 at 01:05:31PM +0300, Mika Kahola wrote: > Combined Valleyview, Haswell and Broadwell '*_modeset_global_pipes()' > into one function 'intel_modeset_global_pipes()' > > v2: > - we don't modify 'disable_pipes', so passing this as a pointer > is removed (based on Ville's comment

Re: [Intel-gfx] [PATCH] drm/i915: Allow disabling the destination colorkey for overlay

2015-04-02 Thread Ville Syrjälä
On Thu, Apr 02, 2015 at 10:35:08AM +0100, Chris Wilson wrote: > Sometimes userspace wants a true overlay that is never clipped. In such > cases, we need to disable the destination colorkey. However, it is > currently unconditionally enabled in the overlay with no means of > disabling. So rectify th

Re: [Intel-gfx] [PATCH 02/12] intel: Validate output of realloc()

2015-04-02 Thread Chris Wilson
On Thu, Apr 02, 2015 at 02:02:17PM +0530, Praveen Paneri wrote: > realloc will return NULL if failed to allocate the extra memory > requested. Return from function if it fails. NAK. Silently passing absolute addresses to the GPU to read and write is not a good idea. -Chris -- Chris Wilson, Intel

Re: [Intel-gfx] [PATCH] drm/i915: Make debugfs/i915_gem_request more friendly

2015-04-02 Thread shuang . he
Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang...@intel.com) Task id: 6112 -Summary- Platform Delta drm-intel-nightly Series Applied PNV -4 272/272

[Intel-gfx] [PATCH 19/19] drm/i915: Modeset global_pipes() update

2015-04-02 Thread Mika Kahola
Combined Valleyview, Haswell and Broadwell '*_modeset_global_pipes()' into one function 'intel_modeset_global_pipes()' v2: - we don't modify 'disable_pipes', so passing this as a pointer is removed (based on Ville's comment) - introduced a new function 'intel_calc_cdclk()' that combines routin

[Intel-gfx] [PATCH] drm/i915: Allow disabling the destination colorkey for overlay

2015-04-02 Thread Chris Wilson
Sometimes userspace wants a true overlay that is never clipped. In such cases, we need to disable the destination colorkey. However, it is currently unconditionally enabled in the overlay with no means of disabling. So rectify that by always default to on, and extending the UPDATE_ATTR ioctl to sup

Re: [Intel-gfx] [PATCH 19/19] drm/i915: Modeset global_pipes() update

2015-04-02 Thread Mika Kahola
On Tue, Mar 31, 2015 at 05:45:56PM +0300, Ville Syrjälä wrote: > On Tue, Mar 31, 2015 at 02:14:23PM +0300, Mika Kahola wrote: > > Combined Valleyview, Haswell and Broadwell '*_modeset_global_pipes()' > > into one function 'intel_modeset_global_pipes()' > > > > Signed-off-by: Mika Kahola > > --- >

Re: [Intel-gfx] [PATCH 2/2] drm/i915/skl: Support for 90/270 rotation

2015-04-02 Thread Tvrtko Ursulin
Hi, On 04/02/2015 05:54 AM, Jindal, Sonika wrote: diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index f0bbc22..86ee0f0 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -2318,6 +2318,28 @@ intel_fill_fb_ggt

Re: [Intel-gfx] [PATCH] uxa: Do not use RandR in hotplug if not available

2015-04-02 Thread Chris Wilson
On Thu, Apr 02, 2015 at 10:45:39AM +0200, Olivier Fourdan wrote: > When using Xinerama, RandR is automatically disabled, and calling RR > routines will trigger an assert() because the RR keys/resources are > not set, leading to an Xserver abort. > > Hotplug makes little sense without RandR, so it'

[Intel-gfx] [PATCH] uxa: Do not use RandR in hotplug if not available

2015-04-02 Thread Olivier Fourdan
When using Xinerama, RandR is automatically disabled, and calling RR routines will trigger an assert() because the RR keys/resources are not set, leading to an Xserver abort. Hotplug makes little sense without RandR, so it's safer to just return if RandR is not available. Signed-off-by: Olivier F

Re: [Intel-gfx] [PATCH] drm/i915: Reject the colorkey ioctls for primary and cursor planes

2015-04-02 Thread Jani Nikula
On Mon, 30 Mar 2015, Daniel Vetter wrote: > On Fri, Mar 27, 2015 at 07:59:40PM +0200, ville.syrj...@linux.intel.com wrote: >> From: Ville Syrjälä >> >> The legcy colorkey ioctls are only implemented for sprite planes, so >> reject the ioctl for primary/cursor planes. If we want to support >> col

[Intel-gfx] [PATCH 12/12] xf86drmSL: Add missing function call to SLLocate()

2015-04-02 Thread Praveen Paneri
A call to SLLocate() is missing from the function drmSLLookupNeighbors() Adding the same to fix this bug. Signed-off-by: Praveen Paneri --- xf86drmSL.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xf86drmSL.c b/xf86drmSL.c index edafe7b..9c6f65a 100644 --- a/xf86drmSL.c +++ b/xf86drmSL.c

[Intel-gfx] [PATCH 07/12] intel: Validate memory allocations

2015-04-02 Thread Praveen Paneri
This patch adds check for various malloc/calloc function if they were able to allocate memory as requested or not. Return appropriate error if the allocation fails. Signed-off-by: Praveen Paneri --- intel/intel_bufmgr_fake.c | 4 intel/intel_bufmgr_gem.c | 3 +++ intel/intel_decode.c

[Intel-gfx] [PATCH 04/12] intel: Validate pointer before using

2015-04-02 Thread Praveen Paneri
Move the dereferencing below the check for valid ctx pointer. Signed-off-by: Praveen Paneri --- intel/intel_decode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intel/intel_decode.c b/intel/intel_decode.c index b70d949..5dab9ca 100644 --- a/intel/intel_decode.c +++ b/i

[Intel-gfx] [PATCH 03/12] intel: Use snprintf instead of sprintf

2015-04-02 Thread Praveen Paneri
We must have upper bound on what we are going to write into a fixed size buffer. Signed-off-by: Praveen Paneri --- intel/intel_decode.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/intel/intel_decode.c b/intel/intel_decode.c index 7d5cbe5..b70d949 100644 --- a/inte

[Intel-gfx] [PATCH 01/12] intel: Validate bo_fake before using.

2015-04-02 Thread Praveen Paneri
Check on bo_fake before dereferencing the object in functions evict_lru and evict_mru. Signed-off-by: Praveen Paneri --- intel/intel_bufmgr_fake.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/intel/intel_bufmgr_fake.c b/intel/intel_bufmgr_fake.c index c48

[Intel-gfx] [PATCH 09/12] xf86drmSL: Check memory allocation by SL_RANDOM_INIT()

2015-04-02 Thread Praveen Paneri
If the allocation fails, return -ENOMEM. Handle the return value at the caller funtion drmSLInsert() as well. Signed-off-by: Praveen Paneri --- xf86drmSL.c | 5 + 1 file changed, 5 insertions(+) diff --git a/xf86drmSL.c b/xf86drmSL.c index 45f3906..edafe7b 100644 --- a/xf86drmSL.c +++ b/xf8

[Intel-gfx] [PATCH 08/12] drm: Validate memory allocations

2015-04-02 Thread Praveen Paneri
This patch adds check on various drmMalloc() calls if they were able to allocate memory as requested or not. Return appropriate error if the allocation fails. Signed-off-by: Praveen Paneri --- xf86drm.c | 51 --- 1 file changed, 40 insertions(+), 1

[Intel-gfx] [PATCH 10/12] xf86drmHash: Check memory allocation in HashHash()

2015-04-02 Thread Praveen Paneri
HASH_RANDOM_INIT() can fail to allocate memory. In such case return an invalid hash value (0x) from HashHash() function. Caller functions check the hash value and act accordingly. Signed-off-by: Praveen Paneri --- xf86drmHash.c | 9 + 1 file changed, 9 insertions(+) diff --git a

[Intel-gfx] [PATCH 00/12] drm: Fix various static analysis issues

2015-04-02 Thread Praveen Paneri
This patch set fixes various issues reported by a static analysis tool. Praveen Paneri (12): intel: Validate bo_fake before using. intel: Validate output of realloc() intel: Use snprintf instead of sprintf intel: Validate pointer before using xf86drm: Avoid negative array index value

[Intel-gfx] [PATCH 11/12] xf86drm: Validate function return value

2015-04-02 Thread Praveen Paneri
Return value of drmHashCreate() and drmGetEntry() functions can be NULL. It should be validated before being used. Signed-off-by: Praveen Paneri --- xf86drm.c | 24 +++- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 373113b..d3a002

[Intel-gfx] [PATCH 02/12] intel: Validate output of realloc()

2015-04-02 Thread Praveen Paneri
realloc will return NULL if failed to allocate the extra memory requested. Return from function if it fails. Signed-off-by: Praveen Paneri --- intel/intel_bufmgr_gem.c | 37 - 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/intel/intel_bufmgr_ge

[Intel-gfx] [PATCH 05/12] xf86drm: Avoid negative array index value

2015-04-02 Thread Praveen Paneri
Variable retcode can be negative as well. Put the correct condition on it before using it as array index. Signed-off-by: Praveen Paneri --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index e73cddd..1e25424 100644 --- a/xf86drm.c +++ b/xf86

[Intel-gfx] [PATCH 06/12] xf86drmSL: Check function return value

2015-04-02 Thread Praveen Paneri
Validate the return value of SLCreateEntry() before using it. Signed-off-by: Praveen Paneri --- xf86drmSL.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xf86drmSL.c b/xf86drmSL.c index acddb54..45f3906 100644 --- a/xf86drmSL.c +++ b/xf86drmSL.c @@ -139,6 +139,7 @@ void *drmSLCreate(void

Re: [Intel-gfx] [PATCH] drm/i915: Rip out GET_SPRITE_COLORKEY ioctl

2015-04-02 Thread Jani Nikula
On Fri, 27 Mar 2015, Daniel Vetter wrote: > On Fri, Mar 27, 2015 at 09:10:02AM +0100, Daniel Vetter wrote: >> It's completely unused and Tommi noticed that the #define is borked >> since forever. I've done a git search in userspace and only found >> broken definitions and no users anywhere. >> >>

Re: [Intel-gfx] [PATCH 2/2] drm/i915/vlv: remove wait for previous GFX clk disable request

2015-04-02 Thread Imre Deak
On Wed, 2015-04-01 at 14:22 -0700, Jesse Barnes wrote: > Looks like it was introduced in: > > commit 650ad970a39f8b6164fe8613edc150f585315289 > Author: Imre Deak > Date: Fri Apr 18 16:35:02 2014 +0300 > > drm/i915: vlv: factor out vlv_force_gfx_clock and check for pending > force-of > >

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

2015-04-02 Thread Jani Nikula
Hi Dave - Here's a single drm core fix, cc: stable, that affects i915 users. Picked it up myself as explained in [1]. I'll still send a separate drm/i915 pull request. BR, Jani. [1] http://mid.gmane.org/874mp6r6bk@intel.com The following changes since commit bc465aa9d045feb0e13b4a8f32cc33

  1   2   >