AnsweredAssumed Answered

PCI device (64bit memory problem)

Question asked by manolo ruiz on Apr 26, 2016
Latest reply on May 5, 2016 by ufedor

I am using a 64 bit  memory FPGA connected by PCI in my T2080rdb. I am using the next function in a device driver

0002:01:00.0 Memory controller: Xilinx Corporation Device 7022 Subsystem: Xilinx Corporation Device
0007 Flags: bus master, fast devsel, latency 0
Memory at <ignored> (64-bit, prefetchable)
Memory at c40000000 (64-bit, prefetchable) [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [48] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [60] Express Endpoint, MSI 00
Capabilities: [100] Device Serial Number 00-00-00-00-00-00-00-00


however, when I use the next functions in my device driver:

unsigned long pci_resource_[start|len|end|flags](struct pci_dev *pdev, int bar);



I have got the next result:


The value of pci_resource_start is: 0x0

The value of pci_resource_len is: 0x0


However, when I use the same device driver in a PCI device driver that use 32 bit memory, I have got:


The value of pci_resource_start is: 0xc20000000

The value of pci_resource_len is: 0x100000


any idea why is it happening this?