From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa0kY-00079m-8Y for qemu-devel@nongnu.org; Fri, 24 Jun 2011 03:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa0kX-0001kq-4z for qemu-devel@nongnu.org; Fri, 24 Jun 2011 03:24:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa0kW-0001kl-P9 for qemu-devel@nongnu.org; Fri, 24 Jun 2011 03:24:21 -0400 Message-ID: <4E043BA0.3080502@redhat.com> Date: Fri, 24 Jun 2011 09:24:16 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1308837577-15232-1-git-send-email-kraxel@redhat.com> In-Reply-To: <1308837577-15232-1-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ahci: fix device detect emulation. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Alexander Graf On 06/23/11 15:59, Gerd Hoffmann wrote: > AHCI specs say about the device detection field: > > Device Detection (DET): Indicates the interface device detection and Phy > state. > > 0h - No device detected and Phy communication not established > 1h - Device presence detected but Phy communication not established > 3h - Device presence detected and Phy communication established > 4h - Phy in offline mode as a result of the interface being disabled or > running in a BIST loopback mode > > The "Software Initilaization" section also mentions "If PxSSTS.DET > returns a value of 1h or 3h when read, then system software shall > continue to the next step, ..." > > This makes me think that 1h means "tried to detect device but didn't > found one" and 0h means "device detection not finished yet". /me was thinking wrong, scratch that, qemu behavior is fine. cheers, Gerd