From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-ve1eur02on061f.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe06::61f]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5173C1A1E18 for ; Mon, 8 Aug 2016 05:06:49 -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=xuE0S7pjuwIVA+gKF3XU/ynwXTJvefpnjocBiKH7HK0=; b=uz4YUl2QJstX0gqF+L9PYSseuRXTm2JhcmBaXiMOj3Yj+5wMH4SDXaOhHGU1ry86hfu8ctfIQLlY0RoMQx+QUZ/js/UfwtVP0FhKEFgBGXi+doRbOPkbutWmA/u17cQOFBEKwG4LHYDQ559cX5jSOofQn22Xvkv4r43/iIheTUI= Received: from VI1PR0401MB2000.eurprd04.prod.outlook.com (10.166.141.16) by VI1PR0401MB1997.eurprd04.prod.outlook.com (10.166.141.13) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.557.8; Mon, 8 Aug 2016 12:06:45 +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; Mon, 8 Aug 2016 12:06:45 +0000 From: Shaveta Leekha To: Linaro UEFI Mailman List , "edk2-devel@lists.01.org" Thread-Topic: SATA AHCI issue Thread-Index: AdHdlQoTkMMxDwLeSvqGPu7iPmB3BgAAz1fgAAJ5bNAE7gJn8AAC2RPgAAHeECA= Date: Mon, 8 Aug 2016 12:06:45 +0000 Message-ID: References: <7F1BAD85ADEA444D97065A60D2E97EE538817A7E@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: eec9dd82-3d85-4762-50bf-08d3bf8477bc x-microsoft-exchange-diagnostics: 1; VI1PR0401MB1997; 6:o9zJA2k6ACsA/t1z7b+TtjyFGJjPEb7pzuJSTklEULRTVHbshA/IU+kVlm/nGMR3icN9Bly/ymrVQUhQzJLiNpys+OIUAQ+IENreiZyJAaJqN1O/f1Q9xSahtSoTUKQPw/7wYlZvrdDQK4O5YNjb+b7VokcO5E/00zf/hrrmv2+2mrmYM2hjUG9uljiPc4PINVs0/eBU3S6buKPkuNuhYT1YWWQBnzRuX2lqOsC3mKbJa9A8Hio+tLZ/gIArrfMbM4XOKkqH1Erkf8TEr7ujdTkZFDikMud5mubLf9Xh6xirJFPJyXkuLPenRfGaPaQyYiqtQLUG6dV/c9I3hBIezA==; 5:INUsOIW6hB1FX4dZgMlGJjwPP6AxzwMtFcD9WoczgjTRvMdYVCFmXFCNCEeO2PD3Cu7WRhFjGsWPp+FDXi/e3XFxCBU/t7qDzQR/iK0dKMVGDyh48+XOBrTRaF0M1pmF60DYdKC2sHAgW0BQ+6+b7A==; 24:VUjykkRJL3Q832Wrj/IaYCPnm5Lj+d20AuC9xWHY3V1PyqwrY6Agol3BTpAOziNPRhdsSM0b+qorM4gLiv3ErtpoWQTPPm3q2KeIYja0Vcc=; 7:lIpXtlGbIspRoIn7kPCMwU0nKzPG1Z/V35F7l56/AAafPac0eVuqOZYdnXbpo5JVFgL4v47P3yLd7sVwjFVwQ91zChtdP6XxrPSHyqhbNjj9RSntyOWcHI2rCQTOrpRblX7WVsmbOwpDLS1IdOiKpBxIuOvLN0ssUEVlJSxpeAQ77pOAf2iiLEYNY9DuxyqaE1Euq2SxZjeUHP7uIeVwJg9Sb7KBRqH9wmWmkQJB/wdO6diE3sqMCFuRNrMWNnp0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB1997; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(162533806227266)(1553240931313); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:VI1PR0401MB1997; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB1997; x-forefront-prvs: 00286C0CA6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(13464003)(377454003)(199003)(189002)(6116002)(3846002)(102836003)(2501003)(305945005)(19580405001)(19580395003)(2900100001)(2950100001)(33656002)(10400500002)(86362001)(5001770100001)(97736004)(11100500001)(77096005)(107886002)(3280700002)(74316002)(3660700001)(15975445007)(189998001)(87936001)(9686002)(8676002)(2906002)(7696003)(106356001)(68736007)(54356999)(101416001)(8936002)(50986999)(81156014)(81166006)(76576001)(5002640100001)(7736002)(66066001)(92566002)(3480700004)(122556002)(76176999)(586003)(7846002)(105586002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB1997; 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: 08 Aug 2016 12:06:45.2428 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB1997 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: Mon, 08 Aug 2016 12:06:49 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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