/openbmc/openbmc-test-automation/ipmi/ |
H A D | test_ipmi_sel.robot | 3 Documentation Module to test IPMI SEL functionality. 20 # Based on 13th byte of add SEL entry command as per IPMI spec 22 ${sel_no_entry_msg} SEL has no entries 28 Verify IPMI SEL Version 29 [Documentation] Verify IPMI SEL's version info. 31 ${version_info}= Get IPMI SEL Setting Version 39 Verify Empty SEL 40 [Documentation] Verify IPMI sel clear command clears the SEL entry. 47 ${resp}= Run IPMI Standard Command sel elist last 1 51 ... msg=Add SEL Entry failed. [all …]
|
H A D | test_ipmi_sel_time.robot | 3 Documentation Module to test IPMI SEL Time functionality. 10 ... Test the Set/Get SEL Time functionality and compare the result against 13 ... Set the Time Sync Mode from NTP to Manual to Set SEL Time. 18 ... NETWORK_RESTART_TIME added for Set SEL Time and Add SEL Entry as the corresponding 21 ... Current SEL time identified via BMC Native command (date) and perform SEL Time operations. 23 ... Script Verifies SEL Time for various scenarios such as, 27 ... Add SEL Entry for all the above scenarios and compare against BMC native command (date). 47 # Based on 13th byte of add SEL entr [all...] |
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/Logging/ |
H A D | IPMI.interface.yaml | 2 Implement to provide an IPMI System Event Log (SEL) logging interface under 5 SEL records store system event information and will contain a record ID and 8 adding the SEL record), sensor number, event direction and event-specific 21 Log a system event record type SEL entry. 30 The object path that is generating the SEL entry. 34 An array of up to 3 bytes of SEL event data. 38 An indicator if the SEL event is asserting or de-asserting. 42 The Generator ID of the component requesting the new SEL entry. 48 The Record ID of the new SEL entry. 55 Log a system event record SEL entry with custom SensorType/EventType. [all …]
|
/openbmc/phosphor-host-ipmid/ |
H A D | storagehandler.cpp | 20 #include <xyz/openbmc_project/Logging/SEL/error.hpp> 60 using namespace xyz::openbmc_project::logging::sel; 62 sdbusplus::error::xyz::openbmc_project::logging::sel::Created; 65 using SELEntry = ipmi::sel::SELEventRecordFormat; 86 return std::string(ipmi::sel::logBasePath) + "/" + std::to_string(id); in getLoggingObjPath() 95 ipmi::sel::GetSELEntryResponse record{}; in parseLoggingEntry() 96 record = ipmi::sel::convertLogEntrytoSEL(p); in parseLoggingEntry() 101 fprintf(stderr, "Failed to convert %s to SEL: %s\n", p.c_str(), in parseLoggingEntry() 166 bus, interfacesAdded(ipmi::sel::logWatchPath), in registerSelCallbackHandler() 172 bus, interfacesRemoved(ipmi::sel in registerSelCallbackHandler() [all...] |
H A D | selutility.hpp | 15 namespace sel namespace 64 * IPMI SEL Event Record 85 * IPMI SEL OEM Record - Type C0h-DFh 100 * IPMI SEL OEM Record - Type E0h-FFh 120 * IPMI payload for Get SEL Entry command response. 135 /** @brief Convert logging entry to SEL 139 * @return On success return the response of Get SEL entry command. 160 * @note This function is invoked when the Get SEL Info command or the Delete 161 * SEL entry command is invoked. The Get SEL Entry command is preceded 162 * typically by Get SEL Info command, so readLoggingObjectPaths is not [all …]
|
/openbmc/ipmitool/doc/ |
H A D | ipmievd.8 | 6 \fB\-I\fR \fIopen\fP <\fIopen\fR | \fIsel\fR> [<\fIoption\fP>] 16 [\fB\-O\fR <\fIsel oem\fP>] 17 \fIsel\fP [<\fIoption\fP>] 26 [\fB\-O\fR <\fIsel oem\fP>] 28 \fIsel\fR [<\fIoption\fP>] 31 BMC that are being sent to the SEL and also log those messages to 95 \fB\-O\fR <\fIsel oem\fP> 96 Open selected file and read OEM SEL event descriptions to be used 97 during SEL listings. See examples in contrib dir for file format. 149 sel Poll SEL for notification of events [all …]
|
/openbmc/openbmc/meta-phosphor/recipes-phosphor/sel-logger/ |
H A D | phosphor-sel-logger_git.bb | 1 # SEL Logger has the ability to monitor and automatically log SEL records for 7 # Monitors and logs SEL records for threshold sensor events 8 SUMMARY = "Journal IPMI SEL Logger" 9 DESCRIPTION = "Utility to write IPMI SEL records to the journal" 26 PACKAGECONFIG[sel-delete] = "-Dsel-delete=true,-Dsel-delete=false" 29 SRC_URI = "git://github.com/openbmc/phosphor-sel-logger.git;protocol=https;branch=master"
|
/openbmc/docs/designs/ |
H A D | ecc-dbus-sel.md | 1 # ECC Error SEL for BMC 13 Event Log (SEL). Whenever ECC occurs, the BMC generates an event with the 14 appropriate information and adds it to the SEL. 20 error logging limits are reached.[1]. The BMC ECC SEL will follow IPMI SEL 23 OpenBMC currently support for generating SEL entries based on parsing the D-Bus 24 event log. It does not yet support the BMC ECC SEL feature in OpenBMC project. 26 memory ECC SEL as well. 50 According to Section 42.2 of the IPMI specification, Table 42 [2], these SEL 63 - create the ECC SEL 92 ### Create the ECC SEL [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | stpmu1.c | 44 static int stpmu1_output_find_uv(int sel, in stpmu1_output_find_uv() argument 52 if (sel >= range->min_sel && sel <= range->max_sel) in stpmu1_output_find_uv() 54 (sel - range->min_sel) * range->step; in stpmu1_output_find_uv() 140 int sel; in stpmu1_buck_get_uv() local 142 sel = pmic_reg_read(dev, STPMU1_BUCKX_CTRL_REG(buck)); in stpmu1_buck_get_uv() 143 if (sel < 0) in stpmu1_buck_get_uv() 144 return sel; in stpmu1_buck_get_uv() 146 sel &= STPMU1_BUCK_OUTPUT_MASK; in stpmu1_buck_get_uv() 147 sel >>= STPMU1_BUCK_OUTPUT_SHIFT; in stpmu1_buck_get_uv() 149 return stpmu1_output_find_uv(sel, &buck_voltage_range[buck]); in stpmu1_buck_get_uv() [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | trace-events | 4 mips_translate_c0(const char *instr, const char *rn, int reg, int sel) "%s %s (reg %d sel %d)" 5 mips_translate_tr(const char *instr, int rt, int u, int sel, int h) "%s (reg %d u %d sel %d h %d)"
|
/openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-platform-init/ |
H A D | mtmitchell_platform_gpios_init.sh | 42 "spi0-backup-sel" 43 "i2c-backup-sel" 48 "spi0-program-sel" 56 "vrd-sel" 57 "spd-sel" 62 "jtag-sel-s0"
|
/openbmc/openbmc/meta-ampere/meta-jade/recipes-ampere/platform/ampere-platform-init/ |
H A D | mtjade_platform_gpios_init.sh | 15 "vr-pmbus-sel-n" 17 "i2c-backup-sel" 27 "spi0-program-sel" 28 "spi0-backup-sel" 47 "spi0-backup-sel"
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_descr.c | 65 x86_segment_selector sel; in vmx_read_segment_selector() local 66 sel.sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_selector() 67 return sel; in vmx_read_segment_selector() 72 wvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector, selector.sel); in vmx_write_segment_selector() 77 desc->sel = rvmcs(cpu->accel->fd, vmx_segment_fields[seg].selector); in vmx_read_segment_descriptor() 89 wvmcs(cpu->accel->fd, sf->selector, desc->sel); in vmx_write_segment_descriptor() 97 vmx_desc->sel = selector.sel; in x86_segment_descriptor_to_vmx() 101 vmx_desc->ar = (selector.sel ? 0 : 1) << 16 | in x86_segment_descriptor_to_vmx()
|
H A D | x86.c | 51 x86_segment_selector sel) in x86_read_segment_descriptor() argument 59 if (!sel.index && GDT_SEL == sel.ti) { in x86_read_segment_descriptor() 63 if (GDT_SEL == sel.ti) { in x86_read_segment_descriptor() 71 if (sel.index * 8 >= limit) { in x86_read_segment_descriptor() 75 vmx_read_mem(cpu, desc, base + sel.index * 8, sizeof(*desc)); in x86_read_segment_descriptor() 81 x86_segment_selector sel) in x86_write_segment_descriptor() argument 86 if (GDT_SEL == sel.ti) { in x86_write_segment_descriptor() 94 if (sel.index * 8 >= limit) { in x86_write_segment_descriptor() 98 vmx_write_mem(cpu, base + sel.index * 8, desc, sizeof(*desc)); in x86_write_segment_descriptor()
|
/openbmc/ipmitool/src/ |
H A D | ipmievd.c | 92 uint16_t selwatch_count = 0; /* number of entries in the SEL */ 93 uint16_t selwatch_lastid = 0; /* current last entry in the SEL */ 94 int selwatch_pctused = 0; /* current percent usage in the SEL */ 95 int selwatch_overflow = 0; /* SEL overflow */ 111 /* Data from SEL we are interested in */ 143 .name = "sel", 144 .desc = "Poll SEL for notification of events", 167 lprintf(LOG_NOTICE, "\ttimeout=# Time between checks for SEL polling method [default=10]"); in ipmievd_usage() 497 /** SEL Watch Functions **/ 512 lprintf(LOG_ERR, "Get SEL Info command failed"); in selwatch_get_data() [all …]
|
/openbmc/qemu/target/ppc/ |
H A D | power8-pmu.c | 49 target_ulong sel; in pmu_update_summaries() local 51 sel = extract64(mmcr1, MMCR1_PMC1EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries() 52 switch (sel) { in pmu_update_summaries() 63 sel = extract64(mmcr1, MMCR1_PMC2EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries() 64 ins_cnt |= (sel == 0x02) << 2; in pmu_update_summaries() 65 cyc_cnt |= (sel == 0x1e) << 2; in pmu_update_summaries() 67 sel = extract64(mmcr1, MMCR1_PMC3EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries() 68 ins_cnt |= (sel == 0x02) << 3; in pmu_update_summaries() 69 cyc_cnt |= (sel == 0x1e) << 3; in pmu_update_summaries() 71 sel = extract64(mmcr1, MMCR1_PMC4EVT_EXTR, MMCR1_EVT_SIZE); in pmu_update_summaries() [all …]
|
/openbmc/fb-ipmi-oem/include/ |
H A D | storagecommands.hpp | 104 namespace fb_oem::ipmi::sel namespace 120 static constexpr auto fbUniSELErr = "Facebook Unified SEL"; 140 /* event sensor name in processing SEL */ 146 * IPMI response payload data for Get SEL Info request 160 * IPMI payload for Get SEL Entry command request. 165 uint16_t recordID; //!< SEL Record ID. 172 * IPMI payload for Get SEL Entry command response. 182 * IPMI payload for ADD SEL Entry command request. 219 } // namespace fb_oem::ipmi::sel
|
/openbmc/intel-ipmi-oem/src/ |
H A D | storagecommands.cpp | 43 namespace intel_oem::ipmi::sel namespace 56 return ::ipmi::sel::invalidTimeStamp; in getFileTimestamp() 87 } // namespace intel_oem::ipmi::sel 147 // todo: log sel? in writeFru() 698 std::filesystem::directory_iterator(intel_oem::ipmi::sel::selLogDir)) in getSELLogFiles() 701 if (boost::starts_with(filename, intel_oem::ipmi::sel::selLogFilename)) in getSELLogFiles() 705 intel_oem::ipmi::sel::selLogDir / filename); in getSELLogFiles() 784 return ipmi::sel::lastEntry; in getNextRecordID() 811 ipmi::RspType<uint8_t, // SEL version 812 uint16_t, // SEL entry count [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm281xx/ |
H A D | clk-core.c | 89 clk_get_rate(c); /* Make sure rate and sel are filled in */ in peri_clk_enable() 95 debug("%s %s set rate %lu div %lu sel %d parent %lu\n", in peri_clk_enable() 96 __func__, c->name, c->rate, c->div, c->sel, in peri_clk_enable() 120 if (selector_exists(&cd->sel)) { in peri_clk_enable() 121 reg = readl(base + cd->sel.offset); in peri_clk_enable() 122 bitfield_replace(reg, cd->sel.shift, cd->sel.width, in peri_clk_enable() 123 c->sel); in peri_clk_enable() 124 writel(reg, base + cd->sel.offset); in peri_clk_enable() 191 c->sel = i; in peri_clk_set_rate() 198 debug("%s %s set rate %lu div %lu sel %d parent %lu\n", __func__, in peri_clk_set_rate() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm235xx/ |
H A D | clk-core.c | 89 clk_get_rate(c); /* Make sure rate and sel are filled in */ in peri_clk_enable() 95 debug("%s %s set rate %lu div %lu sel %d parent %lu\n", in peri_clk_enable() 96 __func__, c->name, c->rate, c->div, c->sel, in peri_clk_enable() 120 if (selector_exists(&cd->sel)) { in peri_clk_enable() 121 reg = readl(base + cd->sel.offset); in peri_clk_enable() 122 bitfield_replace(reg, cd->sel.shift, cd->sel.width, in peri_clk_enable() 123 c->sel); in peri_clk_enable() 124 writel(reg, base + cd->sel.offset); in peri_clk_enable() 191 c->sel = i; in peri_clk_set_rate() 198 debug("%s %s set rate %lu div %lu sel %d parent %lu\n", __func__, in peri_clk_set_rate() [all …]
|
/openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/gpio/phosphor-gpio-monitor/ |
H A D | ampere_scp_failover.sh | 7 # and logs an event in SEL. 13 I2C_BACKUP_SEL=$(gpioget $(gpiofind i2c-backup-sel)) 18 gpioset $(gpiofind i2c-backup-sel)=0 27 gpioset $(gpiofind i2c-backup-sel)=1
|
/openbmc/phosphor-host-ipmid/dbus-sdr/ |
H A D | storagecommands.cpp | 42 namespace dynamic_sensors::ipmi::sel namespace 55 return ::ipmi::sel::invalidTimeStamp; in getFileTimestamp() 67 } // namespace dynamic_sensors::ipmi::sel 129 // todo: log sel? in writeFru() 739 dynamic_sensors::ipmi::sel::selLogDir)) in getSELLogFiles() 742 if (filename.starts_with(dynamic_sensors::ipmi::sel::selLogFilename)) in getSELLogFiles() 746 dynamic_sensors::ipmi::sel::selLogDir / filename); in getSELLogFiles() 825 return ipmi::sel::lastEntry; in getNextRecordID() 852 ipmi::RspType<uint8_t, // SEL version 853 uint16_t, // SEL entr [all...] |
/openbmc/ipmitool/contrib/ |
H A D | log_bmc.sh | 4 # log_bmc.sh: Add SEL entries to indicate OS Boot/Install status. 18 # # ipmitool sel list 28 # SEL Event types from ipmi_sel.h 31 # SEL Event data from ipmi_sel.h 49 # Write out the events to SEL 55 ${IPMI_CMD} sel add ${tmpfile} > /dev/null 2>&1 82 3) printf -- %s\\n "error adding ipmi sel entry." ;;
|
/openbmc/ipmitool/control/ |
H A D | ipmitool.spec.in | 23 Log (SEL), printing Field Replaceable Unit (FRU) information, reading and 105 - Allow ipmitool sel delete to accept hex list entry numbers 106 - Fix SEL total space reporting. 109 - ipmievd change to Monitor %used in SEL buffer and log warnings when 117 - Fix for sdr and sel timestamp reporting issues 174 - Added ability to interpret PPS shelf manager clia sel dump 202 - Added prefix of hostname on sel ipmievd sessions 249 - Add support for IBM OEM SEL messages 270 - Add support for OEM SEL event parsing 277 - Overhaul to ipmievd to support SEL polling in addition to OpenIPMI. [all …]
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | fw_cfg.c | 120 uint16_t *sel, uint32_t *size) in find_pdir_entry() argument 130 *sel = 0; in find_pdir_entry() 141 *sel = be16_to_cpu(pdir_entry->select); in find_pdir_entry() 167 uint16_t sel; in qfw_cfg_get_file() local 169 if (find_pdir_entry(fw_cfg, filename, &sel, &len)) { in qfw_cfg_get_file() 174 qfw_cfg_get(fw_cfg, sel, data, len); in qfw_cfg_get_file() 201 uint16_t sel; in qfw_cfg_read_file() local 212 if (find_pdir_entry(fw_cfg, filename, &sel, &len)) { in qfw_cfg_read_file() 216 qfw_cfg_read_entry(fw_cfg, qs, sel, data, len); in qfw_cfg_read_file() 243 uint16_t sel; in qfw_cfg_write_file() local [all …]
|