<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/gpu/drm/i915/i915_gpu_error.c, branch linux-3.16.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.16.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2014-06-11T08:06:43Z</updated>
<entry>
<title>drm/i95: Initialize active ring-&gt;pid to -1</title>
<updated>2014-06-11T08:06:43Z</updated>
<author>
<name>Chris Wilson</name>
</author>
<published>2014-06-10T11:09:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=eee73b46261325eb140d899b5371f49b02d88f63'/>
<id>urn:sha1:eee73b46261325eb140d899b5371f49b02d88f63</id>
<content type='text'>
Otherwise we print out spurious processes on unused rings in the error
state.

Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
Signed-off-by: Jani Nikula &lt;jani.nikula@intel.com&gt;
</content>
</entry>
<entry>
<title>drm/i915: Split the ringbuffers from the rings (2/3)</title>
<updated>2014-05-22T21:27:25Z</updated>
<author>
<name>Oscar Mateo</name>
</author>
<published>2014-05-22T13:13:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee1b1e5ef38d22e2447b48b8456a2b2bcf438e65'/>
<id>urn:sha1:ee1b1e5ef38d22e2447b48b8456a2b2bcf438e65</id>
<content type='text'>
This refactoring has been performed using the following Coccinelle
semantic script:

    @@
    struct intel_engine_cs r;
    @@
    (
    - (r).obj
    + r.buffer-&gt;obj
    |
    - (r).virtual_start
    + r.buffer-&gt;virtual_start
    |
    - (r).head
    + r.buffer-&gt;head
    |
    - (r).tail
    + r.buffer-&gt;tail
    |
    - (r).space
    + r.buffer-&gt;space
    |
    - (r).size
    + r.buffer-&gt;size
    |
    - (r).effective_size
    + r.buffer-&gt;effective_size
    |
    - (r).last_retired_head
    + r.buffer-&gt;last_retired_head
    )

    @@
    struct intel_engine_cs *r;
    @@
    (
    - (r)-&gt;obj
    + r-&gt;buffer-&gt;obj
    |
    - (r)-&gt;virtual_start
    + r-&gt;buffer-&gt;virtual_start
    |
    - (r)-&gt;head
    + r-&gt;buffer-&gt;head
    |
    - (r)-&gt;tail
    + r-&gt;buffer-&gt;tail
    |
    - (r)-&gt;space
    + r-&gt;buffer-&gt;space
    |
    - (r)-&gt;size
    + r-&gt;buffer-&gt;size
    |
    - (r)-&gt;effective_size
    + r-&gt;buffer-&gt;effective_size
    |
    - (r)-&gt;last_retired_head
    + r-&gt;buffer-&gt;last_retired_head
    )

    @@
    expression E;
    @@
    (
    - LP_RING(E)-&gt;obj
    + LP_RING(E)-&gt;buffer-&gt;obj
    |
    - LP_RING(E)-&gt;virtual_start
    + LP_RING(E)-&gt;buffer-&gt;virtual_start
    |
    - LP_RING(E)-&gt;head
    + LP_RING(E)-&gt;buffer-&gt;head
    |
    - LP_RING(E)-&gt;tail
    + LP_RING(E)-&gt;buffer-&gt;tail
    |
    - LP_RING(E)-&gt;space
    + LP_RING(E)-&gt;buffer-&gt;space
    |
    - LP_RING(E)-&gt;size
    + LP_RING(E)-&gt;buffer-&gt;size
    |
    - LP_RING(E)-&gt;effective_size
    + LP_RING(E)-&gt;buffer-&gt;effective_size
    |
    - LP_RING(E)-&gt;last_retired_head
    + LP_RING(E)-&gt;buffer-&gt;last_retired_head
    )

Note: On top of this this patch also removes the now unused ringbuffer
fields in intel_engine_cs.

Signed-off-by: Oscar Mateo &lt;oscar.mateo@intel.com&gt;
[danvet: Add note about fixup patch included here.]
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915: s/intel_ring_buffer/intel_engine_cs</title>
<updated>2014-05-22T21:01:05Z</updated>
<author>
<name>Oscar Mateo</name>
</author>
<published>2014-05-22T13:13:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4872ba6d01454dfeb251d96f623ab5d1b0666a4'/>
<id>urn:sha1:a4872ba6d01454dfeb251d96f623ab5d1b0666a4</id>
<content type='text'>
In the upcoming patches we plan to break the correlation between
engine command streamers (a.k.a. rings) and ringbuffers, so it
makes sense to refactor the code and make the change obvious.

No functional changes.

Signed-off-by: Oscar Mateo &lt;oscar.mateo@intel.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915: Introduce mapping of user pages into video memory (userptr) ioctl</title>
<updated>2014-05-16T17:31:29Z</updated>
<author>
<name>Chris Wilson</name>
</author>
<published>2014-05-16T13:22:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5cc9ed4b9a7ac579362ccebac67f7a4cdb36de06'/>
<id>urn:sha1:5cc9ed4b9a7ac579362ccebac67f7a4cdb36de06</id>
<content type='text'>
By exporting the ability to map user address and inserting PTEs
representing their backing pages into the GTT, we can exploit UMA in order
to utilize normal application data as a texture source or even as a
render target (depending upon the capabilities of the chipset). This has
a number of uses, with zero-copy downloads to the GPU and efficient
readback making the intermixed streaming of CPU and GPU operations
fairly efficient. This ability has many widespread implications from
faster rendering of client-side software rasterisers (chromium),
mitigation of stalls due to read back (firefox) and to faster pipelining
of texture data (such as pixel buffer objects in GL or data blobs in CL).

v2: Compile with CONFIG_MMU_NOTIFIER
v3: We can sleep while performing invalidate-range, which we can utilise
to drop our page references prior to the kernel manipulating the vma
(for either discard or cloning) and so protect normal users.
v4: Only run the invalidate notifier if the range intercepts the bo.
v5: Prevent userspace from attempting to GTT mmap non-page aligned buffers
v6: Recheck after reacquire mutex for lost mmu.
v7: Fix implicit padding of ioctl struct by rounding to next 64bit boundary.
v8: Fix rebasing error after forwarding porting the back port.
v9: Limit the userptr to page aligned entries. We now expect userspace
    to handle all the offset-in-page adjustments itself.
v10: Prevent vma from being copied across fork to avoid issues with cow.
v11: Drop vma behaviour changes -- locking is nigh on impossible.
     Use a worker to load user pages to avoid lock inversions.
v12: Use get_task_mm()/mmput() for correct refcounting of mm.
v13: Use a worker to release the mmu_notifier to avoid lock inversion
v14: Decouple mmu_notifier from struct_mutex using a custom mmu_notifer
     with its own locking and tree of objects for each mm/mmu_notifier.
v15: Prevent overlapping userptr objects, and invalidate all objects
     within the mmu_notifier range
v16: Fix a typo for iterating over multiple objects in the range and
     rearrange error path to destroy the mmu_notifier locklessly.
     Also close a race between invalidate_range and the get_pages_worker.
v17: Close a race between get_pages_worker/invalidate_range and fresh
     allocations of the same userptr range - and notice that
     struct_mutex was presumed to be held when during creation it wasn't.
v18: Sigh. Fix the refactor of st_set_pages() to allocate enough memory
     for the struct sg_table and to clear it before reporting an error.
v19: Always error out on read-only userptr requests as we don't have the
     hardware infrastructure to support them at the moment.
v20: Refuse to implement read-only support until we have the required
     infrastructure - but reserve the bit in flags for future use.
v21: use_mm() is not required for get_user_pages(). It is only meant to
     be used to fix up the kernel thread's current-&gt;mm for use with
     copy_user().
v22: Use sg_alloc_table_from_pages for that chunky feeling
v23: Export a function for sanity checking dma-buf rather than encode
     userptr details elsewhere, and clean up comments based on
     suggestions by Bradley.

Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Cc: Tvrtko Ursulin &lt;tvrtko.ursulin@linux.intel.com&gt;
Cc: "Gong, Zhipeng" &lt;zhipeng.gong@intel.com&gt;
Cc: Akash Goel &lt;akash.goel@intel.com&gt;
Cc: "Volkin, Bradley D" &lt;bradley.d.volkin@intel.com&gt;
Reviewed-by: Tvrtko Ursulin &lt;tvrtko.ursulin@linux.intel.com&gt;
Reviewed-by: Brad Volkin &lt;bradley.d.volkin@intel.com&gt;
[danvet: Frob ioctl allocation to pick the next one - will cause a bit
of fuss with create2 apparently, but such are the rules.]
[danvet2: oops, forgot to git add after manual patch application]
[danvet3: Appease sparse.]
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915: Move semaphore specific ring members to struct</title>
<updated>2014-05-05T08:56:52Z</updated>
<author>
<name>Ben Widawsky</name>
</author>
<published>2014-04-29T21:52:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ebc348b2ad59ed5c9b22269f422d12095b640ff5'/>
<id>urn:sha1:ebc348b2ad59ed5c9b22269f422d12095b640ff5</id>
<content type='text'>
This will be helpful in abstracting some of the code in preparation for
gen8 semaphores.

v2: Move mbox stuff to a separate struct

v3: Rebased over VCS2 work

