From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5CLJ-000730-K7 for qemu-devel@nongnu.org; Mon, 20 Jan 2014 05:44:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W5CLD-0004DJ-Ie for qemu-devel@nongnu.org; Mon, 20 Jan 2014 05:44:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W5CLD-0004Cm-AX for qemu-devel@nongnu.org; Mon, 20 Jan 2014 05:44:27 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0KAiPnK015617 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Jan 2014 05:44:26 -0500 From: Alon Levy Date: Mon, 20 Jan 2014 12:44:19 +0200 Message-Id: <1390214659-12296-2-git-send-email-alevy@redhat.com> In-Reply-To: <1390214659-12296-1-git-send-email-alevy@redhat.com> References: <1390214659-12296-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 2/2] qxl: clear irq on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kraxel@redhat.com Without this we occasionally trigger an assert at hw/pci/pci.c:pcibus_reset that asserts the irq_count is zero on reset. This has become a problem with the new drm driver for linux, since doing a reboot from console causes a race between console updates that set the irq and the reset assertion that the irq is clear. Signed-off-by: Alon Levy --- hw/display/qxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index f6af470..e164d96 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -1126,6 +1126,7 @@ static void qxl_reset_state(PCIQXLDevice *d) d->num_free_res = 0; d->last_release = NULL; memset(&d->ssd.dirty, 0, sizeof(d->ssd.dirty)); + qxl_update_irq(d); } static void qxl_soft_reset(PCIQXLDevice *d) -- 1.8.4.2