/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | rail_tests.cpp | 63 Rail rail{name, in TEST() local 71 EXPECT_EQ(rail.getName(), "12.0V"); in TEST() 72 EXPECT_FALSE(rail.getPresence().has_value()); in TEST() 73 EXPECT_FALSE(rail.getPage().has_value()); in TEST() 74 EXPECT_TRUE(rail.isPowerSupplyRail()); in TEST() 75 EXPECT_FALSE(rail.getCheckStatusVout()); in TEST() 76 EXPECT_FALSE(rail.getCompareVoltageToLimit()); in TEST() 77 EXPECT_FALSE(rail.getGPIO().has_value()); in TEST() 90 Rail rail{name, in TEST() local 98 EXPECT_EQ(rail.getName(), "VCS_CPU1"); in TEST() [all …]
|
H A D | config_file_parser_tests.cpp | 492 std::unique_ptr<Rail> rail = parseRail(element); in TEST() local 493 EXPECT_EQ(rail->getName(), "VDD_CPU0"); in TEST() 494 EXPECT_FALSE(rail->getPresence().has_value()); in TEST() 495 EXPECT_FALSE(rail->getPage().has_value()); in TEST() 496 EXPECT_FALSE(rail->isPowerSupplyRail()); in TEST() 497 EXPECT_FALSE(rail->getCheckStatusVout()); in TEST() 498 EXPECT_FALSE(rail->getCompareVoltageToLimit()); in TEST() 499 EXPECT_FALSE(rail->getGPIO().has_value()); in TEST() 515 std::unique_ptr<Rail> rail = parseRail(element); in TEST() local 516 EXPECT_EQ(rail->getName(), "12.0VB"); in TEST() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/ |
H A D | base.c | 67 struct nvkm_iccsense_rail *rail, in nvkm_iccsense_ina2x9_read() argument 70 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina2x9_read() 71 shunt_reg, 0, bus_reg, 3, rail->mohm, in nvkm_iccsense_ina2x9_read() 77 struct nvkm_iccsense_rail *rail) in nvkm_iccsense_ina209_read() argument 79 return nvkm_iccsense_ina2x9_read(iccsense, rail, 3, 4); in nvkm_iccsense_ina209_read() 84 struct nvkm_iccsense_rail *rail) in nvkm_iccsense_ina219_read() argument 86 return nvkm_iccsense_ina2x9_read(iccsense, rail, 1, 2); in nvkm_iccsense_ina219_read() 91 struct nvkm_iccsense_rail *rail) in nvkm_iccsense_ina3221_read() argument 93 return nvkm_iccsense_poll_lane(rail->sensor->i2c, rail->sensor->addr, in nvkm_iccsense_ina3221_read() 94 1 + (rail->idx * 2), 3, in nvkm_iccsense_ina3221_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | iccsense.c | 76 iccsense->rail = kmalloc_array(cnt, sizeof(struct pwr_rail_t), in nvbios_iccsense_parse() 78 if (!iccsense->rail) in nvbios_iccsense_parse() 83 struct pwr_rail_t *rail = &iccsense->rail[i]; in nvbios_iccsense_parse() local 92 rail->mode = 1; in nvbios_iccsense_parse() 94 rail->mode = 0; in nvbios_iccsense_parse() 95 rail->extdev_id = nvbios_rd08(bios, entry + 0x2); in nvbios_iccsense_parse() 99 rail->mode = nvbios_rd08(bios, entry); in nvbios_iccsense_parse() 100 rail->extdev_id = nvbios_rd08(bios, entry + 0x1); in nvbios_iccsense_parse() 105 if (nvbios_extdev_parse(bios, rail->extdev_id, &extdev)) in nvbios_iccsense_parse() 111 rail->resistor_count = 1; in nvbios_iccsense_parse() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | rail_tests.cpp | 58 Rail rail{"vdd0"}; in TEST() local 59 EXPECT_EQ(rail.getID(), "vdd0"); in TEST() 60 EXPECT_EQ(rail.getConfiguration(), nullptr); in TEST() 61 EXPECT_EQ(rail.getSensorMonitoring(), nullptr); in TEST() 81 Rail rail{"vddr1", std::move(configuration), in TEST() local 83 EXPECT_EQ(rail.getID(), "vddr1"); in TEST() 84 EXPECT_NE(rail.getConfiguration(), nullptr); in TEST() 85 EXPECT_EQ(rail.getConfiguration()->getVolts().has_value(), true); in TEST() 86 EXPECT_EQ(rail.getConfiguration()->getVolts().value(), 1.3); in TEST() 87 EXPECT_EQ(rail.getConfiguration()->getActions().size(), 2); in TEST() [all …]
|
H A D | sensor_monitoring_tests.cpp | 79 std::unique_ptr<Rail> rail = std::make_unique<Rail>( in createParentObjects() local 81 Rail* railPtr = rail.get(); in createParentObjects() 93 rails.emplace_back(std::move(rail)); in createParentObjects() 146 auto [system, chassis, device, i2cInterface, rail] = in TEST() 183 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST() 198 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST() 222 auto [system, chassis, device, i2cInterface, rail] = in TEST() 244 monitoring->execute(services, *system, *chassis, *device, *rail); in TEST() 264 auto [system, chassis, device, i2cInterface, rail] = in TEST() 319 *rail); in TEST() [all …]
|
H A D | id_map_tests.cpp | 93 Rail rail{id}; in TEST() local 99 idMap.addRail(rail); in TEST() 106 EXPECT_EQ(&railFound, &rail); in TEST() 224 Rail rail{id}; in TEST() local 225 idMap.addRail(rail); in TEST() 232 EXPECT_EQ(&railFound, &rail); in TEST()
|
H A D | configuration_tests.cpp | 302 std::unique_ptr<Rail> rail = in TEST() local 304 Rail* railPtr = rail.get(); in TEST() 311 rails.emplace_back(std::move(rail)); in TEST() 373 std::unique_ptr<Rail> rail = in TEST() local 375 Rail* railPtr = rail.get(); in TEST() 382 rails.emplace_back(std::move(rail)); in TEST() 451 std::unique_ptr<Rail> rail = in TEST() local 453 Rail* railPtr = rail.get(); in TEST() 460 rails.emplace_back(std::move(rail)); in TEST()
|
/openbmc/linux/Documentation/hwmon/ |
H A D | corsair-psu.rst | 51 curr2_input Current on the 12v psu rail 52 curr2_crit Current max critical value on the 12v psu rail 53 curr3_input Current on the 5v psu rail 54 curr3_crit Current max critical value on the 5v psu rail 55 curr4_input Current on the 3.3v psu rail 56 curr4_crit Current max critical value on the 3.3v psu rail 59 in1_input Voltage of the 12v psu rail 60 in1_crit Voltage max critical value on the 12v psu rail 61 in1_lcrit Voltage min critical value on the 12v psu rail 62 in2_input Voltage of the 5v psu rail [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/docs/config_file/ |
H A D | rail.md | 1 # rail chapter 5 A voltage rail that is enabled or monitored by the power sequencer device. 8 specify how to obtain the pgood status of the rail. You can specify more than 14 the rail with the pgood fault. However, all the related rails will likely appear 17 The "compare_voltage_to_limit" method is helpful when a rail fails to power on 22 rail. It is also helpful when a rail fails to power on during the power on 29 … | yes | string | Unique name for the rail. Can only contain l… 30 …onent which must be present in order for the rail to be present. If this property is not specified… 31 … see [notes](#notes) | number | PMBus PAGE number of the rail. … 32 …rail is produced by a power supply. Power supply rails require special error handling. If an error… [all …]
|
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/ |
H A D | rail.md | 1 # rail chapter 5 A voltage rail produced by a regulator. 7 Voltage regulators produce one or more rails. Each rail typically provides a 10 On a PMBus regulator with multiple rails, the current rail is selected using the 11 PAGE command. Subsequent PMBus commands are sent to that PAGE/rail. 17 …ings | One or more comment lines describing this rail. … 18 … yes | string | Unique ID for this rail. Can only contain l… 19 … | Specifies configuration changes that should be applied to this rail. These changes usua… 20 …oring](sensor_monitoring.md) | Specifies how to read the sensors for this rail. … 26 "comments": ["Vdd rail on PAGE 0 of the Vdd/Vio regulator"],
|
H A D | configuration.md | 5 Configuration changes that should be applied to a device or regulator rail. 9 regulator rail. Other examples include modifying pgood thresholds and 39 "comments": ["Set rail to 1.25V using standard rule"],
|
/openbmc/phosphor-power/phosphor-power-sequencer/src/ |
H A D | standard_device.cpp | 43 Rail* rail = in findPgoodFault() local 45 if (rail != nullptr) in findPgoodFault() 51 if (rail->isPowerSupplyRail() && !powerSupplyError.empty()) in findPgoodFault() 97 for (std::unique_ptr<Rail>& rail : rails) in findRailWithPgoodFault() 99 if (rail->hasPgoodFaultStatusVout(*this, services, additionalData)) in findRailWithPgoodFault() 101 return rail.get(); in findRailWithPgoodFault() 110 for (std::unique_ptr<Rail>& rail : rails) in findRailWithPgoodFault() 112 if (rail->hasPgoodFaultGPIO(*this, services, gpioValues, in findRailWithPgoodFault() 114 rail->hasPgoodFaultOutputVoltage(*this, services, additionalData)) in findRailWithPgoodFault() 116 return rail.get(); in findRailWithPgoodFault()
|
/openbmc/phosphor-power/phosphor-regulators/src/ |
H A D | device.cpp | 35 for (std::unique_ptr<Rail>& rail : rails) in addToIDMap() 37 idMap.addRail(*rail); in addToIDMap() 60 for (std::unique_ptr<Rail>& rail : rails) in clearErrorHistory() 62 rail->clearErrorHistory(); in clearErrorHistory() 100 for (std::unique_ptr<Rail>& rail : rails) in configure() 102 rail->configure(services, system, chassis, *this); in configure() 128 for (std::unique_ptr<Rail>& rail : rails) in monitorSensors() 130 rail->monitorSensors(services, system, chassis, *this); in monitorSensors()
|
H A D | dbus_sensors.cpp | 58 if (sensor->getRail() == rail) in endRail() 66 rail.clear(); in endRail() 83 std::string sensorName{rail + '_' + sensors::toString(type)}; in setValue() 96 bus, sensorName, type, value, rail, deviceInventoryPath, in setValue() 109 void DBusSensors::startRail(const std::string& rail, in startRail() argument 114 this->rail = rail; in startRail()
|
H A D | id_map.cpp | 37 void IDMap::addRail(Rail& rail) in addRail() argument 39 const std::string& id = rail.getID(); in addRail() 45 railMap[id] = &rail; in addRail()
|
H A D | sensor_monitoring.cpp | 44 Chassis& chassis, Device& device, Rail& rail) in execute() argument 48 sensors.startRail(rail.getID(), device.getFRU(), in execute() 72 "Unable to monitor sensors for rail " + rail.getID()); in execute()
|
H A D | dbus_sensor.hpp | 123 SensorType type, double value, const std::string& rail, 165 return rail; in getRail() 331 std::string rail{}; member in phosphor::power::regulators::DBusSensor
|
H A D | dbus_sensors.hpp | 76 virtual void startRail(const std::string& rail, 109 std::string rail{}; member in phosphor::power::regulators::DBusSensors
|
H A D | configuration.cpp | 40 Chassis& chassis, Device& device, Rail& rail) in execute() argument 42 execute(services, system, chassis, device, rail.getID()); in execute()
|
/openbmc/linux/drivers/hwmon/ |
H A D | corsair-psu.c | 219 static int corsairpsu_request(struct corsairpsu_data *priv, u8 cmd, u8 rail, void *data) in corsairpsu_request() argument 231 ret = corsairpsu_usb_cmd(priv, 2, PSU_CMD_SELECT_RAIL, rail, NULL); in corsairpsu_request() 246 static int corsairpsu_get_value(struct corsairpsu_data *priv, u8 cmd, u8 rail, long *val) in corsairpsu_get_value() argument 252 ret = corsairpsu_request(priv, cmd, rail, data); in corsairpsu_get_value() 317 int rail; in corsairpsu_get_criticals() local 319 for (rail = 0; rail < TEMP_COUNT; ++rail) { in corsairpsu_get_criticals() 320 if (!corsairpsu_get_value(priv, PSU_CMD_TEMP_HCRIT, rail, &tmp)) { in corsairpsu_get_criticals() 321 priv->temp_crit_support |= BIT(rail); in corsairpsu_get_criticals() 322 priv->temp_crit[rail] = tmp; in corsairpsu_get_criticals() 326 for (rail = 0; rail < RAIL_COUNT; ++rail) { in corsairpsu_get_criticals() [all …]
|
/openbmc/openbmc/meta-ibm/meta-romulus/recipes-phosphor/chassis/vrm-control/ |
H A D | vrm-control.sh | 106 rail=$(echo "$param" | cut -d'=' -f 1) 108 echo -n "$rail" 109 case "$rail" in
|
/openbmc/openbmc/meta-ibm/recipes-phosphor/chassis/vrm-control/ |
H A D | vrm-control.sh | 106 rail=$(echo "$param" | cut -d'=' -f 1) 108 echo -n "$rail" 109 case "$rail" in
|
/openbmc/phosphor-power/phosphor-power-sequencer/docs/ |
H A D | README.md | 10 cause. Typically this is a voltage rail that shut down due to a fault. 75 - A voltage rail suddenly turns off or stops providing the expected level of 88 It is very helpful to identify which voltage rail caused the pgood fault. That 91 Determining the correct rail requires the following: 97 voltage rail caused the chassis pgood fault. If found, an error is logged 98 against that specific rail. 116 not be able to determine which voltage rail caused a pgood fault. 142 - A voltage rail that is enabled or monitored by the power sequencer device.
|
/openbmc/openbmc/meta-ingrasys/meta-zaius/recipes-phosphor/chassis/ |
H A D | vcs-control.bb | 1 SUMMARY = "Zaius VCS rail control" 2 DESCRIPTION = "VCS voltage rail control implementation for Zaius"
|