[Intel-gfx] [PATCH] drm/i915: dont call irq_put when irq test is on

2013-12-09 Thread Mika Kuoppala
If test is running, irq_get was not called so we should gain balance by not doing irq_put v2: use local variable so it can't change during test (Chris) Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_gem.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/

[Intel-gfx] [PATCH] drm/i915: Fix timeout with missed interrupts in __wait_seqno

2013-12-09 Thread Mika Kuoppala
Commit 094f9a54e355 ("drm/i915: Fix __wait_seqno to use true infinite timeouts") added support for __wait_seqno to detect missing interrupts and go around them by polling. As there is also timeout detection in __wait_seqno, the polling and timeout detection were done with the same timer. When ther

[Intel-gfx] [QA] Testing report for `drm-intel-testing` (was: Updated -next) on ww50

2013-12-09 Thread Yang, Guang A
Summary We mainly focus the Q4 release testing these days, so this testing report sending a little later. We covered the platform: Broadwell, Baytrail-M, Haswell mobile, HSW desktop, HSW ULT, IvyBridge, SandyBridge, IronLake. In this circle, 10 new bugs are filed, 36 bugs are still opened, no WON

[Intel-gfx] [PATCH 2/2] rendercopy/bdw: Fix length of a bunch of zeroed out packets.

