linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Joseph P. Garcia" <jpgarcia@execpc.com>
To: linuxppc-dev@lists.linuxppc.org
Subject: 2.4: PCIBIOS_MIN_MEM correct?
Date: Sun, 4 Feb 2001 13:00:40 -0600	[thread overview]
Message-ID: <01020413004001.06077@momiji> (raw)


should PCIBIOS_MIN_MEM be 0x10000000?  I caught this when i noticed it is
used as the minimum address in the pci assign resource function, used in such
situations as the OF/ATY-overlap re-allocate in wallstreets.  My system would
panic with the lcd melting effect as some may recall.

I brute forced in the following lines in
drivers/pci/setup-res.c:pci_assign_resource()
     min = (res->flags & IORESOURCE_IO) ? PCIBIOS_MIN_IO : PCIBIOS_MIN_MEM;
+    if(res->start==0)
+         min = 0x83000000;

resulting in the same mapping used by Michael Schmitz earlier 2.2 patch.
(its the only re-alloc on my system, so it works :)  My kernel isn't
panicing.. yet.

Anyway, looking in /proc/iomem, one might get the idea that PCIBIOS_MIN_MEM
should be defined as 0x80000000.  This might resolve the problem I had in a
less brute way.  I haven't tried it myself yet.  waiting for a second opinion.

The macro appears to be new in 2.4, so its understandable why it looks like
most archs seem to have similar values.

Any one have any insight on this?

--
Joseph P. Garcia
http://www.execpc.com/~jpgarcia

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

             reply	other threads:[~2001-02-04 19:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-04 19:00 Joseph P. Garcia [this message]
2001-02-04 20:09 ` 2.4: PCIBIOS_MIN_MEM correct? 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=01020413004001.06077@momiji \
    --to=jpgarcia@execpc.com \
    --cc=linuxppc-dev@lists.linuxppc.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).