Re: [Intel-gfx] [PATCH] drm/i915/ddi: Fix default eDP detection on port A

2019-03-07 Thread Jani Nikula
The subject should probably have "drm/i915/bios" or "drm/i915/vbt". On Wed, 06 Mar 2019, Thomas Preston wrote: > We rely on VBT DDI port info for eDP detection on GEN9 platforms and > above. This breaks GEN9 platforms which don't have VBT because port A > eDP now defaults to false. Fix this by d

Re: [Intel-gfx] [PATCH 02/43] drm/i915: Force GPU idle on suspend

2019-03-07 Thread Tvrtko Ursulin
On 06/03/2019 14:24, Chris Wilson wrote: To facilitate the next patch to allow preemptible kernels not to incur the wrath of hangcheck, we need to ensure that we can still suspend and shutdown. That is we will not be able to rely on hangcheck to terminate a blocking kernel and instead must manua

[Intel-gfx] [PULL] topic/hdr-formats

2019-03-07 Thread Maarten Lankhorst
Hi Sean and Joonas, Here's a pull request for HDR format enabling in i915. Can this be pulled to drm-misc-next and dinq? Cheers, Maarten topic/hdr-formats-2019-03-07: Add support for Y21x and Y41x to drm core and i915, and P01x support to i915. The following changes since commit 4b057e73f28f1df

Re: [Intel-gfx] [PATCH 2/3] drm/i915/bios: parse dsi devices in parse_ddi_ports()

2019-03-07 Thread Jani Nikula
On Wed, 06 Mar 2019, Ville Syrjälä wrote: > On Wed, Mar 06, 2019 at 05:34:15PM +0200, Jani Nikula wrote: >> For the time being this is only for completeness and better debug >> logging of DSI ports. >> >> Signed-off-by: Jani Nikula >> --- >> drivers/gpu/drm/i915/i915_drv.h | 1 + >> drivers/

Re: [Intel-gfx] [PATCH] drm/i915/ddi: Fix default eDP detection on port A

2019-03-07 Thread Thomas Preston
Hi, Thanks for looking at this. On 07/03/2019 08:18, Jani Nikula wrote: The subject should probably have "drm/i915/bios" or "drm/i915/vbt". Noted On Wed, 06 Mar 2019, Thomas Preston wrote: We rely on VBT DDI port info for eDP detection on GEN9 platforms and above. This breaks GEN9 platfo

Re: [Intel-gfx] [PATCH] drm/i915/ddi: Fix default eDP detection on port A

2019-03-07 Thread Jani Nikula
On Thu, 07 Mar 2019, Thomas Preston wrote: > Hi, > Thanks for looking at this. > > On 07/03/2019 08:18, Jani Nikula wrote: >> >> The subject should probably have "drm/i915/bios" or "drm/i915/vbt". >> > > Noted > >> On Wed, 06 Mar 2019, Thomas Preston wrote: >>> We rely on VBT DDI port info for

[Intel-gfx] [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling

2019-03-07 Thread Imre Deak
Pretend that we have only 1 DBuf slice and that 1 slice is always enabled, until we have a proper way for on-demand toggling of the second slice. Currently we'll try to incorrectly enable DBuf even when all pipes are disabled and we are already runtime suspended (as the computed number of DBuf sli

[Intel-gfx] [PATCH 2/2] drm/i915: Force GPU idle on suspend

2019-03-07 Thread Chris Wilson
To facilitate the next patch to allow preemptible kernels not to incur the wrath of hangcheck, we need to ensure that we can still suspend and shutdown. That is we will not be able to rely on hangcheck to terminate a blocking kernel and instead must manually do so ourselves. The advantage is that w

[Intel-gfx] [PATCH 1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro

2019-03-07 Thread Chris Wilson
Currently we use HZ/5 for detecting a dead gpu on startup, and we will wish to reuse this value for detecting a dead gpu on suspend, so convert it into a macro for later convenience. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_gem.c | 4 +++- drivers/gpu/drm/i91

Re: [Intel-gfx] [PATCH] drm/i915/ddi: Fix default eDP detection on port A

2019-03-07 Thread Thomas Preston
On 07/03/2019 10:34, Jani Nikula wrote: On Wed, 06 Mar 2019, Thomas Preston wrote: We rely on VBT DDI port info for eDP detection on GEN9 platforms and above. This breaks GEN9 platforms which don't have VBT because port A eDP now defaults to false. Fix this by defaulting to true when VBT is mis

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Force GPU idle on suspend

2019-03-07 Thread Chris Wilson
Quoting Chris Wilson (2019-03-07 10:45:30) > To facilitate the next patch to allow preemptible kernels not to incur > the wrath of hangcheck, we need to ensure that we can still suspend and > shutdown. That is we will not be able to rely on hangcheck to terminate > a blocking kernel and instead mus

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro

2019-03-07 Thread Tvrtko Ursulin
On 07/03/2019 10:45, Chris Wilson wrote: Currently we use HZ/5 for detecting a dead gpu on startup, and we will wish to reuse this value for detecting a dead gpu on suspend, so convert it into a macro for later convenience. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro URL : https://patchwork.freedesktop.org/series/57690/ State : failure == Summary == CI Bug Log - changes from CI_DRM_5713 -> Patchwork_12402 ==

Re: [Intel-gfx] [PATCH] drm/i915/ddi: Fix default eDP detection on port A

2019-03-07 Thread Jani Nikula
On Thu, 07 Mar 2019, Thomas Preston wrote: > Would you like me to resubmit with the suggested changes? Nah, we can tweak the commit message while applying. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center ___ Intel-gfx mailing list Intel-g

Re: [Intel-gfx] [PATCH 33/43] drm/i915: Move phys objects to its own file

2019-03-07 Thread Matthew Auld
On 06/03/2019 14:25, Chris Wilson wrote: Continuing the decluttering of i915_gem.c Signed-off-by: Chris Wilson Reviewed-by: Matthew Auld ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel

Re: [Intel-gfx] [PATCH 03/43] drm/i915/selftests: Improve switch-to-kernel-context checking

2019-03-07 Thread Tvrtko Ursulin
On 06/03/2019 14:24, Chris Wilson wrote: We can reduce the switch-to-kernel-context selftest to operate as a loop and so trivially test another state transition (that of idle->busy). Signed-off-by: Chris Wilson --- .../gpu/drm/i915/selftests/i915_gem_context.c | 80 --- 1 fi

Re: [Intel-gfx] [PATCH 34/43] drm/i915: Move mmap and friends to its own file

2019-03-07 Thread Matthew Auld
On 06/03/2019 14:25, Chris Wilson wrote: Continuing the decluttering of i915_gem.c Signed-off-by: Chris Wilson Reviewed-by: Matthew Auld ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel

Re: [Intel-gfx] [PATCH 35/43] drm/i915: Move GEM domain management to its own file

2019-03-07 Thread Matthew Auld
On 06/03/2019 14:25, Chris Wilson wrote: Continuing the decluttering of i915_gem.c Signed-off-by: Chris Wilson Reviewed-by: Matthew Auld ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-

Re: [Intel-gfx] [PATCH 04/43] drm/i915: Do a synchronous switch-to-kernel-context on idling

2019-03-07 Thread Tvrtko Ursulin
On 06/03/2019 14:24, Chris Wilson wrote: When the system idles, we switch to the kernel context as a defensive measure (no users are harmed if the kernel context is lost). Currently, we issue a switch to kernel context and then come back later to see if the kernel context is still current and th

Re: [Intel-gfx] [PATCH 03/43] drm/i915/selftests: Improve switch-to-kernel-context checking

2019-03-07 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-03-07 12:40:43) > > On 06/03/2019 14:24, Chris Wilson wrote: > > We can reduce the switch-to-kernel-context selftest to operate as a loop > > and so trivially test another state transition (that of idle->busy). > > > > Signed-off-by: Chris Wilson > > --- > > - er

Re: [Intel-gfx] [PATCH 05/43] drm/i915: Refactor common code to load initial power context

2019-03-07 Thread Tvrtko Ursulin
On 06/03/2019 14:24, Chris Wilson wrote: We load a context (the kernel context) on both module load and resume in order to initialise some logical state onto the GPU. We can use the same routine for both operations, which will become more useful as we refactor rc6/rps enabling. Signed-off-by: C

Re: [Intel-gfx] [PATCH 03/43] drm/i915/selftests: Improve switch-to-kernel-context checking

2019-03-07 Thread Tvrtko Ursulin
On 07/03/2019 13:17, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-03-07 12:40:43) On 06/03/2019 14:24, Chris Wilson wrote: We can reduce the switch-to-kernel-context selftest to operate as a loop and so trivially test another state transition (that of idle->busy). Signed-off-by: Chris Wi

Re: [Intel-gfx] [PATCH 04/43] drm/i915: Do a synchronous switch-to-kernel-context on idling

2019-03-07 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-03-07 13:07:18) > > On 06/03/2019 14:24, Chris Wilson wrote: > > +static bool switch_to_kernel_context_sync(struct drm_i915_private *i915) > > +{ > > + if (i915_gem_switch_to_kernel_context(i915)) > > + return false; > > Is it worth still trying to idl

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro URL : https://patchwork.freedesktop.org/series/57690/ State : failure == Summary == CI Bug Log - changes from CI_DRM_5713 -> Patchwork_12402 ==

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/ddi: Fix default eDP detection on port A (rev2)

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/ddi: Fix default eDP detection on port A (rev2) URL : https://patchwork.freedesktop.org/series/57663/ State : success == Summary == CI Bug Log - changes from CI_DRM_5713 -> Patchwork_12403 Summary -

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/icl: Prevent incorrect DBuf enabling (rev2) URL : https://patchwork.freedesktop.org/series/57687/ State : failure == Summary == CI Bug Log - changes from CI_DRM_5714 -> Patchwork_12404 Summary ---

Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/icl: Prevent incorrect DBuf enabling (rev2)

2019-03-07 Thread Imre Deak
On Thu, Mar 07, 2019 at 03:46:23PM +, Patchwork wrote: > == Series Details == > > Series: drm/i915/icl: Prevent incorrect DBuf enabling (rev2) > URL : https://patchwork.freedesktop.org/series/57687/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_5714 -> Patchwork_

Re: [Intel-gfx] [PATCH] drm/i915/ddi: Fix default eDP detection on port A

2019-03-07 Thread Thomas Preston
On 07/03/2019 10:34, Jani Nikula wrote: There are dangers with default VBTs too. They might contain incorrect information about the specific board you have. You'll also have to set up the opregion, not just VBT. I'm afraid I can't help you there. You already know where to look to see how the ker

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/ddi: Fix default eDP detection on port A (rev3)

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/ddi: Fix default eDP detection on port A (rev3) URL : https://patchwork.freedesktop.org/series/57663/ State : failure == Summary == Applying: drm/i915/ddi: Fix default eDP detection on port A error: patch failed: drivers/gpu/drm/i915/intel_opregion.c:971 e

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro (rev2)

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro (rev2) URL : https://patchwork.freedesktop.org/series/57690/ State : success == Summary == CI Bug Log - changes from CI_DRM_5714 -> Patchwork_12405 ===

[Intel-gfx] [PATCH i-g-t] igt: Add gem_ctx_engines

2019-03-07 Thread Chris Wilson
To exercise the new I915_CONTEXT_PARAM_ENGINES and interactions with gem_execbuf(). Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: Andi Shyti --- tests/Makefile.sources | 1 + tests/i915/gem_ctx_engines.c | 277 +++ tests/meson.build| 1

Re: [Intel-gfx] [PATCH 04/43] drm/i915: Do a synchronous switch-to-kernel-context on idling

2019-03-07 Thread Tvrtko Ursulin
On 07/03/2019 13:29, Chris Wilson wrote: Quoting Tvrtko Ursulin (2019-03-07 13:07:18) On 06/03/2019 14:24, Chris Wilson wrote: +static bool switch_to_kernel_context_sync(struct drm_i915_private *i915) +{ + if (i915_gem_switch_to_kernel_context(i915)) + return false; Is it wo

Re: [Intel-gfx] [PULL] topic/hdr-formats

2019-03-07 Thread Adam Jackson
On Thu, 2019-03-07 at 10:48 +0100, Maarten Lankhorst wrote: > Hi Sean and Joonas, > > Here's a pull request for HDR format enabling in i915. Can this be pulled to > drm-misc-next and dinq? Could you also add Kevin Strasser's patch for FP16 formats? For that matter I'd like to see FP32 added too,

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/ddi: Fix default eDP detection on port A (rev2)

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/ddi: Fix default eDP detection on port A (rev2) URL : https://patchwork.freedesktop.org/series/57663/ State : success == Summary == CI Bug Log - changes from CI_DRM_5713_full -> Patchwork_12403_full Sum

Re: [Intel-gfx] [PATCH 06/43] drm/i915: Reduce presumption of request ordering for barriers

2019-03-07 Thread Tvrtko Ursulin
On 06/03/2019 14:24, Chris Wilson wrote: Currently we assume that we know the order in which requests run and so can determine if we need to reissue a switch-to-kernel-context prior to idling. That assumption does not hold for the future, so instead of tracking which barriers have been used, sim

Re: [Intel-gfx] [PATCH 2/2] drm/i915/cml: Introduce Comet Lake PCH

2019-03-07 Thread Rodrigo Vivi
On Wed, Mar 06, 2019 at 06:20:08PM -0800, Dhinakaran Pandiyan wrote: > On Wed, 2019-03-06 at 10:07 -0800, Rodrigo Vivi wrote: > > On Tue, Mar 05, 2019 at 01:46:56PM -0800, Anusha wrote: > > > From: Anusha Srivatsa > > > > > > Comet Lake PCH is based off of Cannon Point(CNP). > > > Add PCI ID for

Re: [Intel-gfx] [PATCH 07/43] drm/i915: Remove has-kernel-context

2019-03-07 Thread Tvrtko Ursulin
On 06/03/2019 14:24, Chris Wilson wrote: We can no longer assume execution ordering, and in particular we cannot assume which context will execute last. One side-effect of this is that we cannot determine if the kernel-context is resident on the GPU, so remove the routines that claimed to do so.

[Intel-gfx] [PATCH i-g-t 0/5] DC states igt tests patch series v7

2019-03-07 Thread Anshuman Gupta
This patch series adds new tests to validate Display C states. DC states like DC5 and DC6 are validated during PSR entry/exit and during DPMS on/off cycle. Sending new revision of patch series after addressing review comments and other relevant changes. 1. Changing the name of test from pm_dc to

[Intel-gfx] [PATCH i-g-t 3/5] tests/pm_dc: Added test for DC6 during PSR

2019-03-07 Thread Anshuman Gupta
From: Jyoti Yadav This patch add subtest to check DC6 entry on PSR for the supported platforms. v2: Rename the subtest with more meaningful name. v3: Rebased. v4: Rebased, to fix compilation error in psr_enable(). Addressed review comment by fixing typo in comment description of DC6 PSR

[Intel-gfx] [PATCH i-g-t 2/5] tests/pm_dc: Added new test to verify Display C States

2019-03-07 Thread Anshuman Gupta
From: Jyoti Yadav Currently this test validates DC5 upon PSR entry for supported platforms. Added new file for compilation inside Makefile and Meson. v2: Used the debugfs entry for DC counters instead of Registers. Used shorter names for variables. Introduced timeout to read DC counters.

[Intel-gfx] [PATCH i-g-t 4/5] tests/pm_dc: Added test for DC5 during DPMS

2019-03-07 Thread Anshuman Gupta
From: Jyoti Yadav Added new subtest for DC5 entry during DPMS on/off cycle. During DPMS on/off cycle DC5 counter is incremented. v2: Rename the subtest with meaningful name. v3: Rebased. v4: Addressed review comments by removing leftover code cleanup(). v5: Addressed the review comment by re

[Intel-gfx] [PATCH i-g-t 1/5] lib/igt_pm: igt lib helper routines to support DC5/6 tests

2019-03-07 Thread Anshuman Gupta
From: Jyoti Yadav It will be used by new test pm_dc.c which will validate Display C States. So moving the same to igt_pm library. v2: Simplify the comment section. v3: Remove . from the subject line. v4: Rebased, resolve conflicts in pm_rpm.c Included patch set version change log. v5: Listin

[Intel-gfx] [PATCH i-g-t 5/5] tests/pm_dc: Added test for DC6 during DPMS

2019-03-07 Thread Anshuman Gupta
From: Jyoti Yadav Added new subtest for DC6 entry during DPMS on/off cycle. During DPMS on/off cycle DC6 counter is incremented. v2: Renamed the subtest name. v3: Rebased. v4: Addressed review comment by replacing igt_display_init() to igt_display_require(), changes got done in patch set 2.

Re: [Intel-gfx] [PULL] topic/hdr-formats

2019-03-07 Thread Sean Paul
On Thu, Mar 07, 2019 at 10:48:24AM +0100, Maarten Lankhorst wrote: > Hi Sean and Joonas, > > Here's a pull request for HDR format enabling in i915. Can this be pulled to > drm-misc-next and dinq? > > Cheers, > Maarten > > topic/hdr-formats-2019-03-07: Mentioned on IRC, but will do so here as w

Re: [Intel-gfx] [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling

2019-03-07 Thread Rodrigo Vivi
On Thu, Mar 07, 2019 at 12:32:35PM +0200, Imre Deak wrote: > Pretend that we have only 1 DBuf slice and that 1 slice is always > enabled, until we have a proper way for on-demand toggling of the second > slice. Currently we'll try to incorrectly enable DBuf even when all > pipes are disabled and w

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro (rev2)

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro (rev2) URL : https://patchwork.freedesktop.org/series/57690/ State : success == Summary == CI Bug Log - changes from CI_DRM_5714_full -> Patchwork_12405_full =

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Fix atomic state leak when resetting HDMI link

2019-03-07 Thread Lyude Paul
Reviewed-by: Lyude Paul Does this patch/any of the other patches in this series need pushing? On Fri, 2019-03-01 at 16:33 -0800, José Roberto de Souza wrote: > Atomic state needs to be put even if the commit was successful. > > Fixes: dba14b27dd3c ("drm/i915: Reinitialize sink scrambling/TMDS c

Re: [Intel-gfx] [PATCH 2/3] drm/i915/bios: parse dsi devices in parse_ddi_ports()

2019-03-07 Thread Ville Syrjälä
On Thu, Mar 07, 2019 at 12:18:15PM +0200, Jani Nikula wrote: > On Wed, 06 Mar 2019, Ville Syrjälä wrote: > > On Wed, Mar 06, 2019 at 05:34:15PM +0200, Jani Nikula wrote: > >> For the time being this is only for completeness and better debug > >> logging of DSI ports. > >> > >> Signed-off-by: Jani

[Intel-gfx] [PATCH 1/1] drm/i915/guc: Preparing for GuC reset along with engine reset

2019-03-07 Thread Sujaritha Sundaresan
Adding the call to prepare for guc reset along with engine reset. intel_uc_reset_prepare() calls to disable guc communication and to sanitize. Cc: Daniele Ceraolo Spurio Cc: Michal Wajdeczko Signed-off-by: Sujaritha Sundaresan --- drivers/gpu/drm/i915/i915_reset.c | 2 ++ 1 file changed, 2 ins

[Intel-gfx] [RFC PATCH 2/2] drm/i915: Account for platform without mappable aperture when returning size

2019-03-07 Thread Antonio Argenziano
Some devices will not expose a mappable aperture anymore so we need to return an appropriate value in that case. Signed-off-by: Antonio Argenziano Cc: Matthew Auld Cc: Daniele Ceraolo Spurio Cc: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 3 ++- 1 file changed, 2 insertions(+), 1 dele

[Intel-gfx] [RFC PATCH 1/2] drm/i915: Return mappable aperture size

2019-03-07 Thread Antonio Argenziano
Extend the API to return the mappable aperture size directly in the I915_GEM_GET_APERTURE IOCTL. Signed-off-by: Antonio Argenziano Cc: Matthew Auld Cc: Daniele Ceraolo Spurio Cc: Chris Wilson --- drivers/gpu/drm/i915/i915_gem.c | 2 ++ include/uapi/drm/i915_drm.h | 5 + 2 files change

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [RFC,1/2] drm/i915: Return mappable aperture size

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [RFC,1/2] drm/i915: Return mappable aperture size URL : https://patchwork.freedesktop.org/series/57705/ State : failure == Summary == CALLscripts/checksyscalls.sh DESCEND objtool CHK include/generated/compile.h CC [M] drivers/gp

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/1] drm/i915/guc: Preparing for GuC reset along with engine reset

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/1] drm/i915/guc: Preparing for GuC reset along with engine reset URL : https://patchwork.freedesktop.org/series/57704/ State : success == Summary == CI Bug Log - changes from CI_DRM_5715 -> Patchwork_12407 ==

Re: [Intel-gfx] [PATCH] drm/i915/icl: Prevent incorrect DBuf enabling

2019-03-07 Thread Imre Deak
On Thu, Mar 07, 2019 at 09:59:39AM -0800, Rodrigo Vivi wrote: > On Thu, Mar 07, 2019 at 12:32:35PM +0200, Imre Deak wrote: > > Pretend that we have only 1 DBuf slice and that 1 slice is always > > enabled, until we have a proper way for on-demand toggling of the second > > slice. Currently we'll t

Re: [Intel-gfx] [PATCH] drm/i915/icl: Remove alpha support protection

2019-03-07 Thread Souza, Jose
On Tue, 2019-03-05 at 15:21 -0800, Rodrigo Vivi wrote: > On Tue, Mar 05, 2019 at 02:11:53PM -0800, José Roberto de Souza > wrote: > > Now with the watermarks fixes merged, Icelake is stable enough to > > have the alpha support protection flag removed. > > > > We have a few ICL machines in our CI a

Re: [Intel-gfx] [PATCH v5 5/9] drm/i915/crc: Make IPS workaround generic

2019-03-07 Thread Dhinakaran Pandiyan
On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > Other features like PSR2 also needs to be disabled while getting CRC > so lets rename ips_force_disable to crc_enabled, drop all this checks > for pipe A and HSW and BDW and make it generic and > hsw_compute_ips_config() will take ca

Re: [Intel-gfx] [PATCH v5 4/9] drm/i915/psr: Drop test for EDP in CRTC when forcing commit

2019-03-07 Thread Dhinakaran Pandiyan
On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > If has_psr is set it means that CRTC has a EDP panel attached so it > can be dropped, also has_psr is better than check for EDP output > alone as it will avoid set mode_changed when PSR is not supported in > panel or with current mod

Re: [Intel-gfx] [RFC v4 1/6] drm/i915/dp: Add a config function for YCBCR420 outputs

2019-03-07 Thread Mun, Gwan-gyeong
On Wed, 2019-03-06 at 22:52 +0200, Ville Syrjälä wrote: > On Wed, Mar 06, 2019 at 09:30:57PM +0200, Gwan-gyeong Mun wrote: > > This patch checks a support of YCBCR420 outputs on an encoder > > level. > > If the input mode is YCBCR420-only mode then it prepares DP as an > > YCBCR420 > > output, else

Re: [Intel-gfx] [RFC v4 5/6] drm/i915/dp: Change a link bandwidth computation for DP YCbCr 4:2:0 output

2019-03-07 Thread Mun, Gwan-gyeong
On Wed, 2019-03-06 at 23:04 +0200, Ville Syrjälä wrote: > On Wed, Mar 06, 2019 at 09:31:01PM +0200, Gwan-gyeong Mun wrote: > > All of the link bandwidth and Data M/N calculations were assumed a > > bpp as > > RGB format. But When we are using YCbCr 4:2:0 output format on DP, > > we should change bp

[Intel-gfx] [RFC v5 1/6] drm/i915/dp: Add a config function for YCBCR420 outputs

2019-03-07 Thread Gwan-gyeong Mun
This patch checks a support of YCBCR420 outputs on an encoder level. If the input mode is YCBCR420-only mode then it prepares DP as an YCBCR420 output, else it continues with RGB output mode. It set output_format to INTEL_OUTPUT_FORMAT_YCBCR420 in order to using a pipe scaler as RGB to YCbCr 4:4:4.

[Intel-gfx] [RFC v5 4/6] drm/i915/dp: Add a support of YCBCR 4:2:0 to DP MSA

2019-03-07 Thread Gwan-gyeong Mun
When YCBCR 4:2:0 outputs is used for DP, we should program YCBCR 4:2:0 to MSA and VSC SDP. As per DP 1.4a spec section 2.2.4.3 [MSA Field for Indication of Color Encoding Format and Content Color Gamut] while sending YCBCR 420 signals we should program MSA MISC1 fields which indicate VSC SDP for t

[Intel-gfx] [RFC v5 2/6] drm: Add a VSC structure for handling Pixel Encoding/Colorimetry Formats

2019-03-07 Thread Gwan-gyeong Mun
SDP VSC Header and Data Block follow DP 1.4a spec, section 2.2.5.7.5, chapter "VSC SDP Payload for Pixel Encoding/Colorimetry Format". Signed-off-by: Gwan-gyeong Mun Reviewed-by: Maarten Lankhorst --- include/drm/drm_dp_helper.h | 17 + 1 file changed, 17 insertions(+) diff --g

[Intel-gfx] [RFC v5 0/6] drm/i915/dp: Preliminary support for DP YCbCr4:2:0 outputs

2019-03-07 Thread Gwan-gyeong Mun
On Gen 11 platform, to enable resolutions like 5K@120 (or higher) we need to use DSC (DP 1.4) or YCbCr4:2:0 (DP 1.3 or 1.4) on DP. In order to support YCbCr4:2:0 on DP we need to program YCBCR 4:2:0 to MSA and VSC SDP. This patches are RFC patches that add a VSC structure for handling Pixel Encodi

[Intel-gfx] [RFC v5 5/6] drm/i915/dp: Change a link bandwidth computation for DP YCbCr 4:2:0 output

2019-03-07 Thread Gwan-gyeong Mun
All of the link bandwidth and Data M/N calculations were assumed a bpp as RGB format. But When we are using YCbCr 4:2:0 output format on DP, we should change bpp calculations as YCbCr 4:2:0 format. The pipe_bpp value was assumed RGB format, therefore, it was multiplied with 3. But YCbCr 4:2:0 requi

[Intel-gfx] [RFC v5 6/6] drm/i915/dp: Support DP ports YUV 4:2:0 output to GEN11

2019-03-07 Thread Gwan-gyeong Mun
Bspec describes that GEN10 only supports capability of YUV 4:2:0 output to HDMI port and GEN11 supports capability of YUV 4:2:0 output to both DP and HDMI ports. v2: Minor style fix. Signed-off-by: Gwan-gyeong Mun Reviewed-by: Maarten Lankhorst --- drivers/gpu/drm/i915/intel_dp.c | 3 +++ 1 fi

[Intel-gfx] [RFC v5 3/6] drm/i915/dp: Program VSC Header and DB for Pixel Encoding/Colorimetry Format

2019-03-07 Thread Gwan-gyeong Mun
Function intel_pixel_encoding_setup_vsc handles vsc header and data block setup for pixel encoding / colorimetry format. Setup VSC header and data block in function intel_pixel_encoding_setup_vsc for pixel encoding / colorimetry format as per dp 1.4a spec, section 2.2.5.7.1, table 2-119: VSC SDP H

Re: [Intel-gfx] [PATCH v5 6/9] drm/i915: Disable PSR2 while getting pipe CRC

2019-03-07 Thread Dhinakaran Pandiyan
On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > When PSR2 is active aka after the number of frames programmed in > PSR2_CTL 'Frames Before SU Entry' hardware stops to generate CRC > interruptions causing IGT tests to fail due timeout. s/interruptions/interrupts I suppose there ar

[Intel-gfx] [PATCH 2/2] drm/i915: Add new ICL PCI ID

2019-03-07 Thread José Roberto de Souza
A new PCI ID for ICL was added to BSpec, lets keep it in tight sync as ICL is not protected by the alpha support flag anymore. BSepc: 21141 Cc: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- include/drm/i915_pciids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/i915_pc

[Intel-gfx] [PATCH 1/2] drm/i915: Sort ICL PCI IDs

2019-03-07 Thread José Roberto de Souza
Lets keep it sorted to make easy to spot missing PCI IDs. Cc: Rodrigo Vivi Signed-off-by: José Roberto de Souza --- include/drm/i915_pciids.h | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/drm/i915_pciids.h b/include/drm/i915_pciids.h index d2fad7b0

Re: [Intel-gfx] [PATCH v5 7/9] drm/i915: Drop redundant checks to update PSR state

2019-03-07 Thread Dhinakaran Pandiyan
On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > All of this checks are redudant and can be removed as the if bellow below* > already takes care when there is no changes in the state. > > Cc: Dhinakaran Pandiyan > Reviewed-by: Rodrigo Vivi > Signed-off-by: José Roberto de Souza

[Intel-gfx] [CI] drm/i915/selftests: Improve switch-to-kernel-context checking

2019-03-07 Thread Chris Wilson
We can reduce the switch-to-kernel-context selftest to operate as a loop and so trivially test another state transition (that of idle->busy). Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- .../gpu/drm/i915/selftests/i915_gem_context.c | 80 --- 1 file changed, 35 in

Re: [Intel-gfx] [PATCH v5 8/9] drm/i915: Force PSR exit when getting pipe CRC

2019-03-07 Thread Dhinakaran Pandiyan
On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > If PSR is active when pipe CRC is enabled the CRC calculations will > be inhibit by the transition to low power states that PSR brings. The MMIO write to enable CRCs should bring the hardware out from PSR, but I can imagine some init

Re: [Intel-gfx] [PATCH v5 9/9] drm/i915: Enable PSR2 by default

2019-03-07 Thread Dhinakaran Pandiyan
On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > The support for PSR2 was polished, IGT tests for PSR2 was added and > it was tested performing regular user workloads like browsing, > editing documents and compiling Linux, so it is time to enable it by > default and enjoy even more

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dp: Preliminary support for DP YCbCr4:2:0 outputs (rev5)

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/dp: Preliminary support for DP YCbCr4:2:0 outputs (rev5) URL : https://patchwork.freedesktop.org/series/56059/ State : success == Summary == CI Bug Log - changes from CI_DRM_5716 -> Patchwork_12409 Summ

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Sort ICL PCI IDs

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Sort ICL PCI IDs URL : https://patchwork.freedesktop.org/series/57707/ State : success == Summary == CI Bug Log - changes from CI_DRM_5716 -> Patchwork_12410 Summary ---

Re: [Intel-gfx] [PATCH v5 8/9] drm/i915: Force PSR exit when getting pipe CRC

2019-03-07 Thread Souza, Jose
On Thu, 2019-03-07 at 13:25 -0800, Dhinakaran Pandiyan wrote: > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > If PSR is active when pipe CRC is enabled the CRC calculations will > > be inhibit by the transition to low power states that PSR brings. > The MMIO write to enable CR

Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915: Account for platform without mappable aperture when returning size

2019-03-07 Thread Chris Wilson
Quoting Antonio Argenziano (2019-03-07 19:11:15) > Some devices will not expose a mappable aperture anymore so we need to > return an appropriate value in that case. > > Signed-off-by: Antonio Argenziano > > Cc: Matthew Auld > Cc: Daniele Ceraolo Spurio > Cc: Chris Wilson > --- > drivers/gpu

Re: [Intel-gfx] [PATCH v5 9/9] drm/i915: Enable PSR2 by default

2019-03-07 Thread Souza, Jose
On Thu, 2019-03-07 at 13:33 -0800, Dhinakaran Pandiyan wrote: > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > The support for PSR2 was polished, IGT tests for PSR2 was added and > > it was tested performing regular user workloads like browsing, > > editing documents and compil

Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915: Account for platform without mappable aperture when returning size

2019-03-07 Thread Antonio Argenziano
On 07/03/19 13:59, Chris Wilson wrote: Quoting Antonio Argenziano (2019-03-07 19:11:15) Some devices will not expose a mappable aperture anymore so we need to return an appropriate value in that case. Signed-off-by: Antonio Argenziano Cc: Matthew Auld Cc: Daniele Ceraolo Spurio Cc: Chris

Re: [Intel-gfx] [PATCH 04/43] drm/i915: Do a synchronous switch-to-kernel-context on idling

2019-03-07 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-03-07 17:06:58) > > On 07/03/2019 13:29, Chris Wilson wrote: > > Quoting Tvrtko Ursulin (2019-03-07 13:07:18) > >> > >> On 06/03/2019 14:24, Chris Wilson wrote: > >>> +static bool switch_to_kernel_context_sync(struct drm_i915_private *i915) > >>> +{ > >>> + if (i91

Re: [Intel-gfx] [PATCH 05/43] drm/i915: Refactor common code to load initial power context

2019-03-07 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-03-07 13:19:52) > > On 06/03/2019 14:24, Chris Wilson wrote: > > @@ -4720,19 +4729,10 @@ static int __intel_engines_record_defaults(struct > > drm_i915_private *i915) > > err_active: > > /* > >* If we have to abandon now, we expect the engines to be id

Re: [Intel-gfx] [PATCH v5 8/9] drm/i915: Force PSR exit when getting pipe CRC

2019-03-07 Thread Dhinakaran Pandiyan
On Thu, 2019-03-07 at 13:57 -0800, Souza, Jose wrote: > On Thu, 2019-03-07 at 13:25 -0800, Dhinakaran Pandiyan wrote: > > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > > If PSR is active when pipe CRC is enabled the CRC calculations > > > will > > > be inhibit by the transitio

Re: [Intel-gfx] [RFC PATCH 2/2] drm/i915: Account for platform without mappable aperture when returning size

2019-03-07 Thread Chris Wilson
Quoting Antonio Argenziano (2019-03-07 22:21:17) > > > On 07/03/19 13:59, Chris Wilson wrote: > > Quoting Antonio Argenziano (2019-03-07 19:11:15) > >> Some devices will not expose a mappable aperture anymore so we need to > >> return an appropriate value in that case. > >> > >> Signed-off-by: An

Re: [Intel-gfx] [PATCH v5 4/9] drm/i915/psr: Drop test for EDP in CRTC when forcing commit

2019-03-07 Thread Souza, Jose
On Thu, 2019-03-07 at 12:26 -0800, Dhinakaran Pandiyan wrote: > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > If has_psr is set it means that CRTC has a EDP panel attached so it > > can be dropped, also has_psr is better than check for EDP output > > alone as it will avoid set

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/1] drm/i915/guc: Preparing for GuC reset along with engine reset

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/1] drm/i915/guc: Preparing for GuC reset along with engine reset URL : https://patchwork.freedesktop.org/series/57704/ State : success == Summary == CI Bug Log - changes from CI_DRM_5715_full -> Patchwork_12407_full

Re: [Intel-gfx] [PATCH v5 4/9] drm/i915/psr: Drop test for EDP in CRTC when forcing commit

2019-03-07 Thread Pandiyan, Dhinakaran
On Thu, 2019-03-07 at 14:53 -0800, Souza, Jose wrote: > On Thu, 2019-03-07 at 12:26 -0800, Dhinakaran Pandiyan wrote: > > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > > If has_psr is set it means that CRTC has a EDP panel attached so > > > it > > > can be dropped, also has_ps

Re: [Intel-gfx] [PATCH v5 5/9] drm/i915/crc: Make IPS workaround generic

2019-03-07 Thread Souza, Jose
On Thu, 2019-03-07 at 12:18 -0800, Dhinakaran Pandiyan wrote: > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > Other features like PSR2 also needs to be disabled while getting > > CRC > > so lets rename ips_force_disable to crc_enabled, drop all this > > checks > > for pipe A a

Re: [Intel-gfx] [PATCH v5 6/9] drm/i915: Disable PSR2 while getting pipe CRC

2019-03-07 Thread Souza, Jose
On Thu, 2019-03-07 at 12:47 -0800, Dhinakaran Pandiyan wrote: > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > When PSR2 is active aka after the number of frames programmed in > > PSR2_CTL 'Frames Before SU Entry' hardware stops to generate CRC > > interruptions causing IGT tes

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/dp: Preliminary support for DP YCbCr4:2:0 outputs (rev5)

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/dp: Preliminary support for DP YCbCr4:2:0 outputs (rev5) URL : https://patchwork.freedesktop.org/series/56059/ State : success == Summary == CI Bug Log - changes from CI_DRM_5716_full -> Patchwork_12409_full

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/selftests: Improve switch-to-kernel-context checking

2019-03-07 Thread Patchwork
== Series Details == Series: drm/i915/selftests: Improve switch-to-kernel-context checking URL : https://patchwork.freedesktop.org/series/57708/ State : success == Summary == CI Bug Log - changes from CI_DRM_5717 -> Patchwork_12411 Summary

Re: [Intel-gfx] [PULL] gvt-fixes for 5.1-rc1

2019-03-07 Thread Rodrigo Vivi
On Thu, Mar 07, 2019 at 02:08:10PM +0800, Zhenyu Wang wrote: > > Hi, > > Here's gvt-fixes for 5.1-rc1. I'm kind of confused here. this should be -next-fixes right? $ dim apply-pull drm-intel-next-fixes Pulling https://github.com/intel/gvt-linux.git tags/gvt-fixes-2019-03-07 ... From https://gi

Re: [Intel-gfx] [PATCH v5 8/9] drm/i915: Force PSR exit when getting pipe CRC

2019-03-07 Thread Souza, Jose
On Thu, 2019-03-07 at 14:30 -0800, Dhinakaran Pandiyan wrote: > On Thu, 2019-03-07 at 13:57 -0800, Souza, Jose wrote: > > On Thu, 2019-03-07 at 13:25 -0800, Dhinakaran Pandiyan wrote: > > > On Tue, 2019-03-05 at 22:47 -0800, José Roberto de Souza wrote: > > > > If PSR is active when pipe CRC is ena

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915: Sort ICL PCI IDs

2019-03-07 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: Sort ICL PCI IDs URL : https://patchwork.freedesktop.org/series/57707/ State : success == Summary == CI Bug Log - changes from CI_DRM_5716_full -> Patchwork_12410_full Summar

[Intel-gfx] [PATCH v6 2/9] drm/i915/psr: Only lookup for enabled CRTCs when forcing a fastset

2019-03-07 Thread José Roberto de Souza
Forcing a specific CRTC to the eDP connector was causing the intel_psr_fastset_force() to mark mode_chaged in the wrong and disabled CRTC causing no update in the PSR state. Looks like our internal state track do not clear output_types and has_psr in the disabled CRTCs, not sure if this is the exp

[Intel-gfx] [PATCH v6 3/9] drm/i915: Compute and commit color features in fastsets

2019-03-07 Thread José Roberto de Souza
In any commit, intel_modeset_pipe_config() will initialilly clear and then recalculate most of the pipe states but it leave intel specific color features states in reset state. If after intel_pipe_config_compare() is detected that a fastset is possible it will mark update_pipe as true and unsed mo

[Intel-gfx] [PATCH v6 6/9] drm/i915: Disable PSR2 while getting pipe CRC

2019-03-07 Thread José Roberto de Souza
When PSR2 is active aka after the number of frames programmed in PSR2_CTL 'Frames Before SU Entry' hardware stops to generate CRC interrupts causing IGT tests to fail due timeout. This same behavior don't happen with PSR1, as soon as pipe CRC is enabled it blocks PSR1 activation so CRC calculation

[Intel-gfx] [PATCH v6 9/9] drm/i915: Enable PSR2 by default

2019-03-07 Thread José Roberto de Souza
The support for PSR2 was polished, IGT tests for PSR2 was added and it was tested performing regular user workloads like browsing, editing documents and compiling Linux, so it is time to enable it by default and enjoy even more power-savings. Cc: Rodrigo Vivi Reviewed-by: Dhinakaran Pandiyan Rev

[Intel-gfx] [PATCH v6 7/9] drm/i915: Drop redundant checks to update PSR state

2019-03-07 Thread José Roberto de Souza
All of this checks are redudant and can be removed as the if bellow already takes care when there is no changes in the state. Reviewed-by: Rodrigo Vivi Reviewed-by: Dhinakaran Pandiyan Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/intel_psr.c | 12 1 file changed,

[Intel-gfx] [PATCH v6 5/9] drm/i915/crc: Make IPS workaround generic

2019-03-07 Thread José Roberto de Souza
Other features like PSR2 also needs to be disabled while getting CRC so lets rename ips_force_disable to crc_enabled, drop all this checks for pipe A and HSW and BDW and make it generic and hsw_compute_ips_config() will take care of all the checks removed from here. v2: Renaming and parameter chan

[Intel-gfx] [PATCH v6 1/9] drm/i915/psr: Remove PSR2 FIXME

2019-03-07 Thread José Roberto de Souza
Now we are checking sink capabilities when probing PSR DPCD register and then dynamically checking in if new state is compatible with PSR in, so this FIXME can be dropped. Reviewed-by: Dhinakaran Pandiyan Cc: Dhinakaran Pandiyan Signed-off-by: José Roberto de Souza --- drivers/gpu/drm/i915/int

  1   2   >