From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX8QS-0006om-8n for qemu-devel@nongnu.org; Wed, 23 May 2012 06:04:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SX8QM-00023S-34 for qemu-devel@nongnu.org; Wed, 23 May 2012 06:04:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:23448) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SX8QL-000234-Qx for qemu-devel@nongnu.org; Wed, 23 May 2012 06:04:10 -0400 Message-ID: <4FBCB613.1040901@redhat.com> Date: Wed, 23 May 2012 12:04:03 +0200 From: Kevin Wolf MIME-Version: 1.0 References: <1337729202-26850-1-git-send-email-daniel@drv.nu> <4FBCAA38.2090908@redhat.com> <78A9AA1C-331F-4421-99AE-3D2DE9AEBFF2@suse.de> In-Reply-To: <78A9AA1C-331F-4421-99AE-3D2DE9AEBFF2@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ahci: SATA FIS is 20 bytes, not 0x20 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "Stefan Weil (commit_signer:2/19=11%)" , "Anthony Liguori (commit_signer:6/19=32%)" , "qemu-devel@nongnu.org" , =?ISO-8859-1?Q?=22Andreas_F=E4rber_=28commit=5Fsigner=3A2/19=3D11=25?= =?ISO-8859-1?Q?=29=22?= , Daniel Verkamp Am 23.05.2012 11:53, schrieb Alexander Graf: > > > Am 23.05.2012 um 11:13 schrieb Kevin Wolf : > >> Am 23.05.2012 01:26, schrieb Daniel Verkamp: >>> As in the SATA and AHCI specifications, a FIS is 5 Dwords of 4 bytes >>> each, which comes to 20 bytes (decimal), not 0x20. > > Not sure I understand. FISs can have different sizes depending on the payload they are. The one you are looking at here is the d2h init FIS. > > From the SATA 1.0a spec: > > FIS Type - Set to a value of 34h. Defines the rest of the FIS fields. Defines the length of the > FIS as five Dwords. > > So yes, you are right. The register FIS is 20 bytes, not 0x20 bytes long. > > Does this fix some actual breakage for you? In theory the SDBFIS could be overwritten with zeros. No idea what this means or if it matters in practice. Kevin