LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-14-2017, 10:42 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 172

Rep: Reputation: 23
4.1.13: pci_enable_msi_range returns 1 (and not 8)


Hello,

I'm using a PCIe FPGA firmware that supports 8 MSI interrupts.
But calling to:
pci_enable_msi_range(pDev, 1, 8) returns 1.

Also checked that in kernel configuration, CONFIG_PCI_MSI=y

Is it only a firmware problem ?

Thank you,
Zvika
 
Old 11-26-2017, 01:59 PM   #2
zvivered
Member
 
Registered: Sep 2007
Posts: 172

Original Poster
Rep: Reputation: 23
Hello,

After adding CONFIG_IRQ_REMAP to the kernel, calling to:
pci_enable_msi_range(pPciDev, 1, 4), returned 4.

Then I called to:

devm_request_irq(&pPciDev->dev,
pPciDev->irq,
Irq0Handler,
0,
DEVICE_NAME,
0);

...

devm_request_irq(&pPciDev->dev,
pPciDev->irq+3,
Irq3Handler,
0,
DEVICE_NAME,
0);

to connect an handler to each of the IRQs.

But there is still a problem.

For 2 different interrupts, Irq0Handler is called.

Is there a way to make sure my FPGA creates 2 different MSI interrupts ?

If CONFIG_IRQ_REMAP is mandatory, seems strange I had to add it. I think it should
be in the defconfig.

Thank you,
Zvika
 
Old 12-11-2017, 02:28 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 172

Original Poster
Rep: Reputation: 23
Hello,

The cause to the problem - FPGA design.

It seems that in ALTERA (Arria 5 gx), in order to have more than one MSI (or MSI-X) interrupts,
the FPGA has to contain user logic to handle it. The PCIe core is not enouth.

Thank you,
Zvika
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] beep returns -1, strerror returns SUCCESS RandomTroll Linux - Software 9 05-04-2016 12:22 AM
iconv always returns 0 minimol Programming 1 04-16-2009 05:51 PM
dd never returns in BackTrack2 manolakis Linux - Newbie 17 03-01-2007 07:53 AM
Returns to loginscreen sore Ubuntu 1 12-08-2006 09:50 AM
Konsole returns ~ gbowden Linux - Software 4 11-19-2006 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration