]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't allow overuse of __intel_wait_for_register_fw()
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 10 Apr 2017 12:17:47 +0000 (12:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Apr 2017 14:24:52 +0000 (15:24 +0100)
commit7ba17731db6237dc6bc28b16fedfde92e33d38bb
tree1946989cff548bbacab98eb1f850da75c33f4085
parentdd547c8c684cc9299c0a94f69bcb7160542104a5
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>
drivers/gpu/drm/i915/intel_uncore.c