public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Shaveta Leekha <shaveta.leekha@nxp.com>
To: "Tian, Feng" <feng.tian@intel.com>,
	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: Tue, 9 Aug 2016 07:36:36 +0000	[thread overview]
Message-ID: <VI1PR0401MB200051AA5CD6C1DDC76453A58F1C0@VI1PR0401MB2000.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <7F1BAD85ADEA444D97065A60D2E97EE5388217A4@SHSMSX101.ccr.corp.intel.com>

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 AtaAtapiPassThru driver consumes "EfiIdeControllerInitProtocol" and produces "EfiAtaPassThruProtocol" 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'
[=======================================>]       0 Kb

-----Original Message-----
From: Tian, Feng [mailto:feng.tian@intel.com] 
Sent: Tuesday, August 09, 2016 8:30 AM
To: Shaveta Leekha <shaveta.leekha@nxp.com>; Linaro UEFI Mailman List <linaro-uefi@lists.linaro.org>; edk2-devel@lists.01.org
Cc: Tian, Feng <feng.tian@intel.com>
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 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  7:36 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
2016-08-09  7:36         ` Shaveta Leekha [this message]
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=VI1PR0401MB200051AA5CD6C1DDC76453A58F1C0@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