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=-15.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 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 86EE4C433ED for ; Mon, 17 May 2021 01:01:01 +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 017F761159 for ; Mon, 17 May 2021 01:01:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 017F761159 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=o5SI9UC3l8pu/AltAyW3bPs9wDcTgWqjRE63U6lshgk=; b=YHSEyVIBvs9nWLJEwun6Ttjye aeotlrrYcc92WWlo5qiD2Qdqwp25vbNGcTt1RVacmI5dWBQilST+9b6jIl8qH1BV3V+o2ISHWPJKa i78+n8gVXFe7wIo3YmTe4kcZ3extP75rAoWFQ6aAhBUWuRkg2gcXGnJIEJVzeSs0WOv5RzOLlHi/2 GL0x2vMD280GzesL/O3W2ChIOUtp90ulYDA96e5qw0rmKiBAUygiqlPXEcEqRLyTQ6oLQhhvOJ2jC bM7TiDfqeWKmzNjtXsqe8r9a0I+B2TF+SL40Cx6dFpsxwyMqAFcBO7GfI2odFphfFjK7JHSZxTlD2 wzKc+YPxw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liRbL-00DL0m-JL; Mon, 17 May 2021 00:59:19 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liRbH-00DL0L-M4 for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 00:59:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=ANkYnem2igzEfr34lf0bWQfWO8rn1biLX4pTs2vIelE=; b=4KTFzF+7GWDiB5PfrDoxP8l0lh 7CQKipHujZa++//q5oFbiUYRxXBiG1xYqs2mYWk4/mT4ANaPsTGhlEy/S4zww1pRls9bvadg3/dvF l7Xhl2VTlxdT35JeHKqkA1BOhnSH5MohTGGIHjR38ZRGJ57SBr1EQFu4yz70yf8WuBN51VMyW1eVF 6CyOSV3t5d1Ffl/jFAU8n+wopwOOMnMzxv8Fkr/ZLh2hO97rRU3MrrTZQItqfmjl6tnzjQRZU0+LJ JcZrp1rj+BFVO/iMehi7v5tdtELGwp2OvtE8ByctkcvMAewsOc8tx16x5Db8Q9LoHyPBqWg8TWqis txDS+0rg==; Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liRbE-00DOig-St for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 00:59:14 +0000 Received: by mail-pf1-x42a.google.com with SMTP id 22so3446569pfv.11 for ; Sun, 16 May 2021 17:59:11 -0700 (PDT) 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=ANkYnem2igzEfr34lf0bWQfWO8rn1biLX4pTs2vIelE=; b=Oy4YpkMC6kL/1rEOyL11BEFzYzBYcifbZ28dhgYgYByQXG7loqbvCV8B0qtSC1IybD pqMlIbQ2itJQgJyWDtjuwn+pr9zJdZ5uvRPlxloumec2ZU9VKQtSFLo9+4nb71Tb/BLW jocglSfNOZzNKSPB0upRaQYI/aquzCNo1N94FlgrBohZXCpYDxSZAla2zJvQF4tt9b/1 w+i3dgoOWmS+KVD9xA9kOvqFr5UM4RUdg+I979u7suzIZY1CPekBcSTdTWPVmgaMBOD/ NwsFKLp9c52GSb98Ss8L2klMDBM5F+SceBFpIC3vEJyNH5g7qnP+7tEeMh/eZK7bhIzm GHiw== 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=ANkYnem2igzEfr34lf0bWQfWO8rn1biLX4pTs2vIelE=; b=d7jVcHAoHPYlfLMuK3QOekN9Oj3IBjy4Qk+Ct/we8JeptypJ2M3wmXOr5aLajkCIOE 7gnMLLYujwkLewrDgZvCQUS6T0DG3UMl6G2QLoy0onK8Z/ODrxTF3UKwq7WPP9jM5aFn 6RvCCSQO3Wj33FrSztAWcMGJTtwgCUuHrkdc68gG3d3VnuMMnVirFR+5EhwNsu7u6p3A dEPSbDrcCjTx/eXUHF+jAWsiBFnE6tbMx4OT115HT4DjTb1JYdIgASiVmoONk942w28l zaXFuZWnkVvQ7jcORuMUIaoQ8npgdDkmz15ZyF4QZCTpUpXDi0vN5Q7x1+vFFOjf0haI cUEA== X-Gm-Message-State: AOAM531eodNpMPThHIfE9Q7hkGO0TcXlU/yhBzdV4GKJ6fzzg6PJUBiR U4pucXDj6XPnnwVT4AIR3XlceQ== X-Google-Smtp-Source: ABdhPJzLGwP1y+N/BkES4LzGeZ0jZ19k0n5ykMvcpwJIFcCTOuwnK4pW6TqMNImRjZMVIjPJ8FIB/Q== X-Received: by 2002:a05:6a00:1687:b029:253:f417:4dba with SMTP id k7-20020a056a001687b0290253f4174dbamr57212226pfc.5.1621213151386; Sun, 16 May 2021 17:59:11 -0700 (PDT) Received: from dragon (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id h22sm8562878pfn.55.2021.05.16.17.59.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 16 May 2021 17:59:10 -0700 (PDT) Date: Mon, 17 May 2021 08:59:04 +0800 From: Shawn Guo To: Ard Biesheuvel , Maximilian Luz Cc: Catalin Marinas , Will Deacon , Jeffrey Hugo , Bjorn Andersson , linux-efi , Linux ARM , linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] arm64: efi: add check for broken efi poweroff Message-ID: <20210517005903.GA15021@dragon> References: <20210305065120.11355-1-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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-20210516_175912_987644_312EF236 X-CRM114-Status: GOOD ( 15.89 ) 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 + Maximilian On Fri, Mar 05, 2021 at 08:01:02AM +0100, Ard Biesheuvel wrote: > On Fri, 5 Mar 2021 at 07:51, Shawn Guo wrote: > > > > Poweroff via UEFI Runtime Services doesn't always work on every single > > arm64 machine. For example, on Lenovo Flex 5G laptop, it results in > > a system reboot rather than shutdown. Add a DMI check to keep such > > system stay with the original poweroff method (PSCI). > > > > Signed-off-by: Shawn Guo > > What is the point of using EFI runtime services on this machine if > poweroff doesn't work either? Can't we just boot this thing with > efi=noruntime? Ard, With Maximilian playing ACPI kernel on Microsoft Surface Pro X, this ResetSystem service issue triggers more discussion and testing [1]. Maximilian tested it with uefi-test-runner and reported that ResetSystem actually works [2]. Looking at the kernel dump, I'm wondering if it's because that kernel calls into the services with assuming they are in virtual addressing mode, while actually they are in flat physical mode instead, due to that SetVirtualAddressMap() call is skipped (efi_novamap). Shawn [1] https://github.com/Sonicadvance1/linux/issues/27#issuecomment-836103896 [2] https://github.com/Sonicadvance1/linux/issues/27#issuecomment-837184892 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel