OSDN Git Service

drm/mediatek: Adjust rdma fifo threshold calculate formula
authorYongqiang Niu <yongqiang.niu@mediatek.com>
Sun, 11 Jul 2021 06:53:51 +0000 (14:53 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 12 Jul 2021 14:47:27 +0000 (22:47 +0800)
commitef668f2790e966c43ff7e13cbedce98ff9da1f7b
tree64cb4912e3b1033d9cc8d1b86aff946baaa106f5
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
drm/mediatek: Adjust rdma fifo threshold calculate formula

The orginal formula will caused rdma fifo threshold config overflow
and no one could come out a solution for all SoC,
set threshold to 70% of max fifo size to make sure it will
not overflow, and 70% is a empirical vlaue.

Signed-off-by: Yongqiang Niu <yongqiang.niu@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_rdma.c