Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp608961imm; Wed, 1 Aug 2018 02:12:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpee/0R6CqhOVi8+9UrXLOiggwHzsj4neejWl8VJ6MN1PCNAVL+oyVKb9jHz1J8O7Bb2MdGy X-Received: by 2002:a17:902:123:: with SMTP id 32-v6mr23331114plb.181.1533114726791; Wed, 01 Aug 2018 02:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533114726; cv=none; d=google.com; s=arc-20160816; b=co/Bumc6CP7zxY/7a3ZtWwhAZBq5+KnpsFYtVkdIZunjMUAiOnxiKnaCSn+2CqMgEq rDKCKoTYwTotgeNEu9xb/mpx/ElNPv52qYwoVU9cMqfXZw5yNEhzl5a9yA9Acu/UulGo +0uwIH9Q4plGjN3ODR3KScfLQ4pPuHly3xu2NvK8hhRjkjWWzXNKYIXKT8mR9CtYWMHi TaPma431LfjOVFJYPasZ3tReFOXXM77HAQhwWWaJhDU7qtmURHox5sbFpZpLUhIk01uk szYmxEydVcVzoZny+zATuOTuN1lfcXVX2bJn2s94MQ+aoUkltbblV4cQjs2WtUq0wU3v Ccow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=MnfD4sRcVyL1y1zon8VvyrqAqWH/VfNbpcgIiJ5CdAk=; b=B7E2U29Mmci6ti+pKado5Sxvy0tvhePso3TdxWhQIIimPCt+8gYLoWwzH3zbHxLZB1 ZNWcrOvHcm9bewHiDEC6bJJTWxa8Q/oWwVShFfTe6o9naed2T7yqEUumNjM0tD98m3e8 U2/WBmFDNv0IDZgjn/FvyxC3SArx91SvQ1YOfnFcCMYOioaRhkqdO4WWBVhbKKSwxU6c oDpYNLWNeZlJXpml2ol49I2aYvFz+xW1RAcj6fAEE4pHb5fekLjcEtbIoYJcg0N/yJ4B LZelkzL8fWX6TTd0ScEXJfh1iCxm9HuBaaRBnXcw5m7VFBtKchD0UIbXMCqBK6rwYZeO UdBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j17-v6si10654292pgk.517.2018.08.01.02.11.52; Wed, 01 Aug 2018 02:12:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388847AbeHAKzL (ORCPT + 99 others); Wed, 1 Aug 2018 06:55:11 -0400 Received: from foss.arm.com ([217.140.101.70]:37958 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387658AbeHAKzL (ORCPT ); Wed, 1 Aug 2018 06:55:11 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E3D1418A; Wed, 1 Aug 2018 02:10:25 -0700 (PDT) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B4F423F5B3; Wed, 1 Aug 2018 02:10:25 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id DC8F01AE3096; Wed, 1 Aug 2018 10:10:27 +0100 (BST) Date: Wed, 1 Aug 2018 10:10:27 +0100 From: Will Deacon To: Alex Bounine Cc: Alexei Colin , Catalin Marinas , Andrew Morton , Russell King , John Paul Walters , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/6] arm64: enable RapidIO menu in Kconfig Message-ID: <20180801091027.GC14438@arm.com> References: <20180730225035.28365-1-acolin@isi.edu> <20180730225035.28365-7-acolin@isi.edu> <20180731084143.GA4680@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2018 at 04:29:56PM -0400, Alex Bounine wrote: > On 2018-07-31 08:54 AM, Alex Bounine wrote: > >On 2018-07-31 04:41 AM, Will Deacon wrote: > >>On Mon, Jul 30, 2018 at 06:50:34PM -0400, Alexei Colin wrote: > >>>Platforms with a PCI bus will be offered the RapidIO menu since they may > >>>be want support for a RapidIO PCI device. Platforms without a PCI bus > >>>that might include a RapidIO IP block will need to "select HAS_RAPIDIO" > >>>in the platform-/machine-specific "config ARCH_*" Kconfig entry. > >>> > >>>Tested that kernel builds for arm64 with RapidIO subsystem and > >>>switch drivers enabled, also that the modules load successfully > >>>on a custom Aarch64 Qemu model. > >>> > >>>Cc: Andrew Morton > >>>Cc: Russell King > >>>Cc: John Paul Walters > >>>Cc: linux-arm-kernel@lists.infradead.org > >>>Cc: linux-kernel@vger.kernel.org, > >>>Signed-off-by: Alexei Colin > >>>--- > >>>? arch/arm64/Kconfig | 2 ++ > >>>? 1 file changed, 2 insertions(+) > >> > >>Thanks, this looks much cleaner than before: > >> > >>Acked-by: Will Deacon > >> > >>The only thing I'm not sure about is why we don't just select HAS_RAPIDIO > >>unconditionally in the arm64 Kconfig. Does selecting only that option > >>actually pull in new code to the build? > >> > >HAS_RAPIDIO option is intended for SOCs that have built in SRIO > >controllers, like TI KeyStoneII or FPGAs. Because RapidIO subsystem core > >is required during RapidIO port driver initialization, having separate > >option allows us to control available build options for RapidIO core and > >port driver (bool vs. tristate) and disable module option if port driver > >is configured as built-in. > > I am thinking about where HAS_RAPIDIO option can be set for arm64 branch. > Having it set globally is too broad. For example we have Xilinx Zinq US > board with SRIO IP on it. Having it globally in arm64 branch - bad. Probably > having it set in drivers/soc/... is the best place. Why is selecting HAS_RAPIDIO globally a bad thing to do? The way these normally work is, if some subsystem requires arch support, then there's an ARCH_HAS_xxxx option which the architecture selects when it implements that support. Once you've enabled that, then that allows other sub-options to be selected, such as specific drivers or what-not. Look at the Kconfig files under drivers/soc/ -- you don't see anybody selecting ARCH_HAS_* options. Now, if HAS_RAPIDIO alone is pulling in a whole load of code to the build, then it sounds like a misnomer. Confused. Will