Post

Replies

Boosts

Views

Activity

Reply to getDeviceMemoryWithIndex alternative in PCIDriverKit for DEXT
Still exploring PCIDriverKit for getting this solution. Now after watching Modernize PCI and SCSI drivers with DriverKit I got points on how to proceed. As per the presentation, device memory mapping is done by PCIDriverKit so Memory Space and Configuration Space should be accessible. There is no issue with Configuration Read/Write and MemoryReadxx is also working fine for reading offsets in a specific memory index (say BAR0). But MemoryWriteXX APIs are causing DEXT crash. In kernel driver development we use getDeviceMemoryWithIndex to get Device Memory (BAR0 -> Controller Register) and then we map it using IODeviceMemory->map then we fetch virtual memory using IOMemoryMap->getVirtualAddress. So again my question is how can I achieve functionality similar to KEXT in DEXT??
May ’21
Reply to IOUserClient migration from kext(registerNotificationPort)
Hi akstp31, As you have mentioned you have  IOServiceOpen and IOConnectCallMethod works fine for you?? For me also it's working fine but data received in DEXT is not same as passed by application. Are you getting data used in *inputStruct parameter in DriverExtension?? Also are you getting value passed as *outputStruct in Driver Extension. As discussed in below thread, value of *outputStruct in DEXT received in my code is 0. https://developer.apple.com/forums/thread/657515
Oct ’20
Reply to PCIDevice->Open method failing with kIOReturnNotOpen
Hi, I'm also observing this issue. For me also IOPCIDevice->Open is failing but ConfugurationReadXX/ConfigurationWriteXX is not throwing any error and I can access PCI register to fetch Vendor ID: kIOPCIConfigurationOffsetVendorID and Device ID: kIOPCIConfigurationOffsetDeviceID So I can confirm that My DEXT is matching with my PCI device. In WWDC2020 presentation: https://developer.apple.com/videos/play/wwdc2020/10210/ just IOPCIDevice->Open is required to communicate with device but this itself is failing. I'm stuck here.. Any help would be appreciated.. Thanks
Sep ’20