public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Rob Herring <robherring2@gmail•com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix•de>
Cc: linux-mips@linux-mips•org, a-jacquiot@ti•com,
	mahesh@linux•vnet.ibm.com, linux@openrisc•net,
	paul.gortmaker@windriver•com, paulus@samba•org, hpa@zytor•com,
	m.szyprowski@samsung•com, jonas@southpole•se,
	linux@arm•linux.org.uk, linux-c6x-dev@linux-c6x•org,
	nico@linaro•org, x86@kernel•org, mingo@redhat•com,
	suzuki@in•ibm.com, Cyril Chemparathy <cyril@ti•com>,
	Geert Uytterhoeven <geert@linux-m68k•org>,
	linus.walleij@linaro•org, arnd@arndb•de,
	microblaze-uclinux@itee•uq.edu.au,
	devicetree-discuss@lists•ozlabs.org, msalter@redhat•com,
	rob.herring@calxeda•com, tglx@linutronix•de,
	linux-arm-kernel@lists•infradead.org, blogic@openwrt•org,
	dhowells@redhat•com, monstr@monstr•eu, david.daney@cavium•com,
	linux-kernel@vger•kernel.org, ralf@linux-mips•org, tj@kernel•org,
	linuxppc-dev@lists•ozlabs.org
Subject: Re: [PATCH] of: specify initrd location using 64-bit
Date: Wed, 12 Sep 2012 17:08:31 -0500	[thread overview]
Message-ID: <505107DF.5020105@gmail.com> (raw)
In-Reply-To: <5050E965.5080405@linutronix.de>

On 09/12/2012 02:58 PM, Sebastian Andrzej Siewior wrote:
> On 09/12/2012 08:02 PM, Cyril Chemparathy wrote:
>>>> -void __init early_init_dt_setup_initrd_arch(unsigned long start,
>>>> unsigned long end)
>>>> +void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
>>>
>>> Why not phys_addr_t?
>>>
>>
>> The rest of the memory specific bits of the device-tree code use u64 for
>> addresses, and I kept it the same for consistency.
> 
> Geert is right here. If it is a physical address, it should be
> phys_addr_t.

While generally true, for the DT specific code I think it should be a
fixed u64. The size of the address is defined by the FDT, not the
kernel. It is very likely we could have a FDT that specifies addresses
in 64-bit values, but then we boot a kernel is compiled for !LPAE.
phys_addr_t is currently sized based on LPAE setting.

Also, this is how the memory and reserved nodes are handled currently,
so we should be consistent.

Rob

  reply	other threads:[~2012-09-12 22:08 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 16:05 [PATCH] of: specify initrd location using 64-bit Cyril Chemparathy
2012-09-12 16:16 ` Geert Uytterhoeven
2012-09-12 18:02   ` Cyril Chemparathy
2012-09-12 19:58     ` Sebastian Andrzej Siewior
2012-09-12 22:08       ` Rob Herring [this message]
2012-09-13  6:47         ` Sebastian Andrzej Siewior
2012-09-13 21:02           ` Rob Herring
2012-09-12 20:23 ` Rob Herring
2012-09-12 20:31   ` Nicolas Pitre
2012-09-12 20:56     ` Rob Herring
2012-09-12 23:45   ` Cyril Chemparathy
  -- strict thread matches above, loose matches on Subject: below --
2013-06-21  0:52 [PATCH] of: Specify " Santosh Shilimkar
2013-06-21  4:39 ` Vineet Gupta
2013-06-21  8:23   ` James Hogan
2013-06-21 17:12     ` Santosh Shilimkar
2013-06-21  9:04 ` Sebastian Andrzej Siewior
2013-06-21 17:20   ` Santosh Shilimkar
2013-06-27 20:54     ` Rob Herring
2013-06-28  7:54       ` Sebastian Andrzej Siewior
2013-06-28  9:59       ` Grant Likely
2013-06-28 13:49         ` Jean-Christophe PLAGNIOL-VILLARD
2013-06-28 23:43           ` Santosh Shilimkar
2013-06-29  8:34             ` Geert Uytterhoeven
2013-07-01  7:48             ` Sebastian Andrzej Siewior
2013-07-01  7:59               ` Geert Uytterhoeven
2013-07-01  8:09                 ` Sebastian Andrzej Siewior
2013-07-01 13:58                 ` Santosh Shilimkar

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=505107DF.5020105@gmail.com \
    --to=robherring2@gmail$(echo .)com \
    --cc=a-jacquiot@ti$(echo .)com \
    --cc=arnd@arndb$(echo .)de \
    --cc=bigeasy@linutronix$(echo .)de \
    --cc=blogic@openwrt$(echo .)org \
    --cc=cyril@ti$(echo .)com \
    --cc=david.daney@cavium$(echo .)com \
    --cc=devicetree-discuss@lists$(echo .)ozlabs.org \
    --cc=dhowells@redhat$(echo .)com \
    --cc=geert@linux-m68k$(echo .)org \
    --cc=hpa@zytor$(echo .)com \
    --cc=jonas@southpole$(echo .)se \
    --cc=linus.walleij@linaro$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-c6x-dev@linux-c6x$(echo .)org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-mips@linux-mips$(echo .)org \
    --cc=linux@arm$(echo .)linux.org.uk \
    --cc=linux@openrisc$(echo .)net \
    --cc=linuxppc-dev@lists$(echo .)ozlabs.org \
    --cc=m.szyprowski@samsung$(echo .)com \
    --cc=mahesh@linux$(echo .)vnet.ibm.com \
    --cc=microblaze-uclinux@itee$(echo .)uq.edu.au \
    --cc=mingo@redhat$(echo .)com \
    --cc=monstr@monstr$(echo .)eu \
    --cc=msalter@redhat$(echo .)com \
    --cc=nico@linaro$(echo .)org \
    --cc=paul.gortmaker@windriver$(echo .)com \
    --cc=paulus@samba$(echo .)org \
    --cc=ralf@linux-mips$(echo .)org \
    --cc=rob.herring@calxeda$(echo .)com \
    --cc=suzuki@in$(echo .)ibm.com \
    --cc=tglx@linutronix$(echo .)de \
    --cc=tj@kernel$(echo .)org \
    --cc=x86@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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