All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Hot Swap - Resource Allocation Problem.
@ 2003-10-15  4:07 Daheriya, Adarsh
  2003-10-15 18:10 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Daheriya, Adarsh @ 2003-10-15  4:07 UTC (permalink / raw)
  To: 'Greg KH'
  Cc: Murray, Scott, Daheriya, Adarsh, 'linux-kernel@vger.kernel.org'

hi Greg,

thanks for the reply.

i do reserve pci resources at boot time with kernel option as
"pci_hp_reserve=8,16,16" without quotes.
but still i am getting this problem.

is this problem coming because of mishandling of resources?

regards,
-Adarsh.

-----Original Message-----
From: Greg KH [mailto:greg@kroah.com]
Sent: Wednesday, October 15, 2003 2:19 AM
To: Daheriya, Adarsh
Cc: Murray, Scott; 'linux-kernel@vger.kernel.org'
Subject: Re: Hot Swap - Resource Allocation Problem.


On Tue, Oct 14, 2003 at 06:18:04PM +0530, Daheriya, Adarsh wrote:
> > hi Scott,
> > 
> > i am using your hot swap driver for one of our boards here. I have
> > back-ported the driver to 2.4.18 kernel.

For 2.4, I think that Scott had a patch that would require the user to
reserve pci resources at boot time to solve this problem.

See the linux pci hotplug devel mailing list archives for the patch and
a description of how to get this to work on 2.4.

Hope this helps,

greg k-h

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

* Re: Hot Swap - Resource Allocation Problem.
  2003-10-15  4:07 Hot Swap - Resource Allocation Problem Daheriya, Adarsh
@ 2003-10-15 18:10 ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-10-15 18:10 UTC (permalink / raw)
  To: Daheriya, Adarsh; +Cc: Murray, Scott, 'linux-kernel@vger.kernel.org'

On Wed, Oct 15, 2003 at 09:37:35AM +0530, Daheriya, Adarsh wrote:
> hi Greg,
> 
> thanks for the reply.
> 
> i do reserve pci resources at boot time with kernel option as
> "pci_hp_reserve=8,16,16" without quotes.
> but still i am getting this problem.
> 
> is this problem coming because of mishandling of resources?

I have no idea.

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

* Re: Hot Swap - Resource Allocation Problem.
  2003-10-14 12:48 Daheriya, Adarsh
@ 2003-10-14 20:48 ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2003-10-14 20:48 UTC (permalink / raw)
  To: Daheriya, Adarsh; +Cc: Murray, Scott, 'linux-kernel@vger.kernel.org'

On Tue, Oct 14, 2003 at 06:18:04PM +0530, Daheriya, Adarsh wrote:
> > hi Scott,
> > 
> > i am using your hot swap driver for one of our boards here. I have
> > back-ported the driver to 2.4.18 kernel.

For 2.4, I think that Scott had a patch that would require the user to
reserve pci resources at boot time to solve this problem.

See the linux pci hotplug devel mailing list archives for the patch and
a description of how to get this to work on 2.4.

Hope this helps,

greg k-h

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

* Hot Swap - Resource Allocation Problem.
@ 2003-10-14 12:48 Daheriya, Adarsh
  2003-10-14 20:48 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Daheriya, Adarsh @ 2003-10-14 12:48 UTC (permalink / raw)
  To: Murray, Scott; +Cc: 'linux-kernel@vger.kernel.org'

> hi Scott,
> 
> i am using your hot swap driver for one of our boards here. I have
> back-ported the driver to 2.4.18 kernel.
> 
> the problem is as follows -
> i have a board in the system slot of the chassis for which i am running
> the hot swap driver.
> when i hot insert another board (the configuration is given later) on some
> peripheral slot, i am not able to allocate resources for some of the
> devices beyond that.
> 
> the hot swapped board has got a bridge that provides two pmc slots. I have
> two bridges on these pmc slots and they provide 3 pci slots each. I have
> two 82559 (e100) ethernet cards beyond the two bridges, one 82559 for
> each. it looks something like this
> 
> peripheral slot ----------- P2P Bridge (Sentinel) -- P2P Bridge (21154) --
> 82559 (resources  are  allocated)
>                                                                   |
> 			                              -- P2P Bridge (21154)
> -- 82559 (resources NOT allocated)
> 
> i am able to assign the resources for the first 82559 correctly and it
> works, but for the other 81559 i am not able to assign resources.
> 
> the following dump will help to see that the driver is trying to assign
> resources to the other 82559 from a wrong resource tree.
> (The debug messages are added by me.)
> 
> --------------------------------------------------------------------------
> ---------------------------------
> cpci_hotplug: cpci_configure_dev - enter
> cpci_hotplug: assigning resource [0] (0000-0fff)
> checking bus resource new (0000-0fff) of size 1000 with min 38000000
> resources root->flags 0200 new->flags 0200
> find_resource:root->start: 00000000 root->end:000fffff
> find_resource: new->start: 38000000  new->end: 000fffff
> allocate resource (prefetching) 0(38000000-fffff) failed.
>   PCI: FAILED to allocate resource 0(38000000-fffff) for 05:08.0
> cpci_hotplug: assigning resource [1] (0000-003f)
> checking bus resource new (0000-003f) of size 0040 with min 1000
> resources root->flags 0100 new->flags 0101
> find_resource:root->start: 00000000 root->end:00000fff
> find_resource: new->start: 00001000  new->end: 00000fff
> allocate resource (prefetching) 1(1000-0fff) failed.
>   PCI: FAILED to allocate resource 1(1000-0fff) for 05:08.0
> cpci_hotplug: assigning resource [2] (0000-1ffff)
> checking bus resource new (0000-1ffff) of size 20000 with min 38000000
> resources root->flags 0200 new->flags 0200
> find_resource:root->start: 00000000 root->end:000fffff
> find_resource: new->start: 38000000  new->end: 000fffff
> allocate resource (prefetching) 2(38000000-fffff) failed.
>   PCI: FAILED to allocate resource 2(38000000-fffff) for 05:08.0
> cpci_hotplug: finished assigning resources for 05:08.0
> --------------------------------------------------------------------------
> --------------------------------------
> 
> Could you please give me some feed back to resolve this issue.
> 
> Regards,
> -Adarsh.

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

end of thread, other threads:[~2003-10-15 18:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-15  4:07 Hot Swap - Resource Allocation Problem Daheriya, Adarsh
2003-10-15 18:10 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2003-10-14 12:48 Daheriya, Adarsh
2003-10-14 20:48 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.