Skip to content

Commit bb7c3d3

Browse files
nathanlynchmpe
authored andcommitted
powerpc/pseries: remove prrn special case from DT update path
pseries_devicetree_update() is no longer called with PRRN_SCOPE. The purpose of prrn_update_node() was to remove and then add back a LMB whose NUMA assignment had changed. This has never been reliable, and this codepath has been default-disabled for several releases. Remove prrn_update_node(). Signed-off-by: Nathan Lynch <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent cdf082c commit bb7c3d3

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

arch/powerpc/platforms/pseries/mobility.c

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -244,29 +244,6 @@ static int add_dt_node(__be32 parent_phandle, __be32 drc_index)
244244
return rc;
245245
}
246246

247-
static void prrn_update_node(__be32 phandle)
248-
{
249-
struct pseries_hp_errorlog hp_elog;
250-
struct device_node *dn;
251-
252-
/*
253-
* If a node is found from a the given phandle, the phandle does not
254-
* represent the drc index of an LMB and we can ignore.
255-
*/
256-
dn = of_find_node_by_phandle(be32_to_cpu(phandle));
257-
if (dn) {
258-
of_node_put(dn);
259-
return;
260-
}
261-
262-
hp_elog.resource = PSERIES_HP_ELOG_RESOURCE_MEM;
263-
hp_elog.action = PSERIES_HP_ELOG_ACTION_READD;
264-
hp_elog.id_type = PSERIES_HP_ELOG_ID_DRC_INDEX;
265-
hp_elog._drc_u.drc_index = phandle;
266-
267-
handle_dlpar_errorlog(&hp_elog);
268-
}
269-
270247
int pseries_devicetree_update(s32 scope)
271248
{
272249
char *rtas_buf;
@@ -305,10 +282,6 @@ int pseries_devicetree_update(s32 scope)
305282
break;
306283
case UPDATE_DT_NODE:
307284
update_dt_node(phandle, scope);
308-
309-
if (scope == PRRN_SCOPE)
310-
prrn_update_node(phandle);
311-
312285
break;
313286
case ADD_DT_NODE:
314287
drc_index = *data++;

0 commit comments

Comments
 (0)