[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keystone Issue


  • To: CodeWiz2280 <codewiz2280@xxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Thu, 4 Jun 2020 08:02:33 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=moBe8p8eAcPFKrm34g8hl0lNqeABwxW8qltbFSjliJM=; b=X9n7ASBHtdnraXOabO7KlWw5Hb08YWsLN0adf/bDKiLX5IEu4FtBac5DFF1uSoXOwHE7tveuGy5qZLEd/rFHIV/mI9cjyuUqCGFGMWV6P05YhBgxqRr0MG7fvSKiQQEXAzWkR4bf6KxNjSot8/79ah/d3KOSubnhS4N2DqNCU0ZWNHvbf29Jjzm3lzpr6LrJ58YLYLkLWS0ULUzzBIXsbkp1PBkL0Yprz275qTHz+S3Y8/WUwesAqQPQmCYUvajTzjkmIKvaqqNF/iLRfS61P3Q1CxBbvw6beoeDtNLQVvmOQVzLLO/MYIZRQIw/PLgWpJiOfLjYdqAQvXeDXg9NfA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fu95l64+BGAY4SbzCIfNuHNH55B0v0bUQjYib06pvL8yhFMnhOUUafeSab5rt+UR9NUaJ52WLySV1lV8Y1ugvGDvSBm2YJUm0WcgsBphNKqEHVCz0wegbEJaPoOirXl1nV+905+TDYtahtx82kzr3jzqoENn+Jm1fF1sxFZqRnv0/eXKqtFd505pCzv+950CmXYc87aC757Nb4KcEOF1j2Dbu0TFUdZYIHAwopWwonCFWw+SvUUS+rsGu7mrL5pUM3uKUNhwlO8ZRuMXtIQF1l7zlS01PMHd5I2U+4dOVKuy93ZwG6q1zQjNqJTCOcFAjx29wsXMyUonIjp+00MLZQ==
  • Authentication-results-original: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, nd <nd@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>
  • Delivery-date: Thu, 04 Jun 2020 08:02:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWOBaIAfEL/lLkK0WiNSn4kZcZc6jDwRQAgAAfVYCAACZwgIACvmKAgABfPYCAAA+JgIAA6NEA
  • Thread-topic: Keystone Issue

Hi,

> On 3 Jun 2020, at 19:09, Julien Grall <julien@xxxxxxx> wrote:
> 
> 
> 
> On 03/06/2020 18:13, CodeWiz2280 wrote:
>> Hi Julien,
> 
> Hello,
> 
> In general, we avoid top post on xen-devel, instead we reply inline. I 
> believe gmail should allow you to do it :).
> 
>> The offset is already applied to the memory nodes in the device tree, 
>> meaning a direct Linux boot from uboot would have only the 36-bit addresses 
>> in the device tree (0x8_0000_0000 and 0x8_8000_0000).  Linux would start 
>> executing from a 32-bit address space however and then switch over to the 
>> aliased 36-bit addresses in the device tree as discussed below by 
>> early_paging_init().
>> I had to add the 32-bit memory node 0x8000_0000 in uboot in place of the 
>> 0x8_0000_0000 node otherwise Xen would detect the 32-bit processor and panic 
>> on "Unable to detect the first memory bank" in domain_build.c. 
> 
> So for 32-bit Xen requires to have the first bank below 4GB. This is because 
> you can't boot from a physical address above 32-bit.
> 
> Obviously, this check wouldn't work on your platform because all your memory 
> will be above 4GB.

I think that the Keystone board has low memory accessible at 2 different 
address (one low and one high).

I would here suggest to have a dtb with 2 regions (one under 4GB and one over) 
and remove from the region over 4G the area already addressed by the region 
under 4GB.

Does that make sense ?

Cheers
Bertrand

> 
>> If I leave only the 36-bit addresses in the device tree and skip past the 
>> panic check in domain_build.c, then I could not get the dom0 kernel to boot 
>> at all.  I believe I would only see "Serial input to DOM0" and nothing else 
>> at that point.
> 
> Which would make sense per above.
> 
>> Yes, leaving LPAE support on for the kernel is preferred.
> 
> Ok, so the solution I suggested below should work. Unfortunately, I don't 
> have time to work on it. Although, I would be more than happy to answers 
> questions and reviewing the patches.
> 
> Would you be willing to have a try to implement it?
> 
> Cheers,
> 
> -- 
> Julien Grall




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.