Home
last modified time | relevance | path

Searched full:sdr (Results 1 – 25 of 132) sorted by relevance

123456

/openbmc/openbmc-test-automation/ipmi/
H A Dtest_ipmi_inband_sdr.robot2 Documentation Test IPMI Inband SDR commands.
4 ... 1. Get SDR,
5 ... 2. Get Device SDR Info,
6 ... 3. Reserve Device SDR Repository,
7 ... 4. Get Device SDR.
23 Verify Get SDR For Maximum Record Via IPMI
24 [Documentation] Verify Get SDR for each and every record one by one via IPMI lanplus.
27 # Gets the Total Record Count from SDR Info and the last Record entry number.
28 ${record_count} ${last_record}= Get Record Count And Last Record From SDR
37 # Get SDR command.
[all …]
H A Dtest_ipmi_sdr.robot21 Verify SDR Info
22 [Documentation] Verify sdr info command output.
24 # Example of SDR info command output:
25 # SDR Version : 0x51
30 # SDR overflow : no
31 # SDR Repository Update Support : unspecified
32 # Delete SDR supported : no
33 # Partial Add SDR supported : no
34 # Reserve SDR repository supported : no
35 # SDR Repositor
[all...]
H A Dtest_ipmi_sel_time.robot232 # Get Sensor ID from SDR Get "sensor".
233 ${sensor_data1}= Fetch Sensor Details From SDR ${sensor_name} Sensor ID
234 ${sensor_number}= Get Bytes From SDR Sensor ${sensor_data1}
236 # Get Sensor Type from SDR Get "sensor".
237 ${sensor_data2}= Fetch Sensor Details From SDR ${sensor_name} Sensor Type (Threshold)
238 ${sensor_type_id}= Get Bytes From SDR Sensor ${sensor_data2}
283 # Get Sensor ID from SDR Get "sensor".
284 ${sensor_data1}= Fetch Sensor Details From SDR ${sensor_name} Sensor ID
285 ${sensor_number}= Get Bytes From SDR Sensor ${sensor_data1}
287 # Get Sensor Type from SDR Ge
[all...]
/openbmc/u-boot/arch/arm/mach-socfpga/include/mach/
H A Dsdram_gen5.h238 /* Register template: sdr::ctrlgrp::dramtiming1 */
251 /* Register template: sdr::ctrlgrp::dramtiming2 */
262 /* Register template: sdr::ctrlgrp::dramtiming3 */
273 /* Register template: sdr::ctrlgrp::dramtiming4 */
280 /* Register template: sdr::ctrlgrp::lowpwrtiming */
285 /* Register template: sdr::ctrlgrp::dramaddrw */
294 /* Register template: sdr::ctrlgrp::dramifwidth */
297 /* Register template: sdr::ctrlgrp::dramdevwidth */
300 /* Register template: sdr::ctrlgrp::dramintr */
305 /* Register template: sdr::ctrlgrp::staticcfg */
[all …]
/openbmc/dbus-sensors/src/ipmb/
H A DIpmbSDRSensor.cpp38 lg2::error("Error reading from IPMB SDR for host '{INDEX}'", "INDEX", in validateStatus()
45 /* This function will store the record count of the SDR sensors for each IPMB
72 "IPMB Get SDR Repository Info data is empty for host '{INDEX}'", in getSDRRepositoryInfo()
86 sdr::netfnStorageReq, lun, sdr::cmdStorageGetSdrInfo, sdrCommandData); in getSDRRepositoryInfo()
115 "IPMB SDR Reserve Repository data is empty for host '{INDEX}'", in reserveSDRRepository()
125 sdr::netfnStorageReq, lun, sdr::cmdStorageReserveSdr, sdrCommandData); in reserveSDRRepository()
129 * such as name, threshold value, unit, device address, SDR type */
135 uint8_t loopCount = sdr::perCountByte * iCnt; in getSDRSensorData()
138 loopCount, sdr::perCountByte}; in getSDRSensorData()
160 lg2::error("IPMB SDR sensor data is empty for host '{INDEX}'", in getSDRSensorData()
[all …]
H A DIpmbSDRSensor.hpp22 namespace sdr namespace
30 // Get SDR Commands
40 } // namespace sdr
55 // SDR Type 1 Thresholds Commands
/openbmc/ipmitool/lib/
H A Dipmi_sensor.c90 /* Update SDR copy with updated Reading Factors for this reading */ in ipmi_sensor_get_sensor_reading_factors()
92 * The Format of the returned data is exactly as in the SDR definition (Little Endian Format), in ipmi_sensor_get_sensor_reading_factors()
96 // BUGBUG: uses 'hardcoded' length information from SDR Definition in ipmi_sensor_get_sensor_reading_factors()
424 lprintf(LOG_DEBUG, "Querying SDR for sensor list"); in ipmi_sensor_list()
428 lprintf(LOG_ERR, "Unable to open SDR for reading"); in ipmi_sensor_list()
530 struct sdr_record_list *sdr; in ipmi_sensor_set_threshold() local
614 sdr = ipmi_sdr_find_sdr_byid(intf, id); in ipmi_sensor_set_threshold()
615 if (sdr == NULL) { in ipmi_sensor_set_threshold()
620 if (sdr->type != SDR_RECORD_TYPE_FULL_SENSOR) { in ipmi_sensor_set_threshold()
621 lprintf(LOG_ERR, "Invalid sensor type %02x", sdr->type); in ipmi_sensor_set_threshold()
[all …]
H A Dipmi_sdr.c578 "Intf my/%#x tgt/%#x:%#x Sdr tgt/%#x:%#x\n", in ipmi_sdr_get_sensor_reading_ipmb()
780 /* ipmi_sdr_get_header - retreive SDR record header
783 * @itr: sdr iterator
818 lprintf(LOG_ERR, "Get SDR %04x command failed", in ipmi_sdr_get_header()
823 lprintf(LOG_DEBUG, "SDR reservation %04x cancelled. " in ipmi_sdr_get_header()
832 "Unable to renew SDR reservation"); in ipmi_sdr_get_header()
836 lprintf(LOG_ERR, "Get SDR %04x command failed: %s", in ipmi_sdr_get_header()
851 lprintf(LOG_DEBUG, "SDR record ID : 0x%04x", itr->next); in ipmi_sdr_get_header()
856 lprintf(LOG_ERR, "SDR record id 0x%04x: invalid length %d", in ipmi_sdr_get_header()
862 * return a record id from the Get SDR Record command in ipmi_sdr_get_header()
[all …]
H A Dipmi_gendev.c345 /* ipmi_gendev_write_file - Read raw SDR from binary file
558 "SDR Commands: list read write"); in ipmi_gendev_main()
562 …" read <sdr name> <file> Read to file eeprom specify by Generic Device Locat… in ipmi_gendev_main()
564 …" write <sdr name> <file> Write from file eeprom specify by Generic Device Lo… in ipmi_gendev_main()
577 struct sdr_record_list *sdr; in ipmi_gendev_main() local
579 lprintf(LOG_ERR, "Gendev read sdr name : %s", argv[1]); in ipmi_gendev_main()
584 sdr = ipmi_sdr_find_sdr_byid(intf, argv[1]); in ipmi_gendev_main()
585 if (sdr == NULL) in ipmi_gendev_main()
591 if (sdr->type != SDR_RECORD_TYPE_GENERIC_DEVICE_LOCATOR) in ipmi_gendev_main()
593 lprintf(LOG_ERR, "Target SDR is not a generic device locator"); in ipmi_gendev_main()
[all …]
H A Dipmi_sdradd.c32 * Functions to program the SDR repository, from built-in sensors or
61 uint8_t offset; /* offset into SDR */
65 uint8_t data[1]; /* SDR record data */
105 /* actually no SDR to program */ in ipmi_sdr_add_record()
148 /* sdr entry */ in ipmi_sdr_add_record()
234 * Fill the SDR repository from built-in sensors
239 * Get all the SDR records stored in <queue>
300 /* write the SDRs to the destination SDR Repository */ in sdr_copy_to_sdrr()
306 lprintf(LOG_ERR, "Cannot add SDR ID 0x%04x to repository...", sdrr->id); in sdr_copy_to_sdrr()
540 printf("Clearing SDR Repository\n"); in ipmi_sdr_add_from_list()
[all …]
/openbmc/docs/designs/
H A Dgpio-based-cable-presence.md14 less SDR IDs.
65 On the IPMI sIDe, the presence states will be grouped into fewer SDR IDs in
66 order to save SDR IDs for ipmi. Given the following example,
78 together. The grouping handler first removes all the trailing index from the SDR
79 name. In this case, the SDR name is cable0 and cable1. After that, both cable0
82 new SDR name is cable[0-1]. The SDR name implies that this SDR has the presence
85 states, the group handler will automatically jump to use a new SDR. For example,
88 it will take one SDR ID.
91 ipmitool sdr list event
102 try to group it with anything and use 1 SDR ID for its presence state. See the
[all …]
/openbmc/openbmc-test-automation/openpower/ipmi/
H A Dtest_ipmi_sdr.robot19 Test Turbo Allowed SDR Info
20 [Documentation] Verify turbo allowed SDR info via IPMI and Redfish.
27 ${state_ipmi}= Get SDR Presence Via IPMI turbo_allowed${SPACE}
60 Get SDR Presence Via IPMI
67 # Example of IPMI SDR elist output.
85 ${sdr_elist_output}= Run IPMI Standard Command sdr elist
95 Get SDR Record ID
96 [Documentation] Fetch one record ID from SDR elist IPMI cmd response.
98 ${resp}= Run External IPMI Standard Command sdr elist
110 ${record_id}= Get SDR Record ID
/openbmc/phosphor-host-ipmid/dbus-sdr/
H A Dmeson.build24 sensorsoem_src = ['dbus-sdr/sensorcommands_oem.cpp']
39 'dbus-sdr/sdrutils.cpp',
40 'dbus-sdr/sensorcommands.cpp',
41 'dbus-sdr/storagecommands.cpp',
/openbmc/ipmitool/control/
H A Dipmitool.spec.in21 It provides commands for reading the Sensor Data Repository (SDR) and
72 - Generic device support added for EEPROM with SDR Type 10h (gendev)
101 - Fix endian bug in SDR add from file; Tracker bug #2075258
103 getting an SDR; improve algorithm for optimal packet size
104 - Fix occasional SDR dump segfault; #1793076
117 - Fix for sdr and sel timestamp reporting issues
123 - Fix bug in sdr free space reporting
160 - Add SDR support for adding SDR records from a dumped file, clearing SDR,
161 adding partial SDR records
282 - Add support for new 'sdr elist' extended output format.
[all …]
/openbmc/qemu/hw/ipmi/
H A Dipmi_bmc_sim.c126 uint8_t sdr[MAX_SDR_SIZE]; member
214 IPMISdr sdr; member
318 static void sdr_inc_reservation(IPMISdr *sdr) in sdr_inc_reservation() argument
320 sdr->reservation++; in sdr_inc_reservation()
321 if (sdr->reservation == 0) { in sdr_inc_reservation()
322 sdr->reservation = 1; in sdr_inc_reservation()
331 (struct ipmi_sdr_header *) &ibs->sdr.sdr[ibs->sdr.next_free]; in sdr_add_entry()
341 if (ibs->sdr.next_free + len > MAX_SDR_SIZE) { in sdr_add_entry()
342 ibs->sdr.overflow = 1; in sdr_add_entry()
347 sdrh->rec_id[0] = ibs->sdr.next_rec_id & 0xff; in sdr_add_entry()
[all …]
/openbmc/openbmc-test-automation/lib/
H A Dipmi_utils.py319 Get IPMI sdr info data and return it as a dictionary.
321 The data is obtained by issuing the IPMI "sdr info" command. An
324 SDR Version : 0x51
329 SDR overflow : no
330 SDR Repository Update Support : unspecified
331 Delete SDR supported : no
332 Partial Add SDR supported : no
333 Reserve SDR repository supported : no
334 SDR Repository Alloc info supported : no
352 status, ret_values = grk.run_key_u("Run IPMI Standard Command sdr info")
[all …]
/openbmc/ipmitool/
H A DChangeLog41 * ID: 279 - ipmitool sdr list broken
96 * ID: 3595199 - ipmi_sdr - Add support for 'ipmitool sdr <list|elist> help'
97 * ID: 3592773 - 'ipmitool sdr info'; prints incorrect info
98 * ID: 3592770 - 'ipmitool sdr list|elist INV_INPUT' return code
233 * Fixes ID 3421347 Sensor list command should use channel field from SDR
235 otherwise the sdr structures gets padded and the pointer cast
237 * Added 'sdr fill sensors nosats' support to speed up SDR discovery
238 * Added SDR name display during discovery (with -v)
305 * Add option to provide a list when filling sdr repository
306 * SDR discovery speedups
[all …]
/openbmc/fb-ipmi-oem/include/
H A Dsdrutils.hpp9 * Get SDR
49 * FRU Device Locator Record(key) - SDR Type 11
107 * FRU Device Locator Record(body) - SDR Type 11
130 * FRU Device Locator Record - SDR Type 11
/openbmc/qemu/hw/ppc/
H A Dpnv_bmc.c83 const struct ipmi_sdr_compact *sdr; in pnv_dt_bmc_sensors() local
100 for (i = 0; !ipmi_bmc_sdr_find(bmc, i, &sdr, &nextrec); i++) { in pnv_dt_bmc_sensors()
104 if (sdr->header.rec_type != IPMI_SDR_COMPACT_TYPE && in pnv_dt_bmc_sensors()
105 sdr->header.rec_type != IPMI_SDR_FULL_TYPE) { in pnv_dt_bmc_sensors()
109 name = g_strdup_printf("sensor@%x", sdr->sensor_owner_number); in pnv_dt_bmc_sensors()
114 _FDT((fdt_setprop_cell(fdt, off, "reg", sdr->sensor_owner_number))); in pnv_dt_bmc_sensors()
118 sdr->reading_type))); in pnv_dt_bmc_sensors()
120 sdr->entity_id))); in pnv_dt_bmc_sensors()
122 sdr->entity_instance))); in pnv_dt_bmc_sensors()
124 sdr->sensor_type))); in pnv_dt_bmc_sensors()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_timings.c19 .timings.sdr = {
61 .timings.sdr = {
103 .timings.sdr = {
145 .timings.sdr = {
187 .timings.sdr = {
229 .timings.sdr = {
280 return &onfi_sdr_timings[mode].timings.sdr; in onfi_async_timing_mode_to_sdr_timings()
310 struct nand_sdr_timings *timings = &iface->timings.sdr; in onfi_init_data_interface()
/openbmc/qemu/include/hw/ipmi/
H A Dipmi.h240 #define ipmi_sdr_recid(sdr) ((sdr)->rec_id[0] | ((sdr)->rec_id[1] << 8)) argument
241 #define ipmi_sdr_length(sdr) ((sdr)->rec_length + IPMI_SDR_HEADER_SIZE) argument
244 * 43.2 SDR Type 02h. Compact Sensor Record
278 const struct ipmi_sdr_compact **sdr, uint16_t *nextrec);
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-host/
H A Dgbs-ipmid-whitelist.conf12 0x04:0x20 //<Sensor/Event>:<Get Device SDR Info>
13 0x04:0x21 //<Sensor/Event>:<Get Device SDR>
14 0x04:0x22 //<Sensor/Event>:<Reserve Device SDR Repository>
50 0x0A:0x20 //<Storage>:<Get SDR Repository Info>
51 0x0A:0x22 //<Storage>:<Reserve SDR Repository>
52 0x0A:0x23 //<Storage>:<Get SDR>
/openbmc/docs/
H A DIPMITOOL-cheatsheet.md96 ## Sensor Data Record (SDR)
98 ### 1. View SDR information argument
101 ipmitool -C 17 -H "$BMC_IP" -I lanplus -U "$BMC_USER" -P "$BMC_PASSWD" sdr
104 ### 2. Query related SDR information in BMC argument
107 ipmitool -C 17 -H "$BMC_IP" -I lanplus -U "$BMC_USER" -P "$BMC_PASSWD" sdr info
113 ipmitool -C 17 -H "$BMC_IP" -I lanplus -U "$BMC_USER" -P "$BMC_PASSWD" sdr list [all|full|compact|e…
116 all : All SDR records (sensors and positioners)
122 generic : General SDR records
/openbmc/phosphor-host-ipmid/
H A Dsensorhandler.hpp90 * Get SDR
124 * FRU Device Locator Record(key) - SDR Type 11
136 * Entity Association Record(key) - SDR Type 8
265 * Compact Sensor Record(body) - SDR Type 2
292 * Event Only Sensor Record(body) - SDR Type 3
310 * FRU Device Locator Record(body) - SDR Type 11
326 * Entity Association Record(body) - SDR Type 8
606 * Compact Sensor Record - SDR Type 2
617 * Event Only Sensor Record - SDR Type 3
628 * FRU Device Locator Record - SDR Type 11
[all …]
/openbmc/phosphor-host-ipmid/docs/
H A Dconfiguration.md42 limit being the number of Sensor Data Records (SDR) supported in the IPMI
45 sensors retrieved is within the SDR limit IPMI can support, it may be desirable
66 the IPMI SDR table.

123456