public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Problems using Block Io protocol in a CSM (worked in UDK2014.SP1, no longer works on master)
@ 2020-05-09  2:59 Rebecca Cran
  2020-05-11 16:56 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2020-05-09  2:59 UTC (permalink / raw)
  To: edk2-devel-groups-io

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?


-- 
Rebecca Cran



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [edk2-devel] Problems using Block Io protocol in a CSM (worked in UDK2014.SP1, no longer works on master)
  2020-05-09  2:59 Problems using Block Io protocol in a CSM (worked in UDK2014.SP1, no longer works on master) Rebecca Cran
@ 2020-05-11 16:56 ` Laszlo Ersek
  0 siblings, 0 replies; 2+ messages in thread
From: Laszlo Ersek @ 2020-05-11 16:56 UTC (permalink / raw)
  To: devel, rebecca

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-11 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-09  2:59 Problems using Block Io protocol in a CSM (worked in UDK2014.SP1, no longer works on master) Rebecca Cran
2020-05-11 16:56 ` [edk2-devel] " Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox