Re: [Intel-gfx] [PATCH] drm/i915/guc: Define GuC firmware version for Comet Lake

2019-06-28 Thread kbuild test robot
Hi Anusha, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-intel/for-linux-next] [also build test WARNING on next-20190625] [cannot apply to v5.2-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [Intel-gfx] [PATCH] drm/i915/guc: Define GuC firmware version for Comet Lake

2019-06-28 Thread kbuild test robot
Hi Anusha, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm-intel/for-linux-next] [also build test ERROR on next-20190625] [cannot apply to v5.2-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: CTS fixes (rev7)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: CTS fixes (rev7) URL : https://patchwork.freedesktop.org/series/62437/ State : success == Summary == CI Bug Log - changes from CI_DRM_6380_full -> Patchwork_13469_full Summary --- **SUCCESS**

Re: [Intel-gfx] [PATCH v6 3/4] drm/i915/psr: Make PSR registers relative to transcoders

2019-06-28 Thread Dhinakaran Pandiyan
On Mon, 2019-06-24 at 14:11 -0700, Souza, Jose wrote: > > > > +#define _HSW_EDP_PSR_BASE0x64800 > > > > +#define _SRD_CTL_A 0x60800 > > > > +#define _SRD_CTL_EDP 0x6f800 > > > > +#define _HSW_PSR_ADJ(reg)

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/guc: Define GuC firmware version for Comet Lake

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915/guc: Define GuC firmware version for Comet Lake URL : https://patchwork.freedesktop.org/series/62969/ State : failure == Summary == CALLscripts/checksyscalls.sh CALLscripts/atomic/check-atomics.sh DESCEND objtool CHK

[Intel-gfx] [PATCH] drm/i915/guc: Define GuC firmware version for Comet Lake

2019-06-28 Thread Anusha Srivatsa
Load GuC for Comet Lake. Depending on the REVID, we load either the KBL firmware or the CML firmware. Cc: Michal Wajdeczko Cc: Daniele Ceraolo Spurio Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/i915/intel_guc_fw.c | 17 + 1 file changed, 17 insertions(+) diff --git

Re: [Intel-gfx] [PATCH v3 3/5] drm/i915/ehl: Don't program PHY_MISC on EHL PHY C

2019-06-28 Thread Souza, Jose
On Tue, 2019-06-25 at 17:03 -0700, Matt Roper wrote: > Although EHL added a third combo PHY, no PHY_MISC register was added > for > PHY C. The bspec indicates that there's no need to program the "DE > to > IO Comp Pwr Down" setting for this PHY that we usually need to set in > PHY_MISC. > > v2:

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v3,1/2] drm/i915: Add support for retrying hotplug

2019-06-28 Thread Patchwork
== Series Details == Series: series starting with [v3,1/2] drm/i915: Add support for retrying hotplug URL : https://patchwork.freedesktop.org/series/62965/ State : success == Summary == CI Bug Log - changes from CI_DRM_6384 -> Patchwork_13471

[Intel-gfx] PR GuC CML v33

2019-06-28 Thread Srivatsa, Anusha
Adding the CML PR for guC v33.0.0. The following changes since commit 70e43940b05e8d6e0c5f15b5e2d67760f1581ece: linux-firmware: rsi: add firmware image for redpine 9116 chipset (2019-06-28 07:41:20 -0400) are available in the Git repository at:

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Use intel_crtc_state everywhere!

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Use intel_crtc_state everywhere! URL : https://patchwork.freedesktop.org/series/62920/ State : success == Summary == CI Bug Log - changes from CI_DRM_6379_full -> Patchwork_13468_full Summary ---

Re: [Intel-gfx] [RFC] Exposing plane type mask and handling 'all' planes

2019-06-28 Thread Matt Roper
On Fri, Jun 28, 2019 at 07:54:06PM +0100, Emil Velikov wrote: > On 2019/06/28, Matt Roper wrote: > > On Fri, Jun 28, 2019 at 05:14:51PM +0100, Emil Velikov wrote: > > > Hi Matt, > > > > > > Thanks for the enlightening input :-) > > > > > > On 2019/06/25, Matt Roper wrote: > > > > > > >

[Intel-gfx] ✗ Fi.CI.IGT: failure for Send a hotplug when edid changes (rev2)

2019-06-28 Thread Patchwork
== Series Details == Series: Send a hotplug when edid changes (rev2) URL : https://patchwork.freedesktop.org/series/62816/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6379_full -> Patchwork_13467_full Summary ---

[Intel-gfx] [PATCH v3 1/2] drm/i915: Add support for retrying hotplug

2019-06-28 Thread José Roberto de Souza
From: Imre Deak There is some scenarios that we are aware that sink probe can fail, so lets add the infrastructure to let hotplug() hook to request another probe after some time. v2: Handle shared HPD pins (Imre) v3: Rebased Cc: Ville Syrjälä Signed-off-by: José Roberto de Souza

[Intel-gfx] [PATCH v3 2/2] drm/i915: Enable hotplug retry

2019-06-28 Thread José Roberto de Souza
Right now we are aware of two cases that needs another hotplug retry: - Unpowered type-c dongles - HDMI slow unplug Both have a complete explanation in the code to schedule another run of the hotplug handler. It could have more checks to just trigger the retry in those two specific cases but why

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/ehl: Add support for DPLL4 (v5) (rev4)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915/ehl: Add support for DPLL4 (v5) (rev4) URL : https://patchwork.freedesktop.org/series/61684/ State : success == Summary == CI Bug Log - changes from CI_DRM_6377_full -> Patchwork_13464_full Summary

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Fix TypeC port mode switching (rev8)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Fix TypeC port mode switching (rev8) URL : https://patchwork.freedesktop.org/series/61590/ State : success == Summary == CI Bug Log - changes from CI_DRM_6381 -> Patchwork_13470 Summary ---

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [v2,1/2] drm/i915: Use port clock to set correct N value

2019-06-28 Thread Patchwork
== Series Details == Series: series starting with [v2,1/2] drm/i915: Use port clock to set correct N value URL : https://patchwork.freedesktop.org/series/62895/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376_full -> Patchwork_13462_full

Re: [Intel-gfx] [RFC] Exposing plane type mask and handling 'all' planes

2019-06-28 Thread Emil Velikov
On 2019/06/28, Matt Roper wrote: > On Fri, Jun 28, 2019 at 05:14:51PM +0100, Emil Velikov wrote: > > Hi Matt, > > > > Thanks for the enlightening input :-) > > > > On 2019/06/25, Matt Roper wrote: > > > > > PLANE_CURSOR is basically just an indication that that specific plane is > > > the one

[Intel-gfx] ✓ Fi.CI.IGT: success for Set correct values for N in deep color mode

2019-06-28 Thread Patchwork
== Series Details == Series: Set correct values for N in deep color mode URL : https://patchwork.freedesktop.org/series/62894/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376_full -> Patchwork_13461_full Summary ---

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/tgl: Gen12 csb support

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915/tgl: Gen12 csb support URL : https://patchwork.freedesktop.org/series/62890/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376_full -> Patchwork_13459_full Summary ---

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: CTS fixes (rev7)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: CTS fixes (rev7) URL : https://patchwork.freedesktop.org/series/62437/ State : success == Summary == CI Bug Log - changes from CI_DRM_6380 -> Patchwork_13469 Summary --- **SUCCESS** No

Re: [Intel-gfx] [RFC] Exposing plane type mask and handling 'all' planes

2019-06-28 Thread Matt Roper
On Fri, Jun 28, 2019 at 05:14:51PM +0100, Emil Velikov wrote: > Hi Matt, > > Thanks for the enlightening input :-) > > On 2019/06/25, Matt Roper wrote: > > > PLANE_CURSOR is basically just an indication that that specific plane is > > the one that's also hooked up to the legacy cursor ioctls;

Re: [Intel-gfx] [PATCH] drm/kms: Catch mode_object lifetime errors

2019-06-28 Thread Sean Paul
On Fri, Jun 14, 2019 at 08:17:23AM +0200, Daniel Vetter wrote: > Only dynamic mode objects, i.e. those which are refcounted and have a free > callback, can be added while the overall drm_device is visible to > userspace. All others must be added before drm_dev_register and > removed after

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Add icl mipi dsi properties (rev2)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Add icl mipi dsi properties (rev2) URL : https://patchwork.freedesktop.org/series/62770/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376_full -> Patchwork_13458_full Summary

Re: [Intel-gfx] [PATCH 12/28] drm/i915/tgl: Add TRANSCODER_A_VDSC power domain

2019-06-28 Thread Lucas De Marchi
On Fri, Jun 28, 2019 at 12:55:17PM +0300, Ville Syrjälä wrote: On Tue, Jun 25, 2019 at 10:54:21AM -0700, Lucas De Marchi wrote: From: José Roberto de Souza On TGL the special EDP transcoder is gone and it should be handled by transcoder A. Add POWER_DOMAIN_TRANSCODER_A_VDSC to make this

Re: [Intel-gfx] [PATCH v7 1/3] drm/i915: fix whitelist selftests with readonly registers

2019-06-28 Thread Anuj Phogat
For the series: Tested-by: Anuj Phogat On Fri, Jun 28, 2019 at 5:07 AM Lionel Landwerlin wrote: > > When a register is readonly there is not much we can tell about its > value (apart from its default value?). This can be covered by tests > exercising the value of the register from userspace. >

Re: [Intel-gfx] [RFC] Exposing plane type mask and handling 'all' planes

2019-06-28 Thread Emil Velikov
Hi Matt, Thanks for the enlightening input :-) On 2019/06/25, Matt Roper wrote: > PLANE_CURSOR is basically just an indication that that specific plane is > the one that's also hooked up to the legacy cursor ioctls; like Ville > says, it shouldn't directly indicate that the plane is less >

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Use intel_crtc_state everywhere!

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Use intel_crtc_state everywhere! URL : https://patchwork.freedesktop.org/series/62920/ State : success == Summary == CI Bug Log - changes from CI_DRM_6379 -> Patchwork_13468 Summary ---

[Intel-gfx] ✓ Fi.CI.BAT: success for Send a hotplug when edid changes (rev2)

2019-06-28 Thread Patchwork
== Series Details == Series: Send a hotplug when edid changes (rev2) URL : https://patchwork.freedesktop.org/series/62816/ State : success == Summary == CI Bug Log - changes from CI_DRM_6379 -> Patchwork_13467 Summary ---

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for Extend BT2020 support in iCSC and fixes (rev5)

2019-06-28 Thread Shankar, Uma
>-Original Message- >From: Patchwork [mailto:patchw...@emeril.freedesktop.org] >Sent: Friday, June 28, 2019 8:34 PM >To: Shankar, Uma >Cc: intel-gfx@lists.freedesktop.org >Subject: ✗ Fi.CI.BAT: failure for Extend BT2020 support in iCSC and fixes >(rev5) > >== Series Details == >

[Intel-gfx] ✗ Fi.CI.BAT: failure for Extend BT2020 support in iCSC and fixes (rev5)

2019-06-28 Thread Patchwork
== Series Details == Series: Extend BT2020 support in iCSC and fixes (rev5) URL : https://patchwork.freedesktop.org/series/60480/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6379 -> Patchwork_13466 Summary ---

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Fix TypeC port mode switching (rev8)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Fix TypeC port mode switching (rev8) URL : https://patchwork.freedesktop.org/series/61590/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/icl: Add support to read out the TBT PLL HW state Okay! Commit:

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Fix TypeC port mode switching (rev8)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Fix TypeC port mode switching (rev8) URL : https://patchwork.freedesktop.org/series/61590/ State : warning == Summary == $ dim checkpatch origin/drm-tip dcb79cfddbf2 drm/i915/icl: Add support to read out the TBT PLL HW state 0dc2581f9c78 drm/i915: Tune

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/execlists: Hesitate before slicing

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915/execlists: Hesitate before slicing URL : https://patchwork.freedesktop.org/series/62867/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6375_full -> Patchwork_13456_full Summary ---

[Intel-gfx] [PATCH v3 22/23] drm/i915: Remove unneeded disconnect in TypeC legacy port mode

2019-06-28 Thread Imre Deak
Disconnecting the TypeC PHY when the port is in legacy mode is not necessary: - BSpec doesn't specify a disconnect sequence for legacy mode. - The use of the PHY is dedicated for the display in legacy mode. - We keep the PHY always connected during runtime as well in legacy mode. We disconnect

[Intel-gfx] [PATCH v3 21/23] drm/i915: Add state verification for the TypeC port mode

2019-06-28 Thread Imre Deak
Add state verification for the TypeC port mode wrt. the port's AUX power well enabling/disabling. Also check the correctness of changing the port mode: - When enabling/disabling the AUX power well for a TypeC port we must hold the TypeC port lock - the case for AUX transfers - or hold a Type C

[Intel-gfx] [PATCH v3 15/23] drm/i915: Sanitize the TypeC FIA lane configuration decoding

2019-06-28 Thread Imre Deak
Use hex numbers, since that makes more sense when decoding a bit pattern. No functional change. Suggested-by: Ville Syrjälä Cc: Animesh Manna Cc: Ville Syrjälä Signed-off-by: Imre Deak Reviewed-by: José Roberto de Souza --- drivers/gpu/drm/i915/display/intel_tc.c | 15 --- 1

[Intel-gfx] [PATCH v3 17/23] drm/i915: Sanitize the shared DPLL find/reference interface

2019-06-28 Thread Imre Deak
Pass the PLL HW state to the PLL find/reference functions making it clearer what is their input. Also pass to these the atomic state and the CRTC object instead of the CRTC state, since they don't require the latter. Move setting the PLL in the crtc_state to the get_dpll() hook, which is the more

[Intel-gfx] [PATCH v3 18/23] drm/i915/icl: Split getting the DPLLs to port type specific functions

2019-06-28 Thread Imre Deak
For clarity factor out the combo PHY and TypeC PHY specific code from icl_get_dplls() into their own functions. No functional changes. Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Maarten Lankhorst Signed-off-by: Imre Deak Reviewed-by: Ville Syrjälä ---

[Intel-gfx] [PATCH v3 23/23] drm/i915: WARN about invalid lane reversal in TBT-alt/DP-alt modes

2019-06-28 Thread Imre Deak
Lane reversal happens only in the FIA module for TBT-alt/DP-alt mode, so WARN if lane reversal is attempted at a different level. See the BSpec DDI_BUF_CTL register description. Cc: Manasi Navare Cc: José Roberto de Souza Cc: Rodrigo Vivi Signed-off-by: Imre Deak Reviewed-by: José Roberto de

[Intel-gfx] [PATCH v3 19/23] drm/i915/icl: Reserve all required PLLs for TypeC ports

