hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/rknpu/include/rknpu_drv.h
....@@ -17,11 +17,9 @@
1717 #include <linux/hrtimer.h>
1818 #include <linux/miscdevice.h>
1919
20
-#ifndef FPGA_PLATFORM
21
-#if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE
2220 #include <soc/rockchip/rockchip_opp_select.h>
23
-#endif
24
-#endif
21
+#include <soc/rockchip/rockchip_system_monitor.h>
22
+#include <soc/rockchip/rockchip_ipa.h>
2523
2624 #include "rknpu_job.h"
2725 #include "rknpu_fence.h"
....@@ -30,10 +28,10 @@
3028
3129 #define DRIVER_NAME "rknpu"
3230 #define DRIVER_DESC "RKNPU driver"
33
-#define DRIVER_DATE "20230825"
31
+#define DRIVER_DATE "20231121"
3432 #define DRIVER_MAJOR 0
3533 #define DRIVER_MINOR 9
36
-#define DRIVER_PATCHLEVEL 2
34
+#define DRIVER_PATCHLEVEL 3
3735
3836 #define LOG_TAG "RKNPU"
3937
....@@ -76,11 +74,12 @@
7674 __u64 nbuf_phyaddr;
7775 __u64 nbuf_size;
7876 __u64 max_submit_number;
77
+ __u32 core_mask;
7978 };
8079
8180 struct rknpu_timer {
82
- __u32 busy_time;
83
- __u32 busy_time_record;
81
+ ktime_t busy_time;
82
+ ktime_t total_busy_time;
8483 };
8584
8685 struct rknpu_subcore_data {
....@@ -130,11 +129,7 @@
130129 struct thermal_cooling_device *devfreq_cooling;
131130 struct devfreq *devfreq;
132131 unsigned long ondemand_freq;
133
-#ifndef FPGA_PLATFORM
134
-#if KERNEL_VERSION(5, 10, 0) <= LINUX_VERSION_CODE
135132 struct rockchip_opp_info opp_info;
136
-#endif
137
-#endif
138133 unsigned long current_freq;
139134 unsigned long current_volt;
140135 int bypass_irq_handler;