7577807090
- ppc64le fix - removed snap, sosreport from sos should be used instead
48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
From c0855a165e7442be9079556ea5c1c4fec23447c1 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
|
|
Date: Tue, 2 Dec 2014 18:11:37 -0600
|
|
Subject: [PATCH] drmgr/lsslot: Fix broken memory support for little endian
|
|
|
|
Commit 493bfdda30b61be46d7d71e5e7bb05df9334ba81 should have removed
|
|
some endian conversions included in previous commit. Unfortunately,
|
|
they were not removed, causing problems when hotplugging memory.
|
|
This patch removes those endian conversions.
|
|
|
|
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
|
|
---
|
|
src/drmgr/drslot_chrp_mem.c | 11 +----------
|
|
1 file changed, 1 insertion(+), 10 deletions(-)
|
|
|
|
diff --git a/src/drmgr/drslot_chrp_mem.c b/src/drmgr/drslot_chrp_mem.c
|
|
index a867894..6c2ac07 100644
|
|
--- a/src/drmgr/drslot_chrp_mem.c
|
|
+++ b/src/drmgr/drslot_chrp_mem.c
|
|
@@ -298,11 +298,6 @@ get_dynamic_reconfig_lmbs(struct lmb_list_head *lmb_list)
|
|
for (i = 0; i < num_entries; i++) {
|
|
struct dr_node *lmb;
|
|
|
|
- /* convert for LE systems */
|
|
- drmem->address = be64toh(drmem->address);
|
|
- drmem->drc_index = be32toh(drmem->drc_index);
|
|
- drmem->flags = be32toh(drmem->flags);
|
|
-
|
|
for (lmb = lmb_list->lmbs; lmb; lmb = lmb->next) {
|
|
if (lmb->drc_index == be32toh(drmem->drc_index))
|
|
break;
|
|
@@ -576,11 +571,7 @@ update_drconf_node(struct dr_node *lmb, struct lmb_list_head *lmb_list,
|
|
|
|
for (i = 0; i < entries; i++) {
|
|
|
|
- /* convert for LE systems */
|
|
- drmem->drc_index = be32toh(drmem->drc_index);
|
|
- drmem->flags = be32toh(drmem->flags);
|
|
-
|
|
- if (drmem->drc_index != lmb->drc_index) {
|
|
+ if (be32toh(drmem->drc_index) != lmb->drc_index) {
|
|
drmem++;
|
|
continue;
|
|
}
|
|
--
|
|
1.9.3
|
|
|