From c6c8d5e375d329e54b52d193c10b66c091cab8ae Mon Sep 17 00:00:00 2001 From: Thi Tran Date: Wed, 22 Mar 2017 11:10:52 -0500 Subject: Attribute support of customization of Nimbus DD1 PCI reference clock speed. Change-Id: I5bb1646868fca15aca744b311ab5d2bc5dd64739 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38297 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Joseph J. McGill Reviewed-by: Matt K. Light Reviewed-by: Daniel M. Crowell Reviewed-by: Thi N. Tran Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38306 Tested-by: Daniel M. Crowell --- .../hwp/memory/lib/mss_attribute_accessors.H | 22 ++++++++++++++++++++++ .../xml/attribute_info/chip_ec_attributes.xml | 4 ++-- .../xml/attribute_info/nest_attributes.xml | 18 ++++++++++++++++++ .../fapi2/xml/attribute_info/hb_temp_defaults.xml | 4 ++++ .../targeting/common/xmltohb/attribute_types.xml | 1 + 5 files changed, 47 insertions(+), 2 deletions(-) diff --git a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H index 002df9591..101bceaf3 100644 --- a/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H +++ b/src/import/chips/p9/procedures/hwp/memory/lib/mss_attribute_accessors.H @@ -27378,6 +27378,28 @@ fapi_try_exit: return fapi2::current_err; } +/// +/// @brief ATTR_DD1_SLOW_PCI_REF_CLOCK getter +/// @param[out] uint8_t& reference to store the value +/// @note Generated by gen_accessors.pl generateParameters (SYSTEM) +/// @return fapi2::ReturnCode - FAPI2_RC_SUCCESS iff get is OK +/// @note MRW control to permit Normal (100 MHz) or Slow (94 MHz) operation of PCIE +/// reference clock. On Nimbus DD1 HW, Slow operation is required to achieve Gen4 +/// operation. Provided by the +/// MRW. +/// +inline fapi2::ReturnCode dd1_slow_pci_ref_clock(uint8_t& o_value) +{ + + FAPI_TRY( FAPI_ATTR_GET(fapi2::ATTR_DD1_SLOW_PCI_REF_CLOCK, fapi2::Target(), o_value) ); + return fapi2::current_err; + +fapi_try_exit: + FAPI_ERR("failed accessing ATTR_DD1_SLOW_PCI_REF_CLOCK: 0x%lx (system target)", + uint64_t(fapi2::current_err)); + return fapi2::current_err; +} + /// /// @brief ATTR_PROC_FABRIC_ASYNC_SAFE_MODE getter /// @param[out] uint8_t& reference to store the value diff --git a/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml index 7bdba09db..d7d0ad22a 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/chip_ec_attributes.xml @@ -1844,10 +1844,10 @@ - ATTR_CHIP_EC_FEATURE_SLOW_PCI_REF_CLOCK + ATTR_CHIP_EC_FEATURE_SLOW_PCI_REF_CLOCK_ENABLE TARGET_TYPE_PROC_CHIP - DD1 only: leverage SS PLL to provide reduced frequency reference clock + DD1 only: enable use of SS PLL to provide reduced frequency reference clock (94 MHz, instead of nominal 100 MHz) for PCI PLL diff --git a/src/import/chips/p9/procedures/xml/attribute_info/nest_attributes.xml b/src/import/chips/p9/procedures/xml/attribute_info/nest_attributes.xml index b146722f7..2411ca673 100644 --- a/src/import/chips/p9/procedures/xml/attribute_info/nest_attributes.xml +++ b/src/import/chips/p9/procedures/xml/attribute_info/nest_attributes.xml @@ -135,6 +135,24 @@ + + ATTR_DD1_SLOW_PCI_REF_CLOCK + TARGET_TYPE_SYSTEM + + MRW control to permit Normal (100 MHz) or Slow (94 MHz) operation + of PCIE reference clock. On Nimbus DD1 HW, Slow operation is required + to achieve Gen4 operation. + Provided by the MRW. + + uint8 + + NORMAL = 0x00, + SLOW = 0x01 + + + + + ATTR_PROC_FABRIC_ASYNC_SAFE_MODE TARGET_TYPE_SYSTEM diff --git a/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml b/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml index 3e114e76e..e4354a87d 100644 --- a/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml +++ b/src/import/hwpf/fapi2/xml/attribute_info/hb_temp_defaults.xml @@ -153,6 +153,10 @@ ATTR_PROC_EFF_FABRIC_CHIP_ID 0x0 + + ATTR_DD1_SLOW_PCI_REF_CLOCK + 0x01 + ATTR_SYSTEM_DISABLE_QUEUED_SCAN 0x00 diff --git a/src/usr/targeting/common/xmltohb/attribute_types.xml b/src/usr/targeting/common/xmltohb/attribute_types.xml index 929875b9b..a319a97a2 100644 --- a/src/usr/targeting/common/xmltohb/attribute_types.xml +++ b/src/usr/targeting/common/xmltohb/attribute_types.xml @@ -14792,6 +14792,7 @@ Measured in GB non-volatile + ATTR_DD1_SLOW_PCI_REF_CLOCK DIRECT -- cgit v1.2.1