From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 AD78B21A0483A for ; Wed, 12 Apr 2017 22:46:07 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2017 22:46:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,193,1488873600"; d="scan'208";a="1155201981" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 12 Apr 2017 22:46:07 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 12 Apr 2017 22:46:06 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 12 Apr 2017 22:46:06 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.178]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.117]) with mapi id 14.03.0319.002; Thu, 13 Apr 2017 13:46:04 +0800 From: "Wu, Hao A" To: Arka Sharma , "Tian, Feng" CC: "edk2-devel@lists.01.org" Thread-Topic: [edk2] NvmExpressDxe async application crash with UDK debugger Thread-Index: AQHSs0rG3kibe6Uhp0GWBxXko2FKEaHAuMQAgAISfnA= Date: Thu, 13 Apr 2017 05:46:04 +0000 Message-ID: References: <7F1BAD85ADEA444D97065A60D2E97EE5699E44A8@SHSMSX101.ccr.corp.intel.com> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: Thu, 13 Apr 2017 05:46:07 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Arka, I will help to look into this problem and will try to reproduce it first. Best Regards, Hao Wu > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ar= ka > Sharma > Sent: Wednesday, April 12, 2017 2:05 PM > To: Tian, Feng > Cc: edk2-devel@lists.01.org > Subject: Re: [edk2] NvmExpressDxe async application crash with UDK debugg= er >=20 > Please find attached source. Also the variables to detect completion are > not volatile. I have checked in disassembly they are fetched from memory = in > the completion loop. >=20 > Regards, > Arka >=20 > On 12 Apr 2017 10:37 a.m., "Tian, Feng" wrote: >=20 > > 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 > > running. 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 CmdS= ent > > and CmdRecvd and passing the address of CmdRecvd in CreateEvent. With > this > > I face WinDbg exception quite often and it says "Target encountered an > > exception: Vector =3D 6, Error Code =3D 00000000". > > I can share the application code for more clarity. I am building with /= Od > > and GenFw with --keepexceptiontable > > > > Regards, > > Arka > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel