diff options
| author | Mike Baiocchi <mbaiocch@us.ibm.com> | 2016-11-04 11:30:17 -0500 |
|---|---|---|
| committer | William G. Hoffa <wghoffa@us.ibm.com> | 2017-03-08 11:06:34 -0500 |
| commit | c3d233bbaf7a2f274147d16edbc080bae0ffd714 (patch) | |
| tree | 8058bc8e764135eecc21cdcd1177814dd4e180c8 /src/include/usr/runtime | |
| parent | 1301e43641f7d3f315a0abc8112fa88927c9fa9a (diff) | |
| download | blackbird-hostboot-c3d233bbaf7a2f274147d16edbc080bae0ffd714.tar.gz blackbird-hostboot-c3d233bbaf7a2f274147d16edbc080bae0ffd714.zip | |
Hostboot Base TCE Support
This commit adds the base support for hostboot to enable/disable the
use of TCEs. It allows for the creation and managment of a TCE table
and also initializes the P9 processors to use this table.
Change-Id: Idb40f9df5a90d8b7e87b2f5b745cbe7e66109df2
RTC:145071
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32562
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/include/usr/runtime')
| -rw-r--r-- | src/include/usr/runtime/runtime_reasoncodes.H | 13 | ||||
| -rw-r--r-- | src/include/usr/runtime/tceif.H | 84 |
2 files changed, 3 insertions, 94 deletions
diff --git a/src/include/usr/runtime/runtime_reasoncodes.H b/src/include/usr/runtime/runtime_reasoncodes.H index 469d2a6b2..311851680 100644 --- a/src/include/usr/runtime/runtime_reasoncodes.H +++ b/src/include/usr/runtime/runtime_reasoncodes.H @@ -40,21 +40,14 @@ namespace RUNTIME MOD_HDATSERVICE_GET_STANDALONE_SECTION = 0x06, /**< hdatservice.C */ MOD_HDATSERVICE_GETHOSTDATASECTION = 0x07, /**< hdatservice.C */ MOD_HDATSERVICE_VERIFY_HDAT_ADDRESS = 0x08, /**< hdatservice.C */ - MOD_TCE_CREATE = 0x09, /**< tce.C */ - MOD_TCE_INIT_HDW = 0x0A, /**< tce.C */ - MOD_TCE_ALLOCATE = 0x0B, /**< tce.C */ - MOD_TCE_DEALLOCATE = 0x0C, /**< tce.C */ - MOD_TCE_INIT = 0x0D, /**< tce.C */ - MOD_TCE_MAP = 0x0E, /**< tce.C */ - MOD_HDATSERVICE_FINDSPIRA = 0x0F, /** hdatservice.C */ - MOD_HDATSERVICE_UPDATE_SECTION_ACTUAL = 0x10, /**< hdatservice.C */ - MOD_HDATSERVICE_MAPREGION = 0x11, /**< hdatservice.C */ + MOD_HDATSERVICE_FINDSPIRA = 0x09, /** hdatservice.C */ + MOD_HDATSERVICE_UPDATE_SECTION_ACTUAL = 0x0A, /**< hdatservice.C */ + MOD_HDATSERVICE_MAPREGION = 0x0B, /**< hdatservice.C */ // customize_attrs_for_payload.C MOD_CUST_COMP_NON_PHYP_RT_TARGET = 0x12, MOD_CUST_CONF_HBRT_HYP_IDS = 0x13, MOD_POPULATE_RTDATABYNODE = 0x14, /**< populate_hbruntime.C */ - MOD_PM_RT_LOAD_PM_COMPLEX = 0x15, /**< rt_pm.C */ MOD_PM_RT_HCODE_UPDATE = 0x16, /**< rt_pm.C */ }; diff --git a/src/include/usr/runtime/tceif.H b/src/include/usr/runtime/tceif.H deleted file mode 100644 index 1565200fe..000000000 --- a/src/include/usr/runtime/tceif.H +++ /dev/null @@ -1,84 +0,0 @@ -/* IBM_PROLOG_BEGIN_TAG */ -/* This is an automatically generated prolog. */ -/* */ -/* $Source: src/include/usr/runtime/tceif.H $ */ -/* */ -/* OpenPOWER HostBoot Project */ -/* */ -/* COPYRIGHT International Business Machines Corp. 2013,2014 */ -/* */ -/* 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 */ -#ifndef __TCEIF_H -#define __TCEIF_H - -#include <stdint.h> -#include <builtins.h> -#include <errl/errlentry.H> -#include <devicefw/userif.H> - -#define TCE_TRACE_NAME "TCE" - -namespace TCE -{ - /** - * @brief Responsible for initalizing the TCE entries - * - * @return errl - Return Error Handle if failed. - * - */ - errlHndl_t createTceTable(); - - /** - * @brief Responsible for setting up the Processors to point to the TCE - * table - * - * @return errl - Return Error Handle if failed. - * - */ - errlHndl_t initTceInHdw(); - - /** - * @brief Responsible for allocating TCE Entries - * - * @param[in] i_startingAddress - Starting address to TCE - * @param[in] i_size - Size of the address space - * @param[out] startingToken - Starting Entry into the table. - * (this is an offset into the array based on the - * TCE index * PAGESIZE. Each TCE entry maps to a - * pagesize of memory) - * - * Note: Must run createTceTable and InitTceInHdw or allocate will not work - * - * @return errl - Return Error Handle if failed. - * - */ - errlHndl_t allocateTces(uint64_t startingAddress, uint64_t size, uint64_t& - startingToken); - - /** - * @brief Responsible for deallocating TCE Entries - * - * @param[in] i_startingToken - Token indicating the starting entry to - * remove - * @param[in] i_size - Size of memory space to remove TCE entries - * associated - * - * @return errl - Return Error Handle if fatal failure occurred. - * - */ - errlHndl_t deallocateTces(uint64_t startingToken, uint64_t size); -}; - -#endif |

