Re: [Intel-gfx] [RFCv2 01/19] drm/i915: Provide a hook for selftests

2017-01-11 Thread Chris Wilson
On Wed, Jan 11, 2017 at 06:17:48PM +, Tvrtko Ursulin wrote: > On 20/12/2016 13:07, Chris Wilson wrote: > >@@ -522,6 +534,11 @@ static struct pci_driver i915_pci_driver = { > > static int __init i915_init(void) > > { > > bool use_kms = true; > >+int err; > >+ > >+err = i915_mock_self

Re: [Intel-gfx] [RFCv2 01/19] drm/i915: Provide a hook for selftests

2017-01-11 Thread Tvrtko Ursulin
On 20/12/2016 13:07, Chris Wilson wrote: Some pieces of code are independent of hardware but are very tricky to exercise through the normal userspace ABI or via debugfs hooks. Being able to create mock unit tests and execute them through CI is vital. Start by adding a central point where we can

[Intel-gfx] [RFCv2 01/19] drm/i915: Provide a hook for selftests

2016-12-20 Thread Chris Wilson
Some pieces of code are independent of hardware but are very tricky to exercise through the normal userspace ABI or via debugfs hooks. Being able to create mock unit tests and execute them through CI is vital. Start by adding a central point where we can execute unit tests and a parameter to enable