Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

PCIe Config access from Driver IOCTL context

GiridharGiridhar Member Posts: 6

Hi ,

I am writing driver for PCIe switch, where i need to configure Switch UP stream for various features.

I am trying to do read/write operation from driver IOCTL context, which is causing system crash. Also I need to access the config space from the DPC /ISR Level. I
is it allowed to access the config space and Extended config space from above context. From documentation I saw, PCIe config space/extended config space is accessable at PASSIVE level.
https://docs.microsoft.com/en-us/windows-hardware/drivers/pci/accessing-pci-device-configuration-space

Let me the system crash is due to this restriction.

If other mechanisms are available please share me.

Giridhar

Comments

  • raj_rraj_r Member - All Emails Posts: 987
    via Email
    omg did you post this on some emergency broadcast mode that sent it to
    each every forum on the whole world wide webs

    please post on a relevant group (possibly ntdev ) and do not cross
    post on ntfsd, windbg ,
  • Peter_Viscarola_(OSR)Peter_Viscarola_(OSR) Administrator Posts: 8,499

    Mr. Giridhar.... As Mr. Raj_R said (thank you) we have a rule here against "cross-posting" in multiple forums. You would know this if you read the forum FAQ before posting.

    But, I'll explain the rule to you: One question gets one post in one forum. Period. Full stop.

    I'll lock this thread for you, and I'll delete your duplicate post earlier in this forum.

    Peter

    Peter Viscarola
    OSR
    @OSRDrivers

This discussion has been closed.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Developing Minifilters 24 May 2021 Live, Online
Writing WDF Drivers 14 June 2021 Live, Online
Internals & Software Drivers 27 September 2021 Live, Online
Kernel Debugging 15 November 2021 Live, Online