Selaa lähdekoodia

disp: msm: sde: log SCID during LLCC activation

Add SCID to event log and debug print during LLCC activation.

Change-Id: Ib4c0a68506e9620ca42aba03db35c9ee21eda6dd
Signed-off-by: Amine Najahi <[email protected]>
Amine Najahi 3 vuotta sitten
vanhempi
sitoutus
edd8be4319
1 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 6 5
      msm/sde/sde_core_perf.c

+ 6 - 5
msm/sde/sde_core_perf.c

@@ -327,6 +327,7 @@ static int _sde_core_perf_activate_llcc(struct sde_kms *kms,
 	struct drm_device *drm_dev;
 	struct device *dev;
 	struct platform_device *pdev;
+	u32 scid;
 	int rc = 0;
 
 	if (!kms || !kms->dev || !kms->dev->dev) {
@@ -340,7 +341,6 @@ static int _sde_core_perf_activate_llcc(struct sde_kms *kms,
 	pdev = to_platform_device(dev);
 
 	/* If LLCC is already in the requested state, skip */
-	SDE_EVT32(activate, type, kms->perf.llcc_active[type]);
 	if ((activate && kms->perf.llcc_active[type]) ||
 		(!activate && !kms->perf.llcc_active[type])) {
 		SDE_DEBUG("skip llcc type:%d request:%d state:%d\n",
@@ -348,10 +348,6 @@ static int _sde_core_perf_activate_llcc(struct sde_kms *kms,
 		goto exit;
 	}
 
-	SDE_DEBUG("%sactivate the llcc type:%d state:%d\n",
-		activate ? "" : "de",
-		type, kms->perf.llcc_active[type]);
-
 	slice = llcc_slice_getd(kms->catalog->sc_cfg[type].llcc_uid);
 	if (IS_ERR_OR_NULL(slice))  {
 		SDE_ERROR("failed to get llcc slice for uid:%d\n",
@@ -360,6 +356,11 @@ static int _sde_core_perf_activate_llcc(struct sde_kms *kms,
 		goto exit;
 	}
 
+	scid = llcc_get_slice_id(slice);
+	SDE_EVT32(activate, type, kms->perf.llcc_active[type], scid);
+	SDE_DEBUG("%sactivate the llcc type:%d state:%d scid:%d\n", activate ? "" : "de", type,
+			kms->perf.llcc_active[type], scid);
+
 	if (activate) {
 		llcc_slice_activate(slice);
 		kms->perf.llcc_active[type] = true;