commit | c5fa8eee8fa917bb861a830cc08b176bdff3cbcc | [log] [tgz] |
---|---|---|
author | Xo Wang <xow@google.com> | Wed Feb 15 17:10:15 2017 -0800 |
committer | Patrick Williams <patrick@stwcx.xyz> | Mon Feb 20 13:37:30 2017 +0000 |
tree | 024ebb787706eba1061c396095ba63898e9e285e | |
parent | 3b9ab4b5754b0f7fd61fb79da38774209a916c3c [diff] |
meta-zaius: avsbus-control: Raise VDN rails max voltage Testing showed that the VDN max voltage setting is capping the VCS rail setpoints when those setpoints are written by the host over AVSbus. Raise VRMs' upper limit for voltage on the VDN rails to a value that does not interfere with VCS rail voltages. This is a hacky workaround for what is possibly a logic error with the VRMs' firmware and will be rolled back when the root cause is discovered and corrected. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I85fd94f77509bc51aa7909dd7f522163666040fb
diff --git a/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service b/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service index 58f29d3..5980d7c 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service +++ b/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/avsbus-enable@.service
@@ -5,6 +5,7 @@ Conflicts=obmc-chassis-stop@%i.target [Service] +ExecStart={bindir}/zaius_avsbus.sh vdn_max ExecStart={bindir}/zaius_avsbus.sh enable Type=oneshot RemainAfterExit=yes
diff --git a/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/zaius_avsbus.sh b/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/zaius_avsbus.sh index c946179..e8861f9 100755 --- a/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/zaius_avsbus.sh +++ b/meta-openbmc-machines/meta-openpower/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/avsbus-control/zaius_avsbus.sh
@@ -42,6 +42,15 @@ i2cset -y $1 $2 0x01 0x80 b } +# Usage: vrm_vout_max_1v1 <bus> <i2c_address> <page> +# Sets VOUT_MAX to 1.1V +vrm_vout_max_1v1() +{ + vrm_set_page "$@" + echo Setting VOUT_MAX=[1.1V] on bus $1 VRM @$2 rail $3... + i2cset -y $1 $2 0x24 0x44c w +} + # Usage: vrm_print <bus> <i2c_address> <page> vrm_print() { @@ -71,7 +80,12 @@ elif [ "$1" == "disable" ] then for_each_rail vrm_avs_disable +elif [ "$1" == "vdn_max" ] +then + addrs_pages="$vdn_i2c_addr_page" + for_each_rail vrm_vout_max_1v1 else for_each_rail vrm_print echo "\"$0 <enable|disable>\" to control whether VRMs use AVSBus" + echo "\"$0 <vdn_max>\" to set VDN rails VOUT_MAX to 1.1V" fi