]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: qcom-geni: disable interrupts during console writes
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 6 Sep 2024 13:13:35 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:44:45 +0000 (15:44 +0200)
commit6f3c3cafb115c72f9222295a556d62d5d1e00f7a
tree4d330d05362ef808e03549bbe7e75c82158d085a
parentcc4a0e5754a16bbc1e215c091349a7c83a2c5e14
serial: qcom-geni: disable interrupts during console writes

Disable the GENI interrupts during console writes to reduce the risk of
having interrupt handlers spinning on the port lock on other cores for
extended periods of time.

This can, for example, reduce the total amount of time spent in the
interrupt handler during boot of the x1e80100 CRD by up to a factor nine
(e.g. from 274 ms to 30 ms) while the worst case processing time drops
from 19 ms to 8 ms.

Fixes: c4f528795d1a ("tty: serial: msm_geni_serial: Add serial driver support for GENI based QUP")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240906131336.23625-8-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/qcom_geni_serial.c