diff options
author | Li Ming <[email protected]> | 2022-11-16 09:56:37 +0800 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2022-11-16 14:26:46 -0600 |
commit | a4ff8e7a71601321f7bf7b58ede664dc0d774274 (patch) | |
tree | 2cd4205f4d6d9fd8837b54e82f753c9b1dca02f3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
PCI/DOE: Fix maximum data object length miscalculation
Per PCIe r6.0, sec 6.30.1, a data object Length of 0x0 indicates 2^18
DWORDs (256K DW or 1MB) being transferred. Adjust the value of data object
length for this case on both sending side and receiving side.
Don't bother checking whether Length is greater than SZ_1M because all
values of the 18-bit Length field are valid, and it is impossible to
represent anything larger than SZ_1M:
0x00000 256K DW (1M bytes)
0x00001 1 DW (4 bytes)
...
0x3ffff 256K-1 DW (1M - 4 bytes)
[bhelgaas: commit log]
Link: https://lore.kernel.org/r/[email protected]
Fixes: 9d24322e887b ("PCI/DOE: Add DOE mailbox support functions")
Signed-off-by: Li Ming <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Lukas Wunner <[email protected]>
Cc: [email protected] # v6.0+
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions