742f718722
Vram size is relatively smaller in APU, e.g. 512MB. Current MMBench doesn't support small vram system. Running MMBench may have below errors: [ RUN ] KFDMemoryTest.MMBench [ ] Found VRAM of 512MB. [ ] Test (avg. ns) alloc mapOne umapOne mapAll umapAll free [ ] -------------------------------------------------------------------------- [ ] 4K-SysMem-noSDMA 4569 20098 1292 18835 926 2218 [ ] 64K-SysMem-noSDMA 12738 20469 1030 19201 1293 4560 [ ] 2M-SysMem-noSDMA 256384 21020 1022 20568 1196 36294 [ ] 32M-SysMem-noSDMA 4031812 83750 5406 61156 4312 535656 [ ] 1G-SysMem-noSDMA 129260000 427000 34000 390000 30000 18548000 [ ] -------------------------------------------------------------------------- [ ] 4K-VRAM-noSDMA 3594 19637 979 19624 1357 2829 [ ] 64K-VRAM-noSDMA 3540 21062 1407 19614 1654 3024 /home/foreman/build/hsakmt-roct-amdgpu-1.0.9/sources/libhsakmt/tests/kfdtest/src/KFDMemoryTest.cpp:1119: Failure Value of: (hsaKmtAllocMemory(allocNode, bufSize, memFlags, &bufs[i])) Actual: 6 Expected: HSAKMT_STATUS_SUCCESS Which is: 0 [ FAILED ] KFDMemoryTest.MMBench (723 ms) Fix this issue by changing buffer number calculation in MMBench. Change-Id: I5cce95707a048248f1e825c807586818619eddaf Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>