[Intel-gfx] [PATCH 2/2] drm/i915: Add hot_plug hook for hdmi encoder

2015-12-16 Thread Sonika Jindal
plug during init to separate patch(Daniel) v6: Rebased and maintaining authorship. Signed-off-by: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 58 ++- 1 file ch

[Intel-gfx] [PATCH 1/2] drm/i915: Call encoder hotplug for init and resume cases

2015-12-16 Thread Sonika Jindal
run a detect cycle. Cc: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_hotplug.c | 26 ++ drivers/gpu/drm/i915/intel_sdvo.c

[Intel-gfx] [PATCH 1/2] drm/i915: Call encoder hotplug for init and resume cases

2015-12-09 Thread Sonika Jindal
hot_plug Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/intel_hotplug.c | 26 ++ drivers/gpu/drm/i915/intel_sdvo.c| 1 - 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/d

[Intel-gfx] [PATCH] drm/i915: Add hot_plug hook for hdmi encoder

2015-12-09 Thread Sonika Jindal
plug during init to separate patch(Daniel) v6: Rebased and maintaining authorship. Signed-off-by: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 58 ++- 1 file ch

[Intel-gfx] [PATCH 2/2] drm/i915: Add hot_plug hook for hdmi encoder

2015-12-09 Thread Sonika Jindal
gned-off-by: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 58 ++- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdm

[Intel-gfx] [PATCH] drm/i915/bxt: Update Uninit sequence for DDI PHYs

2015-10-27 Thread Sonika Jindal
Un-initialize DDI PHYs as per the bspec update Cc: Sivakumar Thulasimani <sivakumar.thulasim...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_ddi.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dri

[Intel-gfx] [PATCH 2/2] drm/i915: Add hot_plug hook for hdmi encoder

2015-10-05 Thread Sonika Jindal
hashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 54 + 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b

[Intel-gfx] [PATCH 1/2] drm/i915: Call encoder hotplug for init and resume cases

2015-10-05 Thread Sonika Jindal
For all the encoders, call the hot_plug if it is registered. This is required for connected boot and resume cases to generate fake hpd resulting in reading of edid. Removing the initial sdvo hot_plug call too so that it will be called just once from this loop. Signed-off-by: Sonika Jindal

[Intel-gfx] [PATCH] drm/i915: Add hot_plug hook for hdmi encoder

2015-09-28 Thread Sonika Jindal
el) Also, calling hdmi_probe in init instead of set_edid v4: Renaming intel_hdmi_probe to intel_hdmi_hot_plug and changing the patch subject. Also calling this hotplug handler from intel_hpd_init to take care of init resume scenarios. Signed-off-by: Shashank Sharma <shashank.sha...@intel.co

[Intel-gfx] [PATCH] drm/i915/bxt: Set oscaledcompmethod to enable scale value

2015-09-23 Thread Sonika Jindal
Bspec update tells that we have to enable oscaledcompmethod instead of ouniqetrangenmethod for enabling scale value during swing programming. v2: Adding back 'don't care' values to bxt_ddi_translations_dp and add error message if ouniquetrangemethod was set (Imre) Signed-off-by: Sonika Jindal

[Intel-gfx] [PATCH] drm/i915/bxt: eDP low vswing support

2015-09-23 Thread Sonika Jindal
Adding voltage swing table for edp to support low vswings. v2: Rebased. Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasim...@intel.com> --- drivers/gpu/drm/i915/intel_ddi.c | 23 +++ 1 file changed, 1

[Intel-gfx] [PATCH 2/2] drm/i915/bxt: eDP low vswing support

2015-09-18 Thread Sonika Jindal
Adding voltage swing table for edp to support low vswings. Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_ddi.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/g

[Intel-gfx] [PATCH 1/2] drm/i915/bxt: Set oscaledcompmethod to enable scale value

2015-09-18 Thread Sonika Jindal
Bspec update tells that we have to enable oscaledcompmethod instead of ouniqetrangenmethod for enabling scale value during swing programming. Also, scale value is 'don't care' for other levels except the last entry translation table. So, make it 0 instead of 0x9A. Signed-off-by: Sonika Jindal

[Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-09-14 Thread Sonika Jindal
sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.v...@intel.com> --- drivers/gpu/drm/i915/intel_dp.c |2 +- drivers/gpu/drm/i915/intel_drv.h |2 ++ drivers/gpu/drm/i915/intel_hdmi.c | 28 +

[Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-09-11 Thread Sonika Jindal
reformatting of while loop, adding a print when live status is not up. (Rodrigo) Signed-off-by: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_dp.c |2 +- drivers/gpu/drm/i915/intel_drv.h

[Intel-gfx] [PATCH] drm/i915/bxt: Use intel_encoder->hpd_pin to check live status

2015-09-11 Thread Sonika Jindal
Using intel_encoder's hpd_pin to check the live status because of BXT A0/A1 WA for HPD pins and hpd_pin contains the updated pin for the corresponding port. Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_dp.c |9 ++--- 1 file changed, 6 inse

[Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-09-08 Thread Sonika Jindal
as DP, we don't have a mechanism to differentiate between DP and hdmi inside the encoder's hot_plug. This leads to call to the hdmi's hot_plug hook for DP as well as hdmi which leads to issues during unplug because of the above check. Signed-off-by: Shashank Sharma <shashank.sha...@intel.com> S

[Intel-gfx] [PATCH] drm/i915: Call encoder hot_plug hook only for hdmi

2015-09-06 Thread Sonika Jindal
. (Daniel) Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hotplug.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_hotplug.c b/drivers/gpu/drm/i915/intel_hotplug.c index 53c0173..ff4692a 100644 --- a/d

[Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-09-06 Thread Sonika Jindal
v5: Removed extra "drm/i915" from commit message. Adding Shashank's sob which was missed. Signed-off-by: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 35 ++

[Intel-gfx] [PATCH 3/6] drm/i915: Make intel_digital_port_connected global

2015-09-04 Thread Sonika Jindal
This is to allow live status check for HDMI as well. Also, using intel_encoder->hpd_pin to check the live status for bxt because of BXT A0/A1 WA for HPD pins. Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_dp.c | 11 +++ drivers/gpu

[Intel-gfx] [PATCH 0/6] HDMI optimization series

2015-09-04 Thread Sonika Jindal
m/i915/bxt: Fix irq_port for eDP Shashank Sharma (2): drm/i915: add attached connector to hdmi container drm/i915: Add HDMI probe function Sonika Jindal (3): drm/i915: Make intel_digital_port_connected global drm/i915: drm/i915: Check live status before reading edid drm/i915: drm/i915: P

[Intel-gfx] [PATCH 6/6] drm/i915/bxt: Fix irq_port for eDP

2015-09-04 Thread Sonika Jindal
From: Durgadoss R Currently, HDMI hotplug with eDP as local panel is failing because the HDMI hpd is detected as a long hpd for eDP; and is thus rightfully ignored. But, it should really be handled as an interrupt on port B for HDMI (due to BXT A1 platform having HPD pins

[Intel-gfx] [PATCH 2/6] drm/i915: Add HDMI probe function

2015-09-04 Thread Sonika Jindal
rms should rely on hotplug or init for updating the edid.(Daniel) Also, calling hdmi_probe in init instead of set_edid Signed-off-by: Shashank Sharma <shashank.sha...@intel.com> Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 46 +++

[Intel-gfx] [PATCH 4/6] drm/i915: drm/i915: Check live status before reading edid

2015-09-04 Thread Sonika Jindal
ime in setting the live status. So retry for few times if this is a connect HPD Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hdmi.c | 35 --- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH 5/6] drm/i915: drm/i915: Process hpd only for hdmi inside hotplug_work_func

2015-09-04 Thread Sonika Jindal
If the same port is enumerated as hdmi as well as DP, this will get called for DP connector as well which is not required because i915_hotplug_work_func is solely to handle hdmi HPD. Signed-off-by: Sonika Jindal <sonika.jin...@intel.com> --- drivers/gpu/drm/i915/intel_hotplug.c |3

[Intel-gfx] [PATCH 1/6] drm/i915: add attached connector to hdmi container

2015-09-04 Thread Sonika Jindal
From: Shashank Sharma This patch adds the intel_connector initialized to intel_hdmi display, during the init phase, just like the other encoders do. This attachment is very useful when we need to extract the connector pointer during the hotplug handler function

[Intel-gfx] [PATCH] drm/i915/bxt: Fix irq_port for eDP

2015-08-31 Thread Sonika Jindal
This patch can be squashed to : commit cf1d58833f07afbb4534b15caa3fd48baa313b2c Author: Sonika Jindal <sonika.jin...@intel.com> Date: Mon Aug 10 10:35:36 2015 +0530 drm/i915/bxt: WA for swapped HPD pins in A stepping Signed-off-by: Durgadoss R <durgados...@intel.com> Signed-off-b

[Intel-gfx] [PATCH 2/4] drm/i915: Add HDMI probe function

2015-08-25 Thread Sonika Jindal
intel_dig_port), so for DP also, hot_plug function gets called which is not intended here. So, check for HDMI in intel_hdmi_probe Rely on HPD for updating edid only for platforms gen 8 and also for VLV. Signed-off-by: Shashank Sharma shashank.sha...@intel.com Signed-off-by: Sonika Jindal sonika.jin

[Intel-gfx] [PATCH 0/4] HDMI optimization series

2015-08-25 Thread Sonika Jindal
Sharma (2): drm/i915: add attached connector to hdmi container drm/i915: Add HDMI probe function Sonika Jindal (2): drm/i915: Check live status before reading edid drm/i915: Retry for live status drivers/gpu/drm/i915/intel_dp.c |4 +- drivers/gpu/drm/i915/intel_drv.h |3

[Intel-gfx] [PATCH 1/4] drm/i915: add attached connector to hdmi container

2015-08-25 Thread Sonika Jindal
From: Shashank Sharma shashank.sha...@intel.com This patch adds the intel_connector initialized to intel_hdmi display, during the init phase, just like the other encoders do. This attachment is very useful when we need to extract the connector pointer during the hotplug handler function

[Intel-gfx] [PATCH 3/4] drm/i915: Check live status before reading edid

2015-08-25 Thread Sonika Jindal
to intel_hdmi_probe and passing parameter to read/not to read the edid. (me) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_dp.c |4 +-- drivers/gpu/drm/i915/intel_drv.h |2 ++ drivers/gpu/drm/i915/intel_hdmi.c | 62 - 3 files

[Intel-gfx] [PATCH 4/4] drm/i915: Retry for live status

2015-08-25 Thread Sonika Jindal
Some monitors take time in setting the live status. So retry for few times if this is a connect HPD Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_hdmi.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c

[Intel-gfx] [PATCH 2/3] drm/i915/bxt: Add HPD support for DDIA

2015-08-09 Thread Sonika Jindal
Also remove redundant comments. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 02b9e73..9b9533a

[Intel-gfx] [PATCH 0/3] Add BXT A0/A1 WA for HPD swap in generic way

2015-08-09 Thread Sonika Jindal
This series adds BXT HPD pin swap WA for A0/A1 by setting right hpd_pin and irq_port for PORT_B. Sonika Jindal (3): drm/i915: Dont enable hpd for eDP drm/i915/bxt: Add HPD support for DDIA drm/i915/bxt: WA for swapped HPD pins in A stepping drivers/gpu/drm/i915/i915_irq.c | 10

[Intel-gfx] [PATCH 1/3] drm/i915: Dont enable hpd for eDP

2015-08-09 Thread Sonika Jindal
With HPD support added for all ports including PORT_A, setting hpd_pin will result in enabling of hpd to edp as well. There is no need to enable HPD on PORT_A hence this patch removes hpd_pin update for PORT_A, where edp will be connected. it can be added back when required Signed-off-by: Sonika

[Intel-gfx] [PATCH 3/3] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-08-09 Thread Sonika Jindal
(Imre) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 10 +- drivers/gpu/drm/i915/intel_dp.c |2 ++ drivers/gpu/drm/i915/intel_hdmi.c |9 - 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-26 Thread Sonika Jindal
HPD on PORT A. Added hpd_pin swapping for intel_dp_init_connector, setting encoder for PORT_A as per the WA in irq_port (Imre) v4: Dont enable interrupt for edp, also reframe the description (Siva) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 11

[Intel-gfx] [PATCH] drm/i915/bxt: Update HAS_PSR macro to include all gen=8 platforms

2015-07-22 Thread Sonika Jindal
This is to get PSR support for bxt. v2: Adding bxt prefix in title (Damien) Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed-by: Damien Lespiau damien.lesp...@intel.com --- drivers/gpu/drm/i915/i915_drv.h |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-22 Thread Sonika Jindal
) v3: Rebased on top of Imre's patchset for enabling HPD on PORT A. Added hpd_pin swapping for intel_dp_init_connector, setting encoder for PORT_A as per the WA in irq_port (Imre) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 12 +++- drivers

[Intel-gfx] [PATCH] drm/i915: Update HAS_PSR macro to include all gen=8 platforms

2015-07-21 Thread Sonika Jindal
This is to get PSR support for bxt. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_drv.h |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 718170c..54d2729 100644

[Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-17 Thread Sonika Jindal
) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 10 +- drivers/gpu/drm/i915/intel_hdmi.c |9 - 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index

[Intel-gfx] [PATCH 0/3] HDMI optimization series

2015-07-14 Thread Sonika Jindal
with older platforms. For newer platforms it works reliably. For HPD and live status to work on SKL, following patch is required: drm/i915: Handle HPD when it has actually occurred Shashank Sharma (2): drm/i915: add attached connector to hdmi container drm/i915: Add HDMI probe function Sonika

[Intel-gfx] [PATCH 2/3] drm/i915: Add HDMI probe function

2015-07-14 Thread Sonika Jindal
() function. The gen7 check is there because this was tested only for =gen7 platforms. For older platforms the hotplug/reading edid path remains same. Signed-off-by: Shashank Sharma shashank.sha...@intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 3/3] drm/i915: Check live status before reading edid

2015-07-14 Thread Sonika Jindal
Adding this for SKL onwards. v2: Adding checks for VLV/CHV as well. Reusing old ibx and g4x functions to check digital port status. Adding a separate function to get bxt live status (Daniel) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_dp.c |4

[Intel-gfx] [PATCH 1/3] drm/i915: add attached connector to hdmi container

2015-07-14 Thread Sonika Jindal
From: Shashank Sharma shashank.sha...@intel.com This patch adds the intel_connector initialized to intel_hdmi display, during the init phase, just like the other encoders do. This attachment is very useful when we need to extract the connector pointer during the hotplug handler function

[Intel-gfx] [PATCH] drm/i915: Check live status before reading edid

2015-07-13 Thread Sonika Jindal
Adding this for SKL onwards. v2: Adding checks for VLV/CHV as well. Reusing old ibx and g4x functions to check digital port status. Adding a separate function to get bxt live status (Daniel) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_dp.c |4

[Intel-gfx] [PATCH] drm/i915: Set edid from init and not from detect

2015-07-13 Thread Sonika Jindal
older than gen 7 (Shashank) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_hdmi.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 66af388..44e7160 100644

[Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-13 Thread Sonika Jindal
here (Imre) v3: Add comment about the WA, move 'hpd' initialization outside for loop (Siva) Also, remove few redundant comments from hpd handler (me) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 46 ++- 1 file

[Intel-gfx] [PATCH 1/2] drm/i915/bxt: Add HPD support for DDIA

2015-07-13 Thread Sonika Jindal
Also remove redundant comments. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index a897f68..63137dd

[Intel-gfx] [PATCH 2/2] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-13 Thread Sonika Jindal
As per bspec, on BXT A0/A1, sw needs to activate DDIA HPD logic and interrupts to check the external panel connection and DDIC HPD logic for edp panel. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_dp.c | 18 -- drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915/bxt: WA for swapped HPD pins in A stepping

2015-07-12 Thread Sonika Jindal
here (Imre) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 38 +- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index eb52a03

[Intel-gfx] [PATCH 2/5] drm/i915: Add HDMI probe function

2015-07-09 Thread Sonika Jindal
From: Shashank Sharma shashank.sha...@intel.com This patch adds a separate probe function for HDMI EDID read over DDC channel. This function has been registered as a .hot_plug handler for HDMI encoder. The reason behind addition of this separate function needs brief explaination. The current

[Intel-gfx] [PATCH 1/5] drm/i915: add attached connector to hdmi container

2015-07-09 Thread Sonika Jindal
From: Shashank Sharma shashank.sha...@intel.com This patch adds the intel_connector initialized to intel_hdmi display, during the init phase, just like the other encoders do. This attachment is very useful when we need to extract the connector pointer during the hotplug handler function

[Intel-gfx] [PATCH 5/5] drm/i915: Set edid from detect only if forced

2015-07-09 Thread Sonika Jindal
During init_connector set the edid, then edid will be set/unset only during hotplug. For the sake of older platforms where HPD is not stable, let edid read happen from detect as well only if it is forced to do so. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH 4/5] drm/i915: Check live status before reading edid

2015-07-09 Thread Sonika Jindal
Adding this for SKL onwards. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_hdmi.c | 49 ++--- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 0/5] HDMI optimization series

2015-07-09 Thread Sonika Jindal
(3): drm/i915: add attached connector to hdmi container drm/i915: Add HDMI probe function drm/i915: Read HDMI EDID only when required Sonika Jindal (2): drm/i915: Check live status before reading edid drm/i915: Set edid from detect only if forced drivers/gpu/drm/i915/intel_drv.h |1

[Intel-gfx] [PATCH 3/5] drm/i915: Read HDMI EDID only when required

2015-07-09 Thread Sonika Jindal
From: Shashank Sharma shashank.sha...@intel.com This patch makes sure that the HDMI detect function reads EDID only when its forced to do it. All the other times, it uses the connector-detect_edid which was cached during hotplug handling in the hdmi_probe() function. As the probe function gets

[Intel-gfx] [PATCH] drm/i915: Handle HPD when it has actually occurred

2015-07-08 Thread Sonika Jindal
pch_get_hpd_pins v4: Indentation (Ville) Reviewed-by: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git

[Intel-gfx] [PATCH] drm/i915: Handle HPD when it has actually occurred

2015-07-07 Thread Sonika Jindal
pch_get_hpd_pins Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 32 +--- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index a6fbe64

[Intel-gfx] [PATCH] drm/i915: Handle HPD when it has actually occurred

2015-07-06 Thread Sonika Jindal
Writing to PCH_PORT_HOTPLUG for each interrupt is not required. Handle it only if hpd has actually occurred like we handle other interrupts. v2: Make few variables local to if block (Ville) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_irq.c | 14

[Intel-gfx] [PATCH] [RFC] drm/i915: Handle HPD when it has actually occurred

2015-07-06 Thread Sonika Jindal
Writing to PCH_PORT_HOTPLUG for each interrupt is not required. Handle it only if hpd has actually occurred like we handle other interrupts. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- Hi, I see we don't check for hotplug_trigger before processing the HPD for any of the platform

[Intel-gfx] [PATCH 2/3] drm/i915: Add HDMI probe function

2015-06-29 Thread Sonika Jindal
From: Shashank Sharma contactshashanksha...@gmail.com This patch adds a separate probe function for HDMI EDID read over DDC channel. This function has been registered as a .hot_plug handler for HDMI encoder. The reason behind addition of this separate function needs brief explaination. The

[Intel-gfx] [PATCH 1/3] drm/i915: add attached connector to hdmi container

2015-06-29 Thread Sonika Jindal
From: Shashank Sharma contactshashanksha...@gmail.com This patch adds the intel_connector initialized to intel_hdmi display, during the init phase, just like the other encoders do. This attachment is very useful when we need to extract the connector pointer during the hotplug handler function

[Intel-gfx] [PATCH 3/3] drm/i915: Read HDMI EDID only when required

2015-06-29 Thread Sonika Jindal
From: Shashank Sharma contactshashanksha...@gmail.com This patch makes sure that the HDMI detect function reads EDID only when its forced to do it. All the other times, it uses the connector-detect_edid which was cached during hotplug handling in the hdmi_probe() function. As the probe function

[Intel-gfx] [PATCH] Documentation/drm: Update rotation property

2015-05-28 Thread Sonika Jindal
Moving rotation property to Drm and removing from i915 and omap. Also, adding description to the property Cc: DRI Development dri-de...@lists.freedesktop.org Suggested-by: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- Documentation/DocBook

[Intel-gfx] [PATCH] drm/i915/bxt: edp1.4 Intermediate Freq support

2015-05-26 Thread Sonika Jindal
link_bw or rate_select for selecting pll(Ville) v4: Make bxt_dp_clk_val const and remove size (Ville) v5: Rebased Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 40

[Intel-gfx] [PATCH] drm/i915/bxt: edp1.4 Intermediate Freq support

2015-05-26 Thread Sonika Jindal
link_bw or rate_select for selecting pll(Ville) v4: Make bxt_dp_clk_val const and remove size (Ville) v5: Rebased v6: Removed setting of vco while rebasing in v5, adding it back Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed-by: Ville Syrjälä ville.syrj...@linux.intel.com(v4) --- drivers

[Intel-gfx] [PATCH] drm/i915: Swapping 90 and 270 to be compliant with Xrandr

2015-05-20 Thread Sonika Jindal
Since DRM_ROTATE is counter clockwise (which is compliant with Xrandr), and HW rotation is clockwise, swapping 90/270 to work as expected from userspace. v2: Rebased Suggested-by: Ville Syrjälä ville.syrj...@linux.intel.com Cc: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Sonika

[Intel-gfx] [PATCH] drm/i915/bxt: edp1.4 Intermediate Freq support

2015-05-11 Thread Sonika Jindal
link_bw or rate_select for selecting pll(Ville) v4: Make bxt_dp_clk_val const and remove size (Ville) Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 39 -- drivers

[Intel-gfx] [PATCH] drm/i915: Sink rate read should be saved in deca-kHz

2015-05-07 Thread Sonika Jindal
ville.syrj...@linux.intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_dp.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915/bxt: edp1.4 Intermediate Freq support

2015-05-07 Thread Sonika Jindal
BXT supports following intermediate link rates for edp: 2.16GHz, 2.43GHz, 3.24GHz, 4.32GHz. Adding support for programming the intermediate rates. v2: Adding clock in bxt_clk_div struct and then look for the entry with required rate (Ville) Signed-off-by: Sonika Jindal sonika.jin...@intel.com

[Intel-gfx] [PATCH] drm/i915/bxt: edp1.4 Intermediate Freq support

2015-05-07 Thread Sonika Jindal
link_bw or rate_select for selecting pll(Ville) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 37 +++-- drivers/gpu/drm/i915/intel_dp.c |7 ++- 2 files changed, 21 insertions(+), 23 deletions(-) diff --git

[Intel-gfx] [PATCH] drm/i915/skl: Add module parameter to select edp vswing table

2015-05-06 Thread Sonika Jindal
This provides an option to override the value set by VBT for selecting edp Vswing Pre-emph setting table. v2: Adding comment about this being a temporary workaround and making the parameter read-only (Jani) https://bugs.freedesktop.org/show_bug.cgi?id=89554 Signed-off-by: Sonika Jindal

[Intel-gfx] [PATCH] drm/i915/skl: Add module parameter to select edp vswing table

2015-05-06 Thread Sonika Jindal
?id=89554 Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed-by: Jani Nikula jani.nik...@intel.com --- drivers/gpu/drm/i915/i915_drv.h|4 +++- drivers/gpu/drm/i915/i915_params.c |8 drivers/gpu/drm/i915/intel_bios.c |9 +++-- drivers/gpu/drm/i915/intel_ddi.c

[Intel-gfx] [PATCH] Removing redundant is_edp_psr

2015-05-06 Thread Sonika Jindal
Since we already store the sink's psr status in dev_priv, use it. Without this we were ignoring the case where sink supports psr2. Cc: Durgadoss R durgados...@intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_psr.c |7 +-- 1 file changed, 1

