From: J. Adamczewski-Musch Date: Thu, 24 Sep 2020 11:45:58 +0000 (+0200) Subject: some adjustments of pexor kernel module on hadesp31: X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=9a35d32c5650dfd2db8abdc783586bee25667338;p=trbnettools.git some adjustments of pexor kernel module on hadesp31: extend max dma wait time, do not use schedule in dma poll loop --- diff --git a/pexor/kernel-module/pexor_trb.c b/pexor/kernel-module/pexor_trb.c index 967bb8f..05275bf 100644 --- a/pexor/kernel-module/pexor_trb.c +++ b/pexor/kernel-module/pexor_trb.c @@ -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