Re: [Intel-gfx] [PATCH 3/3] drm/i915: Add soft-pinning API for execbuffer

2015-11-06 Thread Kristian Høgsberg
On Fri, Nov 6, 2015 at 5:38 AM, Chris Wilson wrote: > On Thu, Nov 05, 2015 at 10:17:56AM -0800, Jesse Barnes wrote: >> On 11/05/2015 09:51 AM, Kristian Høgsberg wrote: >> > On Tue, Oct 6, 2015 at 3:53 AM, Chris Wilson >> > wrote: >> >> Userspace can pass in an offset that it presumes the object

Re: [Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

2015-11-06 Thread Yu Dai
On 11/06/2015 02:09 PM, Chris Wilson wrote: On Fri, Nov 06, 2015 at 01:56:59PM -0800, yu@intel.com wrote: > From: Alex Dai > > Can't immediately free LRC context (neither unpin it) even all > its referenced requests are completed, because HW still need a > short period of time to save data

[Intel-gfx] [PATCH] drm/i915/skl: Update DDI translation tables for SKL

2015-11-06 Thread Jim Bride
While comparing the B-Spec with the code I noticed that several values in these tables have been updated in the spec, so I changed the code to match.. Cc: Rodrigo Vivi Signed-off-by: Jim Bride --- drivers/gpu/drm/i915/intel_ddi.c | 22 +++--- 1 file changed, 11 insertions(+), 11

Re: [Intel-gfx] [PATCH] drm/i915/guc: Fix a fw content lost issue after it is evicted

2015-11-06 Thread Yu Dai
On 11/06/2015 02:07 PM, Chris Wilson wrote: On Fri, Nov 06, 2015 at 01:55:27PM -0800, yu@intel.com wrote: > From: Alex Dai > > We keep a copy of GuC fw in a GEM obj. However its content is lost > if the GEM obj is evicted (igt/gem_evict_*). Therefore, the later > fw loading during GPU rese

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Add a modeset power domain

2015-11-06 Thread Dave Airlie
On 3 November 2015 at 22:31, Patrik Jakobsson wrote: > We need DC5/DC6 to be disabled around modesets to prevent confusing the > DMC. Also, we've run out of bits in the 32 bit power domain mask so now > it's a 64 bit mask. > It was bad enough the original code used unsigned long so was different

Re: [Intel-gfx] [PATCH] tools/null_state/gen9: Send all components in VF state

2015-11-06 Thread Ben Widawsky
On Fri, Nov 06, 2015 at 10:00:19PM +, Chris Wilson wrote: > On Thu, Aug 13, 2015 at 04:11:00PM +0300, Mika Kuoppala wrote: > > Fix > > > > commit 59cdc16b1a6f069f944ff17851a59edf8f72d45d > > Author: Arun Siluvery > > Date: Fri Jul 31 16:27:07 2015 +0100 > > > > tools/null_state/gen9: S

Re: [Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

2015-11-06 Thread kbuild test robot
Hi Alex, [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on next-20151106] [cannot apply to v4.3] url: https://github.com/0day-ci/linux/commits/yu-dai-intel-com/drm-i915-guc-Defer-LRC-context-unpin-or-release/20151107-060016 base: git

Re: [Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

2015-11-06 Thread Chris Wilson
On Fri, Nov 06, 2015 at 01:56:59PM -0800, yu@intel.com wrote: > From: Alex Dai > > Can't immediately free LRC context (neither unpin it) even all > its referenced requests are completed, because HW still need a > short period of time to save data to LRC status page. It is safe > to free LRC w

Re: [Intel-gfx] [PATCH] drm/i915/guc: Fix a fw content lost issue after it is evicted

2015-11-06 Thread Chris Wilson
On Fri, Nov 06, 2015 at 01:55:27PM -0800, yu@intel.com wrote: > From: Alex Dai > > We keep a copy of GuC fw in a GEM obj. However its content is lost > if the GEM obj is evicted (igt/gem_evict_*). Therefore, the later > fw loading during GPU reset will fail. No, it's not. The bug is in sg_co

Re: [Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

2015-11-06 Thread Yu Dai
Sorry for wrong patch. Please forget about his one. Another one will be submitted. Alex On 11/06/2015 01:56 PM, yu@intel.com wrote: From: Alex Dai Can't immediately free LRC context (neither unpin it) even all its referenced requests are completed, because HW still need a short period of

[Intel-gfx] [PATCH] drm/i915: Defer LRC unpin and release

2015-11-06 Thread yu . dai
From: Alex Dai Can't immediately free LRC (neither unpin it) even all its referenced requests are completed, because HW still need a short period of time to save data to LRC status page. It is safe to free LRC when HW completes a request from a different LRC. Introduce a new function intel_lr_co

[Intel-gfx] [PATCH] drm/i915/guc: Fix a fw content lost issue after it is evicted

2015-11-06 Thread yu . dai
From: Alex Dai We keep a copy of GuC fw in a GEM obj. However its content is lost if the GEM obj is evicted (igt/gem_evict_*). Therefore, the later fw loading during GPU reset will fail. Now we keep the copy in a memory block rather than a GEM objet. During fw loading, we will wrap up a GEM obj

Re: [Intel-gfx] [PATCH] tools/null_state/gen9: Send all components in VF state

2015-11-06 Thread Chris Wilson
On Thu, Aug 13, 2015 at 04:11:00PM +0300, Mika Kuoppala wrote: > Fix > > commit 59cdc16b1a6f069f944ff17851a59edf8f72d45d > Author: Arun Siluvery > Date: Fri Jul 31 16:27:07 2015 +0100 > > tools/null_state/gen9: Send atleast one valid component in VF state > > to honor the Reviewed-by, sen

[Intel-gfx] [PATCH] drm/i915/guc: Defer LRC context unpin or release

2015-11-06 Thread yu . dai
From: Alex Dai Can't immediately free LRC context (neither unpin it) even all its referenced requests are completed, because HW still need a short period of time to save data to LRC status page. It is safe to free LRC when HW completes a request from a different LRC. Move LRC to ring->last_unpin

Re: [Intel-gfx] [PATCH v2 26/29] drm/i915: Add 'offset' to uncore funcs

2015-11-06 Thread Chris Wilson
On Fri, Nov 06, 2015 at 09:47:16PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Add 'u32 offset' to the uncore register access functions. For now > it's the same as 'reg', but once type safety gets added 'reg' will be > the type safe register variable and 'offset' the raw

Re: [Intel-gfx] [PATCH 5/6] drm/i915/kbl: Use propper ddi buffer translation table for Kabylake ULT and ULX.

2015-11-06 Thread Paulo Zanoni
2015-10-27 15:14 GMT-02:00 Rodrigo Vivi : > Let's introduce ULT and ULX Kabylake definitions and start > using it for a propper DDI buffer translation. > > Signed-off-by: Rodrigo Vivi > --- > drivers/gpu/drm/i915/i915_drv.h | 8 > drivers/gpu/drm/i915/intel_ddi.c | 10 +- > 2 f

[Intel-gfx] [PATCH v2 26/29] drm/i915: Add 'offset' to uncore funcs

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä Add 'u32 offset' to the uncore register access functions. For now it's the same as 'reg', but once type safety gets added 'reg' will be the type safe register variable and 'offset' the raw offset. v2: s/uint32_t/u32/ (Chris) Cc: Chris Wilson Signed-off-by: Ville Syrjälä --

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Add a modeset power domain

2015-11-06 Thread Daniel Stone
Hi, On 6 November 2015 at 13:53, Daniel Stone wrote: > On 5 November 2015 at 17:12, Patrik Jakobsson > wrote: >> On Thu, Nov 5, 2015 at 4:02 PM, Daniel Stone wrote: >>> On 3 November 2015 at 12:31, Patrik Jakobsson >>> wrote: We need DC5/DC6 to be disabled around modesets to prevent confu

[Intel-gfx] [PATCH v2 18/29] drm/i915: Make the cmd parser 64bit regs explicit

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä Add defines for the upper halves of the registers used by the cmd parser. Getting rid of the arithmetic with the register offset will help in making registers type safe. v2: s/_HI/_UDW/ (Chris) Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- drivers/gpu/drm/i91

[Intel-gfx] [PATCH v2 17/29] drm/i915: Make the high dword offset more explicit in i915_reg_read_ioctl

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä Store the upper dword of the register offset in the whitelist as well. This would allow it to read register where the two halves aren't sitting right next to each other, and it'll make it easier to make register access type safe. While at it change the register offsets to u32

[Intel-gfx] [PATCH v2 10/29] drm/i915: s/is_sdvob/enum port/

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä Replace the is_sdvob bool and some sdvo_reg checks with enum port. This makes the SDVO code look more modern, and gets rid of explicit register offset checks in the code which will hamper register type checking. v2: Add assert_sdvo_port_valid() (Chris) Signed-off-by: Ville S

Re: [Intel-gfx] [PATCH 1/2] drm/i915/kbl: drm/i915: Avoid GuC loading for now on Kabylake.

2015-11-06 Thread Yu Dai
On 10/29/2015 10:22 AM, Rodrigo Vivi wrote: GuC has no version for KBL published yet and it is not recommended to load the Skylake one, so let's avoid loading this for now while we don't have the proper GuC firmware for Kabylake. Signed-off-by: Rodrigo Vivi --- drivers/gpu/drm/i915/i915_drv

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Move the fbdev async_schedule() into intel_fbdev.c

2015-11-06 Thread Jesse Barnes
On 11/06/2015 05:08 AM, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Reading the driver load/unload code leaves one confused as there's > an async_schedule() in the load, but not async_synchronize_full() > in sight. In fact it's hidden inside intel_fbdev.c. So let's move the > a

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Add soft-pinning API for execbuffer

2015-11-06 Thread Jesse Barnes
On 11/06/2015 05:38 AM, Chris Wilson wrote: > On Thu, Nov 05, 2015 at 10:17:56AM -0800, Jesse Barnes wrote: >> On 11/05/2015 09:51 AM, Kristian Høgsberg wrote: >>> On Tue, Oct 6, 2015 at 3:53 AM, Chris Wilson >>> wrote: Userspace can pass in an offset that it presumes the object is located >

[Intel-gfx] [PATCH] lib: Add Skylake Intel Graphics GT4 PCI IDs

2015-11-06 Thread Mika Kuoppala
Add Skylake Intel Graphics GT4 PCI IDs. Signed-off-by: Mika Kuoppala --- lib/intel_chipset.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/intel_chipset.h b/lib/intel_chipset.h index 6fcc244..93bf565 100644 --- a/lib/intel_chipset.h +++ b/lib/intel_chipset.

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Add a modeset power domain

2015-11-06 Thread Daniel Stone
Hi, On 6 November 2015 at 14:17, Imre Deak wrote: > On pe, 2015-11-06 at 13:53 +, Daniel Stone wrote: >> On 5 November 2015 at 17:12, Patrik Jakobsson >> wrote: >> > Ah yes, we carry the mask around there as well. Thanks for catching >> > that. I like the move of POWER_DOMAIN_MODESET into pu

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Add a modeset power domain

2015-11-06 Thread Imre Deak
On pe, 2015-11-06 at 13:53 +, Daniel Stone wrote: > Hi, > > On 5 November 2015 at 17:12, Patrik Jakobsson > wrote: > > On Thu, Nov 5, 2015 at 4:02 PM, Daniel Stone > > wrote: > > > On 3 November 2015 at 12:31, Patrik Jakobsson > > > wrote: > > > > We need DC5/DC6 to be disabled around modes

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Do fbdev fini first during unload

2015-11-06 Thread Ville Syrjälä
On Fri, Nov 06, 2015 at 03:08:32PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We set up fbdev last during load, so doing the fbdev cleanup should be > first. > > We weren't supposed to drop the init power during driver load, but since

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Add a modeset power domain

2015-11-06 Thread Daniel Stone
Hi, On 5 November 2015 at 17:12, Patrik Jakobsson wrote: > On Thu, Nov 5, 2015 at 4:02 PM, Daniel Stone wrote: >> On 3 November 2015 at 12:31, Patrik Jakobsson >> wrote: >>> We need DC5/DC6 to be disabled around modesets to prevent confusing the >>> DMC. Also, we've run out of bits in the 32 bi

[Intel-gfx] i915 and vbetool

2015-11-06 Thread Holger Schurig
Hi all, I have various devices where I can control the backlight via "vbetool dpms off" and "vbetool dpms on" (basically terminals with industrial motherboards from Congatec or Advantech). The context is some hardware test after manufacturing, so I'm running in the text console. No X11 is (or has

Re: [Intel-gfx] [PATCH 12/13] drm/i915: remove in_dbg_master check from intel_fbc.c

2015-11-06 Thread Jason Wessel
On 11/04/2015 02:13 PM, Jesse Barnes wrote: On 11/04/2015 11:10 AM, Paulo Zanoni wrote: From our maintainer Daniel Vetter a few days ago: "Oh dear this is dead code. kdbg uses the fbcon, which always uses untiled, which means fbc will never be enabled. Also we have 0 users and 0 test c

Re: [Intel-gfx] [PATCH v3 04/29] drm/i915: Parametrize AUX registers

2015-11-06 Thread Ville Syrjälä
On Fri, Nov 06, 2015 at 01:25:19PM +, Chris Wilson wrote: > On Wed, Nov 04, 2015 at 11:19:52PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > v2: Keep some MISSING_CASE() stuff (Jani) > > s/-1/-PIPE_B/ in the register macro > > Fix typo in patch subject >

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

2015-11-06 Thread Jani Nikula
Hi Dave - Here's a handful of i915 fixes for drm-next/v4.4. Imre's commit alone should address the remaining warnings galore you experienced on Skylake. Almost all of the rest are also fixes against user or QA reported bugs, with references. Without going into specifics, please know that we're a

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Add soft-pinning API for execbuffer

2015-11-06 Thread Chris Wilson
On Thu, Nov 05, 2015 at 10:17:56AM -0800, Jesse Barnes wrote: > On 11/05/2015 09:51 AM, Kristian Høgsberg wrote: > > On Tue, Oct 6, 2015 at 3:53 AM, Chris Wilson > > wrote: > >> Userspace can pass in an offset that it presumes the object is located > >> at. The kernel will then do its utmost to f

Re: [Intel-gfx] [PATCH 27/29] drm/i915: Add save/restore of SWF for ILK+

2015-11-06 Thread Ville Syrjälä
On Fri, Nov 06, 2015 at 01:14:33PM +, Chris Wilson wrote: > On Wed, Nov 04, 2015 at 11:20:15PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > No idea if we might want these. Perhaps there is a "keep your paws off > > my GPU" bit in there somewhere to avoid BIOS cr

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Do fbdev fini first during unload

2015-11-06 Thread Chris Wilson
On Fri, Nov 06, 2015 at 03:08:32PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > We set up fbdev last during load, so doing the fbdev cleanup should be > first. > > We weren't supposed to drop the init power during driver load, but since > the fbdev teardown happened afte

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Move the fbdev async_schedule() into intel_fbdev.c

2015-11-06 Thread Chris Wilson
On Fri, Nov 06, 2015 at 03:08:33PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Reading the driver load/unload code leaves one confused as there's > an async_schedule() in the load, but not async_synchronize_full() > in sight. In fact it's hidden inside intel_fbdev.c. So

Re: [Intel-gfx] [PATCH v3 04/29] drm/i915: Parametrize AUX registers

2015-11-06 Thread Chris Wilson
On Wed, Nov 04, 2015 at 11:19:52PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > v2: Keep some MISSING_CASE() stuff (Jani) > s/-1/-PIPE_B/ in the register macro > Fix typo in patch subject > v3: Use PORT_B registers for invalid ports in g4x_aux_ctl_reg() (Jani) >

Re: [Intel-gfx] [PATCH v3 06/29] drm/i915: Store aux data reg offsets in intel_dp->aux_ch_data_reg[]

2015-11-06 Thread Chris Wilson
On Wed, Nov 04, 2015 at 11:19:54PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Rather than computing on demand, store also the aux data reg > offsets under intel_dp. > > v2: Duplicate some code to make things less magic (Jani) > v3: Use PORT_B registers for invalid port

Re: [Intel-gfx] [PATCH 02/29] drm/i915: Remove the magic AUX_CTL is at DP + foo tricks

2015-11-06 Thread Chris Wilson
On Wed, Nov 04, 2015 at 11:19:50PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Currently we determine the location of the AUX registers in a confusing > way. First we assume the PCH registers are used always, but then we > override it for everything but HSW/BDW to use DP

Re: [Intel-gfx] [PATCH 27/29] drm/i915: Add save/restore of SWF for ILK+

2015-11-06 Thread Chris Wilson
On Wed, Nov 04, 2015 at 11:20:15PM +0200, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > No idea if we might want these. Perhaps there is a "keep your paws off > my GPU" bit in there somewhere to avoid BIOS crap? Hmm. "These registers are used as scratch pad data storage space an

Re: [Intel-gfx] GPU-DRM-i915: Delete an unnecessary check before the function call "pwm_put"

2015-11-06 Thread Jani Nikula
On Fri, 06 Nov 2015, SF Markus Elfring wrote: >>> The pwm_put() function tests whether its argument is NULL and then >>> returns immediately. Thus the test around the call is not needed. >> >> The compiler doesn't need it, but IMO it's useful documentation for humans. > > How do you think about t

[Intel-gfx] [PATCH 3/3] drm/i915: Move the fbdev async_schedule() into intel_fbdev.c

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä Reading the driver load/unload code leaves one confused as there's an async_schedule() in the load, but not async_synchronize_full() in sight. In fact it's hidden inside intel_fbdev.c. So let's move the async_schedule() into intel_fbdev.c as well so that it's next to the async

[Intel-gfx] [PATCH 1/3] drm/i915: Kill intel_runtime_pm_disable()

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä intel_runtime_pm_disable() takes an extra rpm reference which combined with the one we leak from intel_display_set_init_power() leaves the usage count at +1 after the driver has been unloaded. The original ref is dropped explicitly in intel_runtime_pm_enable(). So the next tim

[Intel-gfx] [PATCH 0/3] drm/i915: Module unload fixes

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä This series fixes an rpm leak during driver unload, and reorganizes the fbdev init/cleanup to make a bit more sense. Ville Syrjälä (3): drm/i915: Kill intel_runtime_pm_disable() drm/i915: Do fbdev fini first during unload drm/i915: Move the fbdev async_schedule() into i

[Intel-gfx] [PATCH 2/3] drm/i915: Do fbdev fini first during unload

2015-11-06 Thread ville . syrjala
From: Ville Syrjälä We set up fbdev last during load, so doing the fbdev cleanup should be first. We weren't supposed to drop the init power during driver load, but since the fbdev teardown happened after intel_power_domains_fini() that could have happened due in one of two ways. First it could

Re: [Intel-gfx] GPU-DRM-i915: Delete an unnecessary check before the function call "pwm_put"

2015-11-06 Thread SF Markus Elfring
>> The pwm_put() function tests whether its argument is NULL and then >> returns immediately. Thus the test around the call is not needed. > > The compiler doesn't need it, but IMO it's useful documentation for humans. How do you think about to extend the explicit documentation for the affected p

[Intel-gfx] [PATCH] GPU-DRM-i915: Delete an unnecessary check before the function call "pwm_put"

2015-11-06 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 6 Nov 2015 13:38:22 +0100 The pwm_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/gp

Re: [Intel-gfx] [PATCH] GPU-DRM-i915: Delete an unnecessary check before the function call "pwm_put"

2015-11-06 Thread Jani Nikula
On Fri, 06 Nov 2015, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 6 Nov 2015 13:38:22 +0100 > > The pwm_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. The compiler doesn't need it, but IMO it's useful

Re: [Intel-gfx] [PATCH] drm/i915/skl: disable display side power well support for now

2015-11-06 Thread Jani Nikula
On Fri, 06 Nov 2015, Ville Syrjälä wrote: > On Thu, Nov 05, 2015 at 11:04:11PM +0200, Imre Deak wrote: >> The display power well support on this platform is in a somewhat broken >> state atm, so disable it by default. >> >> This in effect will get rid of incorrect assert WARNs about the CSR/DMC >

[Intel-gfx] [PATCH 2/6] drm/i915: Cleaning up intel_dp_hpd_pulse

2015-11-06 Thread Shubhangi Shrivastava
Current DP detection has DPCD operations split across intel_dp_hpd_pulse and intel_dp_detect which contains duplicates as well. Also intel_dp_detect is called during modes enumeration as well which will result in multiple dpcd operations. So this patch tries to solve both these by bringing all DPCD

[Intel-gfx] [PATCH 0/6] Fixing sink count related detection over

2015-11-06 Thread Shubhangi Shrivastava
This patch set cleans up DP detection logic to bring all DPCD operations at one place and to create a clear demarcation between handling of long and short pulses. This simplifies fixing of sink count related detection for DP panels. Patches: 1. First two patches clean up intel_dp_detect and form a

[Intel-gfx] [PATCH 6/6] drm/i915: force full detect on sink count change

2015-11-06 Thread Shubhangi Shrivastava
This patch checks for changes in sink count between short pulse hpds and forces full detect when there is a change. This will allow both detection of hotplug and unplug of panels through dongles that give only short pulse for such events. v2: changed variable type from u8 to bool (Jani) retur

[Intel-gfx] [PATCH 4/6] drm/i915: Save sink_count for tracking changes to it

2015-11-06 Thread Shubhangi Shrivastava
Sink count can change between short pulse hpd hence this patch adds a member variable to intel_dp so we can track any changes between short pulse interrupts. Signed-off-by: Sivakumar Thulasimani Signed-off-by: Shubhangi Shrivastava --- drivers/gpu/drm/i915/intel_dp.c | 7 +++ drivers/gpu/d

[Intel-gfx] [PATCH 5/6] drm/i915: read sink_count dpcd always

2015-11-06 Thread Shubhangi Shrivastava
This patch reads sink_count dpcd always and removes its read operation based on values in downstream port dpcd. SINK_COUNT dpcd is not dependent on DOWNSTREAM_PORT_PRESENT dpcd. SINK_COUNT denotes if a display is attached, while DOWNSTREAM_PORT_PRESET indicates how many ports are available in the

[Intel-gfx] [PATCH 3/6] drm/i915: Splitting intel_dp_check_link_status

2015-11-06 Thread Shubhangi Shrivastava
The link retraining part when EQ is not correct is retained to intel_dp_check_link_status whereas other operations are handled as part of intel_dp_short_pulse. This change is required to avoid performing all DPCD related operations on performing link retraining. Signed-off-by: Sivakumar Thulasiman

[Intel-gfx] [PATCH 1/6] drm/i915: Splitting intel_dp_detect

2015-11-06 Thread Shubhangi Shrivastava
This patch moves probing for panel, DPCD read etc to another function intel_dp_long_pulse, while intel_dp_detect returns the status as connected or disconnected depending on whether the edid is available or not. This change will be required by further patches in the series to avoid performing multi

[Intel-gfx] [PATCH] drm/i915/skl: Add SKL GT4 PCI IDs

2015-11-06 Thread Mika Kuoppala
From: Mika Kuoppala Add Skylake Intel Graphics GT4 PCI IDs v2: Rebase Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_drv.c | 1 + include/drm/i915_pciids.h | 13 ++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.c b/

Re: [Intel-gfx] [PATCH] drm/i915/skl: disable display side power well support for now

2015-11-06 Thread Ville Syrjälä
On Thu, Nov 05, 2015 at 11:04:11PM +0200, Imre Deak wrote: > The display power well support on this platform is in a somewhat broken > state atm, so disable it by default. > > This in effect will get rid of incorrect assert WARNs about the CSR/DMC > firmware not being loaded during power well togg

Re: [Intel-gfx] Fixing i915/opregion issues with firmware which lists more then 8 output devices

2015-11-06 Thread Hans de Goede
Hi, On 06-11-15 11:19, Jani Nikula wrote: On Thu, 05 Nov 2015, Hans de Goede wrote: Hi, As discussed in the past, the i915 opregion code does not do the right thing wrt the CADL field when there are more then 8 outputs, this is causing issues on many different types of Asus laptops. This thr

Re: [Intel-gfx] Fixing i915/opregion issues with firmware which lists more then 8 output devices

2015-11-06 Thread Jani Nikula
On Thu, 05 Nov 2015, Hans de Goede wrote: > Hi, > > As discussed in the past, the i915 opregion code does not do the > right thing wrt the CADL field when there are more then 8 outputs, > this is causing issues on many different types of Asus laptops. > > This thread has details and a number of at

Re: [Intel-gfx] [PATCH v2 02/14] drm/i915: Extend DSL readout fix to BDW and SKL.

2015-11-06 Thread Jani Nikula
On Thu, 05 Nov 2015, Jesse Barnes wrote: > On 11/03/2015 04:44 AM, Maarten Lankhorst wrote: >> Hey, >> >> Op 03-11-15 om 12:32 schreef Jani Nikula: >>> On Tue, 03 Nov 2015, Ville Syrjälä wrote: On Tue, Nov 03, 2015 at 08:31:41AM +0100, Maarten Lankhorst wrote: > Those platforms have the

Re: [Intel-gfx] [PATCH 1/2] dp/mst: add SDP stream support

2015-11-06 Thread kbuild test robot
Hi Libin, [auto build test WARNING on drm/drm-next] [also build test WARNING on v4.3 next-20151106] [cannot apply to drm-intel/for-linux-next] url: https://github.com/0day-ci/linux/commits/libin-yang-linux-intel-com/drm-i915-DP-MST-audio-support-in-i915/20151106-163857 base: git

Re: [Intel-gfx] [PATCH] drm/i915: get runtime PM reference around GEM set_caching IOCTL

2015-11-06 Thread Chris Wilson
On Fri, Nov 06, 2015 at 12:57:35AM +0200, Imre Deak wrote: > On Thu, 2015-11-05 at 11:56 +, Chris Wilson wrote: > > On Thu, Nov 05, 2015 at 01:28:32PM +0200, Imre Deak wrote: > > > On ke, 2015-11-04 at 20:57 +, Chris Wilson wrote: > > > > On Wed, Nov 04, 2015 at 09:25:32PM +0200, Imre Deak

[Intel-gfx] [PATCH 0/2] drm/i915 DP MST audio support in i915

2015-11-06 Thread libin . yang
From: Libin Yang These patches add support for DP MST audio in i915 driver. Patches have been tested on BDW and the result show it won't impact the DP SST and HDMI audio. These patches are ported from Dave's patches. Please check Dave's git tree for original patches: git://people.freedesktop.org

[Intel-gfx] [PATCH 1/2] dp/mst: add SDP stream support

2015-11-06 Thread libin . yang
From: Libin Yang This adds code to initialise the SDP streams for a sink in the simplest ordering. I've no idea how you'd want to control the ordering at this level, so don't bother until someone comes up with a use case. Signed-off-by: Libin Yang Signed-off-by: Dave Airlie --- drivers/gpu/d

[Intel-gfx] [PATCH 2/2] drm/i915: start adding dp mst audio

2015-11-06 Thread libin . yang
From: Libin Yang This patch adds support for DP MST audio in i915. Enable audio codec when DP MST is enabled if has_audio flag is set. Disable audio codec when DP MST is disabled if has_audio flag is set. Signed-off-by: Libin Yang Signed-off-by: Dave Airlie --- drivers/gpu/drm/i915/i915_debu