Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/gem_exec_await: Tag the final batch in the GTT

2018-06-08 Thread Katarzyna Dec
On Thu, Jun 07, 2018 at 04:27:22PM +0100, Chris Wilson wrote: > Batches are contained in their position within the GTT by the kernel, > and if they are in an invalid poistion will be unbound and rebound > before execution. In our test setup, we therefore need to place the > batch into a valid poist

Re: [Intel-gfx] [PATCH v7 0/6] Add ChromeOS EC CEC Support

2018-06-08 Thread Hans Verkuil
On 06/01/2018 10:19 AM, Neil Armstrong wrote: > Hi All, > > The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support > through it's Embedded Controller, to enable the Linux CEC Core to communicate > with it and get the CEC Physical Address from the correct HDMI Connector, the > fol

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/gem_exec_await: Tag the final batch in the GTT

2018-06-08 Thread Chris Wilson
Quoting Katarzyna Dec (2018-06-08 08:36:35) > On Thu, Jun 07, 2018 at 04:27:22PM +0100, Chris Wilson wrote: > > Batches are contained in their position within the GTT by the kernel, > > and if they are in an invalid poistion will be unbound and rebound > > before execution. In our test setup, we th

Re: [Intel-gfx] [PATCH v7 0/6] Add ChromeOS EC CEC Support

2018-06-08 Thread Neil Armstrong
Hi Hans, On 08/06/2018 09:53, Hans Verkuil wrote: > On 06/01/2018 10:19 AM, Neil Armstrong wrote: >> Hi All, >> >> The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support >> through it's Embedded Controller, to enable the Linux CEC Core to communicate >> with it and get the CEC Ph

Re: [Intel-gfx] [PATCH v7 0/6] Add ChromeOS EC CEC Support

2018-06-08 Thread Hans Verkuil
On 08/06/18 10:17, Neil Armstrong wrote: > Hi Hans, > > On 08/06/2018 09:53, Hans Verkuil wrote: >> On 06/01/2018 10:19 AM, Neil Armstrong wrote: >>> Hi All, >>> >>> The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support >>> through it's Embedded Controller, to enable the Linux C

[Intel-gfx] [PATCH 1/6] drm/i915: Store first production revid into device info

2018-06-08 Thread Mika Kuoppala
Store first known production revid into the device info. This enables us to easily see if we are running on a preproduction hardware. Uninitialized (zero) product revision id means that there are no known preliminary hardware for this platform, or that the platform is of gen that we don't care. T

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Add WaKBLVECSSemaphoreWaitPoll

2018-06-08 Thread Mika Kuoppala
Joonas Lahtinen writes: > Quoting Mika Kuoppala (2018-06-05 19:03:57) >> There is a problem with kbl up to rev E0 where a heavy >> memory/fabric traffic from adjacent engine(s) can cause an engine >> reset to fail. This traffic can be from normal memory accesses >> or it can be from heavy polling

Re: [Intel-gfx] [PATCH] drm/i915: Mark the GPU as wedged without error on fault injection

2018-06-08 Thread Michał Winiarski
On Thu, Jun 07, 2018 at 02:45:58PM +0100, Chris Wilson wrote: > If we have been instructed (by CI) to inject a fault to load the module > with a wedged GPU, do so quietly less we upset CI. > > Signed-off-by: Chris Wilson > Cc: Michał Winiarski > Cc: Michal Wajdeczko Reviewed-by: Michał Winiars

Re: [Intel-gfx] [PATCH] drm/i915: Mark the GPU as wedged without error on fault injection

2018-06-08 Thread Chris Wilson
Quoting Michał Winiarski (2018-06-08 10:32:04) > On Thu, Jun 07, 2018 at 02:45:58PM +0100, Chris Wilson wrote: > > If we have been instructed (by CI) to inject a fault to load the module > > with a wedged GPU, do so quietly less we upset CI. > > > > Signed-off-by: Chris Wilson > > Cc: Michał Wini

Re: [Intel-gfx] [PATCH i-g-t 6/6] tests/i915_query: Engine queues tests

2018-06-08 Thread Tvrtko Ursulin
On 06/06/2018 15:33, Lionel Landwerlin wrote: Just a few suggestions below. Otherwise looks good to me. On 06/06/18 13:49, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Basic tests to cover engine queued/runnable/running metric as reported by the DRM_I915_QUERY_ENGINE_QUEUES query. v2:   * Upd

Re: [Intel-gfx] [PATCH i-g-t 6/6] tests/i915_query: Engine queues tests

2018-06-08 Thread Lionel Landwerlin
On 08/06/18 11:02, Tvrtko Ursulin wrote: On 06/06/2018 15:33, Lionel Landwerlin wrote: Just a few suggestions below. Otherwise looks good to me. On 06/06/18 13:49, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Basic tests to cover engine queued/runnable/running metric as reported by the DRM_I9

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/drv_suspend: Suspend under memory pressure

2018-06-08 Thread Ewelina Musial
On Thu, Jun 07, 2018 at 09:50:54PM +0100, Chris Wilson wrote: > Recently we discovered that we have a race between swapping and > suspend in our resume path (we might be trying to page in an object > after disabling the block devices). Let's try to exercise that by > exhausting all of system memory

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] igt/drv_suspend: Suspend under memory pressure

2018-06-08 Thread Chris Wilson
Quoting Ewelina Musial (2018-06-08 11:21:41) > On Thu, Jun 07, 2018 at 09:50:54PM +0100, Chris Wilson wrote: > > Recently we discovered that we have a race between swapping and > > suspend in our resume path (we might be trying to page in an object > > after disabling the block devices). Let's try

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Store first production revid into device info

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 09:39:06) > Store first known production revid into the device info. > > This enables us to easily see if we are running on > a preproduction hardware. > > Uninitialized (zero) product revision id means that > there are no known preliminary hardware for this plat

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/6] drm/i915: Store first production revid into device info (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/6] drm/i915: Store first production revid into device info (rev2) URL : https://patchwork.freedesktop.org/series/44429/ State : warning == Summary == $ dim checkpatch origin/drm-tip c1df0dd08b23 drm/i915: Store first production revid into d

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/6] drm/i915: Store first production revid into device info (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/6] drm/i915: Store first production revid into device info (rev2) URL : https://patchwork.freedesktop.org/series/44429/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm/i915: Store first production revid into device inf

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [1/6] drm/i915: Store first production revid into device info (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/6] drm/i915: Store first production revid into device info (rev2) URL : https://patchwork.freedesktop.org/series/44429/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9238 = == Summary - FAILURE == Se

Re: [Intel-gfx] [PATCH] drm/i915/audio: Add 801Mhz clock entries to dp_aud_n_m table

2018-06-08 Thread Jani Nikula
On Thu, 07 Jun 2018, Radhakrishna Sripada wrote: > From: "Sripada, Radhakrishna" > > Expand the Maud/Naud table according to DP 1.4 spec to include entries for > 810 MHz clock. This is required for audio to work with HBR3. > > Cc: Dhinakaran Pandiyan > Cc: Jani Nikula > Signed-off-by: Radhakri

Re: [Intel-gfx] [PULL] gvt-fixes for 4.17

2018-06-08 Thread Jani Nikula
On Wed, 06 Jun 2018, Joonas Lahtinen wrote: > Quoting Zhenyu Wang (2018-06-06 10:49:54) >> On 2018.04.19 15:39:48 +0800, Zhenyu Wang wrote: >> > >> > Hi, >> > >> > Here's current gvt fixes for 4.17 with several kernel warning >> > and other misc fixes as detailed below. >> > >> > p.s: I'll be o

[Intel-gfx] [PULL] drm-intel-next-fixes for drm-next/v4.18

2018-06-08 Thread Jani Nikula
Hi Dave, these missed the main drm-next pull request. drm-intel-next-fixes-2018-06-08-2: First batch of i915 fixes for v4.18: - gvt fixes that missed v4.17, potentially need to be backported - eDP resolution regression revert - remove broken nv12 special casing - remove stale asserts from find ac

[Intel-gfx] [PATCH 1/5] drm/i915: fix guest virtual PCH detection on non-PCH systems

2018-06-08 Thread Jani Nikula
Virtualized non-PCH systems such as Broxton or Geminilake should use PCH_NONE to indicate no PCH rather than PCH_NOP. The latter is a specific case to indicate a PCH system without south display. Reported-by: Colin Xu Cc: Colin Xu Reviewed-by: Ville Syrjälä Tested-by: Colin Xu Reviewed-by: Col

[Intel-gfx] drm/i915: virtual PCH and PCH_NOP fixes

2018-06-08 Thread Jani Nikula
Just a resend of [1] with Lucas' patch added. BR, Jani. [1] 20180531115624.30269-1-jani.nikula@intel.com">http://mid.mail-archive.com/20180531115624.30269-1-jani.nikula@intel.com ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.

[Intel-gfx] [PATCH 4/5] drm/i915: be more strict about HAS_PCH_NOP() usage

2018-06-08 Thread Jani Nikula
HAS_PCH_NOP() implies a PCH platform without south display, not generic disabled display. Prefer num_pipes == 0 for PCH independent checks. Cc: Ville Syrjala Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/intel_bios.c | 2 +- drivers/gpu/drm/i915/intel_i2c.c |

[Intel-gfx] [PATCH 2/5] drm/i915: document PCH_NOP

