From: Paul Walmsley <pwalmsley@nvidia.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: "ARM: multi_v7_defconfig: Enable shmobile platforms" breaks Tegra20 multi_v7_defconfig boot
Date: Wed, 01 Apr 2015 17:48:42 +0000 [thread overview]
Message-ID: <551C2F7A.7040107@nvidia.com> (raw)
In-Reply-To: <551C2768.6060209@wwwdotorg.org>
On 04/01/2015 11:14 AM, Stephen Warren wrote:
> On 03/26/2015 12:57 PM, Stephen Warren wrote:
>> On 03/26/2015 12:35 PM, Paul Walmsley wrote:
>>> On Wed, 25 Mar 2015, Stephen Warren wrote:
>>>
>>>> On 03/25/2015 04:00 PM, Paul Walmsley wrote:
>>>>> On Wed, 25 Mar 2015, Tyler Baker wrote:
>>>>>> On 25 March 2015 at 11:03, Paul Walmsley <paul@pwsan.com> wrote:
>>>>>>> Looks like commit 4a3a6f86693922b29cf829c63f652b057f14619e ("ARM:
>>>>>>> multi_v7_defconfig: Enable shmobile platforms") breaks Tegra20
>>>>>>> multi_v7_defconfig boot.
> ...
>>>>>> Can you try to shift your kernel load address around a bit? From
>>>>>> experience with the boards from kernelci.org we find that as the
>>>>>> multi
>>>>>> v7 kernel size increases they can clobber memory when they get
>>>>>> decompressed.
>>>>>
>>>>> Thanks, that was it:
>>>>>
>>>>> http://nvt.pwsan.com/pub/pwalmsley-tester/testlogs/test_20150325144058_6af714b069dc278d5d8e1b7afc13568f71d9aba8/20150325144058/boot/tegra20-trimslice/tegra20-trimslice/multi_v7_defconfig_log.txt
>>>>>
> ...
>>>> Interesting. Do the values in U-Boot's default environment work
>>>> correctly
>>>
>>> No idea, I haven't tried. (The load addresses I used are observable in
>>> the boot logs above.)
>>
>> Sure. I was hoping you'd try it out since you already had the setup to
>> repro the issue.
>>
>> It'd be good if your test-bed used the built-in U-Boot variables too, so
>> we're testing them.
>
> I've reproduced the original problem, and then validated that using
> the addresses from U-Boot's default environment (at least with a ToT
> U-Boot that I just built) does indeed solve it.
>
> I'd like to re-iterate that the test bed should be using the values
> from U-Boot's environment rather than making up its own. That way:
>
> * The value the test bed uses for the kernel load address likely
> overlaps where the kernel decompressor writes to for even slightly
> large kernels. This means the decompressor must move itself before
> decompressing. IIUC, there's zero guarantee that moving the
> decompressor won't overwrite the DTB, since IIUC the decompressor uses
> zero knowledge of the DTB location. In other words, if the compressed
> kernel is loaded somewhere that's likely to require it to move itself,
> there's a real risk of the exact same problem cropping up again in the
> future if the kernel happens to overwrite the DTB during relocation.
>
> * The values are part of every Tegra U-Boot port (and hopefully for
> other SoCs too given any distro using boot.scr with
> config_distro_bootcmd.h will expect the variables to exist), so for
> future (Tegra) chips you won't have to adjust the test bed if RAM
> layout changes.
>
> * Those values get testing, so we'll find out if the ever don't work.
> We get more test coverage.
Sounds reasonable, I'll try to get to this at some point soon.
BTW, it might be worth changing U-boot CONFIG_LOADADDR to point to the
value you define for kernel_addr_r. That would reinforce to folks who
aren't using the U-boot scripts that they should use that address for
loading their kernel.
- Paul
- Paul
WARNING: multiple messages have this Message-ID (diff)
From: Paul Walmsley <pwalmsley@nvidia.com>
To: Stephen Warren <swarren@wwwdotorg.org>, Paul Walmsley <paul@pwsan.com>
Cc: Tyler Baker <tyler.baker@linaro.org>,
geert+renesas@glider.be, Arnd Bergmann <arnd@arndb.de>,
linux-sh@vger.kernel.org, thierry.reding@gmail.com,
linux-tegra@vger.kernel.org, horms+renesas@verge.net.au,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>
Subject: Re: "ARM: multi_v7_defconfig: Enable shmobile platforms" breaks Tegra20 multi_v7_defconfig boot
Date: Wed, 1 Apr 2015 11:48:42 -0600 [thread overview]
Message-ID: <551C2F7A.7040107@nvidia.com> (raw)
In-Reply-To: <551C2768.6060209@wwwdotorg.org>
On 04/01/2015 11:14 AM, Stephen Warren wrote:
> On 03/26/2015 12:57 PM, Stephen Warren wrote:
>> On 03/26/2015 12:35 PM, Paul Walmsley wrote:
>>> On Wed, 25 Mar 2015, Stephen Warren wrote:
>>>
>>>> On 03/25/2015 04:00 PM, Paul Walmsley wrote:
>>>>> On Wed, 25 Mar 2015, Tyler Baker wrote:
>>>>>> On 25 March 2015 at 11:03, Paul Walmsley <paul@pwsan.com> wrote:
>>>>>>> Looks like commit 4a3a6f86693922b29cf829c63f652b057f14619e ("ARM:
>>>>>>> multi_v7_defconfig: Enable shmobile platforms") breaks Tegra20
>>>>>>> multi_v7_defconfig boot.
> ...
>>>>>> Can you try to shift your kernel load address around a bit? From
>>>>>> experience with the boards from kernelci.org we find that as the
>>>>>> multi
>>>>>> v7 kernel size increases they can clobber memory when they get
>>>>>> decompressed.
>>>>>
>>>>> Thanks, that was it:
>>>>>
>>>>> http://nvt.pwsan.com/pub/pwalmsley-tester/testlogs/test_20150325144058_6af714b069dc278d5d8e1b7afc13568f71d9aba8/20150325144058/boot/tegra20-trimslice/tegra20-trimslice/multi_v7_defconfig_log.txt
>>>>>
> ...
>>>> Interesting. Do the values in U-Boot's default environment work
>>>> correctly
>>>
>>> No idea, I haven't tried. (The load addresses I used are observable in
>>> the boot logs above.)
>>
>> Sure. I was hoping you'd try it out since you already had the setup to
>> repro the issue.
>>
>> It'd be good if your test-bed used the built-in U-Boot variables too, so
>> we're testing them.
>
> I've reproduced the original problem, and then validated that using
> the addresses from U-Boot's default environment (at least with a ToT
> U-Boot that I just built) does indeed solve it.
>
> I'd like to re-iterate that the test bed should be using the values
> from U-Boot's environment rather than making up its own. That way:
>
> * The value the test bed uses for the kernel load address likely
> overlaps where the kernel decompressor writes to for even slightly
> large kernels. This means the decompressor must move itself before
> decompressing. IIUC, there's zero guarantee that moving the
> decompressor won't overwrite the DTB, since IIUC the decompressor uses
> zero knowledge of the DTB location. In other words, if the compressed
> kernel is loaded somewhere that's likely to require it to move itself,
> there's a real risk of the exact same problem cropping up again in the
> future if the kernel happens to overwrite the DTB during relocation.
>
> * The values are part of every Tegra U-Boot port (and hopefully for
> other SoCs too given any distro using boot.scr with
> config_distro_bootcmd.h will expect the variables to exist), so for
> future (Tegra) chips you won't have to adjust the test bed if RAM
> layout changes.
>
> * Those values get testing, so we'll find out if the ever don't work.
> We get more test coverage.
Sounds reasonable, I'll try to get to this at some point soon.
BTW, it might be worth changing U-boot CONFIG_LOADADDR to point to the
value you define for kernel_addr_r. That would reinforce to folks who
aren't using the U-boot scripts that they should use that address for
loading their kernel.
- Paul
- Paul
WARNING: multiple messages have this Message-ID (diff)
From: pwalmsley@nvidia.com (Paul Walmsley)
To: linux-arm-kernel@lists.infradead.org
Subject: "ARM: multi_v7_defconfig: Enable shmobile platforms" breaks Tegra20 multi_v7_defconfig boot
Date: Wed, 1 Apr 2015 11:48:42 -0600 [thread overview]
Message-ID: <551C2F7A.7040107@nvidia.com> (raw)
In-Reply-To: <551C2768.6060209@wwwdotorg.org>
On 04/01/2015 11:14 AM, Stephen Warren wrote:
> On 03/26/2015 12:57 PM, Stephen Warren wrote:
>> On 03/26/2015 12:35 PM, Paul Walmsley wrote:
>>> On Wed, 25 Mar 2015, Stephen Warren wrote:
>>>
>>>> On 03/25/2015 04:00 PM, Paul Walmsley wrote:
>>>>> On Wed, 25 Mar 2015, Tyler Baker wrote:
>>>>>> On 25 March 2015 at 11:03, Paul Walmsley <paul@pwsan.com> wrote:
>>>>>>> Looks like commit 4a3a6f86693922b29cf829c63f652b057f14619e ("ARM:
>>>>>>> multi_v7_defconfig: Enable shmobile platforms") breaks Tegra20
>>>>>>> multi_v7_defconfig boot.
> ...
>>>>>> Can you try to shift your kernel load address around a bit? From
>>>>>> experience with the boards from kernelci.org we find that as the
>>>>>> multi
>>>>>> v7 kernel size increases they can clobber memory when they get
>>>>>> decompressed.
>>>>>
>>>>> Thanks, that was it:
>>>>>
>>>>> http://nvt.pwsan.com/pub/pwalmsley-tester/testlogs/test_20150325144058_6af714b069dc278d5d8e1b7afc13568f71d9aba8/20150325144058/boot/tegra20-trimslice/tegra20-trimslice/multi_v7_defconfig_log.txt
>>>>>
> ...
>>>> Interesting. Do the values in U-Boot's default environment work
>>>> correctly
>>>
>>> No idea, I haven't tried. (The load addresses I used are observable in
>>> the boot logs above.)
>>
>> Sure. I was hoping you'd try it out since you already had the setup to
>> repro the issue.
>>
>> It'd be good if your test-bed used the built-in U-Boot variables too, so
>> we're testing them.
>
> I've reproduced the original problem, and then validated that using
> the addresses from U-Boot's default environment (at least with a ToT
> U-Boot that I just built) does indeed solve it.
>
> I'd like to re-iterate that the test bed should be using the values
> from U-Boot's environment rather than making up its own. That way:
>
> * The value the test bed uses for the kernel load address likely
> overlaps where the kernel decompressor writes to for even slightly
> large kernels. This means the decompressor must move itself before
> decompressing. IIUC, there's zero guarantee that moving the
> decompressor won't overwrite the DTB, since IIUC the decompressor uses
> zero knowledge of the DTB location. In other words, if the compressed
> kernel is loaded somewhere that's likely to require it to move itself,
> there's a real risk of the exact same problem cropping up again in the
> future if the kernel happens to overwrite the DTB during relocation.
>
> * The values are part of every Tegra U-Boot port (and hopefully for
> other SoCs too given any distro using boot.scr with
> config_distro_bootcmd.h will expect the variables to exist), so for
> future (Tegra) chips you won't have to adjust the test bed if RAM
> layout changes.
>
> * Those values get testing, so we'll find out if the ever don't work.
> We get more test coverage.
Sounds reasonable, I'll try to get to this at some point soon.
BTW, it might be worth changing U-boot CONFIG_LOADADDR to point to the
value you define for kernel_addr_r. That would reinforce to folks who
aren't using the U-boot scripts that they should use that address for
loading their kernel.
- Paul
- Paul
next prev parent reply other threads:[~2015-04-01 17:48 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-25 18:03 "ARM: multi_v7_defconfig: Enable shmobile platforms" breaks Tegra20 multi_v7_defconfig boot Paul Walmsley
2015-03-25 18:03 ` Paul Walmsley
2015-03-25 18:03 ` Paul Walmsley
2015-03-25 18:28 ` Tyler Baker
2015-03-25 18:28 ` Tyler Baker
2015-03-25 18:28 ` Tyler Baker
2015-03-25 18:46 ` Geert Uytterhoeven
2015-03-25 18:46 ` Geert Uytterhoeven
2015-03-25 18:46 ` Geert Uytterhoeven
2015-03-25 22:00 ` Paul Walmsley
2015-03-25 22:00 ` Paul Walmsley
2015-03-25 22:00 ` Paul Walmsley
2015-03-26 2:36 ` Stephen Warren
2015-03-26 2:36 ` Stephen Warren
2015-03-26 2:36 ` Stephen Warren
2015-03-26 18:35 ` Paul Walmsley
2015-03-26 18:35 ` Paul Walmsley
2015-03-26 18:35 ` Paul Walmsley
2015-03-26 18:57 ` Stephen Warren
2015-03-26 18:57 ` Stephen Warren
2015-03-26 18:57 ` Stephen Warren
2015-04-01 17:14 ` Stephen Warren
2015-04-01 17:14 ` Stephen Warren
2015-04-01 17:14 ` Stephen Warren
2015-04-01 17:48 ` Paul Walmsley [this message]
2015-04-01 17:48 ` Paul Walmsley
2015-04-01 17:48 ` Paul Walmsley
[not found] ` <551C2F7A.7040107-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-04-01 18:55 ` Stephen Warren
2015-04-01 18:55 ` Stephen Warren
[not found] ` <551C3F25.40105-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2015-04-01 19:17 ` Paul Walmsley
2015-04-01 19:17 ` Paul Walmsley
[not found] ` <551C445C.7040107-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2015-04-01 21:21 ` Stephen Warren
2015-04-01 21:21 ` Stephen Warren
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=551C2F7A.7040107@nvidia.com \
--to=pwalmsley@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.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.