drm/i915: Avoid setting ring freq on invalid rps freqs
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 20 Mar 2018 15:17:33 +0000 (17:17 +0200)
committerMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 23 Mar 2018 09:21:14 +0000 (11:21 +0200)
commit66c1f77ae2b773f349c1ea1312d69a6ab775cc26
tree59c6baa69abfc8bb38cadca34163d73ee410c4a3
parent0f36a85c3bd5e0dfcbb49af203a96a933dae86cf
drm/i915: Avoid setting ring freq on invalid rps freqs

Looping through rps frequencies when both min and max are zero
ends up into an endless loop. This can happen during hardware
enablement.

Bail out early if rps frequencies are not correctly set yet.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180320151734.11761-1-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/intel_pm.c