public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Shaveta Leekha <shaveta.leekha@nxp.com>
To: Linaro UEFI Mailman List <linaro-uefi@lists.linaro.org>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: SATA AHCI issue
Date: Mon, 8 Aug 2016 12:06:45 +0000	[thread overview]
Message-ID: <VI1PR0401MB2000BB60515140F601B6575B8F1B0@VI1PR0401MB2000.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <VI1PR0401MB2000DFB216060F6CDC3570B38F1B0@VI1PR0401MB2000.eurprd04.prod.outlook.com>

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 data 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 Shaveta Leekha
Sent: Monday, August 08, 2016 5:24 PM
To: Linaro UEFI Mailman List <linaro-uefi@lists.linaro.org>; edk2-devel@lists.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 = (UINTN)AhciRegisters->AhciRFis + Port * sizeof (EFI_AHCI_RECEIVED_FIS);
  Offset      = FisBaseAddr + EFI_AHCI_D2H_FIS_OFFSET;
Status = 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 failed 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


  reply	other threads:[~2016-08-08 12:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <VI1PR0401MB2000FB8D871780C1CA6FF7218F320@VI1PR0401MB2000.eurprd04.prod.outlook.com>
     [not found] ` <7F1BAD85ADEA444D97065A60D2E97EE538817A7E@SHSMSX101.ccr.corp.intel.com>
2016-08-08 11:53   ` SATA AHCI issue Shaveta Leekha
2016-08-08 12:06     ` Shaveta Leekha [this message]
2016-08-09  3:00       ` Tian, Feng
2016-08-09  7:36         ` Shaveta Leekha
2016-08-09  8:02           ` Shaveta Leekha
2016-08-09  8:08             ` Tian, Feng
2016-08-09 11:40               ` Shaveta Leekha
2016-08-10  5:19                 ` Tian, Feng
2016-08-10 11:49                   ` Shaveta Leekha
2016-08-11  1:55                     ` Tian, Feng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=VI1PR0401MB2000BB60515140F601B6575B8F1B0@VI1PR0401MB2000.eurprd04.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox