]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Move check for fast memcpy_wc to relay creation
authorMichał Winiarski <michal.winiarski@intel.com>
Mon, 19 Mar 2018 09:53:41 +0000 (10:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Mar 2018 12:23:02 +0000 (12:23 +0000)
commit62ce937555fd1b3f3e44908d4130a59e557b8eff
tree025aaf87f6b29701723f46b6554c9a62ed109a5f
parent26b25b48698dc28c7af019705a4e3cb968e8a1df
drm/i915/guc: Move check for fast memcpy_wc to relay creation

We only need those fast memcpy_wc when we're using relay to read
continuous GuC log. Let's prevent the user from creating a relay if we
know we won't be able to keep up with GuC.

v2: Adjust the return value (Michał)

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180319095348.9716-6-michal.winiarski@intel.com
drivers/gpu/drm/i915/intel_guc_log.c