Skip to content

Commit 9bad376

Browse files
konradybciorobclark
authored andcommitted
drm/msm/adreno: Disable has_cached_coherent in GMU wrapper configurations
A610 and A619_holi don't support the feature. Disable it to make the GPU stop crashing after almost each and every submission - the received data on the GPU end was simply incomplete in garbled, resulting in almost nothing being executed properly. Extend the disablement to adreno_has_gmu_wrapper, as none of the GMU wrapper Adrenos that don't support yet seem to feature it. Reviewed-by: Akhil P Oommen <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/542774/ Signed-off-by: Rob Clark <[email protected]>
1 parent 5a903a4 commit 9bad376

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,6 @@ static int adreno_bind(struct device *dev, struct device *master, void *data)
565565
config.rev.minor, config.rev.patchid);
566566

567567
priv->is_a2xx = config.rev.core == 2;
568-
priv->has_cached_coherent = config.rev.core >= 6;
569568

570569
gpu = info->init(drm);
571570
if (IS_ERR(gpu)) {
@@ -577,6 +576,10 @@ static int adreno_bind(struct device *dev, struct device *master, void *data)
577576
if (ret)
578577
return ret;
579578

579+
if (config.rev.core >= 6)
580+
if (!adreno_has_gmu_wrapper(to_adreno_gpu(gpu)))
581+
priv->has_cached_coherent = true;
582+
580583
return 0;
581584
}
582585

0 commit comments

Comments
 (0)