Malformed TLP in pcie transaction

I am getting the following error while communicating with a pcie device for which we are developing the driver. It is a read request from the device. Could not figure out the error in TLP.

[ +0.002792] pcieport 0000:00:01.0: AER: Uncorrected (Fatal) error received: id=0020
[ +0.007830] pcieport 0000:00:01.0: PCIe Bus Error: severity=Uncorrected (Fatal), type=Transaction Layer, id=0008(Receiver ID)
[ +0.011387] pcieport 0000:00:01.0: device [10de:10e5] error status/mask=00040000/00000000
[ +0.008415] pcieport 0000:00:01.0: [18] Malformed TLP (First)
[ +0.006851] pcieport 0000:00:01.0: TLP Header: 20000080 010001ff 00000000 80004430

Can you please share the output of ‘sudo lspci -vv’ command? (before you initiate read from the device)
Also, please try with length 0x1 (currently it is 0x80) and update your observations?

Not sure this is the proper solution for your case, but as workaround you may try to add pci=noaer in kernel boot args (link).

This will suppress the prints for sure, but the actual issue will still exist. (It just disables AER-Advanced Error Reporting mechanism)

Hi vidya
We were able to get some progress with the pcie card inserted on a pc motherboard. Will add the lspci prints when we restart work on jetson