PCIe Config access from Driver IOCTL context

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

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 ,

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