Re: [Intel-gfx] [PATCH v7 5/9] drm/i915: vgpu context submission pv optimization

2019-07-22 Thread Zhang, Xiaolin
On 07/08/2019 06:41 PM, Chris Wilson wrote: > Quoting Xiaolin Zhang (2019-07-08 02:35:18) >> +static void pv_submit(struct intel_engine_cs *engine, >> + struct i915_request **out, >> + struct i915_request **end) >> +{ >> + struct intel_engine_execlists * const execli

Re: [Intel-gfx] [PATCH] snd/hda: Flush interrupts on disabling

2019-07-22 Thread Takashi Iwai
On Sat, 20 Jul 2019 13:33:37 +0200, Chris Wilson wrote: > > I was looking at > > <4> [241.835158] general protection fault: [#1] PREEMPT SMP PTI > <4> [241.835181] CPU: 1 PID: 214 Comm: kworker/1:3 Tainted: G U > 5.2.0-CI-CI_DRM_6509+ #1 > <4> [241.835199] Hardware name: Dell

Re: [Intel-gfx] [PATCH 21/22] drm/i915/tgl: Add and use new DC5 and DC6 residency counter registers

2019-07-22 Thread Anshuman Gupta
On 2019-07-19 at 11:39:54 -0700, Lucas De Marchi wrote: > On Thu, Jul 18, 2019 at 11:17:03AM +0530, Anshuman Gupta wrote: > >On 2019-07-12 at 18:09:39 -0700, Lucas De Marchi wrote: > >>From: José Roberto de Souza > >> > >>Tiger Lask has a new register offset for DC5 and DC6 residency counters. > >

Re: [Intel-gfx] [PATCH] iommu/iova: Remove stale cached32_node

2019-07-22 Thread Chris Wilson
Quoting Robin Murphy (2019-07-22 11:13:49) > Hi Chris, > > On 20/07/2019 19:08, Chris Wilson wrote: > > Since the cached32_node is allowed to be advanced above dma_32bit_pfn > > (to provide a shortcut into the limited range), we need to be careful to > > remove the to be freed node if it is the ca

[Intel-gfx] ✗ Fi.CI.BAT: failure for Send a hotplug when edid changes (rev3)

2019-07-22 Thread Patchwork
== Series Details == Series: Send a hotplug when edid changes (rev3) URL : https://patchwork.freedesktop.org/series/62816/ State : failure == Summary == Applying: drm: Add helper to compare edids. Applying: drm: Introduce change counter to drm_connector Applying: drm/i915: Send hotplug event i

Re: [Intel-gfx] [PATCH] drm/i915/gtt: Fix rounding for 36b

2019-07-22 Thread Abdiel Janulgue
On 19/07/2019 16.07, Chris Wilson wrote: > The top-level page directory for 36b is a single entry, not multiple > like 32b. Fix up the rounding on the calculation of the size of the top > level so that we populate the 4th level correctly for 36b. > Reviewed-by: Abdiel Janulgue > Reported-by:

Re: [Intel-gfx] [PATCH] drm/i915: Disable atomics in L3 for gen9

2019-07-22 Thread Tvrtko Ursulin
On 20/07/2019 15:31, Chris Wilson wrote: Enabling atomic operations in L3 leads to unrecoverable GPU hangs, as the machine stops responding milliseconds after receipt of the reset request [GDRT]. By disabling the cached atomics, the hang do not occur and we presume the GPU would reset normally f

Re: [Intel-gfx] [PATCH] drm/i915: Hide unshrinkable context objects from the shrinker

2019-07-22 Thread Tvrtko Ursulin
On 19/07/2019 18:21, Chris Wilson wrote: The shrinker cannot touch objects used by the contexts (logical state and ring). Currently we mark those as "pin_global" to let the shrinker skip over them, however, if we remove them from the shrinker lists entirely, we don't event have to include them i

Re: [Intel-gfx] [PATCH] drm/i915: Move global activity tracking from GEM to GT

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 13:42, Chris Wilson wrote: As our global unpark/park keep track of the number of active users, we can simply move the accounting from the GEM layer to the base GT layer. It was placed originally inside GEM to benefit from the 100ms extra delay on idleness, but that has been elimina

Re: [Intel-gfx] [PATCH 02/20] drm/i915/gt: Hook up intel_context_fini()

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: Prior to freeing the struct, call the fini function to cleanup the common members. Currently this only calls the debug functions to mark the structs as destroyed, but may be extended to real work in future. Signed-off-by: Chris Wilson --- drivers/gpu/

Re: [Intel-gfx] [PATCH 03/20] drm/i915/gt: Provde a local intel_context.vm

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: Track the currently bound address space used by the HW context. Minor conversions to use the local intel_context.vm are made, leaving behind some more surgery required to make intel_context the primary through the selftests. Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH 06/20] drm/i915: Remove obsolete engine cleanup

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: Remove the outer layer cleanup of engine stubs; as i915_drv itself no longer tries to preallocate and so is not responsible for either the allocation or free. By the time we call the cleanup function, we already have cleaned up the engines. v2: Lack of s

Re: [Intel-gfx] [PATCH 09/20] drm/i915: Use intel_engine_lookup_user for probing HAS_BSD etc

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: Use the same mechanism to determine if a backend engine exists for a uabi mapping as used internally. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dr

Re: [Intel-gfx] [PATCH 10/20] drm/i915: Isolate i915_getparam_ioctl()

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: This giant switch has tendrils over other the struct and does not fit into the rest of the driver bring up and control of i915_drv.c. Push it to one side so that it can grow in peace. No complaints on this one so acked. Regards, Tvrtko Signed-off-b

[Intel-gfx] [PATCH] drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv)

