From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A91C520D76485 for ; Tue, 11 Apr 2017 22:07:39 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Apr 2017 22:07:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,188,1488873600"; d="scan'208";a="955050681" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 11 Apr 2017 22:07:38 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 11 Apr 2017 22:07:33 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 11 Apr 2017 22:07:32 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.193]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.217]) with mapi id 14.03.0319.002; Wed, 12 Apr 2017 13:07:30 +0800 From: "Tian, Feng" To: Arka Sharma , "edk2-devel@lists.01.org" CC: "Tian, Feng" Thread-Topic: [edk2] NvmExpressDxe async application crash with UDK debugger Thread-Index: AQHSs0mIhNty2uhJX0m8OHxmtQ6ZlaHBLrfA Date: Wed, 12 Apr 2017 05:07:29 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699E44A8@SHSMSX101.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: NvmExpressDxe async application crash with UDK debugger X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Apr 2017 05:07:39 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Arka, Could you please share us your test code? Thanks Feng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Arka= Sharma Sent: Wednesday, April 12, 2017 12:59 PM To: edk2-devel@lists.01.org Subject: [edk2] NvmExpressDxe async application crash with UDK debugger Hi, I am testing async io in NvmExpressDxe. The target system is Asrock Z97 which I have connected to host with serial port where UDK debugger is r= unning. So my application does following 1. CreateEvent 2. Call Passthru 3. CmdSent++; 4. Repeat 1-3 until not ready from driver 5. while (CmdRecd < CmdSent); 4. = Close all the events. CmdRecvd is incremented inside EventCallback. I am allocating both CmdSent = and CmdRecvd and passing the address of CmdRecvd in CreateEvent. With this = I face WinDbg exception quite often and it says "Target encountered an exce= ption: Vector =3D 6, Error Code =3D 00000000". I can share the application code for more clarity. I am building with /Od a= nd GenFw with --keepexceptiontable Regards, Arka _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel