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

Claudio Carvalho cclaudio at linux.vnet.ibm.com
Thu Aug 11 16:30:12 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 8742c7a..0efd636 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -2263,7 +2263,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",
@@ -4700,7 +4700,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