lkml.org 
[lkml]   [2017]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH V12] powerpc/vphn: Update CPU topology when VPHN enabled
Date
Hi Michael,

Thanks for trying to reduce this down to the minimum required.

But ...

Michael Bringmann <mwb@linux.vnet.ibm.com> writes:
> powerpc/numa: On Power systems with shared configurations of CPUs
> and memory, there are some issues with the association of additional
> CPUs and memory to nodes when hot-adding resources. This patch
> addresses some of those problems.
>
> First, it corrects the currently broken capability to set the
> topology for shared CPUs in LPARs. At boot time for shared CPU
> lpars, the topology for each CPU was being set to node zero. Now
> when numa_update_cpu_topology() is called appropriately, the Virtual
> Processor Home Node (VPHN) capabilities information provided by the
> pHyp allows the appropriate node in the shared configuration to be
> selected for the CPU.

That should be one patch.

> Next, it updates the initialization checks to independently recognize
> PRRN or VPHN support.

And another.

> Next, during hotplug CPU operations, it resets the timer on topology
> update work function to a small value to better ensure that the CPU
> topology is detected and configured sooner.

Another.

> Also, fix an end-of-updates processing problem observed occasionally
> in numa_update_cpu_topology().

And another.


I would have let you get away with lumping it all in together, except
that it doesn't compile when CONFIG_PPC_SPLPAR=n:

In file included from ../include/linux/topology.h:35:0,
from ../include/linux/gfp.h:8,
from ../include/linux/irq.h:17,
from ../arch/powerpc/include/asm/hardirq.h:5,
from ../include/linux/hardirq.h:8,
from ../include/linux/interrupt.h:12,
from ../arch/powerpc/platforms/pseries/hotplug-cpu.c:24:
../arch/powerpc/platforms/pseries/hotplug-cpu.c: In function ‘dlpar_online_cpu’:
../arch/powerpc/include/asm/topology.h:103:38: error: statement with no effect [-Werror=unused-value]
#define timed_topology_update(nsecs) 0
^
../arch/powerpc/platforms/pseries/hotplug-cpu.c:366:4: note: in expansion of macro ‘timed_topology_update’
timed_topology_update(1);
^~~~~~~~~~~~~~~~~~~~~
../arch/powerpc/platforms/pseries/hotplug-cpu.c: In function ‘dlpar_offline_cpu’:
../arch/powerpc/include/asm/topology.h:103:38: error: statement with no effect [-Werror=unused-value]
#define timed_topology_update(nsecs) 0
^
../arch/powerpc/platforms/pseries/hotplug-cpu.c:533:5: note: in expansion of macro ‘timed_topology_update’
timed_topology_update(1);
^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


So please fix that up, split it, and resend.

I know it would have been fairly easy for me to fix that compiler error,
but it tells me you haven't tested that configuration at all, which is
the bigger problem. Please at least give it a smoke test.

cheers

\
 
 \ /
  Last update: 2017-09-01 12:10    [W:0.053 / U:13.968 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site