2013-12-09 Thread Kenneth Graunke
A bunch of packets were too short. Signed-off-by: Kenneth Graunke Cc: Ben Widawsky Cc: Damien Lespiau --- lib/rendercopy_gen8.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) The test is still broken for me, but I figure these patches are necessary (if not s

[Intel-gfx] [PATCH 1/2] rendercopy/bdw: Emit 3DSTATE_WM_HZ_OP.

2013-12-09 Thread Kenneth Graunke
We don't want depth/stencil fast clears or HiZ resolves; we want normal drawing. Without this, the pixel pipeline doesn't work. Signed-off-by: Kenneth Graunke Cc: Ben Widawsky Cc: Damien Lespiau --- lib/gen8_render.h | 2 ++ lib/rendercopy_gen8.c | 10 ++ 2 files changed, 12 inse

[Intel-gfx] [PATCH v3 4/7] drm/i915: Try harder to get best m, n, p values with minimal error

2013-12-09 Thread Shobhit Kumar
Basically check for both +ive and -ive deviation from target clock and pick the one with minimal error. If we get a direct match, break from loop to acheive some optimization. v2: Use signed variable for target and calculated dsi clock values Signed-off-by: Vijayakumar Balakrishnan Signed-off-by

[Intel-gfx] [PATCH v3 0/7] drm/i915: Baytrail MIPI DSI support Updated

2013-12-09 Thread Shobhit Kumar
Hi All - These patches enhance the current support for MIPI DSI for Baytrail. They continue on the sub-encoder design and adds few more dev_ops to handle sequence correctly. Major changes are - 1. DSI Clock calculation based on pixel clock 2. Add new dev_ops for better sequencing the enable/disabl

[Intel-gfx] [PATCH v3 6/7] drm/i915: Remove redundant DSI PLL enabling

2013-12-09 Thread Shobhit Kumar
DSI PLL will get configured during crtc_enable using ->pre_pll_enable and no need to do in ->mode_set Signed-off-by: Shobhit Kumar Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/intel_dsi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dsi.c b/drivers/gpu/d

[Intel-gfx] [PATCH v3 7/7] drm/i915: Parametrize the dphy and other spec specific parameters

2013-12-09 Thread Shobhit Kumar
The values of these parameters will be different for differnet panel based on dsi rate, lane count, etc. Remove the hardcodings and make these as parameters whch will be initialized in panel specific sub-encoder implementaion. This will also form groundwork for planned generic panel sub-encoder im

[Intel-gfx] [PATCH v3 2/7] drm/i915: Use FLISDSI interface for band gap reset

2013-12-09 Thread Shobhit Kumar
v2: Rebased on latest code Signed-off-by: Shobhit Kumar Signed-off-by: Yogesh Mohan Marimuthu Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/i915_reg.h | 1 + drivers/gpu/drm/i915/intel_dsi.c | 47 ++-

[Intel-gfx] [PATCH v3 1/7] drm/i915: Add more dev ops for MIPI sub encoder

2013-12-09 Thread Shobhit Kumar
Some panels require one time programming if they do not contain their own eeprom for basic register initialization. The sequence is Panel Reset --> Send OTP --> Enable Pixel Stream --> Enable the panel v2: Based on review comments from Jani and Ville - Updated the commit message with more det

[Intel-gfx] [PATCH v3 3/7] drm/i915: Compute dsi_clk from pixel clock

2013-12-09 Thread Shobhit Kumar
Pixel clock based calculation is recommended in the MIPI host controller documentation v2: Based on review comments from Jani and Ville - Use dsi_clk in KHz rather than converting in Hz and back to MHz - RR formula is retained though not used but return dsi_clk in KHz now - Moved the m

[Intel-gfx] [PATCH v3 5/7] drm/i915: Reorganize the DSI enable/disable sequence

2013-12-09 Thread Shobhit Kumar
Basically ULPS handling during enable/disable has been moved to pre_enable and post_disable phases. PLL and panel power disable also has been moved to post_disable phase. The ULPS entry/exit sequneces as suggested by HW team is as follows - During enable time - set DEVICE_READY --> Clear DEVICE_RE

Re: [Intel-gfx] [PATCH IGT] tests/kms_setmode: avoid 2 connectors on the same encoder

2013-12-09 Thread Imre Deak
On Tue, 2013-12-03 at 15:38 -0200, Paulo Zanoni wrote: > From: Paulo Zanoni > > Don't try to set modes on two connectors that share the same encoder. > That will just fail. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68463 > Signed-off-by: Paulo Zanoni Looks ok: Reviewed-by: Imr

[Intel-gfx] setting brightness with xrandr seem wrong

2013-12-09 Thread zaverel
hello, is it normal that if I rule the brightness with xrandr, only the value of gamma change and not the brightness ? display actually becomes much clearer but this is due to gamma or brightness ? That is the question. Thanks. See you. xrandr --output HDMI2 --brightness 1.20 xrandr --

[Intel-gfx] setting brightness with xrandr seem wrong

2013-12-09 Thread zaverel
hello, is it normal that if I rule the brightness with xrandr, only the value of gamma change and not the brightness ? display actually becomes much clearer but this is due to gamma or brightness ? That is the question. Thanks. See you. xrandr --output HDMI2 --brightness 1.20 xrandr --verbo

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Bring UP Power Wells before disabling RC6.

2013-12-09 Thread Daniel Vetter
On Mon, Dec 09, 2013 at 02:14:03PM +, S, Deepak wrote: > >What precisely does this fix? All our register access is already wrapped in > >get/put calls, so I'm a bit confused ... Is this to work around hw issues, > >or is this what the bios expects when going into suspend? > > Yes Daniel, thi

[Intel-gfx] [PATCH 2/5] drm/i915: Change N divider minimum from 3 to 2 for gen2

2013-12-09 Thread ville . syrjala
From: Ville Syrjälä Bruno Prémont has a 855 machine with a 1400x1050 LVDS screen. The VBT mode is as follows: 0:"1400x1050" 0 108000 1400 1416 1528 1688 1050 1051 1054 1066 0x8 0xa The BIOS uses the following DPLL settings: DPLL = 0x9002 FP0 = 0x2140e FP1 = 0x21207 We can't generate that p

[Intel-gfx] [PATCH 0/5] drm/i915: Gen2 PLL fixes

2013-12-09 Thread ville . syrjala
There appear to be some gen2 machines that don't really like the current PLL limits we have. We also have some accuracy problems with the PLL calculations. This series aims to eliminate those problems, and at least my 855 machine seems happier with these patches. Ville Syrjälä (5): drm/i915:

[Intel-gfx] [PATCH 5/5] drm/i915: Decrease gen2 vco frequency minimum to 908 MHz

2013-12-09 Thread ville . syrjala
From: Ville Syrjälä On my 855 machine the BIOS uses the following DPLL settings: DPLL 0x90016000 FP0 = 0x61207 FP1 = 0x21207 With the 66MHz SSC refclock, that puts the BIOS generated VCO frequency at ~908 MHz, which is lower than the 930 MHz limit we have currently. This also results in the pixe

[Intel-gfx] [PATCH 4/5] drm/i915: Fix 66 MHz LVDS SSC freq for gen2

2013-12-09 Thread ville . syrjala
From: Ville Syrjälä Store the SSC refclock frequency in kHz to get more accuracy. Currently we're pretending that 66 MHz is ~66000 kHz, when in fact it is actually ~7 kHz. By storing the less rounded kHz value we get a much better accuracy for out pixel clock calculations. Cc: Bruno Prémont

[Intel-gfx] [PATCH 3/5] drm/i915: Increase gen2 vco frequency limit to 1512 MHz

2013-12-09 Thread ville . syrjala
From: Ville Syrjälä Bruno Prémont has a 855 machine with a 1400x1050 LVDS screen. The VBT mode is as follows: 0:"1400x1050" 0 108000 1400 1416 1528 1688 1050 1051 1054 1066 0x8 0xa The BIOS uses the following DPLL settings: DPLL = 0x9002 FP0 = 0x2140e FP1 = 0x21207 That puts the BIOS gener

[Intel-gfx] [PATCH 1/5] drm/i915: Extract p2 divider correctly for gen2 LVDS dual channel

2013-12-09 Thread ville . syrjala
From: Ville Syrjälä In order to determine the correct p2 divider for LVDS on gen2, we need to check the CLKB mode from the LVDS port register to determine if we're dealing with single or dual channel LVDS. Cc: Bruno Prémont Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_display.c

[Intel-gfx] DP1 Monitor Flashes

2013-12-09 Thread Raul Dias
Hello, I have a Dell L502x which have a optimus Graphic Pack: 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) (prog-if 00 [VGA controller]) Subsystem: Dell Device 050e Flags: bus master, fast devsel,

Re: [Intel-gfx] [PATCH 3/8] drm/i915: use __packed instead of __attribute__((packed))

2013-12-09 Thread Rodrigo Vivi
yeap... I sent the series one week earlier than I should. Please just ignore this full -collector round. On Mon, Dec 9, 2013 at 11:37 AM, Damien Lespiau wrote: > On Mon, Dec 09, 2013 at 10:42:58AM -0200, Rodrigo Vivi wrote: >> From: Jani Nikula >> >> Checkpatch tells me >> >> WARNING: __packed

Re: [Intel-gfx] [PATCH 1/4] drm/i915: update current freq properly before requesting new freq.

2013-12-09 Thread S, Deepak
I am trying to get more details. I will update the thread once I have some clarification. Thanks for reviewing. -Original Message- From: Ville Syrjälä [mailto:ville.syrj...@linux.intel.com] Sent: Monday, December 9, 2013 3:34 PM To: S, Deepak Cc: intel-gfx@lists.freedesktop.org Subject:

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Verify address field of PCBR register.

2013-12-09 Thread S, Deepak
> Have you actually seen cases where the BIOS would be buggy enough to lock the > power context addres at 0? If so, we should just scream and run away instead > of blindly trying to write a new address to PCBR and pretending that things > are fine after that. We had faced some issue doing the i

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Bring UP Power Wells before disabling RC6.

2013-12-09 Thread S, Deepak
>What precisely does this fix? All our register access is already wrapped in >get/put calls, so I'm a bit confused ... Is this to work around hw issues, or >is this what the bios expects when going into suspend? Yes Daniel, this was sequence recommended when going into suspend/Resume path.

Re: [Intel-gfx] [PATCH 2/4] drm/i915: set min delay to rpe delay (Efficient frequency) for better performace.

2013-12-09 Thread S, Deepak
Hi Chris, My understanding is that running at efficient freq (RPe) where RPe is greater than the min freq (RPn) (RPe > RPn), at same Vmin voltage should give us better performance right?. Please correct me if my understand is not right Thanks Deepak -Original Message- From: Chris Wilso

Re: [Intel-gfx] [PATCH 3/8] drm/i915: use __packed instead of __attribute__((packed))

2013-12-09 Thread Damien Lespiau
On Mon, Dec 09, 2013 at 10:42:58AM -0200, Rodrigo Vivi wrote: > From: Jani Nikula > > Checkpatch tells me > > WARNING: __packed is preferred over __attribute__((packed)) > > so switch over to __packed across the driver before adding new packed > structs. > > Signed-off-by: Jani Nikula > Signe

