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

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Fix TypeC port mode switching URL : https://patchwork.freedesktop.org/series/61590/ State : success == Summary == CI Bug Log - changes from CI_DRM_6187 -> Patchwork_13170 Summary ---

[Intel-gfx] [PATCH V8 i-g-t] tests/kms_flip: Skip VBlank tests in modules without VBlank

2019-06-04 Thread Rodrigo Siqueira
The kms_flip test relies on VBlank support, and this situation may exclude some virtual drivers to take advantage of this set of tests. This commit adds a mechanism that checks if a module has VBlank. If the target module has VBlank support, kms_flip will run all the VBlank tests; otherwise, the

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/wopcm: update default size for gen11+

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915/wopcm: update default size for gen11+ URL : https://patchwork.freedesktop.org/series/61617/ State : success == Summary == CI Bug Log - changes from CI_DRM_6189 -> Patchwork_13176 Summary ---

[Intel-gfx] [PATCH] drm/i915/wopcm: update default size for gen11+

2019-06-04 Thread Daniele Ceraolo Spurio
The size has been increased to 2MB starting from gen11. GuC and HuC FWs fit in 1MB so we were fine even with the legacy define, but let's still move to the correct one before the blobs grow to avoid being caught off guard in the future. Bspec: 44982 Signed-off-by: Daniele Ceraolo Spurio Cc:

[Intel-gfx] [PATCH v2 08/22] gpu: i915.rst: Fix references to renamed files

2019-06-04 Thread Mauro Carvalho Chehab
WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function Hardware workarounds ./drivers/gpu/drm/i915/intel_workarounds.c' failed with return code 1 WARNING: kernel-doc './scripts/kernel-doc -rst -enable-lineno -function Logical Rings, Logical Ring Contexts and Execlists

Re: [Intel-gfx] [PATCH i-g-t 1/5] lib/tests: fix conflicting args test

2019-06-04 Thread Lucas De Marchi
On Fri, May 31, 2019 at 07:55:45AM -0700, Lucas De Marchi wrote: On Fri, May 31, 2019 at 12:59:35PM +0300, Petri Latvala wrote: On Wed, May 29, 2019 at 04:27:33PM -0700, Lucas De Marchi wrote: We want to check if the long option conflicts with one from the core. The check for conflicting short

Re: [Intel-gfx] [PATCH] drm/i915/dp: Correctly advertise HBR3 for GEN11+

2019-06-04 Thread Clinton Taylor
Tested-by: Clint Taylor -Clint On 6/3/19 2:49 PM, matthew.s.atw...@intel.com wrote: From: Matt Atwood intel_dp_set_source_rates() calls intel_dp_is_edp(), which is unsafe to use before encoder_type is set. This caused GEN11+ to incorrectly strip HBR3 from source rates. Move

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915/guc: always use Command Transport Buffers

2019-06-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/guc: always use Command Transport Buffers URL : https://patchwork.freedesktop.org/series/61611/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6188 -> Patchwork_13175

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm/i915: Do not touch the PCH SSC reference if a PLL is using it

2019-06-04 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Do not touch the PCH SSC reference if a PLL is using it URL : https://patchwork.freedesktop.org/series/61608/ State : success == Summary == CI Bug Log - changes from CI_DRM_6188 -> Patchwork_13174

Re: [Intel-gfx] [PATCH] drm/i915: Initialise subslice prior to potential zero-length loop

2019-06-04 Thread Summers, Stuart
On Tue, 2019-06-04 at 11:49 +0300, Lionel Landwerlin wrote: > On 29/05/2019 14:24, Chris Wilson wrote: > > Appease static analysers by making sure subslice always have a > > value. > > > > drivers/gpu/drm/i915//gt/intel_engine_cs.c:971 > > intel_sseu_fls_subslice() error: uninitialized symbol

[Intel-gfx] [PATCH 1/2] drm/i915/guc: always use Command Transport Buffers

2019-06-04 Thread Daniele Ceraolo Spurio
Now that we've moved the gen9 guc blobs to version 32 we have CTB support on all gens, so no need to restrict the usage to gen11+. Note that mmio communication is still required for CTB initialization. Signed-off-by: Daniele Ceraolo Spurio Cc: Michal Wajdeczko ---

[Intel-gfx] [PATCH 2/2] HAX: Turn on GuC/HuC auto mode

2019-06-04 Thread Daniele Ceraolo Spurio
From: Michal Wajdeczko Run GuC, run! Signed-off-by: Michal Wajdeczko --- drivers/gpu/drm/i915/i915_params.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_params.h b/drivers/gpu/drm/i915/i915_params.h index a4770ce46bd2..d169a5cc6829 100644 ---

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915: Split out GTT fault handler to make it generic

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Split out GTT fault handler to make it generic URL : https://patchwork.freedesktop.org/series/61573/ State : failure == Summary == CI Bug Log - changes from CI_DRM_6184_full -> Patchwork_13165_full

Re: [Intel-gfx] [PATCH] drm/i915/dp: Correctly advertise HBR3 for GEN11+

2019-06-04 Thread Ville Syrjälä
On Tue, Jun 04, 2019 at 12:44:48PM -0700, Manasi Navare wrote: > On Tue, Jun 04, 2019 at 03:51:58PM +0300, Ville Syrjälä wrote: > > On Mon, Jun 03, 2019 at 02:49:40PM -0700, matthew.s.atw...@intel.com wrote: > > > From: Matt Atwood > > > > > > intel_dp_set_source_rates() calls intel_dp_is_edp(),

[Intel-gfx] [PATCH 3/5] drm/i915: Nuke LC_FREQ

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä Get rid of the pointless LC_FREQ define. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_ddi.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index

[Intel-gfx] [PATCH 1/5] drm/i915: Do not touch the PCH SSC reference if a PLL is using it

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä Our PCH refclk init code currently assumes that the PCH SSC reference can only be used for FDI. That is not true and it can be used by SPLL/WRPLL for eDP SSC or clock bending as well. Before we go reconfiguring it let's make sure no PLL is currently using the PCH SSC

[Intel-gfx] [PATCH 2/5] drm/i915: Rename HSW/BDW PLL bits

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä Give the PLL control register bits better names on HSW/BDW. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/i915_reg.h | 37 ++- drivers/gpu/drm/i915/intel_ddi.c | 16 ++-- drivers/gpu/drm/i915/intel_display.c | 8 +++---

[Intel-gfx] [PATCH 5/5] drm/i915: Improve WRPLL reference clock readout on HSW/BDW

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä On non-ULT HSW the "special" WRPLL reference clock select actually means non-SSC. Take that into account when reading out the WRPLL state. Also the non-SSC reference may be either 24MHz or 135MHz, which we can read out from FUSE_STRAP3. The BDW docs actually say: "also

[Intel-gfx] [PATCH 4/5] drm/i915: Assert that HSW/BDW LCPLL is using the non-SSC reference

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä Only the non-SSC reference is truly supported for the LCPLL. Assert that it is indeed selected. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_display_power.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display_power.c

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] i915/gem_ctx_shared: Fixup vec0 mmio base for icl

2019-06-04 Thread Chris Wilson
Quoting Antonio Argenziano (2019-06-04 19:43:35) > > > On 04/06/19 09:29, Chris Wilson wrote: > > I told vecs0 to use vecs1 registers... > > > > Signed-off-by: Chris Wilson > > --- > > tests/i915/gem_ctx_shared.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff

Re: [Intel-gfx] [PATCH] drm/i915/dp: Correctly advertise HBR3 for GEN11+

2019-06-04 Thread Manasi Navare
On Tue, Jun 04, 2019 at 03:51:58PM +0300, Ville Syrjälä wrote: > On Mon, Jun 03, 2019 at 02:49:40PM -0700, matthew.s.atw...@intel.com wrote: > > From: Matt Atwood > > > > intel_dp_set_source_rates() calls intel_dp_is_edp(), which is unsafe to > > use before encoder_type is set. This caused

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Drop pointless WARN_ON

2019-06-04 Thread Manasi Navare
On Tue, Jun 04, 2019 at 05:02:14PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > intel_dp_link_down() is static and it's only called from the pre-ddi > DP functions, so having a WARN_ON(HAS_DDI) in there is quite pointless. > Remove it. > > Signed-off-by: Ville Syrjälä Looks good to

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Move intel_dp->prepare_link_train assignment into ddi code

2019-06-04 Thread Manasi Navare
On Tue, Jun 04, 2019 at 05:02:13PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > It's a bit silly to go through intel_dp.c to assign the > prepare_link_train vfunc for ddi platforms when we can just > assign it directly from intel_ddi.c. > > Signed-off-by: Ville Syrjälä Yes looks like

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Don't check uv_wm in skl_plane_wm_equals() (rev2)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Don't check uv_wm in skl_plane_wm_equals() (rev2) URL : https://patchwork.freedesktop.org/series/58281/ State : success == Summary == CI Bug Log - changes from CI_DRM_6187 -> Patchwork_13173 Summary

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gtt: Replace struct_mutex serialisation for allocation (rev2)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915/gtt: Replace struct_mutex serialisation for allocation (rev2) URL : https://patchwork.freedesktop.org/series/61533/ State : success == Summary == CI Bug Log - changes from CI_DRM_6187 -> Patchwork_13172

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] i915/gem_ctx_shared: Fixup vec0 mmio base for icl

2019-06-04 Thread Antonio Argenziano
On 04/06/19 09:29, Chris Wilson wrote: I told vecs0 to use vecs1 registers... Signed-off-by: Chris Wilson --- tests/i915/gem_ctx_shared.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c index

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915/gtt: Replace struct_mutex serialisation for allocation (rev2)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915/gtt: Replace struct_mutex serialisation for allocation (rev2) URL : https://patchwork.freedesktop.org/series/61533/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/gtt: Replace struct_mutex serialisation

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gtt: Replace struct_mutex serialisation for allocation (rev2)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915/gtt: Replace struct_mutex serialisation for allocation (rev2) URL : https://patchwork.freedesktop.org/series/61533/ State : warning == Summary == $ dim checkpatch origin/drm-tip 15da932f11d7 drm/i915/gtt: Replace struct_mutex serialisation for allocation

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Skip context_barrier emission for unused contexts

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Skip context_barrier emission for unused contexts URL : https://patchwork.freedesktop.org/series/61595/ State : success == Summary == CI Bug Log - changes from CI_DRM_6187 -> Patchwork_13171 Summary

Re: [Intel-gfx] [PATCH 4/4] drm/i915/dsi: Read back pclk set by GOP and use that as pclk (v3)

2019-06-04 Thread Ville Syrjälä
On Fri, May 24, 2019 at 06:30:20PM +0200, Hans de Goede wrote: > The GOP sometimes initializes the pclk at a (slightly) different frequency > then the pclk which we've calculated. > > This commit makes the DSI code read-back the pclk set by the GOP and > if that is within a reasonable margin of

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

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Fix TypeC port mode switching 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:

Re: [Intel-gfx] [PATCH 2/4] drm/i915/dsi: Move logging of DSI VBT parameters to a helper function

2019-06-04 Thread Ville Syrjälä
On Fri, May 24, 2019 at 06:30:18PM +0200, Hans de Goede wrote: > This is a preparation patch for moving the calling of *_dphy_param_init() > out of intel_dsi_vbt_init. > > Signed-off-by: Hans de Goede Reviewed-by: Ville Syrjälä > --- > drivers/gpu/drm/i915/intel_dsi_vbt.c | 77

Re: [Intel-gfx] [PATCH 3/4] drm/i915/dsi: Move vlv/icl_dphy_param_init call out of intel_dsi_vbt_init

2019-06-04 Thread Ville Syrjälä
On Fri, May 24, 2019 at 06:30:19PM +0200, Hans de Goede wrote: > The vlv/icl_dphy_param_init calls do various calculations to set dphy > parameters based on the pclk. > > Move the calling of vlv/icl_dphy_param_init to vlv_dsi_init to give > vlv_dsi_init a chance to tweak the pclk before these

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

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Fix TypeC port mode switching URL : https://patchwork.freedesktop.org/series/61590/ State : warning == Summary == $ dim checkpatch origin/drm-tip 14db34664cf1 drm/i915/icl: Add support to read out the TBT PLL HW state 90cdad322f0f drm/i915: Tune down

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dsi: Use a fuzzy check for burst mode clock check

2019-06-04 Thread Ville Syrjälä
On Fri, May 24, 2019 at 07:40:28PM +0200, Hans de Goede wrote: > Prior to this commit we fail to init the DSI panel on the GPD MicroPC: > https://www.indiegogo.com/projects/gpd-micropc-6-inch-handheld-industry-laptop#/ > > The problem is intel_dsi_vbt_init() failing with the following error: >

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Move intel_dp->prepare_link_train assignment into ddi code

2019-06-04 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Move intel_dp->prepare_link_train assignment into ddi code URL : https://patchwork.freedesktop.org/series/61586/ State : success == Summary == CI Bug Log - changes from CI_DRM_6187 -> Patchwork_13169

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Vulkan performance query support (rev3)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Vulkan performance query support (rev3) URL : https://patchwork.freedesktop.org/series/60916/ State : success == Summary == CI Bug Log - changes from CI_DRM_6186 -> Patchwork_13168 Summary ---

[Intel-gfx] [PATCH i-g-t] i915/gem_ctx_shared: Fixup vec0 mmio base for icl

2019-06-04 Thread Chris Wilson
I told vecs0 to use vecs1 registers... Signed-off-by: Chris Wilson --- tests/i915/gem_ctx_shared.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c index 67ecd0953..069964546 100644 --- a/tests/i915/gem_ctx_shared.c

[Intel-gfx] ✓ Fi.CI.BAT: success for dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc (rev3)

2019-06-04 Thread Patchwork
== Series Details == Series: dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc (rev3) URL : https://patchwork.freedesktop.org/series/61581/ State : success == Summary == CI Bug Log - changes from CI_DRM_6186 -> Patchwork_13167

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Vulkan performance query support (rev3)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Vulkan performance query support (rev3) URL : https://patchwork.freedesktop.org/series/60916/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/perf: introduce a versioning of the i915-perf uapi Okay!

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: Vulkan performance query support (rev3)

2019-06-04 Thread Patchwork
== Series Details == Series: drm/i915: Vulkan performance query support (rev3) URL : https://patchwork.freedesktop.org/series/60916/ State : warning == Summary == $ dim checkpatch origin/drm-tip 87e2a194bf9d drm/i915/perf: introduce a versioning of the i915-perf uapi d05986d1855c

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [CI,1/3] drm/i915/selftests: Flush partial-tiling object once

2019-06-04 Thread Patchwork
== Series Details == Series: series starting with [CI,1/3] drm/i915/selftests: Flush partial-tiling object once URL : https://patchwork.freedesktop.org/series/61578/ State : success == Summary == CI Bug Log - changes from CI_DRM_6186 -> Patchwork_13166

[Intel-gfx] [CI] drm/i915/gtt: Replace struct_mutex serialisation for allocation

2019-06-04 Thread Chris Wilson
Instead of relying on the caller holding struct_mutex across the allocation, push the allocation under a tree of spinlocks stored inside the page tables. Not only should this allow us to avoid struct_mutex here, but it will allow multiple users to lock independent ranges for concurrent

[Intel-gfx] [PATCH] drm/i915: Skip context_barrier emission for unused contexts

2019-06-04 Thread Chris Wilson
The intent was to skip unused HW contexts by checking ce->state. However, this only works for execlists where the ppGTT pointers is stored inside the HW context. For gen7, the ppGTT is alongside the logical state and must be updated on all active engines but, crucially, only on active engines. As

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [CI,1/3] drm/i915/selftests: Flush partial-tiling object once

