All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	ehabkost@redhat.com, x86@kernel.org,
	linux-kernel@vger.kernel.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 1/2] add phys_addr_t for holding physical addresses
Date: Tue, 12 Aug 2008 08:32:05 +1000	[thread overview]
Message-ID: <1218493925.8041.21.camel@pasglop> (raw)
In-Reply-To: <48A0B9EB.9020709@goop.org>

On Mon, 2008-08-11 at 15:15 -0700, Jeremy Fitzhardinge wrote:
> Benjamin Herrenschmidt wrote:
> > On Mon, 2008-08-11 at 12:38 -0700, Jeremy Fitzhardinge wrote:
> >   
> >> Add a kernel-wide "phys_addr_t" which is guaranteed to be able to hold
> >> any physical address.  By default it equals the word size of the
> >> architecture, but a 32-bit architecture can set ARCH_PHYS_ADDR_T_64BIT
> >> if it needs a 64-bit phys_addr_t.
> >>     
> >
> > I've been wondering for some time why can't we make phys_addr_t and
> > resource_size_t the same thing... I don't like having two ARCH_* thing
> > especially since I believe the one for resources is already what we
> > want.
> >   
> 
> I made the same argument, but Andrew thinks they're conceptually 
> distinct.  It is theoretically possible you might have a system with >4G 
> memory, but all io resources < 4G, so you'd have resource_size_t 
> 32-bits, while having 64-bit physical addresses.  You can configure such 
> a thing, but I don't know if it's 1) useful or 2) used.

Are we sure resource_size_t is -never- used to represent memory ? I
though it was on some platforms....

Ben.



  reply	other threads:[~2008-08-11 22:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <489B6B40.5050705@goop.org>
     [not found] ` <20080807145648.ab3dfa90.akpm@linux-foundation.org>
2008-08-07 22:10   ` [PATCH] Make PFN_PHYS return a properly-formed physical address Jeremy Fitzhardinge
2008-08-07 23:27     ` Andrew Morton
2008-08-07 23:45       ` Jeremy Fitzhardinge
2008-08-08  0:06         ` Andrew Morton
2008-08-08  0:16           ` Jeremy Fitzhardinge
2008-08-11 19:38           ` [PATCH 1/2] add phys_addr_t for holding physical addresses Jeremy Fitzhardinge
2008-08-11 21:58             ` Benjamin Herrenschmidt
2008-08-11 22:15               ` Jeremy Fitzhardinge
2008-08-11 22:32                 ` Benjamin Herrenschmidt [this message]
2008-08-11 22:50                   ` Jeremy Fitzhardinge
2008-08-11 22:53                     ` Benjamin Herrenschmidt
2008-08-11 23:02                       ` Jeremy Fitzhardinge
2008-08-11 23:17                         ` Benjamin Herrenschmidt
2008-08-11 19:38           ` [PATCH 2/2] make PFN_PHYS explicitly return phys_addr_t Jeremy Fitzhardinge

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=1218493925.8041.21.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=akpm@linux-foundation.org \
    --cc=ehabkost@redhat.com \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    --cc=x86@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 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.