Re: Loading second PCI driver on the same PCI device hangs the system.


Laszlo Ersek
 

On 02/01/21 14:38, UdayS via groups.io wrote:
Hi,
I have two pci drivers (1) full driver with all functionality, (2) Driver which subset of (1).
Both drivers are working fine. Load/Unload at run time smoothly works when each of them are done independently.

Issue:
1. Load driver (1) and unload (1) now if I load driver (2), shell hangs.

I have verified loading/unloading of driver, multiple iterations, i.e. it cleanups all protocols installed.
But if I follow the issue procedure above, it hangs. I don't see error during initialization of second driver.

Need advise to debug this issue further.

Thank in advance.
Unloading driver (1) could leave the hardware in such a state that
driver (1) can deal with, when loaded (again), but driver (2) cannot,
when loaded (for the first time after (1)).

Laszlo

Join discuss@edk2.groups.io to automatically receive all group messages.