<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/i915/i915_gpu_error.c, branch linux-4.7.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.7.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-04-09T11:09:05Z</updated>
<entry>
<title>drm/i915: Separate out the seqno-barrier from engine-&gt;get_seqno</title>
<updated>2016-04-09T11:09:05Z</updated>
<author>
<name>Chris Wilson</name>
</author>
<published>2016-04-09T09:57:54Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c04e0f3b4ea01b3b1d81ccfce0a73bb0b297ba46'/>
<id>urn:sha1:c04e0f3b4ea01b3b1d81ccfce0a73bb0b297ba46</id>
<content type='text'>
In order to simplify future patches, extract the
lazy_coherency optimisation our of the engine-&gt;get_seqno() vfunc into
its own callback.

v2: Rename the barrier to engine-&gt;irq_seqno_barrier to try and better
reflect that the barrier is only required after the user interrupt before
reading the seqno (to ensure that the seqno update lands in time as we
do not have strict seqno-irq ordering on all platforms).

Reviewed-by: Dave Gordon &lt;david.s.gordon@intel.com&gt; [#v2]

v3: Comments for hangcheck paranoia. Mika wanted to keep the extra
barrier inside the hangcheck, just in case. I can argue that it doesn't
provide a barrier against anything, but the side-effects of applying the
barrier may prevent a false declaration of a hung GPU.

Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Mika Kuoppala &lt;mika.kuoppala@intel.com&gt;
Cc: Dave Gordon &lt;david.s.gordon@intel.com&gt;
Reviewed-by: Mika Kuoppala &lt;mika.kuoppala@intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1460195877-20520-2-git-send-email-chris@chris-wilson.co.uk
</content>
</entry>
<entry>
<title>drm/i915: Include engine-&gt;last_submitted_seqno in GPU error state</title>
<updated>2016-04-08T10:42:50Z</updated>
<author>
<name>Chris Wilson</name>
</author>
<published>2016-04-07T06:29:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14fd0d6d0b91a207162f1a22104eb34d403b8679'/>
<id>urn:sha1:14fd0d6d0b91a207162f1a22104eb34d403b8679</id>
<content type='text'>
It's useful to look at the last seqno submitted on a particular engine
and compare it against the HWS value to check for irregularities.

Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Mika Kuoppala &lt;mika.kuoppala@linux.intel.com&gt;
Cc: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
Reviewed-by: Mika Kuoppala &lt;mika.kuoppala@linux.intel.com&gt;
Reviewed-by: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1460010558-10705-1-git-send-email-chris@chris-wilson.co.uk
</content>
</entry>
<entry>
<title>drm/i915: Do not use {HAS_*, IS_*, INTEL_INFO}(dev_priv-&gt;dev)</title>
<updated>2016-04-07T11:50:26Z</updated>
<author>
<name>Joonas Lahtinen</name>
</author>
<published>2016-04-07T08:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2d1fe0734087f0d3adb77e2489843126e313387c'/>
<id>urn:sha1:2d1fe0734087f0d3adb77e2489843126e313387c</id>
<content type='text'>
dev_priv is what the macro works hard to extract, pass it directly.

&gt; sed 's/\([A-Z].*(dev_priv\)-&gt;dev)/\1)/g'

v2:
- Include all wrapper macros too (Chris)

v3:
- Include sed cmdline (Chris)

v4:
- Break long line
- Rebase

Cc: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Signed-off-by: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1460016485-8089-1-git-send-email-joonas.lahtinen@linux.intel.com
</content>
</entry>
<entry>
<title>drm/i915: Refer to GGTT {,VM} consistently</title>
<updated>2016-03-31T14:55:43Z</updated>
<author>
<name>Joonas Lahtinen</name>
</author>
<published>2016-03-30T13:57:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=72e96d6450c067f58b65224bb5e73914e2cc43ab'/>
<id>urn:sha1:72e96d6450c067f58b65224bb5e73914e2cc43ab</id>
<content type='text'>
Refer to the GGTT VM consistently as "ggtt-&gt;base" instead of just "ggtt",
"vm" or indirectly through other variables like "dev_priv-&gt;ggtt.base"
to avoid confusion with the i915_ggtt object itself and PPGTT VMs.

Refer to the GGTT as "ggtt" instead of indirectly through chaining.

As a bonus gets rid of the long-standing i915_obj_to_ggtt vs.
i915_gem_obj_to_ggtt conflict, due to removal of i915_obj_to_ggtt!

v2:
- Added some more after grepping sources with Chris

v3:
- Refer to GGTT VM through ggtt-&gt;base consistently instead of ggtt_vm
  (Chris)

v4:
- Convert all dev_priv-&gt;ggtt-&gt;foo accesses to ggtt-&gt;foo.

v5:
- Make patch checker happy

Cc: Tvrtko Ursulin &lt;tvrtko.ursulin@intel.com&gt;
Cc: Mika Kuoppala &lt;mika.kuoppala@linux.intel.com&gt;
Cc: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Signed-off-by: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
</content>
</entry>
<entry>
<title>drm/i915: introduce for_each_engine_id()</title>
<updated>2016-03-24T14:34:06Z</updated>
<author>
<name>Dave Gordon</name>
</author>
<published>2016-03-23T18:19:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c3232b1883e033e291aa3146f431b7ec87c80ec5'/>
<id>urn:sha1:c3232b1883e033e291aa3146f431b7ec87c80ec5</id>
<content type='text'>
Equivalent to the existing for_each_engine() macro, this will replace
the latter wherever the third argument *is* actually wanted (in most
places, it is not used). The third argument is renamed to emphasise
that it is an engine id (type enum intel_engine_id). All the callers of
the macro that actually need the third argument are updated to use this
version, and the argument (generally 'i') is also updated to be 'id'.
Other callers (where the third argument is unused) are untouched for
now; they will be updated in the next patch.

Signed-off-by: Dave Gordon &lt;david.s.gordon@intel.com&gt;
Signed-off-by: Tvrtko Ursulin &lt;tvrtko.ursulin@intel.com&gt;
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
</content>
</entry>
<entry>
<title>drm/i915/tdr: Prepare error handler to accept mask of hung engines</title>
<updated>2016-03-22T12:12:59Z</updated>
<author>
<name>arun.siluvery@linux.intel.com</name>
</author>
<published>2016-03-18T20:07:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=14b730fcb8d9b9c6fed540829548040ef8d2ca2c'/>
<id>urn:sha1:14b730fcb8d9b9c6fed540829548040ef8d2ca2c</id>
<content type='text'>
In preparation for engine reset, the wedged argument of i915_handle_error()
is extended to reflect as a mask of engines that are hung. This is further
passed down to error state capture functions which are also updated.

Engine reset recovery mechanism uses this mask and schedules recovery work
for those particular engines.

Cc: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Mika Kuoppala &lt;mika.kuoppala@intel.com&gt;
Signed-off-by: Tomas Elf &lt;tomas.elf@intel.com&gt;
Signed-off-by: Arun Siluvery &lt;arun.siluvery@linux.intel.com&gt;
Reviewed-by: Mika Kuoppala &lt;mika.kuoppala@intel.com&gt;
Signed-off-by: Mika Kuoppala &lt;mika.kuoppala@intel.com&gt;
Link: http://patchwork.freedesktop.org/patch/msgid/1458331676-567-3-git-send-email-arun.siluvery@linux.intel.com
</content>
</entry>
<entry>
<title>drm/i915: Rename dev_priv-&gt;gtt to dev_priv-&gt;ggtt</title>
<updated>2016-03-18T13:18:15Z</updated>
<author>
<name>Joonas Lahtinen</name>
</author>
<published>2016-03-18T08:42:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=62106b4f6b9118073ec59e3e34ec393ed76cf24f'/>
<id>urn:sha1:62106b4f6b9118073ec59e3e34ec393ed76cf24f</id>
<content type='text'>
Refer to Global GTT consistently as GGTT, thus rename dev_priv-&gt;gtt
to dev_priv-&gt;ggtt and struct i915_gtt to struct i915_ggtt.

Fix a couple of whitespace problems while at it.

v2:
- Fix a typo in commit message.

Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Signed-off-by: Joonas Lahtinen &lt;joonas.lahtinen@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>drm/i915: More intel_engine_cs renaming</title>
<updated>2016-03-16T15:33:24Z</updated>
<author>
<name>Tvrtko Ursulin</name>
</author>
<published>2016-03-16T11:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=666796da7abbc9c8c1805efa6d43bf078ddb282e'/>
<id>urn:sha1:666796da7abbc9c8c1805efa6d43bf078ddb282e</id>
<content type='text'>
Some trivial ones, first pass done with Coccinelle:

@@
@@
(
- I915_NUM_RINGS
+ I915_NUM_ENGINES
|
- intel_ring_flag
+ intel_engine_flag
|
- for_each_ring
+ for_each_engine
|
- i915_gem_request_get_ring
+ i915_gem_request_get_engine
|
- intel_ring_idle
+ intel_engine_idle
|
- i915_gem_reset_ring_status
+ i915_gem_reset_engine_status
|
- i915_gem_reset_ring_cleanup
+ i915_gem_reset_engine_cleanup
|
- init_ring_lists
+ init_engine_lists
)

But that didn't fully work so I cleaned it up with:

for f in *.[hc]; do sed -i -e s/I915_NUM_RINGS/I915_NUM_ENGINES/ $f; done
for f in *.[hc]; do sed -i -e s/i915_gem_request_get_ring/i915_gem_request_get_engine/ $f; done
for f in *.[hc]; do sed -i -e s/intel_ring_flag/intel_engine_flag/ $f; done
for f in *.[hc]; do sed -i -e s/intel_ring_idle/intel_engine_idle/ $f; done
for f in *.[hc]; do sed -i -e s/init_ring_lists/init_engine_lists/ $f; done
for f in *.[hc]; do sed -i -e s/i915_gem_reset_ring_cleanup/i915_gem_reset_engine_cleanup/ $f; done
for f in *.[hc]; do sed -i -e s/i915_gem_reset_ring_status/i915_gem_reset_engine_status/ $f; done

v2: Rebase.

Signed-off-by: Tvrtko Ursulin &lt;tvrtko.ursulin@intel.com&gt;
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
</content>
</entry>
<entry>
<title>drm/i915: Rename intel_engine_cs struct members</title>
<updated>2016-03-16T15:33:17Z</updated>
<author>
<name>Tvrtko Ursulin</name>
</author>
<published>2016-03-16T11:00:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a570db57c051644093c20eea934ee02b6ea84fd'/>
<id>urn:sha1:4a570db57c051644093c20eea934ee02b6ea84fd</id>
<content type='text'>
below and a couple manual fixups.

@@
identifier I, J;
@@
struct I {
...
- struct intel_engine_cs *J;
+ struct intel_engine_cs *engine;
...
}
@@
identifier I, J;
@@
struct I {
...
- struct intel_engine_cs J;
+ struct intel_engine_cs engine;
...
}
@@
struct drm_i915_private *d;
@@
(
- d-&gt;ring
+ d-&gt;engine
)
@@
struct i915_execbuffer_params *p;
@@
(
- p-&gt;ring
+ p-&gt;engine
)
@@
struct intel_ringbuffer *r;
@@
(
- r-&gt;ring
+ r-&gt;engine
)
@@
struct drm_i915_gem_request *req;
@@
(
- req-&gt;ring
+ req-&gt;engine
)

v2: Script missed the tracepoint code - fixed up by hand.

Signed-off-by: Tvrtko Ursulin &lt;tvrtko.ursulin@intel.com&gt;
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
</content>
</entry>
<entry>
<title>drm/i915: Rename intel_engine_cs function parameters</title>
<updated>2016-03-16T15:33:10Z</updated>
<author>
<name>Tvrtko Ursulin</name>
</author>
<published>2016-03-16T11:00:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0bc40be85f33ca1795253a5f8674efb430f83cce'/>
<id>urn:sha1:0bc40be85f33ca1795253a5f8674efb430f83cce</id>
<content type='text'>
@@
identifier func;
@@
func(..., struct intel_engine_cs *
- ring
+ engine
, ...)
{
&lt;...
- ring
+ engine
...&gt;
}
@@
identifier func;
type T;
@@
T func(..., struct intel_engine_cs *
- ring
+ engine
, ...);

Signed-off-by: Tvrtko Ursulin &lt;tvrtko.ursulin@intel.com&gt;
Reviewed-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
</content>
</entry>
</feed>
