linux-mips
[Top] [All Lists]

Re: [PATCH 2/5] MIPS: Allow platforms to specify the decompressor load a

To: Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH 2/5] MIPS: Allow platforms to specify the decompressor load address
From: Andrew Bresticker <abrestic@chromium.org>
Date: Tue, 24 Feb 2015 13:39:03 -0800
Cc: Ralf Baechle <ralf@linux-mips.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Linux-MIPS <linux-mips@linux-mips.org>, Ezequiel Garcia <ezequiel.garcia@imgtec.com>, James Hartley <james.hartley@imgtec.com>, James Hogan <james.hogan@imgtec.com>, Lars-Peter Clausen <lars@metafoo.de>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=7DLe7kw5NYg1iFXEfXTw/weXlusoLnWgAIT0DbeIB5s=; b=mD9xlGdy5aJLiE62x5/oU3foKcPS//DsFncHKxFkotmnGH/wMulY4EXR4NpyrX9+pK MQUcQ1XireThMsJHqB9iVPt2Oz4FekfA0NzS5ey+a6AGwlT5/1pU+pYiMrLRL4zzidmQ 6Wgt5P4tix89EkilGOltYkvqAqDy2iVEqpGgXhNRlHjh105Iu7kAI0wyuC2tdkzQBsz2 dXneNhhd/53zuANPFdbzsxlirx74f9DEoHUcPXLusftkcxTIzpWOdUviy+0jrFqVuaT2 0jcPnlOA7dYSSV2kF1f8PGKj4dSXBzPUf/cp8o/ly/CTc6uN6RQj5PXKP+8jeMeqVerM 9KAw==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=7DLe7kw5NYg1iFXEfXTw/weXlusoLnWgAIT0DbeIB5s=; b=QH9Arw2YPecjEROBewPeukuH83bt56Pwh3wWHhhxwYa55O9Ufokj7VtLnGTS6BJ0Q6 vFf7mUiupbdjz+pR8m8h0r5NdHWlGE9HzTI8gLjjM2ZEaVPbt9dTAKWNbcIysjpZ1lAF BcB+OYq5e7FmrHo8VVAyGIc1RpxJd4YYzaBqA=
In-reply-to: <7814815.Q6KYv1fjo1@wuerfel>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1424741507-8882-1-git-send-email-abrestic@chromium.org> <1424741507-8882-3-git-send-email-abrestic@chromium.org> <7814815.Q6KYv1fjo1@wuerfel>
Sender: linux-mips-bounce@linux-mips.org
On Tue, Feb 24, 2015 at 12:15 AM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Monday 23 February 2015 17:31:44 Andrew Bresticker wrote:
>> Platforms which use raw zboot images may need to link the image at
>> a fixed address if there is no other way to communicate the load
>> address to the bootloader.  Allow the per-platform Kbuild files
>> to specify an optional zboot image load address (zload-y) and fall
>> back to calc_vmlinuz_load_addr if unset.
>>
>> Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
>> Cc: Lars-Peter Clausen <lars@metafoo.de>
>
> No objections to the patch, but have you considered doing the
> same thing as ARM's AUTO_ZRELADDR, where we calculate the
> address at runtime from the entry point?
>
> I assume this is the same kind of address you are talking
> about here; if not, nevermind.

It is the same sort of issue, though I think the only way to solve it
on MIPS would be to copy the image to the address it was linked at,
which could be problematic if there's overlap.  There's also the cache
maintenance we'd have to do, which varies from CPU to CPU (and more so
the ARM I believe).

<Prev in Thread] Current Thread [Next in Thread>