From patchwork Mon Jun 11 16:24:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leif Lindholm X-Patchwork-Id: 138259 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4256646lji; Mon, 11 Jun 2018 09:27:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK0m8xatq+3oI/CGsiRvoU+Qgkz7GGcIUQQW8qBd/f7IWhMUi0iv/AVQUhrifaGQlJUxusR X-Received: by 2002:ac8:3722:: with SMTP id o31-v6mr16578900qtb.169.1528734435572; Mon, 11 Jun 2018 09:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528734435; cv=none; d=google.com; s=arc-20160816; b=ZqxxowTWzD2KGztEUJ6jx/AqxpYdkMhQynjh7ZR93zfVW3VwNQoilSQuy0KPgloXjL CoefDg202VsRLLDQMKbOQfSCYhggIaDBW4kvqIjXxzoWvBvHOkFyt2+YAu/s1PYT8dgI b+jogX5ZC2EAjoPOll0yxnGSXI2Yp07T697P/2hdtlOX0qv9ppZWCvENSmQr5w1qSPGi hwFgUsYDYFp6zRX3ps1oZrKAn4rET12jlFTptvkv4+vYY5dyKoPS1944UBTlDKZ+bncg lYzPhWFi0DdXLbHeh47pK/4CIAz/Dy4COakQpNvvOIThQ+H69vsgX+eKmXXucRUulGNx a3xg== 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:dkim-signature :arc-authentication-results; bh=GRyrEzeG42ChJLhvgxHCXz7wv22O8k9ItsRkRMlol9A=; b=Gido5ZbtEJY06Zz9aO3ToTBsJGHOg7mRn5yKvigTv9pV9NNpYf+NAcOGONcy6rTk6L WbBDdJdgcvyvF/UhX9GhbmnlEgdWI1iwWDoL30qQfYfOSkwQLsh8UobWsmGSTDLXA2OQ zWWZFZ8Tl4nbuoxG9GMupGqX4Qf5YOBs2yYntbrDt7EuiZs4RhZqph3fPB0xvhKs4Dog hm0UlvJuVBPSwTrp5rAjj/Ejxjcr63+qRSt80MBRDAdbDSgwc98jl0aAVgWk4VYB6Nud +jAN5YR5ZLdHLI069aKLn8h0b5wcERB3X+YbmUT8c8g/h3wAsK95uqQKpPSUyUZlJGUF v4EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Jq0irlsW; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=grub-devel-bounces+patch=linaro.org@gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id z1-v6si2164411qtz.4.2018.06.11.09.27.15 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Jun 2018 09:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Jq0irlsW; spf=pass (google.com: domain of grub-devel-bounces+patch=linaro.org@gnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=grub-devel-bounces+patch=linaro.org@gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:50096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSPf1-0006HU-3m for patch@linaro.org; Mon, 11 Jun 2018 12:27:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSPcy-0004mV-Ar for grub-devel@gnu.org; Mon, 11 Jun 2018 12:25:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSPcu-0007lU-BM for grub-devel@gnu.org; Mon, 11 Jun 2018 12:25:08 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:56065) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSPct-0007jV-SB for grub-devel@gnu.org; Mon, 11 Jun 2018 12:25:04 -0400 Received: by mail-wm0-x241.google.com with SMTP id v16-v6so15758620wmh.5 for ; Mon, 11 Jun 2018 09:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hUautdxMtCnuz6hILdeO4kvuhCFvPdQDTvAvyDyQbcM=; b=Jq0irlsWLaC9C9PcAO/aHEI1cDthdjZhMmb4z3ijuLx9kOTc9YtoTkm4OLe0pmX3KB G0Sd0GZffzZwm9hkec1TYJCxk/uGP4STfvnPT/u1P4J1o0EqgLSHEVTP9f5eiHlBM1ax pqolnihkKIwEpgPXMQYC6r2oHBPTidSqQ9tzI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=hUautdxMtCnuz6hILdeO4kvuhCFvPdQDTvAvyDyQbcM=; b=YjU/8WzCTeILq2/bsHvQH7eGu7fQAnDUZCHVQi9wO6sPLZlRFzplazSv5UXvfvUeBp GqLy83n9pkbJ85t2w1XRtZwmBDmrVFm37s5HPHMQbnwtumeJyz7Iv6k/aPmaFMn0Kpvs gGnI1mGgT/BJWDiE1DwIzuUGicubhXwECaOM4dhi+poVEv7J4cBHN0h7jj+HVeqNqWx/ iiGtMjKR7BCmCzhJB+RomwfM/yRVKS6BJH7iHvyhbS/45OxWE2yBZMMrO45DjM446xFW rIQny2QCed3+NviCFcTiDL3p135sNEBZ4+dH7oNGgyql/4S62lCfQmrYFyU0q2ZATzQ3 1HCg== X-Gm-Message-State: APt69E1MVM/QnEy+SuWvtsMdV5YVTJZ/fXpvuaIZ2nbQhzu3CIT6n3WV aoHQzDZCFaFMhB0btLLUzfpytTzX1P8= X-Received: by 2002:a1c:96d3:: with SMTP id y202-v6mr8392634wmd.76.1528734302296; Mon, 11 Jun 2018 09:25:02 -0700 (PDT) Received: from vanye.hemma.eciton.net (cpc92302-cmbg19-2-0-cust304.5-4.cable.virginm.net. [82.1.209.49]) by smtp.gmail.com with ESMTPSA id s191-v6sm16460925wmd.27.2018.06.11.09.25.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 09:25:00 -0700 (PDT) From: Leif Lindholm To: grub-devel@gnu.org Subject: [PATCH 0/2] efi/fdt: set #address-cells/#size-cells on empty tree Date: Mon, 11 Jun 2018 17:24:57 +0100 Message-Id: <20180611162459.9178-1-leif.lindholm@linaro.org> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::241 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: Daniel Kiper MIME-Version: 1.0 Errors-To: grub-devel-bounces+patch=linaro.org@gnu.org Sender: "Grub-devel" Set #address-cells and #size-cells properties (to 2) for ARM*/UEFI systems when creating an empty DT at boot time. This resolves an issue seen in the wild with kexec on certain 64-bit ARM systems. First part is moving out the prop_entry_size macro from lib/fdt.c and make it available in (with the required name change). Second part is adding the two properties to the empty tree. Leif Lindholm (2): fdt: move prop_entry_size to fdt.h efi/fdt: set address/size cells to 2 for empty tree grub-core/lib/fdt.c | 25 ++++++++++--------------- grub-core/loader/efi/fdt.c | 18 ++++++++++++++++-- include/grub/fdt.h | 5 +++++ 3 files changed, 31 insertions(+), 17 deletions(-) -- 2.11.0 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel