[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2111307.tjTOxoAehH@diego>
Date: Sun, 16 Jun 2019 15:41:22 +0200
From: Heiko Stübner <heiko@...ech.de>
To: Douglas Anderson <dianders@...omium.org>
Cc: Sandy Huang <hjc@...k-chips.com>, seanpaul@...omium.org,
linux-rockchip@...ts.infradead.org, urjaman@...il.com,
Yakir Yang <ykk@...k-chips.com>, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, David Airlie <airlied@...ux.ie>,
linux-arm-kernel@...ts.infradead.org,
Daniel Vetter <daniel@...ll.ch>
Subject: Re: [PATCH 1/2] drm/rockchip: Properly adjust to a true clock in adjusted_mode
Am Samstag, 15. Juni 2019, 00:47:29 CEST schrieb Douglas Anderson:
> When fixing up the clock in vop_crtc_mode_fixup() we're not doing it
> quite correctly. Specifically if we've got the true clock 266666667 Hz,
> we'll perform this calculation:
> 266666667 / 1000 => 266666
>
> Later when we try to set the clock we'll do clk_set_rate(266666 *
> 1000). The common clock framework won't actually pick the proper clock
> in this case since it always wants clocks <= the specified one.
>
> Let's solve this by using DIV_ROUND_UP.
>
> Fixes: b59b8de31497 ("drm/rockchip: return a true clock rate to adjusted_mode")
> Signed-off-by: Douglas Anderson <dianders@...omium.org>
> Signed-off-by: Sean Paul <seanpaul@...omium.org>
> Reviewed-by: Yakir Yang <ykk@...k-chips.com>
I gave both patches a testrun on rk3288, rk3328 and rk3399 and
applied them to drm-misc-next thereafter
Thanks
Heiko
Powered by blists - more mailing lists