Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48915f68 authored by Rohan Sethi's avatar Rohan Sethi
Browse files

msm: kgsl: Disable gpu_llc flags by default



Fixes inconsistency in previous change.

Change-Id: I793532e648a8c6f5db5f3bf899d56b3517e55897
Fixes: 4cc99604 ("msm: kgsl: Disable gpu_llc flags by default")
Signed-off-by: default avatarRohan Sethi <rohsethi@codeaurora.org>
parent 4fc723f7
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -1219,6 +1219,7 @@ static int adreno_read_speed_bin(struct platform_device *pdev)
	return val;
}

#if IS_ENABLED(CONFIG_QCOM_LLCC)
static int adreno_probe_llcc(struct adreno_device *adreno_dev,
		struct platform_device *pdev)
{
@@ -1236,8 +1237,7 @@ static int adreno_probe_llcc(struct adreno_device *adreno_dev,
		if (ret != -ENOENT)
			dev_warn(&pdev->dev,
				"Unable to get the GPU LLC slice: %d\n", ret);
	}

	} else
		adreno_dev->gpu_llc_slice_enable = true;

	/* Get the system cache slice descriptor for GPU pagetables */
@@ -1252,12 +1252,18 @@ static int adreno_probe_llcc(struct adreno_device *adreno_dev,
		if (ret != -ENOENT)
			dev_warn(&pdev->dev,
				"Unable to get GPU HTW LLC slice: %d\n", ret);
	}

	} else
		adreno_dev->gpuhtw_llc_slice_enable = true;

	return 0;
}
#else
static int adreno_probe_llcc(struct adreno_device *adreno_dev,
		struct platform_device *pdev)
{
	return 0;
}
#endif

static const struct kgsl_functable adreno_functable;