public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Tian, Feng" <feng.tian@intel.com>
To: Shaveta Leekha <shaveta.leekha@nxp.com>,
	Linaro UEFI Mailman List <linaro-uefi@lists.linaro.org>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Tian, Feng" <feng.tian@intel.com>
Subject: Re: SATA AHCI issue
Date: Tue, 9 Aug 2016 03:00:20 +0000	[thread overview]
Message-ID: <7F1BAD85ADEA444D97065A60D2E97EE5388217A4@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <VI1PR0401MB2000BB60515140F601B6575B8F1B0@VI1PR0401MB2000.eurprd04.prod.outlook.com>

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 PRD 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 Shaveta Leekha
Sent: Monday, August 8, 2016 8:07 PM
To: Linaro UEFI Mailman List <linaro-uefi@lists.linaro.org>; edk2-devel@lists.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 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
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


  reply	other threads:[~2016-08-09  3:00 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
2016-08-09  3:00       ` Tian, Feng [this message]
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=7F1BAD85ADEA444D97065A60D2E97EE5388217A4@SHSMSX101.ccr.corp.intel.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