]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Allow preempt-client to be NULL
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Feb 2018 21:05:42 +0000 (21:05 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 8 Feb 2018 07:29:59 +0000 (07:29 +0000)
commit65246216eb2bbee59b7a1569dbcf9e13677c6c68
treebda83895c201ed2034980ecfc7b84e48f8e01fd2
parentaaf2a353545496f04c32af46f2d8ada0fc59613a
drm/i915/guc: Allow preempt-client to be NULL

In the next patch, we may only conditionally allocate the preempt-client
if there is a global preempt context and so we need to be prepared in
case the preempt-client itself is NULL.

v2: Grep for more preempt_client.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Winiarski <michal.winiarski@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180207210544.26351-1-chris@chris-wilson.co.uk
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_guc_submission.c
drivers/gpu/drm/i915/selftests/intel_guc.c