mirror of https://gitee.com/openkylin/linux.git
Revert "drm/i915: Add soft-pinning API for execbuffer"
This reverts commit 5105672341
.
I somehow managed to combine a patch from Tomas Elf with a totally
unrelated commit message from Chris Wilson. Let's revert this and
reapply properly.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
parent
aed8bbd4bd
commit
bfd7bbdd03
|
@ -1071,25 +1071,6 @@ static void i915_gem_record_rings(struct drm_device *dev,
|
||||||
list_for_each_entry(request, &ring->request_list, list) {
|
list_for_each_entry(request, &ring->request_list, list) {
|
||||||
struct drm_i915_error_request *erq;
|
struct drm_i915_error_request *erq;
|
||||||
|
|
||||||
if (count >= error->ring[i].num_requests) {
|
|
||||||
/*
|
|
||||||
* If the ring request list was changed in
|
|
||||||
* between the point where the error request
|
|
||||||
* list was created and dimensioned and this
|
|
||||||
* point then just exit early to avoid crashes.
|
|
||||||
*
|
|
||||||
* We don't need to communicate that the
|
|
||||||
* request list changed state during error
|
|
||||||
* state capture and that the error state is
|
|
||||||
* slightly incorrect as a consequence since we
|
|
||||||
* are typically only interested in the request
|
|
||||||
* list state at the point of error state
|
|
||||||
* capture, not in any changes happening during
|
|
||||||
* the capture.
|
|
||||||
*/
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
erq = &error->ring[i].requests[count++];
|
erq = &error->ring[i].requests[count++];
|
||||||
erq->seqno = request->seqno;
|
erq->seqno = request->seqno;
|
||||||
erq->jiffies = request->emitted_jiffies;
|
erq->jiffies = request->emitted_jiffies;
|
||||||
|
|
Loading…
Reference in New Issue