[Nouveau] [PATCH v3 1/7] pmu/fuc: add macros for pmu engine counters
Karol Herbst
karolherbst at gmail.com
Mon Jun 5 20:35:38 UTC 2017
v2: removed definitions we won't need anymore
v3: rename IF_NOT_ALL to IF_ANY
Signed-off-by: Karol Herbst <karolherbst at gmail.com>
Reviewed-by: Martin Peres <martin.peres at free.fr>
---
drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc b/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc
index 3737bd27..d14f2771 100644
--- a/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc
+++ b/drm/nouveau/nvkm/subdev/pmu/fuc/macros.fuc
@@ -65,6 +65,14 @@
#define NV_PPWR_RFIFO_GET 0x04cc
#define NV_PPWR_H2D 0x04d0
#define NV_PPWR_D2H 0x04dc
+#define NV_PPWR_COUNTER_MASK(i) (0x10 * (i) + 0x0504)
+#define NV_PPWR_COUNTER_COUNT(i) (0x10 * (i) + 0x0508)
+#define NV_PPWR_COUNTER_COUNT_RESET 0x80000000
+#define NV_PPWR_COUNTER_MODE(i) (0x10 * (i) + 0x050c)
+#define NV_PPWR_COUNTER_MODE_NEVER 0
+#define NV_PPWR_COUNTER_MODE_IF_ALL 1
+#define NV_PPWR_COUNTER_MODE_IF_ANY 2
+#define NV_PPWR_COUNTER_MODE_ALWAYS 3
#if NVKM_PPWR_CHIPSET < GK208
#define NV_PPWR_DSCRATCH(i) (4 * (i) + 0x05d0)
#endif
--
2.13.0
More information about the Nouveau
mailing list