Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private/bryan/no wdfiotarget retries #52

Conversation

ManOnTheMountainTech
Copy link
Collaborator

@ManOnTheMountainTech ManOnTheMountainTech commented Feb 21, 2024

WdfIoTargetOpen Reliability Experiments & Preferred driver installation.

A thunk to pageable code is needed from IoRegisterPnPNotification in all options as WdfIoTargetOpen is pageable. The callback for RegisterPnPNotification runs at DPC.

Basic overview of code flow

The SelfManagedIoinit handler registers a PnP notification handler.
The PnP notification handler acts upon the arrival of the IntelliMouse's interface No. 5.

This is option No. 3 of 3 options.

Just call WdfIoTargetOpen from a workitem. The timer creates a workitem that then calls WdfIoTargetOpen.
The workitem then calls WdfIoTargetOpen.

Tested on one machine. There have been no failures of WdfIoTargetOpen.

This PR fixes issue #44.

Installcert.bat needs to be run before Install_Taillight.bat.

Copy link
Owner

@forderud forderud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments:

  • This PR contains a mix of unrelated changes that should not be bundled. This makes it difficult to review and risky to merge. Therefore, please split the changes into at least two separate PR's. One PR for the IoRegisterPlugPlayNotification changes and one PR for devcon removal.
  • Please rebase your changes on top of the "main" branch, so that you avoid merge commits in your PR.
  • If you want to introduce tracing or change KdPrint usage, then please submit that in a separate PR. Such changes does not belong in this PR.

@forderud
Copy link
Owner

I've now cleaned up and resubmitted your "devcon removal" commit as #53, so you don't need to think more about that part.

Driver loading with just pnputil worked like a charm after installing the driver certificate, so I've already merged the PR.

@ManOnTheMountainTech ManOnTheMountainTech deleted the private/bryan/no_wdfiotarget_retries branch March 13, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants