]> git.baikalelectronics.ru Git - arm-tf.git/commit
Tegra: spe: uninit console on a timeout
authorVarun Wadekar <vwadekar@nvidia.com>
Wed, 20 Jun 2018 00:07:08 +0000 (17:07 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 20 Feb 2020 17:25:45 +0000 (09:25 -0800)
commit8a47fe4375234120b041f55e578d051453514e67
tree78f48464c958a06e2c34fad212e548ba8727fd3e
parent5d52aea89d53c2ecf5b88731e8d52ed684dbe302
Tegra: spe: uninit console on a timeout

There are chances a denial-of-service attack, if an attacker
removes the SPE firmware from the system. The console driver
would end up waiting for the firmware to respond indefinitely.
The console driver must detect such scenarios and uninit the
interface as a result.

This patch adds a timeout to the interaction with the SPE
firmware and uninits the interface if it times out.

Change-Id: I06f27a858baed25711d41105b4110865f1a01727
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/drivers/spe/shared_console.S