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
Ravi Gupta wrote: > Hi, > > I am facing a problem while requesting pci resource. I have some data that I > am hopeful will help address the issue. > > I am currently running on a MPC837xERDB board(powerpc) with a 2.6.35 kernel. > The problem is that whenever I insert the card (LatticeECP2M PCI Ex