powerpc-utils-1.3.0
=====================================================================
commit ad4cf85f4bc80f6f5cbf4ce0b71eada696848081
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Thu Jan 7 15:17:41 2016 -0500

    Move the powerpc-utils package from the IBM license to the GNU GPL license.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit f037afe3bcece02ca3a3b1711a57c66db088cfa1
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Dec 1 16:36:11 2015 -0500

    drmgr: Correct checking for display adapters when adding PHB
    
    A previous commit (c2091227) added formalization for checking for display
    adapters. Unfortunately the update tries to verify if there is a display
    adapter for a NULL phb pointer when trying to add a PHB resulting in a
    segfault on phb add requests.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 85a5037cb01c1aaa5ad3dbd91f74dbcdd823dbb1
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Dec 1 16:35:04 2015 -0500

    drmgr: Remove extraneous debug output
    
    Remove extra debug statements for allocating and free'ing drc information.
    These were mistakenly left in during debug of a previous patch.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 33aa48a0c4ebc4e660080514939232ad2912cb6d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Dec 1 16:33:45 2015 -0500

    drmgr: Fix node add buffer overflow
    
    When adding a node to the device tree, the drmgr command writes a terminatin
    null in the first character past the end of the allocated buffer. This
    results in a SIGABRT being generated by libc when the buffer is free'ed.
    The fix is to move the writing of the space between properties to the
    beginning of the loop instead of at the end of the loop.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 55544a975f87e9d76366e6fefcf571ae01f3e7eb
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Nov 23 21:10:27 2015 -0500

    drmgr: Remove extraneous "d" in buffer
    
    Remove an erroneous character left in a print statement used
    to update the drconf property.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit f4006893d84c85bbf5b86919c28ba56047001204
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Nov 23 21:09:47 2015 -0500

    drmgr: Correct return code from set_mem_scn_state()
    
    The set_mem_scn_state() routine incorrectly returns the number of chars
    written in the case of success instead of returning 0. This results in the
    caller assuming a failure occurred when setting the memroy section state
    and fails the memory online/offline operation.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 4f515ea179cb36f26adb53c93b79f834e32c2abe
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Nov 23 21:08:54 2015 -0500

    drmgr: Correct LMB counting when discovering LMBs
    
    Recent updates to how drmgr counted the number of LMBs found did
    not save the count value correctly and in the case of LMBs found
    in the ibm,dynamic-reconfiguration-memory property only counted
    LMBs that were present. This caused havoc when trying to shuffle
    the LMBs.
    
    Save the LMB count in the lmb_list_head struct so we have it across
    function calls. Also update the shuffle_lmbs to just take a pointer to
    the lmb_list_head and make changes locally in the routine.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 9a1957588b040db0dddfa284dbb96a817e699792
Author: Cédric Le Goater <clg@fr.ibm.com>
Date:   Mon Nov 23 21:07:17 2015 -0500

    update_flash_nv: improve check_ipmitool
    
    This patch adds a quick test in check_ipmitool to make sure the
    BMC is alive
    
    Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>

commit 4e4e5f9f8d16a2ad196d1fd5388de23aa2e1fdbc
Author: Cédric Le Goater <clg@fr.ibm.com>
Date:   Mon Nov 23 21:06:52 2015 -0500

    update_flash_nv: fix firmware update sequence for powernv
    
    This patch modifies the way the firmware update is performed from
    the host. It adds a cold reset of the BMC before and after the
    update.
    
    Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>

commit 1f25105c1c7f1384be4aef03f2aa6d5bd065eb11
Author: Cédric Le Goater <clg@fr.ibm.com>
Date:   Mon Nov 23 21:06:22 2015 -0500

    update_flash_nv: force the use of the ipmitool usb backend
    
    Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>

commit b0e5ba4f55dcf1a5d013eddbb95b660c65504b3c
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Mon Nov 23 21:04:45 2015 -0500

    ppc64_cpu: output to user if the requested number of cores are not brought o
    
    Now that we check the return code from set_one_core, we should ensure
    that the requested number of cores in --cores-on is achieved, or return
    -1 intead. Also add a slightly verbose message in that case.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit 1a1bb7167a3946712a5b59b5566bac6ced46cdc9
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Mon Nov 23 21:03:37 2015 -0500

    ppc64_cpu: use rc instead of boolean flag
    
    We can overload the rc variable, reducing the number of local variables
    in do_online_cores.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit 37eeba5583d48558f2ca1de6096df83494005e6f
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Mon Nov 23 21:00:14 2015 -0500

    ppc64_cpu: check return code from set_one_core
    
    In both --cores-on and --online-cores, the return code from the helper
    function set_one_core is not checked. This can lead to ppc64_cpu
    returning 0 even though the command technically failed to do what was
    requested. After this patch, --cores-on still doesn't return a proper
    error code (fixing in a follow-on).
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit 9711ee00b604a39d47dfced7f0c49cf40600131f
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Tue Nov 17 16:24:37 2015 -0500

    ppc64_cpu: add --{on,off}line-cores to {on,off}line specific cores
    
    We currently have support for a mechanism to ensure an exact number of
    cores (or all cores after a recent patch submission) are online.
    However, there is no control over which cores are selected. Add two new
    options to ppc64_cpu, --online-cores and --offline-cores to support
    specifying which cores to bring online or offline, respectively. Both
    options take either no parameters, in which case they output a
    comma-separated list of cores that are online/offline, or a
    comma-separated list of cores, in which case the command sets those
    cores' states to online/offline.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit 2239dd005e00d63c6e68fe962928b5f0b08ef6cb
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Tue Nov 17 09:33:55 2015 -0500

    ppc64_cpu: rename do_cores_online to do_cores_on
    
    This matches the other function names more closely.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit bb8472f0658565e5188150a141fa8856b55000ca
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Tue Nov 17 09:31:57 2015 -0500

    ppc64_cpu: add all parameter to --cores-on to online all cores
    
    Rather than finding out how many cores are in a system, and then passing
    that value to --cores-on, it can be handy to have a shortcut to just
    online all cores.
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit 17cd4bbf7c20d8096523c765c1157e4a58d31363
Author: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>
Date:   Tue Nov 17 09:29:06 2015 -0500

    ppc64_cpu: handle errors from strtol in --cores-on parsing
    
    Currently, on a 24-core system, passing certain values to `ppc64_cpu
    --cores-on` leads to some surprising results:
    
    ppc64_cpu --cores-on=all
    ppc64_cpu --cores-on=adfd
        offlines all but one core
    
    This is because we are not using the endptr parameter of strtol to
    determine if any of the string is consumed (and if none of the string is
    consumed, strtol still returns a valid long value, namely 0).
    
    ppc64_cpu --cores-on=12df
        onlines 12 cores
    
    This is because we are not using the endptr parameter to strtol to
    determine if the entire string is consumed (checking for trailing
    characters).
    
    Add both these checks.
    
    After this patch:
    
    ppc64_cpu --cores-on=all
    Invalid number of cores to online: all
    ppc64_cpu --cores-on=adfd
    Invalid number of cores to online: adfd
    ppc64_cpu --cores-on=12fd
    Invalid number of cores to online: 12fd
    
    Signed-off-by: Nishanth Aravamudan <nacc@linux.vnet.ibm.com>

commit 475919d4294819e5f890f000ccadf5b13280a0a9
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:50:11 2015 -0500

    powerpc-utils.spec: Fix typo in spec-file
    
    In line:
    %{__rm} -rf $RPM_BULD_ROOT
    The directory should be RPM_BUILD_ROOT not RPM_BULD_ROOT
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit b1d909378cf8a9502c7207f4f51a2cf3931d5263
Author: Michael Bringmann <mwb@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:48:30 2015 -0500

    errinjct/rtas_debug: Update RPM packaging specs
    
    This patch updates the powerpc-utils.spec.in file to install the binaries
    associated with errinjct and rtas_dbg.
    
    Signed-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>

commit 03704771a36c025eb8636a90f67eaa77acd5880d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:40:47 2015 -0500

    lsslot/drmgr: Performance enhancement for parsing LMBs

    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 268116acde0d5f98efa150044b68d977d578ccb4
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:39:15 2015 -0500

    errinjct: Add format specificer
    
    We hit below build warning with "-Werror=format-security" compilation option
    
     CC       src/errinjct/icache.o
     src/errinjct/errinjct.c: In function 'perr':
     src/errinjct/errinjct.c:240:18: error: format not a string literal and no f
       fprintf(stderr, buf);
                         ^
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit c2091227bdf40192a37456445a6dedf3f3da8cda
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:27:08 2015 -0500

    drmgr: Do not allow DLPAR of display adapters
    
    The DLPAR of display adapters has never been supported but that support
    has not ever been enforced in drmgr. Recent tests show that trying to DLPAR
    remove a display adapter causes the drmngr command to appear hung as it
    waits for display adapters to power down.
    
    Add the ability to check for a drc-type of 'display' when trying to add
    or remove a pci or slot, and verify that none of the children under a
    PHB are display adapters when trying to add or remove a PHB.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit aef0c5daa20f38b66e5fa0255ecf5a53ba202138
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:26:01 2015 -0500

    drmgr: Move check for non-hotplug children to common routine
    
    In more than one place we check to see if a PHB has any children that
    are not hotplug capable. Move this code to common routine.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 2d8ad5ef33948f07e3022c601ee99cd8efc85a76
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:22:19 2015 -0500

    activate_firmware: Have man page reflect the changes made in this branch
    
    -Edited description
    -added Option section
    -Added 2 new return codes 7 and 8
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit 11041ab9e8f0e75b58d2c1a593c9c410d7a82f00
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:21:02 2015 -0500

    activate_fw: Return code 8, to report a parameter error when activating firm
    
    This is a new return code mapped from rtas return code -3 which is returned 
    case of parameter error, when the utility is used without options.
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit d1217de2906f22dbeed54f52c683f28ffcfe90c9
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:19:56 2015 -0500

    activate_fw: get update access key expiry date, set update access key
    
    This patch provides two feature extensions:
    1. activate_firmware -e
       (with only -e, fetches the update access key expiry date)
    2. activate_firmware -e /path/to/keyfile
       (with an argument to -e applies the provided update access key-file to
        extend the update access key expiry date)
    
    These are required to provide an interface to check validity of and
    update the Update Access Key. ESA will be one of the users of this tool.
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit 097c16987a65aceb0be6d66befaa0104b518abbd
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:18:09 2015 -0500

    activate_fw.c: Make use of errx() to print error messages to stderr and exit
    
    This is a more compact way to do it compared to using fprintf and explicitly
    exiting in main()
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit c2dc2191bb5963b09e781b78cbf2a152520c8e87
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:17:21 2015 -0500

    activate_fw.c: Factor out activate_firmware() from main()
    
    This is done to reserve main solely for option processing and to
    abstract out rtas calling function.
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit 72bc893a5f4b59d0e7742726e85f3cffab65ebd3
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 16:14:46 2015 -0500

    activate_fw: fix typo
    
    The default case in error handler should return code 6, not 4.
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit 782445384c165ea28f00c9cb233e41bdeef7a962
Author: Chandni Verma <chandni@linux.vnet.ibm.com>
Date:   Mon Nov 16 15:53:42 2015 -0500

    activate_fw: Coding style fixes
    
    This patch fixes trailing white spaces and indentation issues
    and in general makes to code confirm to linux's checkpatch.pl
    
    Signed-off-by: Chandni Verma <chandni@linux.vnet.ibm.com>

commit ad93027170afe3b7bc760fed0ab3e078390ba088
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:58:44 2015 -0400

    serv_config: Compile warning cleanups
    
    Correct several compile warnings.
    
    Remove unchecked return code from execv().
    Remove unused variables.
    Correct de-reference of type punned pointers.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 8ad7081b5f1d98593c8192d4d46c10050e5b8d88
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:57:34 2015 -0400

    rtas_ibm_get_vpd: Compile warning cleanups
    
    Clean up compile warning by removing the unused lflag variable.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 28aeacd59e0e35753bae243cf63150f6ecc2a10b
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:56:32 2015 -0400

    rtas_dbg: Compile warning cleanups
    
    Correct compile errors to check the return value from a fread() call and
    add an appropriate error message, and ensuring we do not use an
    uninitialized 'rc' variable.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit dfab2e6f11a11e25da342b703bd054aaf906d818
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:55:33 2015 -0400

    ppc64_cpu: Compile warning cleanups
    
    Correct compile warning for dereference of type punned pointer.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 92fd02382fbec464562e2a84841391f09cf1e2ea
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:54:34 2015 -0400

    nvram: Compile warning cleanups
    
    Correct compile warning by removing the unused variable memctrl_data.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit f069a159755b70bf4596b2bcce5b3fb4f8c3831f
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:53:35 2015 -0400

    lparstat: Compile warning cleanups
    
    Clean up compile warnings by adding checks for the return codes from
    fgets() calls and adding appropriate error messages.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 2cc2e6590a43a367ee6ca6474bc98cc0a7245caf
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:51:59 2015 -0400

    drmgr: Compile warning cleanups
    
    Fix multiple warnings generated when compiling drmgr code. These include
    not checking return codes of fread() and write() calls where a check is
    added and appropriate error messages.
    
    Updating print formats to use the appropriate type of value being printed.
    
    Correcting the use of rc values to ensure the rc variable is set.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 0e8d1534f5bf57798b74584b6f2b42bad57ddf89
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:49:57 2015 -0400

    drmgr: Validate the status of a CPU before adding or removing it
    
    When asked to perform a CPU DLPAR operation we should verify the current
    status of the CPU before performing the operation. Failure to verify the
    status has caused the kernel to oops in cases where we try to add a CPU
    that is already owned, namely in a kvm guest the following is seen.

    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit dabc0264a9f3b64226da63421378ed02f2f1b201
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:48:25 2015 -0400

    drmgr: Add missing free's of allocated memory
    
    Using valgrind to do analysis of the memory usage of the drmgr command
    revealed multiple instances of memory not being free'ed. Correct this
    by adding appropriate calls to free commands.
    
    Note that the analysis done, and this patch, does not cover all of the code
    paths in drmgr. There may be additional patches as testing continues.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit d5a1c1bfae839e159ba049736a9719835e2a42e6
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:45:26 2015 -0400

    drmgr: Add EXTRA_DEBUG output level
    
    Introduce a new internal developer debug output level. In some cases the
    drmgr command dumps all the information about slots/adapters it gathers
    from the device tree, this is really meant for internal debugging purposes.
    Additionally, one large systems this information can easily overwhelm
    the output seen from drmgr.
    
    This patches introduces a debug level for the say() command, EXTRA_DEBUG.
    Developers can get this output by using the option '-d 5'. Several
    instances of debug output are also updated to use this new option.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit a7ebbd4bbc61cd0c7d6c3c3eea9f7ea9724558d9
