From 9a35d32c5650dfd2db8abdc783586bee25667338 Mon Sep 17 00:00:00 2001 From: "J. Adamczewski-Musch" Date: Thu, 24 Sep 2020 13:45:58 +0200 Subject: [PATCH] some adjustments of pexor kernel module on hadesp31: extend max dma wait time, do not use schedule in dma poll loop --- pexor/kernel-module/pexor_trb.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 -- 2.43.0