public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PCIe interface memory memory mapping issue
@ 2009-06-12 12:23 Sanka Piyaratna
  2009-06-13  5:50 ` Robert Hancock
  0 siblings, 1 reply; 5+ messages in thread
From: Sanka Piyaratna @ 2009-06-12 12:23 UTC (permalink / raw)
  To: linux-kernel


Hi,

I have developed a PCI express interface using Xilinx ML555 hardware module. I have implemented Linux kernel mode device drivers and everything works correctly as long as I am using the device within a computer with dual channel DDR arrangement. However, as soon as I pug this device into a core i7 or an older single channel DDR machine, the interface memory mapping does not work any more. As if the register map with in the device does no longer exsists. However, "lspci" utility provides correct information. I am not sure if this has anything to do with the number of DDR memory channels the motherboard has or why that would be a problem for PCI express device. However, this seem to be the common link between the machines that demonstrate this issue.

Could some one please let me know if you have ever experience this kind of problem before and/or any ideas to fix this problem?

Thank you very much,

Regards,

Sanka



      Need a Holiday? Win a $10,000 Holiday of your choice. Enter now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/creativeholidays/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p3=mailtagline

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCIe interface memory memory mapping issue
  2009-06-12 12:23 PCIe interface memory memory mapping issue Sanka Piyaratna
@ 2009-06-13  5:50 ` Robert Hancock
  2009-06-14 12:43   ` Sanka Piyaratna
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Hancock @ 2009-06-13  5:50 UTC (permalink / raw)
  To: Sanka Piyaratna; +Cc: linux-kernel

On 06/12/2009 06:23 AM, Sanka Piyaratna wrote:
> Hi,
>
> I have developed a PCI express interface using Xilinx ML555 hardware module. I have implemented Linux kernel mode device drivers and everything works correctly as long as I am using the device within a computer with dual channel DDR arrangement. However, as soon as I pug this device into a core i7 or an older single channel DDR machine, the interface memory mapping does not work any more. As if the register map with in the device does no longer exsists. However, "lspci" utility provides correct information. I am not sure if this has anything to do with the number of DDR memory channels the motherboard has or why that would be a problem for PCI express device. However, this seem to be the common link between the machines that demonstrate this issue.

You'll have to give more details on what you mean by "the interface 
memory mapping does not work any more. As if the register map with in 
the device does no longer exsists".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCIe interface memory memory mapping issue
  2009-06-13  5:50 ` Robert Hancock
@ 2009-06-14 12:43   ` Sanka Piyaratna
  2009-06-14 16:26     ` Robert Hancock
  0 siblings, 1 reply; 5+ messages in thread
From: Sanka Piyaratna @ 2009-06-14 12:43 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel


Hi Robert


Thanks for your reply.

>> I have developed a PCI express interface using Xilinx ML555 hardware module. I have implemented Linux kernel >>mode device drivers and everything works correctly as long as I am using the device within a computer with dual >>channel DDR arrangement. However, as soon as I pug this device into a core i7 or an older single channel DDR >>machine, the interface memory mapping does not work any more. As if the register map with in the device does no >>longer exsists. However, "lspci" utility provides correct information. I am not sure if this has anything to do with the >>number of DDR memory channels the motherboard has or why that would be a problem for PCI express device. >>However, this seem to be the common link between the machines that demonstrate this issue.

>You'll have to give more details on what you mean by "the interface memory mapping does not work any more. As if >the register map with in the device does no longer exsists".

What I mean by this is that, when load the driver, the memory mapping of the hardware memory onto the computer memory does not work. I have a setup where I have all the control registers in BAR5 (512 byte) and I also have 64kB chuck of the FPGA memory mapped using BAR0. I am not able to see the register space when the BAR5 area in the computer memory map. However, I am able to write something to BAR0 memory map and read it back.

Thanks and regards,

Sanka



      Need a Holiday? Win a $10,000 Holiday of your choice. Enter now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/creativeholidays/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p3=mailtagline

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCIe interface memory memory mapping issue
  2009-06-14 12:43   ` Sanka Piyaratna
@ 2009-06-14 16:26     ` Robert Hancock
  2009-06-14 23:36       ` Sanka Piyaratna
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Hancock @ 2009-06-14 16:26 UTC (permalink / raw)
  To: Sanka Piyaratna; +Cc: linux-kernel

On Sun, Jun 14, 2009 at 6:43 AM, Sanka Piyaratna<cesanka@yahoo.com> wrote:
>
> Hi Robert
>
>
> Thanks for your reply.
>
>>> I have developed a PCI express interface using Xilinx ML555 hardware module. I have implemented Linux kernel >>mode device drivers and everything works correctly as long as I am using the device within a computer with dual >>channel DDR arrangement. However, as soon as I pug this device into a core i7 or an older single channel DDR >>machine, the interface memory mapping does not work any more. As if the register map with in the device does no >>longer exsists. However, "lspci" utility provides correct information. I am not sure if this has anything to do with the >>number of DDR memory channels the motherboard has or why that would be a problem for PCI express device. >>However, this seem to be the common link between the machines that demonstrate this issue.
>
>>You'll have to give more details on what you mean by "the interface memory mapping does not work any more. As if >the register map with in the device does no longer exsists".
>
> What I mean by this is that, when load the driver, the memory mapping of the hardware memory onto the computer memory does not work. I have a setup where I have all the control registers in BAR5 (512 byte) and I also have 64kB chuck of the FPGA memory mapped using BAR0. I am not able to see the register space when the BAR5 area in the computer memory map. However, I am able to write something to BAR0 memory map and read it back.

How are you getting the register space into the memory map.. ioremap() ?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: PCIe interface memory memory mapping issue
  2009-06-14 16:26     ` Robert Hancock
@ 2009-06-14 23:36       ` Sanka Piyaratna
  0 siblings, 0 replies; 5+ messages in thread
From: Sanka Piyaratna @ 2009-06-14 23:36 UTC (permalink / raw)
  To: Robert Hancock; +Cc: linux-kernel




>>>> I have developed a PCI express interface using Xilinx ML555 hardware module. I have implemented Linux kernel >>mode device drivers and everything works correctly as long as I am using the device within a computer with dual >>channel DDR arrangement. However, as soon as I pug this device into a core i7 or an older single channel DDR >>machine, the interface memory mapping does not work any more. As if the register map with in the device does no >>longer exsists. However, "lspci" utility provides correct information. I am not sure if this has anything to do with the >>number of DDR memory channels the motherboard has or why that would be a problem for PCI express device. >>However, this seem to be the common link between the machines that demonstrate this issue.
>>
>>>You'll have to give more details on what you mean by "the interface memory mapping does not work any more. As if >the register map with in the device does no longer exsists".
>>
>> What I mean by this is that, when load the driver, the memory mapping of the hardware memory onto the computer memory does not work. I have a setup where I have all the control registers in BAR5 (512 byte) and I also have 64kB chuck of the FPGA memory mapped using BAR0. I am not able to see the register space when the BAR5 area in the computer memory map. However, I am able to write something to BAR0 memory map and read it back.

>How are you getting the register space into the memory map.. ioremap() ?

that's right! I am using  ioremap(address, size). 



      Need a Holiday? Win a $10,000 Holiday of your choice. Enter now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/creativeholidays/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p3=mailtagline

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-14 23:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 12:23 PCIe interface memory memory mapping issue Sanka Piyaratna
2009-06-13  5:50 ` Robert Hancock
2009-06-14 12:43   ` Sanka Piyaratna
2009-06-14 16:26     ` Robert Hancock
2009-06-14 23:36       ` Sanka Piyaratna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox