Hi all



I am developing a PCIe device driver on a machine 64 bit and using Suse 10 , for testing my driver I tried to do loopback on the driver by writing then reading from configuration space of the PCI (BAR) which is already is implemented in the Hardware. I used BAR2 for doing loop back,

I used memcpy_fromio and memcpy_toio to read/write form/to configuration space of my PCI board

I fail to read successfully from the BAR2 .. I donít how why?????????

Here are samples of data sent/received

Tx(memcpy_toio)
=============
0xAABBCCDD00FF00FF
0x1122334455667788

Rx(memcpy_fromio)
================
0x1122334411223344
0x1122334411223344

As apparent above, it read the LSB of 2nd 64bit and repeat it in MSB ..!!!!..which is strange behavior .. So please if anyone could provide me with comment/suggestion/solution to my problem

Appreciate your help

Thanks

Regards

Mahmoud