linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Grant Grundler <grundler@cup.hp.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PATCH 2.4.0 parisc PCI support
Date: Fri, 02 Mar 2001 15:46:12 -0500	[thread overview]
Message-ID: <3AA00694.7A65A3B2@mandrakesoft.com> (raw)
In-Reply-To: <200103021932.LAA29704@milano.cup.hp.com>

Grant Grundler wrote:
> Index: drivers/pci/pci.c
> ===================================================================
> RCS file: /home/cvs/parisc/linux/drivers/pci/pci.c,v
> retrieving revision 1.1.1.6
> diff -u -p -r1.1.1.6 pci.c
> --- pci.c       2001/01/09 16:57:56     1.1.1.6
> +++ pci.c       2001/03/02 18:44:59
> @@ -644,12 +645,16 @@ void __init pci_read_bridge_bases(struct
>         } else {
> +
>                 /*
> -                * Ugh. We don't know enough about this bridge. Just assume
> -                * that it's entirely transparent.
> +                * Either this is not a PCI-PCI bridge or it's not
> +                * configured yet. Since this code only supports PCI-PCI
> +                * bridge, we better not be called for any other type.
> +                * Don't muck the resources since it will confuse the
> +                * platform specific code which does that.
>                  */
> -               printk("Unknown bridge resource %d: assuming transparent\n", 0);
> -               child->resource[0] = child->parent->resource[0];
> +               printk("PCI : ignoring %s PCI-PCI bridge (I/O BASE not configured)\n", child->self->slot_name);
> +               return;
>         }
> 
>         res = child->resource[1];
> @@ -664,8 +669,8 @@ void __init pci_read_bridge_bases(struct
>                 res->name = child->name;
>         } else {
>                 /* See comment above. Same thing */
> -               printk("Unknown bridge resource %d: assuming transparent\n", 1);
> -               child->resource[1] = child->parent->resource[1];
> +               printk("PCI : ignoring %s PCI-PCI bridge (MMIO base not configured)\n", child->self->slot_name);
> +               return;
>         }
> 
>         res = child->resource[2];
> @@ -690,11 +695,10 @@ void __init pci_read_bridge_bases(struct
>                 res->end = limit + 0xfffff;
>                 res->name = child->name;
>         } else {
> -               /* See comments above */
> -               printk("Unknown bridge resource %d: assuming transparent\n", 2);
> -               child->resource[2] = child->parent->resource[2];
> +               /* Base > limit means the prefetchable mem is disabled.*/
>         }


IIRC these "assuming transparent" lines were put in to -fix- PCI-PCI
bridges on at least some x86 boxes...  I didn't really understand the
bridge code well enough at the time to comment one way or the other on
its correctness, but it definitely fixed some problems.

	Jeff



-- 
Jeff Garzik       | "You see, in this world there's two kinds of
Building 1024     |  people, my friend: Those with loaded guns
MandrakeSoft      |  and those who dig. You dig."  --Blondie

  reply	other threads:[~2001-03-02 20:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-02 19:32 PATCH 2.4.0 parisc PCI support Grant Grundler
2001-03-02 20:46 ` Jeff Garzik [this message]
2001-03-02 21:43   ` Grant Grundler
2001-03-03  0:09     ` Jeff Garzik
2001-03-03  0:42       ` Grant Grundler
2001-03-04 12:19 ` Ivan Kokshaysky
2001-03-05 22:16   ` Grant Grundler
2001-03-06 17:20     ` Ivan Kokshaysky
2001-03-06 20:57       ` Grant Grundler
2001-03-07 14:48         ` Ivan Kokshaysky
2001-03-08  1:27           ` Grant Grundler

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=3AA00694.7A65A3B2@mandrakesoft.com \
    --to=jgarzik@mandrakesoft.com \
    --cc=grundler@cup.hp.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).