File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 26
26
27
27
#include "../dmaengine.h"
28
28
29
+ int completion_timeout = 200 ;
30
+ module_param (completion_timeout , int , 0644 );
31
+ MODULE_PARM_DESC (completion_timeout ,
32
+ "set ioat completion timeout [msec] (default 200 [msec])" );
33
+ int idle_timeout = 2000 ;
34
+ module_param (idle_timeout , int , 0644 );
35
+ MODULE_PARM_DESC (idle_timeout ,
36
+ "set ioat idel timeout [msec] (default 2000 [msec])" );
37
+
38
+ #define IDLE_TIMEOUT msecs_to_jiffies(idle_timeout)
39
+ #define COMPLETION_TIMEOUT msecs_to_jiffies(completion_timeout)
40
+
29
41
static char * chanerr_str [] = {
30
42
"DMA Transfer Source Address Error" ,
31
43
"DMA Transfer Destination Address Error" ,
Original file line number Diff line number Diff line change @@ -104,8 +104,6 @@ struct ioatdma_chan {
104
104
#define IOAT_RUN 5
105
105
#define IOAT_CHAN_ACTIVE 6
106
106
struct timer_list timer ;
107
- #define COMPLETION_TIMEOUT msecs_to_jiffies(100)
108
- #define IDLE_TIMEOUT msecs_to_jiffies(2000)
109
107
#define RESET_DELAY msecs_to_jiffies(100)
110
108
struct ioatdma_device * ioat_dma ;
111
109
dma_addr_t completion_dma ;
You can’t perform that action at this time.
0 commit comments