From f1224339d0420b03b0f920b7ba9031c082f762e2 Mon Sep 17 00:00:00 2001 From: Nitheesh Muthuraj Date: Thu, 22 Oct 2020 15:37:00 -0700 Subject: [PATCH] msm: kgsl: Granule Fill Override Enable The LLC uses a 64 byte cache line size, but has a GFO mode where it can allocate partial cache lines as well. So Enabling GFO mode for higher performance. Change-Id: I941b3ed4fa20038834362134d6dfaeae77f0cfdf Signed-off-by: Nitheesh Muthuraj --- drivers/gpu/msm/adreno_a6xx.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/msm/adreno_a6xx.c b/drivers/gpu/msm/adreno_a6xx.c index 703a023e5b67..9c08568d9472 100644 --- a/drivers/gpu/msm/adreno_a6xx.c +++ b/drivers/gpu/msm/adreno_a6xx.c @@ -1394,10 +1394,12 @@ static void a6xx_llc_configure_gpu_scid(struct adreno_device *adreno_dev) /* * On A660, the SCID programming for UCHE traffic is done in * A6XX_GBIF_SCACHE_CNTL0[14:10] + * GFO ENABLE BIT(8) : LLC uses a 64 byte cache line size enabling + * GFO allows it allocate partial cache lines */ if (adreno_is_a660(adreno_dev)) - kgsl_regrmw(device, A6XX_GBIF_SCACHE_CNTL0, 0x1f << 10, - gpu_scid << 10); + kgsl_regrmw(device, A6XX_GBIF_SCACHE_CNTL0, (0x1f << 10) | + BIT(8), (gpu_scid << 10) | BIT(8)); } /*