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=-5.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 E5CDCC433E0 for ; Sat, 6 Mar 2021 10:07:20 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E75D64E01 for ; Sat, 6 Mar 2021 10:07:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E75D64E01 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XEJWLSNA5b18JAJTkIm6BIrmPZBFC+kk2RlZRJ+9jpU=; b=fmogfnvc0mQo4VGZWUOG3aSOn uvTAw6N/5K4wB0fPfKFsOb70lbLSNQqhTfjMwt2A8u/v86Cm6/0cv/e+VBuqrmAPeBUm7cyhnXpC7 ElHdMVOt6R0kkSYpYCx01kQz4TEjvRKzGB6JCBboXvSTBzRtJksACQCb1RHt7ydCDPdXmHn8yyjxw aOSLGbYQNBiGJL818ANmVDZHQgA8+42icsMQOjAkPgYdjNjtcZS4WLQqORcMMvRFBkYUvBxnNG+au qvA1tZaCQKsfGTZy9Ajz1HaNpiQ/2erqPGXep88DtVaVmG7dk83YMXDvWb0rRJ65FGPlY8O2NxIv/ 8Azv0uqgA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lIToN-002kYH-1j; Sat, 06 Mar 2021 10:05:30 +0000 Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lIToB-002kWj-Qz for linux-arm-kernel@lists.infradead.org; Sat, 06 Mar 2021 10:05:21 +0000 Received: by mail-pg1-x535.google.com with SMTP id t25so3058805pga.2 for ; Sat, 06 Mar 2021 02:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IxxG7+/Jf2xeis/L0iB2HVcjDnZPIqtkUD4U9LiGxFA=; b=F1ly1E3BLIqrYvco/cS6aH0WiDIbpt7rf2lq6DlhBmIhkxcbOEG8aMACert8PfQ18F rpzeXziheyELB8AkpzWs19zKWtSlaojSnPdshF+g5U+wG/IqzV2Q5Qq/34e1LcY38swH LPvIHpRk8Z53yRT5HsPmDCXSMkHOfTJ/2NA/XLIM2b1ZBQtEkXZ5MDZ8rkxQb9IQfOTu WpJBHwsEwWgDqigpM52DLrXmVvTOmnJsPKU79aoPiU4KElKjxQT+jk2YOYCMPJGdRQu6 v9kND2nbrn0kkGwoTvjCKwr7c92a91xdLaCItYY7gCMAMgPh9XN06BwJRLTVc+WHU0Qk KS1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IxxG7+/Jf2xeis/L0iB2HVcjDnZPIqtkUD4U9LiGxFA=; b=pNsh14hObGIb25Chj8497YkIpUQ/2TJ7zYYvws5Nt0RKvcIiD+WVKOgmRCmIuR7X1V UfFOmETzdjjhEeofQOD7GMH4h4vz9Ic6fCF0VRrUHarG5q+T3DkGo24MIFdqK7v+lOer C6UrI2bIsguhhVzScHcorHCw30TkqfpoiXDM7xA/Ud9QaFRHEk+uhnTRM5+/j/RTifEb d3hwwCDMlhpe0wRdol6SX1aTUoqcrwHDS2RUPgyybT5GfyHDSsXZHUo48iDcLWOGwsmH vllqXqKMK5q7tbMOkG0h1QnQ13ICx/v9GVqFMgS5oZhQC3ue7mJqUhJMNqIC3+SvSL5l 8uEQ== X-Gm-Message-State: AOAM532vC2g+T29mMJapfDdADcMaU0HTwfT+ytvIlpPR6Mi/O71BiQJU gK/hI6tocFEquudnS4eSqYt2rw== X-Google-Smtp-Source: ABdhPJymaVvjjY6JwKfnCmUAVajzElj1JzVdJdUkNylxHTbSHDDGxSbXi1aiiyoTBmpE05nZ+9pBUQ== X-Received: by 2002:a62:1e46:0:b029:1f3:ad4f:9c6b with SMTP id e67-20020a621e460000b02901f3ad4f9c6bmr718644pfe.64.1615025113705; Sat, 06 Mar 2021 02:05:13 -0800 (PST) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id e185sm4944223pfe.117.2021.03.06.02.05.11 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 06 Mar 2021 02:05:13 -0800 (PST) Date: Sat, 6 Mar 2021 18:05:08 +0800 From: Shawn Guo To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jeffrey Hugo , Bjorn Andersson , Rob Clark , Leif Lindholm , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 0/1] use RT_PROPERTIES table to implement efi=novamap Message-ID: <20210306100507.GO17424@dragon> References: <20210305093958.187358-1-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210305093958.187358-1-ardb@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210306_100516_628664_3FEE0A2F X-CRM114-Status: GOOD ( 20.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Mar 05, 2021 at 10:39:57AM +0100, Ard Biesheuvel wrote: > This patch addresses an oversight on my part when I implemented Linux > side support for the EFI RT properties table: SetVirtualAddressMap() is > itself a runtime service which is only callable at runtime to begin with, > and so the EFI stub should only call it if it is not marked as unsupported. > > This may be useful for the Snapdragon EFI based laptops, which already rely > on a special EFI driver to expose the correct DT based on metadata exposed > by EFI. These systems ship with a broken implementation of SetVirtualAddressMap, > which is currently being worked around by passing efi=novamap on the kernel. > command line. > > After applying this patch (which I intend to propose for backporting to 5.10), > the same can be achieved by exposing a RT_PROP table that marks SetVAMap() as > unsupported. And while at it, better mark the variable services as unsupported > as well, since they don't work under Linux either. > > I'm open to extending this with a Linux specific override value kept in a > EFI variable, so that platforms that cannot support DtbLoader are able to > implement something similar. Yes, that will be much appreciated! IMHO, this is definitely an useful addition, as DtbLoader shouldn't be mandated. In some cases, people may choose to load DTB with other means, or DTB is not required at all. Yeah, ACPI kernel is already useful for these laptops, not only for running installer but also as a console based native arm64 machine. Looking forward to something for testing :) Shawn _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel