drm/msm/a7xx: Initialize a750 "software fuse"
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Apr 2024 10:43:18 +0000 (11:43 +0100)
committerRob Clark <robdclark@chromium.org>
Fri, 21 Jun 2024 20:41:43 +0000 (13:41 -0700)
commit14b27d5df3ea22ebfbfa1d658a5f733219a642e8
tree6a16b7650b835af9733d55dc9eb7b5834bc238e3
parent90c3e2bc9ecbf3210d661fadee4c947d34a88ceb
drm/msm/a7xx: Initialize a750 "software fuse"

On all Qualcomm platforms with a7xx GPUs, qcom_scm provides a method to
initialize cx_mem. Copy this from downstream (minus BCL which we
currently don't support). On a750, this includes a new "fuse" register
which can be used by qcom_scm to fuse off certain features like
raytracing in software. The fuse is default off, and is initialized by
calling the method. Afterwards we have to read it to find out which
features were enabled.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/592042/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h