ppc64le: cas5, take 3

Signed-off-by: Robbie Harwood <rharwood@redhat.com>
This commit is contained in:
Robbie Harwood 2023-02-06 20:29:49 +00:00
parent 3a3516d360
commit a5299c3192
22 changed files with 49 additions and 50 deletions

View file

@ -1,30 +0,0 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Avnish Chouhan <avnish.chouhan@ibm.com>
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 <avnish.chouhan@ibm.com>
[rharwood: rewrap comit message]
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
---
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
}
};

View file

@ -0,0 +1,26 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Avnish Chouhan <avnish@linux.vnet.ibm.com>
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 <avnish@linux.vnet.ibm.com>
---
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
}
};

View file

@ -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

View file

@ -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 <rharwood@redhat.com> - 2.06-83
- ppc64le: cas5, take 3
* Mon Feb 06 2023 Robbie Harwood <rharwood@redhat.com> - 2.06-82
- Fix implicit function declaration warnings