Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1ljDrk-0002Kd-Gq for mharc-grub-devel@gnu.org; Wed, 19 May 2021 00:31:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37998) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljDre-0002J7-Az for grub-devel@gnu.org; Wed, 19 May 2021 00:31:23 -0400 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]:42832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljDrc-00052z-FZ for grub-devel@gnu.org; Wed, 19 May 2021 00:31:22 -0400 Received: by mail-pg1-x536.google.com with SMTP id f22so7604905pgb.9 for ; Tue, 18 May 2021 21:31:18 -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=EbRo21QcRSHCTxzSKdVgo0KLYEpo/FizwK7bv0iL/JM=; b=fSP0Ib/X4FjaDu3aTwjt1gg04wLMFNvS7fGzT9jAzXj7w7/8APZzqTqzsENrS1rZTY kQHdKfxUaWZqX/FPweDvdWR6BkXRr0L+A6qux6mxohrMMEiT4CteWKHNoibYw1+jA1kr bS7dinHfw7PgTK5v7H3D/fhF7SbQRYyu0Fs2M= 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=EbRo21QcRSHCTxzSKdVgo0KLYEpo/FizwK7bv0iL/JM=; b=Z/yN+CYJQvlg0+v3w0b6/HYXCnzqf2Gz6CwjLcK8l7ewtALEW+MSQVZyPXo7VY7rEc L9XF0FlUhXLI8V0id78Pg3m57H/058uXj5mOQeOZFVU0fhLkA0o3b/EB/te8pLbqlDgH p3MfbzC3BPH0h6/e7dhxDGWiiIQPVBEJ+r6CsgC8Ego6Mtas0qiBBrpMiSav5UjwNPkL 5exXV05dIU4xetB/73GVdJL8jLUa18jgYG2bdXWiYI71NKFsbokS8XJis+MCUaPu2SR0 SGzJrZ4aS+J0LF1UdX2VzP9lhRR6Dw8DZK99bag2V6qo/mzY1/AHVYGxOo0mqkHzfhLk a+YQ== X-Gm-Message-State: AOAM531CD+/hHhqWYuIIcPCR9ByrnQcodEU7T65ZPQa7Goyg11nxLrNS cCVg0zPKiNu4O/Xx/TpB/yTKNL47Xz+1sw== X-Google-Smtp-Source: ABdhPJx28PIMiUDkeILznO4fipq+6M0WKh2QXEJVLSnLsYkCZvsCnCPwZqyL5hvsOl5Zl3RL/qiESg== X-Received: by 2002:a63:231a:: with SMTP id j26mr8867781pgj.77.1621398677615; Tue, 18 May 2021 21:31:17 -0700 (PDT) Received: from localhost (110-175-254-242.static.tpgi.com.au. [110.175.254.242]) by smtp.gmail.com with ESMTPSA id b2sm3045882pji.28.2021.05.18.21.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 21:31:16 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: Daniel Axtens Subject: [PATCH v2 0/3] ieee1275: find and claim more memory Date: Wed, 19 May 2021 14:31:08 +1000 Message-Id: <20210519043111.667796-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::536; envelope-from=dja@axtens.net; helo=mail-pg1-x536.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: Wed, 19 May 2021 04:31:24 -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 v2: fix the bug where I mixed up model and compatible. 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 | 3 + grub-core/kern/ieee1275/init.c | 238 ++++++++++++++++++++++++++----- include/grub/ieee1275/ieee1275.h | 6 + 4 files changed, 218 insertions(+), 35 deletions(-) -- 2.27.0