34d1eac73e
[ Upstream commit bfbc68e4d8695497f858a45a142665e22a512ea3 ] Playing 4K media with 59.94 fractional rate (typically VP9) causes the screen to lose sync with the following error reported in the system log: [ 89.610280] Fatal Error, invalid HDMI vclk freq 593406 Modetest shows the following: 3840x2160 59.94 3840 4016 4104 4400 2160 2168 2178 2250 593407 flags: xxxx, xxxx, drm calculated value -------------------------------------^ Change the fractional rate calculation to stop DIV_ROUND_CLOSEST rounding down which results in vclk freq failing to match correctly. Fixes: e5fab2ec9ca4 ("drm/meson: vclk: add support for YUV420 setup") Signed-off-by: Christian Hewitt <christianshewitt@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20240109230704.4120561-1-christianshewitt@gmail.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240109230704.4120561-1-christianshewitt@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
meson_crtc.c | ||
meson_crtc.h | ||
meson_drv.c | ||
meson_drv.h | ||
meson_dw_hdmi.c | ||
meson_dw_hdmi.h | ||
meson_osd_afbcd.c | ||
meson_osd_afbcd.h | ||
meson_overlay.c | ||
meson_overlay.h | ||
meson_plane.c | ||
meson_plane.h | ||
meson_rdma.c | ||
meson_rdma.h | ||
meson_registers.h | ||
meson_vclk.c | ||
meson_vclk.h | ||
meson_venc.c | ||
meson_venc.h | ||
meson_venc_cvbs.c | ||
meson_venc_cvbs.h | ||
meson_viu.c | ||
meson_viu.h | ||
meson_vpp.c | ||
meson_vpp.h |