Patchwork [3.8.y.z,extended,stable] Patch "sparc64 address-congruence property" has been added to staging queue

mail settings
Submitter Kamal Mostafa
Date July 26, 2013, 12:24 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/261990/
State Not Applicable
Delegated to: David Miller
Headers show


Kamal Mostafa - July 26, 2013, 12:24 a.m.
This is a note to let you know that I have just added a patch titled

    sparc64 address-congruence property

to the linux-3.8.y-queue branch of the 3.8.y.z extended stable tree 
which can be found at:;a=shortlog;h=refs/heads/linux-3.8.y-queue

This patch is scheduled to be released in version

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.8.y.z tree, see



From cd8a18a166e3d18012160c924db6ab055c96f545 Mon Sep 17 00:00:00 2001
From: bob picco <>
Date: Tue, 11 Jun 2013 14:54:51 -0400
Subject: sparc64 address-congruence property

commit 771a37ff4d80b80db3b0df3e7696f14b298c67b7 upstream.

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 <>
Signed-off-by: David S. Miller <>
Signed-off-by: Kamal Mostafa <>
 arch/sparc/mm/init_64.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)


To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to
More majordomo info at


diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index 82bbf04..c57da7f 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -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);