MLK-19906: drm/imx/dcss: lower CTXLD trigger threshold
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 12 Oct 2018 07:24:16 +0000 (10:24 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1734d95f7ec9bf719ee333a21acef934bc76193c
tree6ba5b9b8b0731f51a4f8413ae558478c52e5b8d5
parentb95104f2a10a13f02244169a6d7195d5bef6ee33
MLK-19906: drm/imx/dcss: lower CTXLD trigger threshold

After PM_QoS was removed by this commit:

f889273 - MLK-19460-2: drm: imx: dcss: remove PM_QoS

interrupt latency increased. Hence, any video playback using tiled
compressed formats will be affected because DTRC uses CTXLD to switch
its register banks. If CTXLD is not armed, at the right time, the DB
trigger moment will be missed. This leads to DTRC not switch to the other
register bank and scaler will be starved, leading to a channel freeze.

This patch will lower the CTXLD trigger time to 90% of frame trace
allowing some more time between arming the context loader and DB trigger
time, in case the latency is too big.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-dtg.c