OSDN Git Service

drm/i915/selftests: Assign the intel_runtime_pm pointer for mock_uncore
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Oct 2019 14:50:45 +0000 (15:50 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 8 Oct 2019 15:21:50 +0000 (16:21 +0100)
commitd14a701b00706395de33c61866daa3d424d758fc
treea1b87010b08422f13c1c7a60026c44d790b12ebf
parent3de1627851321fc5589b2a49bf52755a60c8276f
drm/i915/selftests: Assign the intel_runtime_pm pointer for mock_uncore

Couple up our mock_uncore to know about the fake global device and its
runtime powermanagement.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191008145045.23157-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/mock_engine.c
drivers/gpu/drm/i915/selftests/mock_gem_device.c
drivers/gpu/drm/i915/selftests/mock_uncore.c
drivers/gpu/drm/i915/selftests/mock_uncore.h