Author: Nathan Fontenot <nfont@linux.vnet.ibnm.com>
Date:   Tue Oct 27 16:43:25 2015 -0400

    drmgr: free slot nodes before adding slots
    
    When handling a request for slot dlpar add the device tree is parsed twice,
    once prior to the add and again after adding the slot. On systems with a
    large number of slot devices, 200+, we are seeing that the drmgr command
    segfaults when trying to parse the device tree the second time.

    To avoid crashing here we need to free the parsed information from the
    device tree prior to adding the new slot. While this isn't really a true
    root cause fix it does alloow drmgr to run without segfaulting.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 767e3dd780f1a18b2c832b5d8db82a5aac9a9818
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Oct 16 10:01:50 2015 -0400

    update_flash: Add support for OpenPower system
    
    On OpenPower system we use IPMI interface to pass image to service processor
    (BMC) and it will take care of updating FW.
    
    This patch adds wrapper around ipmitool so that we can use update_flash
    command to update FW.
    
    Validation:
      BMC take care of validating image. We just pass the image to BMC.
    
    Commit/Reject operation:
      Like FSP system, BMC has two sides. Golden and boot side. Golden side
      is permanent and is never updated in the field. So commit/reject
      operations are not allowed on BMC based system.
    
    FW update:
      OpenPower system has two components (BMC FW and host FW). We send all
      the component to BMC in one command. BMC will take care of updating
      all the components.
      Note that we are not using "force" option. So BMC will skip the component
      which are not changed.
    
    FW version display:
      We display host FW version using ipmitool fru command. like below:
        Product Name          : OpenPOWER Firmware
        Product Version       : IBM-firestone-ibm-OP8_PFD_v1.6_0.29
        Product Extra         : hostboot-6847d73-b8d7c0a
        Product Extra         : occ-0726e69
        Product Extra         : skiboot-5.1.3-6221bd2
        Product Extra         : hostboot-binaries-43d5a59
        Product Extra         : firestone-xml-db1a93e-4ae8032
        Product Extra         : capp-ucode-105cb8f
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 1422abed03f78866339a7b29e3eba4b2d29cb468
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Oct 16 10:01:04 2015 -0400

    update_flash_nv: Add platform check
    
    Presently we assume this script is running on FSP based PowerNV platform.
    Lets add platform check to validate platform before running. That way
    adding new platform support (like OpenPower) becomes easy.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

commit b7d4678e0963ff4956d02188fae33cb8d5a7fe11
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Oct 16 10:00:28 2015 -0400

    update_flash_nv: Rename function name to reflect platform
    
    Presently update_flash_nv supports code update on FSP based PowerNV
    (Non-Virtualized) platform. We want to support code update on OpenPower
    (BMC based) platform. Code update procedure on OpenPower system is
    different than FSP based machine. Hence rename FSP specific function
    in this script as fsp_*.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Reviewed-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

commit a3e1c3eddb6e3486ae48dfd23f0c95c4b714322d
Author: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Date:   Fri Oct 16 09:59:06 2015 -0400

    snap: Warn users about deprecated support for SLES 12 onwards
    
    This patch introduce deprecated warning on SLES 12 onwards
    to use supportconfig. supportconfig captures all the information
    collected by snap, so it safe to deprecate snap.
    
    It also rearranges check for distribution (RHEL/SLES/Ubuntu) into
    common function check_distro_support().
    
    Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>

powerpc-utils-1.2.27
=====================================================================
commit 8e22e19dab80a1d17ca5ad5cdf112148282223eb
Author: John Allen <jallen@linux.vnet.ibm.com>
Date:   Tue Sep 29 14:41:14 2015 -0400

    errinjct/rtas_dbg: Update Makefile
    
    This patch updates the Makefile to include errinjct and rtas_dbg.
    
    Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>

commit ef5f204ca2d5de67ef47de1ac29169e7e39b54a6
Author: John Allen <jallen@linux.vnet.ibm.com>
Date:   Tue Sep 29 14:37:12 2015 -0400

    rtas_dbg: Initial contribution of the rtas_dbg tool
    
    This patch contributes the previously IBM internal rtas_dbg tool. The rtas_d
    tool enables rtas debug output to the system console for a given rtas call.
    This version of the code is functionally identical to the old internal versi
    but I have made some superficial changes to remove IBM confidential informat
    and improve coding style.
    
    Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>

commit 784885efc522d49e29c3f1fb679a31e7ba9b413d
Author: John Allen <jallen@linux.vnet.ibm.com>
Date:   Tue Sep 29 14:35:14 2015 -0400

    errinjct: Initial contribution of errinjct tool
    
    This patch contributes the previously IBM internal errinjct tool. The errinj
    tool is used to inject artificial hardware errors into a system. This versio
    of the code is functionally identical to the old internal version, but I hav
    made some superficial changes to remove IBM confidential information and
    improve coding style.
    
    Changes in v2: Now checks for platform. If a user is not on a PowerVM system
    the tool exits and prints a descriptive error message. Updated the man page 
    document lack of support for non-PowerVM systems.
    
    Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>

commit 16e49f436470d597bb29656ed02b40fcdf47fcc5
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Sep 9 10:30:53 2015 -0400

    lparstat: print "Shared Physical CPUS in system" data
    
    The information for "Shared Physical CPUS in system" is not printed when
    the lparstat command is run. This patch adds this information to the list
    of items to print and modifies the name to match the output of the lparstat
    command on other OS'es.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 4153cccdc21a0c8810aab169fb5b04a611c7b154
Author: Bharata B Rao <bharata@linux.vnet.ibm.com>
Date:   Tue Sep 8 11:38:35 2015 -0400

    drmgr: Don't return unsuable CPU from get_available_cpu()
    
    From: Bharata B Rao <bharata@linux.vnet.ibm.com>
    
    When querying CPU by name or index (and not count), let
    get_available_cpu() return NULL for CPU that is marked as unusable.
    This will prevent the callers (eg. add_cpus()) from infinitely
    querying for the same CPU.
    
    Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>

commit d291c43e4ad1141591008e39e77549a6fd33d48a
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Sep 8 11:35:09 2015 -0400

    drmgr: Generate error message when PHB is not found
    
    An error message should be generated when drmgr is asked to remove a PHB
    that does not exist. The current behavior is to just exit without any
    message.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 8ff5144da07985cd84508465007f9031840d4ecd
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Tue Sep 8 11:33:24 2015 -0400

    update_flash: Stop kexec service before starting firmware update on PowerVM 
    
    We run 'reboot' call before initiating firmware update. If kexec service
    is enabled, then we endup booting into new kernel instead of starting
    firmware update.
    
    Commit 62dc6d38 fix this issue on PowerNV platform.. but missed to fix
    PowerVM LPAR.  This patch fixes above described issue on PowerVM LPAR.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 7a94345ff14fbb6d18a885616a5a7f347daa95f1
Author: John Allen <jallen@linux.vnet.ibm.com>
Date:   Wed Sep 2 12:43:15 2015 -0400

    drmgr: Fix file leak in dr_lock/dr_unlock interaction
    
    This patch fixes a file leak in dr_lock(). The file descriptor
    is meant to be saved to a global variable dr_lock_fd, but we
    have an extraneous local variable named dr_lock_fd as well. So
    When we get to dr_unlock, the global file descriptor that it
    tries to close was never set and quietly fails.
    
    Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>

commit 29b8f317985249912b4025f704aae16811ea1775
Author: Boqun Feng <boqun.feng@linux.vnet.ibm.com>
Date:   Wed Sep 2 12:19:54 2015 -0400

    drmgr: handle read failures in get_att_prop()
    
    In get_att_prop(), though rarely, reading from /proc or /sysfs may
    fail. This patch handles failures of these readings based on the fact,
    if we successfully read the property, both fread() and fscanf() will
    return 1. This patch also updates the fread() path so that we only
    try to read the size of the file and not the size of the buffer
    passed in.
    
    This can also fix the compiler WARNING saying that 'rc' is unused
    variable.
    
    Signed-off-by: Boqun Feng <boqun.feng@linux.vnet.ibm.com>
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 9b8a3b449de4508adca248631e7ffda62a9a4994
Author: John Allen <jallen@linux.vnet.ibm.com>
Date:   Wed Sep 2 12:14:09 2015 -0400

    drmgr, ppc64_cpu: Fix several memory/file leaks
    
    This patch fixes a few resource leak problems discoverd through
    static analysis.
    
    Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>

commit 5fee10ac758e16d49e42d5cf0855df44b1f90a7a
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Sep 2 11:03:28 2015 -0400

    drmgr: Combine the init_node() and examine_child() routines
    
    The complexity of the init_node() and examine_child() routines that call
    each other recursively is causing drmgr to segfault in odd and sometimes
    slightly differing ways. Each instance does involve drmgr segfaulting in
    libc malloc code.
    
    This patch re-writes these two routines to combine them into a single
    routine that is called recursively. The result is cleaner code that no
    longer segfaults.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 96a83ab8b84576517a28bc8f4d8e684e6c86befd
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Sep 2 10:36:25 2015 -0400

    drmgr: Allocate workarea memory instead of using stack
    
    The configure_connector() routine declares a 4K buffer on the stack, this
    is causing odd behaviors in drmgr such as segfaults in libc malloc code.
    The workarea should be malloc()'ed instead of being on the stack.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 62dc6d38de177588f205e01cec15b93b3e2b9a30
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Wed Sep 2 10:26:23 2015 -0400

    update_flash: Stop kexec service before starting firmware update
    
    We run 'reboot' call before initiating firmware update. If kexec service
    is enabled, then we endup booting into new kernel instead of starting
    firmware update.
    
    This patch validates kexec service and if required stops this service
    before starting code update.
    
    Sample output:
      update_flash -v -f /home/hegdevasant/01SV840_032_032.img
      info: Current fixpack level is unknown.
    
      Projected Flash Update Results:
      Current T Image: UNKNOWN
      Current P Image: SV840_031
      New T Image:     SV840_032
      New P Image:     SV840_031
    
      info: kexec service is running. It will be stopped before flashing.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 546174be41c74894126414515644888ed8b31584
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Wed Sep 2 10:23:21 2015 -0400

    update_flash: Fix bad variable issue
    
    Shells like dash throws error if we try to assign string with space
    without double quote. ex:
     local bug=ML FW830.00 FW830.00
    
    Sample output without this patch:
      update_flash -f 01SV840_016_016.img
      /usr/sbin/update_flash: 185: local: FW830.00: bad variable name
    
    This patch fixes above issue by covering all string assignment with
    double quote.
    
    sample output with patch:
      info: Current Temporary side will be committed to
      Permanent side before being replaced with the new
      image.
    
      Projected Flash Update Results:
      Current T Image: SV840_031
      Current P Image: SV840_027
      New T Image:     SV840_032
      New P Image:     SV840_031
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 2d9c67ba3a0763b152be184f81841a6b8ea5580d
Author: Boqun Feng <boqun.feng@linux.vnet.ibm.com>
Date:   Wed Aug 26 12:13:41 2015 -0400

    In cpu_index_to_path(), sometimes 'rc' may not be assigned to a certain
    value, so we need to give 'rc' an initial value, as we may only success
    if we find a path, so 'rc' is initialized to -1, which indicates
    failure.
    
    Signed-off-by: Boqun Feng <boqun.feng@linux.vnet.ibm.com>

commit b31215f78806bf0b511e39b3c76fc1b12234310a
Author: Boqun Feng <boqun.feng@linux.vnet.ibm.com>
Date:   Wed Aug 26 10:50:30 2015 -0400

    In say(), we use variable 'rc' for the return value of write(), however
    that return value is never used, though rarely, writting to log_fd may not
    results in writting exact number of bytes we want. To be aware of the
    return value of write() and also to remove unused variables, we update
    'len' to the return value of write() if log_fd is not NULL.
    
    Signed-off-by: Boqun Feng <boqun.feng@linux.vnet.ibm.com>

commit 8b654c544f5e6243df1a3694162dc466023b39c4
Author: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Date:   Wed Aug 26 10:48:30 2015 -0400

    Fix trivial spelling mistakes and trailing white spaces.
    'avaiable' -> 'available'
    'parmaeter' -> 'parameter'
    'intialize' -> 'initialize'
    
    Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

commit f768e8c6465185255142cdfb0577bd3ed729494a
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Jun 29 11:07:28 2015 -0400

    lsslot: Fix missing header for __be32 types
    
    On my system (Ubuntu 15.04) lsslot does not build as it's missing the
    __be32 types.
    
     src/drmgr/lsslot.c: In function ‘print_drconf_mem’:
     src/drmgr/lsslot.c:712:2: error: unknown type name ‘__be32’
       __be32 *aa;
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit b15b0a7f9ffcd1bc099a166723475bb53bc945cf
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Jun 29 11:04:24 2015 -0400

    nvram: don't allow long names
    
    The maximum partition name length is 12 characters but nvram accepts
    strings of any length. This change will enforce the maximum length
    passed to options that take a partition name to avoid confusion.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 9adb99b0490ca249ef1f2edfefe58d1369e2a278
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Jun 29 11:03:19 2015 -0400

    nvram: fix stack overflow in logging function
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit cfce8ea751cd7d87554e59197e8e0c8ab78a8a70
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Jun 29 11:00:20 2015 -0400

    ppc64_cpu: Use calloc for array allocation
    
    Use calloc instead of malloc + memset for array allocation.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit b9af10826189fceaa0dd714e793c4753f8241eda
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Jun 29 10:58:52 2015 -0400

    ppc64_cpu: Correct pthread handling for exiting threads
    
    The pthread handling for checking cpu frequency in the ppc64_cpu
    command does not properly handle 'soak' threads exiting from a failed
    sched_setaffinity call.
    
    We need to update the number of threads handled to be dynamically set
    instead of defining MAX_NR_CPUS, which is out of date. We also need to
    check for 'soak' threads that have exited before reading the perf counters
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

powerpc-utils-1.2.26
=====================================================================
commit 7653d5814de2abb209c198a8b763c99139bf750d
Author: Dinar Valeev <dvaleev@suse.com>
Date:   Wed Jun 17 16:46:48 2015 -0400

    PowerKVM is a distro, not a platform
    
    Name OPAL platform correctly.. Bare metal systems are not
    PowerKVM (which is IBM distro), but PowerNV.
    
    Signed-off-by: Dinar Valeev <dvaleev@suse.com>
    Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 09630ae59954de064f379f085e710ba34b999ae4
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Jun 3 08:21:09 2015 -0400

    drmgr: Correct memory affinity when adding memory
    
    When adding a LMB we need to update the affinity as part of the add process.
    The affinity for the LMB we are adding is conveyed in the
    ibm,associativity property for the device tree node of the LMB we are adding
    
    To clarify, a little history. Previously LMB information in the device tree
    was done as a node per LMB in the form memory@XXX, and all of the informatio
    about the LMB as properties under this node. When we moved to using the
    ibm,dynamic-reconfiguration-memory node to convey LMB information the
    ibm,dynamic-memory property provides an index for each LMB into the
    ibm,associativity-lookup-arrays property. This is where we determine the
    affinity for each LMB.
    
    In order to update the affinity for a LMB we are adding we have to call
    configure connector to get the memory@XXX node and its properties for the
    LMB we are adding (yes, rtas did not change this part), find the
    ibm,associativity property, then find the entry in the associativity
    lookup array that matches it. We then update the ibm,dynamic-memory         
    property with the proper index into the associativity lookup array.         
                                                                                
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>                   
    Tested-by: Bharata B Rao <bharata@linux.vnet.ibm.com>                       
                                                                                
commit f95a18deaaaa9c67ca1453e6f12784ecebf45e19                                 
Author: Michael Roth <mdroth@linux.vnet.ibm.com>                                
Date:   Wed Jun 3 08:19:04 2015 -0400                                           
                                                                                
    drmgr: allow PHBs to be specified using numerical DRC index                 
                                                                                
    For each invocation involving '-c phb', if a numerical value is given       
    for -s do a lookup through PHB list to find the corresponding DRC           
    name.                                                                       
                                                                                
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>

commit 2f1227ca13f127005072d856e2f0686e41b83491                                 
Author: Michael Roth <mdroth@linux.vnet.ibm.com>                                
Date:   Wed Jun 3 08:18:19 2015 -0400                                           
                                                                                
    drmgr: don't remove PHB's interrupt node unless PHB actually has one        
    
    Currently we fail to release a PHB to firmware if we're unable to remove
    the PHB's interrupt-controller node from the guest device tree.
    
    However, according to update_phb_ic_info():
    
    "... there can be more ICs than PHBs on a system. In this case, some
    ICs won't have my-drc-index."
    
    In such cases, we don't assign the 'interrupt-controller*' path to the
    PHB's OF node, so simply skip the IC node removal (it either doesn't
    exist, or is not not owned by this PHB) when this occurs and proceed
    with releasing the PHB.
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>

commit 58d6afbbd4b101b7fe8d7b6edb71d27b5ff50c9e
Author: Michael Roth <mdroth@linux.vnet.ibm.com>
Date:   Wed Jun 3 08:17:32 2015 -0400

    drmgr: improve PHB removal performance by avoiding hp_list rebuild
    
    Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>

commit 7c115980147ab4916e25e796ee5ab002287ee3c7
Author: Michael Roth <mdroth@linux.vnet.ibm.com>
Date:   Wed Jun 3 08:14:19 2015 -0400

    drmgr: allow 'empty' state when disabling hp slot/adapter
    
    Current code assumes that slots under a PHB are populated during PHB
    removal. As a result, we attempt to unconfigure the slot/adapter by
    powering it off, then checking for an 'unconfigured' state via
    get_hp_adaptor_status/DR_ENTITY_SENSE. However, if the slot is empty
    well get an 'emtpy' state instead.
    
    We can avoid this by simply not attempting to unconfigure/poweroff an
    adapter if the slot is empty, but it's possible we rely on this in
    some cases to safely power-off slots. Instead, simply allow
    DR_ENTITY_SENSE to report 'empty' after power-off in addition to
    'unconfigured'.
    
    Signed-by-off: Michael Roth <mdroth@linux.vnet.ibm.com>

commit d7e9a49466143514e8d0b392aadf51f8d377406d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Jun 3 08:12:03 2015 -0400

    lsslot: Enhance memory output
    
    This patch adds additional information to the output produced
    by the lsslot command for dynamic reconfiguration memory. The
    default output with this patch will add the address, drc index,
    and associativity for each LMB.
    
    Dynamic Reconfiguration Memory (LMB size 0x10000000)
    LMB2:
        DRC Index: 80000001        Address: 10000000
        Removable: Yes             Associativity: (index: 1) 0 1 2 2
        Section(s): 1
    -- snip --
    
    Additionally, this patch allows users to specify the -d 4 option
    to lsslot for memory which will print information about all possible
    LMBs, not just the LMBs owned by the system.
    
    This patch also adds the ability to print the information for a specific
    LMB by specifyinf its drc index with the -s option.
    
    Dynamic Reconfiguration Memory (LMB size 0x10000000)
    LMB191:
        DRC Index: 800000be        Address: be0000000
        Removable: No              Associativity: (index: 1) 0 1 2 2
        Section(s): 190
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 40b7c2847318b5f9d0ac91aa7bbc37b6e4638f6f
Author: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Date:   Wed Jun 3 08:08:02 2015 -0400

    scripts/snap: Ignore deprecated /proc/ network files
    
    Teach snap to ignore deprecated sysctl network files, while
    gathering information from /proc. Reading deprecated file,
    throws warnings in /var/log/message like:
    kernel: process `snap' is using deprecated sysctl (syscall)
    net.ipv6.neigh.default.retrans_time; Use net.ipv6.neigh.default.retrans_time
    
    Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    Cc: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>

commit 7bc6978561aa994f7336318ef693bf8debeaac91
Author: Bharata B Rao <bharata@linux.vnet.ibm.com>
Date:   Mon May 11 11:23:05 2015 -0400

    drmgr: Fix LMB lookup by index
    
    From: Bharata B Rao <bharata@linux.vnet.ibm.com>
    
    If drc_index is used with -s option and the drc_index specified
    doesn't correspond to the first available unused LMB, get_available_lmb()
    ends up returning first available LMB that doesn't match the requested
    drc_index.

    Fix this by explicitly checking for drc_index when drc_index is specified
    with -s option.
    
    Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>


powerpc-utils-1.2.25
=====================================================================
commit 948bbf83b43c9a3bc00f521326e096ca6c7848c5
Author: Bharata B Rao <bharata@linux.vnet.ibm.com>
Date:   Mon Apr 13 11:20:00 2015 -0500

    drmgr: Fix CPU/LMB add/removal using drc_index
    
    This patch fixes a few things:
    
    - Removing a CPU using drc_index is currently removing wrong CPU since
      CPU removal code doesn't lookup CPU by index. Introduce a routine to
      lookup by index and ensure that it gets used from the removal path.
    - get_cpu_by_name() does an implicit looking up of index also. Fix this.
    - drmgr -s option can mean both drc_index and drc_name. In case of
      drc_index, rtas_errd will invoke drmgr without -q option which results
      in no CPU or LMB being added. Make 1 as the default count of
      CPUs unconditionally which applies to both the cases.
    
    After these fixes, I am able to get CPU hotplug and removal working
    with QEMU on a PowerKVM host.
    
    Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>

commit 7f1ba6f2cefbc72112ee809d2b5fd90e7525417d
Author: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Date:   Tue Mar 31 18:27:06 2015 -0400

    drmgr: Fix to check for drmgr REPLACE (-R) flag
    
    In drmgr command drmgr -R (REPLACE) flag check was missing, so
    this patch is to fix drmgr -R flag in valid_pci_options() interface.
    
    *************************************************
    Test results:
    
    before fixing the patch:
    The '-r', '-a', or '-i' option must be spcified for PCI operation
    
    After fixing the patch:
    
    The specified PCI slot is either invalid
    or does not support hot plug operations.xing the patch:
    **************************************************************
    
    Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>

commit a941cdfb9609bba04c5bad18ab8af1c85b7b6a9b
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Tue Mar 31 18:23:59 2015 -0400

    drmgr: Use sysfs migration store to initiate migration when possible
    
    The sysfs attribute /sys/kernel/mobility/migration has been present for
    sometime, but never actually used by drmgr. It can be used to initiate a
    migration operation in place of the existing faux ibm,supsend-me rtas call.
    Further, newer kernels are capable of doing the device tree update.
    
    We can test the /sys/kernel/mobility/api_version attribute to determine the
    course of action drmgr should take. Newer kernels will return 1 indicating
    the kernel is cabable of performing the migration and postmobility fixups.
    If the attribute is unreadable or returns 0 drmgr should resort to initiatin
    the migration via rtas, and communicate the post mobility device tree update
    through the /proc/ppc64/ofdt interface to the kernel.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit 62edbba0a29851db8089650e122facb95f40d317
Author: Henish Patel <hpatel@linux.vnet.ibm.com>
Date:   Wed Mar 11 21:34:32 2015 -0500

    snap: Restrict the usage of snap on RHEL 7 onwards
    
    snap is not supported on the RHEL 7 onwards, because we have integrated snap
    functionality in sosreport. So this patch displays a suitable message.
    RHEL 7+ users can use sosreport to collect log data.
    
    Signed-off-by: Henish Patel <hpatel@linux.vnet.ibm.com>

commit 63f9d99136c0630008cbb5fd241f46d6618e9b1b
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri Feb 13 10:15:44 2015 -0500

    ppc64_cpu: Initial man page.
    
    Initial man page for the ppc64_cpu command.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit cb0c5c844b384b335cf50e92e20a080b5364e186
Author: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
Date:   Fri Feb 13 10:13:03 2015 -0500

    Add systemd unit (smt_off) to control smt status.
    
    This patch add a --with-systemd attribute to install a systemd unit
    to turn smt on or off (permanently or not).
    
    After it's installed you can use systemd commands like: status, start,
    stop, enable and disable to control it.
    
    Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>

commit acfa92352e3b2bddf256de23e7ef07ad3a47ec08
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Jan 7 15:05:45 2015 -0500

    drmgr/lsslot: Fix broken memory     support for little endian
    
    Commit 493bfdda30b61be46d7d71e5e7bb05df9334ba81 should have removed
    some endian conversions included in previous commit. Unfortunately,
    they were not removed, causing problems when hotplugging memory.
    This patch removes those endian conversions.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

powerpc-utils-1.2.24
=====================================================================
commit cccfb3c8d867e07a8f4b983858f04707e4131383
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 11:35:56 2014 -0500

    lparstat: remove "On" from possible smt output
    
    The SMT row will only display the number of enabled SMT threads if
    SMT is enabled.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 8249adcb95c2218704160a3a747859de95d1e3b9
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:55:12 2014 -0500

    ppc64_cpu: output only the number of SMT threads when smt is on
    
    This patch removes "SMT is on" as a possible output when the smt option
    is used. Instead, only the number of SMT threads will be displayed.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 17d6749f2af420dfcf74fc8ac9fb09719793e2b8
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:50:45 2014 -0500

    drmgr: Correct the -s option handling correction
    
    In response to my earlier patch that attempted to correct the -s option hand
    for drmgr I introduced a bug in which the usr_drc_name could be NULL causing
    a segfault when attempting to use it.
    
    This patch adds a check to make sure it is not NULL.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 7759a4d35b9b79de171b39a02546cb7365e710ea
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:46:15 2014 -0500

    lparstat: using get_smt_mode when showing SMT info
    
    get_smt_state is used in the system_data structure to display both the
    shared_processor_mode and the smt_state members. After reviewing code and
    documentation, it seems that the information in smt_state is meant to be
    acquired from ppc64_cpu instead of lparcfg. With this change, the SMT listin
    will be determined by the output of ppc64_cpu --smt.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 17d6749f2af420dfcf74fc8ac9fb09719793e2b8
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:50:45 2014 -0500

    drmgr: Correct the -s option handling correction
    
    In response to my earlier patch that attempted to correct the -s option hand
    for drmgr I introduced a bug in which the usr_drc_name could be NULL causing
    a segfault when attempting to use it.
    
    This patch adds a check to make sure it is not NULL.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 7759a4d35b9b79de171b39a02546cb7365e710ea
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:46:15 2014 -0500

    lparstat: using get_smt_mode when showing SMT info
    
    get_smt_state is used in the system_data structure to display both the
    shared_processor_mode and the smt_state members. After reviewing code and
    documentation, it seems that the information in smt_state is meant to be
    acquired from ppc64_cpu instead of lparcfg. With this change, the SMT listin
    will be determined by the output of ppc64_cpu --smt.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit a822bb09ed6eb80f521b04208bd41c23f302351d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:40:14 2014 -0500

    ppc64_cpu: Allow builds without librtas
    
    Currently, --without-librtas disables ppc64_cpu.
    
    However, we only need librtas for the run-mode determination; other
    functions will work fine without it.
    
    This change allows ppc64_cpu to be built without librtas, by
    conditionally enabling run-mode, and restoring ppc64_cpu to be built
    when --without-librtas is given.
    
    We need to re-work src/Makefile.am a little here - we use the +=
    operator to include rtas-specific functionality, which means the
    with-librtas cases need to be listed before the without ones.
    
    We also need to #include stdint.h, as ppc64_cpu.c uses inttypes from
    here.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit 7ab0e4dc62ba8787da05529bc5297a0161c12437
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Nov 25 10:37:35 2014 -0500

    From: Jan Loser <jloeser@suse.com>
    
    snap in powerpc-utils 1.2.20 produces an archive with fstab and
    yaboot.conf files potentially containing cleartext passwords, and lacks
    a warning about reviewing this archive to detect included passwords,
    which might allow remote attackers to obtain sensitive information by
    leveraging access to a technical-support data stream.
    
    Solution:
    
    print a warning that confidential data may be collected via snap
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

powerpc-utils-1.2.23
=====================================================================
commit af84bc0c7647594083978ec31d619031c76f27b6
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 10:08:41 2014 -0400

    drmgr: do not remove the last CPU
    
    The drmgr command should not attempt to remove the last cpu from the system.
    
    Normally this would not be an issue as cpu remove operations are initiated
    from the HMC and the HMC will not allow the last cpu to be removed. This
    issue does arise when handling PRRN events and trying to update the affinity
    on a partition that only has one cpu.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 0089e0c03a5cd9e7b039c7206e7d7c88c654f75d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 10:07:03 2014 -0400

    drmgr: Correct -s option handling
    
    The usage statement for drmgr claims that we can add/remove memory and cpus
    by drc name or drc index. The current code though assumes that any
    use of the -s flag to specify this defaults to drc name.
    
    This patch updates the option checking for memory and cpu operations to
    allow users to specify a drc index with the -s option. This will be
    handled the same way the -s option for pci devices is handled, assume it
    is a drc name unless it starts with '0x', indicating the string is
    really a hex value, and switching it to a drc index.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit abfa87aa4ece22f56fcadae13a0d9f080d5aef85
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 10:05:32 2014 -0400

    drmgr: Correct null pointer usage
    
    We can't de-reference NULL pointers, it's not a nice thing to do.
    
    I found these during some debugging, correcting to avoid future bugs.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 294c77fa79f69b361b014356cf101a4518572f1b
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 10:04:04 2014 -0400

    ofpathname: Fix checking for hbtl
    
    Fix checking for hbtl in of2l_scsi ().
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 493bfdda30b61be46d7d71e5e7bb05df9334ba81
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 09:47:50 2014 -0400

    lsslot/drmgr: little endian support for memory
    
    This patch adds some support for memory slot listing
    and memory hotplugging on little endian systems.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 1df19388f82883bf6a457f8a9913991ec4cd5cea
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 09:46:17 2014 -0400

    ofpathname: Convert OF format to logical device for virtio-scsi devices
    
    Add support to convert a Open Firmware device path to logical
    device path for virtio scsi device.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 70de5fdce708b9c339769ce4d58a27706788c7df
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 09:44:05 2014 -0400

    ofpathname: Convert logical path to OF device path for virtio-scsi devices
    
    Add support to convert logical device path to Open firmware device path
    for virtio-scsi devices.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 95596ab7764f294d5755756ba097159774f5a7bb
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Oct 20 09:35:51 2014 -0400

    snap: Display message for Ubuntu platform
    
    snap is not supported on the Ubuntu platform hence display
    a suitable messsage. Ubuntu users can use log collection tool (apport-collec
    provided by distro.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
    Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

powerpc-utils-1.2.22
=====================================================================
commit 0a67ffbb5d40c49347cd85a74921693457331f82
Author: Joel Stanley <joel@jms.id.au>
Date:   Wed Aug 13 09:38:20 2014 -0500

    ppc64_cpu: Be verbose about inconsistant SMT state
    
    With the use of splitcore, users are more likely to end up in a strange
    SMT state. Be kind and display what the online state of all our CPUs is,
    and explain how to get out of this hole.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit d3e016e9e5683a565824b9ec185901ff7feb25ed
Author: Joel Stanley <joel@jms.id.au>
Date:   Wed Aug 13 09:36:27 2014 -0500

    ppc64_cpu: Remove parameter from do_info
    
    It is unused.
    
    Also add a forward declaration at the top so we can call do_info in other
    interesting places.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 2af3d960442be3d36d8aa8ac914928d4047a0f18
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Wed Aug 13 08:39:17 2014 -0500

    nvram: Handle endianness in the nvram --unzip option.
    
    Handle endianness of the oops log size in the --unzip
    option.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
    Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 48d45ca2ba2f098a4a565dac6e74cafe8db808f9
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Aug 13 08:35:30 2014 -0500

    drmgr/lsslot: increase number of max cpu threads.
    
    The Power8 cpu can support eight threads per cpu core.  This
    patch increases the maximum number of threads from four to eight.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 23872cbdce2107562b1b997cf306d6279ddf5d50
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Aug 13 08:22:37 2014 -0500

    lsslot/drmgr: little endian support for memory
    
    This patch adds some support in retrieving memory slot information
    on little endian systems.  These changes have only been tested using
    lsslot.  Adding or removing memory via drmgr has not been attempted.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit c0e6665d9da9797df4b7516f2ef14d7a45f5cb81
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Aug 13 08:00:52 2014 -0500

    lsslot/drmgr: little endian support for cpu
    
    This patch adds some support in retrieving cpu slot information
    on little endian systems.  These changes have only been tested using
    lsslot.  Adding or removing cpu's via drmgr has not been attempted.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

powerpc-utils-1.2.21
=====================================================================
commit a529515e6a78bc8d39b58122b99e009291048a78
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Jun 25 16:11:37 2014 -0500

    uesensor: remove unused platform variable
    
    Remove the unused platform variable that appears to be
    an accidental leftover from updating the platform checking
    code.
    
    This was producing a build warning.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit d840b6a2e4d7ee38b08b15c80c562e699f1f7b79
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Wed Jun 25 16:06:17 2014 -0500

    nvram: restrict --nvram-size to 16 byte multiples
    
    PAPR defines a 16 byte block size for nvram partitions. This patch restricts
    the --nvram-size option to sizes that are multiples of 16.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 38f6cab58bd77d75d8bcf52c2b3a4b06002601eb
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Wed Jun 25 16:01:41 2014 -0500

    nvram: fix memory corruption when nvram->nbytes is less than actual nvram si
ze
    
    The nvram_read function always calls read with a 512 byte chunk size. If the
    actual nvram size is greater than nvram->nbytes, which can be overriden by t
he
    --nvram-size option, the allocated read buffer will be overrun.
    
    Fixed read logic to only read upto nvram->nbytes of data.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit ba2c2ad835339f52be8972a3207012ae54749113
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Jun 25 15:58:24 2014 -0500

    set_power_on: handle endianess reading max latency
    
    set_power_on reads device-tree to get the max latency value,
    which is in a big endian format.  This needs to be converted
    for little endian architectures.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 562526a14c3121e695ef782dc028c82e6e350bbf
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Jun 25 15:31:54 2014 -0500

    ppc64_cpu: handle endianess in rtas sysparm buffer
    
    ppc64_cpu passes a buffer to rtas_set_sysparm.  The first two
    bytes of this buffer must encode a integer denoting the
    size of the remaining the buffer. This integer must be in a
    big endian format.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 7e781be45fbf87ccd1792a498788b9aaf3256b72
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Jun 25 15:22:51 2014 -0500

    uesensor: fix endian issues reading device-tree
    
    The values in /proc/device-tree/rtas/rtas-sensors are
    big endian so this needs to be handled for little endian
    architectures.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit 9bfe5991bf5d8e1c047f45a664b636fa05dca39f
Author: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Date:   Wed Jun 25 15:18:55 2014 -0500

    serv_config: handle endianess in sysparm buffer
    
    rtas_get_sysparm and rtas_set_sysparm commands both
    manipulate buffers in which the first two bytes are a big
    endian integer indicating the size of the remaining buffer.
    This patch makes sure those bytes are in the correct format.
    
    Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>

commit a9f264ab1f84c20f144cba9c971883064e5430dd
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Wed Jun 25 15:16:31 2014 -0500

    lsslot: fix segfault when lmb_list->lmbs is NULL
    
    PowerKVM guests currently do not support dynamically reconfigurable
    memory, and as such get_lmbs will return a lmb_list struct whose lmbs
    field is NULL. Added a NULL check to avoid segfault for the case where
    no LMB drc-names  are defined in device tree.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit d9f6fbcea7feeedf5d72ddddef33295cbbe6d622
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Jun 9 06:44:58 2014 -0500

    ppc64_cpu: update access validation routines
    
    The use of fopen() to check for read/write access of system attribute
    files (i.e. sysfs) no longer works with kernels 3.14 and later. The man
    page for fopen() states that there is an implied file creation if the
    file does not exist. This now causes fopen() to return EACCES instead
    of ENOENT for files that do not exist.
    
    This patch updates ppc64_cpu to use access() to validate file existence
    and file read/write permissions.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Reviewed-by: Joel Stanley <joel@jms.id.au>
    Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 38005d9cc59a5f81754b93b1479f8538c7151976
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Mon Jun 9 06:42:42 2014 -0500

    update_flash: Fix typo in man page
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit cc4589f43ae5ca2fffd9b96997ba09023f9e8999
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Mon Jun 9 06:39:26 2014 -0500

    update_flash_nv: Display current FW version
    
    Add support to display current firmware version detail
    on PowerKVM host.
    
    Sample output:
    [root@abc123 tmp]# update_flash -d
    Current firwmare version :
      T side    : FW770.20 (ZL770_060)
      P side    : FW770.20 (ZL770_060)
      Boot side : FW770.20 (ZL770_060)
    
    Suggested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 2dfd19700a0dbe8df0c0cfc2b6c23ef42dbb6c11
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Mon Jun 9 06:37:41 2014 -0500

    snap: Fix typo in output display
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com

commit 507d3ba46376f96094093bf8dbff0cbc7d158390
Author: Anton Blanchard <anton@samba.org>
Date:   Fri Apr 25 08:24:24 2014 -0500

    update_flash: Remove some bashisms
    
    == is a bashism. Replace it with =.
    
    We also need to add quotes around some variables to avoid:
    
        local: FW710.00: bad variable name
    
    Signed-off-by: Anton Blanchard <anton@samba.org>
    Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit de159805368210c17d01bfe088c157d394406640
Author: Joel Stanley <joel@jms.id.au>
Date:   Fri Apr 25 08:22:32 2014 -0500

    ppc64_cpu: Let kernel validate subcore options
    
    Previously we checked for valid subcore-per-core options, however, the
    kernel knows better than we do as to what is valid. Remove the check.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 6f11925411d334eb501cc2214e08d4eb596438cd
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Apr 25 08:21:03 2014 -0500

    ofpathname: Convert OF path to logical names for usb devices
    
    Add support to convert a Open Firmware device path to logical
    device path for usb device.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 655649226d2b60eff1a1ef85f92a3ef5cd1b360b
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Apr 25 08:20:09 2014 -0500

    ofpathname: Convert logical device path to OF format for usb devices
    
    Add support to convert logical device path to Open firmware
    device path for usb devices.
    
    Reported-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 852e69a9a099273a3e49ebdfcc2afd13a8e9876e
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri Apr 25 08:18:26 2014 -0500

    drmgr: Update action option validation
    
    The drmgr command does not do any validation of the action option
    specified on the command line, except for some checking for CPU
    operations.. The omission of an action option can lead to confusing
    error messages or just exiting with an error.
    
    This patch updates each connector type with a validation check for
    their respective valid action options.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 865171adc9d0f2a327ac892e99bf60add5255315
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri Apr 25 08:08:06 2014 -0500

    Updating .gitignore fo files that are no longer in git.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit a13ddf3a0bda581984f77c1ca171b34ae90ef83a
Author: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Date:   Fri Apr 25 07:59:51 2014 -0500

    ppc64_cpu: Add option --threads-per-core
    
    The threads per core calculated in ppc64_cpu is more relaiable than the
    same provided by any other utility. Expose the value through an option.
    
    Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>

commit 6e5dfe8302966568e4e7eff6035d7cc5d46481f9
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri Apr 25 07:49:19 2014 -0500

    Move librtas error code to common directory.
    
    Now that we have a src/common directory this patch moves the
    librtas_error files to the common directory.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit e07b773c38effae0c9c16ddc20c423a166638194
Author: Stewart Smith <stewart@linux.vnet.ibm.com>
Date:   Tue Apr 8 15:13:39 2014 -0500

    recursive make considered harmful
    
    Instead, we can use include/ for makefiles, or because we're a small
    project, just put it in one makefile of ~150 lines.
    
    We also fix up the spec file version substitution to use autofoo.
    
    With these fixes, make distcheck works correctly.
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>

commit f8b52ffb07006897e2b9df281f6aea83a5667c03
Author: Stewart Smith <stewart@linux.vnet.ibm.com>
Date:   Tue Apr 8 15:07:38 2014 -0500

    add sys/time.h and gettimeofday detection to configure.ac courtesy autoscan
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>

commit 475e60537c7f872ae44f89e72100d382986e1636
Author: Stewart Smith <stewart@linux.vnet.ibm.com>
Date:   Tue Apr 8 15:04:34 2014 -0500

    check for and use gcc hardening flags if available
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>

commit 63d6bcc2d79814fb625089b4f01d4fdba703ea03
Author: Stewart Smith <stewart@linux.vnet.ibm.com>
Date:   Tue Apr 8 15:00:48 2014 -0500

    remove autogenerated files
    
    files such as Makefile.in and configure should not be checked into
    source repositories as they'll be regenerated on build.
    
    Add a autogen.sh script to run autoreconf
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>

commit 66c23d7323ba26757bd1a6b50b3db6c81c422822
Author: Stewart Smith <stewart@linux.vnet.ibm.com>
Date:   Tue Apr 8 14:44:32 2014 -0500

    Move subdir-objects options to configure.ac rather than Makefile.am(s)
    
    Easier to keep it in one place than several
    
    Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>

powerpc-utils-1.2.20
=====================================================================
commit 73c454bea39418872313cd960d005d4d20262f20
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:23:51 2014 -0500

    powepcutils: Fix platform dependency
    
    Network interfaces can have prefix other than eth. Look for
    all the interfaces in /sys/class/net.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 3bf75d1fe9f1fbc24c34287b2fc50aae841ca2ca
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:16:08 2014 -0500

    ofpathname: Convert OF format to logical device for ethernet devices
    
    Network interfaces can have prefix other than eth. Look for
    all the interfaces in /sys/class/net.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 1e45fb89513b4f474308ac1684c378e67198a55f
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:14:46 2014 -0500

    ofpathname: Convert logical path to OF device path for ethernet devices
    
    Network interface need not have name starting with eth. Check if
    the device is a network interface and convert the logical
    name to OF path.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit ae566f77c7a176079ef868f52d5873096aa98655
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:13:10 2014 -0500

    ofpathname: Convert OF format to logical device for virtual devices
    
    Add support to convert a Open Firmware device path to logical
    device path for virtio block device.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
    Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit a2f49f551bb34023ab1052f92f8c06541e6f3474
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:10:38 2014 -0500

    snap: Fix misplaced if block
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
    Acked-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 7802242d9cadb475bbbae323c34bd177930dd52d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:08:19 2014 -0500

    ofpathname: Enable non-pseries platforms
    
    There are some non-pseries platforms that can (and do) use
    the ofpathname script. This patch updates pseries_platform
    check in ofpathname to allow for unknown platforms.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Reviewed-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 74620d997eda9a8977a8132e06f30da3d46467c7
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Mar 21 09:06:21 2014 -0500

    ofpathname: Convert virtio block device to OF device path
    
    Add the ability to convert a logical device path for
    a virtio block device to its Open Firmware device path.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit d3f442a8b3ac776395d03eb396a2bfc0ea95f0ba
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Wed Mar 12 09:20:54 2014 -0500

    automake: Add subdir-objects automake option
    
    Current git builds fail for me, with:
    
      configure.ac:13: installing 'build-aux/compile'
      automake: warnings are treated as errors
      src/Makefile.am:8: warning: source file 'common/pseries_platform.c' is in 
a subdirectory,
      src/Makefile.am:8: but option 'subdir-objects' is disabled
      automake: warning: possible forward-incompatibility.
      automake: At least a source file is in a subdirectory, but the 'subdir-obj
ects'
      automake: automake option hasn't been enabled.  For now, the corresponding
 output
      automake: object file(s) will be placed in the top-level directory.  Howev
er,
      automake: this behaviour will change in future Automake versions: they wil
l
      automake: unconditionally cause object files to be placed in the same subd
irectory
      automake: of the corresponding sources.
      automake: You are advised to start using 'subdir-objects' option throughou
t your
      automake: project, to avoid future incompatibilities.
      src/drmgr/Makefile.am:9: warning: source file '$(COM_DIR)/pseries_platform
.c' is in a subdirectory,
      src/drmgr/Makefile.am:9: but option 'subdir-objects' is disabled
      autoreconf: automake failed with exit status: 1
    
    Using:
    
    automake (GNU automake) 1.14.1
    
    Since we're using objects in subdirectories, we need the subdir-objects
    atuomake option.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
    
    This commit also contains the updates from running autoreconf with this patc
h.

commit 8283cf470d0de18549443202c9fbabc742aa1975
Author: Greg Kurz <gkurz@linux.vnet.ibm.com>
Date:   Wed Mar 12 09:11:49 2014 -0500

    drmgr: endian fixes for ibm,configure-connector
    
    The ibm,configure-connector RTAS call is supposed to be called several
    times to do its job. It needs a work area to hold data between
    subsequent calls. Among these data, there are integer values that
    must be in big endian order when passed to RTAS.
    
    A buffer is setup by drmgr and passed to the rtas_cfg_connector() call
    in librtas for this purpose. The rtas_cfg_connector() call manipulates
    the work area as simple pointer to a char buffer and makes no assumptions
    about its content. It is hence not convenient to ask librtas to fix the
    endianness of the work area.
    
    Since the work area is entirely exposed in the drmgr code, it is far
    easier and straightforward to handle endianess there. This patch
    enforce the work area to be big endian, always, and drmgr to byteswap
    when needed.
    
    Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>

commit 360eaf780748eb820ad97992db49f16962cbabf9
Author: Joel Stanley <joel@jms.id.au>
Date:   Wed Mar 12 08:43:48 2014 -0500

    ppc64_cpu: bump internal version
    
    Bump the internal version so users know that have fixed subcore support.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 4a2451399e3719d520f052d5180c72b2844ed902
Author: Brian King <brking@linux.vnet.ibm.com>
Date:   Wed Mar 12 08:40:44 2014 -0500

    ofpathname: Fix OF to logical VFC lookup for non zero LUNs
    
    This patch fixes OF path to logical device name translation
    for VFC devices with a non zero LUN when it has leading zeroes.
    
    Signed-off-by: Brian King <brking@linux.vnet.ibm.com>

commit 2f6c718ac7fdfa9757a8e446199d57f2648ac8e7
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Wed Mar 12 08:38:34 2014 -0500

    snap: Fix call traces seen while capturing lparcfg and rtas files
    
    As the lparcfg and rtas procfs files are not populated properly by the
    kernel on the PowerKVM guest do not capture it.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 05b14ae4cd87642c08a72c3c0a8bc2bb6a1b8d0b
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Mar 12 08:16:45 2014 -0500

    lsslot: Correct the return code when no DR slots found
    
    The lsslot command exits with a return code of 1 when there
    are not any DR slots found. We should not consider it an error
    that no DR capable slots are found.
    
    This patch updates lsslot to exit with zero if no DR capable
    slots are found.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 500763c1058664b147523e68f4e046ecd5fa572c
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Mar 12 08:13:38 2014 -0500

    drmgr: Correct parsing of -s option
    
    The -s option can be used to specify a drc name or a drc index in
    some cases. We need to leave the parsing of this value to the
    individual commands in drmgr instead of always assuming that
    strings starting with "0x" should be parsed into ints.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

powerpc-utils-1.2.19
=====================================================================

commit 08fd1d73a0cb66ff9db5cc29c7f3d19182c1c5a0
Author: Greg Kurz <gkurz@linux.vnet.ibm.com>
Date:   Mon Mar 3 13:00:10 2014 -0600

    drmgr: data comming from OF is big endian
    
    The chunk in get_of_list_prop() fixes the following:
    
    Allocation failure (8f00000000) at get_drc_info:240
    
    We also introduce the get_ofdt_int_property() helper to factor the many
    places where byteswap is needed in the PCI code.
    
    Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>

commit 734983c5d40760848eee51d5b0915a1929416126
Author: Greg Kurz <gkurz@linux.vnet.ibm.com>
Date:   Mon Mar 3 12:57:49 2014 -0600

    lsprop, nvram: use standard macros from <endian.h>
    
    Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>

commit 0af3468456d06f5e64fee36f80df605e4f3d15b8
Author: Greg Kurz <gkurz@linux.vnet.ibm.com>
Date:   Fri Feb 28 12:53:45 2014 -0600

    drmgr: fix wrong check of valid_platform() return value
    
    Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>

commit 425fef8cfca8b8cd57b78aaecbba8cf2fb647cb1
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Feb 28 12:51:25 2014 -0600

    update_flash: Add update access key link
    
    Add link to get new access key.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 62ac13a21a3f61e6974fd8df5a273635e691f7a6
Author: Joel Stanley <joel@jms.id.au>
Date:   Fri Feb 28 12:49:53 2014 -0600

    ppc64_cpu: use write(2) when modifying sysfs
    
    This improves the error handling when setting attributes fails. fprintf
    does not return an error when a sysfs write returns an error.  Using the
    write(2), we can catch bad return codes and inform the user.
    
    The callers of set_attribute have been updated to ignore errors where
    they are expected.
    
    This fixes the following bug:
    
     Modifying --subcores-per-core when a guest is running is not allowed.
     sysfs reports -EBUSY but currently ppc64_cpu reports success, despite
     not doing anything.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 5a79c9af7001a0dccbe9793296eb2155eb6c6232
Author: Joel Stanley <joel@jms.id.au>
Date:   Fri Feb 28 12:48:25 2014 -0600

    ppc64_cpu: handle offline cpus when setting attributes
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 95764cc11adf843de0486045c444011a0ee01a27
Author: Joel Stanley <joel@jms.id.au>
Date:   Fri Feb 28 12:47:22 2014 -0600

    ppc64_cpu: work around bad sysfs online behaviour
    
    The sysfs file /sys/devices/system/cpu/cpuXX/online will return EINVAL
    if set to 1 when already online, or 0 when already offline. This is not
    a fatal error: it is normal behaviour when setting the smt mode.
    
    As we are stuck with the sysfs interface, work around it by looking at
    errno after setting the CPU state, and ignoring the failure if errno is
    set to EINVAL.
    
    While we are here, merge the two for loops into one to avoid duplicating
    the error checking code.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit fdc3e894f5ef619175f16b0d0813fdd996c545a3
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Fri Feb 28 12:45:25 2014 -0600

    pseries_platform: Convert the helper script from bash to dash
    
    As some of the scripts (for ex: update flash) can run in dash this
    script cannot be invoked. Make the string comparison follow POSIX syntax.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 84cce814fbcd61bbf86da19c4697ec3759208f8f
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Fri Feb 28 12:43:18 2014 -0600

    scripts/update_flash: Use reboot instead of shutdown
    
    We may not have a shutdown binary on lightweight systems. However,
    reboot is much more likely.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit 20124e108e76e7e9846294101190e87ad4a7f358
Author: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Date:   Fri Feb 28 12:40:46 2014 -0600

    lparstat: handle unsupported files
    
    Add code to check the return value of fopen before
    reading in to it. Incase of guest, some rtas files
    does not exist. This causes a segv.
    
    Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>

commit 18d15de5455eedfd4bb7ad81a69b4b7173cc909a
Author: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:58:46 2014 -0600

    lparstat: fix a segv in parse_proc_stat
    
    Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>

commit 4f542616dbd80ece536f5f23190d937b4e73dfd9
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:51:30 2014 -0600

    drmgr: workaround for qemu virtio hotplug devices
    
    QEMU wants to hotplug slots on a single bus. The Power rpaphp module is broken
    and only plays nicely when slots are on their own bus. Workaround this limitation
    by using the /sys/bus/pci/rescan interface to discover new devices. The device
    /sys/devices/pci[busid]/[bus:slot:fn]/remove sysfs entry is used to remove the
    device. A new "-V" option is introduced to identify that this workaround for
    pci virtio devices is to be used.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit cfe38bd0994e4ea06d514eaee02325faa0c3369a
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:50:14 2014 -0600

    drmgr: lookup drc_name when drc_index is supplied for pci hotplug
    
    The -s option should accept a drc_name or drc_index. However, currently
    passing a drc_index fails because the code always assumes a drc_name.
    Added a find_drc_name function that takes a drc_index and returns the
    associated drc_name.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit 2bfe73145d397d84b533250784c730e5d14f243d
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:47:12 2014 -0600

    ppc64_cpu: Check {get,set}_attribute return values
    
    Take a look at the return value of the fprintf/scanf, and propagate
    the return code. This removes a compiler warning.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit bbb1493170b10c017cf6e236b25432d5e1a8466b
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:46:31 2014 -0600

    ppc64_cpu: Add --info command
    
    This lists all threads on the system, grouped by the cores they belong
    to. The online status of a thread is indicated by an asterisk.
    
      $ ppc64_cpu --info
      Core   0:    0*    1*    2*    3*    4*    5*    6*    7*
      Core   1:    8*    9*   10*   11*   12*   13*   14*   15*
      Core   2:   16*   17*   18*   19*   20*   21*   22*   23*
      Core   3:   24*   25*   26*   27*   28*   29*   30*   31*
    
    If a system supports subcores, and the user has permission to access the
    sysfs files that indicate the subcore status, the threads will be
    grouped by subcore.
    
      $ ppc64_cpu --info
      Core   0:
        Subcore   0:    0*    1
        Subcore   1:    2     3
        Subcore   2:    4     5
        Subcore   3:    6     7
      Core   1:
        Subcore   4:    8*    9
        Subcore   5:   10    11
        Subcore   6:   12    13
        Subcore   7:   14    15
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 5aab6796437ff766c4633edc7c9616448a9f68d4
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:45:52 2014 -0600

    ppc64_cpu: Core state should depend on all threads
    
    A core should be considered running when any thread is online.  The
    previous test only looked at the first thread on a core, now we loop
    through all cores in the core in question.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 728ec6de660b3dc1fc88e993691f921e3c6b5f87
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:40:46 2014 -0600

    ppc64_cpu: Teach all options about subcores
    
    Commands such as --smt=on/off need to know about subcores so they can
    online the required threads when a core is in split core mode.
    
    Instead of re-implementing commands so that subcores are treated
    correctly, make the entire program treat subcores as cores. This means
    that commands such as --cores-on report the number of subcores, not
    physical cores.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit e1bf03ec85443ed8d6fd51bf31729f6db89f4960
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:40:05 2014 -0600

    ppc64_cpu: Add --subcores-per-core option
    
    Upcoming power8 chips support a concept called split core. This is where
    the core can be split into subcores that although not full cores, are
    able to appear as full cores to a guest.
    
    Currently the kernel supports setting subcores per core to 1 or 4,
    through a sysfs interface.
    
    This command allows the split state to be queried, and set to 1 or 4.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 3b343e0eba660da74362bfde3461812d674fa89d
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:39:22 2014 -0600

    ppc64_cpu: test_attr return 2 when file missing
    
    The old logic was to assume the attribute is readable when the sysfs
    file does not exist. This makes it hard to detect when subcores are
    available.
    
    However, the existing code relies on not returning an error when
    iterating through the CPUs in sysfs. Compromise by returning 2, which
    doesn't break existing code, and allows new users to ask precisely what
    the state of the attribute is.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 2ec5413a7256a4bdeaec2ed825353347df2f1c56
Author: Joel Stanley <joel@jms.id.au>
Date:   Mon Feb 24 11:38:21 2014 -0600

    ppc64_cpu: make internal functions static
    
    A cleanup before making future changes; make all the internal
    functions (in this case, everything except main) and global variables
    static.
    
    Signed-off-by: Joel Stanley <joel@jms.id.au>

commit 190bc260f91775ee3750cd213f7e505008bff676
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:34:35 2014 -0600

    drmgr: Handle platform dependencies
    
    Supported platforms: PowerVm guest, BE guest
    Unsupported platforms: PowerNV
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 85f0eda1db3dcec957d313e46d64eb9fc6528277
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:33:20 2014 -0600

    Handle Platform dependencies for PowerVM guests
    
    Supported platforms: PowerVM guest, BE guest
    Unsupported platforms: PowerNV
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 75aecae8c532d0c12f1540886c2c72463c51e72b
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:31:59 2014 -0600

    Handle Platform dependenciesfor VM & BE guests
    
    Supported platforms: PowerVM guest, BE guest
    Unsupported platforms: PowerNV
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 9abbf45c163dc7ba5e3c9147339dbee3e0fbb6fc
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:30:16 2014 -0600

    pseries_platform: Handle platform dependencies
    
    The patch will take care of identifying the platform and provides
    a common function call (get_platform) which can be exported by
    various other tools of powerpc-utils and display suitable result.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
    Signed-off-by: Suzuki K. Poulose <suzuki@in.ibm.com>

commit 41c0de6844b760bf9946ec350384e91cac8ac80e
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:28:46 2014 -0600

    powerpc-utils/update_flash: Handle platform dependency
    
    Supported platform: PowerNV, PowerVM guest
    Unsupported platform: BE guest
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 12a7d1655864b51c7247302290ca00ba67728511
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:27:47 2014 -0600

    powerpc-utils: pseries_platform tools supported on Pseries Lpar and guest
    
    Supported platform: PowerVM guest, BE guest
    Unsupported platform: PowerNV
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 6314289313d8c13a2b44e4d6324e34bb09e9e155
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:26:30 2014 -0600

    powerpc-utils: pseries_platform for Tools supported on Pseries Lpar
    
    Supported platform: PowerVM guest
    unsupported platform: PowerNV, BE guest
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 39aaaca59b08e2c91b71070a1fad91eb184121c6
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Mon Feb 24 11:25:24 2014 -0600

    powerpc-utils: Handle platform dependencies
    
    The patch will take care of identifying the platform and provides
    a common script which can be called by various other tools of
    powerpc-utils and display suitable result.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit fdd92e0c5654fbc5eba06c9277d3acb7f37ec257
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Feb 12 08:08:21 2014 -0600

    sys_ident: Add support to recognize Power 8 systems.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 727785cf6f533d2408c65dc51b797cc04fac4b23
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:50:51 2014 -0600

    The drmgr command incorrectly returns -1 when passed the --capabilities option.
    This patch corrects drmgr to properly return zero when passed the
    --capabilities flag.
    
    The fix for this involves getting rid of parse_and_validate_options()
    so that we can handle cases where we just want to display the capabilites
    or usage messages properly.
    
    This issue was introduced by this commit:
    http://sourceforge.net/p/powerpc-utils/powerpc-utils/ci/b2fb611e87ebdb27a6b923cf1ac076eb364870b8
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 117f06d82f26fb685b45241c159179233dc7e38b
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:47:57 2014 -0600

    Initialize the 'state' variable to get rid of a compiler warning.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 79879121c3a82063303319625d8a3c33222ec14e
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:47:07 2014 -0600

    Remove useless instances of setting rc variable.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 8f859d2aa63c99ae52b5ef22833deb4005c6d825
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:46:20 2014 -0600

    We can have device tree nodes that do not have any drc information in them.
    This patch checks for this condition and handles it appropriately.
    
    Without this fix we get an allocation failure when trying to get the
    size of a file that does not exist.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 20619e18339c5c15c1e88e031ffb38be5038ee3a
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:45:29 2014 -0600

    This provides updates to drmgr's zalloc() routine to provide
    additional debug information in the case of allocation failures.
    The patch also gets rid of the report_alloc_error() routine
    that does not really provide any information.
    
    The zalloc() routine is moved from being a static inline in dr.h to
    an actual function in common.c with a #define front-end in dr.h
    to grab function and line number.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit a52e903c5ae7fc142502585a4c832979673441e4
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:44:37 2014 -0600

    This patch cleans up the naming of the routines/variables used
    when writing to the kernel files (via sysfs) that are used in
    adding or removing a slot. This is just to (hopefully) make
    reading the code easier, there are no functional changes.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 6251ae1f558636f9c89f8183fa0b8ba7086a1f6c
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:43:03 2014 -0600

    When trying to remove a slot by writing to the sysfs interface
    we need to make sure we wait until the add/remove completes. The
    write to this file will return EBUSY while the kernel is waiting
    for the kernel to complete the work on the slot.
    
    This patch updates the write to the kernel interface file to loop
    on EBUSY while waiting for the operation to complete.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 494bb8a1c99b058c165c5fecd7c8544cb19728e6
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:41:51 2014 -0600

    The ibm,update-nodes rtas call returns an operation list whose first 4 bytes
    are composed of a 1-byte opcode and 3-bytes denoting the number of operands
    in the list. For the add nodes case each operand is actually composed of a
    phandle/drc-index pair. The current code increments the count while processing
    the list for each value instead of each value pair resulting in only half the
    returned nodes being added.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit b26714e71cdabb8959c9a4f28176621a9b4f34d5
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Mon Feb 10 09:40:39 2014 -0600

    By testing the hibernate and migrate sysfs attributes drmgr can determine if a
    device tree update is required. If the update is done by the kernel reading
    the attribute file will return 1. Otherwise, it should either return 0 or be
    unreadable to indicate drmgr needs to update the device tree from userspace.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit aeb32757cab7b70ad67c20b7b1ebd4886fc707f4
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Tue Jan 14 19:57:32 2014 -0600

    Presently update_flash_nv is not executable. So if we try to
    execute this script we hit "Permission denied" error. This
    patch makes update_flash_nv as executable.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 776e6359a6141fd943755c3958e012a677021f2a
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Tue Jan 14 19:56:05 2014 -0600

    Fix oops_log_info header in the oops record to ensure the header
    size is same across all processors.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 99ca9bb86e370f630c25da46a95d540de11e6580
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Tue Jan 14 19:54:25 2014 -0600

    Add -h flag to update_flash and update_flash_nv tool.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit dce5813f5ed7c38c7297f8d967a903abc3184853
Author: Paul Mackerras <paulus@samba.org>
Date:   Tue Jan 14 19:53:58 2014 -0600

    From: Paul Mackerras <paulus@samba.og>
    
    Add the ability to convert a logical device path for
    a virtio block device to its Open Firmware device path.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 0f1e70a274bbad5b08221dace596d016d77a12e9
Author: Bharani C.V <bharanve@linux.vnet.ibm.com>
Date:   Mon Dec 2 14:01:44 2013 -0600

    snap command uses open call to open the input file and
    then uses sysread call to copy content from soure file
    to destination. Command hangs if input file is blocked.
    This patch uses sysopen with NONBLOCK flag instead of
    regular open call so that we don't hang.
    
    Signed-off-by: Bharani C.V. <bharanve@linux.vnet.ibm.com>
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 55dc0d27a1402b0dda8d982f9539681b9d8cc040
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Mon Dec 2 13:03:44 2013 -0600

    Man page update for PowerNV platform.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 0646c2365d4a67b741d76da037d103869bbe3380
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Nov 22 12:40:17 2013 -0600

    Update Makefile and spec file to pickup update_flash_nv tool.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit aafc3ec5972c4263da3c0e421fffa53723925b96
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Nov 22 12:39:27 2013 -0600

    This patch checks for running paltform and if system is in PowerNV
    mode it calls update_flash_nv tool.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 5bacd664873bc84143a8ace6db745d7361a2b192
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Nov 22 11:42:38 2013 -0600

    This patch adds support for PowerNV platform.
    
    Code update procedure in both pSeries and PowerNV platform is same.
    But return codes and interface to pass image to kernel differs. Also
    in PowerNV by default inband code update is allowed. Hence I have
    introduced new file (update_flash_nv) rather than updating existing
    update_flash command.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit bbffa245e281626d6e3a9c689dc843bead7e2188
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri Nov 22 11:15:09 2013 -0600

    The function keyword is a bashism and it will not be recognized by
    other POSIX complaint shell. POSIX syntax does not use function and
    mandates the use of parenthesis. Hence change all function definations
    in update_flash tool to follow POSIX standard.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 5e5f13fc0998e010b366f8d122ad90e07d948ae0
Author: Cedric Le Goater <clg@fr.ibm.com>
Date:   Thu Nov 21 14:07:04 2013 -0600

    From: Cedric Le Goater <clg@fr.ibm.com>
    
    The nvram is in big endian order. The partition length needs to be
    byte-swapped when it is read or written on little endian machines.
    
    Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>

commit 1e33a4f25f6b6d384b019c065eb1919e768eb876
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Thu Nov 21 14:01:49 2013 -0600

    f we're only interested in building the OF tools (nvram, lsprop, etc),
    then requiring librtas is a little unnecessary.
    
    This change adds --without-librtas to allow building without librtas
    present.
    
    Requires an autoreconf.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
    
    Since this required an autoreconf I am including the diffstat from the
    original patch to hopefully make picking out the code changes (and
    not updates to to sutoreconf) easier.
    
     configure.ac          |   19 ++++++++++++++++++-
     src/Makefile.am       |   15 +++++++++------
     src/drmgr/Makefile.am |    2 ++
     3 files changed, 29 insertions(+), 7 deletions(-)

commit db5449adfea023c54b5f5f339cde6be6cdbb97b0
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Wed Nov 20 10:03:02 2013 -0600

    On a ppc64 f18 machine, I see the following error during make install:
    
     make[3]: Entering directory `powerpc-utils/scripts'
     make[3]: Nothing to be done for `install-data-am'.
      /usr/bin/mkdir -p '/usr/bin'
      /usr/bin/mkdir -p '/usr/bin'
      /usr/bin/mkdir -p '/usr/sbin'
      /usr/bin/mkdir -p '/usr/sbin'
      /usr/bin/install -c amsstat '/usr/bin'
      /usr/bin/install -c amsstat '/usr/bin'
      /usr/bin/install -c update_flash hvcsadmin rtas_dump snap bootlist ofpathname lsdevinfo ls-veth ls-vscsi ls-vdev '/usr/sbin'
     /usr/bin/install: cannot create regular file ‘/usr/bin/amsstat’: File exists
     make[3]: *** [install-dist_binSCRIPTS] Error 1
    
    We seem to have duplicate install rules due to the separate dist_ rules
    in scripts/Makefile.am.
    
    Since the dist_*_SCRIPTS rule also implies *_SCRIPTS, we can remove the
    non-dist_ versions.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
    Reviewed-by: <hegdevasant@linux.vnet.ibm.com>

commit 87c7651947143e8697ccf669307b577415359007
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Wed Nov 20 10:01:41 2013 -0600

    Update FW entitlement message to reflect IBM preferred wordings.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

powerpc-utils-1.2.18
=====================================================================
commit 1cb9a27a8751ee0f0d5d54de2e9b3e086618fc82
Author: Philip Kelleher <pjk1939@linux.vnet.ibm.com>
Date:   Tue Sep 10 11:15:52 2013 -0500

    From: Philip Kelleher <pjk1939@linux.vnet.ibm.com>
    
    Added support for IBM Flash Adapter devices within the
    snap script.
    
    The script will check whether or not IBM Flash
    Adapters are currently loaded in the system. If so, the
    script will check them. If not, the script will do its
    normal operations.
    
    It will, then, check whether or not the rsxx-utils are
    installed on the system. If they are installed, the rs_cardreport
    application will be ran. If not, the script will print out
    a warning stating that IBM Flash Adapter information could
    not be gathered. The script will continue normally either
    way.
    
    Signed-off-by: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>

commit 07165e5854b928d007ea2af1542a64c8d07c1336
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Sep 10 11:13:49 2013 -0500

    Allow frequency sampling for given time periods.
    
    This patch adds an option [-t <time> ] for the --frequency action in
    ppc64_cpu so that users can specify the period in seconds over which
    they want to do frequency sampling.
    
    Signed-off-by:Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit b2fb611e87ebdb27a6b923cf1ac076eb364870b8
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Sep 10 11:12:19 2013 -0500

    Acquire the dr_lock earlier in dr operations.
    
    The dr_lock used to serialize dr operations should be taken earlier.
    The current code takes the lock after opening the log file, this can
    lead to having multiple instances of drmgr writing to the file at the
    same time.
    
    To do this, the patch moves the taking and releasing of the dr_lock into
    the dr_init and dr_fini routines as well as cleans up main() to make
    unlocking easier to handle.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit d6a24ab18d9e48aa90712c4dcda69425f246287b
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Sep 10 10:46:33 2013 -0500

    Update the drc-type descriptions for PCI-e Gen 3/4 slots
    
    This patch adds description strings for the newly added drc types
    defined in the PAPR. Additionally, this initializes the description
    string returned by node_type() to "Unknown", otherwise we could
    return an uninitialized string.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 7b8150e442df2f41546cb3925019c9fcb8b5b59e
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Tue Sep 10 10:44:43 2013 -0500

    Commit 8182dda resulted in excluding COPYRIGHT file from
    gzip (make dist-gzip). This causes rpmbuild to fail.
    
    Adding COPYRIGHT file to EXTRA_DIST.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit affd141c66cdd46a3a25ed7ad66e5c8096979b34
Author: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>
Date:   Tue Sep 10 10:42:54 2013 -0500

    Handle addition of timestamp information in the oops header. New format
    oops header has version in the same place as length in the old header.
    Version is assigned a value greater than oops partition size (illegal length)
    in kernel. If unzip_partition finds an illegal length, it will understand its
    new style header and parse the information accordingly. With this --unzip
    option will work with both old and new-style headers.
    
    Signed-off-by: Aruna Balakrishnaiah <aruna@linux.vnet.ibm.com>

commit 06f85125973d87c12dd297dce51e5e5cf4d91f46
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Jun 25 08:14:53 2013 -0500

    drmgr: Post processing for PCI replace
    
    During a PCI replace operation we can hit scenarios where the adapter
    was not able to completely clean everything up before it is removed.
    Such a scenario would be an adapter completely failing or just being
    pulled from its slot while the system is up.
    
    In these cases we need to add an additional remove and add to the flow
    of operations in the replace code path. This allows us to add the
    adapter back to the system which gives us enough to do a complete
    remove and clean everything up, and then add the adapter again.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 04c9a8467022f75843e9a564f3b28e132544b9cc
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Jun 25 08:14:06 2013 -0500

    drmgr: Ensure devices are present during pci replacement
    
    In some instance during a PCI replacement operations (drmgr -c pci -R)
    the adapter we are adding does not immediately appear. In these cases
    a small wait is required for the adapter to appear.
    
    This patch adds a small loop checking for the adapter's presence before
    continuing the replace operation. The update also adds an option for
    users to exit the operation if the adapter does not appear.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit ff981e0e652364d9b3a3262d315d87e26c772135
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Jun 25 08:12:40 2013 -0500

    drmgr: Check for rpadlpar_io module
    
    When attempting to do slot or phb DLPAR we need to have the rpadlpar_io
    kernel module loaded. This patch updates the check made for slot and
    phb DLPAR capabilities to also load the module if it is not present.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 8182dda83cae0d81b7c12c745ccae1932b0a52ac
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:11:10 2013 -0500

    Makefile: Don't install docs twice
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit 288989572bcfdc272bce45e8600e7ce293184a3b
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:09:31 2013 -0500

    nvram: Allow deleting variables
    
    nvram --update-config myvar= to delete a variable.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit c4ea6a1cbf3d3be8b47132b3e2c6bcad638e3ef6
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:08:01 2013 -0500

    nvram: Write complete nvram data
    
    write() may not write the entire buffer we hand it. In this case, don't
    fail, but advance along our buffer.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit 1f7112d09affbf29bb354d7de3587fa2310a564d
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:07:11 2013 -0500

    nvram: Allow new parameters to be added
    
    Currently, we exit from update_of_config_var if we don't see an existing
    variable. This means we can't add new variables.
    
    Don't do this.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit e2cc2e0e14f543a6b7e241d5a3951808eb829290
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:06:16 2013 -0500

    nvram: Check --update-config variables for correct format
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit 976dbe9bb7b01b135cac3e7bbd1dce0cdc88636a
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:05:21 2013 -0500

    nvram: Allow zero-terminated output
    
    Currently, there's no way to accurately parse the outout of nvram
    --print-config: properties may contain a newline, which we can't
    distinguish from the end-of-property token.
    
    This change adds a --zero/-0 option to terminate config pairs with a
    NUL character instead.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

commit 8d0fdf663e2a99b17bf8b001c59fb1cffaf7f185
Author: Jeremy Kerr <jk@ozlabs.org>
Date:   Tue Jun 25 08:03:55 2013 -0500

    nvram: Don't use device tree for nvram size
    
    We can query the nvram size with a seek(), which means we don't need to
    lookup in the device tree.
    
    Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

powerpc-utils-1.2.17
=====================================================================
commit f54dc396cba599b1dc81892348b5db92743c9ff5
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Jun 4 06:17:07 2013 -0500

    The 'Desired Variable Capacity Weight' field in the output from lparstat -i
    is reported twice. This patch removes one of them so that it is only reporte
d
    once.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit e23f326d6c811bd923af97b7ce985961a4e42040
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed May 29 21:15:20 2013 -0500

    This patch does a lot of cleanup of the indentation in places to use 4
    spaces instead of tabs.  Note, this is not really what is preferred but
    what is used by this script, this change tries to make indentation
    consistent in the script.
    
    This patch also makes sure that any called commands redirect their
    error messages to /dev/null and makes sure that bootlist error messages
    are written to stderr.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit afd0a23bc1fe423ef53c914b88dc9c831a292c24
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed May 29 21:12:41 2013 -0500

    The bootlist command uses the ofpathname command to convert between
    logical device names and Open Firmware device path names. The current
    use of ofpathname does not correctly interpret the output and whether
    the ofpathname call succeeds or not.
    
    This patch updates the calling of ofpathname for the entire bootlist
    script to properly handle the return values and success.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 7d036c414f607c84eec890cf6343df2ce1f8dedc
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed May 29 21:09:04 2013 -0500

    The man page and usages statement incorrectly specify the -m option
    as the only required option. One can run the command and only specify
    the -m option, but this results in the script doing nothing.
    
    This patch updates the usage statement and man page to better specify
    the options that need to be specified when using the bootlist command.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit e5240088a6c15d9220f7c373b1bd735295a37377
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Wed May 29 21:07:12 2013 -0500

    The call to do_update on a remove property doesn't account for the null
    terminator in the length and results in the last character of the
    property name being truncated in the log.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit 5a803bf7232929d09ecb86d8f3c32c74dfd41755
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Wed May 29 21:06:02 2013 -0500

    The say() logging function allocates a static 256 byte buffer for
    messages. Messages passed to say() larger than 256 bytes result in a
    truncated message followed by garbage from past the end of the buffer being
    written to the log file. This is a result of using the return value of
    vsnprintf as the length input to the write function. Despite only
    writing no more than 256 bytes (including the trailing \0) to the buffer
    the return value of vsnprintf is actually the total number of bytes (not
    including the trailing \0) that would have been written had the buffer
    been long enough.
    
    This patch checks for truncation, labels the end of the message
    stating as much, and corrects the message length passed to write.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit 89e87c36ac6c74223054819e5a77b57b3acfaef1
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Wed May 29 21:04:44 2013 -0500

    This patch corrects the parsing of the work area buffer returned by
    ibm,update-properties. The first property descriptor is slightly
    different from the rest of the properties returned and needs to be
    handled accordingly.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit 8d818e2bd9f67aa5fad67dbe92fc294fcf52c333
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri May 17 13:30:11 2013 -0500

    Rewrote update_flash man page. Also included below details:
      - Explaination of when temporary image is committed to permanent
        side during firmware update.
      - Information on -s and -n option.
      - Added exit status.
      - Added few examples.
    
    Requested-by: Paul Clarke <pc@us.ibm.com>
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 32581ebc8413cc2064ca25a27833d91708c72616
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri May 17 13:29:27 2013 -0500

    Add new return code to check firmware entitlement expiry.
    Also display firmware GA date and system firmware entitlement
    expiry date, when we try to flash expired image (image GA date
    is beyond system entitlement date).
    
    Upper layer software wants common exit code across OS when
    entitlement expires. So I have added new exit code (E_WRNTY).
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
    Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>

commit 7d2762892d3c28d3264dd86baf43d6ed0857f6e3
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri May 17 13:28:35 2013 -0500

    If machine supports two image areas and machine is running from
    temporary side of image, then attempt to update flash image
    may automatically commit temporary side of image to Permanent
    side.
    
    This patch introduces new flag to stop auto overwrite.
    
    Requested-by: Paul Clarke <pc@us.ibm.com>
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 0f9409e361e507ccbaf81f72bab3b27862723060
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Fri May 17 13:27:46 2013 -0500

    Fixing output display issue.
    
    Sample output without this patch :
    ---------------------------------
    Projected Flash Update Results:
    Current T Image: 20131015
    Current P Image:
    New T Image:     20131001
    New P Image:
    Flash image ready...rebooting the system...
    
    Sample output with this patch :
    ------------------------------
    Projected Flash Update Results:
    Current T Image: ZL780_211
    Current P Image: ZL780_111
    New T Image:     ZL780_211
    New P Image:     ZL780_211
    Flash image ready...rebooting the system...
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 0deb9660cffb5b313605abfeb6a2efee1a92effd
Author: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Date:   Fri May 17 13:22:37 2013 -0500

    Timing out memory remove operations before fulfilling the request can
    result in attempts to unsuccesfully remove the same LMBs on repeated
    requests. This patch implements a simple shuffle algorithm to randomize
    the LMB list.
    
    Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>

commit f247375409a7beece8271833f8a924f3075086fc
Author: Robert Jennings <rcj@linux.vnet.ibm.com>
Date:   Fri May 17 13:18:23 2013 -0500

    This patch changes logic around quanity requested and # sections removable
    for memory remove.  Previously, if you had requested X but some non-zero
    quantify less than X were available it would bail.  Now it will attempt
    to remove as many as are available.  For this case it is still considered
    a partial success and a non-zero (error) return code is given so that
    output is displayed on the management console.
    
    Messages for the memory remove code path are impoved and some message
    logging levels are changed.  Messages now indicate situations that are
    really bugs and should be looked at by support.  For those cases it also
    points the user to /var/log/drmgr for the debug logs.
    
    Here are output examples for the different levels:
    
    ERROR level (1):
    HSCL2932 The dynamic removal of memory resources failed: The operating syste
m prevented all of the requested memory from being removed. Amount of memory rem
oved: 0 MB of 256 MB. The detailed output of the OS operation follows:
    Validating Memory DLPAR capability...yes.
    Removed 0 of 1 requested lmb(s)
    Unable to hotplug remove the remaining 1 lmb(s)
    
    INFO level (3):
    HSCL2932 The dynamic removal of memory resources failed: The operating syste
m prevented all of the requested memory from being removed. Amount of memory rem
oved: 0 MB of 1024 MB. The detailed output of the OS operation follows:
    Validating Memory DLPAR capability...yes.
    Maximum of 24 LMBs
    Found 16 LMBs currently allocated
    Only 2 LMBs are currently candidates for removal.
    Attempting to offline LMB15.
    Could not offline LMB15 at this time.
    Attempting to offline LMB4.
    Could not offline LMB4 at this time.
    Removed 0 of 4 requested lmb(s)
    Unable to hotplug remove the remaining 4 lmb(s)
    
    DEBUG level (4):
    HSCL2932 The dynamic removal of memory resources failed: The operating syste
m prevented all of the requested memory from being removed. Amount of memory rem
oved: 0 MB of 1024 MB. The detailed output of the OS operation follows:
    
    drmgr: -r -c mem -q 4 -w 5 -d 4
    Validating Memory DLPAR capability...yes.
    Maximum of 24 LMBs
    Found 16 LMBs currently allocated
    AMS ballooning is not active
    Only 2 LMBs are currently candidates for removal.
    Attempting removal of 2 lmbs
    AMS ballooning is not active
    Found available LMB, LMB15, drc index 0x8000000e
    Attempting to offline LMB15.
    14:47:56: Marking /sys/devices/system/memory/memory224 offline
    14:47:56: Could not offline /sys/devices/system/memory/memory224.
    Could not offline LMB15 at this time.
    AMS ballooning is not active
    Found available LMB, LMB4, drc index 0x80000003
    Attempting to offline LMB4.
    14:47:57: Marking /sys/devices/system/memory/memory48 offline
    14:47:57: Could not offline /sys/devices/system/memory/memory48.
    Could not offline LMB4 at this time.
    AMS ballooning is not active
    Removed 0 of 4 requested lmb(s)
    Unable to hotplug remove the remaining 4 lmb(s)
    Rotating logs...
    
    Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>

commit 43b90cbd9d5c196e5a18151fb0c9ddaf944bf604
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri May 17 13:16:42 2013 -0500

    The output level should check for a level less than or equal to the desired
    output level. The current check is wrong and we always get all of the output
.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Acked-by: Robert Jennings <rcj@linux.vnet.ibm.com>

commit 0fd2eff3a908566132e845d606204192aae3ba92
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri May 17 13:15:31 2013 -0500

    The code to see if AMS ballooning is active has the side affect of outputtin
g
    a message every time it is checked, which is often. This patch updates drmgr
    so that the check for AMS ballooning and its message are only done once the
    first time it is checked. Any subsequent checks just return the previous
    results.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 69639d89d4f31df6591da4649627a8374252f90a
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri May 17 13:13:51 2013 -0500

    The ppc64_cpu command incorrectly reports the smt snooze delay value of
    -1 as an error in that the value is inconsistent across the cpus on the
    system. This patch updates the command to properly this value by
    separating the tracking of inconsistent values from the return codes from
    retrieving the value.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
    Reported-and-tested-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>

commit 38b53c903b1be01f177049a27cb77acc44828aef
Merge: 2857828 1d06f70
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri May 17 08:44:01 2013 -0500

    Merge branch 'master' of ssh://nfont@powerpc-utils.git.sourceforge.net/gitro
ot/powerpc-utils/powerpc-utils

commit 2857828cc6bfdb612c5b249be86692e4ac03d35f
Author: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Date:   Tue Apr 23 08:46:10 2013 -0500

    kernel commit 404e32e4a8f68d2, supports lower minimum entitlement
    for virtual processors such as 0.05 processing units. This patch
    modifies get_percent_entry() to support these lower values.
    
    Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

commit 1d06f7091ada23c8efa49b9af5b35e3b5e6b3547
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Apr 23 08:46:10 2013 -0500

    kernel commit 404e32e4a8f68d2, supports lower minimum entitlement
    for virtual processors such as 0.05 processing units. This patch
    modifies get_percent_entry() to support these lower values.
    
    Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>

commit 7ad241bf127e3e0787140f4712f7f18be8f6f11d
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Apr 23 08:43:46 2013 -0500

    The drmgr command has always taken the -w option to specify
    how long to try an operation before timing out. Historically
    this option was always ignored, and then at some point used to
    time out when trying to acquire the drmgr lock.
    
    As we see larger systems coming around we need to start honoring
    this option so we do not consume unneeded time going through every
    possible LMB and CPU on the system.
    
    This patch saves the timeout specified on the command line (-w)
    and then checks it while trying to take the drmgr lock and before
    each CPU/LMB it tries to add/remove. If no timeout is specified
    then drmgr will never timeout.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

powerpc-utils-1.2.16
=====================================================================
commit 0c358d8d7391f99d02315786871735f73eba8af1
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Fri Feb 1 17:57:47 2013 -0600

    The drmgr command does not currently allow users to specify the drc index of
    the resource they wish to add/remove. This patch updates the drmgr command s
o
    that users can specify either a drc name or a drc index with the -s option.
    
    This functionality is needed for the upcoming userspace handling of PRRN RTA
S
    events. The rtas_errd will already have the drc index for the resources it
    needs, adding the capability to parse drc names from the device tree is not
    supported in rtas_errd though.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 91459f3188bb9db0ac8da23133d7330520520728
Author: Robert Jennings <rcj@linux.vnet.ibm.com>
Date:   Fri Feb 1 17:56:20 2013 -0600

    Update the man page for update_flash which had an out of date link
    to instructions for resetting a managed system to a non-partitioned
    configuration.
    
    Also fix typos in the man page.
    
    Signed-off-by: Robert Jennings<rcj@linux.vnet.ibm.com>

commit 837eaff650ab19784b6b04d2d14fb29c966a485f
Author: Nishanth Aravamudan <nacc@us.ibm.com>
Date:   Fri Feb 1 17:42:53 2013 -0600

    The upstream kernel has a feature in the pseries PCI code called DDW
    that inserts TCEs transparently to device drivers. The upstream kernel
    was recently sent a fix for DLPAR that ensured those TCEs would get
    cleared upon DLPAR remove (http://patchwork.ozlabs.org/patch/213735/),
    but for it to work, we need a corresponding change to drmgr for, at
    least, PHB remove, so that the notifier chain has fired before we call
    into the slot isolate code. Without such a change, there is no way to
    ensure the DDW TCEs are cleared, and the DLPAR will always fail.
    
    Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>

commit 85325c113104602a257a0f7cf3da0dbd5d222d56
Author: Michael Ellerman <michael@ellerman.id.au>
Date:   Mon Jan 7 20:42:01 2013 -0600

    Add and use dt_swap_int() to byte swap on little endian.
    
    Also declare buf as unsigned char, so that we don't sign extend when
    printing values from it.
    
    Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
    Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>


powerpc-utils-1.2.15
=====================================================================
commit 3f31d1980331cb72d3328269f27de4c8d3132178
Author: Anton Blanchard <anton@samba.org>
Date:   Tue Dec 18 12:10:20 2012 -0600

    The frequency determination for a system can fail if we can not open
    enough files to make the determination. This patch pre-emptively
    updates the rlimit to ensure we can open all the files necessary.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit 8d8e98514aeae82966123eed1a4f5c79e2f1a758
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Tue Dec 18 12:02:48 2012 -0600

    The latest firmware levels allow for setting different power savings
    modes. This updates the ppc64_cpu command to display the power savings
    mode that is currently set for the partition, or for the partition
    and the system if they are different, when displaying the results
    for the --frequency option.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

commit e22d290b980dedbe4e6d297e0a1f4c0517e7f9db
Author: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
Date:   Thu Dec 13 09:26:49 2012 -0600

    Add support to convert device-mapper multipath device names to OFW device pa
th.
    As multipath devices are seen by the OFW as multiple (equivalent) devices, o
nly
    one of them is printed so we don't break user scripts expecting one line
    output. We can add an option later to print all the paths to the multipath
    device.
    
    Signed-off-by: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>

commit 3eacc075d455b91a23a2280ee726fd3d236abf77
Author: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date:   Wed Dec 12 10:08:38 2012 -0600

    We have introduced full fledged Light Path Diagnostics support
    on PowerLinux. To bring all Light Path Diagnostics related
    code into common tree and re-use common functionalities across
    tools, we have re-implemented usysident/usysattn commands. Light
    Path Diagnostics including new implentation of usysident/usysattn
    will be hosted in PowerLinux diagnostic package (ppc64-diag).
    
    ppc64-diag source:
      http://sourceforge.net/projects/linux-diag/files/ppc64-diag/
    
    This will introduce package conflict between ppc64-diag and
    powerpc-utils. To avoid the conflict we need to deprecate the
    usysident/usysattn commands from powerpc-utils.
    
    This patch deprecates usysident/usysattn commands.
    
    Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>

commit 588df55fa1e0c0061776aa4338512a4b56614b93
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Dec 12 09:24:17 2012 -0600

    Update the values reported in the ppc64_cpu --frequency output to
    be displayed to three digits of precision instead of two.
    
    This update to help with test teams that are making this update to their
    code base already so as to get this precision in the reporting.
    
    Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>

powerpc-utils-1.2.14
=====================================================================
commit 54b295ff2ec131d173ebf3913565adbe4a5f0c2f
Author: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Date:   Wed Oct 17 13:47:49 2012 -0400

    The latest kernels allow for users to get/set the DSCR value on a per proces
    This allows for more refined DSCR setting in applications. This is implement
    by using the ptrace peekuser capabilites in the kernel and simply doing a
    ptrace attach and peek from the ppc64_cpu command. Note: this does not actua
    stop the process we are attaching to while under ptrace control.
    
    The patch does a little more than just adding this functionality since the
    --dscr commad now takes an optional -p <pid> option. This required an
    updated to the command parsing code to allow this.
    
    Signed-off-by: Nathan Fontenot <nfont@liunux.vnet.ibm.com>

commit 90029c93af26f01ef37624fd9d27809d6734f5f7
Author: Santiago Leon <santil@linux.vnet.ibm.com>
Date:   Wed Oct 17 13:35:14 2012 -0400

    Includes the status field for Ethernet devices.  This field is necessary for
    the End-to-End Virtual Device View feature.  The field is blindly set to 1
    because we're trying to mimic AIX's lsdevinfo behavior that always sets it t
    unless the device doesn't have a driver, which can't happen in Linux.
    
    Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com>

powerpc-utils-1.2.13
=====================================================================
commit 361dcc6ee5ca8a41b311b0c82c88d4633c884b2a
Author: Vasant Hegde <vahegde1@linux.vnet.ibm.com>
Date:   Thu Aug 16 08:31:59 2012 -0500

    Adding more power specific files/commands to snap.
    
    Signed-off-by: Vasant Hegde <vahegde1@linux.vnet.ibm.com>

commit 5d1fcd0a882f1e5f0b569b1dab29ee5f55801583
Author: Breno Leitao <brenohl@br.ibm.com>
Date:   Thu Jun 14 09:31:47 2012 -0500

    There are two parameters on lparstat, count and interval, that were
    undocumented on the man page. This patch adds these parameters to the
    option section in the lparstat manpage.
    
    Signed-off-by: Breno Leitao <brenohl@br.ibm.com>

commit 7fb183b52bc01e839529f1ac669fc488d3a047ac
Author: Vasant Hegde <vahegde1@linux.vnet.ibm.com>
Date:   Thu Jun 14 09:24:44 2012 -0500

    snap uses temporary directory to gather system data (files and command
    output), and finally creates compressed output file in tar or tar.gz
    format. We do not need to keep the temporary directory.
    
    This patch deletes the temprory directory used by snap.
    
    Signed-off-by: Vasant Hegde <vahegde1@linux.vnet.ibm.com>

commit 8666fe0e239266cff9cfc41907018913877bb9de
Author: Vasant Hegde <vahegde1@linux.vnet.ibm.com>
Date:   Thu Jun 14 09:24:08 2012 -0500

    Currently by default snap output is stored in snap.tar.gz file. This
    makes difficult to identify when the snap output was collected.
    
    This patch introduces new option -t which adds hostname adds and
    system time to output filename. With -t output filename will be
    snap-<hostname>-<systemtime>.tar.gz. This patch also creates
    snap_commands directory inside $outdir to save output of commands
    executed by snap.
    
    Signed-off-by: Vasant Hegde <vahegde1@linux.vnet.ibm.com>

commit 76f59b3090b6a1d5718206026f915b92aaa6fddd
Author: Vasant Hegde <vahegde1@linux.vnet.ibm.com>
Date:   Thu Jun 14 09:22:52 2012 -0500

    Currently snap does not validate the directory name and output filename pass
ed
    with snap options -d and -o respectively. If we pass existing directory whic
h
    contains files/other subdirectories with -d option, while creating the outpu
t
    (snap.tar.gz) it includes all those files which is wrong. If we pass existin
g
    filename with -o option it will override existing file.
    
    This patch fixes above mentioned issue by validating input parameter
    passed to snap command.
    
    Signed-off-by: Vasant Hegde <vahegde1@linux.vnet.ibm.com>

commit fe4836e3d8a6f466e2321e6beaf3bfe5d8fab262
Author: Vasant Hegde <vahegde1@linux.vnet.ibm.com>
Date:   Thu Jun 14 09:22:19 2012 -0500

    Restrict the unsafe constructs by using "use strict" perl pragma
    and hence make snap code better.
    
    Signed-off-by: Vasant Hegde <vahegde1@linux.vnet.ibm.com>

commit c600f2910674f2afb8059abbe3addb593828a8cd
Author: Santiago Leon <santil@linux.vnet.ibm.com>
Date:   Mon Apr 16 08:49:18 2012 -0500

    Adds support for physical ethernet devices so that the HMCs end-to-end
    virtual device view can show SR-IOV VFs. Moves common virtual and physical
    ethernet code to show_eth() function
    
    Signed-off-by: Santiago Leon <santil@linux.vnet.ibm.com>
