From patchwork Sun Dec 23 02:52:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 154443 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2558883ljp; Sat, 22 Dec 2018 18:53:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/UymaX9HwTfXX5BGo2IN2t6s3a1RyUz1+h2CYf9/PxvI7D83CHjB+2xBeqru8Na1ceD2UNi X-Received: by 2002:ac8:2353:: with SMTP id b19mr7705440qtb.187.1545533590414; Sat, 22 Dec 2018 18:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545533590; cv=none; d=google.com; s=arc-20160816; b=nWkdUR55OQHG4aVLAZsXxUxYCrGXbg9ame/kJoeACz6UR5fehfb1BiceRxKtldtZw0 5TYCfg6kOM9Xt+U0yVh2Z0VMCDbrMHPHzyHAdcgVcYdqcW6XE4mFVhVKIRuRKv4sGbIf xLgl6YklVqf756cgih0K8NkuMLt8gakFHUyT1vYPoJd850gOcSbD6v7Aj5gVnGagqzFr 0tLrVrIGCyMvuUz79YpQ64zQSAGzt8/F/eW6od+naIEkhppTGd00xp7LtUromGF3OfvP Vi9yxF+6gvLmM9KF7weOhifnXNhcEbz9vzZNw8Do3jZyh9QIrmL1gsXdy67v5hfvEyUS yM3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:message-id:date:subject:to:from; bh=zrXKX3HHejMOhPKNVtOQqRrEFHREwPY3231umRef6oI=; b=iQ+0fmUTXRlL5fWWcYlO3AX3bJ6qCQtn2a3prT26o5Bgzv3jRIzhRXsjAag1QPEUSP BM5W0/CHXOQZutMf5nsjGKOlpsAFDcztAkR0P3qqT6VleQeH0qqv2y/hV4sFr86Eswis if4ZWeGt4pJSTMSdTTFeaaxzfkTTGBRBnxjQRbPQdAl82zYZ8pbPLawfI4x3tva+GFVo W6TpvXWZH12fGr9LBNrUxoF9JdwF3p62y/Hzi5AaAt4SidAHUyii3WXh28bo0Bbz+6im tT1Gzvnl2TV0Y3GsZ2o/WtrBdg/my2O3NPiM15DCxv9Ua+VZYTjp8mVIeIdxvLS1rASE 2MJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::12 as permitted sender) smtp.mailfrom="grub-devel-bounces+patch=linaro.org@gnu.org" Return-Path: Received: from lists.nongnu.org (lists.nongnu.org. [2001:4830:134:3::12]) by mx.google.com with ESMTPS id h68si810248qkb.47.2018.12.22.18.53.10 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 22 Dec 2018 18:53:10 -0800 (PST) Received-SPF: pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::12 as permitted sender) client-ip=2001:4830:134:3::12; Authentication-Results: mx.google.com; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::12 as permitted sender) smtp.mailfrom="grub-devel-bounces+patch=linaro.org@gnu.org" Received: from localhost ([::1]:52967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gatt7-0003bR-Vk for patch@linaro.org; Sat, 22 Dec 2018 21:53:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gatsG-0002ve-1F for grub-devel@gnu.org; Sat, 22 Dec 2018 21:52:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gatsB-0006Jm-2v for grub-devel@gnu.org; Sat, 22 Dec 2018 21:52:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:44728 helo=mx1.suse.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gatsA-0006IL-RH for grub-devel@gnu.org; Sat, 22 Dec 2018 21:52:11 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B8B92AF0F; Sun, 23 Dec 2018 02:52:08 +0000 (UTC) From: Alexander Graf To: grub-devel@gnu.org Subject: [PATCH v2 0/2] arm64: Support HP Envy X2 Date: Sun, 23 Dec 2018 03:52:05 +0100 Message-Id: <20181223025207.40755-1-agraf@suse.de> X-Mailer: git-send-email 2.12.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The development of GNU GRUB Cc: Jon Masters , Leif Lindholm , Ard Biesheuvel MIME-Version: 1.0 Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: "Grub-devel" I got a new toy this week: An HP Envy X2 system. This is one of those shiny new Qualcomm Snapdragon based Windows tablet/notebook hybrid things. While running Windows on those is actually not a terribly bad experience now that WSL is out, I would like to see Linux run on those as well in the future. Unfortunately as far as I'm aware so far nobody was able to run self built binaries on the built-in UEFI version. Turns out, it's a problem with aligning the start of the header to 4k. Once we do that, binaries can be loaded just fine and run. The reason behind that is simple: Its firmware tries to ensure NX protection flags and can do so only when the code is 4K aligned. So to maintain compatibility with that device, this patch set just bumps the header alignment to 4K always on arm64-efi. This way we improve overall compatibility - there surely will be more devices coming with similar constraints. v1 -> v2: - Remove explicit device wording from patch - Use GRUB_EFI_PAGE_SIZE Alexander Graf (2): mkimage: Simplify header size logic mkimage: arm64-efi: Align first section to page util/mkimage.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) -- 2.12.3 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel Reviewed-by: Leif Lindholm Tested-by: Leif Lindholm