Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp705070ybp; Fri, 11 Oct 2019 03:04:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVXVc5g/z4k8puseQQg+2uOIXAV/wOCxiuf8Fr3T52OmZ/G1zq7nJFF8Wwg4iATRKz2EIG X-Received: by 2002:a05:6402:149a:: with SMTP id e26mr12545740edv.123.1570788250633; Fri, 11 Oct 2019 03:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570788250; cv=none; d=google.com; s=arc-20160816; b=BdYgwep3s3JwGklM8JaATTQ8ijEEvUE19WZJJfuUYjlv5XAUvEMqZhQoiA4YWsNE0n L+GX8WJemD8wp1kmLIFnc4oSX1g1M2GEzcZ6OF+h0xU9Gl9xIbW61O3GB122jzXvRDRK FtkouW5A4Reaz5u23BHFARH4MglWZhQZ8xJBSO1kX7ZoHgVefVKoBjPF4PRNKBQzLRkm Zm2JYmu6/E6SCcHZ77GJrK3NraNk0m8Rjm9umT1NixSCsYMo7kFHS1Y/qM65B5GMSwde 6jk6M9Ddq3uv/dxv3t8uElR0sL8UAvg9vjFWTI4JYQooKWep30zZ9DHRvcuFz2IEKwG6 elnA== 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; bh=BmWoLaFLM5Nm2z3NOAq6yl+CBUxQRErLfBnt6nPINlk=; b=DbOOTOBykYQckWT1Nip/Fhsra8a40vDDAMWWRH9lTRjydvlZV9RK32xv/iuGTtpn2V KBp0wDm/k3r9AAYaEBZIKIT2xdwkZCkQfIH+BfVhuu7eytGSSnEbeduENxU1SistTEgN gGFcIvQ99uCJb2uw//1Bjl4cMgNW23RlkeUA0h0HEsxvN5eMKRhPdI7o+3j8LMWr0WGS GLFD9378G7/F9yyB6wrAB225vvWQAJtgZsGoFfgdVhCc/y9B4awtX6/d6TpGbY/49rtX 6Hw5IbuIHoTgN8fWXYDdVYVW7b2R0QA2GP1S8QqJS8WMkW8Fiz+AWjKKzSPor1QtFq70 CyWQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si5032951ejd.78.2019.10.11.03.03.46; Fri, 11 Oct 2019 03:04:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727665AbfJKKBh (ORCPT + 99 others); Fri, 11 Oct 2019 06:01:37 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:45291 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfJKKBh (ORCPT ); Fri, 11 Oct 2019 06:01:37 -0400 Received: by mail-oi1-f193.google.com with SMTP id o205so7481155oib.12; Fri, 11 Oct 2019 03:01:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BmWoLaFLM5Nm2z3NOAq6yl+CBUxQRErLfBnt6nPINlk=; b=MZVbbdj3MqbE+H/sv+nHpvVqMnra2LFnE2SGp52bUoHoKY3vuvHZz90jEssCUE/L8g hDvQ7iq9YFXHgQLqHovlKp1anlYV7MJU8drhY1ijJx8bsxTP0cF8vbew9Bm+mdWgn+Nl CGJWX4quO+i5lYDLVK0bKaRhJUUdJgwifjHnQjQ6du3flwJ0vEZmdYmvPqjKHhpoS3Pt GDr1kZAXk0uZ/WLk9a4bKbM+fkX9THNlI57+gqU/qLa4Wg18Kh8Sp4Rgp7XSXe5Joitj 0bKwNsfys2rWnnlaVRHmh1cAl1bYoOUI+rS2eK1fxRNACjfZdd7wxA27KadxP3tEWhj9 pvpA== X-Gm-Message-State: APjAAAWtPw5z/QMih2t1ociLUywUvqDlmOfCW2iiMXJqYlQN9DuwmUzy u9UrqubpnVjvn9vO+NStf3TeseL9Z/2RxjvMdcA= X-Received: by 2002:a54:4e89:: with SMTP id c9mr10839645oiy.148.1570788096407; Fri, 11 Oct 2019 03:01:36 -0700 (PDT) MIME-Version: 1.0 References: <20191002194346.GA3792@localhost.localdomain> <20191010174710.GA2405@localhost.localdomain> <20191011094322.GA3065@localhost.localdomain> In-Reply-To: <20191011094322.GA3065@localhost.localdomain> From: Geert Uytterhoeven Date: Fri, 11 Oct 2019 12:01:25 +0200 Message-ID: Subject: Re: [PATCH] Ask user input only when CONFIG_X86 or CONFIG_COMPILE_TEST is set to y To: Narendra K Cc: Ard Biesheuvel , linux-efi , Mario Limonciello , Thomas Gleixner , Linux Kernel Mailing List , James Morse , Ingo Molnar 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 Hi Narendra, On Fri, Oct 11, 2019 at 11:43 AM wrote: > On Thu, Oct 10, 2019 at 08:50:45PM +0200, Geert Uytterhoeven wrote: > [...] > > > > > drivers/firmware/efi/Kconfig | 5 ++++- > > > > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > > > > > > > diff --git a/drivers/firmware/efi/Kconfig b/drivers/firmware/efi/Kconfig > > > > > index 178ee8106828..6e4c46e8a954 100644 > > > > > --- a/drivers/firmware/efi/Kconfig > > > > > +++ b/drivers/firmware/efi/Kconfig > > > > > @@ -181,7 +181,10 @@ config RESET_ATTACK_MITIGATION > > > > > reboots. > > > > > > > > > > config EFI_RCI2_TABLE > > > > > - bool "EFI Runtime Configuration Interface Table Version 2 Support" > > > > > + bool > > > > > + prompt "EFI RCI Table Version 2 Support" if X86 || COMPILE_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. 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"? One common approach is to let the Kconfig symbol for the platform (not for all of X86!) select EFI_RCI2_TABLE. That way it will be enabled automatically when needed. Another approach is to not force the option on, but guide the user towards enabling it, by adding "default y if ". > > > > You can drop the || COMPILE_TEST as well. > > > > > > I will drop this part of the change in the next version of the patch. > > > > Why drop that part? Isn't it good to have more compile test coverage? > > It is per the suggestion in the previous review comment. > > Ard, please share your thought here. I could add the || COMPILE_TEST. Without the "|| COMPILE_TEST", you cannot enable compile-testing of the driver on non-x86 platforms with EFI. > [1] Re: [PATCH 4/5] efi: Export Runtime Configuration Interface table to sysfs > https://lore.kernel.org/linux-efi/20190812150452.27983-1-ard.biesheuvel@linaro.org/T/#mebff9ba48499808f59b33b2daef2d94e006296d8 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds