[edk2-devel] Problems using Block Io protocol in a CSM (worked in UDK2014.SP1, no longer works on master)

Laszlo Ersek lersek at redhat.com
Mon May 11 16:56:07 UTC 2020


On 05/09/20 04:59, Rebecca Cran wrote:
> I'm working to update a CSM (for bhyve) from UDK2014.SP1 to the latest
> master. I've already fixed several problems, but one I'm stuck on now is
> that while the code previously had no problem finding Block Io protocol
> via gBS->LocateHandleBuffer(ByProtocol, &gEfiBlockIoProtocolGuid, ...),
> it's no longer working: from looking through the debug log it appears
> the protocol is being torn down before our Legacy16PrepareToBoot
> function gets called.
> 
> 
> I'm wondering if this was ever supposed to work and we just got lucky,
> or if something has changed in such a way that I just need to update/fix
> the code or add a dependency to make it work again?
> 
> 

Is the protocol installed and then uninstalled, or is it never installed?

It is platform BDS policy what drivers are connected to what devices.
Perhaps the BlockIo protocol instance you're looking for is never
produced in the first place -- that could be explained by a platform BDS
change.

Thanks
Laszlo


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#59149): https://edk2.groups.io/g/devel/message/59149
Mute This Topic: https://groups.io/mt/74089165/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list