From 47f5faba380312fe6d87ad4acca436686afdb244 Mon Sep 17 00:00:00 2001 From: Prem Shanker Jha Date: Tue, 11 Dec 2018 05:37:48 -0600 Subject: SMF: Populates unsecure HOMER with SC2 instruction. On an SMF enabled system, if HV engages self save, core must must transition from HV to UV privilege to accomplish this. So, before attempting self save, core must execute SC2 instruction with HV privilege inorder to be a UV. Commit is a partial implementaiton of this solution. It populates a buffer with SC2 instruction which hostboot will copy to an unsecure memory. - Updated attribute tags for MRW Hiding - Removed writing of ATTR_UNSECURE_HOMER_SIZE in deference to attribute default checking Key_Cronus_Test=PM_REGRESS Change-Id: Idb5e219e2a5f9b2274602aedc420f390f34f2609 RTC: 202400 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69655 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: HWSV CI Tested-by: Hostboot CI Tested-by: Cronus HW CI Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA Reviewed-by: Gregory S. Still Dev-Ready: Gregory S. Still Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/69661 Reviewed-by: RAJA DAS --- .../chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/import/chips/p9/procedures') diff --git a/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml index 13dc10dd..e35db500 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/pm_plat_attributes.xml @@ -2604,7 +2604,7 @@ ATTR_UNSECURE_HOMER_SIZE TARGET_TYPE_SYSTEM - Size of memory which hostboot must copy from a temp buffer to + Size of memory in bytes which hostboot must copy from a temp buffer to an unsecure region of main store memory. Once HOMER is built, hostboot reads the attribute and copies the amount of memory specified in this attribute from a temp buffer to an unsecure region of main memory specifed in an attribute @@ -2612,8 +2612,9 @@ Producer: Initialized by hostboot firmware based on platform support Consumers: Read by p9_hcode_image_build.C - + uint32 - + + 1024 -- cgit v1.2.1