Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-22 Thread Joonas Lahtinen
Hi, Seems like there were couple too many steps away from "just reordering code", and indeed it's not working with GuC enabled, so have to spend some time to see why. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-21 Thread Joonas Lahtinen
On ke, 2017-02-15 at 18:28 -0800, Daniele Ceraolo Spurio wrote: > > On 14/02/17 05:53, Joonas Lahtinen wrote: > > > > Started adding proper teardown to guc_client_alloc, ended up removing > > quite a few dead ends where errors communicating with the GuC were > > silently ignored. There also

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-16 Thread Oscar Mateo
On 02/14/2017 05:53 AM, Joonas Lahtinen wrote: Started adding proper teardown to guc_client_alloc, ended up removing quite a few dead ends where errors communicating with the GuC were silently ignored. There also seemed to be quite a few erronous teardown actions performed in case of an error

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-16 Thread Daniele Ceraolo Spurio
On 15/02/17 23:44, Chris Wilson wrote: On Wed, Feb 15, 2017 at 06:28:59PM -0800, Daniele Ceraolo Spurio wrote: On 14/02/17 05:53, Joonas Lahtinen wrote: -static void guc_disable_doorbell(struct intel_guc *guc, -struct i915_guc_client *client) +static int

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-15 Thread Chris Wilson
On Wed, Feb 15, 2017 at 06:28:59PM -0800, Daniele Ceraolo Spurio wrote: > On 14/02/17 05:53, Joonas Lahtinen wrote: > >-static void guc_disable_doorbell(struct intel_guc *guc, > >- struct i915_guc_client *client) > >+static int __destroy_doorbell(struct i915_guc_client

Re: [Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-15 Thread Daniele Ceraolo Spurio
On 14/02/17 05:53, Joonas Lahtinen wrote: Started adding proper teardown to guc_client_alloc, ended up removing quite a few dead ends where errors communicating with the GuC were silently ignored. There also seemed to be quite a few erronous teardown actions performed in case of an error

[Intel-gfx] [PATCH v2] drm/i915: Sanitize GuC client initialization

2017-02-14 Thread Joonas Lahtinen
Started adding proper teardown to guc_client_alloc, ended up removing quite a few dead ends where errors communicating with the GuC were silently ignored. There also seemed to be quite a few erronous teardown actions performed in case of an error (ordering wrong). v2: - Increase function