PCIe driver hangs kernel

rlecessi

New Member
Joined
Jun 10, 2022
Messages
1
Reaction score
0
Credits
17
Hello. My FPGA has the following PCI bar:
0000:01:00.0 Signal processing controller: Device 1738:2259
Region 0: [virtual] Memory at 1000000000 (64-bit, prefetchable) [size=4G]

The FPGA has a register at offset 0x9003000, that I am trying to write.
My PCI driver probes the FPGA successfully, but hangs the kernel when trying to
write the registers. I believe the address 0xffffff8150030000 is correct.
Here is the printk output:

[email protected]:~# modprobe ifpgapci
[ 54.760168] IFPGA device resource 0: start at 0x1000000000 with length 4294967296
[ 54.767663] IFPGA device mapped resource 0x1000000000 to 0xffffff80c0000000
[ 54.774655] IFPGA call __raw_writel with data_to_write = 12345678 pAddr = 0xffffff8150030000

Any help is greatly appreciated.

My code is based on Olega Kutkov's blog at https://olegkutkov.me/2021/01/07/writing-a-pci-device-driver-for-linux/
and is attached.
 

Attachments

  • SOURCE.txt
    2.7 KB · Views: 44


badwolf

New Member
Joined
Jul 2, 2022
Messages
2
Reaction score
0
Credits
13
I had this problem on a mac.
long time ago.
Had something to do with uefi presets.
sorry i cant be more help.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation


Top