ask for help: How to make pcie-dpc detect DPC feature in platform device?
S2VpdGgsCgpTb3JyeSB0byB0cm91YmxlIHlvdS4KCkknbSBtYWtpbmcgdXAgYSBkcml2ZXIg KERQQyBzdXBwb3J0ZWQgaW4gdGhlIGRldmljZSkgZm9yIG91ciBwcml2YXRlIFNvQyBzeXN0 ZW0sIAphbmQgdGhlIGRyaXZlciBpcyByZWdhcmRlZCBhcyBhIHBsYXRmb3JtIGRyaXZlci4K Ckkgd29uZGVyIGhvdyBjYW4gSSBtYWtlIHRoZSBwY2llLWRwYyBkcml2ZXIgZGV0ZWN0IG15 IERQQy1lbmFibGVkIFNPQyBhbmQgdGlnZ2VyCnNvbWUgYWN0aW9uIGluIG15IHBsYXRmb3Jt IGRyaXZlcj8KCkFuZCBvbmUgbW9yZSBxdWVzdGlvbjoKICAgICAgICAgICBIb3cgdG8gc2lt dWxhdGUgRFBDIGV2ZW50IGluIHNpbXVsYXRpb24gZW52LCBlLmcgUUVNVT8KCi0tLS0tLS0t LS0tLS0tLS0tLQpSZWdhcmRzLApXYW5nIFNoZW5nLUh1aQ==
Quoted 4 lines · Wang Sheng-Hui
Keith,
Sorry to trouble you.
Quoted 8 lines
I'm making up a driver (DPC supported in the device) for our private SoC system, and the driver is regarded as a platform driver.
I wonder how can I make the pcie-dpc driver detect my DPC-enabled SOC and tigger some action in my platform driver?
And one more question:
How to simulate DPC event in simulation env, e.g QEMU?
Sorry for the late reply. A lot of mailing list messages have been redirected to my spam folder for some reason.
The pcie-dpc driver, if enabled in your kernel config, automatically binds to any pcie downstream or root port that has the DPC capability. If your DPC capable device is not seen as a root or downstream pcie port, then pcie-dpc won't bind to it.
I don't see why you couldn't emulate the capability in QEMU, but I don't see it implemented in any of the emulated pcie devices, so you'd have to get someone to implement it in one of them.