2019-06-28 Thread Imre Deak
When enabling a TypeC port we need to reserve all the required PLLs for it, the TBT PLL for TBT-alt and the MG PHY PLL for DP-alt/legacy sinks. We can select the proper PLL for the current port mode from the reserved PLLs only once we selected and locked down the port mode for the whole duration

[Intel-gfx] [PATCH v3 14/23] drm/i915: Keep the TypeC port mode fixed for detect/AUX transfers

2019-06-28 Thread Imre Deak
We must keep the TypeC port mode fixed for the duration of the connector detection and each AUX transfers. Add a new TypeC lock holding it around these two sequences. For consistency also hold the lock during the port mode sanitization. Whenever resetting the port mode (only during the detection

[Intel-gfx] [PATCH v3 10/23] drm/i915: Wait for TypeC PHY complete flag to clear in safe mode

2019-06-28 Thread Imre Deak
The PHY status complete flag normally clears when disconnecting the PHY in DP-alt mode (achieved by switching to safe mode), so wait for the flag to clear. v2: - Use DRM_DEBUG_KMS instead of DRM_DEBUG_DRIVER. (José) Cc: José Roberto de Souza Cc: Rodrigo Vivi Signed-off-by: Imre Deak

[Intel-gfx] [PATCH v3 13/23] drm/i915: Fix the TypeC port mode sanitization during loading/resume

2019-06-28 Thread Imre Deak
For using the correct AUX power domains we have to sanitize the TypeC port mode early, so move that before encoder sanitization. To do this properly read out the actual port mode instead of just relying on the VBT legacy port flag (which can be incorrect). We also verify that the PHY is connected

[Intel-gfx] [PATCH v3 20/23] drm/i915: Keep the TypeC port mode fixed when the port is active

2019-06-28 Thread Imre Deak
The TypeC port mode needs to stay fixed whenever the port is active. Do that by introducing a tc_link_refcount to account for active ports, avoiding changing the port mode if a reference is held. During the modeset commit phase we also have to reset the port mode and update the active PLL

[Intel-gfx] [PATCH v3 16/23] drm/i915: Sanitize the shared DPLL reserve/release interface

2019-06-28 Thread Imre Deak
For consistency s/intel_get_shared_dpll()/intel_reserve_shared_dplls()/ to better match intel_release_shared_dplls(). Also, pass to the reserve/release and get_dplls/put_dplls hooks the intel_atomic_state and CRTC object, that way these functions can look up the old or new state as needed. Also

[Intel-gfx] [PATCH v3 07/23] drm/i915: Use the correct AUX power domain in TypeC TBT-alt mode

2019-06-28 Thread Imre Deak
In the TypeC TBT-alt port mode we must use the TBT AUX power domain, fix that. Cc: Manasi Navare Cc: Anusha Srivatsa Cc: José Roberto de Souza Signed-off-by: Imre Deak Reviewed-by: José Roberto de Souza --- drivers/gpu/drm/i915/display/intel_display.c | 19 +++ 1 file

[Intel-gfx] [PATCH v3 11/23] drm/i915: Handle the TCCOLD power-down event

2019-06-28 Thread Imre Deak
Based on a recent BSpec update (Index/21750) we must handle the TCCOLD event associated with the DP-alt mode. We can detect this event by reading an invalid all-1s value from FIA registers. After detecting TCCOLD we will: - fall back to TBT-alt mode when attempting to switch to DP-alt mode -

[Intel-gfx] [PATCH v3 12/23] drm/i915: Sanitize the TypeC connect/detect sequences

2019-06-28 Thread Imre Deak
Make the order during detection more consistent: first reset the TypeC port mode if needed (adding new helpers for this), then detect any connected sink. To check if a port mode reset is needed determine first the target port mode based on the live status if a sink is already connected or the PHY

[Intel-gfx] [PATCH v3 09/23] drm/i915: Factor out common parts from TypeC port handling functions

2019-06-28 Thread Imre Deak
Factor out helpers reading/parsing the TypeC specific registers, making current users of them clearer and letting us use them later. While at it also: - Simplify icl_tc_phy_connect() with an early return in legacy mode. - Simplify the live status check using one bitmask for all HPD bits. - Remove

[Intel-gfx] [PATCH v3 06/23] drm/i915: Fix the TBT AUX power well enabling

2019-06-28 Thread Imre Deak
Fix the mapping from a TBT AUX power well index to the DP_AUX_CH_CTL register. Fixes: c7375d9542f1 ("drm/i915: Configure AUX_CH_CTL when enabling the AUX power domain") Cc: José Roberto de Souza Cc: Rodrigo Vivi Signed-off-by: Imre Deak Reviewed-by: José Roberto de Souza ---

[Intel-gfx] [PATCH v3 05/23] drm/i915: Don't enable the DDI-IO power in the TypeC TBT-alt mode

2019-06-28 Thread Imre Deak
According to the spec we should not enable the DDI-IO power domain if the TypeC port is in the TBT-alt mode, so do that only in the other TypeC modes or for non-TypeC ports. See the internal BSpec Index/22243. v2: - Add the internal BSpec reference to the log message. (José) Cc: Manasi Navare

[Intel-gfx] [PATCH v3 04/23] drm/i915: Sanitize the terminology used for TypeC port modes

2019-06-28 Thread Imre Deak
The TypeC port mode can switch dynamically, to reflect that better call the port's mode as 'mode' rather than 'type'. While at it: - s/TC_PORT_TBT/TC_PORT_TBT_ALT/ and s/TC_PORT_TYPEC/TC_PORT_DP_ALT/. 'TYPEC' is ambiguous, TBT_ALT and DP_ALT better match the reality. - Remove the 'unknown'

[Intel-gfx] [PATCH v3 08/23] drm/i915: Unify the TypeC port notation in debug/error messages

2019-06-28 Thread Imre Deak
Unify the TypeC port notation in log messages, so that it matches the spec. For instance the first ICL TypeC port will read as 'Port C/TC#1'. v2: - Format print the name only once. (José) Cc: José Roberto de Souza Cc: Rodrigo Vivi Cc: Paulo Zanoni Signed-off-by: Imre Deak Reviewed-by: José

[Intel-gfx] [PATCH v3 02/23] drm/i915: Tune down WARNs about TBT AUX power well enabling

2019-06-28 Thread Imre Deak
The HW completion flag for the TBT AUX power well enabling/disabling gets stuck if the firmware tears down the TBT DP tunnel before the completion. We shouldn't complain about the timeout, since it's expected to happen and doesn't cause further issues. We suppress the disabling timeout already,

[Intel-gfx] [PATCH v3 03/23] drm/i915: Move the TypeC port handling code to a separate file

2019-06-28 Thread Imre Deak
Move the TypeC port handling functions to a new file for clarity. While at it: - s/icl_tc_port_connected()/intel_tc_port_connected()/ icl_tc_phy_disconnect(), will be unexported later. - s/intel_dp_get_fia_supported_lane_count()/ intel_tc_port_fia_max_lane_count()/ It's used for HDMI

[Intel-gfx] [PATCH v3 00/23] drm/i915: Fix TypeC port mode switching

2019-06-28 Thread Imre Deak
This is v3 of [1] addressing the comments from Ville and adding the R-b lines everywhere. [1] https://patchwork.freedesktop.org/series/61590/#rev3 Cc: Manasi Navare Cc: José Roberto de Souza Cc: Rodrigo Vivi Cc: Animesh Manna Cc: Paulo Zanoni Cc: Ville Syrjälä Cc: Daniel Vetter Cc: Lucas

[Intel-gfx] [PATCH v3 01/23] drm/i915/icl: Add support to read out the TBT PLL HW state

2019-06-28 Thread Imre Deak
Add support to read out the TBT PLL HW state. Cc: Vandita Kulkarni Cc: Paulo Zanoni Cc: Lucas De Marchi Signed-off-by: Imre Deak Reviewed-by: José Roberto de Souza --- drivers/gpu/drm/i915/display/intel_display.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/8] drm/i915/selftests: Lock the drm_mm while modifying

