From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-db5eur03on061c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0a::61c]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 263F21A1E18 for ; Mon, 8 Aug 2016 04:53:57 -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=RHaaxI0zghHK/+8TLbv8j2Gq+nvZIjzD5LEVvuGkRG8=; b=oOxHe2H1gMtDmxp4JE1GQxa9yiGe7ZDAVsK1HOv7W09AOrSF5c0sq0pawWs7Dtv0x44yAiKuZq0i2Vl+Vo51yhjUf8yKxg6LNQrDzFBAfQ5rIE6Gn84SQiBXKcZjvOfLswONHBXG7sdxvxmRuFbjAlSaf6L4o2aUNFW/Wu5TWmQ= 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; Mon, 8 Aug 2016 11:53:53 +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 11:53:53 +0000 From: Shaveta Leekha To: Linaro UEFI Mailman List , "edk2-devel@lists.01.org" Thread-Topic: SATA AHCI issue Thread-Index: AdHdlQoTkMMxDwLeSvqGPu7iPmB3BgAAz1fgAAJ5bNAE7gJn8AAC2RPg Date: Mon, 8 Aug 2016 11:53:53 +0000 Message-ID: References: <7F1BAD85ADEA444D97065A60D2E97EE538817A7E@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: 0840419e-4fc4-4149-3b38-08d3bf82ab93 x-microsoft-exchange-diagnostics: 1; VI1PR0401MB1999; 6:V7mzX6KgXEGsxKJifkYDitAcyRenIM+E0wJvOFoHCt3d8cYEAWP3t7JvZxtOHpawHHysxnjUAmvq5e1Xi5+afumR62kwCtWRkWjZBNJP24ZqF1CsZMJT7jwng0in33HS0uwMOJku/TM/SxSo7g31o9ub/TMiqIjz4fP7etq7uugDeDYlQcvraxBewt69JRSuKBmxqSBAE9V0IF022OW4FPVGvp0kdpixrXPVuCmWEmalRmlcHiklnDSfvmbaP4em3Qcgub3AuYF1WzMAtjQVFd7xGy7AnZoUR0Lia/ho9SG9zBEfxkzXqMc/Qb76vqgIgaydPwjEwdvcYAaEwxku/Q==; 5:bGEHEx4cEeGW8jD0m1lR+GBkD5XWC1v++b0yvtrunO0dB4qo9PQdjaos14gCTzX62IUGtFbEMs97yVZXwlg9ipCuTmGeemkE3bL14rIHHkIFS5EzODwDeTnwWVzCTfJ70WhmSx2U5tBsgJ+Sm0I9UQ==; 24:yW5h8R6ZJYV36yGdJLb9Ww+Z0qLz5wTJfjIZw+I7JixYDGb7+Ngc69t9oLGYMz57J+FGzXFjgPo4CeNsO6RpgocB4vqMRFM3Fl3f0pCEP2I=; 7:rKTMT43FUJzQsEiWhZIcFktMd2yVH9TM3TwQkg4NcQXp6O+whqTpYtmSnXszeycLkKyBjXrEsofxf0k6m4SGvuXl0dNX8qmlgY/zA24QjNq49JEgTvOCksW78cykxXaZ29dUh+jMqlGHq/XquBxDF3KrMUgBY7AMoGLtHgVHx482U2WrZ7Hpr4tDgx3ISKz8ATmW3nvqQ9GuxNrVVeNqKZkgcT1CL+AnUrztR/NPrZERgPbAuwtvY+NhPGA+uahr x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:VI1PR0401MB1999; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:VI1PR0401MB1999; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB1999; x-forefront-prvs: 00286C0CA6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(189002)(106356001)(2900100001)(5002640100001)(586003)(10400500002)(102836003)(68736007)(107886002)(3280700002)(105586002)(101416001)(3846002)(2906002)(5001770100001)(3660700001)(11100500001)(86362001)(189998001)(66066001)(6116002)(87936001)(77096005)(97736004)(74316002)(8936002)(305945005)(50986999)(92566002)(7736002)(54356999)(7846002)(3480700004)(76576001)(33656002)(122556002)(81156014)(9686002)(229853001)(81166006)(8676002)(76176999)(7696003)(2501003)(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: 08 Aug 2016 11:53:53.2126 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB1999 Subject: 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 11:53:57 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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