drivers/ipmi: Add CONFIG_IPMI_KCS_TIMEOUT_MS for IPMI KCS timeout value
commitd04c06b472495bce49af0e171c333de26e8fd86a
authorJohnny Lin <johnny_lin@wiwynn.com>
Fri, 4 Sep 2020 09:05:58 +0000 (4 17:05 +0800)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 9 Sep 2020 13:39:36 +0000 (9 13:39 +0000)
treee26aafabff2829637677a153f3e45f77f6ddf65b
parent44097e21cc3dcb81690de68bbcda2b194ac427fe
drivers/ipmi: Add CONFIG_IPMI_KCS_TIMEOUT_MS for IPMI KCS timeout value

With the current timeout of 1000 cycles of 100 microsecond would see
timeout occurs on OCP Delta Lake if the log level is set to values
smaller than 8. Because the prink(BIOS_SPEW, ..) in ipmi_kcs_status()
creates delay and avoid the problem, but after setting the log level
to 4 we see some timeout occurs.

The unit is millisecond and the default value is set to 5000 according
to IPMI spec v2.0 rev 1.1 Sec. 9.15, a five-second timeout or greater
is recommended.

Tested=On OCP Delta Lake, with log level 4 cannot observe timeout
occurs.

Change-Id: I42ede1d9200bb5d0dbb455d2ff66e2816f10e86b
Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45103
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/drivers/ipmi/Kconfig
src/drivers/ipmi/ipmi_kcs.c