2018-06-08 Thread Jani Nikula
From: Lucas De Marchi There's a difference between PCH_NONE and PCH_NOP: the former means we don't have a PCH while in the latter we do, but it doesn't have the south display. Signed-off-by: Lucas De Marchi Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed,

Re: [Intel-gfx] [PATCH 1/4] drm/i915: fix guest virtual PCH detection on non-PCH systems

2018-06-08 Thread Jani Nikula
On Thu, 31 May 2018, Lucas De Marchi wrote: > On Thu, May 31, 2018 at 02:56:21PM +0300, Jani Nikula wrote: >> Virtualized non-PCH systems such as Broxton or Geminilake should use >> PCH_NONE to indicate no PCH rather than PCH_NOP. The latter is a >> specific case to indicate a PCH system without s

[Intel-gfx] [PATCH 5/5] drm/i915: fix PCH_NOP setting for non-PCH platforms

2018-06-08 Thread Jani Nikula
Setting PCH type to PCH_NOP before checking whether we actually have a PCH ends up returning true for HAS_PCH_SPLIT() on all non-PCH split platforms. Fix this by using PCH_NOP only for platforms that actually have a PCH. Cc: Ville Syrjala Reviewed-by: Ville Syrjälä Signed-off-by: Jani Nikula --

[Intel-gfx] [PATCH 3/5] drm/i915: clean up virtual PCH special case handling

2018-06-08 Thread Jani Nikula
Use intel_pch_type() also for mapping the no PCH case (PCH id 0) to PCH_NONE to simplify code. Also make sure that intel_pch_type() knows all the PCH ids returned by intel_virt_detect_pch(). Loudly fail if this isn't the case; this shouldn't happen anyway. Cc: Colin Xu Reviewed-by: Ville Syrjälä

[Intel-gfx] [bug report] drm/i915/bios: add support for MIPI sequence block v3

2018-06-08 Thread Dan Carpenter
Hello Jani Nikula, The patch 2a33d93486f2: "drm/i915/bios: add support for MIPI sequence block v3" from Jan 11, 2016, leads to the following static checker warning: drivers/gpu/drm/i915/intel_bios.c:926 goto_next_sequence_v3() warn: potentially one past the end of array 'data[inde

[Intel-gfx] [CI HACK PATCH] HACK: drm/i915: see what breaks with display disabled

2018-06-08 Thread Jani Nikula
We don't properly test the i915.disable_display=1 module parameter. We have one display info with .num_pipes = 0, but AFAIK there are others than ivb q. Let's see what CI says of this for platforms with display. *evil grin*. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/i915_params.h | 2 +

Re: [Intel-gfx] [bug report] drm/i915/bios: add support for MIPI sequence block v3

2018-06-08 Thread Jani Nikula
On Fri, 08 Jun 2018, Dan Carpenter wrote: > Hello Jani Nikula, > > The patch 2a33d93486f2: "drm/i915/bios: add support for MIPI sequence > block v3" from Jan 11, 2016, leads to the following static checker > warning: > > drivers/gpu/drm/i915/intel_bios.c:926 goto_next_sequence_v3() > w

[Intel-gfx] [PATCH 02/18] drm/i915/ringbuffer: Brute force context restore

2018-06-08 Thread Chris Wilson
An issue encountered with switching mm on gen7 is that the GPU likes to hang (with the VS unit busy) when told to force restore the current context. We can simply workaround this by substituting the MI_FORCE_RESTORE flag with a round-trip through the kernel_context, forcing the context to be saved

[Intel-gfx] [PATCH 06/18] drm/i915/gtt: Onionify error handling for gen6_ppgtt_create

