changeset 10782:76adfaa6f5fb

6884095 FRU does not report chassis-id, part-number and serial in some cases (DRAM errors)
author Trang Do <Trang.Do@Sun.COM>
date Tue, 13 Oct 2009 09:10:54 -0700
parents 0fe763e73205
children ef89ff673874
files usr/src/lib/fm/topo/modules/sun4v/dimm/dimm_sun4v.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/sun4v/dimm/dimm_sun4v.c	Tue Oct 13 11:40:35 2009 +0530
+++ b/usr/src/lib/fm/topo/modules/sun4v/dimm/dimm_sun4v.c	Tue Oct 13 09:10:54 2009 -0700
@@ -199,6 +199,7 @@
 	tnode_t *cnode;
 	nvlist_t *rsrc, *fru;
 	int nerr = 0, err;
+	nvlist_t *auth = NULL;
 
 	/*
 	 * Because mem_tnode_create will fill in a "FRU" value by default,
@@ -208,9 +209,11 @@
 	 * created.
 	 */
 
+	auth = topo_mod_auth(mod, pnode);
 	if ((fru = topo_mod_hcfmri(mod, pnode, FM_HC_SCHEME_VERSION, "dimm",
-	    inst, NULL, NULL, dp->dm_part, NULL, dp->dm_serid)) == NULL)
+	    inst, NULL, auth, dp->dm_part, NULL, dp->dm_serid)) == NULL)
 		nerr++;
+	nvlist_free(auth);
 
 	cnode = mem_tnode_create(mod, pnode, "dimm", inst,
 	    dp->dm_serid, fru, dp->dm_label, NULL);