sparc64 address-congruence property
PATCH 1/1 sparc64 address-congruence property
From: bob picco <[email protected]>
The Machine Description (MD) property "address-congruence-offset" is optional. According to the MD specification the value is assumed 0UL when not present. This caused early boot failure on T5.
Signed-off-by Bob Picco <[email protected]>
--- arch/sparc/mm/init_64.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
arch/sparc/mm/init_64.c +8 -1
@@ -1099,7 +1099,14 @@ static int __init grab_mblocks(struct mdesc_handle *md) m->size = *val; val =mdesc_get_property (md, node,"address-congruence-offset" ,NULL ); - m->offset = *val; + +/* The address-congruence-offset property is optional. +* Explicity zero it be identifty this. +*/ +if (val) + m->offset = *val; +else + m->offset =0UL ;numadbg ("MBLOCK[%d]: base[%llx] size[%llx] offset[%llx]\n" , count -1 , m->base, m->size, m->offset);
Signature · 1 line
1.8.1.2
David Miller
maintainerFrom: Bob Picco <[email protected]>
Date: Tue, 11 Jun 2013 14:54:51 -0400
Quoted 7 lines
From: bob picco <[email protected]>
The Machine Description (MD) property "address-congruence-offset" is optional. According to the MD specification the value is assumed 0UL when not present. This caused early boot failure on T5.
Signed-off-by Bob Picco <[email protected]>
Applied and queued up for -stable, thanks.