2018-06-08 Thread Chris Wilson
Pull the empty stubs together into the top level gen6_ppgtt_create, and tear each one down on error in proper onion order (rather than use Joonas' pet hate of calling the cleanup function in indeterminable state). Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Aul

[Intel-gfx] [PATCH 09/18] drm/i915/gtt: Only keep gen6 page directories pinned while active

2018-06-08 Thread Chris Wilson
In order to be able to evict the gen6 ppgtt, we have to unpin it at some point. We can simply use our context activity tracking to know when the ppgtt is no longer in use by hardware, and so only keep it pinned while being used a request. For the kernel_context (and thus aliasing_ppgtt), it remain

[Intel-gfx] [PATCH 03/18] drm/i915/ringbuffer: Fix context restore upon reset

2018-06-08 Thread Chris Wilson
The discovery with trying to enable full-ppgtt was that we were completely failing to the load both the mm and context following the reset. Although we were performing mmio to set the PP_DIR (per-process GTT) and CCID (context), these were taking no effect (the assumption was that this would trigge

[Intel-gfx] Haswell full-ppgtt, no really

2018-06-08 Thread Chris Wilson
The GPU hangs in mesa (piglit at least) were resolved, and GPU reset should now be operational. So as far as CI goes, we should have a clean bill of health. There is still one outstanding issue as Baytail still has the habit of writing to somewhere other than the intended mm. -Chris _

[Intel-gfx] [PATCH 12/18] drm/i915/gtt: Skip initializing PT with scratch if full

2018-06-08 Thread Chris Wilson
If we will completely overwrite the PT with PTEs for the object, we can forgo filling it with scratch entries. References: 14826673247e ("drm/i915: Only initialize partially filled pagetables") Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld Reviewed-by: Mat

[Intel-gfx] [PATCH 18/18] RFT drm/i915/gtt: Enable full-ppgtt by default everywhere

2018-06-08 Thread Chris Wilson
Let's see if we have all the kinks worked out and full-ppgtt now works reliably on gen7 (Ivybridge, Valleyview/Baytrail and Haswell). If we can let userspace have full control over their own ppgtt, it makes softpinning far more effective, in turn making GPU dispatch far more efficient and more secu

[Intel-gfx] [PATCH 17/18] drm/i915/gtt: Remove vgpu check for gen6

2018-06-08 Thread Chris Wilson
Since vgpu is not supported on Haswell or any other gen6/7, we do not need to check and act upon it's enablement. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) d

[Intel-gfx] [PATCH 05/18] drm/i915/gtt: Subclass gen6_hw_ppgtt

2018-06-08 Thread Chris Wilson
The legacy gen6 ppgtt needs a little more hand holding than gen8+, and so requires a larger structure. As I intend to make this slightly more complicated in the future, separate the gen6 from the core gen8 hw struct by subclassing. This patch moves the gen6 only features out to gen6_hw_ppgtt and pi

[Intel-gfx] [PATCH 11/18] drm/i915/gtt: Free unused page tables on unbind the context

2018-06-08 Thread Chris Wilson
As we cannot reliably change used page tables while the context is active, the earliest opportunity we have to recover excess pages is when the context becomes idle. So whenever we unbind the context (it must be idle, and indeed being evicted) free the unused ptes. Signed-off-by: Chris Wilson Cc:

[Intel-gfx] [PATCH 15/18] drm/i915/gtt: Skip clearing the GGTT under gen6+ full-ppgtt

2018-06-08 Thread Chris Wilson
If we know that the user cannot access the GGTT, by virtue of having a segregated memory area, we can skip clearing the unused entries as they cannot be accessed. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 4 +++

[Intel-gfx] [PATCH 08/18] drm/i915/gtt: Make gen6 page directories evictable

2018-06-08 Thread Chris Wilson
Currently all page directories are bound at creation using an unevictable node in the GGTT. This severely limits us as we cannot remove any inactive ppgtt for new contexts, or under aperture pressure. To fix this we need to make the page directory into a first class and unbindable vma. Hence, the c

[Intel-gfx] [PATCH 07/18] drm/i915/gtt: Reorder aliasing_ppgtt fini

2018-06-08 Thread Chris Wilson
To allow ourselves to use a first class vma for the aliasing_ppgtt page directory, we have to reorder the shutdown on module unload to remove and unpin the aliasing_ppgtt before complaining about any objects left in the GGTT. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc:

[Intel-gfx] [PATCH 16/18] drm/i915/gtt: Remove redundant hsw_mm_switch()

2018-06-08 Thread Chris Wilson
hsw_mm_switch() and gen7_mm_switch() are identical, so let's remove the redundant specialism. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 24 1 file changed, 24 deletions(-) diff --git a

[Intel-gfx] [PATCH 04/18] drm/i915/gtt: Invalidate GGTT caches after writing the gen6 page directories

2018-06-08 Thread Chris Wilson
When we update the gen6 ppgtt page directories, we do so by writing the new address into a reserved slot in the GGTT. It appears that when the GPU reads that entry from the gsm, it uses its small cache and that we need to invalidate that cache after writing. We don't see an issue currently as we pr

[Intel-gfx] [PATCH 10/18] drm/i915/gtt: Lazily allocate page directories for gen7

2018-06-08 Thread Chris Wilson
As we were only supporting aliasing_ppgtt on gen7 for some time, we saved a few checks by preallocating the page directories on creation. However, since we need 2MiB of page directories for each ppgtt, to support arbitrary numbers of user contexts, we need to be more prudent in our allocations, and

[Intel-gfx] [PATCH 13/18] drm/i915/gtt: Cache the PTE encoding of the scratch page

2018-06-08 Thread Chris Wilson
As the most frequent PTE encoding is for the scratch page, cache it upon creation. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 20 ++-- drivers/gpu/drm/i915/i915_gem_gtt

[Intel-gfx] [PATCH 01/18] drm/i915: Apply batch location restrictions before pinning

2018-06-08 Thread Chris Wilson
We special case the position of the batch within the GTT to prevent negative self-relocation deltas from underflowing. However, that restriction is being applied after a trial pin of the batch in its current position. Thus we are not rejecting an invalid location if the batch has been before, leadi

[Intel-gfx] [PATCH 14/18] drm/i915/gtt: Reduce a pair of runtime asserts

2018-06-08 Thread Chris Wilson
We can stop asserting using WARN_ON as given sufficient CI coverage, we can rely on using GEM_BUG_ON() to catch problems before merging. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld Reviewed-by: Matthew Auld --- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm/i915: fix guest virtual PCH detection on non-PCH systems

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: fix guest virtual PCH detection on non-PCH systems URL : https://patchwork.freedesktop.org/series/44484/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9239 = == Summary - SUCCESS == No r

[Intel-gfx] [PATCH] drm/i915/gtt: Make gen6 page directories evictable

2018-06-08 Thread Chris Wilson
Currently all page directories are bound at creation using an unevictable node in the GGTT. This severely limits us as we cannot remove any inactive ppgtt for new contexts, or under aperture pressure. To fix this we need to make the page directory into a first class and unbindable vma. Hence, the c

[Intel-gfx] ✗ Fi.CI.BAT: failure for HACK: drm/i915: see what breaks with display disabled

2018-06-08 Thread Patchwork
== Series Details == Series: HACK: drm/i915: see what breaks with display disabled URL : https://patchwork.freedesktop.org/series/44485/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9240 = == Summary - FAILURE == Serious unknown changes coming with Pat

Re: [Intel-gfx] [PATCH i-g-t] igt/drv_suspend: Suspend under memory pressure

2018-06-08 Thread Chris Wilson
Quoting Chris Wilson (2018-06-07 21:50:54) > Recently we discovered that we have a race between swapping and > suspend in our resume path (we might be trying to page in an object > after disabling the block devices). Let's try to exercise that by > exhausting all of system memory before suspend. >

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2) URL : https://patchwork.freedesktop.org/series/44486/ State : warning == Summary == $ dim checkpatch origin/drm-tip c1efb9574092 drm/i915: Apply batch location restricti

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2) URL : https://patchwork.freedesktop.org/series/44486/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm/i915: Apply batch location restrictions befor

