Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755428AbbLGJrL (ORCPT ); Mon, 7 Dec 2015 04:47:11 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:56145 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755030AbbLGJrJ (ORCPT ); Mon, 7 Dec 2015 04:47:09 -0500 From: Arnd Bergmann To: xuejiancheng Cc: linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, khilman@linaro.org, olof@lixom.net, xuwei5@hisilicon.com, haojian.zhuang@linaro.org, zhangfei.gao@linaro.org, bintian.wang@huawei.com, suwenping@hisilicon.com, linux-kernel@vger.kernel.org, yanhaifeng@hisilicon.com, gaofei@hisilicon.com, ml.yang@hisilicon.com, yanghongwei@hisilicon.com Subject: Re: [PATCH v2 3/9] ARM: hisi: enable Hi3519 soc Date: Mon, 07 Dec 2015 10:46:18 +0100 Message-ID: <2329688.AAaHl8K2Zb@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <56652E06.10309@huawei.com> References: <1449110565-23590-1-git-send-email-xuejiancheng@huawei.com> <43938749.Z0h4RNddN6@wuerfel> <56652E06.10309@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:Y4Qe6ixJoFI+9GaN9Y+LrxWEgj0Ky68Ci9uVFYFGrj2LkdM3TfA VkrxccqrXdtNsqJHHA5Q/P6q1e2SeDr6uMrI5pQdKHjmQAAr8puhqKpzIdWPmyTp2FtRHWD znWx9BraQ7B9Lq5sLd1ssZ6VIrLm0H15HoxGKYDZM/icPOfl7HDAhBZApCS9thqtLjhRNVN S0zAtW9tMj09HQA9oCt5w== X-UI-Out-Filterresults: notjunk:1;V01:K0:WfogwY48Mj4=:IiPQR9HV3dFcJeksgRvJHR 393f+T1a3TkiNH71hU0LyFUNqihgy6A5orPO8u7jy2p3O+mreC2bsnDv83PDEKQbwHywbCUdx lAIT8WivM2I+8UyLdF8+e6m4UaNVYOQNSJoQV02RF8EmNZCJdOioU3N0G2gNxGdd4xzMP3ZBM rBhJEI3S0HN0mAz1nyo8VIfAcRTeHtNxcf5poaAzt6HtfLeKMBws5gPJH0MMjGQFnl8BNMHl4 X195GbWmnHcyiWaMkdmVRqYUpj/EIat6hmwDnK78GpudXfaLaJFfi2R78R2otgb5VF3Z/YZ4C KlGGugxxfsMgHYi9B+7QADWKz4d59eNzMMXFLfsGYet935EOn4BqcoXwS5Fe+gKMFC9UGRmC5 xzbPKn3CfcRKS/UzFF3JM6bZGe/XyLnIGuXYOq/fBRZ8/FDPIf9kkESFGo/oJCo8b+h9QD8N/ qHAk/ABxvW9F2NYQ1bLtSxjcKAWD6Mm88oXxKBi6gCPJOFK/t9c7B645UFTrpDjWqjACxlm/p 0EMJOFTHnTCNIkuPhU63D1jqkdsBR2Ge9sl0bWVJrZryN/f750KzNGEgQ4TRWMGMZJd/09ko+ OWrLX25psfZnma80oFs836vJ1OLh/2IK+FbnH89WRv93UnVZw4dfj55otscU5SPQanTfNQIJa OewjEV0MtgS7XvayyTsRXw/CJf/lbk99vkaoJC9VgdVc1BBdxfvLlCEYNQSgdrQWfpEUa3zeC TVd6i4XQ7Qeu+SwH Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3795 Lines: 82 On Monday 07 December 2015 14:58:14 xuejiancheng wrote: > On 2015/12/5 5:54, Arnd Bergmann wrote: > > On Friday 04 December 2015 12:07:58 xuejiancheng wrote: > >> On 2015/12/3 17:40, Arnd Bergmann wrote: > >>> On Thursday 03 December 2015 10:42:45 Jiancheng Xue wrote: > >>>> --- a/arch/arm/mach-hisi/Kconfig > >>>> +++ b/arch/arm/mach-hisi/Kconfig > >>>> @@ -12,6 +12,14 @@ if ARCH_HISI > >>>> > >>>> menu "Hisilicon platform type" > >>>> > >>>> +config ARCH_HI3519 > >>>> + bool "Hisilicon Hi3519 Soc" if ARCH_MULTI_V7 > >>>> + select HAVE_ARM_ARCH_TIMER > >>>> + select ARCH_HAS_RESET_CONTROLLER > >>>> + > >>>> + help > >>>> + Support for Hisilicon Hi3519 Soc > >>>> + > >>>> config ARCH_HI3xxx > >>>> bool "Hisilicon Hi36xx family" if ARCH_MULTI_V7 > >>>> select CACHE_L2X0 > >>> > >>> Do those need to be separate? I would just extend the Hi36xx > >>> to cover all Hi3xxx, if nothing in the platform code really > >>> depends on this. > >> > >> For HI3519, there is really no special platform code. But HI35xx and HI36xx soc families > >> belong to different product lines in hisilicon. HI35xx family also composes of various > >> architectures socs(single core, smp and big-little). So I think it may be clear to have > >> separate arch definitions. > >> > >> Could you give me more suggestions about this? Thank you! > > > > For the most part, you already need to enable the device drivers for the > > specific components on each chip, and the per-soc top-level options here > > don't actually control the compilation of any particular code. > > > > This is slightly different for some of the older platforms that for historic > > reasons need fine-grained options. You could probably just make the device > > drivers depend on "ARCH_HISI || COMPILE_TEST" in general, but some level > > of classification is ok, in particular when the chips are not related at all. > > > > In this case, my impression is that while HI3519 and HI36xx are made > > by different business units, there is still a noticeable amount of shared > > IP in them (e.g. the "sysctrl" node that seems to be shared with some of > > the other chips as well), so grouping them together should make sense. > > HI35xx and HI36xx are designed totally independently, including IP selection. > The relation between HI35xx and HI36xx is just like the one between HI36xx > and HIP0x. In another word, HI35xx and HI36xx are not related except they all > belong to hisilicon. So I don't think it's proper to group them together. > > Is it OK if I drop ARCH_HI3519 and use ARCH_HISI directly? I think we should come up with a way to handle this in general for ARCH_HISI. It's not problem to have a couple of sub-options, but I'd rather not have one for each SoC because I'm sure that hisilicon has made dozens or possibly hundreds of ARM based SoCs that belong into a couple of families. The individual selection of IP blocks is not that important, because those tend to just be generic device drivers that we can enable on any platform using the defconfig files. You said that ARCH_HI3519 and HIP04 have an identical system controller, but it's different for Hi36xx, correct? So maybe we can generalize the HIP04 option to include all chips with that system controller as they appear to share a common ancestry regardless of the target market? The Hi35xx family includes some rather older chips as well based on ARM9 etc, correct? Are they closely related to the new one as well, or do they just share the name? Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/