Re: [U-Boot] [PATCH 01/10] thunderx: Calculate TCR dynamically

2016-02-25 Thread Mark Rutland
On Wed, Feb 24, 2016 at 06:39:22PM +0100, Alexander Graf wrote: > On 02/24/2016 02:37 PM, Mark Rutland wrote: > >On Wed, Feb 24, 2016 at 01:11:35PM +0100, Alexander Graf wrote: > >>+ /* Calculate the maximum physical (and thus virtual) address */ > >>+ if (max_addr > (1ULL << 44)) { > >>+

Re: [U-Boot] [PATCH 01/10] thunderx: Calculate TCR dynamically

2016-02-24 Thread Alexander Graf
On 02/24/2016 02:37 PM, Mark Rutland wrote: On Wed, Feb 24, 2016 at 01:11:35PM +0100, Alexander Graf wrote: Based on the memory map we can determine a lot of hard coded fields of TCR, like the maximum VA and max PA we want to support. Calculate those dynamically to reduce the chance for pit fall

Re: [U-Boot] [PATCH 01/10] thunderx: Calculate TCR dynamically

2016-02-24 Thread Mark Rutland
On Wed, Feb 24, 2016 at 01:11:35PM +0100, Alexander Graf wrote: > Based on the memory map we can determine a lot of hard coded fields of > TCR, like the maximum VA and max PA we want to support. Calculate those > dynamically to reduce the chance for pit falls. > > Signed-off-by: Alexander Graf >

[U-Boot] [PATCH 01/10] thunderx: Calculate TCR dynamically

2016-02-24 Thread Alexander Graf
Based on the memory map we can determine a lot of hard coded fields of TCR, like the maximum VA and max PA we want to support. Calculate those dynamically to reduce the chance for pit falls. Signed-off-by: Alexander Graf --- arch/arm/cpu/armv8/cache_v8.c| 59 +