From c93a932108c24f97395633cf3467895e30b8d042 Mon Sep 17 00:00:00 2001 From: Mike Jones Date: Tue, 10 Apr 2012 15:09:53 -0500 Subject: HWPF Attributes: Support ATTR_EXECUTION_PLATFORM Some HWPs (e.g. special wakeup) use different registers depending on which platform the HWP is executing on (FSP/Hostboot) to avoid arbitration problems when multiple platforms do the same thing concurrently. This attribute allows those HWPs to query the platform. Dean/John agree with this attribute. See RTC task 40409 for details. Change-Id: I761ba03b43905c7bdc268fae8ffb4c5796ece21b RTC: 40409 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/878 Tested-by: Jenkins Server Reviewed-by: Van H. Lee Reviewed-by: Brian H. Horton Reviewed-by: A. Patrick Williams III --- src/usr/hwpf/hwp/system_attributes.xml | 14 ++++++++++++++ src/usr/targeting/xmltohb/attribute_types.xml | 18 ++++++++++++++++++ src/usr/targeting/xmltohb/simics_MURANO.system.xml | 4 ++++ src/usr/targeting/xmltohb/simics_VENICE.system.xml | 4 ++++ src/usr/targeting/xmltohb/target_types.xml | 1 + src/usr/targeting/xmltohb/vbu.system.xml | 4 ++++ 6 files changed, 45 insertions(+) diff --git a/src/usr/hwpf/hwp/system_attributes.xml b/src/usr/hwpf/hwp/system_attributes.xml index 416c1c478..42cc0f2b5 100644 --- a/src/usr/hwpf/hwp/system_attributes.xml +++ b/src/usr/hwpf/hwp/system_attributes.xml @@ -28,6 +28,20 @@ --> + + + ATTR_EXECUTION_PLATFORM + TARGET_TYPE_SYSTEM + + Which execution platform the HW Procedure is running on + Some HWPs (e.g. special wakeup) use different registers for different + platforms to avoid arbitration problems when multiple platforms do + the same thing concurrently + + uint8 + HOST = 0x01, FSP = 0x02, OCC = 0x03 + + ATTR_IS_SIMULATION diff --git a/src/usr/targeting/xmltohb/attribute_types.xml b/src/usr/targeting/xmltohb/attribute_types.xml index f903b1819..bf4d73418 100644 --- a/src/usr/targeting/xmltohb/attribute_types.xml +++ b/src/usr/targeting/xmltohb/attribute_types.xml @@ -768,6 +768,24 @@ + + EXECUTION_PLATFORM + + Which execution platform the HW Procedure is running on + Some HWPs (e.g. special wakeup) use different registers for different + platforms to avoid arbitration problems when multiple platforms do + the same thing concurrently + HOST = 0x01, FSP = 0x02, OCC = 0x03 + + + non-volatile + + + ATTR_EXECUTION_PLATFORM + DIRECT + + + IS_SIMULATION env: 1 = Awan/HWSimulator. 0 = Simics/RealHW. diff --git a/src/usr/targeting/xmltohb/simics_MURANO.system.xml b/src/usr/targeting/xmltohb/simics_MURANO.system.xml index 55a691c55..8daa36ddf 100644 --- a/src/usr/targeting/xmltohb/simics_MURANO.system.xml +++ b/src/usr/targeting/xmltohb/simics_MURANO.system.xml @@ -43,6 +43,10 @@ sys0 sys-sys-power8 + + EXECUTION_PLATFORM + 1 + PHYS_PATH physical:sys-0 diff --git a/src/usr/targeting/xmltohb/simics_VENICE.system.xml b/src/usr/targeting/xmltohb/simics_VENICE.system.xml index 2049ec91f..78a24462e 100644 --- a/src/usr/targeting/xmltohb/simics_VENICE.system.xml +++ b/src/usr/targeting/xmltohb/simics_VENICE.system.xml @@ -43,6 +43,10 @@ sys0 sys-sys-power8 + + EXECUTION_PLATFORM + 1 + PHYS_PATH physical:sys-0 diff --git a/src/usr/targeting/xmltohb/target_types.xml b/src/usr/targeting/xmltohb/target_types.xml index 1f37ee0b5..6c82124f1 100644 --- a/src/usr/targeting/xmltohb/target_types.xml +++ b/src/usr/targeting/xmltohb/target_types.xml @@ -53,6 +53,7 @@ TYPESYS MODELPOWER8 HUID0x00010000 + EXECUTION_PLATFORM SCRATCH_UINT8_1 SCRATCH_UINT8_2 SCRATCH_UINT32_1 diff --git a/src/usr/targeting/xmltohb/vbu.system.xml b/src/usr/targeting/xmltohb/vbu.system.xml index 051a539fd..3d4f672fd 100644 --- a/src/usr/targeting/xmltohb/vbu.system.xml +++ b/src/usr/targeting/xmltohb/vbu.system.xml @@ -31,6 +31,10 @@ sys0 sys-sys-power8 + + EXECUTION_PLATFORM + 1 + PHYS_PATH physical:sys-0 -- cgit v1.2.1