Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp46399imm; Tue, 31 Jul 2018 13:32:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfuAJ9eeAo1AiT2HL5tfECq/0VbCdRt3BjJBR+DGfaOysiZdqVD7+KP9NDWyOiUPYBiIOOA X-Received: by 2002:a62:3703:: with SMTP id e3-v6mr23950315pfa.117.1533069137114; Tue, 31 Jul 2018 13:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533069137; cv=none; d=google.com; s=arc-20160816; b=BkkEJ1LnBwhiFsLdcag/PmnO7KMyemFwfQpuXepgkWQfSerG0BJd1nkY80/UDRwcVI qthxj4VaKWEiSXK2YzVkUbRQTA3f8+fZP4Br3W3W5QO9nI09S6vLjrj4Pxl7cx1cJ+29 +qh2Fs08EW4Q8Z5ZpVyTqKowuF6pbyDkC+3EI+FRNec/uziGkeVsQf49gqmrdwJ0225I VAH+QCfvXfPm00WWu+grwOCeBoIpTJLXJ083uNIwuutK0j36gcLVHcvFGLQgPeVJY5Al iEyXg/96LYBS+0okOXMmXvmH86uw6q9cIB29m4k9FvP+W17K9A7gH/n14yZuF3hi6gdM oxMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=eJGJvzxl1mgg8IFlkdpTcnf4KED5RB3VdoSoE7cxg2k=; b=wMCiJERMmsNHP0mh9gyqjCwcM+CAlNnUzeIMU5kSbIEmo0Tr4vHNskK65O0BbXTJz8 psqiR3M2W4IWriaodQaEQm8KPBdeTlwVoQORyM5ueDL4ttZaRoadW+hEEDfajQtt9kay R2S4Dxn3se8NA3hiYGWpjhQNpvASTaN0mjhQ2lNY0V/wjT3Ju8Hr11r4+qKE5aj7Gf9d Q+Xa/cO2o+14ZDzAwwhshHfmTG6On0Ayv3b1Blct4LF47WCfzGxD0fiEJZKMsyAsrZSQ OuKexSX3ueOX6nbTK3JXDCRpQKaEpWHY+l8+58pbUHjnZ328LhUIpp6Lh88eYIdGQP/J 5Yfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eJbjKI4o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd6-v6si5713446plb.379.2018.07.31.13.31.56; Tue, 31 Jul 2018 13:32:17 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eJbjKI4o; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729926AbeGaWMC (ORCPT + 99 others); Tue, 31 Jul 2018 18:12:02 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:37238 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbeGaWMC (ORCPT ); Tue, 31 Jul 2018 18:12:02 -0400 Received: by mail-io0-f193.google.com with SMTP id z19-v6so14170939ioh.4 for ; Tue, 31 Jul 2018 13:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=eJGJvzxl1mgg8IFlkdpTcnf4KED5RB3VdoSoE7cxg2k=; b=eJbjKI4oH+Uz+14660OcFxFT/zM6z4VgUT8ogG01V/jWTb9QOJ2RzuBISkFu8F7Slo PBMeqBWckxxEw3+LYRJwqV283uzCVQAq/gKO1eq/DBoJuRoxKrQRsH++ofNQlNwrIGmJ GlAfrAto30ROFbPitep9QcFkkIPpZ6c1fTM0o2FJCcI/3Zqd/l1Sh2WpYo7C1vccTiuz I90dX7BRlj19fvCmyujamQz4ag5pLGObbHNsNK0642SjlhTOwXyiQ6HLBtDdcrKzjr0t sInRKR2JnKf5Q2oU6Vq83W9NOAJmEGz3FCoIHJF/tOl+g2G6llWTvPR9626L6snmNzkv 3fxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=eJGJvzxl1mgg8IFlkdpTcnf4KED5RB3VdoSoE7cxg2k=; b=ZNIvCCDExAs1eIZRRZVQ1ylEb+435cRubEQ3St6D7AG9uMUc9tzgb7CqjqibgCsRWG OemQaCP9WmUWVCuBZ+PjYp54sHFYYVLjuA3+UcT7hsmJotjKdztmNEYq6Cinx4lDY70v DHK3cQdNMCHyE/IsoYPU1/7TimoagR6ZahcdU3drhtWVgHL3w46rZmWmGLkG0zyc1rSK YceelgUD+9QGU536EJOAAJ/aXra8PLvXoptkAq1R9buVP2mwTOsG8LKH49pmYxfolLwQ tcrXvFz+cd1KdbupbH3/suapbTQKSss2yMPL8mQqoWIdGM7AIv+KAE9T/9rkQ4Txesmp +k2w== X-Gm-Message-State: AOUpUlGfBYBWgaXRt/nly2xbcLhM7i2r4bLtEoRX3uJeLkZ2GRePkUhW 9w6E3WLG3jJfI8r/qpVu+WB7Vu95rhY= X-Received: by 2002:a5e:9242:: with SMTP id z2-v6mr1052217iop.278.1533068997265; Tue, 31 Jul 2018 13:29:57 -0700 (PDT) Received: from [10.0.2.15] ([72.138.96.106]) by smtp.gmail.com with ESMTPSA id p84-v6sm1686879itc.2.2018.07.31.13.29.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Jul 2018 13:29:56 -0700 (PDT) Subject: Re: [PATCH 6/6] arm64: enable RapidIO menu in Kconfig From: Alex Bounine To: Will Deacon , Alexei Colin Cc: Catalin Marinas , Andrew Morton , Russell King , John Paul Walters , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20180730225035.28365-1-acolin@isi.edu> <20180730225035.28365-7-acolin@isi.edu> <20180731084143.GA4680@arm.com> Message-ID: Date: Tue, 31 Jul 2018 16:29:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Will, Alexei what do you think? > >> Will >> >>> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig >>> index a8f0c74e6f7f..5e8cf90505ec 100644 >>> --- a/arch/arm64/Kconfig >>> +++ b/arch/arm64/Kconfig >>> @@ -308,6 +308,8 @@ config PCI_SYSCALL >>>   source "drivers/pci/Kconfig" >>> +source "drivers/rapidio/Kconfig" >>> + >>>   endmenu >>>   menu "Kernel Features" >>> -- >>> 2.18.0 >>>