From patchwork Thu May 12 09:30:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Klaus Jensen X-Patchwork-Id: 1630068 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=irrelevant.dk header.i=@irrelevant.dk header.a=rsa-sha256 header.s=fm3 header.b=lpZJULTE; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=BcY0az/r; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KzS2c48Wwz9sGF for ; Thu, 12 May 2022 20:00:40 +1000 (AEST) Received: from localhost ([::1]:54260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1np5cb-0007iW-8b for incoming@patchwork.ozlabs.org; Thu, 12 May 2022 06:00:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np59x-0002gj-HY; Thu, 12 May 2022 05:31:01 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:44929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1np59v-0007GJ-So; Thu, 12 May 2022 05:31:01 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id DB96C320095A; Thu, 12 May 2022 05:30:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 12 May 2022 05:30:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=irrelevant.dk; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1652347857; x=1652434257; bh=EKsgih76VX WAmXJ4mLh3BVazC8IZm3tJolKye/7xR44=; b=lpZJULTEctAv204+ayOHaN4iRD 0SHKszLJCFpwKKNO2CpaHkSqIHaFiuqOap/ELGw1zQf1/T8D0A2vemWRQjB8+/uO uxHm9Vr1CQzO28OkR3sxovF0hyNSFN8tdwnwybMF4kpaqN6orp17eYnitsFpfXZL y/3392ejiB7hkqvsF7e7XAV8jTdxe5uFAls4mKnzv6JjaayGvHroDR6N6YVX6gFR 9Ox8a+eBdm/1a6g93Zcs3UlnpmQ+sUOg5987rSnM+rI6X6bZdICYakZ8mRHKeK/v UcEUNUpSdi6NbI54is1DsLzXXK+UxspG2VeMUM94RR0BpLf9MUET76JH7HJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1652347857; x=1652434257; bh=E Ksgih76VXWAmXJ4mLh3BVazC8IZm3tJolKye/7xR44=; b=BcY0az/rySRBfD0kH 5t5rdRlQeG/Rlsn4hdw6920PLzQB0SXvCvnDo14yhAA7JjvgU1iXQjTW0dx9ca1j 7VlWaY9tDusNNdvbB+0Wqkpzvh+3Uy2pMhAOEUPDLxPUxfmbLoPiTHRjG54NXOTB O2XF2GQ0zNHN/3RYar06sWIQfrgwKGAjyBTfgfrRPuq63AZNS1mRfHIA2YJxDGUj fiyxetE3JlTV4ZVakt/Yr72cYLP0Ee3ij3VUjWwsAcn5w4fqd4RVx0At9kDF7g9j oi7ZwFxS0m6sLsUH+Mbm4jSv0xsDjkCb4fiU7VMaXRqBNXQzeK19+rmok4eJs7m8 5YtlQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrgeejgddugecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefmlhgruhhsucfl vghnshgvnhcuoehithhssehirhhrvghlvghvrghnthdrughkqeenucggtffrrghtthgvrh hnpedtleduhfegleehleeltdejffefjedtleeuvdfgteevffegtedvveekheeiieekteen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehithhsse hirhhrvghlvghvrghnthdrughk X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 May 2022 05:30:56 -0400 (EDT) From: Klaus Jensen To: qemu-devel@nongnu.org Cc: Klaus Jensen , Keith Busch , qemu-block@nongnu.org, Klaus Jensen Subject: [PATCH] hw/nvme: clear aen mask on reset Date: Thu, 12 May 2022 11:30:55 +0200 Message-Id: <20220512093055.726022-1-its@irrelevant.dk> X-Mailer: git-send-email 2.36.0 MIME-Version: 1.0 Received-SPF: pass client-ip=64.147.123.19; envelope-from=its@irrelevant.dk; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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" From: Klaus Jensen The internally maintained AEN mask is not cleared on reset. Fix this. Signed-off-by: Klaus Jensen Reviewed-by: Keith Busch --- hw/nvme/ctrl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 1e6e0fcad918..4c8200dfb859 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c @@ -5889,6 +5889,7 @@ static void nvme_ctrl_reset(NvmeCtrl *n) } n->aer_queued = 0; + n->aer_mask = 0; n->outstanding_aers = 0; n->qs_created = false; }