OSDN Git Service

drm/msm/a5xx: really check for A510 in a5xx_gpu_init
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 9 Apr 2023 01:13:29 +0000 (04:13 +0300)
committerRob Clark <robdclark@chromium.org>
Sat, 10 Jun 2023 14:18:05 +0000 (07:18 -0700)
commit736a9327365644b460e4498b1ce172ca411efcbc
treee18644a15be337ef20b6075860959450cfaaf0a2
parentbf08e9791ca4e598f7088f24189dc3ef802b2a9f
drm/msm/a5xx: really check for A510 in a5xx_gpu_init

The commit 010c8bbad2cb ("drm: msm: adreno: Disable preemption on Adreno
510") added special handling for a510 (this SKU doesn't seem to support
preemption, so the driver should clamp nr_rings to 1). However the
gpu->revn is not yet set (it is set later, in adreno_gpu_init()) and
thus the condition is always false. Check config->rev instead.

Fixes: 010c8bbad2cb ("drm: msm: adreno: Disable preemption on Adreno 510")
Reported-by: Adam Skladowski <a39.skl@gmail.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Adam Skladowski <a39.skl@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/531511/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c