Received: from eggs.gnu.org ([2001:4830:134:3::10]:40409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHyXM-0006Hr-5S for qemu-devel@nongnu.org; Thu, 14 Aug 2014 13:10:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHyXD-0004Cc-Q2 for qemu-devel@nongnu.org; Thu, 14 Aug 2014 13:10:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHyXD-0004CS-GH for qemu-devel@nongnu.org; Thu, 14 Aug 2014 13:09:55 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7EH9spj004658 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 14 Aug 2014 13:09:54 -0400 Date: Thu, 14 Aug 2014 18:09:52 +0100 From: Stefan Hajnoczi Message-ID: <20140814170952.GA27010@stefanha-thinkpad.redhat.com> References: <1407966975-3723-1-git-send-email-jsnow@redhat.com> <1407966975-3723-6-git-send-email-jsnow@redhat.com> <20140814160923.GE24132@stefanha-thinkpad.redhat.com> <53ECE03F.1080805@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline In-Reply-To: <53ECE03F.1080805@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 29/32] ahci: properly shadow the TFD register List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: mst@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 14, 2014 at 12:13:51PM -0400, John Snow wrote: >=20 >=20 > On 08/14/2014 12:09 PM, Stefan Hajnoczi wrote: > >On Wed, Aug 13, 2014 at 05:56:12PM -0400, John Snow wrote: > >>@@ -497,6 +495,8 @@ static void ahci_reset_port(AHCIState *s, int port) > >> pr->scr_stat =3D 0; > >> pr->scr_err =3D 0; > >> pr->scr_act =3D 0; > >>+ pr->tfdata =3D 0x7F; > > > >Is it possible to avoid the magic number? > > >=20 > I can name it as AHCI_TFD_BOOT_VALUE or AHCI_TFD_INIT_VALUE or so. Same f= or > the PxSIG boot value too. I don't think I can give any greater meaning to > the value because it's just a boot signature that means "We haven't recei= ved > an FIS yet." In that case, don't bother. I thought this was error and status fields shifted. Stefan --k+w/mQv8wyuph6w0 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJT7O1gAAoJEJykq7OBq3PITG4IALwo48mHU8OUurObMWrlaZRs b9oZD67SpWShOztltT/i54I7PbhoRQjZCU1F+Bboxapxxl/6KPpvJOU+ZRCZBlgj fD5o+6QZjv0zMX/Kj3Srwv0nt+pbc692v9ZiAEZn6pRFaW2QZ7TaiZmbgvqGzmvB i2GiDqWyGx8XZKDONPaJ4AAt+u3oW4Umu3dlAoJFKH3XTFvfLCeD6fOrl7oNC0XL ymZbzPSlS4FSs95SC5n7sYdi2iwbDLb1eN7YJhsztn5cQRNKtkMImUDGGLmIYlCE dKYPT6N5rwAxAwbUowVLHf03VYyurH/8KzKcpU/nReQWg7V8a/Cj5sx3daqzcuI= =QWQe -----END PGP SIGNATURE----- --k+w/mQv8wyuph6w0--