hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/video/rockchip/mpp/mpp_debug.h
....@@ -50,27 +50,31 @@
5050 #define DEBUG_SESSION 0x00400000
5151 #define DEBUG_DEVICE 0x00800000
5252
53
+#define DEBUG_CCU 0x01000000
54
+#define DEBUG_CORE 0x02000000
55
+
5356 #define PRINT_FUNCTION 0x80000000
5457 #define PRINT_LINE 0x40000000
5558
5659 /* reuse old debug bit flag */
5760 #define DEBUG_PART_TIMING 0x00000080
61
+#define DEBUG_SLICE 0x00000002
5862
5963 extern unsigned int mpp_dev_debug;
6064
6165 #define mpp_debug_unlikely(type) \
62
- (unlikely(mpp_dev_debug & type))
66
+ (unlikely(mpp_dev_debug & (type)))
6367
6468 #define mpp_debug_func(type, fmt, args...) \
6569 do { \
66
- if (unlikely(mpp_dev_debug & type)) { \
70
+ if (unlikely(mpp_dev_debug & (type))) { \
6771 pr_info("%s:%d: " fmt, \
6872 __func__, __LINE__, ##args); \
6973 } \
7074 } while (0)
7175 #define mpp_debug(type, fmt, args...) \
7276 do { \
73
- if (unlikely(mpp_dev_debug & type)) { \
77
+ if (unlikely(mpp_dev_debug & (type))) { \
7478 pr_info(fmt, ##args); \
7579 } \
7680 } while (0)
....@@ -94,7 +98,7 @@
9498 #define mpp_err(fmt, args...) \
9599 pr_err("%s:%d: " fmt, __func__, __LINE__, ##args)
96100
97
-#define mpp_dbg_link_flow(fmt, args...) \
101
+#define mpp_dbg_link(fmt, args...) \
98102 do { \
99103 if (unlikely(mpp_dev_debug & DEBUG_LINK_TABLE)) { \
100104 pr_info("%s:%d: " fmt, \
....@@ -109,4 +113,26 @@
109113 } \
110114 } while (0)
111115
116
+#define mpp_dbg_ccu(fmt, args...) \
117
+ do { \
118
+ if (unlikely(mpp_dev_debug & DEBUG_CCU)) { \
119
+ pr_info("%s:%d: " fmt, \
120
+ __func__, __LINE__, ##args); \
121
+ } \
122
+ } while (0)
123
+
124
+#define mpp_dbg_core(fmt, args...) \
125
+ do { \
126
+ if (unlikely(mpp_dev_debug & DEBUG_CORE)) { \
127
+ pr_info(fmt, ##args); \
128
+ } \
129
+ } while (0)
130
+
131
+#define mpp_dbg_slice(fmt, args...) \
132
+ do { \
133
+ if (unlikely(mpp_dev_debug & DEBUG_SLICE)) { \
134
+ pr_info(fmt, ##args); \
135
+ } \
136
+ } while (0)
137
+
112138 #endif