drm/i915: Copy default modparams to mock i915_device
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Jul 2020 15:06:00 +0000 (16:06 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 17 Aug 2020 20:16:22 +0000 (16:16 -0400)
commit98ef067453709444a264939940f7b3a5dfdfa09e
treef3ef9e0ce78a172541870e0bd42d069ff5dc93aa
parent2982ded2ff5ce0cf1a49bc39a526da182782b664
drm/i915: Copy default modparams to mock i915_device

Since we use the module parameters stored inside the drm_i915_device
itself, we need to ensure the mock i915_device also sets up the right
defaults.

Fixes: 8a25c4be583d ("drm/i915/params: switch to device specific parameters")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200728150600.4509-1-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/selftests/mock_gem_device.c