From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x230.google.com (mail-lf0-x230.google.com [IPv6:2a00:1450:4010:c07::230]) (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 D67D8803A2 for ; Wed, 15 Mar 2017 07:32:01 -0700 (PDT) Received: by mail-lf0-x230.google.com with SMTP id a6so7761035lfa.0 for ; Wed, 15 Mar 2017 07:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tbaLb1GMZyr/riVvSA9licN+AF1nQSqOmq5jOH3/aPU=; b=U4riKOCxZGWps/6+OxA7svNvcJBPgyh0E+vLtKlq9fPPqeY/kn9wJ3ACO+hUeQi09O B1HVBETCBrbD0Xu6C/GeUreSPBZr2uYePKGZ3bHQT1eZBkxACaiXV6+D9fAFFjBRC905 7lZLAkv28PEhUWESN1HFVyLRaY+CcQoYwkKHoZiBJbxBeZSNLZblMGTHFzX9Jw1CzcMb A0rOlemUKDpcEEnc5lNSJ9Q5kwYiN+w8pDMsGA2Mg7ISduJcPBbtMm7cVOOY5i4VgDMt Mf3huaYC0tfk57Ee+KKWTVtEL2Wd42f/EdnCWCxQ+zng/LyNl3a1rTLIheyCcYxiM56D AfzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tbaLb1GMZyr/riVvSA9licN+AF1nQSqOmq5jOH3/aPU=; b=m291UpEQV1Du//b4hmMbSTCFrqn8Vt8J9tBqY925hrC9GO/hBkpmaYeuCb4X9FBP+k +xlYTNJjJsBXA4NBhQtxrYMagFcJBhSTqAiubQITSI7pIUExQzQ1uIYTY0FetkXLbMdk zJGSyp3GenDxIfmC8RQWluH6M/8UzWBiIJBVVlF0U/1qWtgg6586D+9xbPomwinKC2ma 5Y+4gI3bA9Kx4eM0eHjobnfoOTtrDSluLevHQ4MFyzY1D8C/j74jAWmpUH1NDfZtjn5Y shfojpg3dU1iK+o64xBPtMwQ+odx0ZqjO9lPqoYNqf0kJZKRPJAzdxRJaYNuMyRwtCBW 4N6w== X-Gm-Message-State: AFeK/H2h+1QqpkVPPzVOcU+cb41GsehSzAHWtOseYjtgE5uVDzvZGtZJp6LfYsuJfnFCADxu7wdWlUgVzq/71g== X-Received: by 10.46.76.2 with SMTP id z2mr1275037lja.59.1489588318970; Wed, 15 Mar 2017 07:31:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.72.213 with HTTP; Wed, 15 Mar 2017 07:31:58 -0700 (PDT) From: Arka Sharma Date: Wed, 15 Mar 2017 20:01:58 +0530 Message-ID: To: edk2-devel@lists.01.org Subject: Testing NVMe async commands X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2017 14:32:02 -0000 Content-Type: text/plain; charset=UTF-8 We have developed an application to test the async flow in NvmExpressDxe. We have allocated a buffer of size 8 MB and in that buffer we are reading 128k chunks, which results in 64 commands as the async submission queue depth is 64, after calling passthru with the Event we increment a counter and inside the notification function we decrement the counter. After sending all the commands we wait till the counter becomes 0. After 64 reads are completed we issue 64 write command passing the buffer we have just read. So after 8 MB is done we increment the lba and repeat the same. In the application we are putting the starting lba of each 8 mb operation, so it increments as 0x0, 0x4000, 0x8000 as lba size of the device is 512 bytes. We are observing a hang at lba 0x66E4000, after processing 210720 commands. We are creating and closing the events after each 8 MB read and write. This stuck is seen consistently. May be there is something wrong we are doing in the application. Please let me know if there is any reference UEFI application to test async ?