Re: [Intel-gfx] [PATCH 01/19] drm: Wire up proper acquire ctx for plane functions

2017-03-27 Thread Daniel Vetter
On Tue, Mar 28, 2017 at 08:23:53AM +0200, Daniel Vetter wrote: > On Mon, Mar 27, 2017 at 04:12:05PM -0400, Harry Wentland wrote: > > On Wednesday, March 22, 2017 10:50:40 PM EDT Daniel Vetter wrote: > > > This is just prep work to get an acquire ctx into every place where we > > > call ->update_pla

Re: [Intel-gfx] [PATCH 13/19] drm: simplify the locking in the GETCRTC ioctl

2017-03-27 Thread Daniel Vetter
On Mon, Mar 27, 2017 at 08:13:17PM -0400, Harry Wentland wrote: > On Wednesday, March 22, 2017 10:50:52 PM EDT Daniel Vetter wrote: > > No need to grab both plane and crtc locks at the same time, we can do > > them one after the other. If userspace races it'll get what it > > deserves either way. >

Re: [Intel-gfx] [PATCH 01/19] drm: Wire up proper acquire ctx for plane functions

2017-03-27 Thread Daniel Vetter
On Mon, Mar 27, 2017 at 04:12:05PM -0400, Harry Wentland wrote: > On Wednesday, March 22, 2017 10:50:40 PM EDT Daniel Vetter wrote: > > This is just prep work to get an acquire ctx into every place where we > > call ->update_plane or ->disable_plane. > > > > v2: Keep the hidden acquire_ctx pointer

Re: [Intel-gfx] [PATCH] drm/i915/perf: destroy stream on sample_flags mismatch

2017-03-27 Thread Mika Kuoppala
Matthew Auld writes: > If we were to ever encounter a sample_flags mismatch we need to ensure > we destroy the stream when we bail. > > Fixes: d79651522e89 ("drm/i915: Enable i915 perf stream for Haswell OA unit") > Signed-off-by: Matthew Auld > Cc: Robert Bragg Reviewed-by: Mika Kuoppala >

[Intel-gfx] ✗ Fi.CI.BAT: warning for drm/i915/scheduler: add gvt force-single-submission and notification for guc

2017-03-27 Thread Patchwork
== Series Details == Series: drm/i915/scheduler: add gvt force-single-submission and notification for guc URL : https://patchwork.freedesktop.org/series/21972/ State : warning == Summary == Series 21972v1 drm/i915/scheduler: add gvt force-single-submission and notification for guc https://pa

[Intel-gfx] [PATCH 1/2] drm/i915/scheduler: add gvt force-single-submission for guc

2017-03-27 Thread Chuanxiao Dong
GVT needs single submission and cannot allow merge. So when GuC submitting a GVT request, the next one should be submitted to guc later until the previous one is completed. This is following the usage when using execlist mode submission. Cc: ch...@chris-wilson.co.uk Signed-off-by: Chuanxiao Dong

[Intel-gfx] [PATCH 0/2] drm/i915/scheduler: add gvt force-single-submission and notification for guc

2017-03-27 Thread Chuanxiao Dong
GVT requires force-single-submission and notification when i915 using execlist submit, and these should be extended to GuC when i915 using GuC submit. Below two patches are used to implement this Chuanxiao Dong (2): drm/i915/scheduler: add gvt force-single-submission for guc drm/i915/scheduler

[Intel-gfx] [PATCH 2/2] drm/i915/scheduler: add gvt notification for guc

2017-03-27 Thread Chuanxiao Dong
GVT request needs a manual mmio load/restore. Before GuC submit a request, send notification to gvt for mmio loading. And after the GuC finished this GVT request, notify gvt again for mmio restore. This follows the usage when using execlists submission. Cc: xiao.zh...@intel.com Cc: kevin.t...@inte

Re: [Intel-gfx] [PATCH 13/19] drm: simplify the locking in the GETCRTC ioctl

2017-03-27 Thread Harry Wentland
On Wednesday, March 22, 2017 10:50:52 PM EDT Daniel Vetter wrote: > No need to grab both plane and crtc locks at the same time, we can do > them one after the other. If userspace races it'll get what it > deserves either way. > > This removes another user of drm_modeset_lock_crtc. There's only one

Re: [Intel-gfx] [PATCHi v2] drm/i915: Enhanced disable access to stolen memory as a guest

