在2025年5月26日周一 下午7:05,Philippe Mathieu-Daudé写道:
> Intented to help SeaBIOS development; untested there
> (except with QEMU test suite).
>
> Jiaxun, is it helpful to you?


Hi Philippe,

Thanks for the proposal!

The spec says:

```
HBA Reset (HR): When set by SW, this bit causes an internal reset of the HBA. 
All
state machines that relate to data transfers and queuing shall return to an idle
condition, and all ports shall be re-initialized via COMRESET (if staggered 
spin-up is
not supported). If staggered spin-up is supported, then it is the 
responsibility of
software to spin-up each port after the reset has completed.

When the HBA has performed the reset action, it shall reset this bit to ‘0’. A 
software
write of ‘0’ shall have no effect. For a description on which bits are reset 
when this bit is
set, see section 10.4.3.
```

I do believe QEMU's current implementation is also in conformance to the spec,
as the reset process itself is done instantly in QEMU.

I don't know if it's worth it to introduce extra complexity in QEMU to model
a very specific hardware behaviour. Even some hardware is working in QEMU's way.

[...]

Thanks
-- 
- Jiaxun

Reply via email to