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.
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.