Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp881431ybp; Fri, 11 Oct 2019 05:58:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqzAlXQYMnz4ltyATGmUeqa7WTXSVtiFwT0/1oDjtvMMbIeJtHV+NeCbXAUIzzNQA2vYn1RN X-Received: by 2002:a17:906:c4f:: with SMTP id t15mr13465428ejf.293.1570798718751; Fri, 11 Oct 2019 05:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570798718; cv=none; d=google.com; s=arc-20160816; b=BG8+QFvfRxwOK4UDbsTAzEvvYaCq0rJg0LCdiGepyyizldsuCYBToS80KDSVvjnLRD FrGo7MgVih1yF0CIpCezlZgHc4gHoEjGDCjkUnui4z52bon31Qsctso7HtVM9uT8HbPD +a6QnJ3SF0pCwOCYVQ1C3E/eu+GAmzzN1u9IkgOZpy6gJ2p8ybpnCWHYair9qcpC38mu EBmK1OM/NhKk/AwGw6gLMBWqVHTOL29o2+qiMCAQg7hmwddJvExT2Cw1VIyMarD7ekDT MBFDC0pxkHdWHBHPVSoJDN4Vyz+YPbyOupP3IfSwnX+6fVxvpu6UoXaV0/IS+wF+BbPZ qNzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=k1tI6exljFfm3+StUh8XvsNFdSkCQrGl3UGrix+7rYc=; b=I5HjW2qcPW3/ppgp+CZroTQwFQzJTLi4luet7C26q2CgdAKi4SiY6s/pPc/lS1LBuC NSqsL+udvotm6dxhKjJ4AmWOyNHxjnzLxwX+6TWWE9Wuwo5TREp8NRhMsikGmfFs95Yx Te2y3IyhJ/2zvrOs9RNkeuk17Gz+usrf9a+AvigUkJQEzHQkBOULNjNfs8xc3TSl4CtU AkzfiQUKv5YAa3mf2yCTlEP9vBQxcWXdC6+irNI/3Of4C8m8gg0glzVrw24H8QLYbYzT x1Cbq9783PbeloSZmnojY0rXT8xTW1V3n9OLMcJhAKH39pZi+K6weE74inv8iyXj1dF1 3zEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dell.com header.s=smtpout1 header.b=omjJpoXB; 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=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3si5167196eju.357.2019.10.11.05.58.14; Fri, 11 Oct 2019 05:58:38 -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=@dell.com header.s=smtpout1 header.b=omjJpoXB; 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=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728138AbfJKMzV (ORCPT + 99 others); Fri, 11 Oct 2019 08:55:21 -0400 Received: from mx0a-00154904.pphosted.com ([148.163.133.20]:47890 "EHLO mx0a-00154904.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbfJKMzU (ORCPT ); Fri, 11 Oct 2019 08:55:20 -0400 Received: from pps.filterd (m0170392.ppops.net [127.0.0.1]) by mx0a-00154904.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9BCt9vU008412; Fri, 11 Oct 2019 08:55:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=smtpout1; bh=k1tI6exljFfm3+StUh8XvsNFdSkCQrGl3UGrix+7rYc=; b=omjJpoXBv0h9tBUhbv8PJnkk6XtfYFMLONfojF2T1or5BUu2drUyesw3i9u6oOO9yVCA 0XOez+s2h2mDW1HembV9D46FuLvBtdUAHoFQIaC3AQQkVPdDYS+JNubvIdWPuWJXjVwV 32N0eN9+CfSQudqhaSfixaD+aT0oj1mboowiMM0cXbBrAPUQFz2s+N2yGlsXjHvFXBvz Cg72lDeh+2qWUFdBNiGyH25trKtheGuvzQGlIT6j5c4fjjsJ5xr8rlb8t9eT5LXWnQ0e fw1pDrhYSnpyX4TlVCZ4Kpgwp0J4PSsveMQzEufCne95wQOfjcSlQYa6iD6QgpicFdWs JQ== Received: from mx0b-00154901.pphosted.com (mx0b-00154901.pphosted.com [67.231.157.37]) by mx0a-00154904.pphosted.com with ESMTP id 2vepbfpd38-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2019 08:55:19 -0400 Received: from pps.filterd (m0144103.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9BCrBdw024395; Fri, 11 Oct 2019 08:55:18 -0400 Received: from ausxippc101.us.dell.com (ausxippc101.us.dell.com [143.166.85.207]) by mx0b-00154901.pphosted.com with ESMTP id 2vjj02f0vq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 11 Oct 2019 08:55:18 -0400 X-LoopCount0: from 10.166.132.130 X-PREM-Routing: D-Outbound X-IronPort-AV: E=Sophos;i="5.60,346,1549951200"; d="scan'208";a="1310933796" From: To: CC: , , , , , , Subject: Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y Thread-Topic: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y Thread-Index: AQHVeVm8hd3/NfhPNEW1ErxPMn2a1adSB94AgAHOtgCAABHEgIAA+WUAgAAFC4CAADBvAA== Date: Fri, 11 Oct 2019 12:55:12 +0000 Message-ID: <20191011125446.GA2170@localhost.localdomain> References: <20191002194346.GA3792@localhost.localdomain> <20191010174710.GA2405@localhost.localdomain> <20191011094322.GA3065@localhost.localdomain> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mutt/1.10.1 (2018-07-13) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.143.18.86] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-11_08:2019-10-10,2019-10-11 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 adultscore=0 mlxlogscore=999 impostorscore=0 bulkscore=0 clxscore=1015 spamscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910110122 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 spamscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-1908290000 definitions=main-1910110123 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 11, 2019 at 12:01:25PM +0200, Geert Uytterhoeven wrote: > > > > > > - bool "EFI Runtime Configuration Interface Table Version= 2 Support" > > > > > > + bool > > > > > > + prompt "EFI RCI Table Version 2 Support" if X86 || COMP= ILE_TEST > > > > > > Why the split of bool and prompt? > > > Why not simply add a single line "depends on X86 || COMPILE_TEST"? > > > > It is because of the findings shared in [1]. Please let me know your > > thoughts on the findings. >=20 > So you want to prevent the user from seeing a prompt for an option he may > or may not need to enable, when running "make oldconfig"? Geert, > The code in question is entirely architecture agnostic, and defaults > to 'n', so I am not convinced this is needed. (It came up in the > review as well) >> "make oldconfig" still asks me the question on e.g. arm64, where it is >> irrelevant, until arm64 variants of the hardware show up. >> So IMHO it should have "depends on X86 || COMPILE_TEST". From the discussion in [1] and [2](pasted a part of it above), my understan= ding of the issue you reported is that 'make oldconfig' asks the user a question= for arm64 though the EFI_RCI2_TABLE is not relevant for arm64. From the tests, it seemed like adding "depends on X86 || COMPILE_TEST" does not fix the issue, splitting bool into bool + prompt fixes it. Please let me know if I am missing any detail in the issue you reported. =20 With the way EFI_RCI2_TABLE is currently defined, my understanding is that 'make oldconfig' does not set the EFI_RCI2_TABLE to 'y' by default on arm64, but it asks the user the question. User has to say 'y' if he wants it to be set to 'y', else by default 'n' is set. This behavior is as expected.=20 >=20 > One common approach is to let the Kconfig symbol for the platform (not fo= r > all of X86!) select EFI_RCI2_TABLE. > That way it will be enabled automatically when needed. We did not intend to enable EFI_RCI2_TABLE option by default even on all X86 systems from the begining. As a result, we chose to set it to 'n' by default and added the guidance in 'help' section to say 'y' for Dell EMC PowerEdge systems.=20 >=20 > Another approach is to not force the option on, but guide the user toward= s > enabling it, by adding "default y if ". As mentioned above, we want to keep the default to n. > Without the "|| COMPILE_TEST", you cannot enable compile-testing of > the driver on non-x86 platforms with EFI. Ok. We could keep the check. Could we make it independent of platforms by adding 'defbool y if COMPILE_TEST' ?=20 [1] Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sy= sfs https://lore.kernel.org/linux-efi/20190812150452.27983-5-ard.biesheuvel@lin= aro.org/T/#m0d73b4fa0dd7ece5038e4c9580dcc4e2ce5bd63c [2] Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sy= sfs https://lore.kernel.org/linux-efi/20190812150452.27983-5-ard.biesheuvel@lin= aro.org/T/#mf45a9bc1861c71f110c800a53c60f0be65c68ec7 --=20 With regards, Narendra K=