diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2017-04-10 12:17:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-04-10 15:24:52 +0100 |
commit | 6976e74b5fa12430b36c3b0f8afd7e8e695be0ab (patch) | |
tree | 1946989cff548bbacab98eb1f850da75c33f4085 /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | 3fc7d86b3268af92181b517ca832258809b2d771 (diff) |
drm/i915: Don't allow overuse of __intel_wait_for_register_fw()
This function should not be called with long timeouts in atomic context.
Annotate it as might_sleep if timeout is longer than 10us.
v2: fix comment (Michal)
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170410121747.209200-1-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
0 files changed, 0 insertions, 0 deletions