[Bug 103964] BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:34
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 1 09:23:07 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103964
Chris Wilson <chris at chris-wilson.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEEDINFO |RESOLVED
--- Comment #11 from Chris Wilson <chris at chris-wilson.co.uk> ---
commit b5e0a9418e09a7b6df1728a26832c7c34aa1adf8
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Dec 1 00:15:36 2017 +0000
drm/i915: Set fake_vma.size as well as fake_vma.node.size for capture
When capturing the bo, we allocate an error object with an array of
min(vma->size, vma->node.size) pages, plus a bit for compression overhead.
However, when creating the fake vma to describe the bo, only one of the
sizes was filled in, resulting in a too small array. Through my and CI
testing, this was sufficient for the mostly empty NULL context as
it compressed well (or the out-of-bounds access simply didn't cause an
issue). However, in real workloads on Cannonlake, we were overflowing
that array and causing havoc with the random memory corruption.
Reported-by: Rafael Antognolli <rafael.antognolli at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103964
Fixes: 4e90a6e22272 ("drm/i915: Record default HW state in the GPU error
state")
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Tested-by: Rodrigo Vivi <rodrigo.vivi at gmail.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20171201001536.13941-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20171201/b33204e6/attachment.html>
More information about the intel-gfx-bugs
mailing list