From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (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 4D0BB802B3 for ; Wed, 15 Mar 2017 19:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489632116; x=1521168116; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Q36NC8OWY/xcQ3bmJlUsUratkis3WFae6Fe87/RLcQ4=; b=HS9yddF1tDVHS5Su5DQt7cUDt8JmjS7DgRoa21miHRb2cEW0BzMkHFAI Kd2fOViwrUF4N6KXdCaRkqbfbDOEHw==; Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Mar 2017 19:41:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,170,1486454400"; d="scan'208";a="1123138036" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga001.fm.intel.com with ESMTP; 15 Mar 2017 19:41:55 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 19:41:55 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 15 Mar 2017 19:41:55 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.204]) with mapi id 14.03.0248.002; Thu, 16 Mar 2017 10:41:52 +0800 From: "Tian, Feng" To: Arka Sharma , "edk2-devel@lists.01.org" CC: "Tian, Feng" Thread-Topic: [edk2] Testing NVMe async commands Thread-Index: AQHSnZj6nH5K+hxRtU2j3br/mGGZKaGWuQpw Date: Thu, 16 Mar 2017 02:41:51 +0000 Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5699BAE90@SHSMSX101.ccr.corp.intel.com> References: 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: Testing NVMe async commands 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, 16 Mar 2017 02:41:56 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Sharma As far as I know, we have UEFI SCT test suite to cover NVME_PASS_THRU async= test. But it's not complex as your case. As you have sent 210720 cmds, it's more like memory leak issue. Could you p= lease only send 10000 cmds and compare the memory map change before and aft= er? If there is big memory map change, then there should have memory leak.= =20 Thanks Feng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Arka= Sharma Sent: Wednesday, March 15, 2017 10:32 PM To: edk2-devel@lists.01.org Subject: [edk2] Testing NVMe async commands We have developed an application to test the async flow in NvmExpressDxe. W= e have allocated a buffer of size 8 MB and in that buffer we are reading 12= 8k 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 in= side the notification function we decrement the counter. After sending all = the commands we wait till the counter becomes 0. After 64 reads are complet= ed 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 observi= ng 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 doi= ng in the application. Please let me know if there is any reference UEFI application to test async= ? _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel