From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTZC4-0000LZ-Td for qemu-devel@nongnu.org; Mon, 15 Sep 2014 12:32:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTZBq-0003nV-GZ for qemu-devel@nongnu.org; Mon, 15 Sep 2014 12:32:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49623) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTZBq-0003nE-9l for qemu-devel@nongnu.org; Mon, 15 Sep 2014 12:31:46 -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 s8FGVjeP002983 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 15 Sep 2014 12:31:45 -0400 Message-ID: <5417146E.5090603@redhat.com> Date: Mon, 15 Sep 2014 12:31:42 -0400 From: John Snow MIME-Version: 1.0 References: <1410582855-21870-1-git-send-email-jsnow@redhat.com> <1410582855-21870-4-git-send-email-jsnow@redhat.com> <541445F8.7080909@redhat.com> <54149FF3.2080301@redhat.com> In-Reply-To: <54149FF3.2080301@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC 03/10] AHCI: Add PRD interrupt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: stefanha@redhat.com, mst@redhat.com On 09/13/2014 03:50 PM, Paolo Bonzini wrote: > Il 13/09/2014 15:26, Paolo Bonzini ha scritto: >>>> >>>> + if (ad->dp_intr_req) { >>>> + ahci_trigger_irq(ad->hba, ad, PORT_IRQ_SG_DONE); >>>> + ad->dp_intr_req = 0; >>>> + } >> Is it also needed in the error case? Especially the short-PRDT case >> that you are adding in the next patch. >> > > ... and is it also needed for NCQ, albeit with a separate flag? > > Paolo > I had actually thought that it wasn't; due to the more asynchronous nature of NCQ. But... looking back at the specification, I can't find anywhere that explicitly says you can't use these bits for NCQ.