From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1543C6778F for ; Thu, 26 Jul 2018 13:13:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9380920673 for ; Thu, 26 Jul 2018 13:13:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9380920673 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730496AbeGZOaR (ORCPT ); Thu, 26 Jul 2018 10:30:17 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:49564 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729944AbeGZOaR (ORCPT ); Thu, 26 Jul 2018 10:30:17 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1fig55-0007kK-9d; Thu, 26 Jul 2018 15:13:23 +0200 Date: Thu, 26 Jul 2018 15:13:23 +0200 From: Sebastian Andrzej Siewior To: Ard Biesheuvel Cc: Linux Kernel Mailing List , Thomas Gleixner , Steven Rostedt , linux-rt-users@vger.kernel.org, Marc Zyngier , linux-efi , Anna-Maria Gleixner Subject: Re: [PATCH RT] rtc: Disable RTC_DRV_EFI on RT Message-ID: <20180726131323.ffecgeqnry6th4mp@linutronix.de> References: <20180726090449.hfvtey3ruzzhzdaz@linutronix.de> <20180726121504.ba35z3j3wsesryy3@linutronix.de> <5052E25B-9942-40C1-BD53-86E3D7014557@linaro.org> <20180726124613.xgmidioqd4mcqpiw@linutronix.de> <8640BE46-B141-44F9-BD92-58A21A2B0EA7@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8640BE46-B141-44F9-BD92-58A21A2B0EA7@linaro.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-07-26 14:52:21 [+0200], Ard Biesheuvel wrote: > We could also make it the default on -rt, but not disable it entirely, so that efi=runtime can be used to re-enable it. Oh. I like that. We have something similar for RCU. So I would need that: ------- >8 Subject: [PATCH] efi: Allow efi=runtime In case the option "efi=noruntime" is default at built-time, the user could overwrite its sate by `efi=runtime' and allow it again. Signed-off-by: Sebastian Andrzej Siewior --- drivers/firmware/efi/efi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 62c6e4b6ce3e..d6176ce50b45 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -110,6 +110,9 @@ static int __init parse_efi_cmdline(char *str) if (parse_option_str(str, "noruntime")) disable_runtime = true; + if (parse_option_str(str, "runtime")) + disable_runtime = false; + return 0; } early_param("efi", parse_efi_cmdline); -- 2.18.0