OpenCloudOS-Kernel/drivers/gpu/drm/i915/selftests
Christian König c0a51fd07b drm: move read_domains and write_domain into i915
i915 is the only driver using those fields in the drm_gem_object
structure, so they only waste memory for all other drivers.

Move the fields into drm_i915_gem_object instead and patch the i915 code
with the following sed commands:

sed -i "s/obj->base.read_domains/obj->read_domains/g" drivers/gpu/drm/i915/*.c drivers/gpu/drm/i915/*/*.c
sed -i "s/obj->base.write_domain/obj->write_domain/g" drivers/gpu/drm/i915/*.c drivers/gpu/drm/i915/*/*.c

Change is only compile tested.

v2: move fields around as suggested by Chris.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180216124338.9087-1-christian.koenig@amd.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2018-02-16 14:12:48 +00:00
..
huge_gem_object.c drm: move read_domains and write_domain into i915 2018-02-16 14:12:48 +00:00
huge_gem_object.h
huge_pages.c drm: move read_domains and write_domain into i915 2018-02-16 14:12:48 +00:00
i915_gem_coherency.c drm/i915/selftests: Markup __iomem for igt_gem_coherency 2017-11-15 17:12:49 +00:00
i915_gem_context.c drm: move read_domains and write_domain into i915 2018-02-16 14:12:48 +00:00
i915_gem_dmabuf.c drm/i915: Fix an error checking test 2017-06-27 14:30:56 +01:00
i915_gem_evict.c drm/i915/selftests: Hold rpm wakeref for request + ggtt usage 2017-11-24 09:10:58 +00:00
i915_gem_gtt.c drm: move read_domains and write_domain into i915 2018-02-16 14:12:48 +00:00
i915_gem_object.c drm/i915/selftests: Report setup errors for igt_partial_tiling 2018-02-13 12:40:28 +00:00
i915_gem_request.c drm/i915: Automatic i915_switch_context for legacy 2017-11-20 15:56:16 +00:00
i915_gem_timeline.c drm/i915/selftests: Always initialise err 2017-11-14 23:50:49 +00:00
i915_live_selftests.h More change sets for 4.16: 2017-12-04 10:56:53 +10:00
i915_mock_selftests.h main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
i915_random.c drm/i915/selftests: Allow random array allocation to fail 2018-01-02 15:30:40 +00:00
i915_random.h drm/i915/selftests: Use mul_u32_u32() for 32b x 32b -> 64b result 2017-09-13 13:27:20 +01:00
i915_selftest.c
i915_sw_fence.c drm/i915/selftests: Wait for the dma-fence timeout 2018-01-17 17:09:59 +00:00
i915_syncmap.c drm/i915/selftests: Always initialise err 2017-11-14 23:50:49 +00:00
i915_vma.c drm/i915/selftests: Always initialise err 2017-11-14 23:50:49 +00:00
intel_breadcrumbs.c Pass mode to wait_on_atomic_t() action funcs and provide default actions 2017-11-13 15:38:16 +00:00
intel_guc.c drm/i915/guc: Allow preempt-client to be NULL 2018-02-08 07:29:59 +00:00
intel_hangcheck.c drm/i915/selftests: Use a sacrificial context for hang testing 2018-02-05 15:27:24 +00:00
intel_uncore.c drm/i915: Acquire PUNIT->PMIC bus for intel_uncore_forcewake_reset() 2017-11-10 13:14:03 +01:00
lib_sw_fence.c drm/i915/selftests: Convert timers to use timer_setup() 2017-11-21 15:46:44 -08:00
lib_sw_fence.h drm/i915/selftests: Wrap a timer into a i915_sw_fence 2017-10-12 21:06:26 +01:00
mock_context.c drm/i915/selftests: Use a sacrificial context for hang testing 2018-02-05 15:27:24 +00:00
mock_context.h drm/i915/selftests: Use a sacrificial context for hang testing 2018-02-05 15:27:24 +00:00
mock_dmabuf.c
mock_dmabuf.h
mock_drm.c
mock_drm.h
mock_engine.c drm/i915/selftests: Increase size for mock ringbuffer 2017-11-15 17:12:49 +00:00
mock_engine.h drm/i915: Supply the engine-id for our mock_engine() 2017-08-10 12:18:35 +01:00
mock_gem_device.c drm/i915: Only allocate preempt context when required 2018-02-08 07:30:16 +00:00
mock_gem_device.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mock_gem_object.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mock_gtt.c drm/i915: make mappable struct resource centric 2017-12-12 12:30:21 +02:00
mock_gtt.h
mock_request.c
mock_request.h
mock_timeline.c
mock_timeline.h
mock_uncore.c
mock_uncore.h
scatterlist.c drm/i915/selftests: mix huge pages 2017-10-07 10:12:03 +01:00