You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UMD test code says (edited for brevity) when it passes:
2024-12-09 01:20:09.333 | INFO | SiliconDriver - Opened PCI device 0; KMD version: 1.30.0, IOMMU: enabled
2024-12-09 01:20:09.444 | INFO | SiliconDriver - Allocating sysmem without hugepages (size: 0x40000000).
2024-12-09 01:20:09.655 | INFO | SiliconDriver - Mapped sysmem without hugepages to IOVA 0x40000000.
[ OK ] SiliconDriverBH.SysmemTestWithPcie (882 ms)
[----------] 1 test from SiliconDriverBH (882 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (882 ms total)
[ PASSED ] 1 test.
And this when it fails:
2024-12-09 01:20:16.880 | INFO | SiliconDriver - Opened PCI device 0; KMD version: 1.30.0, IOMMU: enabled
2024-12-09 01:20:16.986 | WARNING | SiliconDriver - Insufficient NumHugepages: 0 should be at least NumMMIODevices: 1 for device_id: 0xb140 revision: 0. NumHostMemChannels would be 0, bumping to 1.
2024-12-09 01:20:16.986 | INFO | SiliconDriver - Allocating sysmem without hugepages (size: 0x40000000).
2024-12-09 01:20:17.208 | INFO | SiliconDriver - Mapped sysmem without hugepages to IOVA 0x3ffffffc0000000.
Base address: 3ffffffc0000000
/home/joel/git/tt-umd/tests/blackhole/test_silicon_driver_bh.cpp:920: Failure
Expected equality of these values:
buffer
Which is: { '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), '\xFF' (255), ... }
std::vector<uint8_t>(sysmem, sysmem + test_size_bytes)
Which is: { '\xEA' (234), '\x1' (1), '\t' (9), '\xBD' (189), '\x1E' (30), '\x2' (2), '{' (123, 0x7B), '\\' (92, 0x5C), '"' (34, 0x22), '\xC9' (201), '\x3' (3), '\xC8' (200), '\x1' (1), '\xFF' (255), '\xB5' (181), '\xDE' (222), '\x7F' (127), '\xE1' (225), '\xA8' (168), '\xFB' (251), 'y' (121, 0x79), '\x17' (23), 'N' (78, 0x4E), '\xCA' (202), '\x11' (17), '\xA7' (167), 'x' (120, 0x78), '\xBD' (189), '#' (35, 0x23), '\x8D' (141), 'a' (97, 0x61), '\xD3' (211), ... }
[ FAILED ] SiliconDriverBH.SysmemTestWithPcie (880 ms)
[----------] 1 test from SiliconDriverBH (880 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (880 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] SiliconDriverBH.SysmemTestWithPcie
1 FAILED TEST
Kernel log gets IO_PAGE_FAULT for the unsuccessful test.
The only difference between the test runs is where the kernel put the IOVA (0x40000000 vs 0x3ffffffc0000000).
The error from IOMMU driver suggests that somewhere the top five bits of the larger address are getting lost.
IOVA: 0x3ffffffc0000000
Address seen by IOMMU: 0x1fffffc0000000
Investigate whether this is a UMD bug or a hardware constraint.
The text was updated successfully, but these errors were encountered:
### Issue
#380
### Description
uint32_t isn't large enough to hold a 58-bit IOVA divided by Blackhole
TLB window size (2 megabytes). Use of uint32_t here incorrectly
truncates the address, leaving the TLB register mis-programmed.
### List of the changes
* change a uint32_t to uint64_t
### Testing
Manual
### API Changes
N/A
UMD test code says (edited for brevity) when it passes:
And this when it fails:
Kernel log gets IO_PAGE_FAULT for the unsuccessful test.
The only difference between the test runs is where the kernel put the IOVA (0x40000000 vs 0x3ffffffc0000000).
The error from IOMMU driver suggests that somewhere the top five bits of the larger address are getting lost.
IOVA: 0x3ffffffc0000000
Address seen by IOMMU: 0x1fffffc0000000
Investigate whether this is a UMD bug or a hardware constraint.
The text was updated successfully, but these errors were encountered: