]> git.proxmox.com Git - mirror_qemu.git/commit
hw/misc/aspeed_i3c.c: Introduce a dummy AST2600 I3C model.
authorTroy Lee <troy_lee@aspeedtech.com>
Tue, 11 Jan 2022 08:45:45 +0000 (16:45 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jan 2022 11:47:53 +0000 (11:47 +0000)
commit119df56bf059431190ed5509f6e3e459d7892723
tree755a165e6eb4075120e7f062c91f46b56e85a080
parent0419e6a867f9cbb4edc819b5d278a33f441b6051
hw/misc/aspeed_i3c.c: Introduce a dummy AST2600 I3C model.

Aspeed 2600 SDK enables I3C support by default.  The I3C driver will try
to reset the device controller and set it up through device address table
register.  This dummy model responds to these registers with default values
as listed in the ast2600v10 datasheet chapter 54.2.

This avoids a guest machine kernel panic due to referencing an
invalid kernel address if the device address table register isn't
set correctly.

Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
Reviewed-by: Graeme Gregory <quic_ggregory@quicinc.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Tested-by: Graeme Gregory <quic_ggregory@quicinc.com>
Message-id: 20220111084546.4145785-2-troy_lee@aspeedtech.com
[PMM: tidied commit message; fixed format strings]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/misc/aspeed_i3c.c [new file with mode: 0644]
hw/misc/meson.build
hw/misc/trace-events
include/hw/misc/aspeed_i3c.h [new file with mode: 0644]