]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
some adjustments of pexor kernel module on hadesp31:
authorJ. Adamczewski-Musch <j.adamczewski@gsi.de>
Thu, 24 Sep 2020 11:45:58 +0000 (13:45 +0200)
committerHADES_DAQ <hadaq@hades31.gsi.de>
Thu, 24 Sep 2020 11:45:58 +0000 (13:45 +0200)
extend max dma wait time, do not use schedule in dma poll loop

pexor/kernel-module/pexor_trb.c

index 967bb8f9b712e6d6b5849ea34fa18ebefff88cd1..05275bf465c00f060a0876005e64dd0c490d19d7 100644 (file)
@@ -82,9 +82,12 @@ struct dev_pexor
 // JAM 2016: introduced again polling delay to make it independent of host hardware speed...
 //#define PEXOR_DMA_MAXPOLLS  10000
 // JAM 2017: try with longer polling timeout -> 40 ms maximum
-#define PEXOR_DMA_MAXPOLLS  2000000
+//#define PEXOR_DMA_MAXPOLLS  2000000
+#define PEXOR_DMA_MAXPOLLS  20000000
 /** polling delay for each cycle in ns for dma complete bit*/
-#define PEXOR_DMA_POLLDELAY 100
+//#define PEXOR_DMA_POLLDELAY 100
+#define PEXOR_DMA_POLLDELAY 200
+
 
 #define PEXOR_MEMWRITE_SIZE 128
 //#define UDELAY_TIME         1
@@ -98,8 +101,8 @@ struct dev_pexor
  * task to be scheduled in near future, but sched() will initiate the
  * schedule directly
  * this must not be enabled if dma completion is polled in interrupt tasklet*/
-#define PEXOR_DMA_POLL_SCHEDULE 1
-
+#define PEXOR_DMA_POLL_SCHEDULE 0
+// JAM 21-Sep-2020 - try without schedule
 
 
 struct pexor_dma