Re: [Intel-gfx] [bug report] drm/i915/bios: add support for MIPI sequence block v3

2018-06-08 Thread Dan Carpenter
On Fri, Jun 08, 2018 at 03:50:47PM +0300, Jani Nikula wrote: > On Fri, 08 Jun 2018, Dan Carpenter wrote: > > Hello Jani Nikula, > > > > The patch 2a33d93486f2: "drm/i915/bios: add support for MIPI sequence > > block v3" from Jan 11, 2016, leads to the following static checker > > warning: > > > >

Re: [Intel-gfx] [PATCH] drm/i915/glk: Add Quirk for GLK NUC HDMI port issues.

2018-06-08 Thread Imre Deak
Hi Clint, nice debugging! On Thu, Jun 07, 2018 at 04:12:39PM -0700, clinton.a.tay...@intel.com wrote: > From: Clint Taylor > > On GLK NUC platforms the HDMI retiming buffer needs additional disabled > time to correctly sync to a faster incoming signal. > When measured on a scope the highspeed l

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2) URL : https://patchwork.freedesktop.org/series/44486/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9241 = == Summary - WARNING ==

[Intel-gfx] [PATCH 4/5] drm/i915: Remove kbl preproduction workarounds

2018-06-08 Thread Mika Kuoppala
We don't need kbl preprod workarounds anymore. Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/intel_lrc.c | 12 drivers/gpu/drm/i915/intel_workarounds.c | 5 - 2 files changed, 17 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/

[Intel-gfx] [PATCH 2/5] drm/i915: Store first production revid into device info

2018-06-08 Thread Mika Kuoppala
Store first known production revid into the device info. This enables us to easily see if we are running on a preproduction hardware. Uninitialized (zero) product revision id means that there are no known preliminary hardware for this platform, or that the platform is of gen that we don't care. T

[Intel-gfx] [PATCH 5/5] drm/i915: Warn on obsolete revision checks

2018-06-08 Thread Mika Kuoppala
If we are doing revision checks against a preproduction range, when there is already a product, it is a sign that there is code to be removed. Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/intel_chipset.h | 30 +--- 1 file changed, 23 insertions(+), 7 deletions(-)

[Intel-gfx] [PATCH 3/5] drm/i915: Use unknown production revid as alpha quality flag

