OSDN Git Service

AHCI Port Interrupt Enable register cleaning on soft reset
authorAlexander Motin <mav@FreeBSD.org>
Mon, 12 Sep 2011 08:19:25 +0000 (11:19 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 20 Sep 2011 10:27:44 +0000 (12:27 +0200)
commita26a13da687f757c07e2a5c26fa411840405e6d7
treeeb1088af90ab810badba01d9106401d95ff84db6
parent21cfa41e91b5f49e8aa35ce768dcbfe436021db6
AHCI Port Interrupt Enable register cleaning on soft reset

I've found that FreeBSD AHCI driver doesn't work with AHCI hardware
emulation of QEMU 0.15.0. I believe the problem is on QEMU's side. As I
see, it clears port's Interrupt Enable register each time when reset of
any level happens. Is is reasonable for the global controller reset. It
is probably not good, but acceptable for FreeBSD driver for the port
hard reset. But it is IMO wrong for the device soft reset. None of real
hardware I know behaves that way.

Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/ahci.c