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!
07-11-2013 06:36 AM
Hey
I am doing the xapp1052, I use a host computer linux and the version of the kernel is 2.6.32-358.11.1.el6.x86_64 after the compilation I want load the file xbmd.ko unfortunately it'snt work. Is it problem with my version of kernel ? I search a solution about my problem but I don't find. If you have experience about this problem you can share your experience.
In the terminal I have this message.
[root@tibacou xbmd]# insmod xbmd.ko
insmod: error inserting 'xbmd.ko': -1 Operation not permitted
My board sp605 is detected by the host computer
[root@tibacou xbmd]# lspci
03:00.0 Memory controller: Xilinx Corporation Device 0505
Best REgards.
07-22-2013 12:20 AM
I add more information about my problem I have problem with the function request_irq my kernel disp this messages and I don't know how resolve this problem.
xbmd: Init: Base hw val E0600000
xbmd: Init: Base hw len 65536
xbmd: Init: Virt HW address C60000
xbmd: Init: Device IRQ: 0
xbmd: Init: Initialize Hardware Done..
xbmd: ISR Setup..
IRQ handler type mismatch for IRQ 0
current handler: timer
Pid: 5694, comm: insmod Not tainted 2.6.32-358.11.1.el6.x86_64 #1
Call Trace:
[<ffffffff810e2762>] ? __setup_irq+0x382/0x3c0
[<ffffffffa0018110>] ? XPCIe_IRQHandler+0x0/0x80 [xbmd]
[<ffffffff810e2e73>] ? request_threaded_irq+0x133/0x230
[<ffffffffa00187e0>] ? XPCIe_init+0x0/0x350 [xbmd]
[<ffffffffa00189bd>] ? XPCIe_init+0x1dd/0x350 [xbmd]
[<ffffffff8100204c>] ? do_one_initcall+0x3c/0x1d0
[<ffffffff810b74c1>] ? sys_init_module+0xe1/0x250
[<ffffffff8100b072>] ? system_call_fastpath+0x16/0x1b
xbmd: Interrupt Handler Start ..
xbmd : REG<0> : 0xFFFFFFFF
xbmd : REG<1> : 0xFFFFFFFF
xbmd : REG<2> : 0xFFFFFFFF
xbmd : REG<3> : 0xFFFFFFFF
xbmd : REG<4> : 0xFFFFFFFF
xbmd : REG<5> : 0xFFFFFFFF
xbmd : REG<6> : 0xFFFFFFFF
xbmd : REG<7> : 0xFFFFFFFF
xbmd : REG<8> : 0xFFFFFFFF
xbmd : REG<9> : 0xFFFFFFFF
xbmd : REG<10> : 0xFFFFFFFF
xbmd : REG<11> : 0xFFFFFFFF
xbmd : REG<12> : 0xFFFFFFFF
xbmd : REG<13> : 0xFFFFFFFF
xbmd : REG<14> : 0xFFFFFFFF
xbmd : REG<15> : 0xFFFFFFFF
xbmd : REG<16> : 0xFFFFFFFF
xbmd : REG<17> : 0xFFFFFFFF
xbmd : REG<18> : 0xFFFFFFFF
xbmd : REG<19> : 0xFFFFFFFF
xbmd : REG<20> : 0xFFFFFFFF
xbmd : REG<21> : 0xFFFFFFFF
xbmd : REG<22> : 0xFFFFFFFF
xbmd : REG<23> : 0xFFFFFFFF
xbmd : REG<24> : 0xFFFFFFFF
xbmd : REG<25> : 0xFFFFFFFF
xbmd : REG<26> : 0xFFFFFFFF
xbmd : REG<27> : 0xFFFFFFFF
xbmd : REG<28> : 0xFFFFFFFF
xbmd : REG<29> : 0xFFFFFFFF
xbmd : REG<30> : 0xFFFFFFFF
xbmd : REG<31> : 0xFFFFFFFF
xbmd Interrupt Handler End ..
xbmd: Init: Unable to allocate IRQ
07-23-2013 06:38 AM
This recall me a problem I had.
I'm pretty sure that there is an old thread that give some solutions about that.
In my memory it was an issue regarding your Kernel version and/or about MSI interuption
Some old piece of code :
//enabling msi if possible if ( 0 != pci_enable_msi (dev) ) { printk(KERN_INFO"%s: Warning : MSI are not supported by mother board\n", gDrvrName); } else { dp->driverStatus = dp->driverStatus | HAVE_MSI; printk(KERN_INFO"%s: MSI are supported by mother board\n", gDrvrName); }
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,21) err=request_irq(dev->irq,my_isr, IRQF_SHARED,my_sname,dp); #else err=request_irq(dev->irq,my_isr, SA_SHIRQ,my_sname,dp); #endif
What is your kernel version, I stopped to use my driver at version 2.6.28
07-23-2013 06:59 AM
I use the version Linux tibacou 2.6.32-358.11.1.el6.x86_64 I search on the forum but I did'nt found a solution about my problem.
07-23-2013 07:03 AM
07-23-2013 07:23 AM
Yes it must return something >0
You should try the function : enable_msi as I said
Or maybe add :
pci_set_master(dev);
just before requesting the irq