All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
To: Jun Sun <jsun@mvista.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org
Subject: Re: CVS Update@-mips.org: linux
Date: Wed, 21 Apr 2004 12:55:06 +0400	[thread overview]
Message-ID: <408636EA.3004C913@niisi.msk.ru> (raw)
In-Reply-To: 20040420153108.F22846@mvista.com

Jun Sun wrote:
> 
> Has anybody succssfully used pci_assign_unassigned_resources() in latest 2.4?
> It was badly broken in early 2.4 kernels while pci_auto was the only
> option.

In fact, I have used pci_assign_unassigned_resources() from early 2.4
days. The only code I had to supply was
fixup of PCI-PCI bridge spaces which was done in pcibios_fixup_bus,
something like
        if(!bus->self) /* Primary busses */
                bus->resource[0] = &ioport_resource;
                bus->resource[1] = &iomem_resource;
	else /* busses behind PCI-PCI bridges */
	    for IO, MEM, and PREFETCH spaces:
                bus->resource[i] =
&bus->self->resource[PCI_BRIDGE_RESOURCES+i];
                bus->resource[i]->start =
bus->parent->resource[i]->start;
                bus->resource[i]->end   = bus->parent->resource[i]->end;
                bus->resource[i]->flags =
bus->parent->resource[i]->flags;
                bus->resource[i]->name  = bus->name;


Ah, I had to disable ISA mapping in 2.4.25.

After that, pci_assign_unassigned_resources() assigns all resources
properly. If for some reason, you have to preserve PBAR's values
assigned by a BIOS, setup pci_dev.resource[].parent before invoking
pci_assign_unassigned_resources.
> 
> So at most you can only say "pci_assign_unassigned_resources() can
> finally does what pci_auto does". :)

Exactly.

Regards,
Gleb.

  reply	other threads:[~2004-04-21  8:51 UTC|newest]

Thread overview: 143+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040420163230Z8225288-1530+99@linux-mips.org>
2004-04-20 17:51 ` CVS Update@-mips.org: linux Jun Sun
2004-04-20 20:11   ` Ralf Baechle
2004-04-20 20:20     ` Pete Popov
2004-04-20 22:31     ` Jun Sun
2004-04-21  8:55       ` Gleb O. Raiko [this message]
2004-04-21 14:11       ` Maciej W. Rozycki
2004-04-21 17:20         ` Jun Sun
2004-04-21 18:04           ` Maciej W. Rozycki
     [not found] <20041218022359Z8225198-1751+3809@linux-mips.org>
2004-12-18 21:32 ` Steven J. Hill
2004-12-18 22:28   ` Maciej W. Rozycki
     [not found] <20041217205625Z8225073-1751+3779@linux-mips.org>
2004-12-18  1:04 ` Maciej W. Rozycki
     [not found] <20041216030425Z8225321-1751+3720@linux-mips.org>
2004-12-16  3:13 ` Steven J. Hill
2004-12-16  3:52 ` Maciej W. Rozycki
     [not found] <20041209220930Z8225298-1751+3401@linux-mips.org>
2004-12-09 22:21 ` Manish Lachwani
     [not found] <20041127061929Z8224786-1751+2584@linux-mips.org>
2004-11-27 22:05 ` Maciej W. Rozycki
2004-11-27 23:15   ` Ralf Baechle
2004-11-28  2:01     ` Maciej W. Rozycki
2004-11-28 11:53       ` Ralf Baechle
2004-11-28 17:44         ` Maciej W. Rozycki
2004-11-28 17:57           ` Ralf Baechle
2004-11-29 14:51         ` Jan-Benedict Glaw
     [not found] <20041020023431Z98555-1751+175@linux-mips.org>
2004-10-20 16:58 ` Thomas Koeller
2004-10-21  9:19   ` Thomas Koeller
2004-10-21 13:03     ` Ralf Baechle
2004-10-21 15:56       ` Maciej W. Rozycki
     [not found] <20040820120223Z8225206-1530+8785@linux-mips.org>
2004-08-23  9:29 ` Maciej W. Rozycki
2004-08-23  9:54   ` Kumba
2004-08-23 10:58     ` Ralf Baechle
2004-08-23 10:24   ` Ralf Baechle
2004-08-23 11:40     ` Maciej W. Rozycki
     [not found] <20040811202903Z8225206-1530+8297@linux-mips.org>
2004-08-11 20:36 ` Christoph Hellwig
2004-05-19 17:03 Manish Lachwani
     [not found] <20040519162924Z8225564-1530+2150@linux-mips.org>
2004-05-19 16:43 ` Maciej W. Rozycki
     [not found] <20040322200826Z8225300-9616+4225@linux-mips.org>
2004-03-23 12:44 ` Maciej W. Rozycki
     [not found] <20040317153023Z8225229-9616+3963@linux-mips.org>
2004-03-17 15:37 ` freshy98
     [not found] <20040315205101Z8225248-9616+3861@linux-mips.org>
2004-03-16  4:11 ` Yoichi Yuasa
     [not found] <20040303034310Z8225905-9616+2989@linux-mips.org>
2004-03-03  4:09 ` Ralf Baechle
     [not found] <20040208143438Z8224987-9616+1909@linux-mips.org>
2004-02-08 14:36 ` William Lee Irwin III
2004-02-08 14:40   ` Christoph Hellwig
     [not found] <20040202141939Z8225226-9616+1555@linux-mips.org>
2004-02-02 15:13 ` Maciej W. Rozycki
2004-02-02 15:23   ` Ralf Baechle
2004-02-03 15:30     ` Maciej W. Rozycki
2004-02-03 15:49       ` Ralf Baechle
2004-02-03 16:04         ` Maciej W. Rozycki
     [not found] <20040123165755Z8225342-9616+749@linux-mips.org>
2004-01-23 17:03 ` Maciej W. Rozycki
     [not found] <20040123142002Z8225342-9616+728@linux-mips.org>
2004-01-23 16:50 ` Maciej W. Rozycki
     [not found] <20040115062800Z8225198-9616+139@linux-mips.org>
2004-01-15  9:39 ` Ralf Baechle
     [not found] <20040113080926Z8225270-16706+2387@linux-mips.org>
2004-01-13 17:22 ` Dan Aizenstros
2004-01-14 15:25   ` Maciej W. Rozycki
2004-01-14 17:34     ` Pete Popov
     [not found] <20031124151816Z8225418-16706+435@linux-mips.org>
2003-11-24 15:23 ` Jan-Benedict Glaw
     [not found] <20031103231010Z8225443-1272+8723@linux-mips.org>
2003-11-04 18:48 ` Maciej W. Rozycki
2003-11-04 18:48   ` Maciej W. Rozycki
     [not found] <20031013142637Z8225419-1272+7775@linux-mips.org>
     [not found] ` <Pine.GSO.3.96.1031014114452.17028B-100000@delta.ds2.pg.gda.pl>
2003-10-14 13:28   ` Ralf Baechle
2003-10-15 14:23     ` Maciej W. Rozycki
     [not found] <20031009160717Z8225587-1272+7472@linux-mips.org>
2003-10-10 18:56 ` Kip Walker
2003-10-10 19:03   ` Kip Walker
2003-10-11  7:27     ` Ralf Baechle
2003-10-14  9:28   ` Maciej W. Rozycki
     [not found] <20030909113150Z8225348-1272+5180@linux-mips.org>
2003-09-09 13:40 ` Maciej W. Rozycki
2003-09-10  8:51   ` Ralf Baechle
     [not found] <20030825170001Z8225388-1272+4466@linux-mips.org>
2003-08-25 17:18 ` Ralf Baechle
     [not found] <20030729120925Z8225214-1272+3844@linux-mips.org>
2003-07-29 12:20 ` Jan-Benedict Glaw
     [not found] <20030722005641Z8225235-1272+3651@linux-mips.org>
2003-07-22  1:22 ` Geert Uytterhoeven
     [not found] <20030720230140Z8224861-1272+3549@linux-mips.org>
2003-07-21 10:49 ` Maciej W. Rozycki
2003-07-21 12:12   ` Kevin D. Kissell
2003-07-21 12:12     ` Kevin D. Kissell
2003-07-21 14:44     ` Ralf Baechle
2003-07-21 15:50     ` Maciej W. Rozycki
2003-07-21 18:20       ` Keith M Wesolowski
2003-07-22 19:39         ` Maciej W. Rozycki
2003-07-22 21:21           ` Ralf Baechle
2003-07-22 21:37             ` Maciej W. Rozycki
2003-07-22 21:47               ` Geert Uytterhoeven
2003-07-22 22:51                 ` Maciej W. Rozycki
2003-07-30  2:12                   ` Ralf Baechle
2003-07-30  7:47                     ` Maciej W. Rozycki
2003-07-30 14:07                       ` Ralf Baechle
2003-07-30  3:16               ` Ralf Baechle
2003-07-30  7:55                 ` Maciej W. Rozycki
2003-07-30 14:05                   ` Ralf Baechle
2003-07-21 21:14       ` Ralf Baechle
2003-07-22 19:40         ` Maciej W. Rozycki
2003-07-21 14:42   ` Ralf Baechle
     [not found] <20030716010829Z8224802-1272+3435@linux-mips.org>
2003-07-16  1:17 ` Ralf Baechle
     [not found] <20030627191204Z8225311-1272+2885@linux-mips.org>
2003-06-27 19:46 ` Maciej W. Rozycki
2003-06-27 20:32   ` Kip Walker
2003-06-27 20:48     ` Maciej W. Rozycki
     [not found] <20030624033916Z8224827-1272+2821@linux-mips.org>
2003-06-24  9:31 ` Ralf Baechle
2003-06-24 17:51   ` Pete Popov
2003-06-24 21:10     ` Ralf Baechle
     [not found] <20030615004718Z8225220-1272+2582@linux-mips.org>
2003-06-16  1:19 ` Atsushi Nemoto
2003-06-16  1:42   ` Atsushi Nemoto
2003-06-16  1:58     ` Atsushi Nemoto
     [not found] <20030615135712Z8225205-1272+2604@linux-mips.org>
2003-06-15 15:18 ` ilya
     [not found] <20030613135835Z8225250-1272+2544@linux-mips.org>
2003-06-13 14:19 ` Geert Uytterhoeven
2003-06-13 14:30   ` Ralf Baechle
2003-06-13 17:33     ` Jun Sun
2003-06-13 18:56       ` Geert Uytterhoeven
2003-06-13 20:28         ` Maciej W. Rozycki
2003-06-13 21:00           ` Dan Malek
2003-06-13 21:44             ` Jun Sun
2003-06-13 23:23               ` Ralf Baechle
2003-06-14 18:55                 ` Maciej W. Rozycki
2003-06-14 18:48             ` Maciej W. Rozycki
2003-06-13 21:45           ` Jun Sun
     [not found] <20030605182419Z8224802-1272+2270@linux-mips.org>
2003-06-05 18:42 ` Guido Guenther
2003-06-05 19:45   ` Jan-Benedict Glaw
2003-06-05 20:12     ` Ralf Baechle
2003-06-09 11:12 ` Maciej W. Rozycki
2003-06-09 11:46   ` Geert Uytterhoeven
     [not found] <20030601120750Z8225197-1272+2136@linux-mips.org>
2003-06-01 14:25 ` Jan-Benedict Glaw
2003-06-01 15:56   ` Ralf Baechle
2003-06-01 16:10     ` Jan-Benedict Glaw
     [not found] <20030516221926Z8225233-1272+1964@linux-mips.org>
2003-05-16 22:27 ` Thiemo Seufer
2003-05-17 16:13   ` Maciej W. Rozycki
     [not found] <20030427233451Z8225245-1272+1630@linux-mips.org>
2003-04-30  8:55 ` Maciej W. Rozycki
     [not found] <20030424114755Z8225208-1272+1554@linux-mips.org>
2003-04-28 10:25 ` Atsushi Nemoto
2003-04-28 11:27   ` Ralf Baechle
     [not found] <20030421125733Z8225073-1272+1478@linux-mips.org>
2003-04-21 16:00 ` Ralf Baechle
     [not found] <20030412205002Z8225201-1272+1267@linux-mips.org>
2003-04-14  1:05 ` Wayne Chen
2003-04-14  1:05   ` Wayne Chen
     [not found] <20030402120316Z8225232-1272+1120@linux-mips.org>
2003-04-13 15:22 ` Karsten Merker
2003-04-14 11:57   ` Maciej W. Rozycki
2003-04-14 15:55     ` Ralf Baechle
     [not found] <20030403133610Z8225197-1272+1139@linux-mips.org>
2003-04-03 14:11 ` Maciej W. Rozycki
2003-04-03 14:24   ` Ralf Baechle
2003-04-03 14:48     ` Maciej W. Rozycki
2003-04-03 15:42       ` Ralf Baechle
2003-04-03 16:27         ` Maciej W. Rozycki
2003-04-03 16:31           ` Dominic Sweetman
2003-04-03 16:47             ` Maciej W. Rozycki
2003-04-03 22:55               ` Ralf Baechle
2003-04-03 14:51     ` Juan Quintela
     [not found] <20030306011121Z8225204-1272+770@linux-mips.org>
2003-03-26 16:52 ` Maciej W. Rozycki
     [not found] <20030220194640Z8225262-1272+600@linux-mips.org>
2003-02-21 12:32 ` Maciej W. Rozycki
2003-02-21 20:22   ` Kip Walker
2003-02-21 20:50     ` Maciej W. Rozycki
     [not found] <20030216062530Z8224847-1272+556@linux-mips.org>
2003-02-17 13:46 ` Ralf Baechle
2003-02-17 19:38   ` Pete Popov
     [not found] <20030126173616Z8225206-1272+297@linux-mips.org>
2003-01-27  6:28 ` Ralf Baechle
2003-01-27 12:04   ` Maciej W. Rozycki
     [not found] <20021102200215Z1123906-9213+801@linux-mips.org>
2002-11-02 20:12 ` Geert Uytterhoeven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=408636EA.3004C913@niisi.msk.ru \
    --to=raiko@niisi.msk.ru \
    --cc=jsun@mvista.com \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.