OSDN Git Service

drm/i915: Restore relaxed padding (OCL_OOB_SUPPRES_ENABLE) for skl+
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Sep 2019 10:07:07 +0000 (11:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 4 Sep 2019 11:43:20 +0000 (12:43 +0100)
commit9d7b01e93526efe79dbf75b69cc5972b5a4f7b37
treed5e852a66c0a005fce47b8ebfccaa1536b280832
parent4bb6a9d5d9a8289673c4cb0786d44be8a63c21db
drm/i915: Restore relaxed padding (OCL_OOB_SUPPRES_ENABLE) for skl+

This bit was fliped on for "syncing dependencies between camera and
graphics". BSpec has no recollection why, and it is causing
unrecoverable GPU hangs with Vulkan compute workloads.

From BSpec, setting bit5 to 0 enables relaxed padding requirements for
buffers, 1D and 2D non-array, non-MSAA, non-mip-mapped linear surfaces;
and *must* be set to 0h on skl+ to ensure "Out of Bounds" case is
suppressed.

Reported-by: Jason Ekstrand <jason@jlekstrand.net>
Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110998
Fixes: 8424171e135c ("drm/i915/gen9: h/w w/a: syncing dependencies between camera and graphics")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: denys.kostin@globallogic.com
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: <stable@vger.kernel.org> # v4.1+
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190904100707.7377-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_workarounds.c