Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1009960imu; Wed, 23 Jan 2019 09:19:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN52H4r/8QKtklYALpwVQ6pfWlsNyjBPeZF6ovDLKrCYtroZ/cGpU28UKa5+UjFBVNitWDM6 X-Received: by 2002:a63:a16:: with SMTP id 22mr2703476pgk.318.1548263996810; Wed, 23 Jan 2019 09:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548263996; cv=none; d=google.com; s=arc-20160816; b=OWRI8tW4lURLaHaKA8LtDiMZO7HuknAZNhxpyl5HJJWvaVJqQQ44s5NgF4ka0QGxBn RBR+Edv33zef7xWzec8dXjJFaT182lvoJ6OayIbZHok3PefJPZHY579W4Y+qAGY1qVk7 p2d3cOfZleNsNAQFcLx8eFJLLDxGBmldTUtdHuWVtceSaeT/PO2WAufU5XwtU3ENdDIK Kph62mquRZOqTzCi5Am0rnfqRmP5zzgo8MPytK4HC0E/p/PQdhUqccyBALbPYueSXGKr FacWAeLdAMratKKqAbcR3g93sqtXxs9qLMruKpMRcwf0x4zM6Ufmint51ZaUEMQIV2Xt YSoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5JTONqK4jJCJjrzTZ7F4gwey84wjgOSeuKajMSsNKG0=; b=s35tLqc3NvmIPcsyE9urfp5DT+D7ZdDd6DelA1559F7FVO5i6C/7qjsvY+qnQoSlU5 YQ0iIFL7eDq9C9x2vJ9ocHWNwscjcjcN8mo2AsecNtffC9GbL3zrtUBPt1A7ETo49dbN 5w3h+dF0U/uqtoGXtYn+1l66L4KDp/es+R3KmPSCfXSQYBdx1xSinHBlUqftsIMKeNvL 42GHMe/wcQjtbNoRYt6b9XXg71jEeOHTZWv/I0uyWgt8Htv8fvS3rTOGGS4h5jLGi7Hp PspwSvThlwTq2GXLh3oi6B2lhPenZDAHrB85iYVGQZf9IqOT7fGCtY9nW/VhIwW3hUFW JFVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DOJjpw8u; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32si20284097pld.387.2019.01.23.09.19.07; Wed, 23 Jan 2019 09:19:56 -0800 (PST) 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=@kernel.org header.s=default header.b=DOJjpw8u; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726093AbfAWRCb (ORCPT + 99 others); Wed, 23 Jan 2019 12:02:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:54712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfAWRCb (ORCPT ); Wed, 23 Jan 2019 12:02:31 -0500 Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com [209.85.219.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B99921873 for ; Wed, 23 Jan 2019 17:02:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548262950; bh=d8k5A5M+5hnFf377TYVMwEVSleiirFkpDaqCUda4nB0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DOJjpw8u+h0o3uqIN0oq9RsGlVDLoU/qCTW6IaMmYET3HzKPiMFvoQJY14ok5hN4q EGEVbzSYeRZER92ln1dZPnqdjOMKyTiQXNqwypkvyLmB5cWtnijU86LADmccdjUwC2 XbwIk/ItcTNU29xOGCcIMqS8FlMbf98PZQMialL0= Received: by mail-yb1-f173.google.com with SMTP id n78so1137590yba.12 for ; Wed, 23 Jan 2019 09:02:30 -0800 (PST) X-Gm-Message-State: AJcUukcJj8ILN83pc2T9n6ji48KzOYeZbnv/7oY7u9m3w6uohx3yAHRL vbd9l66HtaC2KbBGW802+arHPH3U01qizR+X77U= X-Received: by 2002:a25:2b0a:: with SMTP id r10mr2654675ybr.315.1548262949542; Wed, 23 Jan 2019 09:02:29 -0800 (PST) MIME-Version: 1.0 References: <1548258476-16821-1-git-send-email-richard.gong@linux.intel.com> <20190123160019.GB4764@kroah.com> In-Reply-To: From: Alan Tull Date: Wed, 23 Jan 2019 11:01:53 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv1] firmware: intel_stratix10_service: add hardware dependency To: Dinh Nguyen Cc: Greg KH , Richard Gong , linux-kernel , todd.riffel@intel.com, Richard Gong Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 23, 2019 at 10:42 AM Dinh Nguyen wrote: > > > > On 1/23/19 10:37 AM, Alan Tull wrote: > > On Wed, Jan 23, 2019 at 10:00 AM Greg KH wrote: > > > > Hi Greg, > > > >> > >> On Wed, Jan 23, 2019 at 09:47:56AM -0600, richard.gong@linux.intel.com wrote: > >>> From: Richard Gong > >>> > >>> Add a Kconfig dependency to ensure Intel Stratix10 service layer driver > >>> can be built only on the platform that supports it. > >>> > >>> Signed-off-by: Richard Gong > >>> --- > >>> drivers/firmware/Kconfig | 2 +- > >>> 1 file changed, 1 insertion(+), 1 deletion(-) > >>> > >>> diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig > >>> index f754578..cac16c4 100644 > >>> --- a/drivers/firmware/Kconfig > >>> +++ b/drivers/firmware/Kconfig > >>> @@ -218,7 +218,7 @@ config FW_CFG_SYSFS_CMDLINE > >>> > >>> config INTEL_STRATIX10_SERVICE > >>> tristate "Intel Stratix10 Service Layer" > >>> - depends on HAVE_ARM_SMCCC > >>> + depends on ARCH_STRATIX10 && HAVE_ARM_SMCCC > >> > >> That's lame, what about building for testing? > > > > Do you mean this instead? > > > > depends on (ARCH_STRATIX10 && HAVE_ARM_SMCCC) || COMPILE_TEST > > > >> > >> And is this needed now, for 5.0-final, or can it wait for 5.1? > > > > This change will reduce kernel size for most arm64. It can go into > > whichever kernel. We can resubmit allowing for COMPILE_TEST. > > > > I don't see how this is true? ARM64 has a single defconfig and > ARCH_STRATIX10 is included in that defconfig. I don't see how adding > this dependency will reduce the kernel size for most arm64? Sorry, I wasn't clear. By default it will be built in since there's one arm64 defconfig. But adding ARCH_STRATIX10 dependency here supports users who turn off all the ARCH_* they don't care about in their own defconfig that won't get upstreamed. > > Dinh