[Intel-gfx] [PATCH 3/3] drm/i915/bxt: edp1.4 Intermediate Freq support

2015-05-06 Thread Sonika Jindal
BXT supports following intermediate link rates for edp: 2.16GHz, 2.43GHz, 3.24GHz, 4.32GHz. Adding support for programming the intermediate rates. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 44 -- drivers/gpu

[Intel-gfx] [PATCH 1/3] drm/i915: Sink rate read should be saved in deca-kHz

2015-05-06 Thread Sonika Jindal
The sink rate read from supported link rate table is in KHz as per spec while in drm, the saved clock is in deca-KHz. So divide the link rate by 10 before storing. Cc: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- Just resending it along

[Intel-gfx] [PATCH 2/3] drm/i915: Rename dp rates array as per platform

2015-05-06 Thread Sonika Jindal
Renaming gen9_rates to skl_rates because other platforms may have different supported rates. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_dp.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dp.c b

[Intel-gfx] [PATCH] drm/i915/skl: Add module parameter to select edp vswing table

2015-05-05 Thread Sonika Jindal
This provides an option to override the value set by VBT for selecting edp Vswing Pre-emph setting table. https://bugs.freedesktop.org/show_bug.cgi?id=89554 Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_drv.h|4 +++- drivers/gpu/drm/i915/i915_params.c

[Intel-gfx] [PATCH] drm/i915/skl: Select DDIA lane capability based upon vbt

2015-04-23 Thread Sonika Jindal
, we end up using only 2 lanes which doesn't let the modeset go through because of limited data rate avalaible. So, set the DDIA lane capability correctly if port E is being used by any child device or not. Cc: Sivakumar Thulasimani sivakumar.thulasim...@intel.com Signed-off-by: Sonika Jindal

[Intel-gfx] [PATCH] Documentation/drm: Update rotation property with 90/270 and description

2015-04-15 Thread Sonika Jindal
Cc: dri-de...@lists.freedesktop.org Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- Documentation/DocBook/drm.tmpl |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index f4976cd..266d50a 100644

[Intel-gfx] [PATCH 1/2] drm/i915: Swapping 90 and 270 to be compliant with Xrandr

2015-04-15 Thread Sonika Jindal
Since DRM_ROTATE is counter clockwise (which is compliant with Xrandr), and HW rotation is clockwise, swapping 90/270 to work as expected from userspace. Suggested-by: Ville Syrjälä ville.syrj...@linux.intel.com Cc: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Sonika Jindal

[Intel-gfx] [PATCH 2/2] Documentation/drm: Update rotation property with 90/270 and description

2015-04-15 Thread Sonika Jindal
Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- Documentation/DocBook/drm.tmpl |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index f4976cd..266d50a 100644 --- a/Documentation/DocBook/drm.tmpl

[Intel-gfx] [PATCH] kms_rotation_crc: Changing as per DRM rotation

2015-04-15 Thread Sonika Jindal
DRM rotation is counter clockwise. So changing the test accordingly. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- tests/kms_rotation_crc.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index

[Intel-gfx] [PATCH] drm/i915/skl: Add back HDMI translation table

2015-04-14 Thread Sonika Jindal
The HDMI translation table is added back to bspec, so adding it, and defaulting the 800mV+0dB entry. Cc: Damien Lespiau damien.lesp...@intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 22 -- 1 file changed, 12 insertions

[Intel-gfx] [PATCH] drm/i915/skl: Add back HDMI translation table

2015-04-14 Thread Sonika Jindal
to commit which removed this table (Jani) Cc: Damien Lespiau damien.lesp...@intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_ddi.c | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/i915

[Intel-gfx] [PATCH 1/2] lib/igt_kms: Let set_property return the result

2015-04-07 Thread Sonika Jindal
Return the return value of the set_property ioctl and add check for the failure. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- lib/igt_kms.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 6cb1f08..14abae8 100644

[Intel-gfx] [PATCH 2/2] kms_rotation_crc: Adding test for 90/270 rotation

