powerpc/pseries: remove prrn special case from DT update path
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 12 Jun 2020 05:12:35 +0000 (00:12 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:39 +0000 (13:12 +1000)
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 <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200612051238.1007764-16-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/mobility.c

index c0b09f6f0ae3a37557bf95fa46d769e0799151b1..78cd772a579b029b225502c19cadb700e6ebf2a5 100644 (file)
@@ -244,29 +244,6 @@ static int add_dt_node(__be32 parent_phandle, __be32 drc_index)
        return rc;
 }
 
-static void prrn_update_node(__be32 phandle)
-{
-       struct pseries_hp_errorlog hp_elog;
-       struct device_node *dn;
-
-       /*
-        * If a node is found from a the given phandle, the phandle does not
-        * represent the drc index of an LMB and we can ignore.
-        */
-       dn = of_find_node_by_phandle(be32_to_cpu(phandle));
-       if (dn) {
-               of_node_put(dn);
-               return;
-       }
-
-       hp_elog.resource = PSERIES_HP_ELOG_RESOURCE_MEM;
-       hp_elog.action = PSERIES_HP_ELOG_ACTION_READD;
-       hp_elog.id_type = PSERIES_HP_ELOG_ID_DRC_INDEX;
-       hp_elog._drc_u.drc_index = phandle;
-
-       handle_dlpar_errorlog(&hp_elog);
-}
-
 int pseries_devicetree_update(s32 scope)
 {
        char *rtas_buf;
@@ -305,10 +282,6 @@ int pseries_devicetree_update(s32 scope)
                                        break;
                                case UPDATE_DT_NODE:
                                        update_dt_node(phandle, scope);
-
-                                       if (scope == PRRN_SCOPE)
-                                               prrn_update_node(phandle);
-
                                        break;
                                case ADD_DT_NODE:
                                        drc_index = *data++;