@@ -258,6 +258,32 @@ static const struct adreno_info gpulist[] = {
258
258
.inactive_period = DRM_MSM_INACTIVE_PERIOD ,
259
259
.quirks = ADRENO_QUIRK_HAS_CACHED_COHERENT ,
260
260
.init = a6xx_gpu_init ,
261
+ }, {
262
+ .machine = "qcom,sm4350" ,
263
+ .rev = ADRENO_REV (6 , 1 , 9 , ANY_ID ),
264
+ .revn = 619 ,
265
+ .fw = {
266
+ [ADRENO_FW_SQE ] = "a630_sqe.fw" ,
267
+ [ADRENO_FW_GMU ] = "a619_gmu.bin" ,
268
+ },
269
+ .gmem = SZ_512K ,
270
+ .inactive_period = DRM_MSM_INACTIVE_PERIOD ,
271
+ .init = a6xx_gpu_init ,
272
+ .zapfw = "a615_zap.mdt" ,
273
+ .hwcg = a615_hwcg ,
274
+ }, {
275
+ .machine = "qcom,sm6375" ,
276
+ .rev = ADRENO_REV (6 , 1 , 9 , ANY_ID ),
277
+ .revn = 619 ,
278
+ .fw = {
279
+ [ADRENO_FW_SQE ] = "a630_sqe.fw" ,
280
+ [ADRENO_FW_GMU ] = "a619_gmu.bin" ,
281
+ },
282
+ .gmem = SZ_512K ,
283
+ .inactive_period = DRM_MSM_INACTIVE_PERIOD ,
284
+ .init = a6xx_gpu_init ,
285
+ .zapfw = "a615_zap.mdt" ,
286
+ .hwcg = a615_hwcg ,
261
287
}, {
262
288
.rev = ADRENO_REV (6 , 1 , 9 , ANY_ID ),
263
289
.revn = 619 ,
@@ -409,6 +435,8 @@ const struct adreno_info *adreno_info(struct adreno_rev rev)
409
435
/* identify gpu: */
410
436
for (i = 0 ; i < ARRAY_SIZE (gpulist ); i ++ ) {
411
437
const struct adreno_info * info = & gpulist [i ];
438
+ if (info -> machine && !of_machine_is_compatible (info -> machine ))
439
+ continue ;
412
440
if (adreno_cmp_rev (info -> rev , rev ))
413
441
return info ;
414
442
}
@@ -563,6 +591,8 @@ static int adreno_bind(struct device *dev, struct device *master, void *data)
563
591
config .rev .minor , config .rev .patchid );
564
592
565
593
priv -> is_a2xx = config .rev .core == 2 ;
594
+ priv -> has_cached_coherent =
595
+ !!(info -> quirks & ADRENO_QUIRK_HAS_CACHED_COHERENT );
566
596
567
597
gpu = info -> init (drm );
568
598
if (IS_ERR (gpu )) {
@@ -574,10 +604,6 @@ static int adreno_bind(struct device *dev, struct device *master, void *data)
574
604
if (ret )
575
605
return ret ;
576
606
577
- priv -> has_cached_coherent =
578
- !!(info -> quirks & ADRENO_QUIRK_HAS_CACHED_COHERENT ) &&
579
- !adreno_has_gmu_wrapper (to_adreno_gpu (gpu ));
580
-
581
607
return 0 ;
582
608
}
583
609
0 commit comments