From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752480AbcB2RaF (ORCPT ); Mon, 29 Feb 2016 12:30:05 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36036 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbcB2RaC (ORCPT ); Mon, 29 Feb 2016 12:30:02 -0500 Date: Mon, 29 Feb 2016 18:29:56 +0100 From: Robert Richter To: David Daney Cc: Will Deacon , linux-arm-kernel@lists.infradead.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, Ard Biesheuvel , Frank Rowand , Grant Likely , Catalin Marinas , Matt Fleming , linux-efi@vger.kernel.org, Ganapatrao Kulkarni , Robert Richter , linux-kernel@vger.kernel.org, David Daney Subject: Re: [PATCH v12 3/5] dt, numa: Add NUMA dt binding implementation. Message-ID: <20160229172956.GF31343@rric.localdomain> References: <1456192703-2274-1-git-send-email-ddaney.cavm@gmail.com> <1456192703-2274-4-git-send-email-ddaney.cavm@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1456192703-2274-4-git-send-email-ddaney.cavm@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22.02.16 17:58:21, David Daney wrote: > From: Ganapatrao Kulkarni > > ADD device tree node parsing for NUMA topology using device > "numa-node-id" property distance-map. > > Reviewed-by: Robert Richter > Signed-off-by: Ganapatrao Kulkarni > Signed-off-by: David Daney > --- > drivers/of/Kconfig | 3 + > drivers/of/Makefile | 1 + > drivers/of/of_numa.c | 211 +++++++++++++++++++++++++++++++++++++++++++++++++++ > include/linux/of.h | 9 +++ > 4 files changed, 224 insertions(+) > create mode 100644 drivers/of/of_numa.c > > diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig > index e2a4841..b3bec3a 100644 > --- a/drivers/of/Kconfig > +++ b/drivers/of/Kconfig > @@ -112,4 +112,7 @@ config OF_OVERLAY > While this option is selected automatically when needed, you can > enable it manually to improve device tree unit test coverage. > > +config OF_NUMA In arch/arm64/Kconfig you now need to: select OF_NUMA if NUMA && OF This should depend here on OF and NUMA and enabled in that case. Why moving that to arch code? This duplicates code as the same needs to be implemented for every arch. -Robert > + bool > + > endif # OF