2019-06-04 Thread Patchwork
== Series Details == Series: series starting with [CI,1/3] drm/i915/selftests: Flush partial-tiling object once URL : https://patchwork.freedesktop.org/series/61578/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/selftests: Flush

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

2019-06-04 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 ---

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

2019-06-04 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 21/23] drm/i915: Add state verification for the TypeC port mode

2019-06-04 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 already the TypeC port lock. - When changing the TypeC port mode the

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

2019-06-04 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 18/23] drm/i915/icl: Split getting the DPLLs to port type specific functions

2019-06-04 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 --- drivers/gpu/drm/i915/intel_dpll_mgr.c | 100

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

2019-06-04 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 20/23] drm/i915: Keep the TypeC port mode fixed when the port is active

2019-06-04 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 15/23] drm/i915: Sanitize the TypeC FIA lane configuration decoding

2019-06-04 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 --- drivers/gpu/drm/i915/intel_tc.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-)

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

2019-06-04 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 14/23] drm/i915: Keep the TypeC port mode fixed for detect/AUX transfers

2019-06-04 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 13/23] drm/i915: Fix the TypeC port mode sanitization during loading/resume

2019-06-04 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 11/23] drm/i915: Handle the TCCOLD power-down event

2019-06-04 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 10/23] drm/i915: Wait for TypeC PHY complete flag to clear in safe mode

2019-06-04 Thread Imre Deak
The PHY satus 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. Cc: José Roberto de Souza Cc: Rodrigo Vivi Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_tc.c | 4 1 file changed, 4

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

2019-06-04 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 12/23] drm/i915: Sanitize the TypeC connect/detect sequences

2019-06-04 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 08/23] drm/i915: Unify the TypeC port notation in debug/error messages

2019-06-04 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'. Cc: José Roberto de Souza Cc: Rodrigo Vivi Cc: Paulo Zanoni Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_tc.c | 41

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

2019-06-04 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 Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_display.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c

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

2019-06-04 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 05/23] drm/i915: Don't enable the DDI-IO power in the TypeC TBT-alt mode

2019-06-04 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. Cc: Manasi Navare Cc: Anusha Srivatsa Signed-off-by: Imre Deak --- drivers/gpu/drm/i915/intel_ddi.c | 11 --- 1

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

2019-06-04 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 legacy

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

2019-06-04 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 --- drivers/gpu/drm/i915/intel_display_power.c | 11

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

2019-06-04 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 --- drivers/gpu/drm/i915/intel_display.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

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

2019-06-04 Thread Imre Deak
Atm we switch the TypeC port mode upon receiving an HPD interrupt. That's unsafe since the port could be active (after a modeset) or there could be other users that depend on the port mode to stay fixed. To make the mode switching robust add a TypeC port mode refcounting reflecting the active

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

2019-06-04 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 2/2] drm/i915: Drop pointless WARN_ON

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä intel_dp_link_down() is static and it's only called from the pre-ddi DP functions, so having a WARN_ON(HAS_DDI) in there is quite pointless. Remove it. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_dp.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[Intel-gfx] [PATCH 1/2] drm/i915: Move intel_dp->prepare_link_train assignment into ddi code

2019-06-04 Thread Ville Syrjala
From: Ville Syrjälä It's a bit silly to go through intel_dp.c to assign the prepare_link_train vfunc for ddi platforms when we can just assign it directly from intel_ddi.c. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_ddi.c | 5 - drivers/gpu/drm/i915/intel_ddi.h | 1 -

Re: [Intel-gfx] [PATCH v3 5/7] drm/i915: add a new perf configuration execbuf parameter

2019-06-04 Thread Lionel Landwerlin
On 04/06/2019 16:40, Chris Wilson wrote: Quoting Lionel Landwerlin (2019-06-04 14:11:38) list_add_tail(>client_link, >file_priv->mm.request_list); } +static int eb_oa_config(struct i915_execbuffer *eb) +{ + struct i915_vma *oa_vma; + int err; + + if

Re: [Intel-gfx] [PATCH v3 6/7] drm/i915/perf: allow holding preemption on filtered ctx

2019-06-04 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-06-04 14:11:39) > diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c > b/drivers/gpu/drm/i915/gt/intel_lrc.c > index ed19f4e53d31..4046f045408b 100644 > --- a/drivers/gpu/drm/i915/gt/intel_lrc.c > +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c > @@ -683,6 +683,12 @@

Re: [Intel-gfx] [PATCH 01/14] drm/i915: Pass intel_atomic_state to cdclk funcs

2019-06-04 Thread Ville Syrjälä
On Fri, May 17, 2019 at 10:31:19PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Pass around intel_atomic_state rather than drm_atomic_state. > This avoids some extra casts and annoing aliasing variables. > > Signed-off-by: Ville Syrjälä > --- Series pushed with Maarten's irc rb.

Re: [Intel-gfx] [PATCH v3] drm/i915: add i2c symlink under hdmi connector

2019-06-04 Thread Ville Syrjälä
On Mon, Jun 03, 2019 at 04:33:19PM +0300, Ville Syrjälä wrote: > On Mon, Jun 03, 2019 at 10:09:30AM +, Vasilev, Oleg wrote: > > Hi, > > > > Can this be reviewed, please? > > It looks good to me. But the test results are horrible, due to the ext4 > fail I think. I've hit retest to get new

Re: [Intel-gfx] [PATCH v3 5/7] drm/i915: add a new perf configuration execbuf parameter

2019-06-04 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-06-04 14:11:38) > list_add_tail(>client_link, >file_priv->mm.request_list); > } > > +static int eb_oa_config(struct i915_execbuffer *eb) > +{ > + struct i915_vma *oa_vma; > + int err; > + > + if (!eb->oa_config) > + return

Re: [Intel-gfx] [PATCH v3 3/7] drm/i915: introduce a mechanism to extend execbuf2

2019-06-04 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-06-04 14:11:36) > We're planning to use this for a couple of new feature where we need > to provide additional parameters to execbuf. See struct i915_user_extension. Might as well try and share common code. -Chris ___

Re: [Intel-gfx] [PATCH v3 2/7] drm/i915/perf: allow for CS OA configs to be created lazily

2019-06-04 Thread Chris Wilson
Quoting Lionel Landwerlin (2019-06-04 14:11:35) > diff --git a/drivers/gpu/drm/i915/i915_perf.c > b/drivers/gpu/drm/i915/i915_perf.c > index 2e33a9b4eae7..e0071e44de3d 100644 > --- a/drivers/gpu/drm/i915/i915_perf.c > +++ b/drivers/gpu/drm/i915/i915_perf.c > @@ -366,9 +366,16 @@ struct

[Intel-gfx] [PATCH v3 2/7] drm/i915/perf: allow for CS OA configs to be created lazily

2019-06-04 Thread Lionel Landwerlin
Here we introduce a mechanism by which the execbuf part of the i915 driver will be able to request that a batch buffer containing the programming for a particular OA config be created. We'll execute these OA configuration buffers right before executing a set of userspace commands so that a

[Intel-gfx] [PATCH v3 7/7] drm/i915: add support for perf configuration queries

2019-06-04 Thread Lionel Landwerlin
Listing configurations at the moment is supported only through sysfs. This might cause issues for applications wanting to list configurations from a container where sysfs isn't available. This change adds a way to query the number of configurations and their content through the i915 query uAPI.

[Intel-gfx] [PATCH v3 5/7] drm/i915: add a new perf configuration execbuf parameter

2019-06-04 Thread Lionel Landwerlin
We want the ability to dispatch a set of command buffer to the hardware, each with a different OA configuration. To achieve this, we reuse a couple of fields from the execbuf2 struct (I CAN HAZ execbuf3?) to notify what OA configuration should be used for a batch buffer. This requires the process

[Intel-gfx] [PATCH v3 6/7] drm/i915/perf: allow holding preemption on filtered ctx

2019-06-04 Thread Lionel Landwerlin
We would like to make use of perf in Vulkan. The Vulkan API is much lower level than OpenGL, with applications directly exposed to the concept of command buffers (pretty much equivalent to our batch buffers). In Vulkan, queries are always limited in scope to a command buffer. In OpenGL, the lack

[Intel-gfx] [PATCH v3 0/7] drm/i915: Vulkan performance query support

2019-06-04 Thread Lionel Landwerlin
Hi all, This is a pretty big update following v2. The first big change is to drop the HW arbitration usage in favor of a software mechanism using a special priority in the scheduler. The second is a rework of the uAPI. Since we have a couple of execbuf uAPI changes for this series

[Intel-gfx] [PATCH v3 1/7] drm/i915/perf: introduce a versioning of the i915-perf uapi

2019-06-04 Thread Lionel Landwerlin
Reporting this version will help application figure out what level of the support the running kernel provides. Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/i915_drv.c | 3 +++ include/uapi/drm/i915_drm.h | 21 + 2 files changed, 24 insertions(+) diff --git

[Intel-gfx] [PATCH v3 4/7] drm/i915: add syncobj timeline support

2019-06-04 Thread Lionel Landwerlin
Introduces a new parameters to execbuf so that we can specify syncobj handles as well as timeline points. Signed-off-by: Lionel Landwerlin --- .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 270 ++ drivers/gpu/drm/i915/i915_drv.c | 4 +-

[Intel-gfx] [PATCH v3 3/7] drm/i915: introduce a mechanism to extend execbuf2

2019-06-04 Thread Lionel Landwerlin
We're planning to use this for a couple of new feature where we need to provide additional parameters to execbuf. Signed-off-by: Lionel Landwerlin --- .../gpu/drm/i915/gem/i915_gem_execbuffer.c| 49 ++- include/uapi/drm/i915_drm.h | 44 +++-- 2

Re: [Intel-gfx] [PATCH] drm/i915/dp: Correctly advertise HBR3 for GEN11+

2019-06-04 Thread Ville Syrjälä
On Tue, Jun 04, 2019 at 03:51:58PM +0300, Ville Syrjälä wrote: > On Mon, Jun 03, 2019 at 02:49:40PM -0700, matthew.s.atw...@intel.com wrote: > > From: Matt Atwood > > > > intel_dp_set_source_rates() calls intel_dp_is_edp(), which is unsafe to > > use before encoder_type is set. This caused

[Intel-gfx] [PATCH v3] dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc

2019-06-04 Thread Chris Wilson
If we have to drop the seqcount & rcu lock to perform a krealloc, we have to restart the loop. In doing so, be careful not to lose track of the already acquired exclusive fence. Fixes: fedf54132d24 ("dma-buf: Restart reservation_object_get_fences_rcu() after writes") #v4.10 Signed-off-by: Chris

Re: [Intel-gfx] [PATCH] drm/i915/dp: Correctly advertise HBR3 for GEN11+

2019-06-04 Thread Ville Syrjälä
On Mon, Jun 03, 2019 at 02:49:40PM -0700, matthew.s.atw...@intel.com wrote: > From: Matt Atwood > > intel_dp_set_source_rates() calls intel_dp_is_edp(), which is unsafe to > use before encoder_type is set. This caused GEN11+ to incorrectly strip > HBR3 from source rates. Move

[Intel-gfx] [PATCH v2] dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc

2019-06-04 Thread Chris Wilson
If we have to drop the seqcount & rcu lock to perform a krealloc, we have to restart the loop. In doing so, be careful not to lose track of the already acquired exclusive fence. Fixes: fedf54132d24 ("dma-buf: Restart reservation_object_get_fences_rcu() after writes") #v4.10 Signed-off-by: Chris

Re: [Intel-gfx] [PATCH] dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc

2019-06-04 Thread Koenig, Christian
Am 04.06.19 um 14:39 schrieb Chris Wilson: > If we have to drop the seqcount & rcu lock to perform a krealloc, we > have to restart the loop. In doing so, be careful not to lose track of > the already acquired exclusive fence. > > Fixes: fedf54132d24 ("dma-buf: Restart

Re: [Intel-gfx] [PATCH 02/15] drm: Flush output polling on shutdown

2019-06-04 Thread Imre Deak
On Mon, Jun 03, 2019 at 02:58:57PM +0100, Chris Wilson wrote: > We need to mark the output polling as disabled to prevent concurrent > irqs from queuing new work as shutdown the probe -- causing that work to > execute after we have freed the structs: > > <4> [341.846490]

[Intel-gfx] [PATCH] dma-buf: Discard old fence_excl on retrying get_fences_rcu for realloc

2019-06-04 Thread Chris Wilson
If we have to drop the seqcount & rcu lock to perform a krealloc, we have to restart the loop. In doing so, be careful not to lose track of the already acquired exclusive fence. Fixes: fedf54132d24 ("dma-buf: Restart reservation_object_get_fences_rcu() after writes") #v4.10 Signed-off-by: Chris

[Intel-gfx] [CI 3/3] drm/i915: Use unchecked uncore writes to flush the GTT

2019-06-04 Thread Chris Wilson
As the GTT is outside of the powerwell, we can simplify flushing the GGTT writes by using an unchecked mmio write and post. v2: s/unc/uncore/ Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen --- drivers/gpu/drm/i915/i915_gem_gtt.c | 20 1 file changed, 12

[Intel-gfx] [CI 2/3] drm/i915: Use unchecked writes for setting up the fences

2019-06-04 Thread Chris Wilson
As the fence registers are not part of the engine powerwells, we do not need to fiddle with forcewake in order to update a fence. Avoid using the heavyweight debug checking normal mmio writes as the checking dominates the selftest runtime and is superfluous! In the process, retire the

[Intel-gfx] [CI 1/3] drm/i915/selftests: Flush partial-tiling object once

2019-06-04 Thread Chris Wilson
We only need to flush the object once prior to starting the partial tiling test as inside the test we explicitly maintain coherency. Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen --- .../drm/i915/gem/selftests/i915_gem_mman.c| 21 --- 1 file changed, 9

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Use unchecked unccore writes to flush the GTT

2019-06-04 Thread Joonas Lahtinen
Quoting Chris Wilson (2019-05-31 19:11:30) > As the GTT is outside of the powerwell, we can simplify flushing the > GGTT writes by using an unchecked mmio write and post. > > Signed-off-by: Chris Wilson Ditto for s/unc/uncore/ Reviewed-by: Joonas Lahtinen Regards, Joonas

Re: [Intel-gfx] [PATCH 2/3] drm/i915: Use unchecked writes for setting up the fences

2019-06-04 Thread Joonas Lahtinen
Quoting Chris Wilson (2019-05-31 19:11:29) > As the fence registers are not part of the engine powerwells, we do not > need to fiddle with forcewake in order to update a fence. Avoid using > the heavyweight debug checking normal mmio writes as the checking > dominates the selftest runtime and is

Re: [Intel-gfx] [PATCH 1/3] drm/i915/selftests: Flush partial-tiling object once

2019-06-04 Thread Joonas Lahtinen
Quoting Chris Wilson (2019-05-31 19:11:28) > We only need to flush the object once prior to starting the partial > tiling test as inside the test we explicitly maintain coherency. > > Signed-off-by: Chris Wilson Checks out. Reviewed-by: Joonas Lahtinen Regards, Joonas

Re: [Intel-gfx] [PATCH] drm/i915/gtt: Replace struct_mutex serialisation for allocation

2019-06-04 Thread Chris Wilson
Quoting Joonas Lahtinen (2019-06-04 12:37:03) > Quoting Chris Wilson (2019-06-03 20:11:30) > > Instead of relying on the caller holding struct_mutex across the > > allocation, push the allocation under a tree of spinlocks stored inside > > the page tables. Not only should this allow us to avoid

  1   2   >