]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: On GPU reset, set the HWS breadcrumb to the last seqno
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Apr 2016 06:29:11 +0000 (07:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 10:43:11 +0000 (11:43 +0100)
commitf8e5b7fa52d6c37aa2836453671b9be4df59a3f5
tree8cd2f1ba5d77bbc3f27da73dd387fffc7375b274
parenta9295a7595b46cb1a73c7d37913d0896fae59832
drm/i915: On GPU reset, set the HWS breadcrumb to the last seqno

After the GPU reset and we discard all of the incomplete requests, mark
the GPU as having advanced to the last_submitted_seqno (as having
completed the requests and ready for fresh work). The impact of this is
negligible, as all the requests will be considered completed by this
point, it just brings the HWS into line with expectations for external
viewers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460010558-10705-2-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c