From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 90C8A21A0483B for ; Tue, 11 Apr 2017 23:05:09 -0700 (PDT) Received: by mail-lf0-x235.google.com with SMTP id s141so8749887lfe.3 for ; Tue, 11 Apr 2017 23:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vJfnDLuagiI0bkmPF/UACOJJqs5s9dueW5Egji+Mo00=; b=qYuInjItms9OGuuShl/blqaG8ZT9T6iSYJ7PATOBmuX8L5PcHw57OXGUM6KatKVXGg EXhl8MXRsXbiLOUUY9fX9P6/gd/5DH1L6p0xvK7cDvGluL10OsmRKCF2Rf/39ej2kYxt Riu5Y01W4+j5NpFLUguVZOUenBLQmaolp68oWBrdfi7bAUE+RT0mhkWuaRzyyw5zQaXE D8p5S4uUMfa63ygTe0YP2yYqu/sckuU7sF5Kejllpr7UM3wQcZjea2wEwgr0lv14GnDl C9UWuvavKSB/KqfuvswlpkK9+5WQII9ckw/8N/QYZ9UzVjqsdDHtBcAzwtj0pvIyggct zPMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vJfnDLuagiI0bkmPF/UACOJJqs5s9dueW5Egji+Mo00=; b=sKUrzqZF4ZeUZpt1lrefsCzT+gxieA2rXnm/SBgvUwOE5rNj7YSNm5YaI4y9WrvaFO ydR5bILeJyP6MTUY/if2Wsu7so9cb/gjEwY1r3aMDtWnKtht4DTxxfHlWaySAjAwS3eL NL0HqU96Aj0ynTQYrwdmtMwgdArux2trgFr15YJAZli8NfgCEV9pLH8h4WLKI4xtqv5V Ts6Od/o61y7zBmHohPqSm5NkktpyH0ntrY8R5gWAnfMZ2vtWsvSPhf+DttAq8GIikpfd VFJcZa603Gc7fW9xqnyaaQ+ffQdKb/UhddfrgBiUxLJqbx1iD7Git5m25YT2npcj51Dx M8CA== X-Gm-Message-State: AN3rC/50LqNVRZXQzqJlHZPwYLGGvaz2E12cVlszi7h8S7fq6yA8PHBj2shLDklyHeY3eVAyJYdzJQjQz76LBQ== X-Received: by 10.25.233.70 with SMTP id g67mr3606380lfh.131.1491977107466; Tue, 11 Apr 2017 23:05:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.225.17 with HTTP; Tue, 11 Apr 2017 23:05:06 -0700 (PDT) Received: by 10.25.225.17 with HTTP; Tue, 11 Apr 2017 23:05:06 -0700 (PDT) In-Reply-To: <7F1BAD85ADEA444D97065A60D2E97EE5699E44A8@SHSMSX101.ccr.corp.intel.com> References: <7F1BAD85ADEA444D97065A60D2E97EE5699E44A8@SHSMSX101.ccr.corp.intel.com> From: Arka Sharma Date: Wed, 12 Apr 2017 11:35:06 +0530 Message-ID: To: "Tian, Feng" Cc: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 06:05:10 -0000 Content-Type: text/plain; charset=UTF-8 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. Regards, Arka On 12 Apr 2017 10:37 a.m., "Tian, Feng" wrote: > 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 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 > exception: Vector = 6, Error Code = 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 >