From a5299c3192aa8b65eb2d24a5462be3382b4bef76 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Mon, 6 Feb 2023 20:29:49 +0000 Subject: [PATCH] ppc64le: cas5, take 3 Signed-off-by: Robbie Harwood --- 0301-Correction-in-vector-5-values.patch | 30 --------------- ... => 0301-mm-Clarify-grub_real_malloc.patch | 0 ...loc-Make-small-allocs-comment-match-.patch | 0 ....patch => 0303-mm-Document-grub_free.patch | 0 ...0304-mm-Document-grub_mm_init_region.patch | 0 ...-internal-memory-management-structur.patch | 0 ...e-preserve-header-vs-region-alignmen.patch | 0 ...-region-merge-with-region-after-as-w.patch | 0 ...-Debug-support-for-region-operations.patch | 0 ...p-unused-unloading-of-modules-on-OOM.patch | 0 ...ally-requesting-additional-memory-re.patch | 0 ...ys-request-a-fixed-number-of-pages-o.patch | 0 ...tract-function-to-add-memory-regions.patch | 0 ...ss-up-errors-from-add_memory_regions.patch | 0 ...-Implement-runtime-addition-of-pages.patch | 0 ...-default-memory-allocation-to-32-MiB.patch | 0 ...e-disk-caches-last-when-out-of-memor.patch | 0 ...17-ppc64le-signed-boot-media-changes.patch | 0 ...veral-implicit-function-declarations.patch | 0 ...le-shared-processor-mode-in-vector-5.patch | 26 +++++++++++++ grub.patches | 38 +++++++++---------- grub2.spec | 5 ++- 22 files changed, 49 insertions(+), 50 deletions(-) delete mode 100644 0301-Correction-in-vector-5-values.patch rename 0302-mm-Clarify-grub_real_malloc.patch => 0301-mm-Clarify-grub_real_malloc.patch (100%) rename 0303-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch => 0302-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch (100%) rename 0304-mm-Document-grub_free.patch => 0303-mm-Document-grub_free.patch (100%) rename 0305-mm-Document-grub_mm_init_region.patch => 0304-mm-Document-grub_mm_init_region.patch (100%) rename 0306-mm-Document-GRUB-internal-memory-management-structur.patch => 0305-mm-Document-GRUB-internal-memory-management-structur.patch (100%) rename 0307-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch => 0306-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch (100%) rename 0308-mm-When-adding-a-region-merge-with-region-after-as-w.patch => 0307-mm-When-adding-a-region-merge-with-region-after-as-w.patch (100%) rename 0309-mm-Debug-support-for-region-operations.patch => 0308-mm-Debug-support-for-region-operations.patch (100%) rename 0310-mm-Drop-unused-unloading-of-modules-on-OOM.patch => 0309-mm-Drop-unused-unloading-of-modules-on-OOM.patch (100%) rename 0311-mm-Allow-dynamically-requesting-additional-memory-re.patch => 0310-mm-Allow-dynamically-requesting-additional-memory-re.patch (100%) rename 0312-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch => 0311-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch (100%) rename 0313-kern-efi-mm-Extract-function-to-add-memory-regions.patch => 0312-kern-efi-mm-Extract-function-to-add-memory-regions.patch (100%) rename 0314-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch => 0313-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch (100%) rename 0315-kern-efi-mm-Implement-runtime-addition-of-pages.patch => 0314-kern-efi-mm-Implement-runtime-addition-of-pages.patch (100%) rename 0316-efi-Increase-default-memory-allocation-to-32-MiB.patch => 0315-efi-Increase-default-memory-allocation-to-32-MiB.patch (100%) rename 0317-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch => 0316-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch (100%) rename 0318-ppc64le-signed-boot-media-changes.patch => 0317-ppc64le-signed-boot-media-changes.patch (100%) rename 0319-core-Fix-several-implicit-function-declarations.patch => 0318-core-Fix-several-implicit-function-declarations.patch (100%) create mode 100644 0319-Enable-shared-processor-mode-in-vector-5.patch diff --git a/0301-Correction-in-vector-5-values.patch b/0301-Correction-in-vector-5-values.patch deleted file mode 100644 index 9be1f4a..0000000 --- a/0301-Correction-in-vector-5-values.patch +++ /dev/null @@ -1,30 +0,0 @@ -From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Avnish Chouhan -Date: Tue, 22 Nov 2022 08:01:47 -0500 -Subject: [PATCH] Correction in vector 5 values - -This patch is to update the vector 5 values which is troubling some -machines to bootup properly. Max out the values of all the properties of -Vector 5 (similar to vector 2) except max cpu property, which were set -as 0 earlier. - -Signed-off-by: Avnish Chouhan -[rharwood: rewrap comit message] -Signed-off-by: Robbie Harwood ---- - grub-core/kern/ieee1275/init.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c -index 6a51c9efab..28a3bd4621 100644 ---- a/grub-core/kern/ieee1275/init.c -+++ b/grub-core/kern/ieee1275/init.c -@@ -376,7 +376,7 @@ grub_ieee1275_ibm_cas (void) - .vec4 = 0x0001, // set required minimum capacity % to the lowest value - .vec5_size = 1 + sizeof(struct option_vector5) - 2, - .vec5 = { -- 0, 0, 0, 0, 0, 0, 0, 0, 256 -+ -1, -1, -1, -1, -1, -1, -1, -1, 256 - } - }; - diff --git a/0302-mm-Clarify-grub_real_malloc.patch b/0301-mm-Clarify-grub_real_malloc.patch similarity index 100% rename from 0302-mm-Clarify-grub_real_malloc.patch rename to 0301-mm-Clarify-grub_real_malloc.patch diff --git a/0303-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch b/0302-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch similarity index 100% rename from 0303-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch rename to 0302-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch diff --git a/0304-mm-Document-grub_free.patch b/0303-mm-Document-grub_free.patch similarity index 100% rename from 0304-mm-Document-grub_free.patch rename to 0303-mm-Document-grub_free.patch diff --git a/0305-mm-Document-grub_mm_init_region.patch b/0304-mm-Document-grub_mm_init_region.patch similarity index 100% rename from 0305-mm-Document-grub_mm_init_region.patch rename to 0304-mm-Document-grub_mm_init_region.patch diff --git a/0306-mm-Document-GRUB-internal-memory-management-structur.patch b/0305-mm-Document-GRUB-internal-memory-management-structur.patch similarity index 100% rename from 0306-mm-Document-GRUB-internal-memory-management-structur.patch rename to 0305-mm-Document-GRUB-internal-memory-management-structur.patch diff --git a/0307-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch b/0306-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch similarity index 100% rename from 0307-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch rename to 0306-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch diff --git a/0308-mm-When-adding-a-region-merge-with-region-after-as-w.patch b/0307-mm-When-adding-a-region-merge-with-region-after-as-w.patch similarity index 100% rename from 0308-mm-When-adding-a-region-merge-with-region-after-as-w.patch rename to 0307-mm-When-adding-a-region-merge-with-region-after-as-w.patch diff --git a/0309-mm-Debug-support-for-region-operations.patch b/0308-mm-Debug-support-for-region-operations.patch similarity index 100% rename from 0309-mm-Debug-support-for-region-operations.patch rename to 0308-mm-Debug-support-for-region-operations.patch diff --git a/0310-mm-Drop-unused-unloading-of-modules-on-OOM.patch b/0309-mm-Drop-unused-unloading-of-modules-on-OOM.patch similarity index 100% rename from 0310-mm-Drop-unused-unloading-of-modules-on-OOM.patch rename to 0309-mm-Drop-unused-unloading-of-modules-on-OOM.patch diff --git a/0311-mm-Allow-dynamically-requesting-additional-memory-re.patch b/0310-mm-Allow-dynamically-requesting-additional-memory-re.patch similarity index 100% rename from 0311-mm-Allow-dynamically-requesting-additional-memory-re.patch rename to 0310-mm-Allow-dynamically-requesting-additional-memory-re.patch diff --git a/0312-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch b/0311-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch similarity index 100% rename from 0312-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch rename to 0311-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch diff --git a/0313-kern-efi-mm-Extract-function-to-add-memory-regions.patch b/0312-kern-efi-mm-Extract-function-to-add-memory-regions.patch similarity index 100% rename from 0313-kern-efi-mm-Extract-function-to-add-memory-regions.patch rename to 0312-kern-efi-mm-Extract-function-to-add-memory-regions.patch diff --git a/0314-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch b/0313-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch similarity index 100% rename from 0314-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch rename to 0313-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch diff --git a/0315-kern-efi-mm-Implement-runtime-addition-of-pages.patch b/0314-kern-efi-mm-Implement-runtime-addition-of-pages.patch similarity index 100% rename from 0315-kern-efi-mm-Implement-runtime-addition-of-pages.patch rename to 0314-kern-efi-mm-Implement-runtime-addition-of-pages.patch diff --git a/0316-efi-Increase-default-memory-allocation-to-32-MiB.patch b/0315-efi-Increase-default-memory-allocation-to-32-MiB.patch similarity index 100% rename from 0316-efi-Increase-default-memory-allocation-to-32-MiB.patch rename to 0315-efi-Increase-default-memory-allocation-to-32-MiB.patch diff --git a/0317-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch b/0316-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch similarity index 100% rename from 0317-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch rename to 0316-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch diff --git a/0318-ppc64le-signed-boot-media-changes.patch b/0317-ppc64le-signed-boot-media-changes.patch similarity index 100% rename from 0318-ppc64le-signed-boot-media-changes.patch rename to 0317-ppc64le-signed-boot-media-changes.patch diff --git a/0319-core-Fix-several-implicit-function-declarations.patch b/0318-core-Fix-several-implicit-function-declarations.patch similarity index 100% rename from 0319-core-Fix-several-implicit-function-declarations.patch rename to 0318-core-Fix-several-implicit-function-declarations.patch diff --git a/0319-Enable-shared-processor-mode-in-vector-5.patch b/0319-Enable-shared-processor-mode-in-vector-5.patch new file mode 100644 index 0000000..ec540a7 --- /dev/null +++ b/0319-Enable-shared-processor-mode-in-vector-5.patch @@ -0,0 +1,26 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Avnish Chouhan +Date: Tue, 24 Jan 2023 08:01:47 -0500 +Subject: [PATCH] Enable shared processor mode in vector 5 + +This patch is to update the vector 5 which is troubling some +machines to bootup properly in shared processor mode. + +Signed-off-by: Avnish Chouhan +--- + grub-core/kern/ieee1275/init.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c +index 6a51c9efab..7c8b6facec 100644 +--- a/grub-core/kern/ieee1275/init.c ++++ b/grub-core/kern/ieee1275/init.c +@@ -376,7 +376,7 @@ grub_ieee1275_ibm_cas (void) + .vec4 = 0x0001, // set required minimum capacity % to the lowest value + .vec5_size = 1 + sizeof(struct option_vector5) - 2, + .vec5 = { +- 0, 0, 0, 0, 0, 0, 0, 0, 256 ++ 0, 192, 0, 128, 0, 0, 0, 0, 256 + } + }; + diff --git a/grub.patches b/grub.patches index a0cba84..8f3e180 100644 --- a/grub.patches +++ b/grub.patches @@ -298,22 +298,22 @@ Patch0297: 0297-font-Harden-grub_font_blit_glyph-and-grub_font_blit_.patch Patch0298: 0298-font-Assign-null_font-to-glyphs-in-ascii_font_glyph.patch Patch0299: 0299-normal-charset-Fix-an-integer-overflow-in-grub_unico.patch Patch0300: 0300-font-Try-opening-fonts-from-the-bundled-memdisk.patch -Patch0301: 0301-Correction-in-vector-5-values.patch -Patch0302: 0302-mm-Clarify-grub_real_malloc.patch -Patch0303: 0303-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch -Patch0304: 0304-mm-Document-grub_free.patch -Patch0305: 0305-mm-Document-grub_mm_init_region.patch -Patch0306: 0306-mm-Document-GRUB-internal-memory-management-structur.patch -Patch0307: 0307-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch -Patch0308: 0308-mm-When-adding-a-region-merge-with-region-after-as-w.patch -Patch0309: 0309-mm-Debug-support-for-region-operations.patch -Patch0310: 0310-mm-Drop-unused-unloading-of-modules-on-OOM.patch -Patch0311: 0311-mm-Allow-dynamically-requesting-additional-memory-re.patch -Patch0312: 0312-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch -Patch0313: 0313-kern-efi-mm-Extract-function-to-add-memory-regions.patch -Patch0314: 0314-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch -Patch0315: 0315-kern-efi-mm-Implement-runtime-addition-of-pages.patch -Patch0316: 0316-efi-Increase-default-memory-allocation-to-32-MiB.patch -Patch0317: 0317-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch -Patch0318: 0318-ppc64le-signed-boot-media-changes.patch -Patch0319: 0319-core-Fix-several-implicit-function-declarations.patch +Patch0301: 0301-mm-Clarify-grub_real_malloc.patch +Patch0302: 0302-mm-grub_real_malloc-Make-small-allocs-comment-match-.patch +Patch0303: 0303-mm-Document-grub_free.patch +Patch0304: 0304-mm-Document-grub_mm_init_region.patch +Patch0305: 0305-mm-Document-GRUB-internal-memory-management-structur.patch +Patch0306: 0306-mm-Assert-that-we-preserve-header-vs-region-alignmen.patch +Patch0307: 0307-mm-When-adding-a-region-merge-with-region-after-as-w.patch +Patch0308: 0308-mm-Debug-support-for-region-operations.patch +Patch0309: 0309-mm-Drop-unused-unloading-of-modules-on-OOM.patch +Patch0310: 0310-mm-Allow-dynamically-requesting-additional-memory-re.patch +Patch0311: 0311-kern-efi-mm-Always-request-a-fixed-number-of-pages-o.patch +Patch0312: 0312-kern-efi-mm-Extract-function-to-add-memory-regions.patch +Patch0313: 0313-kern-efi-mm-Pass-up-errors-from-add_memory_regions.patch +Patch0314: 0314-kern-efi-mm-Implement-runtime-addition-of-pages.patch +Patch0315: 0315-efi-Increase-default-memory-allocation-to-32-MiB.patch +Patch0316: 0316-mm-Try-invalidate-disk-caches-last-when-out-of-memor.patch +Patch0317: 0317-ppc64le-signed-boot-media-changes.patch +Patch0318: 0318-core-Fix-several-implicit-function-declarations.patch +Patch0319: 0319-Enable-shared-processor-mode-in-vector-5.patch diff --git a/grub2.spec b/grub2.spec index fa45fcf..eb3fe3f 100644 --- a/grub2.spec +++ b/grub2.spec @@ -17,7 +17,7 @@ Name: grub2 Epoch: 1 Version: 2.06 -Release: 82%{?dist} +Release: 83%{?dist} Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -544,6 +544,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg %endif %changelog +* Mon Feb 06 2023 Robbie Harwood - 2.06-83 +- ppc64le: cas5, take 3 + * Mon Feb 06 2023 Robbie Harwood - 2.06-82 - Fix implicit function declaration warnings