mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Chris Wilson](/assets/img/avatar_default.png)
Expose the hardcoded timeout for unsignaled foreign fences as a Kconfig option, primarily to allow brave systems to disable the timeout and solely rely on correct signaling. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Acked-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200509105021.12542-1-chris@chris-wilson.co.uk
15 lines
333 B
C
15 lines
333 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright © 2020 Intel Corporation
|
|
*/
|
|
|
|
#include "i915_drv.h"
|
|
|
|
unsigned long
|
|
i915_fence_context_timeout(const struct drm_i915_private *i915, u64 context)
|
|
{
|
|
if (context && IS_ACTIVE(CONFIG_DRM_I915_FENCE_TIMEOUT))
|
|
return msecs_to_jiffies_timeout(CONFIG_DRM_I915_FENCE_TIMEOUT);
|
|
|
|
return 0;
|
|
}
|