Skip to content

Commit 75a5227

Browse files
committed
drm/msm/adreno: Bring the a630 family together
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/
1 parent c928a05 commit 75a5227

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,7 @@ int a6xx_gmu_init(struct a6xx_gpu *a6xx_gpu, struct device_node *node)
16171617
SZ_256K - SZ_16K, 0x44000, "dcache");
16181618
if (ret)
16191619
goto err_memory;
1620-
} else if (adreno_is_a630(adreno_gpu) || adreno_is_a615_family(adreno_gpu)) {
1620+
} else if (adreno_is_a630_family(adreno_gpu)) {
16211621
/* HFI v1, has sptprac */
16221622
gmu->legacy = true;
16231623

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,13 @@ static inline int adreno_is_a690(const struct adreno_gpu *gpu)
339339
{
340340
/* The order of args is important here to handle ANY_ID correctly */
341341
return adreno_cmp_rev(ADRENO_REV(6, 9, 0, ANY_ID), gpu->rev);
342-
};
342+
}
343343

344-
/* check for a615, a616, a618, a619 or any derivatives */
345-
static inline int adreno_is_a615_family(const struct adreno_gpu *gpu)
344+
/* check for a615, a616, a618, a619 or any a630 derivatives */
345+
static inline int adreno_is_a630_family(const struct adreno_gpu *gpu)
346346
{
347-
return adreno_is_revn(gpu, 615) ||
347+
return adreno_is_revn(gpu, 630) ||
348+
adreno_is_revn(gpu, 615) ||
348349
adreno_is_revn(gpu, 616) ||
349350
adreno_is_revn(gpu, 618) ||
350351
adreno_is_revn(gpu, 619);

0 commit comments

Comments
 (0)