[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/dp: Do not switch aux to TBT mode for non-TC ports (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/dp: Do not switch aux to TBT mode for non-TC ports (rev2) URL : https://patchwork.freedesktop.org/series/68691/ State : success == Summary == CI Bug Log - changes from CI_DRM_7221_full -> Patchwork_15062_full

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/2] drm/i915/tgl: Add SFC instdone to error state

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915/tgl: Add SFC instdone to error state URL : https://patchwork.freedesktop.org/series/68732/ State : success == Summary == CI Bug Log - changes from CI_DRM_7220_full -> Patchwork_15060_full

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: drop lrc header page

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/2] drm/i915: drop lrc header page URL : https://patchwork.freedesktop.org/series/68800/ State : success == Summary == CI Bug Log - changes from CI_DRM_7228 -> Patchwork_15080 Summary

Re: [Intel-gfx] [PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework

2019-10-30 Thread Jason Wang
On 2019/10/31 上午5:23, Christoph Hellwig wrote: On Wed, Oct 30, 2019 at 02:44:44PM +0800, Jason Wang wrote: This sample driver creates mdev device that simulate virtio net device over virtio mdev transport. The device is implemented through vringh and workqueue. A device specific dma ops is to

[Intel-gfx] [PATCH 1/2] drm/i915: drop lrc header page

2019-10-30 Thread Daniele Ceraolo Spurio
Recent GuC binaries (including all the ones we're currently using) don't require this shared area anymore, having moved the relevant entries into the stage pool instead. i915 itself doesn't write anything into it either, so we can safely drop it. Signed-off-by: Daniele Ceraolo Spurio Cc: Chris

[Intel-gfx] [PATCH 2/2] drm/i915/guc: drop guc shared area

2019-10-30 Thread Daniele Ceraolo Spurio
Recent GuC doesn't require the shared area. We still have one user in i915 (engine reset via guc) because we haven't updated the command to match the current guc submission flow [1]. Since the flow in guc is about to change again, just disable the command for now and add a note that we'll

[Intel-gfx] linux-next: manual merge of the drm tree with the drm-intel-fixes tree

2019-10-30 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/i915/i915_drv.h between commit: 59cd826fb5e7 ("drm/i915: Fix PCH reference clock for FDI on HSW/BDW") from the drm-intel-fixes tree and commit: 7d423af9bfb1 ("drm/i915: Implement a better i945gm vblank

[Intel-gfx] [PATCH i-g-t] i915/gem_ctx_persistence: Sanitycheck execbuf state harder for 'queued'

2019-10-30 Thread Chris Wilson
And initialise fence to -1 to avoid closing stdin (fd:0)! Signed-off-by: Chris Wilson --- tests/i915/gem_ctx_persistence.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c index

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Defer rc6 shutdown to suspend_late

2019-10-30 Thread Andi Shyti
Hi Chris, On Wed, Oct 30, 2019 at 10:38:27AM +, Chris Wilson wrote: > Currently we shutdown rc6 during i915_gem_resume() but this is called > during the preparation phase (i915_drm_prepare) for all suspend paths, > but we only want to shutdown rc6 for S3+. Move the actual shutdown to >

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/tgl: add support to one DP-MST stream (rev3)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/tgl: add support to one DP-MST stream (rev3) URL : https://patchwork.freedesktop.org/series/68671/ State : success == Summary == CI Bug Log - changes from CI_DRM_7219_full -> Patchwork_15059_full

Re: [Intel-gfx] [PATCH 1/2] drm/i915/uc: define GuC and HuC binaries for TGL

2019-10-30 Thread Daniele Ceraolo Spurio
On 10/26/19 3:44 AM, Michal Wajdeczko wrote: On Sat, 26 Oct 2019 02:35:06 +0200, Daniele Ceraolo Spurio wrote: GuC 35.2.0 and HuC 7.0.3 are the first production releases for TGL. GuC 35.2 for gen12 is interface-compatible with 33.0 on older gens, because the differences are related to

Re: [Intel-gfx] [PATCH] drm/i915/lmem: add the fake lmem region

2019-10-30 Thread Matthew Auld
On Tue, 29 Oct 2019 at 16:51, Matthew Auld wrote: > > Intended for upstream testing so that we can still exercise the LMEM > plumbing and !i915_ggtt_has_aperture paths. Smoke tested on Skull Canyon > device. This works by allocating an intel_memory_region for a reserved > portion of system

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/guc: Skip suspend/resume GuC action on platforms w/o GuC submission (rev3)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/guc: Skip suspend/resume GuC action on platforms w/o GuC submission (rev3) URL : https://patchwork.freedesktop.org/series/68685/ State : success == Summary == CI Bug Log - changes from CI_DRM_7227 -> Patchwork_15079

Re: [Intel-gfx] [PATCH V6 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework

2019-10-30 Thread Christoph Hellwig
On Wed, Oct 30, 2019 at 02:44:44PM +0800, Jason Wang wrote: > This sample driver creates mdev device that simulate virtio net device > over virtio mdev transport. The device is implemented through vringh > and workqueue. A device specific dma ops is to make sure HVA is used > directly as the IOVA.

[Intel-gfx] [PATCH] drm/i915/guc: Skip suspend/resume GuC action on platforms w/o GuC submission

2019-10-30 Thread don . hiatt
From: Don Hiatt On some platforms (e.g. KBL) that do not support GuC submission, but the user enabled the GuC communication (e.g for HuC authentication) calling the GuC EXIT_S_STATE action results in lose of ability to enter RC6. We can remove the GuC suspend/resume entirely as we do not need to

Re: [Intel-gfx] [igt-dev] [RFC PATCH i-g-t v3] tests/gem_exec_reloc: Don't filter out invalid addresses

2019-10-30 Thread Vanshidhar Konda
On Wed, Oct 30, 2019 at 06:15:35PM +0100, Janusz Krzysztofik wrote: Commit a355b2d6eb42 ("igt/gem_exec_reloc: Filter out unavailable addresses for !ppgtt") introduced filtering of addresses possibly occupied by other users of shared GTT. Unfortunately, that filtering doesn't distinguish

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [01/11] drm/i915: Split detaching and removing the vma

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [01/11] drm/i915: Split detaching and removing the vma URL : https://patchwork.freedesktop.org/series/68788/ State : success == Summary == CI Bug Log - changes from CI_DRM_7226 -> Patchwork_15078

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Split detaching and removing the vma

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915: Split detaching and removing the vma URL : https://patchwork.freedesktop.org/series/68787/ State : success == Summary == CI Bug Log - changes from CI_DRM_7226 -> Patchwork_15077 Summary ---

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Preload LUTs if the hw isn't currently using them

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915: Preload LUTs if the hw isn't currently using them URL : https://patchwork.freedesktop.org/series/68785/ State : success == Summary == CI Bug Log - changes from CI_DRM_7226 -> Patchwork_15076 Summary

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/display: only include intel_dp_link_training.h where needed (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/display: only include intel_dp_link_training.h where needed (rev2) URL : https://patchwork.freedesktop.org/series/68711/ State : success == Summary == CI Bug Log - changes from CI_DRM_7218_full -> Patchwork_15057_full

Re: [Intel-gfx] [PATCH] drm/i915: disable set/get_tiling ioctl on gen12+

2019-10-30 Thread Jason Ekstrand
While I'm generally a fan of this change, we've been talking on IRC a bit today and, apparently, the X server hasn't actually had a release where modifiers have been enabled by default so this is causing problems. Adam & Daniel, is there something that's preventing us from enabling it by default?

[Intel-gfx] [PATCH 10/11] drm/i915/gt: Pull timeline initialise to intel_gt_init_early

2019-10-30 Thread Chris Wilson
Our timelines are currently contained within an intel_gt, and we only need to perform list/spinlock initialisation, so we can pull the intel_timelines_init() into our intel_gt_init_early(). Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gt/intel_gt.c | 2 ++

[Intel-gfx] [PATCH 09/11] drm/i915/gt: Defer engine registration until fully initialised

2019-10-30 Thread Chris Wilson
Only add the engine to the available set of uabi engines once it has been fully initialised and we know we want it in the public set. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: Michał Wajdeczko Cc: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 3 ++- 1 file changed, 2

[Intel-gfx] [PATCH 07/11] drm/i915: Push the use-semaphore marker onto the intel_context

2019-10-30 Thread Chris Wilson
Instead of rummaging through the intel_context to peek at the GEM context in the middle of request submission to decide whether to use semaphores, store that information on the intel_context itself. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_context.c | 52

[Intel-gfx] [PATCH 05/11] drm/i915: Defer rc6 shutdown to suspend_late

2019-10-30 Thread Chris Wilson
Currently we shutdown rc6 during i915_gem_resume() but this is called during the preparation phase (i915_drm_prepare) for all suspend paths, but we only want to shutdown rc6 for S3+. Move the actual shutdown to i915_gem_suspend_late(). We then need to differentiate between suspend targets, to

[Intel-gfx] [PATCH 02/11] drm/i915/gt: Call intel_gt_sanitize() directly

2019-10-30 Thread Chris Wilson
Assume all responsibility for operating on the HW to sanitize the GT state upon load/resume in intel_gt_sanitize() itself. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c| 5 --- drivers/gpu/drm/i915/gt/intel_gt.c| 6 ++-

[Intel-gfx] [PATCH 04/11] drm/i915/gt: Move user_forcewake application to GT

2019-10-30 Thread Chris Wilson
We already track the debugfs user_forcewake on the GT, so it is natural to pull the suspend/resume handling under gt/ as well. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c | 22 -- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 22 ++

[Intel-gfx] [PATCH 03/11] drm/i915/gem: Leave reloading kernel context on resume to GT

2019-10-30 Thread Chris Wilson
As we already do reload the kernel context in intel_gt_resume, repeating that action inside i915_gem_resume() as well is redundant. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c | 30 -- 1 file changed, 30 deletions(-) diff --git

[Intel-gfx] [PATCH 08/11] drm/i915: Remove i915->kernel_context

2019-10-30 Thread Chris Wilson
Allocate only an internal intel_context for the kernel_context, forgoing a global GEM context for internal use as we only require a separate address space (for our own protection). Now having weaned GT from requiring ce->gem_context, we can stop referencing it entirely. This also means we no

[Intel-gfx] [PATCH 06/11] drm/i915: Drop GEM context as a direct link from i915_request

2019-10-30 Thread Chris Wilson
Keep the intel_context as being the primary state for i915_request, with the GEM context a backpointer from the low level state for the rarer cases we need client information. Our goal is to remove such references to clients from the backend, and leave the HW submission agnostic to client

[Intel-gfx] [PATCH 11/11] drm/i915: Move i915_gem_init_contexts() earlier

2019-10-30 Thread Chris Wilson
As the GEM global context setup is now independent of the GT state (although GT does currently still depending upon the global i915->kernel_context), we can move its init earlier, leaving the gt init ready to extracted. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_context.c

[Intel-gfx] [PATCH 01/11] drm/i915: Split detaching and removing the vma

2019-10-30 Thread Chris Wilson
In order to keep the assert_bind_count() valid, we need to hold the vma page reference until after we drop the bind count. However, we must also keep the drm_mm_remove_node() as the last action of i915_vma_unbind() so that it serialises with the unlocked check inside i915_vma_destroy(). So we need

Re: [Intel-gfx] [PATCH] lib/color_encoding: Fix up support for XYUV format.

2019-10-30 Thread Matt Roper
On Mon, Oct 28, 2019 at 02:24:59PM -0700, Bob Paauwe wrote: > Add XYUV to the list of DRM Formats to test. > > Also fix the byte order for the format. > > Signed-off-by: Bob Paauwe Looks like CI got confused by this. You'll want to Cc: igt-...@lists.freedesktop.org and also set your

[Intel-gfx] [PATCH] drm/i915: Split detaching and removing the vma

2019-10-30 Thread Chris Wilson
In order to keep the assert_bind_count() valid, we need to hold the vma page reference until after we drop the bind count. However, we must also keep the drm_mm_remove_node() as the last action of i915_vma_unbind() so that it serialises with the unlocked check inside i915_vma_destroy(). So we need

[Intel-gfx] [PATCH] drm/i915: Preload LUTs if the hw isn't currently using them

2019-10-30 Thread Ville Syrjala
From: Ville Syrjälä The LUTs are single buffered so in order to program them without tearing we'd have to do it during vblank (actually to be 100% effective it has to happen between start of vblank and frame start). We have no proper mechanism for that at the moment so we just defer loading them

[Intel-gfx] [PULL] drm-misc-fixes

2019-10-30 Thread Maxime Ripard
Hi Daniel, Dave, Here is this week's round of fixes for drm-misc. Thanks! Maxime drm-misc-fixes-2019-10-30-1: - three fixes for panfrost, one to silence a warning, one to fix runtime_pm and one to prevent bogus pointer dereferences - one fix for a memleak in v3d The following changes since

Re: [Intel-gfx] [PULL] topic/mst-suspend-resume-reprobe-2019-10-29-2

2019-10-30 Thread Daniel Vetter
On Wed, Oct 30, 2019 at 7:23 PM Lyude Paul wrote: > > On Wed, 2019-10-30 at 10:21 +0100, Daniel Vetter wrote: > > On Tue, Oct 29, 2019 at 11:06 PM Lyude Paul wrote: > > > topic/mst-suspend-resume-reprobe-2019-10-29-2: > > > UAPI Changes: > > > > > > Cross-subsystem Changes: > > > > > > Core

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/4] drm/i915/bios: use a flag for vbt hdmi level shift presence

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/4] drm/i915/bios: use a flag for vbt hdmi level shift presence URL : https://patchwork.freedesktop.org/series/68729/ State : success == Summary == CI Bug Log - changes from CI_DRM_7218_full -> Patchwork_15056_full

Re: [Intel-gfx] [PULL] topic/mst-suspend-resume-reprobe-2019-10-29-2

2019-10-30 Thread Lyude Paul
On Wed, 2019-10-30 at 10:21 +0100, Daniel Vetter wrote: > On Tue, Oct 29, 2019 at 11:06 PM Lyude Paul wrote: > > topic/mst-suspend-resume-reprobe-2019-10-29-2: > > UAPI Changes: > > > > Cross-subsystem Changes: > > > > Core Changes: > > * Handle UP requests asynchronously in the DP MST helpers,

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/lmem: add the fake lmem region (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/lmem: add the fake lmem region (rev2) URL : https://patchwork.freedesktop.org/series/68733/ State : success == Summary == CI Bug Log - changes from CI_DRM_7226 -> Patchwork_15075 Summary ---

Re: [Intel-gfx] [PATCH v2] drm/i915/lmem: add the fake lmem region

2019-10-30 Thread Chris Wilson
Quoting Matthew Auld (2019-10-30 17:33:20) > Intended for upstream testing so that we can still exercise the LMEM > plumbing and !i915_ggtt_has_aperture paths. Smoke tested on Skull Canyon > device. This works by allocating an intel_memory_region for a reserved > portion of system memory, which we

Re: [Intel-gfx] [CI 03/12] drm/i915: Perform manual conversions for crtc uapi/hw split, v2.

2019-10-30 Thread Maarten Lankhorst
Op 30-10-2019 om 18:03 schreef Ville Syrjälä: > On Wed, Oct 30, 2019 at 03:26:48PM +0100, Maarten Lankhorst wrote: >> intel_get_load_detect_pipe() needs to set uapi active, >> uapi enable is set by the call to drm_atomic_set_mode_for_crtc(), >> so we can remove it. >> >>

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/lmem: add the fake lmem region (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/lmem: add the fake lmem region (rev2) URL : https://patchwork.freedesktop.org/series/68733/ State : warning == Summary == $ dim checkpatch origin/drm-tip bfc4292da998 drm/i915/lmem: add the fake lmem region -:109: CHECK:PARENTHESIS_ALIGNMENT: Alignment

Re: [Intel-gfx] [PATCH] drm/i915: Program LUT before intel_color_commit() if LUT was not previously set v2

2019-10-30 Thread Ville Syrjälä
On Mon, Oct 28, 2019 at 07:58:51PM +0100, Hans de Goede wrote: > Since commit 051a6d8d3ca0 ("drm/i915: Move LUT programming to happen after > vblank waits"), I am seeing an ugly colored flash of the first few display > lines on 2 Cherry Trail devices when the gamma table gets set for the first >

[Intel-gfx] [PATCH v2] drm/i915/lmem: add the fake lmem region

2019-10-30 Thread Matthew Auld
Intended for upstream testing so that we can still exercise the LMEM plumbing and !i915_ggtt_has_aperture paths. Smoke tested on Skull Canyon device. This works by allocating an intel_memory_region for a reserved portion of system memory, which we treat like LMEM. For the LMEMBAR we steal the

[Intel-gfx] [RFC PATCH i-g-t v3] tests/gem_exec_reloc: Don't filter out invalid addresses

2019-10-30 Thread Janusz Krzysztofik
Commit a355b2d6eb42 ("igt/gem_exec_reloc: Filter out unavailable addresses for !ppgtt") introduced filtering of addresses possibly occupied by other users of shared GTT. Unfortunately, that filtering doesn't distinguish actually occupied addresses from otherwise invalid softpin offsets. For

Re: [Intel-gfx] [CI 11/12] drm/i915: Complete plane hw and uapi split, v2.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 03:26:56PM +0100, Maarten Lankhorst wrote: > Splitting plane state is easier than splitting crtc_state, > before plane check we copy the drm properties to hw so we can > do the same in bigjoiner later on. > > We copy the state after we did all the modeset handling, but

Re: [Intel-gfx] [CI 03/12] drm/i915: Perform manual conversions for crtc uapi/hw split, v2.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 03:26:48PM +0100, Maarten Lankhorst wrote: > intel_get_load_detect_pipe() needs to set uapi active, > uapi enable is set by the call to drm_atomic_set_mode_for_crtc(), > so we can remove it. > > intel_pipe_config_compare() needs to look at hw state, but I didn't > change

Re: [Intel-gfx] [CI 12/12] drm/i915: Remove special case slave handling during hw programming, v3.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 03:26:57PM +0100, Maarten Lankhorst wrote: > Now that we split plane_state which I didn't want to do yet, we can > program the slave plane without requiring the master plane. > > This is useful for programming bigjoiner slave planes as well. We > will no longer need the

Re: [Intel-gfx] [CI 06/12] drm/i915: Complete crtc hw/uapi split, v5.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 03:26:51PM +0100, Maarten Lankhorst wrote: > Now that we separated everything into uapi and hw, it's > time to make the split definitive. Remove the union and > make a copy of the hw state on modeset and fastset. > > Color blobs are copied in crtc atomic_check(), right >

Re: [Intel-gfx] [CI 10/12] drm/i915: Perform automated conversions for plane uapi/hw split, base -> uapi.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 03:26:55PM +0100, Maarten Lankhorst wrote: > Split up plane_state->base to uapi. This is done using the following patch, > ran after the previous commit that splits out any hw references: > > @@ > struct intel_plane_state *T; > identifier x; > @@ > -T->base.x > +T->uapi.x

Re: [Intel-gfx] [CI 08/12] drm/i915: Perform manual conversions for plane uapi/hw split, v2.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 03:26:53PM +0100, Maarten Lankhorst wrote: > get_crtc_from_states() is called before plane_state is copied to uapi, > so use the uapi state there. > > intel_legacy_cursor_update() could probably get away with looking at > the hw state, but for clarity always look at the

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [1/5] drm/i915: Use drm_rect to simplify plane {crtc, src}_{x, y, w, h} printing

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Use drm_rect to simplify plane {crtc, src}_{x, y, w, h} printing URL : https://patchwork.freedesktop.org/series/68728/ State : failure == Summary == CI Bug Log - changes from CI_DRM_7216_full -> Patchwork_15055_full

Re: [Intel-gfx] [PATCH 7/9] drm/i915: Reject ckey+fp16 on skl+

2019-10-30 Thread Shankar, Uma
>> >>-Original Message- >> >>From: Intel-gfx On Behalf >> >>Of Ville Syrjala >> >>Sent: Tuesday, October 8, 2019 9:45 PM >> >>To: intel-gfx@lists.freedesktop.org >> >>Subject: [Intel-gfx] [PATCH 7/9] drm/i915: Reject ckey+fp16 on skl+ >> >> >> >>From: Ville Syrjälä >> >> >> >>According

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [CI,01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [CI,01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3. URL : https://patchwork.freedesktop.org/series/68775/ State : success == Summary == CI Bug Log - changes from CI_DRM_7224 -> Patchwork_15074

Re: [Intel-gfx] [PATCH] drm/i915: Stop frobbing crtc->base.mode

2019-10-30 Thread Maarten Lankhorst
Op 29-10-2019 om 15:55 schreef Ville Syrjala: > From: Ville Syrjälä > > The core no longer uses drm_crtc_state::mode with atomic drivers, > so let's stop frobbing it in the driver. For the user mode readout > we'll just use an on stack mode. > > Signed-off-by: Ville Syrjälä > --- >

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [CI,01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [CI,01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3. URL : https://patchwork.freedesktop.org/series/68775/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.6.0 Commit: drm/i915: Handle a few

Re: [Intel-gfx] [PATCH] drm/i915: Nuke 'mode' argument to intel_get_load_detect_pipe()

2019-10-30 Thread Jani Nikula
On Tue, 29 Oct 2019, Ville Syrjala wrote: > From: Ville Syrjälä > > We always pass mode==NULL to intel_get_load_detect_pipe(). Remove > the pointless function argument. > > Signed-off-by: Ville Syrjälä Reviewed-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_crt.c | 2 +- >

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Avoid HPD poll detect triggering a new detect cycle (rev2)

2019-10-30 Thread Imre Deak
On Wed, Oct 30, 2019 at 12:06:53AM +, Patchwork wrote: > == Series Details == > > Series: drm/i915: Avoid HPD poll detect triggering a new detect cycle (rev2) > URL : https://patchwork.freedesktop.org/series/68644/ > State : success Thanks for the review, pushed to -dinq. > > == Summary

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [CI,01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [CI,01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3. URL : https://patchwork.freedesktop.org/series/68775/ State : warning == Summary == $ dim checkpatch origin/drm-tip 82ecaad3eafe drm/i915: Handle a few more cases for

Re: [Intel-gfx] pcm_lock deadlock

2019-10-30 Thread Takashi Iwai
On Wed, 30 Oct 2019 14:50:09 +0100, Ville Syrjälä wrote: > > On Tue, Oct 29, 2019 at 09:52:57PM +0100, Takashi Iwai wrote: > > On Tue, 29 Oct 2019 20:10:50 +0100, > > From: Takashi Iwai > > Subject: [PATCH] ALSA: hda - Fix mutex deadlock in HDMI codec driver > > > > The commit ade49db337a9

[Intel-gfx] [CI 09/12] drm/i915: Perform automated conversions for plane uapi/hw split, base -> hw.

2019-10-30 Thread Maarten Lankhorst
Split up plane_state->base to hw. This is done using the following patch: @@ struct intel_plane_state *T; identifier x =~ "^(crtc|fb|alpha|pixel_blend_mode|rotation|color_encoding|color_range)$"; @@ -T->base.x +T->hw.x Signed-off-by: Maarten Lankhorst Reviewed-by: Ville Syrjälä ---

[Intel-gfx] [CI 03/12] drm/i915: Perform manual conversions for crtc uapi/hw split, v2.

2019-10-30 Thread Maarten Lankhorst
intel_get_load_detect_pipe() needs to set uapi active, uapi enable is set by the call to drm_atomic_set_mode_for_crtc(), so we can remove it. intel_pipe_config_compare() needs to look at hw state, but I didn't change spatch to look at it. It's easy enough to do manually. intel_atomic_check()

[Intel-gfx] [CI 07/12] drm/i915: Add aliases for uapi and hw to plane_state

2019-10-30 Thread Maarten Lankhorst
Prepare to split up hw and uapi machinally, by adding a uapi and hw alias. We will remove the base in a bit. This is a split from the original uapi/hw patch, which did it all in one go. Signed-off-by: Maarten Lankhorst --- .../gpu/drm/i915/display/intel_atomic_plane.c| 16

[Intel-gfx] [CI 12/12] drm/i915: Remove special case slave handling during hw programming, v3.

2019-10-30 Thread Maarten Lankhorst
Now that we split plane_state which I didn't want to do yet, we can program the slave plane without requiring the master plane. This is useful for programming bigjoiner slave planes as well. We will no longer need the master's plane_state. Changes since v1: - set src/dst rectangles after

[Intel-gfx] [CI 06/12] drm/i915: Complete crtc hw/uapi split, v5.

2019-10-30 Thread Maarten Lankhorst
Now that we separated everything into uapi and hw, it's time to make the split definitive. Remove the union and make a copy of the hw state on modeset and fastset. Color blobs are copied in crtc atomic_check(), right before color management is checked. Changes since v1: - Copy all blobs

[Intel-gfx] [CI 08/12] drm/i915: Perform manual conversions for plane uapi/hw split, v2.

2019-10-30 Thread Maarten Lankhorst
get_crtc_from_states() is called before plane_state is copied to uapi, so use the uapi state there. intel_legacy_cursor_update() could probably get away with looking at the hw state, but for clarity always look at the uapi state. Changes since v1: - Convert entirety of intel_legacy_cursor_update

[Intel-gfx] [CI 11/12] drm/i915: Complete plane hw and uapi split, v2.

2019-10-30 Thread Maarten Lankhorst
Splitting plane state is easier than splitting crtc_state, before plane check we copy the drm properties to hw so we can do the same in bigjoiner later on. We copy the state after we did all the modeset handling, but fortunately i915 seems to be split correctly and nothing during modeset looks at

[Intel-gfx] [CI 10/12] drm/i915: Perform automated conversions for plane uapi/hw split, base -> uapi.

2019-10-30 Thread Maarten Lankhorst
Split up plane_state->base to uapi. This is done using the following patch, ran after the previous commit that splits out any hw references: @@ struct intel_plane_state *T; identifier x; @@ -T->base.x +T->uapi.x @@ struct intel_plane_state *T; @@ -T->base +T->uapi Signed-off-by: Maarten

[Intel-gfx] [CI 04/12] drm/i915: Perform automated conversions for crtc uapi/hw split, base -> hw.

2019-10-30 Thread Maarten Lankhorst
Split up crtc_state->base to hw where appropriate. This is done using the following patch: @@ struct intel_crtc_state *T; identifier x =~ "^(active|enable|degamma_lut|gamma_lut|ctm|mode|adjusted_mode)$"; @@ -T->base.x +T->hw.x @@ struct drm_crtc_state *T; identifier x =~

[Intel-gfx] [CI 02/12] drm/i915: Add aliases for uapi and hw to crtc_state

2019-10-30 Thread Maarten Lankhorst
Prepare to split up hw and uapi machinally, by adding a uapi and hw alias. We will remove the base in a bit. This is a split from the original uapi/hw patch, which did it all in one go. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/display/intel_atomic.c | 8 --

[Intel-gfx] [CI 01/12] drm/i915: Handle a few more cases for crtc hw/uapi split, v3.

2019-10-30 Thread Maarten Lankhorst
We are still looking at drm_crtc_state in a few places, convert those to use intel_crtc_state instead. Changes since v1: - Move to before uapi/hw split. - Add hunks for intel_pm.c as well. Changes since v2: - Incorporate Ville's feedback. Signed-off-by: Maarten Lankhorst Reviewed-by: Matt Roper

Re: [Intel-gfx] [PATCH v2] drm/i915: Avoid HPD poll detect triggering a new detect cycle

2019-10-30 Thread Ville Syrjälä
On Mon, Oct 28, 2019 at 08:15:17PM +0200, Imre Deak wrote: > For the HPD interrupt functionality the HW depends on power wells in the > display core domain to be on. Accordingly when enabling these power > wells the HPD polling logic will force an HPD detection cycle to account > for hotplug

Re: [Intel-gfx] pcm_lock deadlock

2019-10-30 Thread Ville Syrjälä
On Tue, Oct 29, 2019 at 09:52:57PM +0100, Takashi Iwai wrote: > On Tue, 29 Oct 2019 20:10:50 +0100, > From: Takashi Iwai > Subject: [PATCH] ALSA: hda - Fix mutex deadlock in HDMI codec driver > > The commit ade49db337a9 ("ALSA: hda/hdmi - Allow audio component for > AMD/ATI and Nvidia HDMI")

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Stop frobbing crtc->base.mode

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915: Stop frobbing crtc->base.mode URL : https://patchwork.freedesktop.org/series/68725/ State : success == Summary == CI Bug Log - changes from CI_DRM_7215_full -> Patchwork_15054_full Summary ---

Re: [Intel-gfx] [CI 01/12] drm/i915: Introduce intel_atomic_get_plane_state_after_check(), v2.

2019-10-30 Thread Ville Syrjälä
On Wed, Oct 30, 2019 at 10:17:52AM +0100, Maarten Lankhorst wrote: > Op 29-10-2019 om 19:35 schreef Ville Syrjälä: > > On Tue, Oct 29, 2019 at 08:22:18AM +0100, Maarten Lankhorst wrote: > >> Use this in all the places where we try to acquire planes after the planes > >> atomic_check(). > >> > >>

Re: [Intel-gfx] [CI 11/12] drm/i915: Perform automated conversions for plane uapi/hw split, base -> uapi.

2019-10-30 Thread Maarten Lankhorst
Op 29-10-2019 om 16:43 schreef Ville Syrjälä: > On Tue, Oct 29, 2019 at 08:22:28AM +0100, Maarten Lankhorst wrote: >> Split up plane_state->base to uapi. This is done using the following patch, >> ran after the previous commit that splits out any hw references: >> >> @@ >> struct intel_plane_state

Re: [Intel-gfx] Unexpected screen flicker during i915 initialization

2019-10-30 Thread Jani Nikula
On Wed, 30 Oct 2019, Chris Chiu wrote: > Hi guys, > We have 2 laptops, ASUS Z406MA and Acer TravelMate B118, both > powered by the same Intel N5000 GemniLake CPU. On the Acer laptop, the > panel will blink once during boot which never happens on the ASUS > laptop. It caught my attention and I

Re: [Intel-gfx] [PATCH i-g-t] i915/gem_exec_suspend: Measure power consumption during suspend

2019-10-30 Thread Chris Wilson
Quoting Mika Kuoppala (2019-10-30 12:30:47) > Chris Wilson writes: > > > For this test, we need a laptop running on battery power so that we can > > read the battery charge level before and after suspend. And then wait > > long enough for a reliable measure. > > > > References:

[Intel-gfx] [PATCH i-g-t] amdgpu/amd_basic: Restrict basic compute to only run on available compute rings

2019-10-30 Thread Chris Wilson
Some time ago amdgpu changed their ABI to reject unknown compute rings, so we should query the available set prior to execution. Signed-off-by: Chris Wilson --- tests/amdgpu/amd_basic.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/amdgpu/amd_basic.c

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/3] drm/i915: Drop GEM context as a direct link from i915_request (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Drop GEM context as a direct link from i915_request (rev2) URL : https://patchwork.freedesktop.org/series/68769/ State : success == Summary == CI Bug Log - changes from CI_DRM_7223 -> Patchwork_15073

Re: [Intel-gfx] [PATCH 1/5] drm/i915/gt: Always track callers to intel_rps_mark_interactive()

2019-10-30 Thread Andi Shyti
Hi Chris, On Wed, Oct 30, 2019 at 10:38:23AM +, Chris Wilson wrote: > During startup, we may find ourselves in an interesting position where > we haven't fully enabled RPS before the display starts trying to use it. > This may lead to an imbalance in our "interactive" counter: yes, makes

Re: [Intel-gfx] [PATCH i-g-t] i915/gem_exec_suspend: Measure power consumption during suspend

2019-10-30 Thread Mika Kuoppala
Chris Wilson writes: > For this test, we need a laptop running on battery power so that we can > read the battery charge level before and after suspend. And then wait > long enough for a reliable measure. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=111909 > Signed-off-by: Chris

[Intel-gfx] [PATCH] drm/i915: Remove i915->kernel_context

2019-10-30 Thread Chris Wilson
Allocate only an internal intel_context for the kernel_context, forgoing a global GEM context for internal use as we only require a separate address space (for our own protection). Now having weaned GT from requiring ce->gem_context, we can stop referencing it entirely. This also means we no

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm/i915/gt: Always track callers to intel_rps_mark_interactive()

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915/gt: Always track callers to intel_rps_mark_interactive() URL : https://patchwork.freedesktop.org/series/68770/ State : success == Summary == CI Bug Log - changes from CI_DRM_7223 -> Patchwork_15072

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/i915/gt: Always track callers to intel_rps_mark_interactive()

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915/gt: Always track callers to intel_rps_mark_interactive() URL : https://patchwork.freedesktop.org/series/68770/ State : warning == Summary == $ dim checkpatch origin/drm-tip 62347effd8e0 drm/i915/gt: Always track callers to

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: Always track callers to intel_rps_mark_interactive() (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/gt: Always track callers to intel_rps_mark_interactive() (rev2) URL : https://patchwork.freedesktop.org/series/68764/ State : success == Summary == CI Bug Log - changes from CI_DRM_7223 -> Patchwork_15071

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/perf: ensure selftests select valid format

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/perf: ensure selftests select valid format URL : https://patchwork.freedesktop.org/series/68723/ State : success == Summary == CI Bug Log - changes from CI_DRM_7213_full -> Patchwork_15052_full Summary

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/gt: Always track callers to intel_rps_mark_interactive() (rev2)

2019-10-30 Thread Patchwork
== Series Details == Series: drm/i915/gt: Always track callers to intel_rps_mark_interactive() (rev2) URL : https://patchwork.freedesktop.org/series/68764/ State : warning == Summary == $ dim checkpatch origin/drm-tip 0802e1c1452f drm/i915/gt: Always track callers to

[Intel-gfx] [PATCH 5/5] drm/i915: Defer rc6 shutdown to suspend_late

2019-10-30 Thread Chris Wilson
Currently we shutdown rc6 during i915_gem_resume() but this is called during the preparation phase (i915_drm_prepare) for all suspend paths, but we only want to shutdown rc6 for S3+. Move the actual shutdown to i915_gem_suspend_late(). We then need to differentiate between suspend targets, to

[Intel-gfx] [PATCH 2/5] drm/i915/gt: Call intel_gt_sanitize() directly

2019-10-30 Thread Chris Wilson
Assume all responsibility for operating on the HW to sanitize the GT state upon load/resume in intel_gt_sanitize() itself. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c| 5 --- drivers/gpu/drm/i915/gt/intel_gt.c| 6 ++-

[Intel-gfx] [PATCH 1/5] drm/i915/gt: Always track callers to intel_rps_mark_interactive()

2019-10-30 Thread Chris Wilson
During startup, we may find ourselves in an interesting position where we haven't fully enabled RPS before the display starts trying to use it. This may lead to an imbalance in our "interactive" counter: <3>[4.813326] intel_rps_mark_interactive:652 GEM_BUG_ON(!rps->power.interactive) <4>[

[Intel-gfx] [PATCH 4/5] drm/i915/gt: Move user_forcewake application to GT

2019-10-30 Thread Chris Wilson
We already track the debugfs user_forcewake on the GT, so it is natural to pull the suspend/resume handling under gt/ as well. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c | 22 -- drivers/gpu/drm/i915/gt/intel_gt_pm.c | 22 ++

[Intel-gfx] [PATCH 3/5] drm/i915/gem: Leave reloading kernel context on resume to GT

2019-10-30 Thread Chris Wilson
As we already do reload the kernel context in intel_gt_resume, repeating that action inside i915_gem_resume() as well is redundant. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c | 30 -- 1 file changed, 30 deletions(-) diff --git

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/3] drm/i915: Drop GEM context as a direct link from i915_request

2019-10-30 Thread Patchwork
== Series Details == Series: series starting with [1/3] drm/i915: Drop GEM context as a direct link from i915_request URL : https://patchwork.freedesktop.org/series/68769/ State : failure == Summary == CI Bug Log - changes from CI_DRM_7223 -> Patchwork_15070

Re: [Intel-gfx] Unexpected screen flicker during i915 initialization

2019-10-30 Thread Chris Chiu
On Wed, Oct 30, 2019 at 6:25 PM Chris Chiu wrote: > > Hi guys, > We have 2 laptops, ASUS Z406MA and Acer TravelMate B118, both > powered by the same Intel N5000 GemniLake CPU. On the Acer laptop, the > panel will blink once during boot which never happens on the ASUS > laptop. It caught my

[Intel-gfx] Unexpected screen flicker during i915 initialization

2019-10-30 Thread Chris Chiu
Hi guys, We have 2 laptops, ASUS Z406MA and Acer TravelMate B118, both powered by the same Intel N5000 GemniLake CPU. On the Acer laptop, the panel will blink once during boot which never happens on the ASUS laptop. It caught my attention and I find the difference between them but I need help

[Intel-gfx] [PATCH] drm/i915/gt: Always track callers to intel_rps_mark_interactive()

2019-10-30 Thread Chris Wilson
During startup, we may find ourselves in an interesting position where we haven't fully enabled RPS before the display starts trying to use it. This may lead to an imbalance in our "interactive" counter: <3>[4.813326] intel_rps_mark_interactive:652 GEM_BUG_ON(!rps->power.interactive) <4>[

Re: [Intel-gfx] [CI 04/12] drm/i915: Perform manual conversions for crtc uapi/hw split, v2.

2019-10-30 Thread Maarten Lankhorst
Op 29-10-2019 om 14:23 schreef Ville Syrjälä: > On Tue, Oct 29, 2019 at 08:22:21AM +0100, Maarten Lankhorst wrote: >> intel_get_load_detect_pipe() needs to set uapi active, >> uapi enable is set by the call to drm_atomic_set_mode_for_crtc(), >> so we can remove it. >> >>

[Intel-gfx] [PATCH 1/3] drm/i915: Drop GEM context as a direct link from i915_request

2019-10-30 Thread Chris Wilson
Keep the intel_context as being the primary state for i915_request, with the GEM context a backpointer from the low level state for the rarer cases we need client information. Our goal is to remove such references to clients from the backend, and leave the HW submission agnostic to client

  1   2   >