2018-06-08 Thread Mika Kuoppala
We don't need to have distinct flag for alpha quality if we agree that setting the first production revid to be the epoch for stepping out from alpha quality on that platform. v2: rebase, comment beautification Cc: Joonas Lahtinen Cc: Chris Wilson Cc: Tomi Sarvela Cc: Jani Nikula Signed-off-b

[Intel-gfx] [PATCH 1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Mika Kuoppala
Carve out chipset definitions into new intel_chipset.h Cc: Chris Wilson Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_drv.h | 194 + drivers/gpu/drm/i915/intel_chipset.h | 202 +++ 2 files changed, 203 insertions(+), 193 deletion

Re: [Intel-gfx] [PATCH 5/5] drm/i915: Warn on obsolete revision checks

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 14:42:05) > If we are doing revision checks against a preproduction > range, when there is already a product, it is a sign > that there is code to be removed. > > Signed-off-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/intel_chipset.h | 30

Re: [Intel-gfx] [PATCH 02/18] drm/i915/ringbuffer: Brute force context restore

2018-06-08 Thread Mika Kuoppala
Chris Wilson writes: > An issue encountered with switching mm on gen7 is that the GPU likes to > hang (with the VS unit busy) when told to force restore the current > context. We can simply workaround this by substituting the > MI_FORCE_RESTORE flag with a round-trip through the kernel_context, >

Re: [Intel-gfx] [PATCH 4/5] drm/i915: Remove kbl preproduction workarounds

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 14:42:04) > We don't need kbl preprod workarounds anymore. > > Signed-off-by: Mika Kuoppala As we now consider cnl stable, and icl the new development branch, we can rid ourselves of preproduction w/a for anything older than cnl. (By my understanding of our proc

Re: [Intel-gfx] [PATCH 3/5] drm/i915: Use unknown production revid as alpha quality flag

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 14:42:03) > We don't need to have distinct flag for alpha quality if > we agree that setting the first production revid to be the > epoch for stepping out from alpha quality on that platform. > > v2: rebase, comment beautification > > Cc: Joonas Lahtinen > Cc: C

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 14:42:01) > Carve out chipset definitions into new intel_chipset.h > > Cc: Chris Wilson > Signed-off-by: Mika Kuoppala Reviewed-by: Chris Wilson Please check with Jani and Rodrigo that this fits in with our new/old platform strategy. > diff --git a/drivers/gp

[Intel-gfx] [PATCH v2] drm/i915/skl: Add warn about unsupported CDCLK rates

2018-06-08 Thread Imre Deak
While checking workarounds related to the CDCLK PLL, I noticed that the DMC firmware bits for WA#1183 are missing for SKL. After that I clarified with HW people that it's not needed on SKL, since it doesn't support eDP1.4 which would be the only thing requiring the problematic CDCLK clock rates. So

Re: [Intel-gfx] [PATCH 02/18] drm/i915/ringbuffer: Brute force context restore

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 14:52:13) > Chris Wilson writes: > > > An issue encountered with switching mm on gen7 is that the GPU likes to > > hang (with the VS unit busy) when told to force restore the current > > context. We can simply workaround this by substituting the > > MI_FORCE_REST

Re: [Intel-gfx] [PATCH 16/18] drm/i915/gtt: Remove redundant hsw_mm_switch()

2018-06-08 Thread Mika Kuoppala
Chris Wilson writes: > hsw_mm_switch() and gen7_mm_switch() are identical, so let's remove the > redundant specialism. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > Cc: Mika Kuoppala > Cc: Matthew Auld Reviewed-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/i915_gem_gtt.c | 24 -

