Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lYXIn-0002Qr-W4 for mharc-grub-devel@gnu.org; Mon, 19 Apr 2021 13:03:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYXIk-0002Oh-Kp for grub-devel@gnu.org; Mon, 19 Apr 2021 13:03:11 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]:38571) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYXIe-0003oI-A4 for grub-devel@gnu.org; Mon, 19 Apr 2021 13:03:10 -0400 Received: by mail-pj1-x102b.google.com with SMTP id k23-20020a17090a5917b02901043e35ad4aso20742778pji.3 for ; Mon, 19 Apr 2021 10:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lRg0GtUsyC5y81P3kPF7gcjz2/mT8FKktG55QfKdh+0=; b=NwCHfV/67zA8LLgMG8SKqT1cDXYvAxlMEPlBIMO4zvxioIcJeW5jx8KwmN7J86UKrV r0SL1DVDhC8oHFpGw8eXwJ2mCVXubHgq09thkTRaK5FqBzO+f1bxW3+oTaa970jCwMtL APe+Urn8F1B6XYMhBZLff269IzNQvZQrqLvEA= 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:mime-version :content-transfer-encoding; bh=lRg0GtUsyC5y81P3kPF7gcjz2/mT8FKktG55QfKdh+0=; b=DcCtSwYnwLx0wIe1M22QkOqfSk5SCd3yFIm8yuDbrkTVg/X3M0pZJa99c1vnrcTSEx +pzdr1bTUB0G9TdZzlwx/WAeqNTugVWSTmN9itQP5c/42r/COFtV22iUKTlx9nHxMWmd 0VqErU5dBT/VkBruxbhYlMh5l+OcE+/yyt63y1av0yok7Fnz4uKwXL5b4rQ+3k96BQOk 9lKlmoBg8QgPFoVtA0BGCdrtD9NX1nOWwppN12sHPmkd1N5j0AUS1/NZjYH7iws9peFW S0FLMXBZALGzyIsmi3bnRtqsURGm60oId1lMmCy+ofLOx3UrEtw+bqJbMFTQXSe2cLof 7E/g== X-Gm-Message-State: AOAM533ECdcsvyArT4hd5RzfnxSM7KkDG3yXsXoH87d0vCM3iHYO44Jz 3Tkem1sjZ5sa6pjVOBn04f5Y4Ck03Ejiug== X-Google-Smtp-Source: ABdhPJzrk6M/8txLQRYCWd8HNo1vvRp3Db4CJymKjFAblQ13sOkMsjKNksI+tcfCjs6wdaQRk+E3tw== X-Received: by 2002:a17:90a:e2d7:: with SMTP id fr23mr51796pjb.29.1618851781145; Mon, 19 Apr 2021 10:03:01 -0700 (PDT) Received: from localhost (2001-44b8-111e-5c00-72e1-b42d-8acd-3b87.static.ipv6.internode.on.net. [2001:44b8:111e:5c00:72e1:b42d:8acd:3b87]) by smtp.gmail.com with ESMTPSA id u7sm53599pjx.8.2021.04.19.10.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Apr 2021 10:03:00 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: ruscur@russell.cc, Daniel Axtens Subject: [PATCH 0/3] ieee1275: find and claim more memory Date: Tue, 20 Apr 2021 03:02:53 +1000 Message-Id: <20210419170256.3434868-1-dja@axtens.net> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=dja@axtens.net; helo=mail-pj1-x102b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2021 17:03:12 -0000 I've posted a couple of RFC patches that attempted to claim some more memory on ieee1275 platforms, which is necessary for the verifiers to do their work. The RFCs were a bit unsatisfactory and also it turns out they broke in some corner cases. This, I believe, is a proper, upstream-worthy solution for getting more memory on ieee1275 platforms and powerpc-ieee1275 in particular. It is also, sadly, an set of quite complex solutions, as the commit messages for patches 2 and 3 show! It seems this is the cost of broad platform support and backwards compatibility. There's no reason for this to go into 2.06. Kind regards, Daniel Daniel Axtens (3): ieee1275: drop HEAP_MAX_ADDR, HEAP_MIN_SIZE ieee1275: claim more memory ieee1275: request memory with ibm,client-architecture-support docs/grub-dev.texi | 6 +- grub-core/kern/ieee1275/cmain.c | 5 +- grub-core/kern/ieee1275/init.c | 238 ++++++++++++++++++++++++++----- include/grub/ieee1275/ieee1275.h | 6 + 4 files changed, 219 insertions(+), 36 deletions(-) -- 2.27.0