[Intel-gfx] [PULL] more gvt-next for 4.16

2017-12-13 Thread Zhenyu Wang
Hi, Please pull more gvt-next updates for 4.16. Mostly on code and regression fixes for last two gvt-next pulls and more refinement. Details below. thanks -- The following changes since commit 1603660b3342269c95fcafee1945790342a8c28e: drm/i915/gvt: set max priority for gvt context (2017-12-04

[Intel-gfx] ✗ Fi.CI.IGT: warning for tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation (rev2) URL : https://patchwork.freedesktop.org/series/35101/ State : warning == Summary == Test kms_draw_crc: Subgroup draw-method-rgb565-mmap-wc-untiled: skip -> PAS

Re: [Intel-gfx] [PATCH V3 09/29] drm/i915: deprecate pci_get_bus_and_slot()

2017-12-13 Thread Sinan Kaya
On 12/12/2017 9:04 AM, Joonas Lahtinen wrote: > Hi, > > I sent this individual i915 patch to our CI, and it is passing on all > platforms: > > https://patchwork.freedesktop.org/series/34822/ > > Is it ok if I merge this to drm-tip already? As long as you have this change in your tree, it shoul

Re: [Intel-gfx] GemniLake laptops goes power off directly after performing suspend

2017-12-13 Thread Chris Chiu
On Tue, Dec 12, 2017 at 9:32 PM, Imre Deak wrote: > On Fri, Dec 08, 2017 at 10:31:30AM +, Daniel Drake wrote: >> Hi, >> >> Adding intel-gfx list in case i915 developers can help. Updated summary >> below. >> >> On Thu, Dec 7, 2017 at 2:14 AM, Chris Chiu wrote: >> > On Wed, Dec 6, 2017 at 9:3

[Intel-gfx] ✓ Fi.CI.BAT: success for tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation (rev2) URL : https://patchwork.freedesktop.org/series/35101/ State : success == Summary == IGT patchset tested on top of latest successful build ea7015f1fabbdfdd52a145162c658d2e90161ec5 lib/core:

[Intel-gfx] [PATCH i-g-t v2] tests/gem_reset_stats: Fix retrieval of hangcheck stats expectation

2017-12-13 Thread Antonio Argenziano
The test expected IOCTL 'I915_GET_RESET_STATS' would return an error when not root. That is no longer true in the driver since commit 4c9c0d09741d ("drm/i915: Fix retrieval of hangcheck stats") and therefore the test was incorrectly failing. v2: - Add the commit that changed the behaviour

[Intel-gfx] ✗ Fi.CI.IGT: warning for series starting with [CI,1/7] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Patchwork
== Series Details == Series: series starting with [CI,1/7] drm/i915/guc: Move shared data allocation away from submission path URL : https://patchwork.freedesktop.org/series/35321/ State : warning == Summary == Warning: bzip Patchwork_7492/shard-snb5/results20.json.bz2 wasn't in correct JSON

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

2017-12-13 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/drm_edid.c between commit: 4b4df570b41d ("drm: Update edid-derived drm_display_info fields at edid property set [v2]") from the drm-misc-fixes tree and commit: c945b8c14bb7 ("drm/edid: build ELD in drm_

Re: [Intel-gfx] [PATCH v4 3/5] drm/i915/guc: Implement dynamic WOPCM partitioning

2017-12-13 Thread Yaodong Li
On 12/13/2017 01:34 PM, Michal Wajdeczko wrote: On Wed, 13 Dec 2017 19:19:06 +0100, Yaodong Li wrote: On 12/13/2017 01:11 AM, Joonas Lahtinen wrote: On Tue, 2017-12-12 at 14:56 -0800, Jackie Li wrote: Hardware may have specific restrictions on GuC WOPCM partition size versus HuC firmware si

[Intel-gfx] ✗ Fi.CI.IGT: warning for x86/gpu: add CFL to early quirks (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: x86/gpu: add CFL to early quirks (rev2) URL : https://patchwork.freedesktop.org/series/35109/ State : warning == Summary == Test gem_softpin: Subgroup noreloc-s4: fail -> SKIP (shard-snb) fdo#103375 +2 Test pm_rc6_residency:

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [CI,1/7] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Patchwork
== Series Details == Series: series starting with [CI,1/7] drm/i915/guc: Move shared data allocation away from submission path URL : https://patchwork.freedesktop.org/series/35321/ State : success == Summary == Series 35321v1 series starting with [CI,1/7] drm/i915/guc: Move shared data alloc

[Intel-gfx] [CI 7/7] drm/i915/guc: Extract doorbell verification into a function

2017-12-13 Thread Michał Winiarski
We have the selftest that's checking doorbell create/destroy, so there's no need to check all doorbells delaying the reset every time. We do want to have that extra sanity check at module load/unload though. Signed-off-by: Michał Winiarski Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Michal Wajdecz

[Intel-gfx] [CI 6/7] drm/i915/guc: Extract clients allocation to submission_init

2017-12-13 Thread Michał Winiarski
We can now move the clients allocation to submission_init path, rather than keeping the condition inside submission_enable called on every reset. Signed-off-by: Michał Winiarski Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Michal Wajdeczko Reviewed-by: Michel Thierry --- drivers/gpu/drm/i915/int

[Intel-gfx] [CI 5/7] drm/i915/guc: Extract doorbell creation from client allocation

2017-12-13 Thread Michał Winiarski
Full GPU reset causes GuC to be reset. This means that every time we're doing a reset, we need to talk to GuC and tell it about doorbells. Let's separate the communication part (create_doorbell) from our internal bookkeeping (reserve_doorbell) so that we can cleanly separate the initialization done

[Intel-gfx] [CI 4/7] drm/i915/guc: Call invalidate after changing the vfunc

2017-12-13 Thread Michał Winiarski
To make this operation a bit cleaner, we should make sure that the HW can catch up by calling the new implementation right away. Note that currently we're only touching the vfunc at module load time (before GuC is even loaded), so this shouldn't cause any functional changes. Suggested-by: Chris Wi

[Intel-gfx] [CI 1/7] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Michał Winiarski
We need shared data for actions (e.g. guc suspend/resume), and we're using those with GuC submission disabled. Let's introduce intel_guc_init and move shared data alloc there. This fixes GPF during module unload with HuC, but without GuC submission: BUG: unable to handle kernel NULL pointer deref

[Intel-gfx] [CI 3/7] drm/i915/guc: Extract guc_init from guc_init_hw

2017-12-13 Thread Michał Winiarski
After GPU reset, GuC HW needs to be reinitialized (with FW reload). Unfortunately, we're doing some extra work there (mostly allocating stuff), work that can be moved to guc_init and called once at driver load time. As a side effect we're no longer hitting an assert in i915_ggtt_enable_guc on susp

[Intel-gfx] [CI 2/7] drm/i915/guc: Move GuC workqueue allocations outside of the mutex

2017-12-13 Thread Michał Winiarski
This gets rid of the following lockdep splat: == WARNING: possible circular locking dependency detected 4.15.0-rc2-CI-Patchwork_7428+ #1 Not tainted -- debugfs_test/1351 is trying to acquire loc

Re: [Intel-gfx] Non-blocking commits on -ERESTARTSYS

2017-12-13 Thread Leo Li
On 2017-12-13 12:23 PM, Maarten Lankhorst wrote: Op 13-12-17 om 17:19 schreef Leo Li: Hi Daniel, Maarten, Just digging an old thread out of the grave: https://lists.freedesktop.org/archives/dri-devel/2017-August/150495.html It's suppose to fix a memory leak on the drm_commit object during no

Re: [Intel-gfx] [PATCH] drm: rework delayed connector cleanup in connector_iter

2017-12-13 Thread Daniel Vetter
On Wed, Dec 13, 2017 at 02:35:16PM +0100, Daniel Vetter wrote: > On Wed, Dec 13, 2017 at 01:05:49PM +, Chris Wilson wrote: > > Quoting Daniel Vetter (2017-12-13 12:49:36) > > > diff --git a/drivers/gpu/drm/drm_mode_config.c > > > b/drivers/gpu/drm/drm_mode_config.c > > > index 6ffe952142e6..76

Re: [Intel-gfx] [PATCH v4 3/5] drm/i915/guc: Implement dynamic WOPCM partitioning

2017-12-13 Thread Michal Wajdeczko
On Wed, 13 Dec 2017 19:19:06 +0100, Yaodong Li wrote: On 12/13/2017 01:11 AM, Joonas Lahtinen wrote: On Tue, 2017-12-12 at 14:56 -0800, Jackie Li wrote: Hardware may have specific restrictions on GuC WOPCM partition size versus HuC firmware size. With static WOPCM partitioning, there's no w

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915: Disable the fake-irq when disabled by the user/debugfs

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915: Disable the fake-irq when disabled by the user/debugfs URL : https://patchwork.freedesktop.org/series/35319/ State : warning == Summary == Series 35319v1 drm/i915: Disable the fake-irq when disabled by the user/debugfs https://patchwork.freedesktop.org/ap

[Intel-gfx] ✓ Fi.CI.BAT: success for x86/gpu: add CFL to early quirks (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: x86/gpu: add CFL to early quirks (rev2) URL : https://patchwork.freedesktop.org/series/35109/ State : success == Summary == Series 35109v2 x86/gpu: add CFL to early quirks https://patchwork.freedesktop.org/api/1.0/series/35109/revisions/2/mbox/ Test debugfs_test:

[Intel-gfx] [PATCH] drm/i915: Disable the fake-irq when disabled by the user/debugfs

2017-12-13 Thread Chris Wilson
Through debugfs, we expose methods for igt to check and control use of the fake-irq (for missed breadcrumb detection). Currently, we don't disable the fake-irq immediately after noticing the bit being cleared, presuming that we will idle soon enough. However, we can check within the fake-irq worker

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/lpe: Remove double-encapsulation of info string

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915/lpe: Remove double-encapsulation of info string URL : https://patchwork.freedesktop.org/series/35303/ State : success == Summary == Test gem_eio: Subgroup in-flight: pass -> DMESG-WARN (shard-snb) fdo#104058 Test kms_setmode:

[Intel-gfx] [PATCH v2] x86/gpu: add CFL to early quirks

2017-12-13 Thread Lucas De Marchi
CFL was missing from intel_early_ids[]. The PCI ID needs to be there to allow the memory region to be stolen, otherwise we could have RAM being arbitrarily overwritten if for example we keep using the UEFI framebuffer, depending on how BIOS has set up the e820 map. Fixes: b056f8f3d6b9 ("drm/i915/c

[Intel-gfx] ✗ Fi.CI.BAT: failure for tests/psr: Test vblank continuity with PSR enabled

2017-12-13 Thread Patchwork
== Series Details == Series: tests/psr: Test vblank continuity with PSR enabled URL : https://patchwork.freedesktop.org/series/35306/ State : failure == Summary == IGT patchset tested on top of latest successful build ea7015f1fabbdfdd52a145162c658d2e90161ec5 lib/core: Don't leak dummyloads be

[Intel-gfx] ✗ Fi.CI.IGT: failure for Non-blocking commits on -ERESTARTSYS

2017-12-13 Thread Patchwork
== Series Details == Series: Non-blocking commits on -ERESTARTSYS URL : https://patchwork.freedesktop.org/series/35299/ State : failure == Summary == Test kms_frontbuffer_tracking: Subgroup fbc-1p-offscren-pri-indfb-draw-mmap-gtt: pass -> SKIP (shard-hsw) fd

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: make CS frequency read support missing more obvious

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915: make CS frequency read support missing more obvious URL : https://patchwork.freedesktop.org/series/35298/ State : success == Summary == Test kms_cursor_crc: Subgroup cursor-256x256-suspend: skip -> PASS (shard-snb) fdo#

[Intel-gfx] [PATCH i-g-t v2][CI] tests/psr: Test vblank continuity with PSR enabled

2017-12-13 Thread Dhinakaran Pandiyan
PSR allows DMC to put the system to low power states when active, but this can reset the frame counter on some platforms. The frame counter reset leads to a negative diff applied to vblank count. This subtest checks for that. v2: Some optimizations and data type changes. Cc: Rodrigo Vivi Cc: Dani

Re: [Intel-gfx] [PATCH 7/8] drm/i915/guc: Extract doorbell verification into a function

2017-12-13 Thread Michel Thierry
On 13/12/17 07:23, Michal Wajdeczko wrote: On Wed, 13 Dec 2017 13:50:45 +0100, Michał Winiarski wrote: We have the selftest that's checking doorbell create/destroy, so there's no need to check all doorbells delaying the reset every time. We do want to have that extra sanity check at module loa

Re: [Intel-gfx] [PATCH 6/8] drm/i915/guc: Extract clients allocation to submission_init

2017-12-13 Thread Michel Thierry
On 13/12/17 04:50, Michał Winiarski wrote: We can now move the clients allocation to submission_init path, rather than keeping the condition inside submission_enable called on every reset. Signed-off-by: Michał Winiarski Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Michal Wajdeczko --- Reviewe

Re: [Intel-gfx] [PATCH 5/8] drm/i915/guc: Extract doorbell creation from client allocation

2017-12-13 Thread Michel Thierry
On 13/12/17 04:50, Winiarski, Michal wrote: Full GPU reset causes GuC to be reset. This means that every time we're doing a reset, we need to talk to GuC and tell it about doorbells. Let's separate the communication part (create_doorbell) from our internal bookkeeping (reserve_doorbell) so that w

Re: [Intel-gfx] [PATCH] drm/i915: make CS frequency read support missing more obvious

2017-12-13 Thread Chris Wilson
Quoting Lionel Landwerlin (2017-12-13 17:11:54) > As suggested by Chris, we should make this more obvious for people > working with newer generations. > > Suggested-by: Chris Wilson > Signed-off-by: Lionel Landwerlin > --- > drivers/gpu/drm/i915/intel_device_info.c | 2 +- > 1 file changed, 1 i

[Intel-gfx] ✗ Fi.CI.IGT: warning for igt/tools_test: Check the tools exist before executing (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: igt/tools_test: Check the tools exist before executing (rev2) URL : https://patchwork.freedesktop.org/series/35237/ State : warning == Summary == Test kms_flip: Subgroup plain-flip-fb-recreate-interruptible: pass -> FAIL (shard-h

Re: [Intel-gfx] ✗ Fi.CI.IGT: warning for drm/i915: Unwind i915_gem_init() failure (rev4)

2017-12-13 Thread Chris Wilson
Quoting Patchwork (2017-12-13 18:26:21) > == Series Details == > > Series: drm/i915: Unwind i915_gem_init() failure (rev4) > URL : https://patchwork.freedesktop.org/series/35060/ > State : warning > > == Summary == > > Test gem_tiled_swapping: > Subgroup non-threaded: >

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/lpe: Remove double-encapsulation of info string

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915/lpe: Remove double-encapsulation of info string URL : https://patchwork.freedesktop.org/series/35303/ State : success == Summary == Series 35303v1 drm/i915/lpe: Remove double-encapsulation of info string https://patchwork.freedesktop.org/api/1.0/series/353

Re: [Intel-gfx] [PATCH] drm/i915: properly init lockdep class

2017-12-13 Thread Peter Zijlstra
On Wed, Dec 13, 2017 at 06:36:33PM +0100, Sebastian Andrzej Siewior wrote: > +peterz > context: http://www.spinics.net/lists/intel-gfx/msg149011.html > > On 2017-12-13 17:37:21 [+0200], Joonas Lahtinen wrote: > > On Wed, 2017-12-13 at 16:06 +0100, Sebastian Andrzej Siewior wrote: > > > On 2017-12-

[Intel-gfx] ✓ Fi.CI.IGT: success for HAX mm: Prevent stalling for lock_page in deferred_split_scan

2017-12-13 Thread Patchwork
== Series Details == Series: HAX mm: Prevent stalling for lock_page in deferred_split_scan URL : https://patchwork.freedesktop.org/series/35294/ State : success == Summary == Test kms_frontbuffer_tracking: Subgroup fbc-1p-primscrn-pri-shrfb-draw-render: pass -> FA

[Intel-gfx] ✗ Fi.CI.IGT: warning for drm/i915: Unwind i915_gem_init() failure (rev4)

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915: Unwind i915_gem_init() failure (rev4) URL : https://patchwork.freedesktop.org/series/35060/ State : warning == Summary == Test gem_tiled_swapping: Subgroup non-threaded: pass -> INCOMPLETE (shard-snb) fdo#104009

[Intel-gfx] ✗ Fi.CI.IGT: warning for tests/kms_frontbuffer_tracking: Correctly handle debugfs errors

2017-12-13 Thread Patchwork
== Series Details == Series: tests/kms_frontbuffer_tracking: Correctly handle debugfs errors URL : https://patchwork.freedesktop.org/series/34555/ State : warning == Summary == Test kms_frontbuffer_tracking: Subgroup fbc-1p-offscren-pri-shrfb-draw-blt: fail -> PAS

[Intel-gfx] ✓ Fi.CI.IGT: success for Create a new directory for hardware-targeting tests

2017-12-13 Thread Patchwork
== Series Details == Series: Create a new directory for hardware-targeting tests URL : https://patchwork.freedesktop.org/series/35288/ State : success == Summary == Test kms_cursor_crc: Subgroup cursor-256x256-suspend: skip -> PASS (shard-snb) fdo#103375 Tes

Re: [Intel-gfx] [PATCH v4 1/5] drm/i915/guc: Move GuC WOPCM related code into separate files

2017-12-13 Thread Yaodong Li
On 12/13/2017 12:19 AM, Joonas Lahtinen wrote: On Tue, 2017-12-12 at 14:56 -0800, Jackie Li wrote: intel_guc_reg.h should only include definition for GuC registers and related register bits. GuC WOPCM related values should not be defined in intel_guc_reg.h This patch creates a better file struc

[Intel-gfx] [PATCH] drm/i915/lpe: Remove double-encapsulation of info string

2017-12-13 Thread Chris Wilson
Just printk the string, or at least do not double up on the newlines! Fixes: eef57324d926 ("drm/i915: setup bridge for HDMI LPE audio driver") Signed-off-by: Chris Wilson Cc: Pierre-Louis Bossart Cc: Jerome Anand Cc: Jani Nikula Cc: Takashi Iwai --- drivers/gpu/drm/i915/intel_lpe_audio.c | 2

Re: [Intel-gfx] [PATCH v4 3/5] drm/i915/guc: Implement dynamic WOPCM partitioning

2017-12-13 Thread Yaodong Li
On 12/13/2017 01:11 AM, Joonas Lahtinen wrote: On Tue, 2017-12-12 at 14:56 -0800, Jackie Li wrote: Hardware may have specific restrictions on GuC WOPCM partition size versus HuC firmware size. With static WOPCM partitioning, there's no way to adjust the GuC WOPCM partition size based on the actu

Re: [Intel-gfx] [PATCH] x86/gpu: add CFL to early quirks

2017-12-13 Thread Lucas De Marchi
On Wed, Dec 13, 2017 at 2:11 AM, Jani Nikula wrote: > On Tue, 12 Dec 2017, Lucas De Marchi wrote: >> On Tue, Dec 12, 2017 at 1:53 AM, Joonas Lahtinen >> wrote: >>> + Jani, who'll continue with -fixes >>> >>> On Mon, 2017-12-11 at 13:50 -0800, Lucas De Marchi wrote: On Mon, Dec 11, 2017 at 2

Re: [Intel-gfx] [PATCH 8/8] HAX Enable GuC Submission for CI

2017-12-13 Thread Chris Wilson
Quoting Michał Winiarski (2017-12-13 12:50:46) > Also: > > Revert "drm/i915/GuC/GLK: Load GuC on GLK" > > Now that we no longer have fallback to execlists submission available, > if the firmware is selected by the driver but is not available on the > system (like in this case - where the FW is no

[Intel-gfx] ✓ Fi.CI.BAT: success for Non-blocking commits on -ERESTARTSYS

2017-12-13 Thread Patchwork
== Series Details == Series: Non-blocking commits on -ERESTARTSYS URL : https://patchwork.freedesktop.org/series/35299/ State : success == Summary == Series 35299v1 Non-blocking commits on -ERESTARTSYS https://patchwork.freedesktop.org/api/1.0/series/35299/revisions/1/mbox/ Test kms_pipe_crc_

Re: [Intel-gfx] [PATCH] drm/i915: properly init lockdep class

2017-12-13 Thread Sebastian Andrzej Siewior
+peterz context: http://www.spinics.net/lists/intel-gfx/msg149011.html On 2017-12-13 17:37:21 [+0200], Joonas Lahtinen wrote: > On Wed, 2017-12-13 at 16:06 +0100, Sebastian Andrzej Siewior wrote: > > On 2017-12-13 16:00:49 [+0200], Joonas Lahtinen wrote: > > > On Thu, 2017-11-30 at 16:19 +0100, Se

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: make CS frequency read support missing more obvious

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915: make CS frequency read support missing more obvious URL : https://patchwork.freedesktop.org/series/35298/ State : success == Summary == Series 35298v1 drm/i915: make CS frequency read support missing more obvious https://patchwork.freedesktop.org/api/1.0/

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/8] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Patchwork
== Series Details == Series: series starting with [1/8] drm/i915/guc: Move shared data allocation away from submission path URL : https://patchwork.freedesktop.org/series/35287/ State : success == Summary == Warning: bzip CI_DRM_3507/shard-glkb6/results33.json.bz2 wasn't in correct JSON form

[Intel-gfx] ✗ Fi.CI.IGT: warning for drm: rework delayed connector cleanup in connector_iter (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: drm: rework delayed connector cleanup in connector_iter (rev2) URL : https://patchwork.freedesktop.org/series/35282/ State : warning == Summary == Warning: bzip CI_DRM_3507/shard-glkb6/results33.json.bz2 wasn't in correct JSON format Test kms_setmode: Subg

Re: [Intel-gfx] Non-blocking commits on -ERESTARTSYS

2017-12-13 Thread Maarten Lankhorst
Op 13-12-17 om 17:19 schreef Leo Li: > Hi Daniel, Maarten, > > Just digging an old thread out of the grave: > https://lists.freedesktop.org/archives/dri-devel/2017-August/150495.html > > It's suppose to fix a memory leak on the drm_commit object during > non-blocking commits. Within drm_atomic_help

[Intel-gfx] ✓ Fi.CI.BAT: success for igt/tools_test: Check the tools exist before executing (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: igt/tools_test: Check the tools exist before executing (rev2) URL : https://patchwork.freedesktop.org/series/35237/ State : success == Summary == IGT patchset tested on top of latest successful build 4112f30aedbb252bf8cdd27dbba485c0458faca7 igt/gem_shrink: Exercise

[Intel-gfx] [PATCH] drm/i915: make CS frequency read support missing more obvious

2017-12-13 Thread Lionel Landwerlin
As suggested by Chris, we should make this more obvious for people working with newer generations. Suggested-by: Chris Wilson Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/intel_device_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/in

[Intel-gfx] ✓ Fi.CI.BAT: success for tests/kms_frontbuffer_tracking: Correctly handle debugfs errors

2017-12-13 Thread Patchwork
== Series Details == Series: tests/kms_frontbuffer_tracking: Correctly handle debugfs errors URL : https://patchwork.freedesktop.org/series/34555/ State : success == Summary == IGT patchset tested on top of latest successful build 4112f30aedbb252bf8cdd27dbba485c0458faca7 igt/gem_shrink: Exerci

Re: [Intel-gfx] No FBC on Cherry Trail ?

2017-12-13 Thread Ville Syrjälä
On Wed, Dec 13, 2017 at 05:45:01PM +0100, Hans de Goede wrote: > Hi All, > > intel_cherryview_info in drivers/gpu/drm/i915/i915_pci.c > does not have has_fbc set. Is this an oversight / does > the i915 code need work to allow FBC on CHT, or does CHT > actually not have FBC? The code is correct. N

[Intel-gfx] No FBC on Cherry Trail ?

2017-12-13 Thread Hans de Goede
Hi All, intel_cherryview_info in drivers/gpu/drm/i915/i915_pci.c does not have has_fbc set. Is this an oversight / does the i915 code need work to allow FBC on CHT, or does CHT actually not have FBC? Regards, Hans ___ Intel-gfx mailing list Intel-gfx@

[Intel-gfx] ✓ Fi.CI.BAT: success for Create a new directory for hardware-targeting tests

2017-12-13 Thread Patchwork
== Series Details == Series: Create a new directory for hardware-targeting tests URL : https://patchwork.freedesktop.org/series/35288/ State : success == Summary == IGT patchset tested on top of latest successful build 4112f30aedbb252bf8cdd27dbba485c0458faca7 igt/gem_shrink: Exercise allocatio

[Intel-gfx] ✓ Fi.CI.BAT: success for HAX mm: Prevent stalling for lock_page in deferred_split_scan

2017-12-13 Thread Patchwork
== Series Details == Series: HAX mm: Prevent stalling for lock_page in deferred_split_scan URL : https://patchwork.freedesktop.org/series/35294/ State : success == Summary == Series 35294v1 HAX mm: Prevent stalling for lock_page in deferred_split_scan https://patchwork.freedesktop.org/api/1.0/

[Intel-gfx] [PATCH libdrm] headers: Update drm_i915.h

2017-12-13 Thread Michał Winiarski
Generated using make header_install. Generated from drm-intel-next-queued commit 53ff2641a817099e1c6d1aef409ba004c3a9f1ea Signed-off-by: Michał Winiarski --- include/drm/i915_drm.h | 215 ++--- 1 file changed, 202 insertions(+), 13 deletions(-) diff

Re: [Intel-gfx] [PATCH i-g-t 4/4] run-tests.sh: Allow users to override IGT_TEST_ROOT

2017-12-13 Thread Arkadiusz Hiler
On Wed, Dec 13, 2017 at 02:58:16PM +0200, Petri Latvala wrote: > Signed-off-by: Petri Latvala > Cc: Arkadiusz Hiler Reviewed-by: Arkadiusz Hiler ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/i

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915/guc: Move GuC workqueue allocations outside of the mutex

2017-12-13 Thread Chris Wilson
Quoting Chris Wilson (2017-12-13 15:23:31) > Quoting Michał Winiarski (2017-12-13 12:50:40) > > This gets rid of the following lockdep splat: > > > > == > > WARNING: possible circular locking dependency detected > > 4.15.0-rc2-CI-Patchwork_7428+

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Unwind i915_gem_init() failure (rev4)

2017-12-13 Thread Patchwork
== Series Details == Series: drm/i915: Unwind i915_gem_init() failure (rev4) URL : https://patchwork.freedesktop.org/series/35060/ State : success == Summary == Series 35060v4 drm/i915: Unwind i915_gem_init() failure https://patchwork.freedesktop.org/api/1.0/series/35060/revisions/4/mbox/ Tes

[Intel-gfx] [PATCH] HAX mm: Prevent stalling for lock_page in deferred_split_scan

2017-12-13 Thread Chris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=104009 Suggest-Cc: Kirill A. Shutemov Suggest-Cc: Vlastimil Babka Suggest-Cc: Jerome Marchand Suggest-Cc: Andrea Arcangeli Suggest-Cc: Hugh Dickins Suggest-Cc: Dave Hansen Suggest-Cc: Mel Gorman Suggest-Cc: Rik van Riel Suggest-Cc: J

Re: [Intel-gfx] [PATCH] drm/i915: properly init lockdep class

2017-12-13 Thread Joonas Lahtinen
On Wed, 2017-12-13 at 16:06 +0100, Sebastian Andrzej Siewior wrote: > On 2017-12-13 16:00:49 [+0200], Joonas Lahtinen wrote: > > On Thu, 2017-11-30 at 16:19 +0100, Sebastian Andrzej Siewior wrote: > > > The code has an ifdef and uses two functions to either init the bare > > > spinlock or init it a

Re: [Intel-gfx] [PATCH 1/8] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Chris Wilson
Quoting Michał Winiarski (2017-12-13 12:50:39) > We need shared data for actions (e.g. guc suspend/resume), and we're > using those with GuC submission disabled. > Let's introduce intel_guc_init and move shared data alloc there. > > This fixes GPF during module unload with HuC, but without GuC sub

Re: [Intel-gfx] [PATCH 4/8] drm/i915/guc: Call invalidate after changing the vfunc

2017-12-13 Thread Chris Wilson
Quoting Michał Winiarski (2017-12-13 12:50:42) > To make this operation a bit cleaner, we should make sure that the HW > can catch up by calling the new implementation right away. > Note that currently we're only touching the vfunc at module load time > (before GuC is even loaded), so this shouldn'

Re: [Intel-gfx] [PATCH 7/8] drm/i915/guc: Extract doorbell verification into a function

2017-12-13 Thread Michal Wajdeczko
On Wed, 13 Dec 2017 13:50:45 +0100, Michał Winiarski wrote: We have the selftest that's checking doorbell create/destroy, so there's no need to check all doorbells delaying the reset every time. We do want to have that extra sanity check at module load/unload though. Signed-off-by: Michał Wi

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915/guc: Move GuC workqueue allocations outside of the mutex

2017-12-13 Thread Chris Wilson
Quoting Michał Winiarski (2017-12-13 12:50:40) > This gets rid of the following lockdep splat: > > == > WARNING: possible circular locking dependency detected > 4.15.0-rc2-CI-Patchwork_7428+ #1 Not tainted > --

Re: [Intel-gfx] [PATCH v6 0/5] drm/i915: Expose more GPU properties through sysfs

2017-12-13 Thread Lionel Landwerlin
On 13/12/17 13:35, Chris Wilson wrote: Quoting Daniel Vetter (2017-12-13 08:17:17) On Tue, Dec 12, 2017 at 02:33:38PM +, Lionel Landwerlin wrote: On 12/12/17 11:19, Tvrtko Ursulin wrote: On 11/12/2017 21:05, Daniel Vetter wrote: On Mon, Dec 11, 2017 at 02:38:53PM +, Tvrtko Ursulin wro

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/8] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Patchwork
== Series Details == Series: series starting with [1/8] drm/i915/guc: Move shared data allocation away from submission path URL : https://patchwork.freedesktop.org/series/35287/ State : success == Summary == Series 35287v1 series starting with [1/8] drm/i915/guc: Move shared data allocation

Re: [Intel-gfx] [PATCH] drm/i915: properly init lockdep class

2017-12-13 Thread Sebastian Andrzej Siewior
On 2017-12-13 16:00:49 [+0200], Joonas Lahtinen wrote: > On Thu, 2017-11-30 at 16:19 +0100, Sebastian Andrzej Siewior wrote: > > The code has an ifdef and uses two functions to either init the bare > > spinlock or init it and set a lock-class. It is possible to do the same > > thing without an ifde

Re: [Intel-gfx] [PATCH v6 0/5] drm/i915: Expose more GPU properties through sysfs

2017-12-13 Thread Lionel Landwerlin
On 13/12/17 08:17, Daniel Vetter wrote: On Tue, Dec 12, 2017 at 02:33:38PM +, Lionel Landwerlin wrote: On 12/12/17 11:19, Tvrtko Ursulin wrote: On 11/12/2017 21:05, Daniel Vetter wrote: On Mon, Dec 11, 2017 at 02:38:53PM +, Tvrtko Ursulin wrote: On 11/12/2017 10:50, Joonas Lahtinen wr

[Intel-gfx] [PATCH igt v2] igt/tools_test: Check the tools exist before executing

2017-12-13 Thread Chris Wilson
As a simple fail-safe against a bad installation, check the tools exist before testing whether they work. v2: Check intel_l3_parity as well Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102935 Signed-off-by: Chris Wilson Reviewed-by: Petri Latvala Reviewed-by: Joonas Lahtinen --- tes

[Intel-gfx] ✓ Fi.CI.BAT: success for drm: rework delayed connector cleanup in connector_iter (rev2)

2017-12-13 Thread Patchwork
== Series Details == Series: drm: rework delayed connector cleanup in connector_iter (rev2) URL : https://patchwork.freedesktop.org/series/35282/ State : success == Summary == Series 35282v2 drm: rework delayed connector cleanup in connector_iter https://patchwork.freedesktop.org/api/1.0/serie

Re: [Intel-gfx] [PATCH i-g-t v2] lib/igt_sysfs: Let igt_sysfs_read|write return -errno

2017-12-13 Thread Michal Wajdeczko
On Thu, 07 Dec 2017 22:00:48 +0100, Daniel Vetter wrote: On Thu, Dec 07, 2017 at 04:59:36PM +, Chris Wilson wrote: Quoting Michal Wajdeczko (2017-12-07 16:52:46) > In some cases debugfs or sysfs may return errors that we > want to check. Return -errno from helper functions to make > assert

Re: [Intel-gfx] [PATCH] drm/i915: Remove unused IRQ chip data of HDMI LPE audio

2017-12-13 Thread Thomas Gleixner
On Wed, 13 Dec 2017, Takashi Iwai wrote: > On Wed, 13 Dec 2017 12:35:54 +0100, > Thomas Gleixner wrote: > > > > > > On Mon, 11 Dec 2017, Anand, Jerome wrote: > > > > > > On Fri, 8 Dec 2017, Ville Syrjälä wrote: > > > > > > > > > > > > > On Fri, Dec 08, 2017 at 05:33:23PM +0800, Augustine.Chen wrot

Re: [Intel-gfx] [PATCH] drm/i915: properly init lockdep class

2017-12-13 Thread Joonas Lahtinen
On Thu, 2017-11-30 at 16:19 +0100, Sebastian Andrzej Siewior wrote: > The code has an ifdef and uses two functions to either init the bare > spinlock or init it and set a lock-class. It is possible to do the same > thing without an ifdef. > With this patch (in debug case) we first use the "default"

Re: [Intel-gfx] [PATCH] drm: Update edid-derived drm_display_info fields at edid property set [v2]

2017-12-13 Thread Daniel Vetter
On Wed, Dec 13, 2017 at 12:44:26AM -0800, Keith Packard wrote: > There are a set of values in the drm_display_info structure for each > connector which hold information derived from EDID. These are computed > in drm_add_display_info. Before this patch, that was only called in > drm_add_edid_modes.

[Intel-gfx] [PATCH v3] drm/i915: Unwind i915_gem_init() failure

2017-12-13 Thread Chris Wilson
Since Michal introduced new errors other than -EIO during i915_gem_init(), we need to actually unwind on the error path as we have to abort the module load (and we expect to do so cleanly!). As we now teardown key state and then mark the driver as wedged (on EIO), we have to be careful to not allo

Re: [Intel-gfx] [PATCH v6 0/5] drm/i915: Expose more GPU properties through sysfs

2017-12-13 Thread Chris Wilson
Quoting Daniel Vetter (2017-12-13 08:17:17) > On Tue, Dec 12, 2017 at 02:33:38PM +, Lionel Landwerlin wrote: > > On 12/12/17 11:19, Tvrtko Ursulin wrote: > > > > > > On 11/12/2017 21:05, Daniel Vetter wrote: > > > > On Mon, Dec 11, 2017 at 02:38:53PM +, Tvrtko Ursulin wrote: > > > > > On 1

Re: [Intel-gfx] [PATCH] drm: rework delayed connector cleanup in connector_iter

2017-12-13 Thread Daniel Vetter
On Wed, Dec 13, 2017 at 01:05:49PM +, Chris Wilson wrote: > Quoting Daniel Vetter (2017-12-13 12:49:36) > > PROBE_DEFER also uses system_wq to reprobe drivers, which means when > > that again fails, and we try to flush the overall system_wq (to get > > all the delayed connectore cleanup work_st

Re: [Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/3] drm/i915: Mark up potential allocation paths within i915_sw_fence as might_sleep

2017-12-13 Thread Chris Wilson
Quoting Patchwork (2017-12-12 19:20:00) > == Series Details == > > Series: series starting with [1/3] drm/i915: Mark up potential allocation > paths within i915_sw_fence as might_sleep > URL : https://patchwork.freedesktop.org/series/35239/ > State : success > > == Summary == > > Test gem_til

Re: [Intel-gfx] [PATCH i-g-t 2/4] tests: Move gem_bad_address to hw-tests

2017-12-13 Thread Chris Wilson
Quoting Petri Latvala (2017-12-13 12:58:14) > Since the test is considered to be HW focused, meaning that it doesn't > really exercise the driver but rather an HW feature, it is placed in > tests/hw-tests. Do we really want to keep this test at all? It's an interesting debate whether we want to sh

Re: [Intel-gfx] [PATCH] drm: rework delayed connector cleanup in connector_iter

2017-12-13 Thread Chris Wilson
Quoting Daniel Vetter (2017-12-13 12:49:36) > PROBE_DEFER also uses system_wq to reprobe drivers, which means when > that again fails, and we try to flush the overall system_wq (to get > all the delayed connectore cleanup work_struct completed), we > deadlock. > > Fix this by using just a single c

Re: [Intel-gfx] [PATCH] drm: rework delayed connector cleanup in connector_iter

2017-12-13 Thread Marek Szyprowski
Hi Daniel, On 2017-12-13 13:49, Daniel Vetter wrote: PROBE_DEFER also uses system_wq to reprobe drivers, which means when that again fails, and we try to flush the overall system_wq (to get all the delayed connectore cleanup work_struct completed), we deadlock. Fix this by using just a single c

[Intel-gfx] [PATCH i-g-t 3/4] hw-tests: Fix and update gem_bad_address

2017-12-13 Thread Petri Latvala
From: Antonio Argenziano When writing to an invalid memory location, the HW should be clever enough to silently discard the write without disrupting execution. gem_bad_address aim at just that. The test has been updated to move away from the libDrm wrappers and use the IOCTL wrappers instead. Als

[Intel-gfx] [PATCH i-g-t 2/4] tests: Move gem_bad_address to hw-tests

2017-12-13 Thread Petri Latvala
Since the test is considered to be HW focused, meaning that it doesn't really exercise the driver but rather an HW feature, it is placed in tests/hw-tests. Signed-off-by: Petri Latvala Cc: Antonio Argenziano --- tests/Makefile.sources | 1 - tests/hw-tests/Makefile.sources

[Intel-gfx] [PATCH i-g-t 1/4] tests: Add a hw-tests subdirectory

2017-12-13 Thread Petri Latvala
The hw-tests subdirectory is meant for tests that target the hardware's behaviour without the kernel having much say in matters. Tests in the directory are not meant for regular CI runs, and running them requires setting IGT_TEST_ROOT to that directory when using piglit. Signed-off-by: Petri Latva

[Intel-gfx] [PATCH i-g-t 4/4] run-tests.sh: Allow users to override IGT_TEST_ROOT

2017-12-13 Thread Petri Latvala
Signed-off-by: Petri Latvala Cc: Arkadiusz Hiler --- scripts/run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-tests.sh b/scripts/run-tests.sh index acd2ae2f..a98e06ce 100755 --- a/scripts/run-tests.sh +++ b/scripts/run-tests.sh @@ -24,7 +24,7 @@ ROO

[Intel-gfx] [PATCH i-g-t 0/4] Create a new directory for hardware-targeting tests

2017-12-13 Thread Petri Latvala
Original patch from Antonio Argenziano, split into separate commits for its separate steps. New directory created, tests/hw-tests, meant for tests that target the hardware's behaviour more than the driver's (or the combination thereof). Currently just gem_bad_address moved, with Antonio's changes

[Intel-gfx] [PATCH 8/8] HAX Enable GuC Submission for CI

2017-12-13 Thread Michał Winiarski
Also: Revert "drm/i915/GuC/GLK: Load GuC on GLK" Now that we no longer have fallback to execlists submission available, if the firmware is selected by the driver but is not available on the system (like in this case - where the FW is not yet released), we're unable to get a clean CI run. This re

[Intel-gfx] [PATCH 7/8] drm/i915/guc: Extract doorbell verification into a function

2017-12-13 Thread Michał Winiarski
We have the selftest that's checking doorbell create/destroy, so there's no need to check all doorbells delaying the reset every time. We do want to have that extra sanity check at module load/unload though. Signed-off-by: Michał Winiarski Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Michal Wajdecz

[Intel-gfx] [PATCH 6/8] drm/i915/guc: Extract clients allocation to submission_init

2017-12-13 Thread Michał Winiarski
We can now move the clients allocation to submission_init path, rather than keeping the condition inside submission_enable called on every reset. Signed-off-by: Michał Winiarski Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Michal Wajdeczko --- drivers/gpu/drm/i915/intel_guc_submission.c | 33

[Intel-gfx] [PATCH 5/8] drm/i915/guc: Extract doorbell creation from client allocation

2017-12-13 Thread Michał Winiarski
Full GPU reset causes GuC to be reset. This means that every time we're doing a reset, we need to talk to GuC and tell it about doorbells. Let's separate the communication part (create_doorbell) from our internal bookkeeping (reserve_doorbell) so that we can cleanly separate the initialization done

[Intel-gfx] [PATCH v2 3/8] drm/i915/guc: Extract guc_init from guc_init_hw

2017-12-13 Thread Michał Winiarski
After GPU reset, GuC HW needs to be reinitialized (with FW reload). Unfortunately, we're doing some extra work there (mostly allocating stuff), work that can be moved to guc_init and called once at driver load time. As a side effect we're no longer hitting an assert in i915_ggtt_enable_guc on susp

[Intel-gfx] [PATCH v2 2/8] drm/i915/guc: Move GuC workqueue allocations outside of the mutex

2017-12-13 Thread Michał Winiarski
This gets rid of the following lockdep splat: == WARNING: possible circular locking dependency detected 4.15.0-rc2-CI-Patchwork_7428+ #1 Not tainted -- debugfs_test/1351 is trying to acquire loc

[Intel-gfx] [PATCH 4/8] drm/i915/guc: Call invalidate after changing the vfunc

2017-12-13 Thread Michał Winiarski
To make this operation a bit cleaner, we should make sure that the HW can catch up by calling the new implementation right away. Note that currently we're only touching the vfunc at module load time (before GuC is even loaded), so this shouldn't cause any functional changes. Suggested-by: Chris Wi

[Intel-gfx] [PATCH 1/8] drm/i915/guc: Move shared data allocation away from submission path

2017-12-13 Thread Michał Winiarski
We need shared data for actions (e.g. guc suspend/resume), and we're using those with GuC submission disabled. Let's introduce intel_guc_init and move shared data alloc there. This fixes GPF during module unload with HuC, but without GuC submission: BUG: unable to handle kernel NULL pointer deref

  1   2   >