]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dpu: consider vertical front porch in the prefill bw calculation
authorKalyan Thota <kalyan_t@codeaurora.org>
Wed, 25 Nov 2020 10:02:40 +0000 (02:02 -0800)
committerRob Clark <robdclark@chromium.org>
Sun, 29 Nov 2020 19:08:20 +0000 (11:08 -0800)
commit1d878326f279eabdd7200a037fef33522fcde406
tree1cf944e8c3f5e223677423fa574080d7f98376b9
parent377b94f4fdb6092dcc581a5ed989bf74d9395980
drm/msm/dpu: consider vertical front porch in the prefill bw calculation

In case of panels with low vertical back porch, the prefill bw
requirement will be high as we will have less time(vbp+pw) to
fetch and fill the hw latency buffers before start of first line
in active period.

For ex:
Say hw_latency_line_buffers = 24, and if blanking vbp+pw = 10
Here we need to fetch 24 lines of data in 10 line times.
This will increase the bw to the ratio of linebuffers to blanking.

DPU hw can also fetch data during vertical front porch provided
interface prefetch is enabled. Use vfp in the prefill calculation
as dpu driver enables prefetch if the blanking is not sufficient
to fill the latency lines.

Signed-off-by: Kalyan Thota <kalyan_t@codeaurora.org>
Tested-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c