2015-04-07 Thread Sonika Jindal
Adding 90/270 rotation testcase for primary and sprite planes. v2: Added position test for sprite. Checking for gen 9 for 90/270. Some cleanup and rebase. v3: Added test for unsupported tiling and unsupported pixel format for 90/270 Signed-off-by: Sonika Jindal sonika.jin...@intel.com

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

2015-04-07 Thread Sonika Jindal
src_* params instead of crtc_* for offset and size programming (Ville) v5: Rebased on -nightly and Tvrtko's series for gtt remapping. v6: Rebased on -nightly (Tvrtko's series merged) v7: Moving pixel_format check to intel_atomic_plane_check (Matt) Signed-off-by: Sonika Jindal sonika.jin...@intel.com

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-04-01 Thread Sonika Jindal
sync, rename the TP2 TIME macro for 2500us (Rodrigo, Siva) v3: Moving the resolution restriction to intel_psr_enable so that we check it only once(Durga) Cc: Durgadoss R durgados...@intel.com Cc: Rodrigo Vivi rodrigo.v...@intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com Reviewed

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-31 Thread Sonika Jindal
sync, rename the TP2 TIME macro for 2500us (Rodrigo, Siva) v3: Moving the resolution restriction to intel_psr_enable so that we check it only once(Durga) Cc: Durgadoss R durgados...@intel.com Cc: Rodrigo Vivi rodrigo.v...@intel.com Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu

[Intel-gfx] [PATCH] kms_rotation_crc: Adding test for 90/270 rotation

2015-03-30 Thread Sonika Jindal
Adding 90/270 rotation testcase for primary and sprite planes. v2: Added position test for sprite. Checking for gen 9 for 90/270. Some cleanup and rebase. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- tests/kms_rotation_crc.c | 175 +- 1

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

2015-03-30 Thread Sonika Jindal
src_* params instead of crtc_* for offset and size programming (Ville) v5: Rebased on -nightly and Tvrtko's series for gtt remapping. v6: Rebased on -nightly (Tvrtko's series merged) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_reg.h |2 + drivers/gpu

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

2015-03-30 Thread Sonika Jindal
Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_display.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index ceb2e61..f0bbc22 100644 --- a/drivers/gpu

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-26 Thread Sonika Jindal
sync, rename the TP2 TIME macro for 2500us (Rodrigo, Siva) Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_drv.h |2 ++ drivers/gpu/drm/i915/i915_reg.h | 14 ++ drivers/gpu/drm/i915/intel_dp.c | 15 +++ drivers/gpu/drm/i915

[Intel-gfx] [PATCH] drm/i915/skl: Enabling PSR2 SU with frame sync

2015-03-20 Thread Sonika Jindal
We make use of HW tracking for Selective update region and enable frame sync on sink. We use hardware's hardcoded data values for frame sync and GTC. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/i915_reg.h | 14 ++ drivers/gpu/drm/i915/intel_dp.c

[Intel-gfx] [PATCH] kms_rotation_crc: Adding test for 90/270 rotation

2015-03-09 Thread Sonika Jindal
Adding 90/270 rotation testcase for primary and sprite planes. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- tests/kms_rotation_crc.c | 153 ++ 1 file changed, 128 insertions(+), 25 deletions(-) diff --git a/tests/kms_rotation_crc.c b

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

2015-03-05 Thread Sonika Jindal
Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_display.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 437a679..e1b0c4d 100644 --- a/drivers/gpu

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

2015-03-05 Thread Sonika Jindal
src_* params instead of crtc_* for offset and size programming (Ville) v5: Rebased on -nightly and Tvrtko's series for gtt remapping. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- Please note that this is on top of Tvrtko's patches for rotated gtt remapping titled: [PATCH v2 0/8

[Intel-gfx] [PATCH 2/3] drm/i915: Using plane state parameters instead of pipe's

2015-03-05 Thread Sonika Jindal
For primary plane, we can use the plane's state for src width and height like sprite plane. Signed-off-by: Sonika Jindal sonika.jin...@intel.com --- drivers/gpu/drm/i915/intel_display.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915

  1   2   3   >