Re: [RFC PATCH 16/97] drm/i915/guc: Start protecting access to CTB descriptors

2021-05-24 Thread Matthew Brost
On Thu, May 06, 2021 at 12:13:30PM -0700, Matthew Brost wrote: > From: Michal Wajdeczko > > We want to stop using guc.send_mutex while sending CTB messages > so we have to start protecting access to CTB send descriptor. > > For completeness protect also CTB send descriptor. > > Add spinlock to

Re: [RFC PATCH 16/97] drm/i915/guc: Start protecting access to CTB descriptors

2021-05-24 Thread Matthew Brost
On Thu, May 06, 2021 at 12:13:30PM -0700, Matthew Brost wrote: > From: Michal Wajdeczko > > We want to stop using guc.send_mutex while sending CTB messages > so we have to start protecting access to CTB send descriptor. > > For completeness protect also CTB send descriptor. Michal I think you h

[RFC PATCH 16/97] drm/i915/guc: Start protecting access to CTB descriptors

2021-05-06 Thread Matthew Brost
From: Michal Wajdeczko We want to stop using guc.send_mutex while sending CTB messages so we have to start protecting access to CTB send descriptor. For completeness protect also CTB send descriptor. Add spinlock to struct intel_guc_ct_buffer and start using it. Signed-off-by: Michal Wajdeczko