drm/msm/adreno: Assign revn to A635
Subsystems (4)
PATCH 1/1 drm/msm/adreno: Assign revn to A635
Recently, a WARN_ON() was introduced to ensure that revn is filled before adreno_is_aXYZ is called. This however doesn't work very well when revn is 0 by design (such as for A635). Fill it in as a stopgap solution for -fixes.
--- drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/adreno/adreno_device.c +1 -0
@@ -345,6 +345,7 @@ static const struct adreno_info gpulist[] = { .address_space_size = SZ_16G, }, { .rev = ADRENO_REV(6, 3, 5, ANY_ID), + .revn = 635, .fw = { [ADRENO_FW_SQE] = "a660_sqe.fw", [ADRENO_FW_GMU] = "a660_gmu.bin",
---
base-commit: 5c875096d59010cee4e00da1f9c7bdb07a025dc2
change-id: 20230628-topic-a635-1b3c2c987417
Best regards,
Signature · 1 line
Konrad Dybcio <[email protected]>
Quoted 6 lines · Konrad Dybcio
Recently, a
WARN_ON()was introduced to ensure that revn is filled beforeadreno_is_aXYZis called. This however doesn't work very well when revn is 0 by design (such as for A635). Fill it in as a stopgap solution for -fixes.Signed-off-by Konrad Dybcio <[email protected]>
I'd have probably added:
or
Quoted 22 lines
--- drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/adreno/adreno_device.c +1
-1@@ -345,6 +345,7 @@ static const struct adreno_info gpulist[] = { .address_space_size = SZ_16G, }, { .rev = ADRENO_REV(6, 3, 5, ANY_ID), + .revn = 635, .fw = { [ADRENO_FW_SQE] = "a660_sqe.fw", [ADRENO_FW_GMU] = "a660_gmu.bin", ---base-commit:
5c875096d59010cee4e00da1f9c7bdb07a025dc2
change-id: 20230628-topic-a635-1b3c2c987417Best regards,
Signature · 2 lines
With best wishes Dmitry
Quoted 11 lines · Dmitry Baryshkov
Quoted 6 lines · Konrad Dybcio
Recently, a
WARN_ON()was introduced to ensure that revn is filled beforeadreno_is_aXYZis called. This however doesn't work very well when revn is 0 by design (such as for A635). Fill it in as a stopgap solution for -fixes.Signed-off-by Konrad Dybcio <[email protected]>Reviewed-by Dmitry Baryshkov <[email protected]>
Quoted 8 lines
I'd have probably added:
Fixes cc943f43ece7 ("drm/msm/adreno: warn if chip revn is verifiedbefore being set")
or
Fixes 192f4ee3e408 ("drm/msm/a6xx: Add support for Adreno 7c Gen 3 gpu")
I'd lean towards the former, given that this is a temporary workaround until we do a more comprehensive overhaul and remove revn entirely
BR,
-R
Quoted 29 lines
Quoted 23 lines
--- drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/msm/adreno/adreno_device.c +1
-1@@ -345,6 +345,7 @@ static const struct adreno_info gpulist[] = { .address_space_size = SZ_16G, }, { .rev = ADRENO_REV(6, 3, 5, ANY_ID), + .revn = 635, .fw = { [ADRENO_FW_SQE] = "a660_sqe.fw", [ADRENO_FW_GMU] = "a660_gmu.bin", ---base-commit:
5c875096d59010cee4e00da1f9c7bdb07a025dc2
change-id: 20230628-topic-a635-1b3c2c987417Quoted 1 line
Best regards,
--
With best wishes
Dmitry