From patchwork Wed May 30 08:41:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 161913 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 64025B704B for ; Wed, 30 May 2012 19:37:20 +1000 (EST) Received: from localhost ([::1]:60981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZeTd-0003AV-Cd for incoming@patchwork.ozlabs.org; Wed, 30 May 2012 04:41:57 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZeTQ-0002ry-J5 for qemu-devel@nongnu.org; Wed, 30 May 2012 04:41:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZeTJ-0007Ec-SY for qemu-devel@nongnu.org; Wed, 30 May 2012 04:41:44 -0400 Received: from thoth.sbs.de ([192.35.17.2]:27360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZeTJ-0007Cz-JC; Wed, 30 May 2012 04:41:37 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.13.6/8.13.6) with ESMTP id q4U8fYYt018110; Wed, 30 May 2012 10:41:34 +0200 Received: from mchn199C.mchp.siemens.de ([139.22.37.55]) by mail1.siemens.de (8.13.6/8.13.6) with SMTP id q4U8fW7Z024880; Wed, 30 May 2012 10:41:34 +0200 Message-ID: <4FC5DD3C.90209@siemens.com> Date: Wed, 30 May 2012 10:41:32 +0200 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Anthony Liguori X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 192.35.17.2 Cc: qemu-stable , qemu-devel , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 1.1] intel-hda: Fix reset of MSI function X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Call msi_reset on device reset as still required by the core. Signed-off-by: Jan Kiszka Acked-by: Gerd Hoffmann --- hw/intel-hda.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/intel-hda.c b/hw/intel-hda.c index bb11af2..e38861e 100644 --- a/hw/intel-hda.c +++ b/hw/intel-hda.c @@ -1107,6 +1107,9 @@ static void intel_hda_reset(DeviceState *dev) DeviceState *qdev; HDACodecDevice *cdev; + if (d->msi) { + msi_reset(&d->pci); + } intel_hda_regs_reset(d); d->wall_base_ns = qemu_get_clock_ns(vm_clock);