[Intel-gfx] [PATCH 7/8] drm/i915: Only use read-back pipe config

2013-12-09 Thread Rodrigo Vivi
From: Daniel Vetter This way we'll catch bugs in our code where we depend upon pipe config state not (yet) read out much quicker, through a simple dpms on/off cycle. This will blow up all over the place for now, hence just a quick idea to toss out there. Signed-off-by: Daniel Vetter Signed-off

[Intel-gfx] [PATCH 5/8] drm/i915: i830M has watermarks like i855

2013-12-09 Thread Rodrigo Vivi
From: Daniel Vetter So shuffle the checks around a bit. Also give all the structs and functions proper prefixes: i830_ for the dual-pipe mobile platforms and i845_ for the two single-pipe desktop platforms. Note that the max fifo value isn't actually correct for the i830M, but since we don't fro

[Intel-gfx] [PATCH 3/8] drm/i915: use __packed instead of __attribute__((packed))

2013-12-09 Thread Rodrigo Vivi
From: Jani Nikula Checkpatch tells me WARNING: __packed is preferred over __attribute__((packed)) so switch over to __packed across the driver before adding new packed structs. Signed-off-by: Jani Nikula Signed-off-by: Rodrigo Vivi Reviewed-by: Damien Lespiau --- drivers/gpu/drm/i915/intel

[Intel-gfx] [PATCH 0/8] drm-intel-collector - update

2013-12-09 Thread Rodrigo Vivi
This is another drm-intel-collector updated notice: http://cgit.freedesktop.org/~vivijim/drm-intel/log/?h=drm-intel-collector Here goes the update list in order for better reviewers assignment: Patch drm/i915: Asynchronously perform the set-base for a simple modeset - Reviewed Patch drm

[Intel-gfx] [PATCH 4/8] drm/i915: parse backlight modulation frequency from the BIOS VBT

2013-12-09 Thread Rodrigo Vivi
From: Jani Nikula We don't actually do anything with the information yet, but parse and log what's in the VBT. Signed-off-by: Jani Nikula Signed-off-by: Rodrigo Vivi Reviewed-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv.h | 5 + drivers/gpu/drm/i915/intel_bios.c | 29 +++

[Intel-gfx] [PATCH 6/8] drm/i915: vlv: W/a for hotplug/manual VGA detection

2013-12-09 Thread Rodrigo Vivi
From: Imre Deak At least on my VLV stepping VGA detection doesn't work in certain cases. One such case is when all pipes are off and VGA is plugged in. Another case reported by Joonas Lahtinen (also on the same stepping) is booting with VGA disconnected where we incorrectly report that VGA is con

[Intel-gfx] [PATCH 8/8] drm/i915/vlv: Update Wait for FIFO and wait for 20 free entries. v3