2017-03-27 Thread Zhang, Xiong Y
> > Reviewed-by: Zhenyu Wang > > Entirely disabling stolen is rather massive, this stuff is supposed to > work ... There should be special RMRR mappings in the iommu to help the > guest access the stolen range correctly from the gpu. > > Which machine where does this blow up on? > -Daniel [Zhang

Re: [Intel-gfx] [PATCH v5 17/18] drm/i915: Watchdog timeout: DRM kernel interface to set the timeout

2017-03-27 Thread Michel Thierry
On 25/03/17 02:38, Chris Wilson wrote: On Fri, Mar 24, 2017 at 06:30:09PM -0700, Michel Thierry wrote: Final enablement patch for GPU hang detection using watchdog timeout. Using the gem_context_setparam ioctl, users can specify the desired timeout value in microseconds, and the driver will do

Re: [Intel-gfx] [PATCH 00/19] wire acquire ctx through legacy modeset paths

2017-03-27 Thread Harry Wentland
Patches 2-5, 9-12, 14-19: Reviewed-by: Harry Wentland Patches 1,13: Questions in response to those patches Patches 6-8: Acked-by: Harry Wentland Looks like a nice cleanup. Harry On Wednesday, March 22, 2017 10:50:39 PM EDT Daniel Vetter wrote: > Hi all, > > This is something I kinda had on

Re: [Intel-gfx] [PATCH v4 03/13] drm/i915/guc: Add onion teardown to the GuC setup

2017-03-27 Thread Oscar Mateo
On 03/24/2017 01:59 AM, Chris Wilson wrote: On Thu, Mar 23, 2017 at 09:36:10AM -0700, Oscar Mateo wrote: On 03/23/2017 03:57 PM, Chris Wilson wrote: I'm not happy with moving subfeature detection logic into the core GEM code. if (i915.enable_guc_loading) firstly should never be a module param

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/dp: Validate cached link rate and lane count before retraining (rev2)

2017-03-27 Thread Patchwork
== Series Details == Series: drm/i915/dp: Validate cached link rate and lane count before retraining (rev2) URL : https://patchwork.freedesktop.org/series/21797/ State : success == Summary == Series 21797v2 drm/i915/dp: Validate cached link rate and lane count before retraining https://patch

Re: [Intel-gfx] Panic after S3 resume and modeset with MST

2017-03-27 Thread Lyude Paul
Hi! Just an FYI I am planning on taking a look at this very soon On Mon, 2017-03-27 at 18:02 +0200, Takashi Iwai wrote: > Hi, > > the upstream fix a16b7658f4e0d4aec9bc3e75a5f0cc3f7a3a0422 > drm/i915: Call intel_dp_mst_resume() before resuming displays > > seems to trigger a kernel panic when

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/perf: destroy stream on sample_flags mismatch

2017-03-27 Thread Patchwork
== Series Details == Series: drm/i915/perf: destroy stream on sample_flags mismatch URL : https://patchwork.freedesktop.org/series/21954/ State : success == Summary == Series 21954v1 drm/i915/perf: destroy stream on sample_flags mismatch https://patchwork.freedesktop.org/api/1.0/series/21954/r

Re: [Intel-gfx] [PATCH v5 15/18] drm/i915: Watchdog timeout: IRQ handler for gen8+

2017-03-27 Thread Michel Thierry
On 25/03/17 02:26, Chris Wilson wrote: On Fri, Mar 24, 2017 at 06:30:07PM -0700, Michel Thierry wrote: diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 87e76ef589b1..d484cbc561eb 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_ir

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/perf: remove user triggerable warn

2017-03-27 Thread Patchwork
== Series Details == Series: drm/i915/perf: remove user triggerable warn URL : https://patchwork.freedesktop.org/series/21953/ State : success == Summary == Series 21953v1 drm/i915/perf: remove user triggerable warn https://patchwork.freedesktop.org/api/1.0/series/21953/revisions/1/mbox/ fi-b

[Intel-gfx] [PATCH v2] drm/i915/dp: Validate cached link rate and lane count before retraining

2017-03-27 Thread Manasi Navare
Currently intel_dp_check_link_status() tries to retrain the link if Clock recovery or Channel EQ for any of the lanes indicated by intel_dp->lane_count is not set. However these values cached in intel_dp structure can be stale if link training has failed for these values during previous modeset. Or

Re: [Intel-gfx] [PATCH v2] drm/i915/perf: rate limit spurious oa report notice

2017-03-27 Thread Matthew Auld
On 03/23, Robert Bragg wrote: > This change is pre-emptively aiming to avoid a potential cause of kernel > logging noise in case some condition were to result in us seeing invalid > OA reports. > > The workaround for the OA unit's tail pointer race condition is what > avoids the primary know cause

Re: [Intel-gfx] [PATCH] drm/i915: Keep all engine locks across scheduling

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 10:06:45PM +0100, Chris Wilson wrote: > On Mon, Mar 27, 2017 at 11:11:47AM +0100, Tvrtko Ursulin wrote: > > > > On 26/03/2017 09:46, Chris Wilson wrote: > > >Unlocking is dangerous. In this case we combine an early update to the > > >out-of-queue request, because we know th

Re: [Intel-gfx] [PATCH] drm/i915: Keep all engine locks across scheduling

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 11:11:47AM +0100, Tvrtko Ursulin wrote: > > On 26/03/2017 09:46, Chris Wilson wrote: > >Unlocking is dangerous. In this case we combine an early update to the > >out-of-queue request, because we know that it will be inserted into the > >correct FIFO priority-ordered slot wh

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Keep all engine locks across scheduling (rev3)

2017-03-27 Thread Patchwork
== Series Details == Series: drm/i915: Keep all engine locks across scheduling (rev3) URL : https://patchwork.freedesktop.org/series/21890/ State : success == Summary == Series 21890v3 drm/i915: Keep all engine locks across scheduling https://patchwork.freedesktop.org/api/1.0/series/21890/revi

Re: [Intel-gfx] [PATCH v5 02/18] drm/i915: Rename gen8_(un)request_engine_reset to gen8_(un)request_reset_engine

2017-03-27 Thread Michel Thierry
On 25/03/17 02:01, Chris Wilson wrote: On Fri, Mar 24, 2017 at 06:29:54PM -0700, Michel Thierry wrote: As all other functions related to resetting engines are using reset_engine. However, we should aim to clear any confusion between this and our requests. Maybe gen8_reset_engine_start and gen

[Intel-gfx] [PATCH] drm/i915/perf: destroy stream on sample_flags mismatch

2017-03-27 Thread Matthew Auld
If we were to ever encounter a sample_flags mismatch we need to ensure we destroy the stream when we bail. Fixes: d79651522e89 ("drm/i915: Enable i915 perf stream for Haswell OA unit") Signed-off-by: Matthew Auld Cc: Robert Bragg --- drivers/gpu/drm/i915/i915_perf.c | 3 ++- 1 file changed, 2 i

[Intel-gfx] [PATCH] drm/i915/perf: remove user triggerable warn

2017-03-27 Thread Matthew Auld
Don't throw a warning if we are given an invalid property id. While here let's also bring back Robert' original idea of catching unhandled enumeration values at compile time. Fixes: eec688e1420d ("drm/i915: Add i915 perf infrastructure") Signed-off-by: Matthew Auld Cc: Robert Bragg --- drivers/

Re: [Intel-gfx] [PATCH 01/19] drm: Wire up proper acquire ctx for plane functions

2017-03-27 Thread Harry Wentland
On Wednesday, March 22, 2017 10:50:40 PM EDT Daniel Vetter wrote: > This is just prep work to get an acquire ctx into every place where we > call ->update_plane or ->disable_plane. > > v2: Keep the hidden acquire_ctx pointers valid while transitioning. > > Signed-off-by: Daniel Vetter > --- > d

Re: [Intel-gfx] [PATCH] drm/i915/dp: reduce link M/N parameters

2017-03-27 Thread Pandiyan, Dhinakaran
On Mon, 2017-03-27 at 22:31 +0300, Jani Nikula wrote: > On Mon, 27 Mar 2017, "Pandiyan, Dhinakaran" > wrote: > > On Mon, 2017-03-27 at 14:33 +0300, Jani Nikula wrote: > >> Several major vendor USB-C->HDMI converters, in particular the DA200, > >> fail to recover a 5.4 GHz 1 lane signal if the lin

[Intel-gfx] [PATCH v2] drm/i915: Avoid lock dropping between rescheduling

2017-03-27 Thread Chris Wilson
Unlocking is dangerous. In this case we combine an early update to the out-of-queue request, because we know that it will be inserted into the correct FIFO priority-ordered slot when it becomes ready in the future. However, given sufficient enthusiasm, it may become ready as we are continuing to re

Re: [Intel-gfx] [PATCH] drm/i915/dp: reduce link M/N parameters

2017-03-27 Thread Jani Nikula
On Mon, 27 Mar 2017, "Pandiyan, Dhinakaran" wrote: > On Mon, 2017-03-27 at 14:33 +0300, Jani Nikula wrote: >> Several major vendor USB-C->HDMI converters, in particular the DA200, >> fail to recover a 5.4 GHz 1 lane signal if the link N is greater than >> 0x8. >> >> The link M and N depend o

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Cursor code cleanup and cursor "FBC" support for IVB+ (rev2)

2017-03-27 Thread Patchwork
== Series Details == Series: drm/i915: Cursor code cleanup and cursor "FBC" support for IVB+ (rev2) URL : https://patchwork.freedesktop.org/series/20835/ State : success == Summary == Series 20835v2 drm/i915: Cursor code cleanup and cursor "FBC" support for IVB+ https://patchwork.freedesktop.o

Re: [Intel-gfx] [PATCH] drm/i915: Click the ACTHD three times to go home

2017-03-27 Thread Jani Nikula
On Sat, 25 Mar 2017, Chris Wilson wrote: > One POSTING_READ of ACTHD may not be enough to ensure that the seqno > write has been posted from the GPU and is now visible. So do three! > > References: https://bugs.freedesktop.org/show_bug.cgi?id=97557 > References: https://bugs.freedesktop.org/show_b

[Intel-gfx] [PATCH 15/15] drm/i915: Simplify cursor register write sequence

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä It looks like simply writing all the cursor register every single time might be slightly faster than checking to see of each of them need to be written. So if any other register apart from CURPOS needs to be written let's just write all the registers. CURPOS is left as a spec

[Intel-gfx] [PATCH 14/15] drm/i915: Relax 845/865 CURBASE alignemnt requirement to 32 bytes

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Supposedly 845/865 require only 32 byte alignment for CURBASE. Let's relax the checks to allow that instead of demanding 4KiB alignment. This will allow cursor panning in 8 pixel units. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_display.c | 2 ++ 1 file cha

[Intel-gfx] [PATCH 13/15] drm/i915: Handle fb offset and src coordinates for cursors

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä The cursor plane doesn't have any kind of source offset register, so the only form of panning possible is via a the base address register. The alignment required by CURBASE ranges from 32B to 16KiB depending on the platform. Let's make sure the user didn't ask for something we

[Intel-gfx] [PATCH 12/15] drm/i915: Fix gen3 physical cursor alignment requirements

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Bspec tells us that gen3 platforms need 4KiB alignment for CURBASE rather than the 256 byte alignment required by i85x. Let's fix that and pull the code to determine the correct alignment to a helper function. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_disp

[Intel-gfx] [PATCH v7 11/15] drm/i915: Support variable cursor height on ivb+

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä IVB introduced the CUR_FBC_CTL register which allows reducing the cursor height down to 8 lines from the otherwise square cursor dimensions. Implement support for it. CUR_FBC_CTL can't be used when the cursor is rotated. Commandeer the otherwise unused cursor->cursor.size to

[Intel-gfx] [PATCH v2 03/15] drm/i915: Refactor CURBASE calculation

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä The remaining cursor base address calculations are spread around into several different locations. Just pull it all into one place. v2: Don't pass intel_plane as we don't really need it Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/intel_

[Intel-gfx] [PATCH 04/15] drm/i915: Clean up cursor junk from intel_crtc

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Move cursor_base, cursor_cntl, and cursor_size from intel_crtc into intel_plane so that we don't need the crtc for cursor stuff so much. Also entirely nuke cursor_addr which IMO doesn't provide any benefit since it's not actually used by the cursor code itself. I'm not 100% s

[Intel-gfx] [PATCH v2 07/15] drm/i915: Drop useless posting reads from cursor commit

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä There should be no need to do posting reads between all the cursor register accessess. Let's just drop them. v2: Rebase due to I915_WRITE_FW() and uncore.lock Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson #v1 --- drivers/gpu/drm/i915/intel_display.c | 32

[Intel-gfx] [PATCH v2 10/15] drm/i915: Use fb->pitches[0] in cursor code

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä The cursor code currently ignores fb->pitches[0] (except when creating the fb itself), and just uses the cursor_width*4 as the stride. Let's make sure fb->pitches[0] actually matches what we expect it to be. We can also relax the stride vs. cursor width relationship on 845/86

[Intel-gfx] [PATCH v2 06/15] drm/i915: Move cursor position and base handling into the platform specific functions

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Supposedly on some platforms we can get extra atomicity guarantees for CURPOS if we write it between the CURCNTR and CURBASE. Let's move the CURPOS handling into the platform specific hooks to make the possible without having to pass the calculated CURPOS around. And while at

[Intel-gfx] [PATCH v2 08/15] drm/i915: Split cursor check_plane into i845 and i9xx variants

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä The 845/865 and 830/855/9xx+ style cursor don't have that much in common with each other, so let's just split the .check_plane() hook into two variants as well. v2: Keep the common stuff in one place (Chris) Cc: Chris Wilson Signed-off-by: Ville Syrjälä Reviewed-by: Chris

[Intel-gfx] [PATCH 01/15] drm/i915: Parametrize cursor/primary pipe select bits

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/i915_reg.h | 7 ++- drivers/gpu/drm/i915/intel_display.c | 9 +++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm

[Intel-gfx] [PATCH v2 00/15] drm/i915: Cursor code cleanup and cursor "FBC" support for IVB+ (v2)

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Another iteration of my cursor stuff. I ended up expanding it quite a bit because I decided that I need to handle the fb/src offsets correctly. I also tried to address some of Chris's review feedback, mainly about sharing some of the code between the i9xx and i845/i865 codepa

[Intel-gfx] [PATCH 09/15] drm/i915: Generalize cursor size checks a bit

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä We have the maximum cursor dimensions stored in the mode_config, so let's just consult that information instead of hardcoding the same information in multiple places. We still need to keep some per-platform checks as the limitations are quite diverse. Signed-off-by: Ville Sy

[Intel-gfx] [PATCH 02/15] drm/i915: Pass intel_plane and intel_crtc to plane hooks

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Streamline things by passing intel_plane and intel_crtc instead of the drm types to our plane hooks. Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- drivers/gpu/drm/i915/intel_atomic_plane.c | 6 +- drivers/gpu/drm/i915/intel_display.c | 109 +

[Intel-gfx] [PATCH v2 05/15] drm/i915: Refactor CURPOS calculation

2017-03-27 Thread ville . syrjala
From: Ville Syrjälä Move the CURPOS calculations to seprate function. This will allow sharing the code between the 845/865 vs. others codepaths when we otherwise split them apart. v2: Don't pass intel_plane as it's not needed Signed-off-by: Ville Syrjälä Reviewed-by: Chris Wilson --- drivers

Re: [Intel-gfx] [PATCH] drm/i915/dp: reduce link M/N parameters

2017-03-27 Thread Pandiyan, Dhinakaran
On Mon, 2017-03-27 at 14:33 +0300, Jani Nikula wrote: > Several major vendor USB-C->HDMI converters, in particular the DA200, > fail to recover a 5.4 GHz 1 lane signal if the link N is greater than > 0x8. > > The link M and N depend on the pixel clock and link clock ratio. With > current code

Re: [Intel-gfx] [PATCH] drm/i915/dp: Validate cached link rate and lane count before retraining

2017-03-27 Thread Manasi Navare
On Mon, Mar 27, 2017 at 08:21:21PM +0300, Ville Syrjälä wrote: > On Mon, Mar 27, 2017 at 09:53:36AM -0700, Manasi Navare wrote: > > On Mon, Mar 27, 2017 at 06:26:06PM +0300, Jani Nikula wrote: > > > On Mon, 27 Mar 2017, Ville Syrjälä wrote: > > > > On Thu, Mar 23, 2017 at 04:11:32PM -0700, Manasi

Re: [Intel-gfx] intel driver 4k MST

2017-03-27 Thread Jani Nikula
On Mon, 27 Mar 2017, René Rebe wrote: > How to move forward? Is the xorg intel driver despite missing releases > under active development, or should I just use the lower performance > mode setting driver? Please file a bug over at [1], attach Xorg.0.log and dmesg with drm.debug=14 module paramete

Re: [Intel-gfx] [PATCH v5 4/8] drm: Add driver-private objects to atomic state

2017-03-27 Thread Pandiyan, Dhinakaran
On Mon, 2017-03-27 at 10:35 +0200, Maarten Lankhorst wrote: > Op 27-03-17 om 10:31 schreef Daniel Vetter: > > On Mon, Mar 27, 2017 at 10:28:42AM +0200, Maarten Lankhorst wrote: > >> Op 27-03-17 om 08:38 schreef Daniel Vetter: > >>> On Wed, Mar 22, 2017 at 03:30:49PM -0700, Dhinakaran Pandiyan wrote

Re: [Intel-gfx] [PATCH v2 5/5] drm/i915: Add more OA configs for BDW, CHV, SKL + BXT

2017-03-27 Thread Matthew Auld
On 03/23, Robert Bragg wrote: > These are auto generated from an XML description of metric sets, > currently maintained in gputop, ref: > > https://github.com/rib/gputop > > gputop-data/oa-*.xml > > scripts/i915-perf-kernelgen.py > > $ make -C gputop-data -f Makefile.xml > > Signed-off-by: R

Re: [Intel-gfx] [PATCH v2 4/5] drm/i915: Add OA unit support for Gen 8+

2017-03-27 Thread Matthew Auld
On 03/23, Robert Bragg wrote: > Enables access to OA unit metrics for BDW, CHV, SKL and BXT which all > share (more-or-less) the same OA unit design. > > Of particular note in comparison to Haswell: some OA unit HW config > state has become per-context state and as a consequence it is somewhat > m

[Intel-gfx] [PATCH 5/5] drm/i915/uc: Move fw path check to fetch_uc_fw()

2017-03-27 Thread Michal Wajdeczko
There is no reason to separately check for valid fw path before we try to fetch it. Let the fetch function take care of this. Signed-off-by: Michal Wajdeczko Cc: Arkadiusz Hiler Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_uc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletion

Re: [Intel-gfx] [PATCH] drm/i915/dp: Validate cached link rate and lane count before retraining

2017-03-27 Thread Ville Syrjälä
On Mon, Mar 27, 2017 at 09:53:36AM -0700, Manasi Navare wrote: > On Mon, Mar 27, 2017 at 06:26:06PM +0300, Jani Nikula wrote: > > On Mon, 27 Mar 2017, Ville Syrjälä wrote: > > > On Thu, Mar 23, 2017 at 04:11:32PM -0700, Manasi Navare wrote: > > >> Currently intel_dp_check_link_status() tries to re

[Intel-gfx] [PATCH 4/5] drm/i915/huc: Remove unused intel_huc_fini()

2017-03-27 Thread Michal Wajdeczko
This function is no longer used. Its functionality is covered by intel_uc_fini_fw(). Signed-off-by: Michal Wajdeczko Cc: Arkadiusz Hiler Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_huc.c | 18 -- drivers/gpu/drm/i915/intel_uc.h | 1 - 2 files changed, 19 deletions(-)

[Intel-gfx] [PATCH 3/5] drm/i915/uc: Add intel_uc_fw_fini()

2017-03-27 Thread Michal Wajdeczko
Cleanups of uc firmware structs from GuC and Huc are the same for both. Move common code to the helper function to avoid duplication. Signed-off-by: Michal Wajdeczko Cc: Arkadiusz Hiler Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_uc.c | 30 +++--- 1 file changed,

[Intel-gfx] [PATCH 2/5] drm/i915/uc: Add intel_uc_fw_type_repr()

2017-03-27 Thread Michal Wajdeczko
Some of the DRM_NOTE messages are just using "uC" without specifying which uc they are related to. We can be more user friendly. Signed-off-by: Michal Wajdeczko Cc: Arkadiusz Hiler Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_uc.c | 19 +-- drivers/gpu/drm/i915/intel_uc.h

[Intel-gfx] [PATCH 1/5] drm/i915/uc: Move intel_uc_fw_status_repr() to intel_uc.c

2017-03-27 Thread Michal Wajdeczko
The file fits better. Also use "" for invalid case. Signed-off-by: Michal Wajdeczko Cc: Arkadiusz Hiler Cc: Joonas Lahtinen --- drivers/gpu/drm/i915/intel_guc_loader.c | 16 drivers/gpu/drm/i915/intel_uc.c | 18 ++ drivers/gpu/drm/i915/intel_uc.h

Re: [Intel-gfx] [PATCH] drm/i915/dp: Validate cached link rate and lane count before retraining

2017-03-27 Thread Manasi Navare
On Mon, Mar 27, 2017 at 06:26:06PM +0300, Jani Nikula wrote: > On Mon, 27 Mar 2017, Ville Syrjälä wrote: > > On Thu, Mar 23, 2017 at 04:11:32PM -0700, Manasi Navare wrote: > >> Currently intel_dp_check_link_status() tries to retrain the link if > >> Clock recovery or Channel EQ for any of the lane

[Intel-gfx] Panic after S3 resume and modeset with MST

2017-03-27 Thread Takashi Iwai
Hi, the upstream fix a16b7658f4e0d4aec9bc3e75a5f0cc3f7a3a0422 drm/i915: Call intel_dp_mst_resume() before resuming displays seems to trigger a kernel panic when some modeset change happens after S3 resume. The details are found in openSUSE bugzilla, https://bugzilla.suse.com/show_bug.cgi?i

Re: [Intel-gfx] [PATCH] drm/i915/dp: reduce link M/N parameters

2017-03-27 Thread Clint Taylor
On 03/27/2017 08:22 AM, Jani Nikula wrote: On Mon, 27 Mar 2017, Daniel Vetter wrote: On Mon, Mar 27, 2017 at 02:33:25PM +0300, Jani Nikula wrote: Several major vendor USB-C->HDMI converters, in particular the DA200, fail to recover a 5.4 GHz 1 lane signal if the link N is greater than 0x8.

Re: [Intel-gfx] [PATCH 07/19] drm/tegra: Don't use modeset_lock_crtc

2017-03-27 Thread Daniel Vetter
On Wed, Mar 22, 2017 at 10:50:46PM +0100, Daniel Vetter wrote: > Yes the help text is unhelpful, but atomic drivers should never use > this. Just grab the lock without context or anything. > > Also an aside: Checking ->active like this doesn't protect against > nonblocking commits, this is rather

[Intel-gfx] [RFC]: Arbitrated system memory bandwidth workarounds implementation for watermark.

2017-03-27 Thread Mahesh Kumar
*Arbitrated system bandwidth workarounds for watermark.* All GEN-9 based platforms require watermark related WA to be enabled if Display memory bandwidth requirement is exceeding XX% of total available system memory bandwidth. This XX% depend on multiple factors. *e.g.* if all the enabled plan

Re: [Intel-gfx] intel driver 4k MST

2017-03-27 Thread René Rebe
Hi, On Mar 27, 2017, at 17:26, Chris Wilson wrote: > On Mon, Mar 27, 2017 at 04:47:44PM +0200, René Rebe wrote: >> Hi all, >> >> connecting a Dell 4k MST display using the xorg intel driver on two >> different machines (Surface Pro 3, Dell XPS 13 9360) results in one of the >> two halts mirro

Re: [Intel-gfx] intel driver 4k MST

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 04:47:44PM +0200, René Rebe wrote: > Hi all, > > connecting a Dell 4k MST display using the xorg intel driver on two different > machines (Surface Pro 3, Dell XPS 13 9360) results in one of the two halts > mirrored on the two MST halfs of the display. Using xrandr --left-

Re: [Intel-gfx] [PATCH] drm/i915/dp: Validate cached link rate and lane count before retraining

2017-03-27 Thread Jani Nikula
On Mon, 27 Mar 2017, Ville Syrjälä wrote: > On Thu, Mar 23, 2017 at 04:11:32PM -0700, Manasi Navare wrote: >> Currently intel_dp_check_link_status() tries to retrain the link if >> Clock recovery or Channel EQ for any of the lanes indicated by >> intel_dp->lane_count is not set. However these valu

Re: [Intel-gfx] [PATCH] drm/i915/dp: reduce link M/N parameters

2017-03-27 Thread Jani Nikula
On Mon, 27 Mar 2017, Daniel Vetter wrote: > On Mon, Mar 27, 2017 at 02:33:25PM +0300, Jani Nikula wrote: >> Several major vendor USB-C->HDMI converters, in particular the DA200, >> fail to recover a 5.4 GHz 1 lane signal if the link N is greater than >> 0x8. >> >> The link M and N depend on t

[Intel-gfx] intel driver 4k MST

2017-03-27 Thread René Rebe
Hi all, connecting a Dell 4k MST display using the xorg intel driver on two different machines (Surface Pro 3, Dell XPS 13 9360) results in one of the two halts mirrored on the two MST halfs of the display. Using xrandr --left-of / --right-of I could not yet find a combination that would correc

Re: [Intel-gfx] [PATCH] drm/i915: Click the ACTHD three times to go home

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 02:30:08PM +0100, Chris Wilson wrote: > On Mon, Mar 27, 2017 at 04:19:58PM +0300, Mika Kuoppala wrote: > > Chris Wilson writes: > > > > > On Mon, Mar 27, 2017 at 01:12:30PM +0300, Mika Kuoppala wrote: > > >> Chris Wilson writes: > > >> > > >> > One POSTING_READ of ACTHD

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Mark manually wedged engines as guilty

2017-03-27 Thread Chris Wilson
On Sat, Mar 25, 2017 at 02:19:13PM -, Patchwork wrote: > == Series Details == > > Series: drm/i915: Mark manually wedged engines as guilty > URL : https://patchwork.freedesktop.org/series/21882/ > State : success > > == Summary == > > Series 21882v1 drm/i915: Mark manually wedged engines a

Re: [Intel-gfx] [PATCH v5] drm/i915/scheduler: add gvt notification for guc submission

2017-03-27 Thread Dong, Chuanxiao
> -Original Message- > From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On > Behalf Of Chris Wilson > Sent: Monday, March 27, 2017 10:33 PM > To: Dong, Chuanxiao > Cc: Zheng, Xiao; intel-gfx@lists.freedesktop.org; > joonas.lahti...@linux.intel.com; intel-gvt-...@li

Re: [Intel-gfx] [PATCH] drm/i915: Mark manually wedged engines as guilty

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 05:20:25PM +0300, Mika Kuoppala wrote: > Chris Wilson writes: > > > Use the incoming value from debugfs/i915_wedged to select which engines > > to marked as guilty in order to force us to reset those requests > > (required to quickly bypass simulated hangs). > > > > Signed

Re: [Intel-gfx] [PATCH v5] drm/i915/scheduler: add gvt notification for guc submission

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 02:22:10PM +, Dong, Chuanxiao wrote: > > -Original Message- > > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > > Sent: Monday, March 27, 2017 9:50 PM > > To: Dong, Chuanxiao > > Cc: intel-gfx@lists.freedesktop.org; intel-gvt-...@lists.freedesktop.org; > >

Re: [Intel-gfx] [PATCH v5] drm/i915/scheduler: add gvt notification for guc submission

2017-03-27 Thread Dong, Chuanxiao
> -Original Message- > From: Chris Wilson [mailto:ch...@chris-wilson.co.uk] > Sent: Monday, March 27, 2017 9:50 PM > To: Dong, Chuanxiao > Cc: intel-gfx@lists.freedesktop.org; intel-gvt-...@lists.freedesktop.org; > Zheng, Xiao; Tian, Kevin; joonas.lahti...@linux.intel.com > Subject: Re: [

Re: [Intel-gfx] [PATCH] drm/i915: Click the ACTHD three times to go home

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 05:00:49PM +0300, Mika Kuoppala wrote: > Chris Wilson writes: > > > On Mon, Mar 27, 2017 at 04:19:58PM +0300, Mika Kuoppala wrote: > >> Chris Wilson writes: > >> > >> > On Mon, Mar 27, 2017 at 01:12:30PM +0300, Mika Kuoppala wrote: > >> >> Chris Wilson writes: > >> >>

Re: [Intel-gfx] [PATCH] drm/i915: Mark manually wedged engines as guilty

2017-03-27 Thread Mika Kuoppala
Chris Wilson writes: > Use the incoming value from debugfs/i915_wedged to select which engines > to marked as guilty in order to force us to reset those requests > (required to quickly bypass simulated hangs). > > Signed-off-by: Chris Wilson > Cc: Mika Kuoppala > --- > drivers/gpu/drm/i915/i91

Re: [Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/3] drm/i915/execlists: Wrap tail pointer after reset tweaking (rev2)

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 02:11:27PM -, Patchwork wrote: > == Series Details == > > Series: series starting with [v2,1/3] drm/i915/execlists: Wrap tail pointer > after reset tweaking (rev2) > URL : https://patchwork.freedesktop.org/series/21930/ > State : success > > == Summary == > > Serie

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [v2,1/3] drm/i915/execlists: Wrap tail pointer after reset tweaking (rev2)

2017-03-27 Thread Patchwork
== Series Details == Series: series starting with [v2,1/3] drm/i915/execlists: Wrap tail pointer after reset tweaking (rev2) URL : https://patchwork.freedesktop.org/series/21930/ State : success == Summary == Series 21930v2 Series without cover letter https://patchwork.freedesktop.org/api/1.0

Re: [Intel-gfx] [PATCH] drm/i915: Click the ACTHD three times to go home

2017-03-27 Thread Mika Kuoppala
Chris Wilson writes: > On Mon, Mar 27, 2017 at 04:19:58PM +0300, Mika Kuoppala wrote: >> Chris Wilson writes: >> >> > On Mon, Mar 27, 2017 at 01:12:30PM +0300, Mika Kuoppala wrote: >> >> Chris Wilson writes: >> >> >> >> > One POSTING_READ of ACTHD may not be enough to ensure that the seqno >>

Re: [Intel-gfx] [PATCH v3] drm/i915: Refactor tests for validity of RING_TAIL

2017-03-27 Thread Mika Kuoppala
Chris Wilson writes: > Whilst I like having the assertions clearly visible in the code, they > are quite repetitious! As we find new limits we want to incorporate into > the set of assertions, it make sense to refactor them to a common > routine. > > v2: Add a guc holdout. > > Signed-off-by: Chri

Re: [Intel-gfx] [PATCH v2 2/3] drm/i915: Assert that the request->tail fits within the ring

2017-03-27 Thread Mika Kuoppala
Chris Wilson writes: > In addition to being qword-aligned, the RING_TAIL offset must be within > the ring! > > Signed-off-by: Chris Wilson Reviewed-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/intel_lrc.c| 4 > drivers/gpu/drm/i915/intel_ringbuffer.c | 3 +++ > 2 files changed

Re: [Intel-gfx] [PATCH v5] drm/i915/scheduler: add gvt notification for guc submission

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 09:32:20PM +0800, Chuanxiao Dong wrote: > GVT request needs a manual mmio load/restore. Before GuC submit > a request, send notification to gvt for mmio loading. And after > the GuC finished this GVT request, notify gvt again for mmio > restore. This follows the usage when u

Re: [Intel-gfx] [PATCH] drm/i915/dp: Validate cached link rate and lane count before retraining

2017-03-27 Thread Ville Syrjälä
On Thu, Mar 23, 2017 at 04:11:32PM -0700, Manasi Navare wrote: > Currently intel_dp_check_link_status() tries to retrain the link if > Clock recovery or Channel EQ for any of the lanes indicated by > intel_dp->lane_count is not set. However these values cached in intel_dp > structure can be stale i

Re: [Intel-gfx] [PATCH] drm/i915: Click the ACTHD three times to go home

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 04:19:58PM +0300, Mika Kuoppala wrote: > Chris Wilson writes: > > > On Mon, Mar 27, 2017 at 01:12:30PM +0300, Mika Kuoppala wrote: > >> Chris Wilson writes: > >> > >> > One POSTING_READ of ACTHD may not be enough to ensure that the seqno > >> > write has been posted from

[Intel-gfx] [PATCH v5] drm/i915/scheduler: add gvt notification for guc submission

2017-03-27 Thread Chuanxiao Dong
GVT request needs a manual mmio load/restore. Before GuC submit a request, send notification to gvt for mmio loading. And after the GuC finished this GVT request, notify gvt again for mmio restore. This follows the usage when using execlists submission. v2: use context_status_change instead of exe

Re: [Intel-gfx] [PATCH] drm/i915: Reorganise intel_engine_cleanup

2017-03-27 Thread Joonas Lahtinen
On pe, 2017-03-24 at 10:36 +, Chris Wilson wrote: > Merge the two vfuncs into one and so eliminate one more case of > execlists/ringbuffer specialisation outside of the intel_engine_cs.c > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen Regards, Joonas -- Joonas Lahtinen Open S

Re: [Intel-gfx] [PATCH] drm/i915: Click the ACTHD three times to go home

2017-03-27 Thread Mika Kuoppala
Chris Wilson writes: > On Mon, Mar 27, 2017 at 01:12:30PM +0300, Mika Kuoppala wrote: >> Chris Wilson writes: >> >> > One POSTING_READ of ACTHD may not be enough to ensure that the seqno >> > write has been posted from the GPU and is now visible. So do three! >> > >> >> Is this about posting r

[Intel-gfx] [PATCH v3] drm/i915: Refactor tests for validity of RING_TAIL

2017-03-27 Thread Chris Wilson
Whilst I like having the assertions clearly visible in the code, they are quite repetitious! As we find new limits we want to incorporate into the set of assertions, it make sense to refactor them to a common routine. v2: Add a guc holdout. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Use i9xx_check_plane_surface() for sprite planes as well

2017-03-27 Thread Ville Syrjälä
On Fri, Mar 24, 2017 at 10:35:56AM +, Chris Wilson wrote: > On Thu, Mar 23, 2017 at 09:27:12PM +0200, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > All the pre-SKL sprite planes compute the x/y/tile offsets in a > > similar way. There are a couple of minor differences b

Re: [Intel-gfx] [PATCH v4 03/13] drm/i915/guc: Add onion teardown to the GuC setup

2017-03-27 Thread Joonas Lahtinen
On pe, 2017-03-24 at 08:59 +, Chris Wilson wrote: > On Thu, Mar 23, 2017 at 09:36:10AM -0700, Oscar Mateo wrote: > > > > On 03/23/2017 03:57 PM, Chris Wilson wrote: > > > > > > I'm not happy with moving subfeature detection logic into the core GEM > > > code. if (i915.enable_guc_loading) firs

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/execlists: Wrap tail pointer after reset tweaking

2017-03-27 Thread Mika Kuoppala
Chris Wilson writes: > If the request->wa_tail is 0 (because it landed exactly on the end of > the ringbuffer), when we reconstruct request->tail following a reset we > fill in an illegal value (-8 or 0x0018). As a result, RING_HEAD is > never able to catch up with RING_TAIL and the GPU spins

Re: [Intel-gfx] [PATCH] drm/i915/dp: reduce link M/N parameters

2017-03-27 Thread Daniel Vetter
On Mon, Mar 27, 2017 at 02:33:25PM +0300, Jani Nikula wrote: > Several major vendor USB-C->HDMI converters, in particular the DA200, > fail to recover a 5.4 GHz 1 lane signal if the link N is greater than > 0x8. > > The link M and N depend on the pixel clock and link clock ratio. With > curren

[Intel-gfx] [PATCH v2 2/3] drm/i915: Assert that the request->tail fits within the ring

2017-03-27 Thread Chris Wilson
In addition to being qword-aligned, the RING_TAIL offset must be within the ring! Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_lrc.c| 4 drivers/gpu/drm/i915/intel_ringbuffer.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/d

[Intel-gfx] [PATCH v2 3/3] drm/i915: Refactor tests for validity of RING_TAIL

2017-03-27 Thread Chris Wilson
Whilst I like having the assertions clearly visible in the code, they are quite repetitious! As we find new limits we want to incorporate into the set of assertions, it make sense to refactor them to a common routine. Signed-off-by: Chris Wilson Reviewed-by: Tvrtko Ursulin --- drivers/gpu/drm/i

[Intel-gfx] [PATCH v2 1/3] drm/i915/execlists: Wrap tail pointer after reset tweaking

2017-03-27 Thread Chris Wilson
If the request->wa_tail is 0 (because it landed exactly on the end of the ringbuffer), when we reconstruct request->tail following a reset we fill in an illegal value (-8 or 0x0018). As a result, RING_HEAD is never able to catch up with RING_TAIL and the GPU spins endlessly. If the ring contain

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Remove obsolete ringbuffer emission for gen8+

2017-03-27 Thread Joonas Lahtinen
On pe, 2017-03-24 at 09:42 +, Chris Wilson wrote: > Since removing the module parameter to force selection of ringbuffer > emission for gen8, the code is defunct. Remove it. > > References: https://bugs.freedesktop.org/show_bug.cgi?id=87725 > Signed-off-by: Chris Wilson Reviewed-by: Joonas L

Re: [Intel-gfx] [PATCH 1/2] drm/i915: Remove i915.enable_execlists module parameter

2017-03-27 Thread Joonas Lahtinen
On pe, 2017-03-24 at 09:42 +, Chris Wilson wrote: > Execlists and legacy ringbuffer submission are no longer feature > comparable (execlists now offer greater functionality that should > overcome their performance hit) and obsoletes the unsafe module > parameter, i.e. comparing the two modes of

Re: [Intel-gfx] [PATCH] drm/i915/execlists: Trim irq handler

2017-03-27 Thread Chris Wilson
On Mon, Mar 27, 2017 at 10:10:54AM +0100, Tvrtko Ursulin wrote: > > On 25/03/2017 20:10, Chris Wilson wrote: > >I noticed that gcc was spilling the CSB to the stack, so rearrange the > >code to be more compact. Spilling in this function is slightly more > >interesting due to the mmio reads acting

  1   2   >