Windows 10: How to find an available interrupt vector that doesn't conflict.

Discus and support How to find an available interrupt vector that doesn't conflict. in Windows 10 Drivers and Hardware to solve the problem; I have a kernel driver that has an ISR for some hardware. I need to find an interrupt vector so that I can program the hardware to use that vector and... Discussion in 'Windows 10 Drivers and Hardware' started by mrolle, Dec 25, 2017.

  1. mrolle Win User

    How to find an available interrupt vector that doesn't conflict.


    I have a kernel driver that has an ISR for some hardware. I need to find an interrupt vector so that I can program the hardware to use that vector and I can tell Windows to call my ISR when the interrupts occur.
    My strategy is as follows: I use IoConnectInterrupt with various combinations of parameters until I get a successful return. The combinations I use are, in order of choices:
    • not shared, shared
    • Latched, Level Sensitive
    • vector from 50h ... FEh
    • DIRQL from 0 to 9.
    The driver gets the first success for not shared, Latched, vector 80h, DIRQL 0.
    I changed the driver to try shared first, then it got shared, Latched, vector 80h, DIRQL 0.

    The result is that after I enable the hardware for vector 80, I do get some interrupts. The ISR keeps an interrupt count which the client program can get from the driver. However, after a short period of operation, the entire system hangs -- nothing new showing on the console window, no mouse, no keyboard (not even ctrl-alt-del).
    Obviously, this particular choice of interrupt parameters is interfering with some other device on the system.

    When I change the driver so that it does not enable interrupts by the hardware, everything works fine. The client program gets no data from the driver, of course, and it keeps on trying forever.

    My question is: What method do you recommend for selecting these parameters for IoConnectInterrupt, or some other method of hooking the ISR to a vector?

    Perhaps using Hal routines?

    My method doesn't seem right, even with shared access, because some other driver might later want exclusive access to the same vector and fail to get it. So there should be a better way of arbitrating vector usage.

    Please help. Right now my project is dead in the water. Thanks.

    :)
     
    mrolle, Dec 25, 2017
    #1

  2. Windows 10 Compatibility icon - available as a download?

    I need a vector version of the Windows 10 Compatibility icon. I can only find low-res gif online. Is this available anywhere on the Microsoft website?
     
    MichelleJM, Dec 25, 2017
    #2
  3. WINDOWS 10 START MENU

    I, too, have noticed erratic behavior with the Start Menu & Task Bar: clicking on program icons will not launch the applications; clicking on the Start icon has no effect; clicking on program tiles on the Task Bar does not take you to, change focus to, nor
    maximize the applications; clicking on any of the status icons is ineffective...

    The only solution I've been able to find that works consistently is the dreaded MS Reboot...

    This isn't too hard, MS, the click anywhere results in an interrupt, which is then handled by the interrupt handler for the mouse-click. It then should parse where the click occurred (relative location within the workspace) & dequeues that application from
    the Ready queue & places it in Execution state. Hopefully we're not losing chunks (or the entire) interrupt vector table...
     
    Rober tDowning, Dec 25, 2017
    #3
  4. mrolle Win User

    How to find an available interrupt vector that doesn't conflict.

    By the way, the last time I tried using this driver was three years ago, and it worked fine. I was on Windows 7 with a different CPU. I now have Windows 10 and an AMD Ryzen.
     
    mrolle, Dec 25, 2017
    #4
  5. LMiller7 Win User
    You would get better results by posting on a programmers forum, which this is not. Maybe Stack Overflow.
     
    LMiller7, Dec 26, 2017
    #5
  6. mrolle Win User
    I'm surprised. I thought this forum was especially for driver developers.
    Isn't there something called "windev" or some such? I couldn't find it on the web, after a little bit of searching. I recall participating in it, so I thought TenForums was the one I was thinking of.
    Anyone know of the forum for Windows Driver programming? Thanks.
     
    mrolle, Dec 26, 2017
    #6
  7. mrolle Win User
    I recall participating on a driver developers forum years ago, and I thought this was the one I was thinking of. However, the one I was thinking of turns out to be OSR Online (OSR Online - The Home Page for Windows Driver Developers).
     
    mrolle, Apr 5, 2018
    #7
Thema:

How to find an available interrupt vector that doesn't conflict.

Loading...
  1. How to find an available interrupt vector that doesn't conflict. - Similar Threads - find available interrupt

  2. How to use Safe Mode to find a conflict with third party software

    in Windows 10 Gaming
    How to use Safe Mode to find a conflict with third party software: I would like to know how to use Safe Mode to find a conflict with third party software that I currently have installed. This software has worked without a problem for the past three years. About 4 months ago I started getting an error message "Unable to execute command"....
  3. How to use Safe Mode to find a conflict with third party software

    in Windows 10 Software and Apps
    How to use Safe Mode to find a conflict with third party software: I would like to know how to use Safe Mode to find a conflict with third party software that I currently have installed. This software has worked without a problem for the past three years. About 4 months ago I started getting an error message "Unable to execute command"....
  4. How to use Safe Mode to find a conflict with third party software

    in Windows 10 BSOD Crashes and Debugging
    How to use Safe Mode to find a conflict with third party software: I would like to know how to use Safe Mode to find a conflict with third party software that I currently have installed. This software has worked without a problem for the past three years. About 4 months ago I started getting an error message "Unable to execute command"....
  5. Black background on png vector thumbnails

    in Windows 10 Gaming
    Black background on png vector thumbnails: Hey all, as I've delved into the world of vectors and image editing, I've been running into the problem of vectorized images/images with transparent backgrounds showing as black in Windows File Explorer thumbnails. This makes it tedious when I'm searching through folders of...
  6. Find out available users

    in Windows 10 Customization
    Find out available users: Hi guys, I found an old box with windows 10 installed on it. The problem is, I can’t remember the users I defined there. How do I find out which users are defined there? thanks!...
  7. Hardwear Conflict System Interrupts keeping one core at 100%

    in Windows 10 BSOD Crashes and Debugging
    Hardwear Conflict System Interrupts keeping one core at 100%: I've had this problem on my Clevo P650RS laptop for around a year now and have found no long term solution. When in hybrid graphics mode the process System Interrupts is keeping one core at 100% that's 12.5% overall utilisation with about 20W of power consumption, this...
  8. Login-conflict: Use PIN-code - but PIN-code is not available...

    in Windows Hello & Lockscreen
    Login-conflict: Use PIN-code - but PIN-code is not available...: I have set up my brand new Lenovo today - scanning fingerprint and making a PIN-code. But now I can not login - the computer rejects my fingerprint, telling me to use my PIN-code. It then tells me that my PIN-code is no longer available due to a change of security setup on...
  9. Would Win10 upgrade solve interrupt conflict in Win7 on R61i?

    in Windows 10 Drivers and Hardware
    Would Win10 upgrade solve interrupt conflict in Win7 on R61i?: Hello, I have a Thinkpad r61i. It had Vista on it when I bought it, but I replaced it with Ubuntu. Then I got the chance to try out Windows 7 on it, but I had what appears to have been an interrupt conflict between the graphics and the USB bus which meant that video would...
  10. System Interrupts - IRQ conflict - 525(?) IRQs!!

    in Windows 10 Performance & Maintenance
    System Interrupts - IRQ conflict - 525(?) IRQs!!: I haven't seen IRQ conflicts commonly since the heady days of Windows 95, when you would do something to your system, boot up and BANG! BSOD! Now I like playing with old systems, and ever since last summer have been trying to get an Acer Travelmate 2423 Intel Celeron M...