hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/video/rockchip/mpp/mpp_debug.h
....@@ -50,24 +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
58
+
59
+/* reuse old debug bit flag */
60
+#define DEBUG_PART_TIMING 0x00000080
61
+#define DEBUG_SLICE 0x00000002
5562
5663 extern unsigned int mpp_dev_debug;
5764
5865 #define mpp_debug_unlikely(type) \
59
- (unlikely(mpp_dev_debug & type))
66
+ (unlikely(mpp_dev_debug & (type)))
6067
6168 #define mpp_debug_func(type, fmt, args...) \
6269 do { \
63
- if (unlikely(mpp_dev_debug & type)) { \
70
+ if (unlikely(mpp_dev_debug & (type))) { \
6471 pr_info("%s:%d: " fmt, \
6572 __func__, __LINE__, ##args); \
6673 } \
6774 } while (0)
6875 #define mpp_debug(type, fmt, args...) \
6976 do { \
70
- if (unlikely(mpp_dev_debug & type)) { \
77
+ if (unlikely(mpp_dev_debug & (type))) { \
7178 pr_info(fmt, ##args); \
7279 } \
7380 } while (0)
....@@ -91,7 +98,7 @@
9198 #define mpp_err(fmt, args...) \
9299 pr_err("%s:%d: " fmt, __func__, __LINE__, ##args)
93100
94
-#define mpp_dbg_link_flow(fmt, args...) \
101
+#define mpp_dbg_link(fmt, args...) \
95102 do { \
96103 if (unlikely(mpp_dev_debug & DEBUG_LINK_TABLE)) { \
97104 pr_info("%s:%d: " fmt, \
....@@ -106,4 +113,26 @@
106113 } \
107114 } while (0)
108115
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
+
109138 #endif