-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p9_io_dmi_attr_update -- initial release
This HWP is intended to provide a placeholder for user-specified DMI related attribute overrides in the IPL flow. Committing an empty shell HWP to satisfy the platform linkage. Change-Id: I3bd324403dec1f1d099e607c9cbfd2bb8bb335c8 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/39597 Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: Benjamin Gass <bgass@us.ibm.com> Reviewed-by: Christopher W. Steffen <cwsteffen@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Dev-Ready: Brent Wieman <bwieman@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45324 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
- Loading branch information
Showing
3 changed files
with
170 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
src/import/chips/p9/procedures/hwp/io/p9_io_dmi_attr_update.C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* IBM_PROLOG_BEGIN_TAG */ | ||
/* This is an automatically generated prolog. */ | ||
/* */ | ||
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_dmi_attr_update.C $ */ | ||
/* */ | ||
/* OpenPOWER HostBoot Project */ | ||
/* */ | ||
/* Contributors Listed Below - COPYRIGHT 2017 */ | ||
/* [+] International Business Machines Corp. */ | ||
/* */ | ||
/* */ | ||
/* Licensed under the Apache License, Version 2.0 (the "License"); */ | ||
/* you may not use this file except in compliance with the License. */ | ||
/* You may obtain a copy of the License at */ | ||
/* */ | ||
/* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
/* */ | ||
/* Unless required by applicable law or agreed to in writing, software */ | ||
/* distributed under the License is distributed on an "AS IS" BASIS, */ | ||
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ | ||
/* implied. See the License for the specific language governing */ | ||
/* permissions and limitations under the License. */ | ||
/* */ | ||
/* IBM_PROLOG_END_TAG */ | ||
/// | ||
/// @file p9_io_dmi_attr_update.C | ||
/// @brief Stub to permit DMI related attribute overrides (FAPI2) | ||
/// | ||
//---------------------------------------------------------------------------- | ||
// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com> | ||
// *HWP HWP Backup Owner: Gary Peterson <garyp@us.ibm.com> | ||
// *HWP FW Owner : Sumit Kumar <sumit_kumar@in.ibm.com> | ||
// *HWP Team : IO | ||
// *HWP Level : 3 | ||
// *HWP Consumed by : HB | ||
//---------------------------------------------------------------------------- | ||
|
||
//------------------------------------------------------------------------------ | ||
// Includes | ||
//------------------------------------------------------------------------------ | ||
#include <p9_io_dmi_attr_update.H> | ||
|
||
//------------------------------------------------------------------------------ | ||
// Function definitions | ||
//------------------------------------------------------------------------------ | ||
|
||
/** | ||
* @brief HWP to permit DMI related attribute overrides | ||
* Should be called for all valid/connected DMI endpoints | ||
* @param[in] i_target Reference to DMI chiplet target | ||
* @param[in] i_connected_target Reference to connected Centaur chip target | ||
* @return FAPI2_RC_SUCCESS on success, error otherwise | ||
*/ | ||
fapi2::ReturnCode p9_io_dmi_attr_update( | ||
const fapi2::Target<fapi2::TARGET_TYPE_DMI>& i_target, | ||
const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& i_connected_target) | ||
{ | ||
// mark HWP entry | ||
FAPI_INF("p9_io_dmi_attr_update: Entering ..."); | ||
|
||
// mark HWP exit | ||
FAPI_INF("p9_io_dmi_attr_update: ...Exiting"); | ||
|
||
return fapi2::FAPI2_RC_SUCCESS; | ||
} |
78 changes: 78 additions & 0 deletions
78
src/import/chips/p9/procedures/hwp/io/p9_io_dmi_attr_update.H
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* IBM_PROLOG_BEGIN_TAG */ | ||
/* This is an automatically generated prolog. */ | ||
/* */ | ||
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_dmi_attr_update.H $ */ | ||
/* */ | ||
/* OpenPOWER HostBoot Project */ | ||
/* */ | ||
/* Contributors Listed Below - COPYRIGHT 2017 */ | ||
/* [+] International Business Machines Corp. */ | ||
/* */ | ||
/* */ | ||
/* Licensed under the Apache License, Version 2.0 (the "License"); */ | ||
/* you may not use this file except in compliance with the License. */ | ||
/* You may obtain a copy of the License at */ | ||
/* */ | ||
/* http://www.apache.org/licenses/LICENSE-2.0 */ | ||
/* */ | ||
/* Unless required by applicable law or agreed to in writing, software */ | ||
/* distributed under the License is distributed on an "AS IS" BASIS, */ | ||
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or */ | ||
/* implied. See the License for the specific language governing */ | ||
/* permissions and limitations under the License. */ | ||
/* */ | ||
/* IBM_PROLOG_END_TAG */ | ||
/// | ||
/// @file p9_io_dmi_attr_update.H | ||
/// @brief Stub to permit DMI related attribute overrides (FAPI2) | ||
/// | ||
//---------------------------------------------------------------------------- | ||
// *HWP HWP Owner : Chris Steffen <cwsteffen@us.ibm.com> | ||
// *HWP HWP Backup Owner: Gary Peterson <garyp@us.ibm.com> | ||
// *HWP FW Owner : Sumit Kumar <sumit_kumar@in.ibm.com> | ||
// *HWP Team : IO | ||
// *HWP Level : 3 | ||
// *HWP Consumed by : HB | ||
//---------------------------------------------------------------------------- | ||
|
||
|
||
#ifndef P9_IO_DMI_ATTR_UPDATE_H_ | ||
#define P9_IO_DMI_ATTR_UPDATE_H_ | ||
|
||
//------------------------------------------------------------------------------ | ||
// Includes | ||
//------------------------------------------------------------------------------ | ||
#include <fapi2.H> | ||
|
||
//------------------------------------------------------------------------------ | ||
// Structure definitions | ||
//------------------------------------------------------------------------------ | ||
|
||
// function pointer typedef definition for HWP call support | ||
typedef fapi2::ReturnCode (*p9_io_dmi_attr_update_FP_t) | ||
(const fapi2::Target<fapi2::TARGET_TYPE_DMI>& i_target, | ||
const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& i_connected_target); | ||
|
||
extern "C" { | ||
|
||
//------------------------------------------------------------------------------ | ||
// Function prototypes | ||
//------------------------------------------------------------------------------ | ||
|
||
/** | ||
* @brief HWP to permit DMI related attribute overrides | ||
* | ||
* Should be called for all valid/connected DMI endpoints | ||
* | ||
* @param[in] i_target Reference to DMI chiplet target | ||
* @param[in] i_connected_target Reference to connected Centaur chip target | ||
* | ||
* @return FAPI2_RC_SUCCESS on success, error otherwise | ||
*/ | ||
fapi2::ReturnCode p9_io_dmi_attr_update( | ||
const fapi2::Target<fapi2::TARGET_TYPE_DMI>& i_target, | ||
const fapi2::Target<fapi2::TARGET_TYPE_MEMBUF_CHIP>& i_connected_target); | ||
|
||
} // extern "C" | ||
|
||
#endif // P9_IO_DMI_ATTR_UPDATE_H_ |
27 changes: 27 additions & 0 deletions
27
src/import/chips/p9/procedures/hwp/io/p9_io_dmi_attr_update.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# IBM_PROLOG_BEGIN_TAG | ||
# This is an automatically generated prolog. | ||
# | ||
# $Source: src/import/chips/p9/procedures/hwp/io/p9_io_dmi_attr_update.mk $ | ||
# | ||
# OpenPOWER HostBoot Project | ||
# | ||
# Contributors Listed Below - COPYRIGHT 2017 | ||
# [+] International Business Machines Corp. | ||
# | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
# implied. See the License for the specific language governing | ||
# permissions and limitations under the License. | ||
# | ||
# IBM_PROLOG_END_TAG | ||
|
||
PROCEDURE=p9_io_dmi_attr_update | ||
$(call BUILD_PROCEDURE) |