ieee1275: implement vec5 for cas negotiation
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
This commit is contained in:
parent
714559fb3d
commit
c814f068c6
70
0281-ieee1275-implement-vec5-for-cas-negotiation.patch
Normal file
70
0281-ieee1275-implement-vec5-for-cas-negotiation.patch
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Diego Domingos <diegodo@linux.vnet.ibm.com>
|
||||||
|
Date: Thu, 25 Aug 2022 11:37:56 -0400
|
||||||
|
Subject: [PATCH] ieee1275: implement vec5 for cas negotiation
|
||||||
|
|
||||||
|
As a legacy support, if the vector 5 is not implemented, Power
|
||||||
|
Hypervisor will consider the max CPUs as 64 instead 256 currently
|
||||||
|
supported during client-architecture-support negotiation.
|
||||||
|
|
||||||
|
This patch implements the vector 5 and set the MAX CPUs to 256 while
|
||||||
|
setting the others values to 0 (default).
|
||||||
|
|
||||||
|
Signed-off-by: Diego Domingos <diegodo@linux.vnet.ibm.com>
|
||||||
|
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
||||||
|
---
|
||||||
|
grub-core/kern/ieee1275/init.c | 20 +++++++++++++++++++-
|
||||||
|
1 file changed, 19 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/grub-core/kern/ieee1275/init.c b/grub-core/kern/ieee1275/init.c
|
||||||
|
index ef55107467..6a51c9efab 100644
|
||||||
|
--- a/grub-core/kern/ieee1275/init.c
|
||||||
|
+++ b/grub-core/kern/ieee1275/init.c
|
||||||
|
@@ -311,6 +311,18 @@ struct option_vector2 {
|
||||||
|
grub_uint8_t max_pft_size;
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
+struct option_vector5 {
|
||||||
|
+ grub_uint8_t byte1;
|
||||||
|
+ grub_uint8_t byte2;
|
||||||
|
+ grub_uint8_t byte3;
|
||||||
|
+ grub_uint8_t cmo;
|
||||||
|
+ grub_uint8_t associativity;
|
||||||
|
+ grub_uint8_t bin_opts;
|
||||||
|
+ grub_uint8_t micro_checkpoint;
|
||||||
|
+ grub_uint8_t reserved0;
|
||||||
|
+ grub_uint32_t max_cpus;
|
||||||
|
+} __attribute__((packed));
|
||||||
|
+
|
||||||
|
struct pvr_entry {
|
||||||
|
grub_uint32_t mask;
|
||||||
|
grub_uint32_t entry;
|
||||||
|
@@ -329,6 +341,8 @@ struct cas_vector {
|
||||||
|
grub_uint16_t vec3;
|
||||||
|
grub_uint8_t vec4_size;
|
||||||
|
grub_uint16_t vec4;
|
||||||
|
+ grub_uint8_t vec5_size;
|
||||||
|
+ struct option_vector5 vec5;
|
||||||
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
/* Call ibm,client-architecture-support to try to get more RMA.
|
||||||
|
@@ -349,7 +363,7 @@ grub_ieee1275_ibm_cas (void)
|
||||||
|
} args;
|
||||||
|
struct cas_vector vector = {
|
||||||
|
.pvr_list = { { 0x00000000, 0xffffffff } }, /* any processor */
|
||||||
|
- .num_vecs = 4 - 1,
|
||||||
|
+ .num_vecs = 5 - 1,
|
||||||
|
.vec1_size = 0,
|
||||||
|
.vec1 = 0x80, /* ignore */
|
||||||
|
.vec2_size = 1 + sizeof(struct option_vector2) - 2,
|
||||||
|
@@ -360,6 +374,10 @@ grub_ieee1275_ibm_cas (void)
|
||||||
|
.vec3 = 0x00e0, // ask for FP + VMX + DFP but don't halt if unsatisfied
|
||||||
|
.vec4_size = 2 - 1,
|
||||||
|
.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
|
||||||
|
+ }
|
||||||
|
};
|
||||||
|
|
||||||
|
INIT_IEEE1275_COMMON (&args.common, "call-method", 3, 2);
|
@ -278,3 +278,4 @@ Patch0277: 0277-Try-reserving-less-ram.patch
|
|||||||
Patch0278: 0278-squish-don-t-dup-rhgb-quiet-check-mtimes.patch
|
Patch0278: 0278-squish-don-t-dup-rhgb-quiet-check-mtimes.patch
|
||||||
Patch0279: 0279-squish-give-up-on-rhgb-quiet.patch
|
Patch0279: 0279-squish-give-up-on-rhgb-quiet.patch
|
||||||
Patch0280: 0280-squish-BLS-only-write-etc-kernel-cmdline-if-writable.patch
|
Patch0280: 0280-squish-BLS-only-write-etc-kernel-cmdline-if-writable.patch
|
||||||
|
Patch0281: 0281-ieee1275-implement-vec5-for-cas-negotiation.patch
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
Name: grub2
|
Name: grub2
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 2.06
|
Version: 2.06
|
||||||
Release: 52%{?dist}
|
Release: 53%{?dist}
|
||||||
Summary: Bootloader with support for Linux, Multiboot and more
|
Summary: Bootloader with support for Linux, Multiboot and more
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://www.gnu.org/software/grub/
|
URL: http://www.gnu.org/software/grub/
|
||||||
@ -530,6 +530,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 25 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-53
|
||||||
|
- ieee1275: implement vec5 for cas negotiation
|
||||||
|
|
||||||
* Wed Aug 17 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-52
|
* Wed Aug 17 2022 Robbie Harwood <rharwood@redhat.com> - 2.06-52
|
||||||
- Handle ostree's non-writable /etc/kernel
|
- Handle ostree's non-writable /etc/kernel
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user