From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on062c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::62c]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BC8501A1DF3 for ; Tue, 9 Aug 2016 00:36:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gBq57SkUD/Pd74Qik6GBhOYnQE0V9OiAvch+vtbM+ec=; b=VC4qHbI5RhAV2OAbhIhGQTWAK+7zjx7nU69R6O8xImiHT3cnGypHhs8MihhakYWWqjL+dmk8rfsOQWXREHBM7VF5amSM7vUYdfncmZ6lRovZb8N7MlX44mYCSM1I0TV18LZXQyxWllpY5llZ24juTzhnMU/6ZRcYlhsepDuBk5I= Received: from VI1PR0401MB2000.eurprd04.prod.outlook.com (10.166.141.16) by VI1PR0401MB1998.eurprd04.prod.outlook.com (10.166.141.14) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.8; Tue, 9 Aug 2016 07:36:36 +0000 Received: from VI1PR0401MB2000.eurprd04.prod.outlook.com ([10.166.141.16]) by VI1PR0401MB2000.eurprd04.prod.outlook.com ([10.166.141.16]) with mapi id 15.01.0557.009; Tue, 9 Aug 2016 07:36:36 +0000 From: Shaveta Leekha To: "Tian, Feng" , Linaro UEFI Mailman List , "edk2-devel@lists.01.org" Thread-Topic: SATA AHCI issue Thread-Index: AdHdlQoTkMMxDwLeSvqGPu7iPmB3BgAAz1fgAAJ5bNAE7gJn8AAC2RPgAAHeECAAHhfkUAAKpG/Q Date: Tue, 9 Aug 2016 07:36:36 +0000 Message-ID: References: <7F1BAD85ADEA444D97065A60D2E97EE538817A7E@SHSMSX101.ccr.corp.intel.com> <7F1BAD85ADEA444D97065A60D2E97EE5388217A4@SHSMSX101.ccr.corp.intel.com> In-Reply-To: <7F1BAD85ADEA444D97065A60D2E97EE5388217A4@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shaveta.leekha@nxp.com; x-originating-ip: [192.88.169.1] x-ms-office365-filtering-correlation-id: ae7d342a-a76e-49a8-5454-08d3c027e4d7 x-microsoft-exchange-diagnostics: 1; VI1PR0401MB1998; 6:anDd+qet54Ev+p3Y6GaOHmG5FSk7WOKqYSTF0MMEep7oPyQ9PxDWtsyuYoPMoED8b85R/6QdQglmcxbwFyQcLz63yBN9jYdqAa+1fWkAY2j9rxoOpjmgb3S5ug9PGQsUy9u8cnThD3qpXmMXnSG+9VXx1MfjpLwaG4YWWgMdIWbEikq6bYHUX9RG1CpNcx1ibCTyOHPtUNHsIKiGVzYRQZ5KKxKz+Xa3XT4b9HpBKKWYm0V5XxXLl8pcEbEqjckL+fIjGEgiB4sqQWjp5dHmF/t8ua/DzPnQut3Bu4uYDrRG0MpChF1s/gRDXl0w88rO+7I+nOmwyCIJOhI7qmPeCg==; 5:68UGwobHPbY7UEgqY5JbefbB09YHXAKANYBy1Ri05T5HoxTD6ry0BTIWk9TKv2UEP8OjWHOhZDu6FI/ikRrWPkk/6e7QwPPg0SV33Q5ecODpq6RkF/F8Ahu81R4p1XRxDkL1ynouMvpy8EYmAjLk8g==; 24:qAAOMet7D+djLcEtxlb1V9EO7rkHsh2FfLStyFJc6gsrJEPbiWh6FdVBXNQqBXeH5cFwDqHPa+x38xNFPzcxV3QWQVFctRxEwicnUrYXrhw=; 7:uewFYGJZ/t4LuNXYMvwHOaulQjec707Nr8YUTTenEhfrCdKooQ6Cox6EJPGwlI+YDpbIEoYzfDBsBbFQaS2xYloSqnnIatInmDM274wW4heY+fZVLZn9WM+j3ZpG95L+oZuk9XNvFdfGF+w7L3ALDFfJbjbngbOkZUL0Fqyov2xWxOLj36SPezQZTjzqed4Z2H32lss6NWZA3E7m07HyMo/w7SY4FNhmsR121e4XgI2W/BPqy4QDw5So57h9Ct++ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB1998; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(162533806227266)(1553240931313)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:VI1PR0401MB1998; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB1998; x-forefront-prvs: 0029F17A3F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(377454003)(199003)(13464003)(189002)(19580395003)(2900100001)(2950100001)(7846002)(19580405001)(7736002)(7696003)(106356001)(6116002)(92566002)(76576001)(77096005)(33656002)(102836003)(3846002)(2906002)(5001770100001)(11100500001)(93886004)(87936001)(66066001)(586003)(74316002)(15975445007)(122556002)(50986999)(54356999)(76176999)(105586002)(3660700001)(9686002)(8676002)(10400500002)(189998001)(2501003)(8936002)(107886002)(575784001)(305945005)(3480700004)(86362001)(3280700002)(101416001)(81156014)(81166006)(68736007)(5002640100001)(97736004)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB1998; H:VI1PR0401MB2000.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Aug 2016 07:36:36.3383 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB1998 Subject: Re: SATA AHCI issue 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: Tue, 09 Aug 2016 07:36:41 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Feng, Yes for 30MB file, multiple PRD entries would have been created. But I able to write file only upto 4MB size. The protocol stack I am using is: Generic AtaBusDxe driver use EfiAtaPassThruProtocol Generic AtaAtapiPassThru driver consumes "EfiIdeControllerInitProtocol" and= produces "EfiAtaPassThruProtocol" which is consumed by generic AtaBusDxe d= river Platform-specific SATA driver that produces "EfiIdeControllerInitProtocol I am writing SATA HDD at File level. HDD is formatted with FAT32 which is identified as FileSytem by FATPKG. Snippet of writing onto SATA HDD Filesystem is pasted below. Thanks and Regards, Shaveta UEFI Interactive Shell v2.1 EDK II UEFI v2.50 (LS2080a RDB board EFI Jul 25 2016 00:00:33, 0x00000000) Mapping table FS0: Alias(s):F6a0a:;BLK0: PciRoot(0x0)/Pci(0x0,0x0)/Sata(0x0,0x0,0x0) Shell>FS0: FS0:\> tftp 192.168.3.161 test2 test Downloading the file 'test2' [=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 0 Kb -----Original Message----- From: Tian, Feng [mailto:feng.tian@intel.com]=20 Sent: Tuesday, August 09, 2016 8:30 AM To: Shaveta Leekha ; Linaro UEFI Mailman List ; edk2-devel@lists.01.org Cc: Tian, Feng Subject: RE: SATA AHCI issue Hi, Shaveta No, we will create multiple PRDs if the transfer length is larger than 4M. = each PRD could represent a 4M transfer request and the maximum number of PR= D for each command is 65535. How do you access the HDD? At block level or file level? It happens at all = HDDs or only one specific brand model? Thanks Feng -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Shav= eta Leekha Sent: Monday, August 8, 2016 8:07 PM To: Linaro UEFI Mailman List ; edk2-devel@lis= ts.01.org Subject: Re: [edk2] SATA AHCI issue Hi, As per the spec and the code in "AhciMode.c" // According to AHCI 1.3 spec, a PRDT entry can point to a maximum 4MB da= ta block. Does it mean, only one PRD entry is getting transferred successfully? But as the data I am writing onto SATA HDD is 30MB big, what about the rest= of PRDs? What could be went here? Thanks and Regards, Shaveta -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Shav= eta Leekha Sent: Monday, August 08, 2016 5:24 PM To: Linaro UEFI Mailman List ; edk2-devel@lis= ts.01.org Subject: [edk2] SATA AHCI issue Hi, I am facing one Timeout issue while writing big file over my SATA HDD. It in the code of "AhciDmaTransfer " from file AhciMode.c // // Wait for command compelte // FisBaseAddr =3D (UINTN)AhciRegisters->AhciRFis + Port * sizeof (EFI_AHCI_= RECEIVED_FIS); Offset =3D FisBaseAddr + EFI_AHCI_D2H_FIS_OFFSET; Status =3D AhciWaitMemSet ( Offset, EFI_AHCI_FIS_TYPE_MASK, EFI_AHCI_FIS_REGISTER_D2H, This MemSet check fails, what = could be the issue? Timeout ); TimeOut occur while checking FIS_REGISTER_D2H. Any idea about this time out issue? Can it be "Due to un-aligned PRD? Are there multiple PRDs created or single= PRD?" As I am able to write maximum 4MB file on SATA HDD, file above 4MB size fai= led by giving TIMEOUT_ERROR. Thanks and Regards, Shaveta _______________________________________________ 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