UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Voyager
Voyager
242 Views
Registered: ‎09-14-2016

Linux-xlnx IRQ management ( Kernel 4.6 to 4.9)

Hello :)

 

After updating linux-xlnx kernel from 4.6 to 4.9 (HEAD detached at xilinx-v2017.4), some modification seems appear because of our DMA driver doesn't work anymore ...

 

I didn't touch device-tree node:

* 2 IRQ are set :

[   38.320648] dmadriver: loading out-of-tree module taints kernel.
[   38.327579] MTDRV_init
[   38.331327] MTDRV_probe
[   38.333774] MTDRV_construct_device 0 ef287d08
[   38.338098]   xil_init
...
[   38.360442] dma io map f30e2030
[   38.363505] Pool capacity : 2048 SLD nodes.
[   38.367729] xil_init : Create thread
[   38.371319] Register IRQ : 47
[   38.371329] mtdrv thread running ...
...
[   38.389158]   xil_init
[   38.391444] alloc_init_attrs
...
[   38.411485] dma io map f30e4030
[   38.414566] Pool capacity : 31744 SLD nodes.
[   38.419158] xil_init : Create thread
[   38.422743] Register IRQ : 48
[   38.422751] mtdrv thread running ...

Confirmed on /proc/interrupts:

 47:          0          0     GIC-0  61 Edge      XIL_IRQ_DMA
 48:          0          0     GIC-0  62 Edge      XIL_IRQ_DMA

And device-tree configuration:

		mydriver0: mydriver0@0x40400030
		{
			compatible = "CUST,bob";
			interrupt-parent= <&intc>;
			interrupts = <0 30 1>;
			reg = <0x40400030 0x1C>;

		};*/

		mydriver: mydriver@0x40400030
		{
			compatible = "CUST,bob";
			interrupt-parent= <&intc>;
			interrupts = <0 29 1>;
			reg = <0x40400030 0x1C>;

But IRQ never rising ...

 

Any idea or suggestion ? I have tried all i know but no success yet... :(

 

Cheers,

Trigger

 

Tags (1)
0 Kudos
2 Replies
Moderator
Moderator
230 Views
Registered: ‎09-12-2007

Re: Linux-xlnx IRQ management ( Kernel 4.6 to 4.9)

Can you regenerate the DT using the devicetree generator. How the interrupt numbers are handled has changed

0 Kudos
Voyager
Voyager
203 Views
Registered: ‎09-14-2016

Re: Linux-xlnx IRQ management ( Kernel 4.6 to 4.9)

Thank you for responding.

 

We don't generate the .dts because of it's a custom driver. This driver has worked with kernel 4.6 but not with 4.9 ... :(

I can't explain the reason why... any idea ??

because i'm stuck : I have to choose a 4.9 kernel with full USB driver working (but not our old driver)  or a kernel 4.6 with bugging USB and our driver ... 

 

Cheers,

Trigger

0 Kudos