2013-12-09 Thread Rodrigo Vivi
From: Deepak S On VLV, FIFO will be shared by both SW and HW. So, we read the free entries through register and update dev_priv variable and wait for only 20 entries to be free v2: Apply mask when we read the number of free FIFO entries (Ville). v3: Mask applied after reading the register (Deep

[Intel-gfx] [PATCH 2/8] drm/i915: Do hw quiescing first during unload

2013-12-09 Thread Rodrigo Vivi
From: Chris Wilson If we force the hw to idle as our first step during unload, we can abort the unload upon failure. Later we can probe whether the hardware remain active even after we try to shut it down. Signed-off-by: Chris Wilson Reviewed-by: Rodrigo Vivi Signed-off-by: Rodrigo Vivi ---

[Intel-gfx] [PATCH 1/8] drm/i915: Asynchronously perform the set-base for a simple modeset

2013-12-09 Thread Rodrigo Vivi
From: Chris Wilson A simple modeset, where we only wish to switch over to a new framebuffer such as the transition from fbcon to X, takes around 30-60ms. This is due to three factors: 1. We need to make sure the fb->obj is in the display domain, which incurs a cache flush to ensure no dirt is le

[Intel-gfx] [PATCH] drm/i915: Repeat eviction search after idling the GPU

2013-12-09 Thread Chris Wilson
With the advent of hw context support, we gained some objects that are pinned for the duration of their request. That is we can make aperture space available by idling the GPU and in the process performing a context switch back to the always-pinned default context. As such, we should not conclude t

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Disable/Enable PM Intrrupts based on the current freq.

2013-12-09 Thread Ville Syrjälä
On Sun, Dec 08, 2013 at 02:16:45PM +0530, deepa...@intel.com wrote: > From: Deepak S > > When current delay is already at max delay, Let's disable the PM UP > THRESHOLD INTRRUPTS, so that we will not get further interrupts until > current delay is less than max delay, Also request for the PM DOWN

Re: [Intel-gfx] [PATCH 1/4] drm/i915: update current freq properly before requesting new freq.

2013-12-09 Thread Ville Syrjälä
On Sun, Dec 08, 2013 at 02:16:43PM +0530, deepa...@intel.com wrote: > From: Deepak S > > on VLV, P-Unit doesn't garauntee that last requested freq by driver > is actually the current running frequency. We need to make sure we update > the cur freq. before requesitng new freq. > > Signed-off-by:

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Verify address field of PCBR register.

2013-12-09 Thread Ville Syrjälä
On Sun, Dec 08, 2013 at 01:52:35PM +0530, deepa...@intel.com wrote: > From: Deepak S > > On VLV the PCBR register has other bits besides the pcbr address > field. Verify only address field setup by BIOS to make sure we don't > misinterpret the PCBR setup. > > Signed-off-by: Deepak S > --- > dr

Re: [Intel-gfx] [PATCH] drm/i915: Make downclock deduction common for all panels

2013-12-09 Thread Jani Nikula
On Mon, 09 Dec 2013, Vandana Kannan wrote: > If one mode of a internal panel has more than one refresh rate, then a reduced > clock is found for the LFP (LVDS/eDP). This enables switching between low > and high frequency dynamically. Moving downclock calculation to intel_panel > so that it is comm

Re: [Intel-gfx] [PATCH 4/4] drm/i915: WA to fix Voltage is not getting dropped to Vmin when Gfx is power gated.

2013-12-09 Thread Daniel Vetter
On Sun, Dec 08, 2013 at 02:16:46PM +0530, deepa...@intel.com wrote: > From: Deepak S > > Voltage is not getting dropped to Vmin when GFX enters RC6 and running > in/out of turbo frequency. When we enter RC6 and GFX Clocks are off, the > voltage remains higher than Vmin. As GFX does not request lo

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Remove duplicate intel_uncore_forcewake_reset.

2013-12-09 Thread Daniel Vetter
On Sun, Dec 08, 2013 at 01:52:59PM +0530, deepa...@intel.com wrote: > From: Deepak S > > Since early sanitize and uncore sanitize are called one after the other, > I think, we can remove second forcewake reset which was are calling > twice in both the functions. > > Signed-off-by: Deepak S Thi

[Intel-gfx] [PATCH] drm/i915: Make downclock deduction common for all panels

2013-12-09 Thread Vandana Kannan
If one mode of a internal panel has more than one refresh rate, then a reduced clock is found for the LFP (LVDS/eDP). This enables switching between low and high frequency dynamically. Moving downclock calculation to intel_panel so that it is common for LVDS and eDP. Signed-off-by: Vandana Kannan

Re: [Intel-gfx] [PATCH 3/4] drm/i915: Disable/Enable PM Intrrupts based on the current freq.

2013-12-09 Thread Daniel Vetter
On Sun, Dec 08, 2013 at 02:16:45PM +0530, deepa...@intel.com wrote: > From: Deepak S > > When current delay is already at max delay, Let's disable the PM UP > THRESHOLD INTRRUPTS, so that we will not get further interrupts until > current delay is less than max delay, Also request for the PM DOWN

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Bring UP Power Wells before disabling RC6.

2013-12-09 Thread Daniel Vetter
On Sun, Dec 08, 2013 at 01:52:46PM +0530, deepa...@intel.com wrote: > From: Deepak S > > Instead of waiting for HW to bringup the wells, We force the wells up > before disabling RC6. This is to avoid any register access when wells > are down. > > Signed-off-by: Deepak S > --- > drivers/gpu/drm