2019-07-22 Thread Chris Wilson
As a w/a for data corruption, we are told to set the preemption vertex count to 0x20 on boot. As it is a counter, once contexts are active we do not expect the value to be retained, so hide it from the wa-list verification. Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin --- drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH 11/20] drm/i915: Rely on spinlock protection for GPU error capture

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: Trust that we now have adequate protection over the low level structures via the engine->active.lock to allow ourselves to capture the GPU error state without the heavy hammer of stop_machine(). Sadly this does mean that we have to forgo some of the lesse

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv)

2019-07-22 Thread Patchwork
== Series Details == Series: drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv) URL : https://patchwork.freedesktop.org/series/64014/ State : success == Summary == CI Bug Log - changes from CI_DRM_6524 -> Patchwork_13714 Summary -

Re: [Intel-gfx] [PATCH] iommu/iova: Remove stale cached32_node

2019-07-22 Thread Robin Murphy
Hi Chris, On 20/07/2019 19:08, Chris Wilson wrote: Since the cached32_node is allowed to be advanced above dma_32bit_pfn (to provide a shortcut into the limited range), we need to be careful to remove the to be freed node if it is the cached32_node. Thanks for digging in - just to confirm my u

Re: [Intel-gfx] [PATCH v9 5/9] drm/i915: add syncobj timeline support

2019-07-22 Thread Lionel Landwerlin
On 11/07/2019 12:46, Lionel Landwerlin wrote: + + syncobj = drm_syncobj_find(eb->file, user_fence.handle); + if (!syncobj) { + DRM_DEBUG("Invalid syncobj handle provided\n"); + err = -EINVAL; + goto err;

Re: [Intel-gfx] [PATCH] drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv)

2019-07-22 Thread Tvrtko Ursulin
On 22/07/2019 14:18, Chris Wilson wrote: As a w/a for data corruption, we are told to set the preemption vertex count to 0x20 on boot. As it is a counter, once contexts are active we do not expect the value to be retained, so hide it from the wa-list verification. Signed-off-by: Chris Wilson

Re: [Intel-gfx] [PATCH] iommu/iova: Remove stale cached32_node

2019-07-22 Thread Joerg Roedel
On Sat, Jul 20, 2019 at 07:08:48PM +0100, Chris Wilson wrote: > --- > drivers/iommu/iova.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Applied to iommu/fixes. ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.fre

