All of lore.kernel.org
 help / color / mirror / Atom feed
From: julien.grall@linaro.org (Julien Grall)
To: linux-arm-kernel@lists.infradead.org
Subject: [Xen-devel] Physical memory start contraints in the Linux kernel (Was: Re:	Xen osstest on Calxeda midway progress (Was: Re: [xen-unstable test] 21486: tolerable FAIL - PUSHED))
Date: Tue, 12 Nov 2013 15:24:07 +0000	[thread overview]
Message-ID: <52824817.7010404@linaro.org> (raw)
In-Reply-To: <1384268259.10204.29.camel@kazak.uk.xensource.com>



On 11/12/2013 02:57 PM, Ian Campbell wrote:
> On Tue, 2013-11-12 at 14:52 +0000, Julien Grall wrote:
>>
>> On 11/12/2013 02:41 PM, Russell King - ARM Linux wrote:
>>> On Tue, Nov 12, 2013 at 02:35:10PM +0000, Julien Grall wrote:
>>>> During some debugging on the Arndale and Midway, I found another
>>>> constraint with CONFIG_ARM_PATCH_PHYS_VIRT.
>>>> I have noticed that all the kernel physical addresses must be lower than
>>>> the corresponding virtual addresses. So the delta offset compute in
>>>> __fixup_pv_table (arch/arm/kernel/head.S) must always be negative.
>>>> If this assertion is not validated, when the kernel will browse the
>>>> memory bank (sanity_check_info in arch/arm/mm/mmu.c), __phys(...) will
>>>> compute a wrong address and will result to consider all memory bank as
>>>> highmem.
>>>>
>>>> After digging in the code, it seems it's due to some optimization during
>>>> opcode fixup in __fixup_a_pvtable. Is it a wanted constraint?
>>>
>>> Are you talking about the code in v3.12 or the code in -next ?
>>
>> I was talking about 3.12. I have just checked -next and my issue seems
>> to be fixed by the commit f52bb722547f43caeaecbcc62db9f3c3b80ead9b.
>> I should have checked earlier, thanks.
>
> Should we revert your Xen side fix^Wworkaround then:

For now it's only in -next. I would wait until this commit is at least 
in Linux master, otherwise we will likely break vanilla/distro kernel 
for Xen 4.4.

-- 
Julien Grall

WARNING: multiple messages have this Message-ID (diff)
From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: Andre Przywara <andre.przywara@calxeda.com>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Arnd Bergmann <arnd@arndb.de>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	"xen.org" <ian.jackson@eu.citrix.com>,
	xen-devel@lists.xensource.com,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	Olof Johansson <olof@lixom.net>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [Xen-devel] Physical memory start contraints in the Linux kernel (Was: Re:	Xen osstest on Calxeda midway progress (Was: Re: [xen-unstable test] 21486: tolerable FAIL - PUSHED))
Date: Tue, 12 Nov 2013 15:24:07 +0000	[thread overview]
Message-ID: <52824817.7010404@linaro.org> (raw)
In-Reply-To: <1384268259.10204.29.camel@kazak.uk.xensource.com>



On 11/12/2013 02:57 PM, Ian Campbell wrote:
> On Tue, 2013-11-12 at 14:52 +0000, Julien Grall wrote:
>>
>> On 11/12/2013 02:41 PM, Russell King - ARM Linux wrote:
>>> On Tue, Nov 12, 2013 at 02:35:10PM +0000, Julien Grall wrote:
>>>> During some debugging on the Arndale and Midway, I found another
>>>> constraint with CONFIG_ARM_PATCH_PHYS_VIRT.
>>>> I have noticed that all the kernel physical addresses must be lower than
>>>> the corresponding virtual addresses. So the delta offset compute in
>>>> __fixup_pv_table (arch/arm/kernel/head.S) must always be negative.
>>>> If this assertion is not validated, when the kernel will browse the
>>>> memory bank (sanity_check_info in arch/arm/mm/mmu.c), __phys(...) will
>>>> compute a wrong address and will result to consider all memory bank as
>>>> highmem.
>>>>
>>>> After digging in the code, it seems it's due to some optimization during
>>>> opcode fixup in __fixup_a_pvtable. Is it a wanted constraint?
>>>
>>> Are you talking about the code in v3.12 or the code in -next ?
>>
>> I was talking about 3.12. I have just checked -next and my issue seems
>> to be fixed by the commit f52bb722547f43caeaecbcc62db9f3c3b80ead9b.
>> I should have checked earlier, thanks.
>
> Should we revert your Xen side fix^Wworkaround then:

