drm/msm/adreno: Bring the a630 family together
authorRob Clark <robdclark@chromium.org>
Thu, 27 Jul 2023 21:20:13 +0000 (14:20 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 7 Aug 2023 21:21:18 +0000 (14:21 -0700)
All of these are derivatives of a630.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/549770/

drivers/gpu/drm/msm/adreno/a6xx_gmu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h

index 5deb79924897afded45a9399e1e3e29e5e534921..f1bb20574018ea41fd3c79887d519e2ea50bc41d 100644 (file)
@@ -1617,7 +1617,7 @@ int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
                        SZ_256K - SZ_16K, 0x44000, "dcache");
                if (ret)
                        goto err_memory;
-       } else if (adreno_is_a630(adreno_gpu) || adreno_is_a615_family(adreno_gpu)) {
+       } else if (adreno_is_a630_family(adreno_gpu)) {
                /* HFI v1, has sptprac */
                gmu->legacy = true;
 
index 0460e61b7bcebed72497c03a87c92f472eb64fa5..9584f552e1c5eabf5f52ba4c66beaf23560462ef 100644 (file)
@@ -339,12 +339,13 @@ static inline int adreno_is_a690(const struct adreno_gpu *gpu)
 {
        /* The order of args is important here to handle ANY_ID correctly */
        return adreno_cmp_rev(ADRENO_REV(6, 9, 0, ANY_ID), gpu->rev);
-};
+}
 
-/* check for a615, a616, a618, a619 or any derivatives */
-static inline int adreno_is_a615_family(const struct adreno_gpu *gpu)
+/* check for a615, a616, a618, a619 or any a630 derivatives */
+static inline int adreno_is_a630_family(const struct adreno_gpu *gpu)
 {
-       return adreno_is_revn(gpu, 615) ||
+       return adreno_is_revn(gpu, 630) ||
+               adreno_is_revn(gpu, 615) ||
                adreno_is_revn(gpu, 616) ||
                adreno_is_revn(gpu, 618) ||
                adreno_is_revn(gpu, 619);