Received: from eggs.gnu.org ([2001:4830:134:3::10]:59783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XigfS-00052x-LS for qemu-devel@nongnu.org; Mon, 27 Oct 2014 05:32:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XigfM-0001ST-GP for qemu-devel@nongnu.org; Mon, 27 Oct 2014 05:32:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XigfM-0001SA-99 for qemu-devel@nongnu.org; Mon, 27 Oct 2014 05:32:44 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s9R9Whhr007910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 27 Oct 2014 05:32:43 -0400 From: Markus Armbruster References: <1412204151-18117-1-git-send-email-jsnow@redhat.com> <1412204151-18117-2-git-send-email-jsnow@redhat.com> Date: Mon, 27 Oct 2014 10:32:40 +0100 In-Reply-To: <1412204151-18117-2-git-send-email-jsnow@redhat.com> (John Snow's message of "Wed, 1 Oct 2014 18:55:46 -0400") Message-ID: <87ioj5c0xz.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/6] ahci: Correct PIO/D2H FIS responses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: kwolf@redhat.com, pbonzini@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, mst@redhat.com John Snow writes: > Currently, the D2H FIS packets AHCI generates simply parrot back > the LBA that the guest sent to us in the cmd_fis. However, some > commands (like READ NATIVE MAX) modify the LBA registers as a > return value, through which the AHCI D2H FIS is the only response > mechanism. Thus, the D2H response should use the current register > values, not the initial ones. > > This patch adjusts the LBA and drive select register responses for > PIO Setup and D2H FIS response packets. > > Additionally, the PIO and D2H FIS responses copy too many bytes > from the command FIS that it is being generated from. Specifically, > byte 11 which is the Features(15:8) field for Register Host to > Device FIS packets, is instead reserved for the PIO Setup FIS and > should always be 0. Ignorant q: is this based on observation or some specification? If specification: where can I find a copy?