From: Ralf Baechle <ralf@linux-mips.org>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Zhang Le <r0bertz@gentoo.org>, linux-mips@linux-mips.org
Subject: Re: [PATCH] defined a macro for lemote 2e box IO base
Date: Fri, 24 Oct 2008 21:34:42 +0100 [thread overview]
Message-ID: <20081024203442.GI25297@linux-mips.org> (raw)
In-Reply-To: <alpine.LFD.1.10.0810242119430.31223@ftp.linux-mips.org>
On Fri, Oct 24, 2008 at 09:24:05PM +0100, Maciej W. Rozycki wrote:
> > Thanks for the comment.
> > I have checked how other platforms handle this problem.
> > Many have used CKSEG1ADDR.
>
> Please note long-term we want CKSEG1ADDR() to go away from board/platform
> code and possibly only keep it for some generic use if at all. Have you
> considered using ioremap()? With a literal physical address it should get
> optimised to the same code as the use of CKSEG1ADDR() produces, yet keep
> the source portable and in line with the rest of the kernel. I try to
> remove references to CKSEG1ADDR() as I come across them myself too.
We should probably start removing them all over the source so people have
less bad examples to copy from. The reason why KSEG0ADDR() and all the
other macros exist is that all the other UNIX operating systems before were
using something like it also. But in Linux it has two disadvantages -
it duplicates the functionality of a generic interface in arch code which
is making for example the live of kernel janitors who don't know about
MIPSisms harder. And it's not a terribly nice interface for dealing with
32-bit vs. 64-bit addresses.
Ralf
next prev parent reply other threads:[~2008-10-24 20:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 0:48 [PATCH] defined a macro for lemote 2e box IO base Zhang Le
2008-10-22 18:55 ` Thiemo Seufer
2008-10-22 20:28 ` Ralf Baechle
2008-10-24 7:27 ` Zhang Le
2008-10-24 20:24 ` Maciej W. Rozycki
2008-10-24 20:34 ` Ralf Baechle [this message]
2008-10-25 7:31 ` Zhang Le
2008-10-23 0:48 ` [PATCH] added io_map_base to pci_controller on Lemote 2e box Zhang Le
2008-10-22 17:17 ` Zhang Le
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=20081024203442.GI25297@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=macro@linux-mips.org \
--cc=r0bertz@gentoo.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.