Reviewed-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt; (v1)
Signed-off-by: Ben Widawsky &lt;ben@bwidawsk.net&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915: add missing error capturing of the PIPESTAT reg</title>
<updated>2014-05-05T07:09:02Z</updated>
<author>
<name>Imre Deak</name>
</author>
<published>2014-04-18T12:55:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f301b1e116396804c6fcd4a33eb4477a24e0a3b8'/>
<id>urn:sha1:f301b1e116396804c6fcd4a33eb4477a24e0a3b8</id>
<content type='text'>
While checking the error capture path I noticed that we lacked the
power domain-on check for PIPESTAT so fix this by moving that to where
the rest of pipe registers are captured.

The move also revealed that we actually don't include this register in
the error report, so fix that too.

v2:
- patch introduced in v2 of the patchset
v3:
- add back !HAS_PCH_SPLIT check (Ville)
[ Ignore my previous comment about the gen&lt;=5 || vlv check, I realized
  that it's the same as !HAS_PCH_SPLIT. ]

Signed-off-by: Imre Deak &lt;imre.deak@intel.com&gt;
Reviewed-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915: gen2: move error capture of IER to its correct place</title>
<updated>2014-05-05T07:09:01Z</updated>
<author>
<name>Imre Deak</name>
</author>
<published>2014-04-14T17:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=51660e0eb6e7130fb1ba511cc1918cbe505be0af'/>
<id>urn:sha1:51660e0eb6e7130fb1ba511cc1918cbe505be0af</id>
<content type='text'>
While checking the error capture path I noticed that this register is
read twice for GEN2, so fix this and also move the read where it's done
for other platforms.

Signed-off-by: Imre Deak &lt;imre.deak@intel.com&gt;
Reviewed-by: Rodrigo Vivi &lt;rodrigo.vivi@gmail.com&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915:Initialize the second BSD ring on BDW GT3 machine</title>
<updated>2014-05-05T07:08:46Z</updated>
<author>
<name>Zhao Yakui</name>
</author>
<published>2014-04-17T02:37:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=845f74a701541662bf7d4880a0f4d492b28f2d18'/>
<id>urn:sha1:845f74a701541662bf7d4880a0f4d492b28f2d18</id>
<content type='text'>
Based on the hardware spec, the BDW GT3 machine has two independent
BSD ring that can be used to dispatch the video commands.
So just initialize it.

V3-&gt;V4: Follow Imre's comment to do some minor updates. For example:
more comments are added to describe the semaphore between ring.

Reviewed-by: Imre Deak &lt;imre.deak@intel.com&gt;
Signed-off-by: Zhao Yakui &lt;yakui.zhao@intel.com&gt;
[danvet: Fix up checkpatch error.]
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915: Dump the whole context object.</title>
<updated>2014-04-09T12:37:13Z</updated>
<author>
<name>Ben Widawsky</name>
</author>
<published>2014-04-05T21:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=17d36749a559905f7d9a640239a9fc74fc3bb445'/>
<id>urn:sha1:17d36749a559905f7d9a640239a9fc74fc3bb445</id>
<content type='text'>
As we've learned over time, the HW context is just a series of GPU
commands that we're able to decode without any changes in
intel_error_decode. Since many bugs recently have been implicated in
the HW context state, it makes sense to dump the whole context object
in a form which can be parsed.

Sample:
render ring --- HW Context = 0x042db000
ringbuffer (render ring) at 0x0160c000; HEAD points to: 0x0160c000
0x0160c000:      0x00000000: MI_NOOP
0x0160c004:      0x00000000: MI_NOOP
0x0160c008:      0x00000000: MI_NOOP
0x0160c00c:      0x00000000: MI_NOOP
0x0160c010:      0x00000000: MI_NOOP
0x0160c014:      0x00000000: MI_NOOP
0x0160c018:      0x00000000: MI_NOOP
0x0160c01c:      0x00000000: MI_NOOP

Unfortunately, our decoder isn't quite smart enough to deal with the
variable length LRIs - but that is a tools problem.

Signed-off-by: Ben Widawsky &lt;ben@bwidawsk.net&gt;
[danvet: Clarify commit message a bit, seems to have lost a few
crucial words.]
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
<entry>
<title>drm/i915/bdw: Expand FADD to 64bit</title>
<updated>2014-04-02T07:21:44Z</updated>
<author>
<name>Ben Widawsky</name>
</author>
<published>2014-04-01T23:31:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=13ffadd1f9fa2e19ecb054b063887dcd62dde2be'/>
<id>urn:sha1:13ffadd1f9fa2e19ecb054b063887dcd62dde2be</id>
<content type='text'>
For error state, like the recent modification to ACTHD, FADD also gets
an upper dword. This is useful for debug to make sure the fetch address
and head are similar.

Signed-off-by: Ben Widawsky &lt;ben@bwidawsk.net&gt;
Signed-off-by: Daniel Vetter &lt;daniel.vetter@ffwll.ch&gt;
</content>
</entry>
</feed>
