Re: [PATCH] drm/i915: avoid division by zero on skl_calc_wrpll_link

2018-12-28 Thread Jani Nikula
On Mon, 17 Dec 2018, Yang Xiao wrote: > From: Young Xiao > > If for some unexpected reason the registers all read zero it's better > to WARN and return instead of dividing by zero and completely freezing > the machine. > > See commit 0e005888b833 ("drm/i915: avoid division by zero on >

[PATCH] drm/i915: avoid division by zero on skl_calc_wrpll_link

2018-12-18 Thread Yang Xiao
From: Young Xiao If for some unexpected reason the registers all read zero it's better to WARN and return instead of dividing by zero and completely freezing the machine. See commit 0e005888b833 ("drm/i915: avoid division by zero on cnl_calc_wrpll_link") for detail. Signed-off-by: Young Xiao