2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-04 03:33:58 +08:00
linux-next/drivers/video/omap2/dss
Tomi Valkeinen eec77da274 OMAPDSS: DISPC: decimation rounding fix
The driver uses DIV_ROUND_UP when calculating decimated width & height.
For example, when decimating with 3, the width is calculated as:

  width = DIV_ROUND_UP(width, decim_x);

This yields bad results for some values. For example, 800/3=266.666...,
which is rounded to 267. When the input width is set to 267, and pixel
increment is set to 3, this causes the dispc to read a line of 801
pixels, i.e. it reads a wrong pixel at the end of the line.

Even more pressing, the above rounding causes a BUG() in pixinc(), as
the value of 801 is used to calculate row increment, leading to a bad
value being passed to pixinc().

This patch fixes the decimation by removing the DIV_ROUND_UP()s when
calculating width and height for decimation.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
2014-02-11 16:19:41 +02:00
..
apply.c OMAPDSS: apply fixes 2013-12-30 16:14:15 +02:00
core.c omapdss: HDMI: Rename hdmi driver files to nicer names 2013-10-09 12:42:30 +03:00
dispc_coefs.c OMAPDSS: DISPC: Fix FIR coefficients 2012-03-06 14:08:23 +02:00
dispc-compat.c OMAPDSS: gracefully disable overlay at error 2013-06-17 14:00:56 +03:00
dispc-compat.h OMAPDSS: move irq handling to dispc-compat 2012-12-07 17:05:57 +02:00
dispc.c OMAPDSS: DISPC: decimation rounding fix 2014-02-11 16:19:41 +02:00
dispc.h OMAPDSS: DISPC: Add MFLAG defines 2013-12-30 16:14:15 +02:00
display-sysfs.c OMAPDSS: rename display-sysfs 'name' entry 2013-12-30 16:14:15 +02:00
display.c OMAPDSS: Fix de_level in videomode_to_omap_video_timings() 2013-10-18 10:57:43 +03:00
dpi.c Merge branches '3.14/fbdev', '3.14/dss-misc' and '3.14/dss-fclk' into for-next 2014-01-20 10:57:01 +02:00
dsi.c OMAPDSS: don't print errors on -EPROBE_DEFER 2014-01-13 12:19:55 +02:00
dss_features.c OMAPDSS: DISPC: Add MFLAG defines 2013-12-30 16:14:15 +02:00
dss_features.h OMAPDSS: DISPC: Add MFLAG defines 2013-12-30 16:14:15 +02:00
dss.c OMAPDSS: add dedicated fck PLL support 2013-11-18 14:32:28 +02:00
dss.h Merge branches '3.14/fbdev', '3.14/dss-misc' and '3.14/dss-fclk' into for-next 2014-01-20 10:57:01 +02:00
hdmi4_core.c OMAPDSS: HDMI: rename resource names 2014-01-13 12:19:54 +02:00
hdmi4_core.h omapdss: HDMI: move common functions to a separate file 2013-10-09 12:42:37 +03:00
hdmi4.c OMAPDSS: don't print errors on -EPROBE_DEFER 2014-01-13 12:19:55 +02:00
hdmi_common.c OMAPDSS: fix debug prints 2013-12-30 16:14:15 +02:00
hdmi_phy.c OMAPDSS: HDMI: rename resource names 2014-01-13 12:19:54 +02:00
hdmi_pll.c OMAPDSS: HDMI: rename resource names 2014-01-13 12:19:54 +02:00
hdmi_wp.c OMAPDSS: HDMI: rename resource names 2014-01-13 12:19:54 +02:00
hdmi.h OMAPDSS: HDMI: add missing core irq 2014-01-13 12:19:53 +02:00
Kconfig OMAPDSS: RFBI: Mark RFBI as broken 2013-08-29 16:21:51 +03:00
Makefile omapdss: HDMI: move common functions to a separate file 2013-10-09 12:42:37 +03:00
manager-sysfs.c OMAPDSS: fix WARN_ON in 'alpha_blending_enabled' sysfs file 2013-08-29 16:43:47 +03:00
manager.c OMAPDSS: split overlay manager creation 2013-06-17 14:00:42 +03:00
output.c OMAPDSS: rename omap_dss_device's 'device' field to 'dst' 2013-08-30 08:51:11 +03:00
overlay-sysfs.c OMAPDSS: split overlay sysfs code 2012-09-07 20:02:10 +03:00
overlay.c OMAPDSS: apply fixes 2013-12-30 16:14:15 +02:00
rfbi.c OMAPDSS: RFBI: remove code related to old panel model 2013-08-29 16:21:53 +03:00
sdi.c Merge branches '3.14/fbdev', '3.14/dss-misc' and '3.14/dss-fclk' into for-next 2014-01-20 10:57:01 +02:00
venc_panel.c OMAPDSS: Add panel dev pointer to dssdev 2013-06-17 14:00:50 +03:00
venc.c OMAPDSS: don't print errors on -EPROBE_DEFER 2014-01-13 12:19:55 +02:00