For now it's only in -next. I would wait until this commit is at least 
in Linux master, otherwise we will likely break vanilla/distro kernel 
for Xen 4.4.

-- 
Julien Grall

  reply	other threads:[~2013-11-12 15:24 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06  6:52 [xen-unstable test] 21486: tolerable FAIL - PUSHED xen.org
2013-11-06  9:52 ` Xen osstest on Calxeda midway progress (Was: Re: [xen-unstable test] 21486: tolerable FAIL - PUSHED) Ian Campbell
2013-11-06 11:14   ` Stefano Stabellini
2013-11-06 11:19     ` Ian Campbell
2013-11-06 19:40       ` Stefano Stabellini
2013-11-06 19:57         ` Andre Przywara
2013-11-07 11:14         ` Ian Campbell
2013-11-11 18:42           ` Stefano Stabellini
2013-11-12  9:53             ` Ian Campbell
2013-11-12 12:25               ` Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: Re: [Xen-devel] [xen-unstable test] 21486: tolerable FAIL - PUSHED)) Stefano Stabellini
2013-11-12 12:25                 ` Stefano Stabellini
2013-11-12 13:20                 ` Russell King - ARM Linux
2013-11-12 13:20                   ` Russell King - ARM Linux
2013-11-12 14:38                   ` Ian Campbell
2013-11-12 14:38                     ` Ian Campbell
2013-11-12 14:44                     ` Russell King - ARM Linux
2013-11-12 14:44                       ` Russell King - ARM Linux
2013-11-12 14:52                       ` Ian Campbell
2013-11-12 14:52                         ` Ian Campbell
2013-11-12 15:24                   ` Michal Simek
2013-11-12 15:24                     ` Michal Simek
2013-11-12 15:39                     ` Russell King - ARM Linux
2013-11-12 15:39                       ` Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: " Russell King - ARM Linux
2013-11-12 15:40                       ` Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: Re: [Xen-devel] " Michal Simek
2013-11-12 15:40                         ` Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: " Michal Simek
2013-11-12 13:37                 ` Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: Re: [Xen-devel] " Arnd Bergmann
2013-11-12 13:37                   ` Arnd Bergmann
2013-11-12 14:35                   ` Julien Grall
2013-11-12 14:35                     ` Julien Grall
2013-11-12 14:40                     ` Ian Campbell
2013-11-12 14:40                       ` Ian Campbell
2013-11-12 18:39                       ` Arnd Bergmann
2013-11-12 18:39                         ` Arnd Bergmann
2013-11-12 18:47                         ` Stefano Stabellini
2013-11-12 18:47                           ` Stefano Stabellini
2013-11-12 20:08                           ` Arnd Bergmann
2013-11-12 20:08                             ` Arnd Bergmann
2013-11-13 10:50                             ` Ian Campbell
2013-11-13 10:50                               ` Ian Campbell
2013-11-13 17:33                               ` Stefano Stabellini
2013-11-13 17:33                                 ` Stefano Stabellini
2013-11-13 19:42                                 ` Arnd Bergmann
2013-11-13 19:42                                   ` Arnd Bergmann
2013-11-14 15:24                                   ` Stefano Stabellini
2013-11-14 15:24                                     ` Stefano Stabellini
2013-11-12 14:41                     ` Russell King - ARM Linux
2013-11-12 14:41                       ` Russell King - ARM Linux
2013-11-12 14:52                       ` [Xen-devel] Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: " Julien Grall
2013-11-12 14:52                         ` Julien Grall
2013-11-12 14:57                         ` Ian Campbell
2013-11-12 14:57                           ` Ian Campbell
2013-11-12 15:24                           ` Julien Grall [this message]
2013-11-12 15:24                             ` Julien Grall
2013-11-12 15:32                             ` Ian Campbell
2013-11-12 15:32                               ` Ian Campbell
2013-11-13 12:57                               ` Julien Grall
2013-11-13 12:57                                 ` Julien Grall
2013-11-12 15:00                   ` Physical memory start contraints in the Linux kernel (Was: Re: Xen osstest on Calxeda midway progress (Was: Re: [Xen-devel] " Stefano Stabellini
2013-11-12 15:00                     ` Stefano Stabellini
2013-11-12 15:16                     ` Russell King - ARM Linux
2013-11-12 15:16                       ` Russell King - ARM Linux
2013-11-12 13:58   ` Xen osstest on Calxeda midway progress (Was: Re: [xen-unstable test] 21486: tolerable FAIL - PUSHED) Julien Grall

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=52824817.7010404@linaro.org \
    --to=julien.grall@linaro.org \
    --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.