From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on061a.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::61a]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B41ED1A1DF3 for ; Tue, 9 Aug 2016 01:02:41 -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=aDG9098lQBCYAlNJFNo775MTtn0SG2P8EWpIG5PW3wg=; b=fN+Ujs2HGiZYSSemFMkb6p45s8rHxDwW3QINb6xaunMWzj/R49xRALdA1qvnHasp0a8EkcppYK7F4wFq5KBMwXwZVI9nV7Lob7QanHgVYYHxYBU8Q6OT4oziV9WaWCI6y+Nhvq13YiGls3CMhWhFXWevxJpsxSKjyzjiY5A8cW8= Received: from VI1PR0401MB2000.eurprd04.prod.outlook.com (10.166.141.16) by VI1PR0401MB1999.eurprd04.prod.outlook.com (10.166.141.15) 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 08:02: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 08:02: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/QAAELvtA= Date: Tue, 9 Aug 2016 08:02:36 +0000 Message-ID: References: <7F1BAD85ADEA444D97065A60D2E97EE538817A7E@SHSMSX101.ccr.corp.intel.com> <7F1BAD85ADEA444D97065A60D2E97EE5388217A4@SHSMSX101.ccr.corp.intel.com> In-Reply-To: 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: 83d3488f-381d-40bc-13cc-08d3c02b86da x-microsoft-exchange-diagnostics: 1; VI1PR0401MB1999; 6:mVS/DKE3K3xaz0kz4404xnoDXz/ReUEhntk8vmi8bSr3FUU/utgOg7rk/mtIB4eUU3bYIwGR08xplG4xOiU0yfiUuikv869gaKwZ3MWHtbn6b93RqZAr2pw8gCyk1FKbaBYItYpXuOD4AjWx/tUzthdMKmKWr1R+8+72QHJlT1PuNr72sUBocOkCkOuO1X9MIZddC7skeccFBAjQkh3EbRDItM3ixzvfwqlNOi9GMcOqCSnySy9qs2W4J9+zeyDYHvT04OH67vhuXzfc54ZMJ31TOGxsSdqkfHN4XjAUCUzG5dsMC0g84YS/mueCwkYRpq2Jn4BRp3vybQoVfUDMXw==; 5:fWJWGJO+bYfeMGWdhLZ2yZtAImqEr3CRqA5eTMDJuj7RMY3xZp/9F7dACXexLdKx1M1Ijd955Phd7yK7SLrPyfl0jDuBnY9Dbni+OmdFCVj2nchZ9Ca7BkOQVnJYrFm4R0ZMl5cA2REwrVS7s+nLpw==; 24:37rNwFQxCzKCubgO6FgQ8UJD2T9kGNIAbsn4MOVj1+AvvP1XUgec7APcWNU5CDwW4GyILDl+jDACdgkRGU4VrAqpngvulxSkaoh7POtDuvs=; 7:KPXz14RIzWAj5uxTUwWy3J8nMaFSbGnWlDqEyKE1oEJwwdvTRTDsHNeqjhKO6o3aYypV458YhctdEPpZQlNqL2I8jQ8d3eK1bqOGq7GNfOY5xQwxe0pE1WneEU7OXoJ7DVkhYZVIysv/4JpIdmvPC/19z23mZFl09ILYsMGZDUR8v+3mZ0bqXiRVTVSMW7jsTaQJgcBceUztppncpH7UphdtJ5WFTvCdmfUIc+1YIQVL3Xh2+d2iho92kQI4lTTo x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB1999; 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)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:VI1PR0401MB1999; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB1999; x-forefront-prvs: 0029F17A3F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(13464003)(377454003)(199003)(189002)(87936001)(9686002)(305945005)(66066001)(93886004)(68736007)(7736002)(7846002)(8936002)(7696003)(76576001)(81166006)(3480700004)(5002640100001)(189998001)(11100500001)(2906002)(81156014)(74316002)(97736004)(3280700002)(8676002)(19580395003)(33656002)(19580405001)(92566002)(3660700001)(586003)(10400500002)(106356001)(102836003)(3846002)(6116002)(76176999)(54356999)(86362001)(2501003)(50986999)(107886002)(5001770100001)(575784001)(105586002)(101416001)(77096005)(122556002)(15975445007)(2950100001)(2900100001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB1999; 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 08:02:36.6999 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB1999 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 08:02:42 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Feng, Complete stack is: MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf FatPkg/FatPei/FatPei.inf FatPkg/EnhancedFatDxe/Fat.inf Best Regards, Shaveta -----Original Message----- From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Shav= eta Leekha Sent: Tuesday, August 09, 2016 1:07 PM To: Tian, Feng ; Linaro UEFI Mailman List ; edk2-devel@lists.01.org Subject: Re: [edk2] SATA AHCI issue 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 AtaAtapiPassThr= u driver consumes "EfiIdeControllerInitProtocol" and produces "EfiAtaPassTh= ruProtocol" which is consumed by generic AtaBusDxe driver 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] 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 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel