[Intel-gfx] ✗ Fi.CI.BAT: failure for Parallel submission aka multi-bb execbuf (rev5)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev5) URL : https://patchwork.freedesktop.org/series/92789/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10681 -> Patchwork_21241 Summary ---

[Intel-gfx] ✗ Fi.CI.BUILD: failure for series starting with [v5,01/13] drm/ttm: stop calling tt_swapin in vm_access (rev2)

2021-10-04 Thread Patchwork
== Series Details == Series: series starting with [v5,01/13] drm/ttm: stop calling tt_swapin in vm_access (rev2) URL : https://patchwork.freedesktop.org/series/95093/ State : failure == Summary == Applying: drm/ttm: stop calling tt_swapin in vm_access Using index info to reconstruct a base

Re: [Intel-gfx] [PATCH v5 09/13] drm/i915/ttm: add tt shmem backend

2021-10-04 Thread Zeng, Oak
Hi Matthew/Thomas, See one question inline Regards, Oak -Original Message- From: Intel-gfx On Behalf Of Matthew Auld Sent: September 27, 2021 7:41 AM To: intel-gfx@lists.freedesktop.org Cc: dri-de...@lists.freedesktop.org; Thomas Hellström ; Christian König Subject: [Intel-gfx]

[Intel-gfx] ✗ Fi.CI.DOCS: warning for Parallel submission aka multi-bb execbuf (rev5)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev5) URL : https://patchwork.freedesktop.org/series/92789/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/gt/uc/intel_guc.h:166: warning: Function parameter or member

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Parallel submission aka multi-bb execbuf (rev5)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev5) URL : https://patchwork.freedesktop.org/series/92789/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Parallel submission aka multi-bb execbuf (rev5)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev5) URL : https://patchwork.freedesktop.org/series/92789/ State : warning == Summary == $ dim checkpatch origin/drm-tip fc9c9fb6630a drm/i915/guc: Move GuC guc_id allocation under submission state sub-struct

Re: [Intel-gfx] [v4] drm/i915/dsi: do not register gmbus if it was reserved for MIPI display

2021-10-04 Thread Lee, Shawn C
Hi all, could you please share your comments for the latest patch? Thanks! Best regards, Shawn > >Gmbus driver would setup all Intel i2c GMBuses. But DDC bus may configured as >gpio and reserved for MIPI driver to control panel power on/off sequence. > >Using i2c tool to communicate to

Re: [Intel-gfx] [Freedreno] [PATCH v3 03/14] drm/hdcp: Update property value on content type and user changes

2021-10-04 Thread abhinavk
On 2021-10-01 08:11, Sean Paul wrote: From: Sean Paul This patch updates the connector's property value in 2 cases which were previously missed: 1- Content type changes. The value should revert back to DESIRED from ENABLED in case the driver must re-authenticate the link due to the new

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Improve DP link training further (rev3)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915: Improve DP link training further (rev3) URL : https://patchwork.freedesktop.org/series/95405/ State : failure == Summary == Applying: drm/i915: Tweak the DP "max vswing reached?" condition Applying: drm/i915: Show LTTPR in the TPS debug print Applying:

[Intel-gfx] ✗ Fi.CI.BAT: failure for Parallel submission aka multi-bb execbuf (rev4)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev4) URL : https://patchwork.freedesktop.org/series/92789/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10681 -> Patchwork_21239 Summary ---

[Intel-gfx] ✗ Fi.CI.DOCS: warning for Parallel submission aka multi-bb execbuf (rev4)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev4) URL : https://patchwork.freedesktop.org/series/92789/ State : warning == Summary == $ make htmldocs 2>&1 > /dev/null | grep i915 ./drivers/gpu/drm/i915/gt/uc/intel_guc.h:166: warning: Function parameter or member

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Parallel submission aka multi-bb execbuf (rev4)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev4) URL : https://patchwork.freedesktop.org/series/92789/ State : warning == Summary == $ dim sparse --fast origin/drm-tip Sparse version: v0.6.2 Fast mode used, each commit won't be checked separately.

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Parallel submission aka multi-bb execbuf (rev4)

2021-10-04 Thread Patchwork
== Series Details == Series: Parallel submission aka multi-bb execbuf (rev4) URL : https://patchwork.freedesktop.org/series/92789/ State : warning == Summary == $ dim checkpatch origin/drm-tip e2a47a99bf9d drm/i915/guc: Move GuC guc_id allocation under submission state sub-struct

[Intel-gfx] [PATCH 22/26] drm/i915/guc: Handle errors in multi-lrc requests

2021-10-04 Thread Matthew Brost
If an error occurs in the front end when multi-lrc requests are getting generated we need to skip these in the backend but we still need to emit the breadcrumbs seqno. An issues arises because with multi-lrc breadcrumbs there is a handshake between the parent and children to make forward progress.

[Intel-gfx] [PATCH 25/26] drm/i915: Enable multi-bb execbuf

2021-10-04 Thread Matthew Brost
Enable multi-bb execbuf by enabling the set_parallel extension. Signed-off-by: Matthew Brost --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.c b/drivers/gpu/drm/i915/gem/i915_gem_context.c index

[Intel-gfx] [PATCH 26/26] drm/i915/execlists: Weak parallel submission support for execlists

2021-10-04 Thread Matthew Brost
A weak implementation of parallel submission (multi-bb execbuf IOCTL) for execlists. Doing as little as possible to support this interface for execlists - basically just passing submit fences between each request generated and virtual engines are not allowed. This is on par with what is there for

[Intel-gfx] [PATCH 20/26] drm/i915/guc: Implement no mid batch preemption for multi-lrc

2021-10-04 Thread Matthew Brost
For some users of multi-lrc, e.g. split frame, it isn't safe to preempt mid BB. To safely enable preemption at the BB boundary, a handshake between to parent and child is needed. This is implemented via custom emit_bb_start & emit_fini_breadcrumb functions and enabled via by default if a context

[Intel-gfx] [PATCH 19/26] drm/i915/guc: Add basic GuC multi-lrc selftest

2021-10-04 Thread Matthew Brost
Add very basic (single submission) multi-lrc selftest. Signed-off-by: Matthew Brost Reviewed-by: John Harrison --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 1 + .../drm/i915/gt/uc/selftest_guc_multi_lrc.c | 179 ++ .../drm/i915/selftests/i915_live_selftests.h | 1

[Intel-gfx] [PATCH 15/26] drm/i915/guc: Update debugfs for GuC multi-lrc

2021-10-04 Thread Matthew Brost
Display the workqueue status in debugfs for GuC contexts that are in parent-child relationship. v2: (John Harrison) - Output number children in debugfs Signed-off-by: Matthew Brost --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 53 ++- 1 file changed, 39 insertions(+),

[Intel-gfx] [PATCH 17/26] drm/i915/guc: Connect UAPI to GuC multi-lrc interface

2021-10-04 Thread Matthew Brost
Introduce 'set parallel submit' extension to connect UAPI to GuC multi-lrc interface. Kernel doc in new uAPI should explain it all. IGT: https://patchwork.freedesktop.org/patch/447008/?series=93071=1 media UMD: https://github.com/intel/media-driver/pull/1252 v2: (Daniel Vetter) - Add IGT link

[Intel-gfx] [PATCH 21/26] drm/i915: Multi-BB execbuf

2021-10-04 Thread Matthew Brost
Allow multiple batch buffers to be submitted in a single execbuf IOCTL after a context has been configured with the 'set_parallel' extension. The number batches is implicit based on the contexts configuration. This is implemented with a series of loops. First a loop is used to find all the

[Intel-gfx] [PATCH 18/26] drm/i915/doc: Update parallel submit doc to point to i915_drm.h

2021-10-04 Thread Matthew Brost
Update parallel submit doc to point to i915_drm.h Signed-off-by: Matthew Brost Reviewed-by: John Harrison --- Documentation/gpu/rfc/i915_parallel_execbuf.h | 122 -- Documentation/gpu/rfc/i915_scheduler.rst | 4 +- 2 files changed, 2 insertions(+), 124 deletions(-)

[Intel-gfx] [PATCH 23/26] drm/i915: Make request conflict tracking understand parallel submits

2021-10-04 Thread Matthew Brost
If an object in the excl or shared slot is a composite fence from a parallel submit and the current request in the conflict tracking is from the same parallel context there is no need to enforce ordering as the ordering already implicit. Make the request conflict tracking understand this by

[Intel-gfx] [PATCH 24/26] drm/i915: Update I915_GEM_BUSY IOCTL to understand composite fences

2021-10-04 Thread Matthew Brost
Parallel submission create composite fences (dma_fence_array) for excl / shared slots in objects. The I915_GEM_BUSY IOCTL checks these slots to determine the busyness of the object. Prior to patch it only check if the fence in the slot was a i915_request. Update the check to understand composite

[Intel-gfx] [PATCH 04/26] drm/i915/guc: Don't call switch_to_kernel_context with GuC submission

2021-10-04 Thread Matthew Brost
Calling switch_to_kernel_context isn't needed if the engine PM reference is taken while all user contexts are pinned as if don't have PM ref that guarantees that all user contexts scheduling is disabled. By not calling switch_to_kernel_context we save on issuing a request to the engine. v2:

[Intel-gfx] [PATCH 01/26] drm/i915/guc: Move GuC guc_id allocation under submission state sub-struct

2021-10-04 Thread Matthew Brost
Move guc_id allocation under submission state sub-struct as a future patch will reuse the spin lock as a global submission state lock. Moving this into sub-struct makes ownership of fields / lock clear. Signed-off-by: Matthew Brost --- drivers/gpu/drm/i915/gt/intel_context_types.h | 6 +-

[Intel-gfx] [PATCH 14/26] drm/i915/guc: Implement multi-lrc reset

2021-10-04 Thread Matthew Brost
Update context and full GPU reset to work with multi-lrc. The idea is parent context tracks all the active requests inflight for itself and its' children. The parent context owns the reset replaying / canceling requests as needed. v2: (John Harrison) - Simply loop in find active request -

[Intel-gfx] [PATCH 02/26] drm/i915/guc: Take GT PM ref when deregistering context

2021-10-04 Thread Matthew Brost
Taking a PM reference to prevent intel_gt_wait_for_idle from short circuiting while a deregister context H2G is in flight. To do this must issue the deregister H2G from a worker as context can be destroyed from an atomic context and taking GT PM ref blows up. Previously we took a runtime PM from

[Intel-gfx] [PATCH 06/26] drm/i915: Expose logical engine instance to user

2021-10-04 Thread Matthew Brost
Expose logical engine instance to user via query engine info IOCTL. This is required for split-frame workloads as these needs to be placed on engines in a logically contiguous order. The logical mapping can change based on fusing. Rather than having user have knowledge of the fusing we simply just

[Intel-gfx] [PATCH 13/26] drm/i915/guc: Insert submit fences between requests in parent-child relationship

2021-10-04 Thread Matthew Brost
The GuC must receive requests in the order submitted for contexts in a parent-child relationship to function correctly. To ensure this, insert a submit fence between the current request and last request submitted for requests / contexts in a parent child relationship. This is conceptually similar

[Intel-gfx] [PATCH 16/26] drm/i915: Fix bug in user proto-context creation that leaked contexts

2021-10-04 Thread Matthew Brost
Set number of engines before attempting to create contexts so the function free_engines can clean up properly. Also check return of alloc_engines for NULL. v2: (Tvrtko) - Send as stand alone patch (John Harrison) - Check for alloc_engines returning NULL v3: (Checkpatch / Tvrtko) - Remove

[Intel-gfx] [PATCH 12/26] drm/i915/guc: Implement multi-lrc submission

2021-10-04 Thread Matthew Brost
Implement multi-lrc submission via a single workqueue entry and single H2G. The workqueue entry contains an updated tail value for each request, of all the contexts in the multi-lrc submission, and updates these values simultaneously. As such, the tasklet and bypass path have been updated to

[Intel-gfx] [PATCH 10/26] drm/i915/guc: Assign contexts in parent-child relationship consecutive guc_ids

2021-10-04 Thread Matthew Brost
Assign contexts in parent-child relationship consecutive guc_ids. This is accomplished by partitioning guc_id space between ones that need to be consecutive (1/16 available guc_ids) and ones that do not (15/16 of available guc_ids). The consecutive search is implemented via the bitmap API. This

[Intel-gfx] [PATCH 09/26] drm/i915/guc: Ensure GuC schedule operations do not operate on child contexts

2021-10-04 Thread Matthew Brost
In GuC parent-child contexts the parent context controls the scheduling, ensure only the parent does the scheduling operations. Signed-off-by: Matthew Brost --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git

[Intel-gfx] [PATCH 11/26] drm/i915/guc: Implement parallel context pin / unpin functions

2021-10-04 Thread Matthew Brost
Parallel contexts are perma-pinned by the upper layers which makes the backend implementation rather simple. The parent pins the guc_id and children increment the parent's pin count on pin to ensure all the contexts are unpinned before we disable scheduling with the GuC / or deregister the

[Intel-gfx] [PATCH 03/26] drm/i915/guc: Take engine PM when a context is pinned with GuC submission

2021-10-04 Thread Matthew Brost
Taking a PM reference to prevent intel_gt_wait_for_idle from short circuiting while a scheduling of user context could be enabled. Returning GT idle when it is not can cause all sorts of issues throughout the stack. v2: (Daniel Vetter) - Add might_lock annotations to pin / unpin function v3:

[Intel-gfx] [PATCH 08/26] drm/i915/guc: Add multi-lrc context registration

2021-10-04 Thread Matthew Brost
Add multi-lrc context registration H2G. In addition a workqueue and process descriptor are setup during multi-lrc context registration as these data structures are needed for multi-lrc submission. v2: (John Harrison) - Move GuC specific fields into sub-struct - Clean up WQ defines - Add

[Intel-gfx] [PATCH 05/26] drm/i915: Add logical engine mapping

2021-10-04 Thread Matthew Brost
Add logical engine mapping. This is required for split-frame, as workloads need to be placed on engines in a logically contiguous manner. v2: (Daniel Vetter) - Add kernel doc for new fields v3 (Tvrtko) - Update comment for new logical_mask field Signed-off-by: Matthew Brost ---

