[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH 07/21] xen/device-tree: Parse 'cpu-map' node for CPU topology exploration



Hello,

> >  xen/arch/arm/smpboot.c                |   6 +
> >  xen/common/Kconfig                    |   7 +
> >  xen/common/device-tree/Makefile       |   1 +
> >  xen/common/device-tree/cpu_topology.c | 307
> ++++++++++++++++++++++++++
> >  xen/include/xen/cpu_topology.h        |  42 ++++
> >  5 files changed, 363 insertions(+)
> >  create mode 100644 xen/common/device-tree/cpu_topology.c
> >  create mode 100644 xen/include/xen/cpu_topology.h
> 
> Nit: New files' names want to use dashes in favor of underscores.

ok, I will fix this in v2.

> 
> > --- a/xen/common/Kconfig
> > +++ b/xen/common/Kconfig
> > @@ -188,6 +188,13 @@ config VM_EVENT
> >  config NEEDS_LIBELF
> >     bool
> >
> > +config DT_CPU_TOPOLOGY
> > +       bool "Device tree based CPU topology support (UNSUPPORTED)" if
> > +UNSUPPORTED && ARM
> 
> Instead of open-coding ARM here (and also in patch 03), please consider using
> another ...

ok, I will.

> > +       depends on HAS_DEVICE_TREE_DISCOVERY
> 
> ... HAS_*, just like you make use of an existing one here.

How about this?
"depends on DEVICE_TREE_PARSE"

And I'm wondering once the UNSUPPORTED tag can be removed, I would like to 
eliminate DT_CPU_TOPOLOGY and make the CPU topology feature always enabled 
whenever Device Tree is supported.

> > --- a/xen/common/device-tree/Makefile
> > +++ b/xen/common/device-tree/Makefile
> > @@ -11,4 +11,5 @@ obj-$(CONFIG_DOMAIN_BUILD_HELPERS) += kernel.o
> >  obj-$(CONFIG_STATIC_EVTCHN) += static-evtchn.init.o
> >  obj-$(CONFIG_STATIC_MEMORY) += static-memory.init.o
> >  obj-$(CONFIG_STATIC_SHM) += static-shmem.init.o
> > +obj-$(CONFIG_DT_CPU_TOPOLOGY) += cpu_topology.o
> >  obj-$(CONFIG_DEVICE_TREE_NUMA) += numa.o
> 
> Again for here and (apparently) an earlier patch in the series: This file 
> looks to
> be sorted alphabetically. Please don't blindly add to the end.

ok, I will.

Thanks for your advice.

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.