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

Commit 683841f1 authored by George Shen's avatar George Shen
Browse files

msm: kgsl: Avoid excessive GMU warnings in kernel log



Uses ratelimited kernel logging API instead of WARN_ON.

CRs-Fixed: 2120475
Change-Id: I747504a3b3c5e0c8b83e8cbbe79315f6b8900d81
Signed-off-by: default avatarGeorge Shen <sqiao@codeaurora.org>
parent 764a560d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1411,7 +1411,9 @@ static int a6xx_rpmh_power_on_gpu(struct kgsl_device *device)
	int val;

	kgsl_gmu_regread(device, A6XX_GPU_CC_GX_DOMAIN_MISC, &val);
	WARN_ON(!(val & 0x1));
	if (!(val & 0x1))
		dev_err_ratelimited(&gmu->pdev->dev,
			"GMEM CLAMP IO not set while GFX rail off\n");

	/* RSC wake sequence */
	kgsl_gmu_regwrite(device, A6XX_GMU_RSCC_CONTROL_REQ, BIT(1));