Bug #10214

ipmi and dcmi

Added by Marcel Telka 10 days ago. Updated 10 days ago.

Status:NewStart date:2019-01-11
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:driver - device drivers
Target version:-
Difficulty:Medium Tags:needs-triage

Description

On some boards (like Supermicro X9SCL/X9SCM) this command:

ipmitool dcmi power reading

Causes these warnings at console:

Jan 11 11:26:06 server ipmi: WARNING: KCS: Failed to read completion code
Jan 11 11:26:06 server ipmi: WARNING: KCS error: 01
Jan 11 11:26:07 server ipmi: WARNING: KCS: Failed to read completion code
Jan 11 11:26:07 server ipmi: WARNING: KCS error: 01
Jan 11 11:26:08 server ipmi: WARNING: KCS: Failed to read completion code
Jan 11 11:26:08 server ipmi: WARNING: KCS error: 01

The ipmi driver should be changed to properly handle this case (either fail silently, or properly support dcmi) to do not pollute console with useless warnings.

History

#1 Updated by Marcel Telka 10 days ago

# dtrace -n 'kcs_polled_request:entry{self->t=1} kcs_write_byte:entry,kcs_write_last_byte:entry/self->t/{trace(timestamp/1000/1000);trace(arg1)} kcs_read_byte:entry/self->t/{self->a=args[1]} kcs_read_byte:return/self->t/{trace(timestamp/1000/1000);trace(arg1);trace(*self->a)} cmn_err:entry/self->t/{trace(stringof(arg1))} kcs_polled_request:return{self->t=0}' -c "ipmitool dcmi power reading" 
dtrace: description 'kcs_polled_request:entry' matched 7 probes
CPU     ID                    FUNCTION:NAME
  6  71868             kcs_write_byte:entry        9955488608               24
  6  71870        kcs_write_last_byte:entry        9955488609                1
  6  71873             kcs_read_byte:return        9955488609                1  28
  6  71873             kcs_read_byte:return        9955488609                1   1
  6  71873             kcs_read_byte:return        9955488609                1   0
  6  71873             kcs_read_byte:return        9955488609                1  32
  6  71873             kcs_read_byte:return        9955488609                1   1
  6  71873             kcs_read_byte:return        9955488609                1   3
  6  71873             kcs_read_byte:return        9955488609                1  22
  6  71873             kcs_read_byte:return        9955488609                1   2
  6  71873             kcs_read_byte:return        9955488609                1 191
  6  71873             kcs_read_byte:return        9955488609                1 124
  6  71873             kcs_read_byte:return        9955488609                1  42
  6  71873             kcs_read_byte:return        9955488609                1   0
  6  71873             kcs_read_byte:return        9955488609                1  36
  6  71873             kcs_read_byte:return        9955488609                1   6
  6  71873             kcs_read_byte:return        9955488609                2   6
  6  71868             kcs_write_byte:entry        9955488609              176
  6  71868             kcs_write_byte:entry        9955488609                0
  6  71870        kcs_write_last_byte:entry        9955488610                0
  6  71873             kcs_read_byte:return        9955488610                1 180
  6  71873             kcs_read_byte:return        9955488610                1   0
  6  71873             kcs_read_byte:return        9955488610                1 193
  6  71873             kcs_read_byte:return        9955488610                2   0
  6  71868             kcs_write_byte:entry        9955488610              176
  6  71868             kcs_write_byte:entry        9955488610                2
  6  71868             kcs_write_byte:entry        9955488610              220
  6  71868             kcs_write_byte:entry        9955488610                1
  6  71868             kcs_write_byte:entry        9955488611                0
  6  71870        kcs_write_last_byte:entry        9955488611                0
  6  71873             kcs_read_byte:return        9955488859                1 180
  6  71873             kcs_read_byte:return        9955488859                1   2
  6  71873             kcs_read_byte:return        9955488859                2   0
  6  26963                    cmn_err:entry   KCS: Failed to read completion code
  6  26963                    cmn_err:entry   KCS error: %02x
  6  71868             kcs_write_byte:entry        9955488859              176
  6  71868             kcs_write_byte:entry        9955488859                2
  6  71868             kcs_write_byte:entry        9955488860              220
  6  71868             kcs_write_byte:entry        9955488860                1
  6  71868             kcs_write_byte:entry        9955488860                0
  6  71870        kcs_write_last_byte:entry        9955488860                0
  3  71873             kcs_read_byte:return        9955489859                1 180
  3  71873             kcs_read_byte:return        9955489859                1   2
  3  71873             kcs_read_byte:return        9955489859                2   0
  3  26963                    cmn_err:entry   KCS: Failed to read completion code
  3  26963                    cmn_err:entry   KCS error: %02x
  3  71868             kcs_write_byte:entry        9955489859              176
  3  71868             kcs_write_byte:entry        9955489859                2
  3  71868             kcs_write_byte:entry        9955489860              220
  3  71868             kcs_write_byte:entry        9955489860                1
  3  71868             kcs_write_byte:entry        9955489860                0
  3  71870        kcs_write_last_byte:entry        9955489860                0
Error receiving message: I/O error

    Unable to get DCMI information

dtrace: pid 9609 has exited
  5  71873             kcs_read_byte:return        9955490859                1 180
  5  71873             kcs_read_byte:return        9955490859                1   2
  5  71873             kcs_read_byte:return        9955490859                2   0
  5  26963                    cmn_err:entry   KCS: Failed to read completion code
  5  26963                    cmn_err:entry   KCS error: %02x

#

Also available in: Atom