2019-06-28 Thread Patchwork
== Series Details == Series: series starting with [1/8] drm/i915/selftests: Lock the drm_mm while modifying URL : https://patchwork.freedesktop.org/series/62851/ State : success == Summary == CI Bug Log - changes from CI_DRM_6375_full -> Patchwork_13455_full

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: use wildcard to ensure all headers stay self-contained

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: use wildcard to ensure all headers stay self-contained URL : https://patchwork.freedesktop.org/series/62840/ State : success == Summary == CI Bug Log - changes from CI_DRM_6375_full -> Patchwork_13452_full

[Intel-gfx] [PATCH 10/10] drm/i915/tgl: Added new DC5/DC6 counter.

2019-06-28 Thread Anshuman Gupta
TGL onwards we have new DC5 and DC6 counter DMC_DEBUG1 and DMC_DEBUG2 these counter will retain there values upon DMC reset. Currently using IS_GEN() macro instead of IS_TIGERLAKE() to avoid compilation error and flot the pacthes. Will be using IS_TIGERLAKE() once TGL platform enabling pacthes

[Intel-gfx] [PATCH 08/10] drm/i915/tgl:switch between dc3co and dc5 based on display idleness.

2019-06-28 Thread Anshuman Gupta
DC5 and DC6 not allowed when DC3CO feature is enabled. DC5 and DC6 saves more power, but cannot be entered during video playback because there are not enough idle frames in a row to meet. Most PSR2 panel deep sleep entry requirements typically 4 frames. This patch switch to DC3CO when there is

[Intel-gfx] [PATCH 07/10] drm/i915/tgl:DC3CO PSR2 helper.

2019-06-28 Thread Anshuman Gupta
This patch adds dc3co helper function to enable/disable psr2 deep sleep. This patch make sure DC3CO disallowed before PSR2 exit, it does that essentially by putting a reference to POWER_DOMAIN_VIDEO before PSR2 exit. Cc: jani.nik...@intel.com Cc: imre.d...@intel.com Cc: jose.so...@intel.com Cc:

[Intel-gfx] [PATCH 05/10] drm/i915/tgl:Added helper function to prefer dc3co over dc5.

2019-06-28 Thread Anshuman Gupta
This patch check if it is only edp display connected and crtc has psr2 capability, then it sets the prefer_dc3co flag to true. It also enable DC3CO PSR2 transcoder early exitline event in haswell_crtc_enable() function. TODO: B. Specs says dc3co should be allow only in video playback case,

[Intel-gfx] [PATCH 04/10] drm/i915/tgl:Added mutual exclusive handling for DC3CO and DC5/6.

2019-06-28 Thread Anshuman Gupta
As per B.Spces DC5 and DC6 not allowed when DC3CO is enabled. and DC3CO should be enabled only during VIDEO playback. Which essentially means both can DC5 and DC3CO can not be enabled at same time. This patch makes DC3CO and DC5 mutual exclusive. Cc: jani.nik...@intel.com Cc: imre.d...@intel.com

[Intel-gfx] [PATCH 00/10] DC3CO Support for TGL.

2019-06-28 Thread Anshuman Gupta
Addressed few review comment provided by Imre on internal mailing list. This series requires Tigerlake platform enablement patches and TGL PSR patches to be merged first, so few patches has commented out original code, which has commented out in order to build the series. DC3CO DMC f/w

[Intel-gfx] [PATCH 09/10] drm/i915/tgl:Added DC3CO counter in i915_dmc_info.

2019-06-28 Thread Anshuman Gupta
This patch exposes DC3CO counter in i915_dmc_info debugfs. Which will be useful for DC3CO validation. DMC firmware is using DMC_DEBUG3 register as DC3CO counter. Cc: jani.nik...@intel.com Cc: imre.d...@intel.com Cc: animesh.ma...@intel.com Signed-off-by: Anshuman Gupta ---

[Intel-gfx] [PATCH 02/10] i915:Added DC3CO mask to allowed_dc_mask and gen9_dc_mask.

2019-06-28 Thread Anshuman Gupta
This patch enables dc3co state in enable_dc module param and adds dc3co enable mask to allowed_dc_mask and gen9_dc_mask. Cc: jani.nik...@intel.com Cc: imre.d...@intel.com Cc: animesh.ma...@intel.com Signed-off-by: Anshuman Gupta --- drivers/gpu/drm/i915/i915_params.c | 3 ++-

[Intel-gfx] [PATCH 03/10] i915:Added DC3CO power well.

2019-06-28 Thread Anshuman Gupta
This patch adds a new "DC3CO Off" power well and adds its power domain which are inherits from "DC Off" power well. These power domains will disallow DC3CO when any external display are connected and at time of modeset and aux programming. This patch also changes "DC Off" power well to "DC5 Off"

[Intel-gfx] [PATCH 06/10] drm/i915/tgl:Added VIDEO power domain.

2019-06-28 Thread Anshuman Gupta
Added POWER_DOMAIN_VIDEO power domain and added its helper stuff. POWER_DOMAIN_VIDEO is a hook to "DC5 Off" power well. which can disallow DC5/6 in order to allow dc3co. Cc: jani.nik...@intel.com Cc: imre.d...@intel.com Cc: animesh.ma...@intel.com Signed-off-by: Anshuman Gupta ---

[Intel-gfx] [PATCH 01/10] drm/i915/tgl:Added DC3CO required register and bits.

2019-06-28 Thread Anshuman Gupta
This patch adds following definition to i915_reg.h 1. DC_STATE_EN register DC3CO bit fields and masks. 2. Transcoder EXITLINE register and its bit fields and mask. v2: Commit log typo fixing. Cc: jani.nik...@intel.com Cc: imre.d...@intel.com Cc: animesh.ma...@intel.com Signed-off-by: Anshuman

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: CTS fixes (rev7)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: CTS fixes (rev7) URL : https://patchwork.freedesktop.org/series/62437/ State : warning == Summary == $ dim checkpatch origin/drm-tip 2d3e1d83dab1 drm/i915: fix whitelist selftests with readonly registers -:12: WARNING:COMMIT_LOG_LONG_LINE: Possible

[Intel-gfx] [PATCH v7 1/3] drm/i915: fix whitelist selftests with readonly registers

2019-06-28 Thread Lionel Landwerlin
When a register is readonly there is not much we can tell about its value (apart from its default value?). This can be covered by tests exercising the value of the register from userspace. For PS_INVOCATION_COUNT we've got the following piglit tests :

[Intel-gfx] [PATCH v7 3/3] drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT

2019-06-28 Thread Lionel Landwerlin
The same tests failing on CFL+ platforms are also failing on ICL. Documentation doesn't list the WaAllowPMDepthAndInvocationCountAccessFromUMD workaround for ICL but applying it fixes the same tests as CFL. v2: Use only one whitelist entry (Lionel) Signed-off-by: Lionel Landwerlin Tested-by:

[Intel-gfx] [PATCH v7 0/3] drm/i915: CTS fixes

2019-06-28 Thread Lionel Landwerlin
Anuj tested the update to the ICL whitelist. We need a good soul to either Rb/Ack the rest. Thanks, Lionel Landwerlin (3): drm/i915: fix whitelist selftests with readonly registers drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT drm/i915/icl: whitelist PS_(DEPTH|INVOCATION)_COUNT

[Intel-gfx] [PATCH v7 2/3] drm/i915: whitelist PS_(DEPTH|INVOCATION)_COUNT

2019-06-28 Thread Lionel Landwerlin
CFL:C0+ changed the status of those registers which are now blacklisted by default. This is breaking a number of CTS tests on GL & Vulkan : KHR-GL45.pipeline_statistics_query_tests_ARB.functional_fragment_shader_invocations (GL)

Re: [Intel-gfx] [PATCH v2 3/3] drm/i915: Send hotplug event if edid had changed.

2019-06-28 Thread Ramalingam C
On 2019-06-28 at 17:06:09 +0530, Lisovskiy, Stanislav wrote: > On Fri, 2019-06-28 at 09:54 +0530, Ramalingam C wrote: > > On 2019-06-28 at 11:24:54 +0300, Stanislav Lisovskiy wrote: > > > Added edid checking to dp and hdmi edid setting functions, which > > > are called from detect hooks. The

Re: [Intel-gfx] [PATCH v2 3/3] drm/i915: Send hotplug event if edid had changed.

2019-06-28 Thread Lisovskiy, Stanislav
On Fri, 2019-06-28 at 09:54 +0530, Ramalingam C wrote: > On 2019-06-28 at 11:24:54 +0300, Stanislav Lisovskiy wrote: > > Added edid checking to dp and hdmi edid setting functions, which > > are called from detect hooks. The result currently is propagated > > to calling layer using

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/ehl: Add support for DPLL4 (v5) (rev4)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915/ehl: Add support for DPLL4 (v5) (rev4) URL : https://patchwork.freedesktop.org/series/61684/ State : success == Summary == CI Bug Log - changes from CI_DRM_6377 -> Patchwork_13464 Summary ---

Re: [Intel-gfx] [PATCH v2 3/3] drm/i915: Send hotplug event if edid had changed.

2019-06-28 Thread Ramalingam C
On 2019-06-28 at 11:24:54 +0300, Stanislav Lisovskiy wrote: > Added edid checking to dp and hdmi edid setting functions, which > are called from detect hooks. The result currently is propagated > to calling layer using drm_connector->change_counter(proposed by Daniel > Vetter). >

Re: [Intel-gfx] [PATCH i-g-t v2] tests/i915/gem_ctx_switch: Update with engine discovery

2019-06-28 Thread Andi Shyti
> > > +gem_eb_flags_to_engine(unsigned int flags) > > > +{ > > > + const struct intel_execution_engine2 *e2; > > > + > > > + __for_each_static_engine(e2) { > > > + if (e2->flags == flags) > > > + return e2; > > > + } > > > + > > > + return NULL; > > > +} > > > > the amount

Re: [Intel-gfx] [PATCH v2 2/3] drm: Introduce change counter to drm_connector

2019-06-28 Thread Ramalingam C
On 2019-06-28 at 11:24:53 +0300, Stanislav Lisovskiy wrote: > This counter will be used by drm_helper_probe_detect caller to determine > if something else had changed except connection status, > like for example edid. Hardware specific drivers are responsible > for updating this counter when some

Re: [Intel-gfx] [PATCH v2 1/3] drm: Add helper to compare edids.

2019-06-28 Thread Ramalingam C
On 2019-06-28 at 11:24:52 +0300, Stanislav Lisovskiy wrote: > Many drivers would benefit from using > drm helper to compare edid, rather > than bothering with own implementation. > > v2: Added documentation for this function. > > Signed-off-by: Stanislav Lisovskiy > --- >

[Intel-gfx] ✓ Fi.CI.BAT: success for Enable Transcoder Port Sync feature for Tiled displays (rev4)

2019-06-28 Thread Patchwork
== Series Details == Series: Enable Transcoder Port Sync feature for Tiled displays (rev4) URL : https://patchwork.freedesktop.org/series/59837/ State : success == Summary == CI Bug Log - changes from CI_DRM_6377 -> Patchwork_13463 Summary

[Intel-gfx] [PATCH] buddy

2019-06-28 Thread Chris Wilson
A puzzle for you... --- drivers/gpu/drm/i915/i915_buddy.c | 17 +- drivers/gpu/drm/i915/selftests/i915_buddy.c | 230 +++- 2 files changed, 234 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_buddy.c b/drivers/gpu/drm/i915/i915_buddy.c index

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/2] drm/i915: Use port clock to set correct N value

2019-06-28 Thread Patchwork
== Series Details == Series: series starting with [v2,1/2] drm/i915: Use port clock to set correct N value URL : https://patchwork.freedesktop.org/series/62895/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376 -> Patchwork_13462

[Intel-gfx] ✓ Fi.CI.BAT: success for Set correct values for N in deep color mode

