Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp979932imu; Wed, 23 Jan 2019 08:53:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN7w0xqCxzoTDzh1SI/sIpAESV2CPA6VRqL3jI4C/v+cWpR9VvVsqbpq6invEy2jc3NXJ5V9 X-Received: by 2002:a63:334a:: with SMTP id z71mr2636384pgz.400.1548262384050; Wed, 23 Jan 2019 08:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548262384; cv=none; d=google.com; s=arc-20160816; b=iE5XgkULFg1FaoCeOU7/Csp2gwjOW5N1uVe+4gVPQ7yuT1ogMJenSynAKyEnd8AD6A tFCQjIdT7P66ZSJ8RwIUw7iB5phk78vik4Tdno1myRV0OEbxb8ArQHMh0ZPQsSxTFln4 +dF9igrYWdzEplOX3IKom9sRzQSHYaRrNuGz0p7y61NvPnSIlGz5g4xJRTIhvdhYz8u2 fbhUtQEtjZ6AX0VHn0ARLDZDC1BzQ1UCsAFpTMvDxO1jlKbAgnR8jRCok/W+LddDu/53 9jygwvOkodG4yNYcgYJN6nmOr8O8VpzIX2Gsrhyh97D50LEQJdNIO9Yvvq07jPUs1FC7 0qZg== 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:from:references:cc:to:subject; bh=KwQzISqAp5wpoKOP8/40JwXPcv6PtMAwbxwJXFCHais=; b=zkT4UGB8n2dOOSs0wN64e4t78zH7HBU1cww8knH/9L24tubc6aFi0KbTBudCKkMDG9 9HVaT4WLBACFWSIAtO1LxV/ikov3/7QBGs7NRRPFj4B58M+9CbH0HBq24EC1VRAaULLP OzpLvpQmVizbeERSumoFiURG2p6V8IfmbMcyXBX0ca1e8ZsUcjpDzUbNta9o33+yZAbz J1oj+8ogbQ1qrNPmjeSgg1+NGjEcYyGFIbQv0y5+Xf2tThE5rCD/XwqlDt5K6zd7CmOF /ZfO9/Q/O9DAcxUEVw4I3ooopL4zXSIuS0JD6mNTA8+0XPnXalqQQ6agGE2jgukQnrfr kiVw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si14973284ple.281.2019.01.23.08.52.47; Wed, 23 Jan 2019 08:53:04 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726786AbfAWQuG (ORCPT + 99 others); Wed, 23 Jan 2019 11:50:06 -0500 Received: from mga11.intel.com ([192.55.52.93]:18995 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfAWQuE (ORCPT ); Wed, 23 Jan 2019 11:50:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Jan 2019 08:50:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,512,1539673200"; d="scan'208";a="109173853" Received: from marshy.an.intel.com (HELO [10.122.105.159]) ([10.122.105.159]) by orsmga007.jf.intel.com with ESMTP; 23 Jan 2019 08:50:03 -0800 Subject: Re: [PATCHv1] firmware: intel_stratix10_service: add hardware dependency To: Greg KH , Alan Tull Cc: Dinh Nguyen , linux-kernel , todd.riffel@intel.com, Richard Gong References: <1548258476-16821-1-git-send-email-richard.gong@linux.intel.com> <20190123160019.GB4764@kroah.com> <20190123164317.GA16162@kroah.com> From: Richard Gong Message-ID: <0d04145a-bd8b-5257-bccd-f9b6c855edcb@linux.intel.com> Date: Wed, 23 Jan 2019 10:59:21 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190123164317.GA16162@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On 1/23/19 10:43 AM, Greg KH wrote: > On Wed, Jan 23, 2019 at 10:37:07AM -0600, 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 > > Yes, that would be better, right? > >>> >>> 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. > > So it's not fixing a bug, but rather just allowing you to shrink an > image? If so, then 5.1 is good. > > Please resubmit, after making sure it doesn't break the normal builds :) Thanks for your review comments, I will resubmit the patch. > > thanks, > > greg k-h >