summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice/baseinitsvc
Commit message (Collapse)AuthorAgeFilesLines
* Fix registerShutdownEvent to ensure proper ordering based on priorityElliott Dahle2013-11-071-0/+1
| | | | | | | | | | Change-Id: Icccce401eb9f6dce9698003e5743fcab4adf3d35 RTC: 88901 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6963 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix race conditions in initservice shutdown path.Patrick Williams2013-10-152-103/+138
| | | | | | | | | | Change-Id: I0da3c2050d5d64d20975031e093dd10978684e2b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6663 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: Andrea Y. Ma <ayma@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Implement termination from fatal error log.Richard J. Knight2013-10-082-0/+58
| | | | | | | | | Change-Id: Ie83f0876887ee0465cd4d430fa4a335f6aa396ec RTC:35268 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6403 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Basic devtree supportDean Sanner2013-08-092-27/+33
| | | | | | | | | | Simple devtree support for Sapphire in SPless mode Change-Id: I4a70bfc5cd3eb3dbd1b443869c046c789f98cc95 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3739 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Secureboot memory layout support.Patrick Williams2013-06-142-24/+41
| | | | | | | | | | | | | | | | * Start kernel in 1/4 cache mode per Secureboot. * Copy Secureboot header for base image for later use. * Blind-purge bottom half of cache. * Add bottom of cache into memory maps for 1/2 cache mode. RTC: 64762 Change-Id: I1b45f30a2d45c9709d4fd486cfe0ca2ce86b051c Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3773 Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Base SPLess istep on SP attribute flagsDean Sanner2013-05-151-1/+0
| | | | | | | | Change-Id: I69250fd57b264d507b0fb4f2c82f4752f83c4329 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4091 Reviewed-by: Van H. Lee <vanlee@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Turn InitService::doShutdown into a NO_RETURNPatrick Williams2013-02-041-3/+8
| | | | | | | | | | | | | | | | | | | | | There are a few places outside of initservice where Hostboot shutdown needs to be called. Currently the doShutdown returns so each of these places have a while(1); style loop. In the case of start_payload, their implementation of this loop was incorrect and causes us to take longer than desired to actually shutdown. I have changed doShutdown into a NO_RETURN function that keeps the correct loop done in a common way. See defect SW183911 for more background. Change-Id: I819eecadcddd2436f1c52571e48258316b43f38c Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3028 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Reduce trace buffer sizes.Patrick Williams2012-12-141-1/+1
| | | | | | | Change-Id: I13a80f814fd13a30315320c0b0c7374f39c3ecc2 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2522 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Terminate Immediate on a shutdown and assertMissy Connell2012-11-091-3/+6
| | | | | | | | Change-Id: I37c8956afb11c69201f4936821cff5e153327780 RTC:43793 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2194 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Memory Leak task_endBill Schwartz2012-10-121-26/+26
| | | | | | | | Change-Id: Idb7a2d8d72a55f644efd0b2548eca5df5d062e6d RTC: 47491 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2011 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Host Start PayloadTerry J. Opie2012-06-122-3/+12
| | | | | | | | | | | | | - Start Payload - System attributes for payload base/entry - Execute Cxx Unit tests before starting payload - Send mailbox messages to signal Fsp Change-Id: I314920c64d4c9deaa781696e02231ff8dc8de678 RTC: 39892 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1075 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Register service with initservice to get notified on shutdownDoug Gilbert2012-05-212-1/+133
| | | | | | | | | RTC: 41263 Change-Id: Ic44026c55453d41e1e5e0921339ec126dc665566 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1061 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Allow kernel to shutdown-to-payload.Patrick Williams2012-04-242-3/+11
| | | | | | | | | | | | | | | This code is currently unused, due to InitService not having the payload address and the start_host_os IPL step being unimplemented. For testing purposes the 'shutdown' call in initservice.C can be changed to pass a non-zero base address (such as 256MB). RTC: 40871 Change-Id: I0f4b6bae62ede1853aabbcb28082300005e31897 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/926 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* INITSVC: Fix duplicate error log tagsMike Jones2012-04-201-3/+3
| | | | | | | | Change-Id: Ib0717d6ea916fbc330cadd5dce420cc80694eaf0 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/915 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton <brianh@linux.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Refactor InitServiceMark Wenning2012-04-045-262/+373
| | | | | | | | | | | | | | | | Finish join() conversion, remove TaskArgs Cleanup Initservice Cleanup ExtInitService Cleanup IStepDisp Add SPLess Halt & Shutdown command. Implements code for Tasks 35508, 3855, 36929 and 38870 . RTC: 38196 Change-Id: I554655412b529ef6cd143fea361a39bd584d18b5 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/794 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initservice: Eliminate task specific module idsMike Jones2012-03-202-12/+2
| | | | | | | | | Change-Id: Id01a11505b3a720c646de7ef8e8663c1478615ce Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/772 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* ERRL: Ensure all Hostboot code uses ErrlUserDetails framework.Mike Jones2012-03-161-1/+15
| | | | | | | | | RTC: 36920 Change-Id: I82667c8e63e8a99b9cc7eb1dfbbbdbe1c3b2bb2a Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/730 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add status printk's to Initialization service tasksMark Wenning2012-03-132-4/+7
| | | | | | | | | - branch add_printks Change-Id: I7bebb7da8d3774df6dab655a567f863757cb2198 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/726 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* RTC4545 and RCT4541 - HWP supportMark Wenning2012-02-071-0/+6
| | | | | | | | | | | | | | | | | | | | - branch HWP_test3 Add support for IStep HWPs: HostBoot - DMI Training 11.7 proc_cen_framelock : Initialize EDI Frame HostBoot - Establish System SMP 11.4 dmi_io_run_training : Run training on ext buses - add support for 2 centaurs - push to Gerrit for full review - review responses - final review responses Change-Id: Iab9d7c145eb6834cec5edcd0a6b97622cf0ce86b Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/621 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* RTC4420 SPless on VPOMark Wenning2012-01-202-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify SPLess code to use memory-mapped locations instead of SCOM scratchpad regs - Debug Framework does not support this at this time. VBU_Cacheline.pm is intended to be a module to read a single 64-bit word (which will be the spless command, status, and istepmode regs) from L3 memory within the AWAN model. CLread() will read the cacheline (at 128-byte boundaries) and then extract the quadword from the offet within the cacheline. CLwrite() will read/modify/write the quadword and cacheline. Note: There is a code block within VBU_Cacheline.pm called TEST - this returns dummy values to CLread and CLwrite so that I can run the perl script on a local system without connecting to simics or AWAN. It is not normally used. hb_istep is meant to be run after running a modified version of Jim McGuire's do_p8vbu_script_hbi-Sprint7 . See my public directory /gsa/ausgsa/home/w/e/wenning/Public/HBI/scripts for the modified script. These changes will be merged back into Jim McGuire's script later. The modified version loads the binaries into L3, sets up all the rest of the environment, and then exits BEFORE going into the execution loop. At that point, the user should run hb-istep --istepmode to set HostBoot up to run IStep SPLess (Single Step) . The user can then run hb-istep commands to execute isteps, etc. hb-istep use is documented on the wiki at https://w3-connections.ibm.com/wikis/home?lang=en_US#/wiki/Host%20Boot/page/HB%20ISteps%20on%20AWAN Please look there for updates. - first commit, branch vbu2 - modify spless to use memory locations instead of SCOM regs - add VBU_Cacheline.pm - archive temporary version of do_p8vbu_script_hbi-mark until we can get the hb-istep hooks into Jim McGuire's scripts - add test calls to VBU_Cacheline.pm - change flush call to Joe McGills "quiet" version - add note that p8_ins* calls are in Jim McGuires dir and will be replaced by the "official" ones soon. - experiment with git notes command, sorry for the thrash - add check to see if VPO is STOPPED before accessing anything - partial review fixes - blocked on model: can't test Change-Id: I07431dc525844c5c504175d92eae113457eac063 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/592 Tested-by: Jenkins Server Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com> Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* Complete virtual memory write path during shutdown sequenceMatthew Barth2011-12-082-3/+114
| | | | | | | Change-Id: I93a6305b88539d8cf1b41cfc4cde713fd7c19494 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/522 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix initsvc base and extended task tablesMark Wenning2011-11-291-24/+24
| | | | | | | | | | | - resolve BASE_MODULES and EXTENDED_MODULES list in makefile and base and extended image modules loaded in initsvc task files. - fix merge conficts Change-Id: I825de90c640501eb1847904ba905abff05898799 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/502 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* RTC4319: Shutdown if IStep failsMark Wenning2011-11-161-29/+27
| | | | | | | | | | | | | | | | - add macro to report error to testHWP.C - new TASKARGS macros (prepare for join change) - istep dispatcher, extinitsvc and initsvc now call shutdown() - pass error codes to parent task - fix errorlog tags, see RTC3840 - added ErrlUserDetails module, mostly for debug - review fixes Change-Id: Ib5009f1bf0f7657d4da5bd6d1ecf64e6113b3383 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/486 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Errl commit with component IDMonte Copeland2011-11-021-1/+1
| | | | | | | | Change-Id: Ic8fcd3c69330878e8e7a75ba6ba9d3c60aca6251 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/482 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com> Reviewed-by: Monte K. Copeland <copelanm@us.ibm.com>
* RTC3872: Hardware Availability Service: Add HWAS as first ISTEPMark Wenning2011-10-201-1/+1
| | | | | | | | | | | | | | | | | | - first commit - change isteplist to call hwas - comment out test isteps - modify xml to add HWAS_STATE attribute - add macros to taskargs - remove debug trace from taskargs - add call to init_fsi - post-review - merge xml files - forgot one printkd Change-Id: Iab3b1f85c401f9a176ed84ddb91263caf25a3d56 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/430 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Remove annoying ERROR messages from INITSERVICE traceMark Wenning2011-09-261-24/+2
| | | | | | | Change-Id: If00619d162cff62641470415fd29538a87922796 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/360 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com>
* Move libs to the extended imageDoug Gilbert2011-09-072-1/+8
| | | | | | | | Change-Id: I275a3a4b897e6426164e4f3bd642f92b0d3fed07 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/285 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* RTC 3346: Allow SPless control of ISteps within HostbootMark Wenning2011-08-312-302/+277
| | | | | | | | | | | | | | | | | | - initial commit - add splesscommand and splessstatus objects - factoring - findTaskInfo, ExtTaskInfo structs - doxygen cleanup - unit tests - cleanup, final - review fixes - take out splesscommand and splessstatus classes - 2nd round of review changes Change-Id: I6dce18072b5464a4b8c34e5f4ff639e38afa53d0 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/245 Tested-by: Jenkins Server Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
* Add copyright headers to all source files.Patrick Williams2011-08-245-49/+112
| | | | | | | Change-Id: I205f2409e56032cfc0aaf01d7e26d357f0b86373 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/277 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Virtual File System module load and unloaddgilbert2011-08-172-45/+80
| | | | | | | | Change-Id: Iaa6a256a8a15ac48bfba5bc1cab292c5ac246166 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/253 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* PNOR Resource Provider (RTC:3387)Dan Crowell2011-07-281-2/+2
| | | | | | | Change-Id: Ifa47ad581c7d403b927708497b565d858b31ee0f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/213 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Jenkins Server
* Cleanup from previous reviews, add barrier for CxxTestMark Wenning2011-07-254-95/+196
| | | | | | | | | | | | | | | | | - add IStep1 for demo - cleanup: remove inheritance, add errlog tags, etc. - inadvertently ran copyright script, this is OK. - more cleanup: indentation, etc. - add barrier for CxxTests - rename cxxtest_stub.C to cxxtest_data.C - merge problems on gerrit - fix review comments Change-Id: Iee988b8595d8c6dd521fd94d4d58cb403898d948 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/207 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* IStep DispatcherMark Wenning2011-07-143-77/+104
| | | | | | | | | | | | - remove refs to include/src/usr/taskargs/ dir - use _start() macro in IStepDispatcher - post-review fixes - fixed - inadvertently ran copyright script on staged files Change-Id: I2b256524746d0eb25ed04e0835450e220dc65492 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/191 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
* InitService changes for LLDD 0.7Mark Wenning2011-07-145-0/+594
- implement task flags - add barrier to unit tests - startTask returns errlog handle - factor taskargs.H - add STRICT mode and fix results - add tasktest2 to replace example.C - add cxxtest as an explicit task at the end - cleanup todo's - post-review fixes - merge problem Change-Id: I073bd154a64013553c1863f9eb674cda2bf40a8d Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/187 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
OpenPOWER on IntegriCloud