2019-06-28 Thread Patchwork
== Series Details == Series: Set correct values for N in deep color mode URL : https://patchwork.freedesktop.org/series/62894/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376 -> Patchwork_13461 Summary ---

[Intel-gfx] ✗ Fi.CI.BAT: failure for Introduce memory region concept (including device local memory) (rev2)

2019-06-28 Thread Patchwork
== Series Details == Series: Introduce memory region concept (including device local memory) (rev2) URL : https://patchwork.freedesktop.org/series/56683/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6376 -> Patchwork_13460

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/tgl: Gen12 csb support

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915/tgl: Gen12 csb support URL : https://patchwork.freedesktop.org/series/62890/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376 -> Patchwork_13459 Summary --- **SUCCESS** No

Re: [Intel-gfx] [PATCH 12/28] drm/i915/tgl: Add TRANSCODER_A_VDSC power domain

2019-06-28 Thread Ville Syrjälä
On Tue, Jun 25, 2019 at 10:54:21AM -0700, Lucas De Marchi wrote: > From: José Roberto de Souza > > On TGL the special EDP transcoder is gone and it should be handled by > transcoder A. Add POWER_DOMAIN_TRANSCODER_A_VDSC to make this > distinction clear and update vdsc code path. > > Cc: Imre

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: CTS fixes (rev6)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: CTS fixes (rev6) URL : https://patchwork.freedesktop.org/series/62437/ State : success == Summary == CI Bug Log - changes from CI_DRM_6373_full -> Patchwork_13451_full Summary --- **SUCCESS**

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Add icl mipi dsi properties (rev2)

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Add icl mipi dsi properties (rev2) URL : https://patchwork.freedesktop.org/series/62770/ State : success == Summary == CI Bug Log - changes from CI_DRM_6376 -> Patchwork_13458 Summary ---

Re: [Intel-gfx] [PATCH v2 01/37] drm/i915: buddy allocator

2019-06-28 Thread Chris Wilson
Quoting Matthew Auld (2019-06-27 21:55:57) > +static void __i915_buddy_free(struct i915_buddy_mm *mm, > + struct i915_buddy_block *block) > +{ > + list_del_init(>link); /* We have ownership now */ That is an important observation. Even more important is that as

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Use intel_crtc_state everywhere!

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Use intel_crtc_state everywhere! URL : https://patchwork.freedesktop.org/series/62920/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Pass intel_crtc_state to needs_modeset() Okay! Commit: drm/i915:

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Use intel_crtc_state everywhere!

2019-06-28 Thread Patchwork
== Series Details == Series: drm/i915: Use intel_crtc_state everywhere! URL : https://patchwork.freedesktop.org/series/62920/ State : warning == Summary == $ dim checkpatch origin/drm-tip 86e398aa0e65 drm/i915: Pass intel_crtc_state to needs_modeset() 83682e1854bb drm/i915: Convert most of

[Intel-gfx] [PATCH v2 3/6] drm/i915: Convert hw state verifier to take more intel state, v2.

2019-06-28 Thread Maarten Lankhorst
Like the rest of the intel atomic functions we should pass along intel_crtc_state, and dereference drm_crtc_state only through intel_crtc_state->base While at it, rename old/new_state to old/new_crtc_state. (Ville) Signed-off-by: Maarten Lankhorst Reviewed-by: Ville Syrjälä ---

[Intel-gfx] [PATCH v2 5/6] drm/i915: Pass intel state to plane functions as well

2019-06-28 Thread Maarten Lankhorst
Pass along the correct state as much as possible, instead of relying on the drm state internally. This is required to rely on hw state internally soon. While at it, clean up intel_plane_atomic_check slightly, by using a helper function to get the intel_crtc. (Ville) Signed-off-by: Maarten

[Intel-gfx] [PATCH v2 0/6] drm/i915: Use intel_crtc_state everywhere!

2019-06-28 Thread Maarten Lankhorst
To prepare for a hw and uapi state split in intel_crtc_state, we need to start replacing all internal usage of drm_crtc_state with intel_crtc_state. This makes it easier to convert to split state later, and cleans up the code slightly. Maarten Lankhorst (6): drm/i915: Pass intel_crtc_state to

[Intel-gfx] [PATCH v2 6/6] drm/i915: Use intel state as much as possible in wm code

2019-06-28 Thread Maarten Lankhorst
Instead of directly referencing drm_crtc_state, convert to intel_ctc_state and use the base struct. This is useful when we're making the split between uapi and hw state, and also makes the code slightly more readable. A lot of places also use cstate, instead of the more common crtc_state. Clean

[Intel-gfx] [PATCH v2 1/6] drm/i915: Pass intel_crtc_state to needs_modeset()

2019-06-28 Thread Maarten Lankhorst
In i915 we should use intel_crtc_state as much as possible, pass intel_crtc_state to needs_modeset, before we clean up all other uses of drm_crtc_state. Signed-off-by: Maarten Lankhorst Reviewed-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 68 ++-- 1

  1   2   >