]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/a5xx: Fix VPC protect value in gpu_write()
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Wed, 13 Jan 2021 18:33:37 +0000 (19:33 +0100)
committerRob Clark <robdclark@chromium.org>
Sun, 31 Jan 2021 19:34:35 +0000 (11:34 -0800)
commit89c1ab960717fb0e9b61c8cf90316bd41309e90a
tree42407a25c1fe7cb913d2b901b811a46cca7f8d24
parent9deba2b8a5b5e15e8603a6b06abc0e6493c0f868
drm/msm/a5xx: Fix VPC protect value in gpu_write()

The upstream API for some reason uses logbase2 instead of
just passing the argument as-is, whereas downstream CAF
kernel does the latter.

Hence, a mistake has been made when porting:
4 is the value that's supposed to be passed, but
log2(4) = 2. Changing the value to 16 (= 2^4) fixes
the issue.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c