]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Free mock_i915->drm.mode_config
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Dec 2017 21:08:35 +0000 (21:08 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Dec 2017 11:24:30 +0000 (11:24 +0000)
commitbb162ac7dc981e7caa422c55d7248c9e40a7d20b
tree25c236d6f0eefb0657bed1137be7849478956876
parent62bbf36bcd942a8c257375d1764c11f28c4ae61c
drm/i915/selftests: Free mock_i915->drm.mode_config

Even for the mock i915 device, we need to initialise the
drm.mode_config, as we may ultimately query whether there are any KMS
users deep in the bowels of some paths (e.g. eviction). As we initialise
drm.mode_config we must cleanup after ourselves!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171209210835.32609-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/mock_gem_device.c