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)
commit0c3d3cc93811c9b2413a17e06a91ca39a19ad871
tree1cf944e8c3f5e223677423fa574080d7f98376b9
parent3d247123b5a16f5f43ddc0c86dba05b417b6cadc
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