From: Ralf Baechle <ralf@oss.sgi.com>
To: Jim Paris <jim@jtan.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA]
Date: Tue, 18 Dec 2001 18:58:50 -0200 [thread overview]
Message-ID: <20011218185850.A18856@dea.linux-mips.net> (raw)
In-Reply-To: <20011218135712.B11726@neurosis.mit.edu>; from jim@jtan.com on Tue, Dec 18, 2001 at 01:57:12PM -0500
On Tue, Dec 18, 2001 at 01:57:12PM -0500, Jim Paris wrote:
> > > > -more /proc/iomem
> > > 00000000-00ffffff : System Ram
> > > 00002000-001bc6af : Kernel code
> > > 001cf300-00299fff : Kernel data
> > > (this seems very wrong to me, since the kernel is most definately
> > > not in the I/O memory space; real memory, of course, but I/O memory??)
> >
> > No, this makes perfect sense on a 16mb system.
>
> How so? See the memory map I just sent in my other mail. Should I be
> adding isa_slot_offset to calls to check/request/release_mem_region?
> Or should I make a isa_{check,request,release}_mem_region that adds
> this in? In which case, doesn't that turn /proc/iomem into a general
> memory map rather than an I/O memory map?
It's a general memory map. Basically you have an memory address space
and an I/O space. The latter should be treated as an entirely independant
thing just like on x86 where special instructions (in / out) are necessary
to access it. On MIPS the difference is more blurry as this I/O port
addres space is accessible through normal load / store instructions.
> > And that's right because isa_slot_offset is used by the isa_{read,write}[bwl]
> > functions which do not require ioremap having been called before. You're
> > (fortunately ...) using PCI and PCI drivers are required to use ioremap.
>
> No, I'm not using PCI, but it's calling ioremap anyway. So, yes, I
> suppose I could change the driver to not call ioremap and use
> isa_{read,write}[bwl] (since doing both adds KSEG1 twice).
> But why shouldn't ioremap + {read,write}[bwl] also work?
> If it did, I wouldn't have to touch the driver.
Well, calling ioremap anyway is ok. The whole isa_* thing was invented to
make keeping the large number of antique ISA drivers that don't have any
maintainers alive.
Ralf
next prev parent reply other threads:[~2001-12-18 21:59 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-17 20:15 [ppopov@mvista.com: Re: [Linux-mips-kernel]ioremap & ISA] Jim Paris
2001-12-17 21:34 ` Ralf Baechle
2001-12-18 5:45 ` Jim Paris
2001-12-18 7:03 ` Jim Paris
2001-12-18 4:03 ` hanishkvc
2001-12-18 18:10 ` Jun Sun
2001-12-18 18:45 ` Jim Paris
2001-12-18 18:45 ` Jim Paris
2001-12-18 19:09 ` Jun Sun
2001-12-18 19:30 ` Ralf Baechle
2001-12-19 9:40 ` Geert Uytterhoeven
2001-12-18 18:25 ` Ralf Baechle
2001-12-18 18:57 ` Jim Paris
2001-12-18 19:21 ` Jun Sun
2001-12-18 20:58 ` Ralf Baechle [this message]
2001-12-18 21:28 ` Jim Paris
2001-12-18 21:53 ` Maciej W. Rozycki
2001-12-19 9:34 ` Geert Uytterhoeven
2001-12-22 12:47 ` Ralf Baechle
2001-12-18 19:16 ` Jun Sun
2001-12-18 19:31 ` Ralf Baechle
2001-12-18 19:36 ` Jun Sun
2001-12-18 20:02 ` Karsten Merker
2001-12-18 20:22 ` Maciej W. Rozycki
2001-12-18 22:28 ` Ralf Baechle
2001-12-19 9:34 ` Geert Uytterhoeven
2001-12-19 16:47 ` Ralf Baechle
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=20011218185850.A18856@dea.linux-mips.net \
--to=ralf@oss.sgi.com \
--cc=jim@jtan.com \
--cc=linux-mips@oss.sgi.com \
/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