From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WALHy-0003kL-LO for qemu-devel@nongnu.org; Mon, 03 Feb 2014 10:18:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WALHs-0005h2-MF for qemu-devel@nongnu.org; Mon, 03 Feb 2014 10:18:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:14287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WALHs-0005gp-Aj for qemu-devel@nongnu.org; Mon, 03 Feb 2014 10:18:16 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s13FICQN025676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 3 Feb 2014 10:18:14 -0500 From: Gerd Hoffmann Date: Mon, 3 Feb 2014 16:18:02 +0100 Message-Id: <1391440685-24201-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1391440685-24201-1-git-send-email-kraxel@redhat.com> References: <1391440685-24201-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/4] qxl: clear irq on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alon Levy , Gerd Hoffmann From: Alon Levy 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 Signed-off-by: Gerd Hoffmann --- hw/display/qxl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index e4f172e..56b61c8 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.3.1