[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h URL : https://patchwork.freedesktop.org/series/44488/ State : warning == Summary == $ dim checkpatch origin/drm-tip b04c01486105 drm/i915: Move chipset definitions to intel_chipset.h

Re: [Intel-gfx] [PATCH 17/18] drm/i915/gtt: Remove vgpu check for gen6

2018-06-08 Thread Mika Kuoppala
Chris Wilson writes: > Since vgpu is not supported on Haswell or any other gen6/7, we do not > need to check and act upon it's enablement. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > Cc: Mika Kuoppala > Cc: Matthew Auld Reviewed-by: Mika Kuoppala > --- > drivers/gpu/drm/i915/i

[Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h URL : https://patchwork.freedesktop.org/series/44488/ State : warning == Summary == $ dim sparse origin/drm-tip Commit: drm/i915: Move chipset definitions to intel_chipset.h -drivers/

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h URL : https://patchwork.freedesktop.org/series/44488/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9242 = == Summary - WARNING == Minor unkno

Re: [Intel-gfx] [PATCH 03/18] drm/i915/ringbuffer: Fix context restore upon reset

2018-06-08 Thread Chris Wilson
Quoting Chris Wilson (2018-06-08 13:55:47) > @@ -570,42 +585,10 @@ static void reset_ring(struct intel_engine_cs *engine, > * the restored context. > */ > if (request) { > - struct drm_i915_private *dev_priv = request->i915; > - struct intel_con

Re: [Intel-gfx] [PATCH 2/5] drm/i915: Store first production revid into device info

2018-06-08 Thread Chris Wilson
Quoting Mika Kuoppala (2018-06-08 14:42:02) > Store first known production revid into the device info. > > This enables us to easily see if we are running on > a preproduction hardware. > > Uninitialized (zero) product revision id means that > there are no known preliminary hardware for this plat

Re: [Intel-gfx] [PATCH v2] drm/i915/skl: Add warn about unsupported CDCLK rates

2018-06-08 Thread Ville Syrjälä
On Fri, Jun 08, 2018 at 05:00:02PM +0300, Imre Deak wrote: > While checking workarounds related to the CDCLK PLL, I noticed that the > DMC firmware bits for WA#1183 are missing for SKL. After that I > clarified with HW people that it's not needed on SKL, since it doesn't > support eDP1.4 which woul

Re: [Intel-gfx] [PATCH 10/18] drm/i915/gtt: Lazily allocate page directories for gen7

2018-06-08 Thread Matthew Auld
On 8 June 2018 at 13:55, Chris Wilson wrote: > As we were only supporting aliasing_ppgtt on gen7 for some time, we > saved a few checks by preallocating the page directories on creation. > However, since we need 2MiB of page directories for each ppgtt, to > support arbitrary numbers of user contex

[Intel-gfx] [PATCH v3] drm/i915/skl: Add warn about unsupported CDCLK rates

2018-06-08 Thread Imre Deak
While checking workarounds related to the CDCLK PLL, I noticed that the DMC firmware bits for WA#1183 are missing for SKL. After that I clarified with HW people that it's not needed on SKL, since it doesn't support eDP1.4 which would be the only thing requiring the problematic CDCLK clock rates. So

Re: [Intel-gfx] [PATCH 10/18] drm/i915/gtt: Lazily allocate page directories for gen7

2018-06-08 Thread Chris Wilson
Quoting Matthew Auld (2018-06-08 15:37:43) > Ah, in gen6_alloc_va_range() I think we now need: > > unwind_out: > - gen6_ppgtt_clear_range(vm, from, start); > + gen6_ppgtt_clear_range(vm, from, start - from); You are very right. -Chris ___ In

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/icl: Add warn about unsupported CDCLK rates (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: drm/i915/icl: Add warn about unsupported CDCLK rates (rev2) URL : https://patchwork.freedesktop.org/series/44421/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9243 = == Summary - WARNING == Minor unknown changes coming with

Re: [Intel-gfx] [PATCH 1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Michal Wajdeczko
On Fri, 08 Jun 2018 15:42:01 +0200, Mika Kuoppala wrote: Carve out chipset definitions into new intel_chipset.h Cc: Chris Wilson Signed-off-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_drv.h | 194 + drivers/gpu/drm/i915/intel_chipset.h | 202 ++

[Intel-gfx] [CI 1/2] drm/i915/gtt: Remove redundant hsw_mm_switch()

2018-06-08 Thread Chris Wilson
hsw_mm_switch() and gen7_mm_switch() are identical, so let's remove the redundant specialism. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld Reviewed-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_gem_gtt.c | 24 1 file changed, 2

[Intel-gfx] [CI 2/2] drm/i915/gtt: Remove vgpu check for gen6

2018-06-08 Thread Chris Wilson
Since vgpu is not supported on Haswell or any other gen6/7, we do not need to check and act upon it's enablement. Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuoppala Cc: Matthew Auld Reviewed-by: Mika Kuoppala --- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 1 file changed, 1 in

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/icl: Add warn about unsupported CDCLK rates (rev3)

2018-06-08 Thread Patchwork
== Series Details == Series: drm/i915/icl: Add warn about unsupported CDCLK rates (rev3) URL : https://patchwork.freedesktop.org/series/44421/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9244 = == Summary - SUCCESS == No regressions found. External

[Intel-gfx] ✓ Fi.CI.BAT: success for series starting with [CI,1/2] drm/i915/gtt: Remove redundant hsw_mm_switch()

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [CI,1/2] drm/i915/gtt: Remove redundant hsw_mm_switch() URL : https://patchwork.freedesktop.org/series/44491/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9245 = == Summary - SUCCESS == No regressions

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/5] drm/i915: fix guest virtual PCH detection on non-PCH systems

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: fix guest virtual PCH detection on non-PCH systems URL : https://patchwork.freedesktop.org/series/44484/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294_full -> Patchwork_9239_full = == Summary - WARNING

Re: [Intel-gfx] [PATCH] drm/i915/glk: Add Quirk for GLK NUC HDMI port issues.

2018-06-08 Thread Clint Taylor
On 06/08/2018 06:31 AM, Imre Deak wrote: Hi Clint, nice debugging! On Thu, Jun 07, 2018 at 04:12:39PM -0700, clinton.a.tay...@intel.com wrote: From: Clint Taylor On GLK NUC platforms the HDMI retiming buffer needs additional disabled time to correctly sync to a faster incoming signal. When

[Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2) URL : https://patchwork.freedesktop.org/series/44486/ State : failure == Summary == = CI Bug Log - changes from CI_DRM_4294_full -> Patchwork_9241_full = == Summary - F

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2)

2018-06-08 Thread Chris Wilson
Quoting Patchwork (2018-06-08 17:23:38) > == Series Details == > > Series: series starting with [01/18] drm/i915: Apply batch location > restrictions before pinning (rev2) > URL : https://patchwork.freedesktop.org/series/44486/ > State : failure > > == Summary == > > = CI Bug Log - changes fr

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev2)

2018-06-08 Thread Chris Wilson
Quoting Chris Wilson (2018-06-08 17:36:28) > Quoting Patchwork (2018-06-08 17:23:38) > > == Series Details == > > > > Series: series starting with [01/18] drm/i915: Apply batch location > > restrictions before pinning (rev2) > > URL : https://patchwork.freedesktop.org/series/44486/ > > State :

[Intel-gfx] [PATCH] drm/i915: Wrap around the tail offset before setting ring->tail

2018-06-08 Thread Chris Wilson
The HW only accepts offsets within ring->size, and fails peculiarly if the RING_HEAD or RING_TAIL is set to ring->size. Therefore whenever we set ring->head/ring->tail we want to make sure it is within value (using intel_ring_wrap()). Signed-off-by: Chris Wilson Cc: Joonas Lahtinen Cc: Mika Kuop

[Intel-gfx] [PATCH v2] drm/i915/ringbuffer: Fix context restore upon reset

2018-06-08 Thread Chris Wilson
The discovery with trying to enable full-ppgtt was that we were completely failing to the load both the mm and context following the reset. Although we were performing mmio to set the PP_DIR (per-process GTT) and CCID (context), these were taking no effect (the assumption was that this would trigge

[Intel-gfx] [PATCH] drm/i915/gtt: Fix unwind length passed to gen6_ppgtt_clear_range

2018-06-08 Thread Chris Wilson
When we want to unwind an error when allocating the PD for gen6, we call gen6_ppgtt_clear_range() telling to clear upto the PD we've previously cleared. However, we passed it the incorrect length, passing it the endpoint instead. Fortunately, as the start was always 0, this has no impact today, but

Re: [Intel-gfx] [PATCH] drm/i915/gtt: Fix unwind length passed to gen6_ppgtt_clear_range

2018-06-08 Thread Matthew Auld
On 8 June 2018 at 18:32, Chris Wilson wrote: > When we want to unwind an error when allocating the PD for gen6, we call > gen6_ppgtt_clear_range() telling to clear upto the PD we've previously > cleared. However, we passed it the incorrect length, passing it the > endpoint instead. Fortunately, as

[Intel-gfx] ✓ Fi.CI.IGT: success for series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [1/5] drm/i915: Move chipset definitions to intel_chipset.h URL : https://patchwork.freedesktop.org/series/44488/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294_full -> Patchwork_9242_full = == Summary - WARNING == M

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Wrap around the tail offset before setting ring->tail

2018-06-08 Thread Patchwork
== Series Details == Series: drm/i915: Wrap around the tail offset before setting ring->tail URL : https://patchwork.freedesktop.org/series/44500/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9246 = == Summary - WARNING == Minor unknown changes coming

[Intel-gfx] ✗ Fi.CI.BAT: failure for series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev3)

2018-06-08 Thread Patchwork
== Series Details == Series: series starting with [01/18] drm/i915: Apply batch location restrictions before pinning (rev3) URL : https://patchwork.freedesktop.org/series/44486/ State : failure == Summary == Applying: drm/i915: Apply batch location restrictions before pinning Applying: drm/i9

[Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gtt: Fix unwind length passed to gen6_ppgtt_clear_range

2018-06-08 Thread Patchwork
== Series Details == Series: drm/i915/gtt: Fix unwind length passed to gen6_ppgtt_clear_range URL : https://patchwork.freedesktop.org/series/44501/ State : success == Summary == = CI Bug Log - changes from CI_DRM_4294 -> Patchwork_9248 = == Summary - WARNING == Minor unknown changes coming

  1   2   >