[Intel-gfx] [PATCH 07/26] drm/i915/guc: Introduce context parent-child relationship

2021-10-04 Thread Matthew Brost
Introduce context parent-child relationship. Once this relationship is created all pinning / unpinning operations are directed to the parent context. The parent context is responsible for pinning all of its' children and itself. This is a precursor to the full GuC multi-lrc implementation but

[Intel-gfx] [PATCH 00/26] Parallel submission aka multi-bb execbuf

2021-10-04 Thread Matthew Brost
As discussed in [1] we are introducing a new parallel submission uAPI for the i915 which allows more than 1 BB to be submitted in an execbuf IOCTL. This is the implemenation for both GuC and execlists. In addition to selftests in the series, an IGT is available implemented in the first 4 patches

Re: [Intel-gfx] [PATCH] drm/i915: remove IS_ACTIVE

2021-10-04 Thread Lucas De Marchi
Cc'ing Dan Carpenter On Fri, Oct 01, 2021 at 12:57:13PM +0300, Jani Nikula wrote: On Fri, 01 Oct 2021, Chris Wilson wrote: Quoting Lucas De Marchi (2021-10-01 08:40:41) When trying to bring IS_ACTIVE to linux/kconfig.h I thought it wouldn't provide much value just encapsulating it in a

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/fbc: Don't nuke manually around flips (rev2)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915/fbc: Don't nuke manually around flips (rev2) URL : https://patchwork.freedesktop.org/series/89823/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10681_full -> Patchwork_21236_full

Re: [Intel-gfx] [PATCH 01/28] dma-buf: add dma_resv_for_each_fence_unlocked v7

2021-10-04 Thread Christian König
Am 04.10.21 um 12:50 schrieb Tvrtko Ursulin: On 04/10/2021 11:44, Christian König wrote: Am 04.10.21 um 12:34 schrieb Tvrtko Ursulin: On 04/10/2021 10:53, Christian König wrote: Am 04.10.21 um 11:29 schrieb Tvrtko Ursulin: On 01/10/2021 11:05, Christian König wrote: Abstract the

Re: [Intel-gfx] [PATCH v3 12/14] dt-bindings: msm/dp: Add bindings for HDCP registers

2021-10-04 Thread Bjorn Andersson
On Fri 01 Oct 10:11 CDT 2021, Sean Paul wrote: > From: Sean Paul > > This patch adds the bindings for the MSM DisplayPort HDCP registers > which are required to write the HDCP key into the display controller as > well as the registers to enable HDCP authentication/key > exchange/encryption. >

Re: [Intel-gfx] [PATCH v3 12/14] dt-bindings: msm/dp: Add bindings for HDCP registers

2021-10-04 Thread Bjorn Andersson
On Fri 01 Oct 10:11 CDT 2021, Sean Paul wrote: > From: Sean Paul > > This patch adds the bindings for the MSM DisplayPort HDCP registers > which are required to write the HDCP key into the display controller as > well as the registers to enable HDCP authentication/key > exchange/encryption. >

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

2021-10-04 Thread Rodrigo Vivi
Hi Dave and Daniel, Here goes an accumulated pull request. A special highlight to the ADL-P (XE_LPD) and DG2 display support preparation and on a big clean-up in the display portion of the driver. Here goes drm-intel-next-2021-10-04: Cross-subsystem Changes: - fbdev/efifb: Release PCI device's

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Extend the async flip VT-d w/a to skl/bxt

2021-10-04 Thread Ville Syrjälä
On Mon, Oct 04, 2021 at 10:50:00AM -0700, Matt Roper wrote: > On Sat, Oct 02, 2021 at 01:01:31AM +0300, Ville Syrjälä wrote: > > On Fri, Oct 01, 2021 at 02:08:15PM -0700, Matt Roper wrote: > > > On Thu, Sep 30, 2021 at 10:09:42PM +0300, Ville Syrjala wrote: > > > > From: Ville Syrjälä > > > > >

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/atomic: Add the crtc to affected crtc only if uapi.enable = true (rev3)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/atomic: Add the crtc to affected crtc only if uapi.enable = true (rev3) URL : https://patchwork.freedesktop.org/series/87555/ State : success == Summary == CI Bug Log - changes from CI_DRM_10681_full -> Patchwork_21235_full

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Add privacy-screen support (v2)

2021-10-04 Thread Ville Syrjälä
On Mon, Oct 04, 2021 at 06:02:21PM +0200, Hans de Goede wrote: > Hi, > > On 10/4/21 5:37 PM, Ville Syrjälä wrote: > > On Sat, Oct 02, 2021 at 06:36:18PM +0200, Hans de Goede wrote: > >> Add support for eDP panels with a built-in privacy screen using the > >> new drm_privacy_screen class. > >> >

Re: [Intel-gfx] [PATCH v2] drm/i915: Clean up disabled warnings

2021-10-04 Thread Jani Nikula
On Tue, 14 Sep 2021, Nathan Chancellor wrote: > i915 enables a wider set of warnings with '-Wall -Wextra' then disables > several with cc-disable-warning. If an unknown flag gets added to > KBUILD_CFLAGS when building with clang, all subsequent calls to > cc-{disable-warning,option} will fail,

Re: [Intel-gfx] i915 MST HDCP code looks broken

2021-10-04 Thread Ville Syrjälä
On Mon, Oct 04, 2021 at 03:04:01PM +, Gupta, Anshuman wrote: > > > > -Original Message- > > From: Ville Syrjälä > > Sent: Monday, October 4, 2021 4:22 PM > > To: intel-gfx@lists.freedesktop.org > > Cc: Sean Paul ; Gupta, Anshuman > > ; C, Ramalingam ; B S, > > Karthik > > Subject:

[Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/tc: Delete bogus NULL check in intel_ddi_encoder_destroy()

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915/tc: Delete bogus NULL check in intel_ddi_encoder_destroy() URL : https://patchwork.freedesktop.org/series/95402/ State : failure == Summary == CI Bug Log - changes from CI_DRM_10681_full -> Patchwork_21232_full

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Improve DP link training further (rev2)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915: Improve DP link training further (rev2) URL : https://patchwork.freedesktop.org/series/95405/ State : failure == Summary == Applying: drm/i915: Tweak the DP "max vswing reached?" condition Applying: drm/i915: Show LTTPR in the TPS debug print Applying:

[Intel-gfx] [PATCH v2 5/5] drm/i915: Call intel_dp_dump_link_status() for CR failures

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä I suppose intel_dp_dump_link_status() might be useful for diagnosing link training failures. Hoever we only call from the channel EQ phase currently. Let's call it from the CR phase as well. Signed-off-by: Ville Syrjälä ---

[Intel-gfx] [PATCH v2 0/5] drm/i915: Improve DP link training further

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä A little bit more generic DP link training improvements before we finally get to the actual per-lane drive settings PHY programming stuff. v2: CI is confused about sha1s for some reason Ville Syrjälä (5): drm/i915: Tweak the DP "max vswing reached?" condition drm/i915:

[Intel-gfx] [PATCH v2 2/5] drm/i915: Show LTTPR in the TPS debug print

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Indicate which LTTPR we're currently attempting to train when we print which training pattern we're using. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/g4x_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_link_training.c | 11 +++

Re: [Intel-gfx] [PATCH 2/2] drm/i195: Make the async flip VT-d workaround dynamic

2021-10-04 Thread Matt Roper
On Thu, Sep 30, 2021 at 10:09:43PM +0300, Ville Syrjala wrote: > From: Ville Syrjälä > > Since the VT-d vs. async flip issues are plaguing a wider range > of supported hw let's try to minimize the impact on normal > operation by flipping the relevant chicken bits on and off > as needed. I

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Extend the async flip VT-d w/a to skl/bxt

2021-10-04 Thread Matt Roper
On Sat, Oct 02, 2021 at 01:01:31AM +0300, Ville Syrjälä wrote: > On Fri, Oct 01, 2021 at 02:08:15PM -0700, Matt Roper wrote: > > On Thu, Sep 30, 2021 at 10:09:42PM +0300, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Looks like skl/bxt/derivatives also need the plane stride > > >

[Intel-gfx] [PATCH v2 3/5] drm/i915: Print the DP vswing adjustment request

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Print out each DP vswing adjustment request we got from the RX. Could help in diagnosing what's going on during link training. Signed-off-by: Ville Syrjälä --- .../drm/i915/display/intel_dp_link_training.c | 27 +++ 1 file changed, 27 insertions(+) diff

[Intel-gfx] [PATCH v2 4/5] drm/i915: Pimp link training debug prints

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Unify all debug prints during link training to include information on both the encoder and the LTTPR. We unify the format to something like "[ENCODER:1:FOO][LTTPR 1] Something something". Though not sure if those brackets around the dp_phy just make it look like line noise?

[Intel-gfx] [PATCH v2 1/5] drm/i915: Tweak the DP "max vswing reached?" condition

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Currently we consider the max vswing reached when we transmit a the max voltage level, but we don't consider pre-emphasis at all. This kinda matches older DP specs that only had some vague text about transmitting the maximum voltage swing. Latest versions now say something

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/fbc: Don't nuke manually around flips (rev2)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915/fbc: Don't nuke manually around flips (rev2) URL : https://patchwork.freedesktop.org/series/89823/ State : success == Summary == CI Bug Log - changes from CI_DRM_10681 -> Patchwork_21236 Summary

[Intel-gfx] ✗ Fi.CI.BUILD: failure for CPU + GPU synchronised priority scheduling (rev2)

2021-10-04 Thread Patchwork
== Series Details == Series: CPU + GPU synchronised priority scheduling (rev2) URL : https://patchwork.freedesktop.org/series/95294/ State : failure == Summary == fatal: empty ident name (for <>) not allowed Applying: effective and consolidated user experience. In other words why user would

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Add privacy-screen support (v2)

2021-10-04 Thread Ville Syrjälä
On Sat, Oct 02, 2021 at 06:36:18PM +0200, Hans de Goede wrote: > Add support for eDP panels with a built-in privacy screen using the > new drm_privacy_screen class. > > Changes in v2: > - Call drm_connector_update_privacy_screen() from > intel_enable_ddi_dp() / intel_ddi_update_pipe_dp()

Re: [Intel-gfx] [PATCH 05/10] drm/connector: Add a drm_connector privacy-screen helper functions (v2)

2021-10-04 Thread Ville Syrjälä
On Sat, Oct 02, 2021 at 06:36:13PM +0200, Hans de Goede wrote: > Add 2 drm_connector privacy-screen helper functions: > > 1. drm_connector_attach_privacy_screen_provider(), this function creates > and attaches the standard privacy-screen properties and registers a > generic notifier for

Re: [Intel-gfx] [PATCH 10/10] drm/i915: Add privacy-screen support (v2)

2021-10-04 Thread Hans de Goede
Hi, On 10/4/21 5:37 PM, Ville Syrjälä wrote: > On Sat, Oct 02, 2021 at 06:36:18PM +0200, Hans de Goede wrote: >> Add support for eDP panels with a built-in privacy screen using the >> new drm_privacy_screen class. >> >> Changes in v2: >> - Call drm_connector_update_privacy_screen() from >>

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/atomic: Add the crtc to affected crtc only if uapi.enable = true (rev3)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/atomic: Add the crtc to affected crtc only if uapi.enable = true (rev3) URL : https://patchwork.freedesktop.org/series/87555/ State : success == Summary == CI Bug Log - changes from CI_DRM_10681 -> Patchwork_21235

Re: [Intel-gfx] [PATCH 09/10] drm/i915: Add intel_modeset_probe_defer() helper

2021-10-04 Thread Ville Syrjälä
On Sat, Oct 02, 2021 at 06:36:17PM +0200, Hans de Goede wrote: > The upcoming privacy-screen support adds another check for > deferring probe till some other drivers have bound first. > > Factor out the current vga_switcheroo_client_probe_defer() check > into an intel_modeset_probe_defer()

Re: [Intel-gfx] [PATCH 05/10] drm/connector: Add a drm_connector privacy-screen helper functions (v2)

2021-10-04 Thread Hans de Goede
Hi, On 10/4/21 5:22 PM, Ville Syrjälä wrote: > On Sat, Oct 02, 2021 at 06:36:13PM +0200, Hans de Goede wrote: >> Add 2 drm_connector privacy-screen helper functions: >> >> 1. drm_connector_attach_privacy_screen_provider(), this function creates >> and attaches the standard privacy-screen

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Connect engine busyness stats from GuC to pmu

2021-10-04 Thread Tvrtko Ursulin
On 24/09/2021 23:34, Umesh Nerlige Ramappa wrote: With GuC handling scheduling, i915 is not aware of the time that a context is scheduled in and out of the engine. Since i915 pmu relies on this info to provide engine busyness to the user, GuC shares this info with i915 for all engines using

Re: [Intel-gfx] i915 MST HDCP code looks broken

2021-10-04 Thread Gupta, Anshuman
> -Original Message- > From: Ville Syrjälä > Sent: Monday, October 4, 2021 4:22 PM > To: intel-gfx@lists.freedesktop.org > Cc: Sean Paul ; Gupta, Anshuman > ; C, Ramalingam ; B S, > Karthik > Subject: i915 MST HDCP code looks broken > > Hi, > > I took a quick peek at

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/atomic: Add the crtc to affected crtc only if uapi.enable = true (rev3)

2021-10-04 Thread Patchwork
== Series Details == Series: drm/atomic: Add the crtc to affected crtc only if uapi.enable = true (rev3) URL : https://patchwork.freedesktop.org/series/87555/ State : warning == Summary == $ dim checkpatch origin/drm-tip 658485c7066a drm/atomic: Add the crtc to affected crtc only if

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/tc: Delete bogus NULL check in intel_ddi_encoder_destroy()

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915/tc: Delete bogus NULL check in intel_ddi_encoder_destroy() URL : https://patchwork.freedesktop.org/series/95402/ State : success == Summary == CI Bug Log - changes from CI_DRM_10681 -> Patchwork_21232

[Intel-gfx] [RFC 7/8] drm/i915: Inherit process nice for context scheduling priority

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Introduce the concept of context nice value which matches the process nice. We do this by extending the struct i915_sched_attr and add a helper (i915_sched_attr_priority) to be used to convert to effective priority when used by backend code and for priority sorting.

[Intel-gfx] [RFC v2 0/8] CPU + GPU synchronised priority scheduling

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin This is a somewhat early sketch of one of my ideas intended for early feedback from the core scheduler experts. First and last two patches in the series are the most interesting ones for people outside of i915. (Note I did not copy everyone on all patches but just the cover

[Intel-gfx] [RFC 1/8] sched: Add nice value change notifier

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Implement a simple notifier chain via which interested parties can track when process nice value changes. Simple because it is global so each user would have to track which tasks it is interested in. First intended use case are GPU drivers using task nice as priority hint

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Prefer struct_size over open coded arithmetic

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915: Prefer struct_size over open coded arithmetic URL : https://patchwork.freedesktop.org/series/95408/ State : failure == Summary == CALLscripts/checksyscalls.sh CALLscripts/atomic/check-atomics.sh DESCEND objtool CHK

[Intel-gfx] ✗ Fi.CI.BUILD: failure for drm/i915: Improve DP link training further

2021-10-04 Thread Patchwork
== Series Details == Series: drm/i915: Improve DP link training further URL : https://patchwork.freedesktop.org/series/95405/ State : failure == Summary == Applying: drm/i915: Tweak the DP "max vswing reached?" condition Applying: drm/i915: Show LTTPR in the TPS debug print Applying:

[Intel-gfx] [RFC 5/8] drm/i915: Keep track of registered clients indexed by task struct

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin A simple hash table of registered clients indexed by the task struct pointer is kept to be used in a following patch. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 2 ++ drivers/gpu/drm/i915/i915_drm_client.c | 31

[Intel-gfx] [RFC 6/8] drm/i915: Make some recently added vfuncs use full scheduling attribute

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Code added in 71ed60112d5d ("drm/i915: Add kick_backend function to i915_sched_engine") and ee242ca704d3 ("drm/i915/guc: Implement GuC priority management") introduced some scheduling related vfuncs which take integer request priority as argument. Make them instead take

[Intel-gfx] [RFC 3/8] drm/i915: Make GEM contexts track DRM clients

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Make GEM contexts keep a reference to i915_drm_client for the whole of of their lifetime which will come handy in following patches. v2: Don't bother supporting selftests contexts from debugfs. (Chris) v3 (Lucas): Finish constructing ctx before adding it to the list v4

[Intel-gfx] [RFC 4/8] drm/i915: Track all user contexts per client

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin We soon want to start answering questions like how much GPU time is the context belonging to a client which exited still using. To enable this we start tracking all context belonging to a client on a separate list. Signed-off-by: Tvrtko Ursulin Reviewed-by: Aravind

[Intel-gfx] [RFC 2/8] drm/i915: Explicitly track DRM clients

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Tracking DRM clients more explicitly will allow later patches to accumulate past and current GPU usage in a centralised place and also consolidate access to owning task pid/name. Unique client id is also assigned for the purpose of distinguishing/ consolidating between

[Intel-gfx] [RFC 8/8] drm/i915: Connect with the process nice change notifier

2021-10-04 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Connect i915 with the process nice change notifier so that our scheduling can react to runtime adjustments, on top of previously added nice value inheritance at context create time. To achieve this we use the previously added map of clients per owning tasks in combination

[Intel-gfx] [PATCH 2/2] drm/i915/fbc: Don't nuke manually around flips

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Apparently we have discovered another way to hit the dreaded top of screen FBC corruption on GLK. Previously we thought it was limited to some combination of FBC nuke+disable+plane update during the same frame, for which we have the extra vblank wait as a workaround. But

[Intel-gfx] [PATCH 1/2] drm/i915/fbc: Hoist more stuff out from intel_fbc_hw_(de)activate()

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Move more of the common stuff one level up from intel_fbc_hw_(de)activate(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_fbc.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git

[Intel-gfx] [PATCH 0/2] drm/i915/fbc: Don't nuke manually around flips

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Let's see how the glk is behaving these days... Ville Syrjälä (2): drm/i915/fbc: Hoist more stuff out from intel_fbc_hw_(de)activate() drm/i915/fbc: Don't nuke manually around flips drivers/gpu/drm/i915/display/intel_fbc.c | 36 +--- 1 file changed,

Re: [Intel-gfx] [PATCH 01/28] dma-buf: add dma_resv_for_each_fence_unlocked v7

2021-10-04 Thread Tvrtko Ursulin
On 04/10/2021 13:59, Christian König wrote: Am 04.10.21 um 12:50 schrieb Tvrtko Ursulin: On 04/10/2021 11:44, Christian König wrote: Am 04.10.21 um 12:34 schrieb Tvrtko Ursulin: On 04/10/2021 10:53, Christian König wrote: Am 04.10.21 um 11:29 schrieb Tvrtko Ursulin: On 01/10/2021

Re: [Intel-gfx] [PATCH 03/28] dma-buf: add dma_resv selftest

2021-10-04 Thread Tvrtko Ursulin
On 01/10/2021 11:05, Christian König wrote: Just exercising a very minor subset of the functionality, but already proven useful. Signed-off-by: Christian König --- drivers/dma-buf/Makefile | 3 +- drivers/dma-buf/selftests.h | 1 + drivers/dma-buf/st-dma-resv.c | 164

[Intel-gfx] [PATCH v3] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-10-04 Thread Manasi Navare
In case of a modeset where a mode gets split across mutiple CRTCs in the driver specific implementation (bigjoiner in i915) we wrongly count the affected CRTCs based on the drm_crtc_mask and indicate the stolen CRTC as an affected CRTC in atomic_check_only(). This triggers a warning since affected

Re: [Intel-gfx] [PATCH 01/28] dma-buf: add dma_resv_for_each_fence_unlocked v7

2021-10-04 Thread Christian König
Am 04.10.21 um 11:29 schrieb Tvrtko Ursulin: On 01/10/2021 11:05, Christian König wrote: Abstract the complexity of iterating over all the fences in a dma_resv object. The new loop handles the whole RCU and retry dance and returns only fences where we can be sure we grabbed the right one.

Re: [Intel-gfx] [PATCH 01/28] dma-buf: add dma_resv_for_each_fence_unlocked v7

2021-10-04 Thread Christian König
Am 04.10.21 um 12:34 schrieb Tvrtko Ursulin: On 04/10/2021 10:53, Christian König wrote: Am 04.10.21 um 11:29 schrieb Tvrtko Ursulin: On 01/10/2021 11:05, Christian König wrote: Abstract the complexity of iterating over all the fences in a dma_resv object. The new loop handles the whole

[Intel-gfx] [PATCH] drm/i915: Prefer struct_size over open coded arithmetic

2021-10-04 Thread Len Baker
As noted in the "Deprecated Interfaces, Language Features, Attributes, and Conventions" documentation [1], size calculations (especially multiplication) should not be performed in memory allocator (or similar) function arguments due to the risk of them overflowing. This could lead to values

Re: [Intel-gfx] [PATCH v2] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-10-04 Thread Ville Syrjälä
On Mon, Oct 04, 2021 at 04:36:29AM -0700, Manasi Navare wrote: > In case of a modeset where a mode gets split across mutiple CRTCs > in the driver specific implementation (bigjoiner in i915) we wrongly count > the affected CRTCs based on the drm_crtc_mask and indicate the stolen CRTC as > an

[Intel-gfx] [PATCH v2] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-10-04 Thread Manasi Navare
In case of a modeset where a mode gets split across mutiple CRTCs in the driver specific implementation (bigjoiner in i915) we wrongly count the affected CRTCs based on the drm_crtc_mask and indicate the stolen CRTC as an affected CRTC in atomic_check_only(). This triggers a warning since affected

[Intel-gfx] [PATCH 5/5] drm/i915: Call intel_dp_dump_link_status() for CR failures

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä I suppose intel_dp_dump_link_status() might be useful for diagnosing link training failures. Hoever we only call from the channel EQ phase currently. Let's call it from the CR phase as well. Signed-off-by: Ville Syrjälä ---

[Intel-gfx] [PATCH 3/5] drm/i915: Print the DP vswing adjustment request

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Print out each DP vswing adjustment request we got from the RX. Could help in diagnosing what's going on during link training. Signed-off-by: Ville Syrjälä --- .../drm/i915/display/intel_dp_link_training.c | 27 +++ 1 file changed, 27 insertions(+) diff

[Intel-gfx] [PATCH 4/5] drm/i915: Pimp link training debug prints

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Unify all debug prints during link training to include information on both the encoder and the LTTPR. We unify the format to something like "[ENCODER:1:FOO][LTTPR 1] Something something". Though not sure if those brackets around the dp_phy just make it look like line noise?

[Intel-gfx] [PATCH 2/5] drm/i915: Show LTTPR in the TPS debug print

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Indicate which LTTPR we're currently attempting to train when we print which training pattern we're using. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/g4x_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp_link_training.c | 11 +++

[Intel-gfx] [PATCH 1/5] drm/i915: Tweak the DP "max vswing reached?" condition

2021-10-04 Thread Ville Syrjala
From: Ville Syrjälä Currently we consider the max vswing reached when we transmit a the max voltage level, but we don't consider pre-emphasis at all. This kinda matches older DP specs that only had some vague text about transmitting the maximum voltage swing. Latest versions now say something

  1   2   >