]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Add proper checks for GPU LLCC support
authorSai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Mon, 11 Jan 2021 12:04:08 +0000 (17:34 +0530)
committerRob Clark <robdclark@chromium.org>
Sun, 31 Jan 2021 19:34:34 +0000 (11:34 -0800)
commitffdddca450fa97aed105c4e14208c80e61cc9006
treef348d69d811906050c967c0f264e3804b1e56977
parent6773b18af9299e79084712fdf387bb6c3627d079
drm/msm: Add proper checks for GPU LLCC support

Domain attribute setting for LLCC is guarded by !IS_ERR
check which works fine only when CONFIG_QCOM_LLCC=y but
when it is disabled, the LLCC apis return NULL and that
is not handled by IS_ERR check. Due to this, domain attribute
for LLCC will be set even on GPUs which do not support it
and cause issues, so correct this by using IS_ERR_OR_NULL
checks appropriately. Meanwhile also cleanup comment block
and remove unwanted blank line.

Fixes: 69d9f7f530cd ("drm/msm: Only enable A6xx LLCC code on A6xx")
Fixes: 0fb9e70f3160 ("drm/msm/a6xx: Add support for using system cache(LLC)")
Signed-off-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c