Re: [Intel-gfx] [PATCH 13/20] drm/i915: Teach execbuffer to take the engine wakeref not GT

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: In the next patch, we would like to couple into the engine wakeref to free the batch pool on idling. The caveat here is that we therefore want to track the engine wakeref more precisely and to hold it instead of the broader GT wakeref as we process the io

Re: [Intel-gfx] [PATCH] drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv)

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 16:55:39) > > > On 22/07/2019 14:18, Chris Wilson wrote: > > As a w/a for data corruption, we are told to set the preemption vertex > > count to 0x20 on boot. As it is a counter, once contexts are active we > > do not expect the value to be retained, so hide it

Re: [Intel-gfx] [PATCH 10/20] drm/i915: Isolate i915_getparam_ioctl()

2019-07-22 Thread Tvrtko Ursulin
Forgot to say... On 18/07/2019 08:00, Chris Wilson wrote: This giant switch has tendrils over other the struct and does not fit ... "over the struct"? Over something else I think, just can't guess what you wanted to say. :) Regards, Tvrtko into the rest of the driver bring up and control

Re: [Intel-gfx] [PATCH 14/20] drm/i915/gt: Track timeline activeness in enter/exit

2019-07-22 Thread Tvrtko Ursulin
On 18/07/2019 08:00, Chris Wilson wrote: Lift moving the timeline to/from the active_list on enter/exit in order to shorten the active tracking span in comparison to the existing pin/unpin. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/gem/i915_gem_pm.c| 1 - drivers/gpu/drm

Re: [Intel-gfx] [PATCH 10/20] drm/i915: Isolate i915_getparam_ioctl()

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 17:04:54) > Forgot to say... > > On 18/07/2019 08:00, Chris Wilson wrote: > > This giant switch has tendrils over other the struct and does not fit > > ... "over the struct"? Over something else I think, just can't guess > what you wanted to say. :) All over.

Re: [Intel-gfx] [PATCH 03/20] drm/i915/gt: Provde a local intel_context.vm

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 13:33:14) > > On 18/07/2019 08:00, Chris Wilson wrote: > > @@ -1113,9 +1121,8 @@ static int set_ppgtt(struct drm_i915_file_private > > *file_priv, > > set_ppgtt_barrier, > > old); > > if (er

Re: [Intel-gfx] [PATCH 06/20] drm/i915: Remove obsolete engine cleanup

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 13:46:06) > > On 18/07/2019 08:00, Chris Wilson wrote: > > static void i915_driver_mmio_release(struct drm_i915_private *dev_priv) > > { > > + intel_engines_cleanup(dev_priv); > > intel_teardown_mchbar(dev_priv); > > intel_uncore_fini_mmio(&de

Re: [Intel-gfx] [PATCH 09/20] drm/i915: Use intel_engine_lookup_user for probing HAS_BSD etc

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 13:49:54) > > On 18/07/2019 08:00, Chris Wilson wrote: > > Use the same mechanism to determine if a backend engine exists for a > > uabi mapping as used internally. > > > > Signed-off-by: Chris Wilson > > --- > > drivers/gpu/drm/i915/i915_drv.c | 13 +

Re: [Intel-gfx] [PATCH 14/20] drm/i915/gt: Track timeline activeness in enter/exit

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 17:14:23) > > On 18/07/2019 08:00, Chris Wilson wrote: > > diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c > > b/drivers/gpu/drm/i915/gt/intel_lrc.c > > index 884dfc1cb033..aceb990ae3b9 100644 > > --- a/drivers/gpu/drm/i915/gt/intel_lrc.c > > +++ b/drivers/gpu/

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv)

2019-07-22 Thread Patchwork
== Series Details == Series: drm/i915/gt: WaSetVfGuardbandPreemptionVertexCount (bdw/chv) URL : https://patchwork.freedesktop.org/series/64014/ State : success == Summary == CI Bug Log - changes from CI_DRM_6524_full -> Patchwork_13714_full

Re: [Intel-gfx] [PATCH 21/22] drm/i915/tgl: Add and use new DC5 and DC6 residency counter registers

