Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp995601imu; Wed, 23 Jan 2019 09:07:42 -0800 (PST) X-Google-Smtp-Source: ALg8bN7YWuh7pUYcMXvsoEY1yzg5rG9X4z2HsbVdb40+XmX3O+eH7VGdis0Iva0Y0dGX+/V0vlZH X-Received: by 2002:a63:ce50:: with SMTP id r16mr2614380pgi.217.1548263262726; Wed, 23 Jan 2019 09:07:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548263262; cv=none; d=google.com; s=arc-20160816; b=IsQLSDB8PHSf0G56x5ZeiN5tYiH+enamOhqgxaiG528L1Oe0dqgoWaqiTS2Y6j3jA7 Ib+HUIRTEdQyEwWkqn5DI4ozO2L1CXbkbC5hleGSyG1aSPsF4TWPoA5Q+xbjjTSCIHc4 jP9QoDth3ft945qDMkUTVVjz3qm3gTbme2UijRJJX0qdHdtLZzymSaonUBPF/3BBj4L6 OiAoELc3HVb5xOwDs/zQx9s52dFxi6LsdFsjLIa++4xBrv8xAqAFFTo0IHy8lt6HcOz7 AOmuIHUYOfT7hTtAggJ7UQv/DTpjKlROD7OhPu+9nDCClhhmCqDTU3eAFG6vP77rborX GcWw== 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:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=fc1I7sWKe3He8E12Z4Beugz6alhTsqQABqr84O97HGo=; b=WRzMgiFjT51Y5/a5z/GiMJTXN6HDjOOOS5sdvKrSRiwRCm6RaE/qhd8bgMgArZSkpR yWO6xocu6ctH30WmSw4Ni0RBSGmWVMTmq/iKXjPukBMrolCOZHuEh5u9/+ZTyaM0wXZe ULsAZExClmYAMS+h+6ohmkXpyOToumdCKmZ4OvqEA9STSorkS/9UioPQS9TnoqLjiiQj G+H+TGFzr7Ce2ZrwossHrxjqonXypg+pEhvoJwEbqJiozjVoXtEdFiqgp3kwzpb3/4UC 6a6Rs0+M4yQYm1bH4oo8xrk+/TIiJCXVc8p3rMYfdnaq+zR33IPDxDL7G6jmdo4L3iwa CrVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CxNM76bp; 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 v8si19064758plp.215.2019.01.23.09.07.10; Wed, 23 Jan 2019 09:07:42 -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=CxNM76bp; 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 S1726311AbfAWRFB (ORCPT + 99 others); Wed, 23 Jan 2019 12:05:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:55516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725966AbfAWRE7 (ORCPT ); Wed, 23 Jan 2019 12:04:59 -0500 Received: from [192.168.1.32] (cpe-70-114-128-244.austin.res.rr.com [70.114.128.244]) (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 C9A8521855; Wed, 23 Jan 2019 17:04:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548263098; bh=u2POsfJVNWx9rDsUBZMG6hj75l/E7ChbWNwy4645jfw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=CxNM76bpb23lIThqkN4EMWWKuRZPNme2Bdq4jXm62nM1J72/NWp+jx2hf0lPXMBRz o+7jYG/FJsNGdMvvy0EIJj1AYgqEAkJR2Mdxq1BFphq42pJWesuTvJGkgNmzbpaKEh D/GycctFhh59mDK0FVsCLhk+Q09WIFQ6CQcFJUaA= Subject: Re: [PATCHv1] firmware: intel_stratix10_service: add hardware dependency To: Alan Tull Cc: Greg KH , Richard Gong , linux-kernel , todd.riffel@intel.com, Richard Gong References: <1548258476-16821-1-git-send-email-richard.gong@linux.intel.com> <20190123160019.GB4764@kroah.com> From: Dinh Nguyen Openpgp: preference=signencrypt Autocrypt: addr=dinguyen@kernel.org; prefer-encrypt=mutual; keydata= mQINBFEnvWwBEAC44OQqJjuetSRuOpBMIk3HojL8dY1krl8T8GJjfgc/Gh97CfVbrqhV5yQ3 Sk/MW9mxO9KNvQCbZtthfn62YHmroNwipjZ6wKOMfKdtJR4+8JW/ShIJYnrMfwN8Wki6O+5a yPNNCeENHleV0FLVXw3aACxOcjEzGJHYmg4UC+56rfoxPEhKF6aGBTV5aGKMtQy77ywuqt12 c+hlRXHODmXdIeT2V4/u/AsFNAq6UFUEvHrVj+dMIyv2VhjRvkcESIGnG12ifPdU7v/+wom/ smtfOAGojgTCqpwd0Ay2xFzgGnSCIFRHp0I/OJqhUcwAYEAdgHSBVwiyTQx2jP+eDu3Q0jI3 K/x5qrhZ7lj8MmJPJWQOSYC4fYSse2oVO+2msoMTvMi3+Jy8k+QNH8LhB6agq7wTgF2jodwO yij5BRRIKttp4U62yUgfwbQtEUvatkaBQlG3qSerOzcdjSb4nhRPxasRqNbgkBfs7kqH02qU LOAXJf+y9Y1o6Nk9YCqb5EprDcKCqg2c8hUya8BYqo7y+0NkBU30mpzhaJXncbCMz3CQZYgV 1TR0qEzMv/QtoVuuPtWH9RCC83J5IYw1uFU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U9Xwb3VOjs1ITMEYUf8T1j83iiCCFuXqH4U3Eji0nDEiEN5Ac0 Jn/EGOBG2qGyKZ4uOec9j5ABF7J6hyO7H6LJaX5bLtp0Z7wUbyVaR4UIGdIOchNgNQk4stfm JiyuXyoFl/1ihREfvUG/e7+VAAoOBnMjitE5/qUERDoEkkuQkMcAHyEyd+XZMyXY Message-ID: Date: Wed, 23 Jan 2019 11:04:56 -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: Content-Type: text/plain; charset=utf-8 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 On 1/23/19 11:01 AM, Alan Tull wrote: > 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. > Ah yes, forgot to consider that. Dinh