Closed hanw closed 4 years ago
In that version of the kernel, pcie_get_mps and pcie_set_mps are not exported for use in modules.
Commit 49c4ebd14f4e6785a10af39b43c078f3bfcfc6a4 solves this problem by conditionally compiling the code that tunes the PCIE capabilities only if PCIEPORTAL_TUNE_CAPS is defined.
Connectal advertises a larger payload size in its PCIe configuration registers, so in theory the driver should not have to do this, which is why the symbols were not exported.
However, BIOSes being what they are, sometimes the driver does have to give the system a nudge, which is why I introduced this code. It does enable the FPGA to achieve higher throughput for DMA when supported.
That being said, if you need higher performance from the FPGA and the system's chipset supports larger payload sizes than configured by the BIOS, I would recommend a newer kernel.
When compiling connectal kernel driver on redhat enterprise linux, the following error happens.