]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Always allocate an object/vma for the HWSP
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 10:23:55 +0000 (10:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 28 Jan 2019 16:24:19 +0000 (16:24 +0000)
commit0ca88ba0d6347cf8c4ea9f264c384594f8fefa11
tree9a4d8ac2c4c3eb4171ed0c05fb6f70725ee46c20
parent528cbd17ceff070747a312c6312346b585495157
drm/i915: Always allocate an object/vma for the HWSP

Currently we only allocate an object and vma if we are using a GGTT
virtual HWSP, and a plain struct page for a physical HWSP. For
convenience later on with global timelines, it will be useful to always
have the status page being tracked by a struct i915_vma. Make it so.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190128102356.15037-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/selftests/mock_engine.c