2019-07-22 Thread Lucas De Marchi
On Mon, Jul 22, 2019 at 01:11:40PM +0530, Anshuman Gupta wrote: On 2019-07-19 at 11:39:54 -0700, Lucas De Marchi wrote: On Thu, Jul 18, 2019 at 11:17:03AM +0530, Anshuman Gupta wrote: >On 2019-07-12 at 18:09:39 -0700, Lucas De Marchi wrote: >>From: José Roberto de Souza >> >>Tiger Lask has a ne

Re: [Intel-gfx] [PATCH] drm/i915: Mark expected switch fall-throughs

2019-07-22 Thread Kees Cook
On Mon, Jul 22, 2019 at 01:12:44PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warnings: > > drivers/gpu/drm/i915/gem/i915_gem_mman.c: In function ‘i915_gem_fa

[Intel-gfx] [PATCH] drm/i915: Mark expected switch fall-throughs

2019-07-22 Thread Gustavo A. R. Silva
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/gpu/drm/i915/gem/i915_gem_mman.c: In function ‘i915_gem_fault’: drivers/gpu/drm/i915/gem/i915_gem_mman.c:342:6: warning: this statement may

[Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915: Mark expected switch fall-throughs (rev3)

2019-07-22 Thread Patchwork
== Series Details == Series: drm/i915: Mark expected switch fall-throughs (rev3) URL : https://patchwork.freedesktop.org/series/34495/ State : failure == Summary == Applying: drm/i915: Mark expected switch fall-throughs Using index info to reconstruct a base tree... M drivers/gpu/drm/i91

[Intel-gfx] [PATCH] drm/i915: Fix up broken merge

2019-07-22 Thread Daniel Vetter
Maxime didn't really compile-test this :-/ We need to re-apply commit e4fa8457b2197118538a1400b75c898f9faaf164 Author: Daniel Vetter Date: Fri Jun 14 22:35:25 2019 +0200 drm/prime: Align gem_prime_export with obj_funcs.export plus make sure i915_gem_dma_buf.c doesn't get zombie-resurrect

Re: [Intel-gfx] [PATCH] drm/i915: Fix up broken merge

2019-07-22 Thread Chris Wilson
Quoting Daniel Vetter (2019-07-22 22:21:01) > Maxime didn't really compile-test this :-/ > > We need to re-apply > > commit e4fa8457b2197118538a1400b75c898f9faaf164 > Author: Daniel Vetter > Date: Fri Jun 14 22:35:25 2019 +0200 > > drm/prime: Align gem_prime_export with obj_funcs.export >

[Intel-gfx] [PATCH] drm/i915: Fix up broken merge

2019-07-22 Thread Daniel Vetter
Maxime didn't really compile-test this :-/ We need to re-apply commit e4fa8457b2197118538a1400b75c898f9faaf164 Author: Daniel Vetter Date: Fri Jun 14 22:35:25 2019 +0200 drm/prime: Align gem_prime_export with obj_funcs.export plus make sure i915_gem_dma_buf.c doesn't get zombie-resurrect

Re: [Intel-gfx] [PATCH] drm/i915: Fix up broken merge

2019-07-22 Thread Chris Wilson
Quoting Daniel Vetter (2019-07-22 22:37:59) > Maxime didn't really compile-test this :-/ > > We need to re-apply > > commit e4fa8457b2197118538a1400b75c898f9faaf164 > Author: Daniel Vetter > Date: Fri Jun 14 22:35:25 2019 +0200 > > drm/prime: Align gem_prime_export with obj_funcs.export >

Re: [Intel-gfx] [PATCH] drm/i915: Move global activity tracking from GEM to GT

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 13:16:38) > > On 18/07/2019 13:42, Chris Wilson wrote: > > As our global unpark/park keep track of the number of active users, we > > can simply move the accounting from the GEM layer to the base GT layer. > > It was placed originally inside GEM to benefit from t

Re: [Intel-gfx] [PATCH] drm/i915: Fix up broken merge

2019-07-22 Thread Daniel Vetter
On Mon, Jul 22, 2019 at 11:41 PM Chris Wilson wrote: > > Quoting Daniel Vetter (2019-07-22 22:37:59) > > Maxime didn't really compile-test this :-/ > > > > We need to re-apply > > > > commit e4fa8457b2197118538a1400b75c898f9faaf164 > > Author: Daniel Vetter > > Date: Fri Jun 14 22:35:25 2019 +0

Re: [Intel-gfx] [PATCH] drm/i915: Hide unshrinkable context objects from the shrinker

2019-07-22 Thread Chris Wilson
Quoting Tvrtko Ursulin (2019-07-22 13:08:42) > > On 19/07/2019 18:21, Chris Wilson wrote: > > The shrinker cannot touch objects used by the contexts (logical state > > and ring). Currently we mark those as "pin_global" to let the shrinker > > skip over them, however, if we remove them from the shr

[Intel-gfx] [CI] drm/i915: Rely on spinlock protection for GPU error capture

2019-07-22 Thread Chris Wilson
Trust that we now have adequate protection over the low level structures via the engine->active.lock to allow ourselves to capture the GPU error state without the heavy hammer of stop_machine(). Sadly this does mean that we have to forgo some of the lesser used information (not derived from the act

Re: [Intel-gfx] [PATCH 09/22] drm/i915/tgl: re-indent code to prepare for DKL changes

2019-07-22 Thread Atwood, Matthew S
On Fri, 2019-07-12 at 18:09 -0700, Lucas De Marchi wrote: > The final save operation into pll_state of the calculations done will > be different for DKL PHY. Prepare for that by reindenting code so > it's > easier to check for correctness. This one has no change in behavior. > Reviewed-by: Matt At

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for drm/i915: Rely on spinlock protection for GPU error capture

2019-07-22 Thread Patchwork
== Series Details == Series: drm/i915: Rely on spinlock protection for GPU error capture URL : https://patchwork.freedesktop.org/series/64037/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: Rely on spinlock protection for GPU error capture -O

[Intel-gfx] [PATCH stable v5.2] drm/i915/vbt: Fix VBT parsing for the PSR section

2019-07-22 Thread Dhinakaran Pandiyan
A single 32-bit PSR2 training pattern field follows the sixteen element array of PSR table entries in the VBT spec. But, we incorrectly define this PSR2 field for each of the PSR table entries. As a result, the PSR1 training pattern duration for any panel_type != 0 will be parsed incorrectly. Secon

[Intel-gfx] [PATCH 0/9] uC fw path unification + misc clean-up

2019-07-22 Thread Daniele Ceraolo Spurio
The main aim of this patch series is unify the guc_fw and huc_fw handling paths and improve the related state tracking. Ultimately, I'd like to reach the point where we can kill the intel_guc_fw and intel_huc_fw files and just keep the few differences in other files. Not yet going that far in this

[Intel-gfx] [PATCH 1/9] drm/i915/uc: Gt-fy uc reset

2019-07-22 Thread Daniele Ceraolo Spurio
This was the last place in gt/uc that was still using I915_READ with the global dev_priv. Signed-off-by: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/uc/intel_uc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc.c b/drivers/gpu

[Intel-gfx] [PATCH 2/9] drm/i915/uc: Unify uC platform check

2019-07-22 Thread Daniele Ceraolo Spurio
We have several HAS_* checks for GuC and HuC but we mostly use HAS_GUC and HAS_HUC, with only 1 exception. Since our HW always has either both uC or neither of them, just replace all the checks with a unified HAS_UC. Signed-off-by: Daniele Ceraolo Spurio Cc: Michal Wajdeczko --- drivers/gpu/drm

[Intel-gfx] [PATCH 4/9] drm/i915/uc: Sanitize uC when GT is sanitized

2019-07-22 Thread Daniele Ceraolo Spurio
The microcontrollers are part of GT so it makes logical sense to have them sanitized at the same time. This also fixed an issue with our status tracking where the FW load status is not reset around hibernation. Signed-off-by: Daniele Ceraolo Spurio Cc: Michal Wajdeczko Cc: Chris Wilson --- dri

[Intel-gfx] [PATCH 7/9] drm/i915/huc: Copy huc rsa only once

2019-07-22 Thread Daniele Ceraolo Spurio
The binary is perma-pinned and the rsa is not going to change, so copy it only once and not on every load. Signed-off-by: Daniele Ceraolo Spurio Cc: Fernando Pacheco --- drivers/gpu/drm/i915/gt/uc/intel_huc.c| 21 + drivers/gpu/drm/i915/gt/uc/intel_huc.h| 1 - drive

[Intel-gfx] [PATCH 3/9] drm/i915/uc: Unify uC FW selection

2019-07-22 Thread Daniele Ceraolo Spurio
Instead of having 2 identical functions for GuC and HuC firmware selection, we can unify the selection logic and just use different lists based on FW type. Note that the revid is not relevant for current blobs, but the upcoming CML will be identified as CFL rev 5, so by considering the revid we're

[Intel-gfx] [PATCH 9/9] drm/i915/uc: Unify uC firmware upload

2019-07-22 Thread Daniele Ceraolo Spurio
The way we load the firmwares is the same for both GuC and HuC, the only difference is in the wopcm destination address and the dma flags, so we easily can move the logic to a common function and pass in offset and flags. The only other difference in the uplaod path are some the extra steps that gu

[Intel-gfx] [PATCH 5/9] drm/i915/uc: Unify uc_fw status tracking

2019-07-22 Thread Daniele Ceraolo Spurio
We currently track fetch and load status separately, but the 2 are actually sequential in the uc lifetime (fetch must complete before we can attempt the load!). Unifying the 2 variables we can better follow the sequential states and improve our trackng of the uC state. Also, sprinkle some GEM_BUG_

[Intel-gfx] [PATCH 8/9] drm/i915/uc: Plumb the gt through fw_upload

2019-07-22 Thread Daniele Ceraolo Spurio
The gt is our new central structure for uc-related code, so we can use that instead of jumping back to i915 via the fw object. Since we have it in the upload function it is easy to pass it through the lower levels of the xfer process instead of continuosly jumping via uc_fw->uc->gt, which will also

[Intel-gfx] [PATCH 6/9] drm/i915/uc: Move xfer rsa logic to common function

2019-07-22 Thread Daniele Ceraolo Spurio
The way we copy the RSA is the same for GuC and HuC, so we can move the logic in a common function. this will also make any update needed for local memory easier. Signed-off-by: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 5 + drivers/gpu/drm/i915/gt/uc/intel_huc_f

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Rely on spinlock protection for GPU error capture

2019-07-22 Thread Patchwork
== Series Details == Series: drm/i915: Rely on spinlock protection for GPU error capture URL : https://patchwork.freedesktop.org/series/64037/ State : success == Summary == CI Bug Log - changes from CI_DRM_6534 -> Patchwork_13716 Summary --

Re: [Intel-gfx] [PATCH] drm/i915: Mark expected switch fall-throughs

2019-07-22 Thread Rodrigo Vivi
Hi Gustavo, could you please rebase on top of drm-tip and resend it please? Thanks, Rodrigo. On Mon, Jul 22, 2019 at 01:12:44PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for uC fw path unification + misc clean-up

2019-07-22 Thread Patchwork
== Series Details == Series: uC fw path unification + misc clean-up URL : https://patchwork.freedesktop.org/series/64039/ State : warning == Summary == $ dim checkpatch origin/drm-tip 1defc4182153 drm/i915/uc: Gt-fy uc reset ad3b67774d80 drm/i915/uc: Unify uC platform check 5917a7b6440c drm/i9

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for uC fw path unification + misc clean-up

2019-07-22 Thread Patchwork
== Series Details == Series: uC fw path unification + misc clean-up URL : https://patchwork.freedesktop.org/series/64039/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915/uc: Gt-fy uc reset Okay! Commit: drm/i915/uc: Unify uC platform check Oka

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

2019-07-22 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/display/intel_dp.c between commit: b6ac32eac063 ("drm/i915: Mark expected switch fall-throughs") from the kspp-gustavo tree and commit: bc85328ff431 ("drm/i915: Move the TypeC port handling co

[Intel-gfx] ✓ Fi.CI.BAT: success for uC fw path unification + misc clean-up

2019-07-22 Thread Patchwork
== Series Details == Series: uC fw path unification + misc clean-up URL : https://patchwork.freedesktop.org/series/64039/ State : success == Summary == CI Bug Log - changes from CI_DRM_6535 -> Patchwork_13717 Summary --- **SUCCESS**

[Intel-gfx] [PATCH v8 0/9] i915 vgpu PV to improve vgpu performance

2019-07-22 Thread Xiaolin Zhang
To improve vgpu performance, it could implement some PV optimization such as to reduce the mmio access trap numbers or eliminate certain piece of HW emulation within guest driver to reduce vm exit/vm enter cost. the solutions in this patch set are implemented two PV optimizations based on the shar

[Intel-gfx] [PATCH v8 1/9] drm/i915: introduced vgpu pv capability

2019-07-22 Thread Xiaolin Zhang
pv capability for vgpu was introduced by pv_caps in struct i915_virtual_gpu and a new pv_caps register for host GVT was defined in struct vgt_if for vgpu pv optimization. both of them are used to control different feature pv optimization supported and implemented by both guest and host. These fie

[Intel-gfx] [PATCH v8 2/9] drm/i915: vgpu shared memory setup for pv optimization

2019-07-22 Thread Xiaolin Zhang
To enable vgpu pv features, we need to setup a shared memory page which will be used for data exchange directly accessed between both guest and backend i915 driver to avoid emulation trap cost. guest i915 will allocate this page memory and then pass it's physical address to backend i915 driver thr

[Intel-gfx] [PATCH v8 9/9] drm/i915/gvt: GVTg support context submission pv optimization

2019-07-22 Thread Xiaolin Zhang
implemented context submission pv optimizaiton within GVTg. GVTg to read context submission data (elsp_data) from the shared_page directly without trap cost and eliminate execlist HW behavior emulation without injecting context switch interrupt to guest under PV submisison mechanism. v0: RFC. v1:

[Intel-gfx] [PATCH v8 3/9] drm/i915: vgpu pv command buffer support

2019-07-22 Thread Xiaolin Zhang
based on the shared memory setup between guest and GVT, the simple pv command buffer ring was introduced by this patch used to perform guest-2-gvt single direction communication. v1: initial support, added to address i915 PV v6 patch set comment. Signed-off-by: Xiaolin Zhang --- drivers/gpu/drm

[Intel-gfx] [PATCH v8 5/9] drm/i915: vgpu context submission pv optimization

2019-07-22 Thread Xiaolin Zhang
It is performance optimization to override the actual submisison backend in order to eliminate execlists csb process and reduce mmio trap numbers for workload submission without context switch interrupt by talking with GVT via PV submisison notification mechanism between guest and GVT. Use PV_SUBM

[Intel-gfx] [PATCH v8 7/9] drm/i915/gvt: GVTg handle shared_page setup

2019-07-22 Thread Xiaolin Zhang
GVTg implemented shared_page setup operation and read_shared_page functionality based on hypervisor_read_gpa(). the shared_page_gpa was passed from guest driver through PVINFO shared_page_gpa register. v0: RFC. v1: rebase. v2: rebase. v3: added shared_page_gpa check and if read_gpa failure, retur

[Intel-gfx] [PATCH v8 4/9] drm/i915: vgpu ppgtt update pv optimization

2019-07-22 Thread Xiaolin Zhang
This patch extends vgpu ppgtt g2v notification to notify host GVT-g of ppgtt update from guest including alloc_4lvl, clear_4lv4 and insert_4lvl. These updates use the shared memory page to pass struct pv_ppgtt_update from guest to GVT which is used for pv optimiation implemeation within host GVT s

[Intel-gfx] [PATCH v8 6/9] drm/i915/gvt: GVTg handle pv_caps PVINFO register

2019-07-22 Thread Xiaolin Zhang
implement pv_caps PVINFO register handler in GVTg to control different level pv optimization within guest. report VGT_CAPS_PV capability in pvinfo page for guest. v0: RFC. v1: rebase. v2: rebase. v3: renamed enable_pvmmio to pvmmio_caps which is used for host pv caps. v4: renamed pvmmio_caps to p

[Intel-gfx] [PATCH v8 8/9] drm/i915/gvt: GVTg support ppgtt pv optimization

2019-07-22 Thread Xiaolin Zhang
This patch handles ppgtt update from g2v notification. It read out ppgtt pte entries from guest pte tables page and convert them to host pfns. It creates local ppgtt tables and insert the content pages into the local ppgtt tables directly, which does not track the usage of guest page table and re

[Intel-gfx] ✓ Fi.CI.IGT: success for drm/i915: Rely on spinlock protection for GPU error capture

2019-07-22 Thread Patchwork
== Series Details == Series: drm/i915: Rely on spinlock protection for GPU error capture URL : https://patchwork.freedesktop.org/series/64037/ State : success == Summary == CI Bug Log - changes from CI_DRM_6534_full -> Patchwork_13716_full

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for i915 vgpu PV to improve vgpu performance

2019-07-22 Thread Patchwork
== Series Details == Series: i915 vgpu PV to improve vgpu performance URL : https://patchwork.freedesktop.org/series/64041/ State : warning == Summary == $ dim checkpatch origin/drm-tip 966d9464feed drm/i915: introduced vgpu pv capability -:91: CHECK:PARENTHESIS_ALIGNMENT: Alignment should mat

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for i915 vgpu PV to improve vgpu performance

2019-07-22 Thread Patchwork
== Series Details == Series: i915 vgpu PV to improve vgpu performance URL : https://patchwork.freedesktop.org/series/64041/ State : warning == Summary == $ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm/i915: introduced vgpu pv capability Okay! Commit: drm/i915: vgpu shared memo

[Intel-gfx] ✓ Fi.CI.BAT: success for i915 vgpu PV to improve vgpu performance

2019-07-22 Thread Patchwork
== Series Details == Series: i915 vgpu PV to improve vgpu performance URL : https://patchwork.freedesktop.org/series/64041/ State : success == Summary == CI Bug Log - changes from CI_DRM_6535 -> Patchwork_13718 Summary --- **SUCCESS*

[Intel-gfx] ✓ Fi.CI.IGT: success for uC fw path unification + misc clean-up

2019-07-22 Thread Patchwork
== Series Details == Series: uC fw path unification + misc clean-up URL : https://patchwork.freedesktop.org/series/64039/ State : success == Summary == CI Bug Log - changes from CI_DRM_6535_full -> Patchwork_13717_full Summary --- **

[Intel-gfx] ✓ Fi.CI.IGT: success for i915 vgpu PV to improve vgpu performance

2019-07-22 Thread Patchwork
== Series Details == Series: i915 vgpu PV to improve vgpu performance URL : https://patchwork.freedesktop.org/series/64041/ State : success == Summary == CI Bug Log - changes from CI_DRM_6535_full -> Patchwork_13718_full Summary ---

Re: [Intel-gfx] [PATCH v4 12/23] drm: zte: Provide ddc symlink in hdmi connector sysfs directory

2019-07-22 Thread Shawn Guo
On Thu, Jul 11, 2019 at 01:26:39PM +0200, Andrzej Pietrasiewicz wrote: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz Acked-by: Shawn Guo ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org htt

Re: [Intel-gfx] [PATCH v4 13/23] drm: zte: Provide ddc symlink in vga connector sysfs directory

2019-07-22 Thread Shawn Guo
On Thu, Jul 11, 2019 at 01:26:40PM +0200, Andrzej Pietrasiewicz wrote: > Use the ddc pointer provided by the generic connector. > > Signed-off-by: Andrzej Pietrasiewicz Acked-by: Shawn Guo ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org htt