drm/etnaviv: add MC perf domain
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 24 Sep 2017 13:15:38 +0000 (15:15 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 09:45:52 +0000 (11:45 +0200)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_perfmon.c

index 9efa933fc7b17512b00d9dbe293d669f90d60aa1..768f5aafdd186f8fb97b5b0d1f957128f98e8e36 100644 (file)
@@ -352,6 +352,29 @@ static const struct etnaviv_pm_domain doms_3d[] = {
                                &perf_reg_read
                        }
                }
+       },
+       {
+               .name = "MC",
+               .profile_read = VIVS_MC_PROFILE_MC_READ,
+               .profile_config = VIVS_MC_PROFILE_CONFIG2,
+               .nr_signals = 3,
+               .signal = (const struct etnaviv_pm_signal[]) {
+                       {
+                               "TOTAL_READ_REQ_8B_FROM_PIPELINE",
+                               VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_READ_REQ_8B_FROM_PIPELINE,
+                               &perf_reg_read
+                       },
+                       {
+                               "TOTAL_READ_REQ_8B_FROM_IP",
+                               VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_READ_REQ_8B_FROM_IP,
+                               &perf_reg_read
+                       },
+                       {
+                               "TOTAL_WRITE_REQ_8B_FROM_PIPELINE",
+                               VIVS_MC_PROFILE_CONFIG2_MC_TOTAL_WRITE_REQ_8B_FROM_PIPELINE,
+                               &perf_reg_read
+                       }
+               }
        }
 };