<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I was almost happily sending you email with 'tested-by' information, but I checked 3 boards:</div><div>Board 1 (out of tree): SD - OK, MMC - OK</div><div>Board 2: (Armada80x0McBin): SD - OK, MMC - OK</div><div>Board 3: (Armada70x0Db): SD - problems, MMC - OK</div><div><br></div><div>In the latter case I get stall and booting takes around 3 minutes.</div><div>Without "MdeModulePkg/SdMmcHcDxe: Implement revision 3 of SdMmcOverrideProtocol" patch it works as before.</div><div><br></div><div>I enabled debugs, and in theory everything seems fine, the DriverStrength is set to EDKII_SD_MMC_DRIVER_STRENGTH_IGNORE.</div><div><div>SdCardIdentification: Found a SD device at slot [0]</div><div>SdCardSetBusMode: Target bus mode: bus timing = 1, bus width = 4, clock freq[MHz] = 50, driver strength = 255</div></div><div><br></div><div>However right after Csd register dump the booting stalls until printing following and continuing:</div><div>FatOpenDevice: read of part_lba failed Time out<br></div><div><br></div><div>This is absent from the prints I dumped from vanilla kernel. Despite I currently really have no time to additional debug, I checked and with following diff, everything works as before:</div><div><br></div><div><div>--- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdDevice.c</div><div>+++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdDevice.c</div><div>@@ -536,8 +536,8 @@ SdCardSwitch (</div><div>       AccessMode = 0xF;</div><div>   }</div><div> </div><div>-  SdMmcCmdBlk.CommandArgument = (AccessMode & 0xF) | ((CommandSystem & 0xF) << 4) | \</div><div>-                                ((DriverStrength & 0xF) << 8) | ((PowerLimit & 0xF) << 12) | \</div><div>+  SdMmcCmdBlk.CommandArgument = (AccessMode & 0xF) | ((PowerLimit & 0xF) << 4) | \^M</div><div>+                                ((DriverStrength & 0xF) << 8) | ((DriverStrength & 0xF) << 12) | \^M</div><div>                                 ModeValue;</div></div><div><br></div><div>Above is restoring SdMmcCmdBlk.CommandArgument to the state from before the patch in question. Now the question - why the layout of the command changed? CommandSystem was unused before, and PowerLimit changed its position. Is this change really related to the rest of the patch? What is the justification?</div><div><br></div><div>Best regards,</div><div>Marcin</div><div><br></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pt., 28 cze 2019 o 02:57 Wu, Hao A <<a href="mailto:hao.a.wu@intel.com">hao.a.wu@intel.com</a>> napisał(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> -----Original Message-----<br>
> From: Sumit Garg [mailto:<a href="mailto:sumit.garg@linaro.org" target="_blank">sumit.garg@linaro.org</a>]<br>
> Sent: Thursday, June 27, 2019 9:39 PM<br>
> To: Ard Biesheuvel<br>
> Cc: edk2-devel-groups-io; Wu, Hao A; Marcin Wojtas; Albecki, Mateusz<br>
> Subject: Re: [edk2-devel] [PATCH v4 0/2] MdeModulePkg/SdMmcHcDxe:<br>
> Implement revision 3 of SdMmcOverrideProtocol<br>
> <br>
> On Thu, 27 Jun 2019 at 13:40, Ard Biesheuvel <<a href="mailto:ard.biesheuvel@linaro.org" target="_blank">ard.biesheuvel@linaro.org</a>><br>
> wrote:<br>
> ><br>
> > (+ Sumit)<br>
> ><br>
> > On Thu, 27 Jun 2019 at 08:29, Wu, Hao A <<a href="mailto:hao.a.wu@intel.com" target="_blank">hao.a.wu@intel.com</a>> wrote:<br>
> > ><br>
> > > > -----Original Message-----<br>
> > > > From: Marcin Wojtas [mailto:<a href="mailto:mw@semihalf.com" target="_blank">mw@semihalf.com</a>]<br>
> > > > Sent: Thursday, June 27, 2019 2:25 PM<br>
> > > > To: Albecki, Mateusz<br>
> > > > Cc: edk2-devel-groups-io; Wu, Hao A<br>
> > > > Subject: Re: [edk2-devel] [PATCH v4 0/2]<br>
> MdeModulePkg/SdMmcHcDxe:<br>
> > > > Implement revision 3 of SdMmcOverrideProtocol<br>
> > > ><br>
> > > > Hi Mateusz,<br>
> > > ><br>
> > > > Can you please push those patches somewhere (github?) so that I can<br>
> > > > easily do a quick check for regression?<br>
> > > ><br>
> > > > Thanks,<br>
> > > > Marcin<br>
> > ><br>
> > ><br>
> > > Hello Marcin,<br>
> > ><br>
> > > I have just pushed the series at:<br>
> > > <a href="https://github.com/hwu25/edk2/tree/sdmmc_override_extend_v4" rel="noreferrer" target="_blank">https://github.com/hwu25/edk2/tree/sdmmc_override_extend_v4</a><br>
> > ><br>
> > > Please help to check.<br>
> > ><br>
> ><br>
> > I have cc'ed my colleague Sumit, who has kindly agreed to regression<br>
> > test this branch on Socionext SynQuacer, which also uses the SD/MMC<br>
> > override infrastructure.<br>
> ><br>
> > Sumit, please reply here with your results. And thanks again!<br>
> <br>
> I did picked this patch-set and applied on top of edk2 master branch.<br>
> It works well on SynQuacer with eMMC device enumerated properly and<br>
> all three eMMC partitions are visible:<br>
> <br>
>      BLK4: Alias(s):<br>
>           VenHw(0D51905B-B77E-452A-A2C0-<br>
> ECA0CC8D514A,000030520000000000)/eMMC(0x<br>
> 0)/Ctrl(0x0)<br>
>      BLK5: Alias(s):<br>
>           VenHw(0D51905B-B77E-452A-A2C0-<br>
> ECA0CC8D514A,000030520000000000)/eMMC(0x<br>
> 0)/Ctrl(0x1)<br>
>      BLK6: Alias(s):<br>
>           VenHw(0D51905B-B77E-452A-A2C0-<br>
> ECA0CC8D514A,000030520000000000)/eMMC(0x<br>
> 0)/Ctrl(0x2)<br>
> <br>
> Shell> devices<br>
> <snip><br>
>   E9 D - -  1  1   0 VenHw(0D51905B-B77E-452A-A2C0-<br>
> ECA0CC8D514A,0000305200000000<br>
> 00)/eMMC(0x0)/Ctrl(0x0)<br>
>   EA D - -  1  1   0 VenHw(0D51905B-B77E-452A-A2C0-<br>
> ECA0CC8D514A,0000305200000000<br>
> 00)/eMMC(0x0)/Ctrl(0x1)<br>
>   EB D - -  1  1   0 VenHw(0D51905B-B77E-452A-A2C0-<br>
> ECA0CC8D514A,0000305200000000<br>
> 00)/eMMC(0x0)/Ctrl(0x2)<br>
> <br>
> So you can add following:<br>
> <br>
> Regression-tested-by: Sumit Garg <<a href="mailto:sumit.garg@linaro.org" target="_blank">sumit.garg@linaro.org</a>><br>
<br>
<br>
Thanks a lot for the testing.<br>
<br>
Best Regards,<br>
Hao Wu<br>
<br>
<br>
> <br>
> -Sumit<br>
<br>
<br>
<br>
</blockquote></div>

<div width="1" style="color:white;clear:both">_._,_._,_</div>
<hr>
Groups.io Links:<p>

You receive all messages sent to this group.


<p>

<a target="_blank" href="https://edk2.groups.io/g/devel/message/42974">View/Reply Online (#42974)</a> |


  


|


  
    <a target="_blank" href="https://groups.io/mt/32214570/1813853">Mute This Topic</a>
  

| <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>



<br>

<a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> |
<a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |

<a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>

 [edk2-devel-archive@redhat.com]<br>
<div width="1" style="color:white;clear:both">_._,_._,_</div>