linux/drivers/char/ipmi
Andrew Jeffery 3265e0f2f8 ipmi: kcs: Poll OBF briefly to reduce OBE latency
[ Upstream commit f90bc0f97f ]

The ASPEED KCS devices don't provide a BMC-side interrupt for the host
reading the output data register (ODR). The act of the host reading ODR
clears the output buffer full (OBF) flag in the status register (STR),
informing the BMC it can transmit a subsequent byte.

On the BMC side the KCS client must enable the OBE event *and* perform a
subsequent read of STR anyway to avoid races - the polling provides a
window for the host to read ODR if data was freshly written while
minimising BMC-side latency.

Fixes: 28651e6c42 ("ipmi: kcs_bmc: Allow clients to control KCS IRQ state")
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Message-Id: <20220812144741.240315-1-andrew@aj.id.au>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:03 +01:00
..
bt-bmc.c ipmi: bt: Add ast2600 compatible string 2021-10-07 14:02:45 -05:00
ipmb_dev_int.c i2c: Make remove callback return void 2022-08-16 12:46:26 +02:00
ipmi_bt_sm.c
ipmi_devintf.c ipmi:devintf: Return a proper error when recv buffer too small 2021-10-05 06:54:16 -05:00
ipmi_dmi.c
ipmi_dmi.h
ipmi_ipmb.c Fix a bunch of little problems in IPMI 2022-10-11 10:42:25 -07:00
ipmi_kcs_sm.c
ipmi_msghandler.c ipmi: Remove unused struct watcher_entry 2022-09-28 06:48:54 -05:00
ipmi_plat_data.c
ipmi_plat_data.h
ipmi_powernv.c
ipmi_poweroff.c ipmi: Add an intializer for ipmi_recv_msg struct 2022-05-12 10:00:03 -05:00
ipmi_si_hardcode.c
ipmi_si_hotmod.c
ipmi_si_intf.c ipmi:si: Convert pr_debug() to dev_dbg() 2022-05-12 10:00:04 -05:00
ipmi_si_mem_io.c
ipmi_si_parisc.c
ipmi_si_pci.c
ipmi_si_platform.c
ipmi_si_port_io.c
ipmi_si_sm.h
ipmi_si.h
ipmi_smic_sm.c
ipmi_ssif.c Fix a bunch of little problems in IPMI 2022-10-11 10:42:25 -07:00
ipmi_watchdog.c ipmi: Add an intializer for ipmi_recv_msg struct 2022-05-12 10:00:03 -05:00
Kconfig char: ipmi: modify NPCM KCS configuration 2022-07-18 19:27:57 -05:00
kcs_bmc_aspeed.c ipmi: kcs: Poll OBF briefly to reduce OBE latency 2022-12-31 13:32:03 +01:00
kcs_bmc_cdev_ipmi.c ipmi: Add __init/__exit annotations to module init/exit funcs 2022-09-22 10:55:46 -05:00
kcs_bmc_client.h
kcs_bmc_device.h
kcs_bmc_npcm7xx.c
kcs_bmc_serio.c ipmi: Add __init/__exit annotations to module init/exit funcs 2022-09-22 10:55:46 -05:00
kcs_bmc.c
kcs_bmc.h
Makefile ipmi:ipmb: Add initial support for IPMI over IPMB 2021-10-05 06:54:17 -05:00