From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262312AbTJNMoL (ORCPT ); Tue, 14 Oct 2003 08:44:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262336AbTJNMoL (ORCPT ); Tue, 14 Oct 2003 08:44:11 -0400 Received: from smtrly01.smartm.com ([158.116.149.131]:40720 "EHLO smtrly01.smartm.com") by vger.kernel.org with ESMTP id S262312AbTJNMoG (ORCPT ); Tue, 14 Oct 2003 08:44:06 -0400 Message-ID: <903E17B6FF22A24C96B4E28C2C0214D70104BDD5@sr-bng-exc01.int.tsbu.net> X-Sybari-Space: 00000000 00000000 00000000 00000000 From: "Daheriya, Adarsh" To: "Murray, Scott" Cc: "'linux-kernel@vger.kernel.org'" Subject: Hot Swap - Resource Allocation Problem. Date: Tue, 14 Oct 2003 18:18:04 +0530 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-OriginalArrivalTime: 14 Oct 2003 12:42:58.0296 (UTC) FILETIME=[B24D5F80:01C39250] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: 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.