Skip to content

Commit

Permalink
PM: Incorporated support for enabling/disabling queued scan mode.
Browse files Browse the repository at this point in the history
Populates a bit in CME flag field of CME's image header. Given CME flag
is expected to be read by CME Hcode to decide if queued scanning is to be
supported.

- Rebased

Change-Id: Ie2a5291c393b140266a5d2ed204f54d83f390199
RTC:160171
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30520
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Michael S. Floyd <mfloyd@us.ibm.com>
Reviewed-by: AMIT KUMAR <akumar3@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31957
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
  • Loading branch information
premsjha authored and crgeddes committed Mar 15, 2017
1 parent 51b0739 commit 0e588da
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 1 deletion.
Expand Up @@ -353,6 +353,7 @@ HCD_CONST(CME_STOP_4_TO_2_BIT_POS, 0x40000000)
HCD_CONST(CME_STOP_5_TO_4_BIT_POS, 0x20000000)
HCD_CONST(CME_STOP_8_TO_5_BIT_POS, 0x10000000)
HCD_CONST(CME_STOP_11_TO_8_BIT_POS, 0x08000000)
HCD_CONST(CME_QUEUED_SCAN_DISABLE, 0x00000002)
HCD_CONST(CME_SKIP_CORE_POWEROFF_BIT_POS, 0x00000001)

/// CME Hcode
Expand Down
12 changes: 12 additions & 0 deletions src/import/chips/p9/procedures/hwp/pm/p9_hcode_image_build.C
Expand Up @@ -733,6 +733,18 @@ extern "C"

FAPI_DBG("CME Instruction Trace Enabled : %s", attrVal ? "TRUE" : "FALSE" );

FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_SYSTEM_DISABLE_QUEUED_SCAN,
FAPI_SYSTEM,
attrVal),
"Error from FAPI_ATTR_GET for attribute ATTR_SYSTEM_DISABLE_QUEUED_SCAN" );

if( attrVal )
{
cmeFlag |= CME_QUEUED_SCAN_DISABLE;
}

FAPI_DBG("QUEUED_SCAN_DISABLE : %s", attrVal ? "TRUE" : "FALSE" );

// Set PGPE Header Flags from Attributes
FAPI_DBG(" -------------------- PGPE Flags -----------------");
pgpeFlags.value = 0;
Expand Down
Expand Up @@ -35,7 +35,7 @@ HCODE_UTIL+=$(ROOTPATH)/chips/p9/procedures/hwp/nest

lib$(PROCEDURE)_DEPLIBS += p9_scan_ring_util
lib$(PROCEDURE)_DEPLIBS += p9_xip_image
lib$(PROCEDURE)_DEPLIBS +=p9_pstate_parameter_block
lib$(PROCEDURE)_DEPLIBS += p9_pstate_parameter_block
lib$(PROCEDURE)_DEPLIBS += p9_tor
lib$(PROCEDURE)_DEPLIBS += p9_ringId
lib$(PROCEDURE)_DEPLIBS += p9_stop_util
Expand Down
Expand Up @@ -1547,6 +1547,21 @@
<platInit/>
</attribute>
<!-- ********************************************************************* -->
<attribute>
<id>ATTR_SYSTEM_DISABLE_QUEUED_SCAN</id>
<targetType>TARGET_TYPE_SYSTEM</targetType>
<description>
Queued scan mode disable status. This attribute eventually decides if queued
scan is to be supported by CME Hcode.

Consumers: p9_hcode_image_build
</description>
<valueType>uint8</valueType>
<enum>FALSE = 0x00, TRUE = 0x01</enum>
<platInit/>
<initToZero/>
</attribute>
<!-- ********************************************************************* -->
<attribute>
<id>ATTR_PERF_24x7_INVOCATION_TIME_MS</id>
<description>
Expand Down
4 changes: 4 additions & 0 deletions src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml
Expand Up @@ -143,6 +143,10 @@
<id>ATTR_PROC_EFF_FABRIC_CHIP_ID</id>
<default>0x0</default>
</attribute>
<attribute>
<id>ATTR_SYSTEM_DISABLE_QUEUED_SCAN</id>
<default>0x00</default>
</attribute>

<!-- =====================================================================
End of temporary definitions
Expand Down
21 changes: 21 additions & 0 deletions src/usr/targeting/common/xmltohb/attribute_types.xml
Expand Up @@ -33415,4 +33415,25 @@ Measured in GB</description>
<writeable/>
</attribute>



<attribute>
<id>SYSTEM_DISABLE_QUEUED_SCAN</id>
<description>
Queued scan mode disable status. This attribute eventually decides if queued
scan is to be supported by CME Hcode.

Consumers: p9_hcode_image_build
</description>
<simpleType>
<uint8_t></uint8_t>
</simpleType>
<persistency>volatile-zeroed</persistency>
<readable/>
<hwpfToHbAttrMap>
<id>ATTR_SYSTEM_DISABLE_QUEUED_SCAN</id>
<macro>DIRECT</macro>
</hwpfToHbAttrMap>
</attribute>

</attributes>
1 change: 1 addition & 0 deletions src/usr/targeting/common/xmltohb/target_types.xml
Expand Up @@ -914,6 +914,7 @@
<attribute><id>NEST_LEAKAGE_PERCENT</id></attribute>
<attribute><id>MSS_MRW_DRAM_WRITE_CRC</id></attribute>
<attribute><id>PGPE_HCODE_FUNCTION_ENABLE</id></attribute>
<attribute><id>SYSTEM_DISABLE_QUEUED_SCAN</id></attribute>
</targetType>

<!-- enc-node-power9 -->
Expand Down

0 comments on commit 0e588da

Please sign in to comment.