Re: pci_request_regions() failure

2010-09-13 Thread tiejun.chen
Ravi Gupta wrote: > Hi Tiejun, > > Firstly I think we'd better print the BAR0 and BAR1 on the probe function of >> your device driver because you have to make sure if a800-a803 is >> assigned to BAR0 and 0xa804-0xa807 for BAR1 as we expect. >> >> u32 value; >> pci_read_config_word(

Re: pci_request_regions() failure

2010-09-13 Thread Ravi Gupta
Hi Tiejun, Firstly I think we'd better print the BAR0 and BAR1 on the probe function of > your device driver because you have to make sure if a800-a803 is > assigned to BAR0 and 0xa804-0xa807 for BAR1 as we expect. > > u32 value; > pci_read_config_word(pdev, PCI_BASE_ADDRESS_0, &va

Re: pci_request_regions() failure

2010-09-09 Thread tiejun.chen
Ravi Gupta wrote: > Hi Tiejun, > > Thanks for the reply. > > Omm. >> Often we always disable this pref windows so please disable this window. >> Try use >> the following ways to clear PCI_PREF_MEMORY_BASE and PCI_PREF_MEMORY_LIMIT. >> -- >>pci_write_config_word(dev, PCI_PREF_MEMORY_BA

Re: pci_request_regions() failure

2010-09-09 Thread Ravi Gupta
Hi Tiejun, Thanks for the reply. Omm. > > Often we always disable this pref windows so please disable this window. > Try use > the following ways to clear PCI_PREF_MEMORY_BASE and PCI_PREF_MEMORY_LIMIT. > -- >pci_write_config_word(dev, PCI_PREF_MEMORY_BASE, 0); >pci_write_conf

Re: pci_request_regions() failure

2010-09-09 Thread tiejun.chen
Ravi Gupta wrote: > Hi Tiejun, > > Thanks for the reply. > > > Your PCI device should be one virtual device so I think the above should be >> as >> we understood. You know 0x ~ 0x3 should not be allowed to >> reserved. >> > > Can you explain a little more that what do you mean b

Re: pci_request_regions() failure

2010-09-08 Thread Ravi Gupta
Hi Tiejun, Thanks for the reply. Your PCI device should be one virtual device so I think the above should be > as > we understood. You know 0x ~ 0x3 should not be allowed to > reserved. > Can you explain a little more that what do you mean by "Your PCI device should be one virtu

Re: pci_request_regions() failure

2010-09-07 Thread tiejun.chen
Ravi Gupta wrote: > Hi Tiejun, > > Thanks for the reply. I am sending you the updated dmesg O/P(after enabling > CONFIG_PCI_DEBUG) as attachment as well as at the end of the mail. > > As far as driver is concern, I am trying the pci_skel driver available as > example with LDD book with slight mod

Re: pci_request_regions() failure

2010-09-07 Thread Ravi Gupta
Hi Tiejun, Thanks for the reply. I am sending you the updated dmesg O/P(after enabling CONFIG_PCI_DEBUG) as attachment as well as at the end of the mail. As far as driver is concern, I am trying the pci_skel driver available as example with LDD book with slight modifications. Driver Code: ==

Re: pci_request_regions() failure

2010-09-06 Thread tiejun.chen
ard (LatticeECP2M PCI Express > Development > Kit<http://www.latticesemi.com/products/developmenthardware/developmentkits/pciexpressdevkitecp2m/index.cfm>) > in pci-express slot 0 and try to load my driver module, I get a > pci_request_regions() failure(error -EBUSY). The interest

pci_request_regions() failure

2010-09-06 Thread Ravi Gupta
ttp://www.latticesemi.com/products/developmenthardware/developmentkits/pciexpressdevkitecp2m/index.cfm>) in pci-express slot 0 and try to load my driver module, I get a pci_request_regions() failure(error -EBUSY). The interesting thing is the region that it fails for. According to /proc/iomem, slo