[Skiboot] [PATCH v2 04/12] hw/phb3.c: preload the whole CAPP partition

Claudio Carvalho cclaudio at linux.vnet.ibm.com
Wed Sep 28 18:10:54 AEST 2016


This change preloads the whole CAPP partition.

We decided to build a container for the whole CAPP lid as opposed to
have one for the TOC and one for each subpartition.

Signed-off-by: Claudio Carvalho <cclaudio at linux.vnet.ibm.com>
---
 hw/phb3.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/phb3.c b/hw/phb3.c
index d0b5010..eb30c36 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -2272,7 +2272,7 @@ static int64_t capp_lid_download(void)
 
 	capp_ucode_info.load_result = wait_for_resource_loaded(
 		RESOURCE_ID_CAPP,
-		capp_ucode_info.ec_level);
+		RESOURCE_SUBID_NONE);
 
 	if (capp_ucode_info.load_result != OPAL_SUCCESS) {
 		prerror("CAPP: Error loading ucode lid. index=%x\n",
@@ -4706,7 +4706,7 @@ int phb3_preload_capp_ucode(void)
 
 	printf("CAPI: Preloading ucode %x\n", capp_ucode_info.ec_level);
 
-	ret = start_preload_resource(RESOURCE_ID_CAPP, index,
+	ret = start_preload_resource(RESOURCE_ID_CAPP, RESOURCE_SUBID_NONE,
 				     capp_ucode_info.lid,
 				     &capp_ucode_info.size);
 
-- 
1.9.1



More information about the Skiboot mailing list