-----Original Message----- From: Jan Dąbroś [mailto:jsd@semihalf.com] Sent: Friday, May 06, 2016 4:01 PM To: Shaveta Leekha shaveta.leekha@nxp.com Cc: Ard Biesheuvel ard.biesheuvel@linaro.org; Linaro UEFI Mailman List linaro-uefi@lists.linaro.org; Haim Boot hayim@marvell.com; Neta Zur Hershkovits neta@marvell.com Subject: Re: [Linaro-uefi] PciEmulation - problem with AHCI
Yes, I mean memory buffers allocated with ArmDmaLib's AllocateBuffer(). Those buffers' addresses are entered into SATA controller register's. Buffers should be updated (after performing necessary init) with data from hardware, but in my case, it doesn't happen.
[Shaveta] Does it all happen before device probing?
I mean, what if there is no SATA device attached? Then this code would not work, right?
It happens after probing. If no SATA device is attached, we break execution and go to next port's init sequence. Link is detected properly.
[Shaveta] But in my case, there is no device attached.
So for this code to run successfully, there should be a device at SATA interface. Is that correct ??
Because "When PxCMD.FRE is set, it cause PxCMD.FR to be set to ‘1’. Only then HBA receives FISes from the device and copies them into system memory."
In my case, FR is not getting set.
Regards, Shaveta