Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1maCF7-0006qR-1H for mharc-grub-devel@gnu.org; Tue, 12 Oct 2021 03:30:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maCEz-0006qD-HW for grub-devel@gnu.org; Tue, 12 Oct 2021 03:30:25 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:38878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maCEx-0006CY-8x for grub-devel@gnu.org; Tue, 12 Oct 2021 03:30:24 -0400 Received: by mail-pf1-x436.google.com with SMTP id k26so16889518pfi.5 for ; Tue, 12 Oct 2021 00:30:22 -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=4JSQdR1wCuUobBr6lfFELBWhjdIU81NmxILLdiibUEA=; b=FBbozX+DRUGzJO+nbG8NAWJBm8wGqkfaoApaBQ6hQ0ieDAXDwwGrh6YMfTJjMW/RcY +p+Y9A0JwLIxP17qdvbebTYri4y6FzAJDcaDAyk8K2y7bSQQdAKfquYAe0MFblpm5KzJ 6zeHByPRrg96ntNIQRcIdGsfj/9akO9OAs2Oc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4JSQdR1wCuUobBr6lfFELBWhjdIU81NmxILLdiibUEA=; b=5G4i+qxgsfrPXJI+ZBZyMaDCY3Pp9UoZAs0y56hdIu0mhNX4I3ZosiOHckKUohqkJA NlfykaOJDJXVy3bxhsznE1CLsGEi2t572YWpVcfruQ9DT76Tg3RkPBvzFOeU2WENiAe/ EYO5AfowyvXXmyMyUqWqTHuM7i+9YRq7mWyfhLiqerqbFs9Pm/WFo9AYIOgAVfjPJJ8+ 0gazRFy7/ASDBbydIn3FeDQfOpW/2JLVEkM+e/2MaQkSB3fIe4sX8+cSrcFJ71ESPztS luoRNIMdK1VuqBhRDl7VAHLh4kGnpHNasOnk3irkQGxING1KRGFmIpR7Ow4NNhWQLPJ+ XL1g== X-Gm-Message-State: AOAM530rlg1m28fYtuaKbqWsjWIq7109X2IIp0HEOe1+hJfKecQ/M3g1 n1wQkPe0GFO3uIOAc3k9JL4PuX2Xzdvxwg== X-Google-Smtp-Source: ABdhPJwiTD5R8+XGHKx8fKNc9Hin2Uh0lLarENRphAFp6UgbPBq2hvZMUUBztQN4Gay55utJwdE80A== X-Received: by 2002:a62:7cd8:0:b0:44d:4574:ea8a with SMTP id x207-20020a627cd8000000b0044d4574ea8amr36134pfc.80.1634023820728; Tue, 12 Oct 2021 00:30:20 -0700 (PDT) Received: from localhost ([2001:4479:e300:600:41fe:d15:934f:4029]) by smtp.gmail.com with ESMTPSA id i12sm10471431pgd.56.2021.10.12.00.30.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 00:30:20 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: leif@nuviainc.com, stefanb@linux.ibm.com, ps@pks.im, dkiper@net-space.pl, Daniel Axtens Subject: [PATCH 00/19] Requesting more memory from firmware Date: Tue, 12 Oct 2021 18:29:49 +1100 Message-Id: <20211012073008.4059133-1-dja@axtens.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=dja@axtens.net; helo=mail-pf1-x436.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: Tue, 12 Oct 2021 07:30:26 -0000 Hi, This extends Patrick's work on adding the ability to dynamically request more memory from firmware. It now supports powerpc-ieee1275 - I can allocate pretty large chunks of memory and still successfully boot under both SLOF and Power8 PFW. Structure of the series: - Patches 1 & 2: little patches to fix tests. Probably mergeable as-is. - Patch 3: Document some mm structures. Hopefully mergable as-is. - Patch 4: internal mm consistency check. - Patch 5: enhance the algorithm for merging a new region into an existing region. - Patch 6: pass MM_DEBUG from configure into config.h - Patch 7: a tool to test large memory allocations - Patches 8-13: Patrick's series with some minor tweaks - Patches 14-16: ieee1275 support - Patches 17-18: debug print patches - Patch 19: an RFC suggesting a possible improvement to Patrick's series. Kind regards, Daniel Daniel Axtens (12): grub-shell: pseries: don't pass fw_opt to qemu mm: document grub internal memory management structures mm: assert that we preserve header vs region alignment mm: when adding a region, merge with region after as well as before configure: properly pass through MM_DEBUG Add memtool module with memory allocation stress-test ieee1275: request memory with ibm,client-architecture-support ieee1275: drop len -= 1 quirk in heap_init ieee1275: support runtime memory claiming [not for merge] print more debug info in mm [not for merge] ieee1275 debugging info RFC: Ignore REGION_CONSECUTIVE Glenn Washburn (1): grub-shell: Boot PowerPC using PMU instead of CUDA for power management Patrick Steinhardt (6): mm: Drop unused unloading of modules on OOM mm: Allow dynamically requesting additional memory regions efi: mm: Always request a fixed number of pages on init efi: mm: Extract function to add memory regions efi: mm: Pass up errors from `add_memory_regions ()` efi: mm: Implement runtime addition of pages