1. 23 Sep, 2021 4 commits
  2. 16 Sep, 2021 2 commits
  3. 01 Sep, 2021 1 commit
  4. 26 Aug, 2021 1 commit
    • Sean Keely's avatar
      drm/amdkfd: Account for SH/SE count when setting up cu masks. · 1ec06c2d
      Sean Keely authored
      
      
      On systems with multiple SH per SE compute_static_thread_mgmt_se#
      is split into independent masks, one for each SH, in the upper and
      lower 16 bits.  We need to detect this and apply cu masking to each
      SH.  The cu mask bits are assigned first to each SE, then to
      alternate SHs, then finally to higher CU id.  This ensures that
      the maximum number of SPIs are engaged as early as possible while
      balancing CU assignment to each SH.
      
      v2: Use max SH/SE rather than max SH in cu_per_sh.
      
      v3: Fix comment blocks, ensure se_mask is initially zero filled,
          and correctly assign se.sh.cu positions to unset bits in cu_mask.
      Signed-off-by: default avatarSean Keely <Sean.Keely@amd.com>
      Reviewed-by: Felix Kuehling's avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      1ec06c2d
  5. 24 Aug, 2021 2 commits
  6. 16 Aug, 2021 2 commits
    • zhang yifan's avatar
      drm/amdkfd: fix random KFDSVMRangeTest.SetGetAttributesTest test failure · f924f3a1
      zhang yifan authored
      
      
      KFDSVMRangeTest.SetGetAttributesTest randomly fails in stress test.
      
      Note: Google Test filter = KFDSVMRangeTest.*
      [==========] Running 18 tests from 1 test case.
      [----------] Global test environment set-up.
      [----------] 18 tests from KFDSVMRangeTest
      [ RUN      ] KFDSVMRangeTest.BasicSystemMemTest
      [       OK ] KFDSVMRangeTest.BasicSystemMemTest (30 ms)
      [ RUN      ] KFDSVMRangeTest.SetGetAttributesTest
      [          ] Get default atrributes
      /home/yifan/brahma/libhsakmt/tests/kfdtest/src/KFDSVMRangeTest.cpp:154: Failure
      Value of: expectedDefaultResults[i]
        Actual: 4294967295
      Expected: outputAttributes[i].value
      Which is: 0
      /home/yifan/brahma/libhsakmt/tests/kfdtest/src/KFDSVMRangeTest.cpp:154: Failure
      Value of: expectedDefaultResults[i]
        Actual: 4294967295
      Expected: outputAttributes[i].value
      Which is: 0
      /home/yifan/brahma/libhsakmt/tests/kfdtest/src/KFDSVMRangeTest.cpp:152: Failure
      Value of: expectedDefaultResults[i]
        Actual: 4
      Expected: outputAttributes[i].type
      Which is: 2
      [          ] Setting/Getting atrributes
      [  FAILED  ]
      
      the root cause is that svm work queue has not finished when svm_range_get_attr is called, thus
      some garbage svm interval tree data make svm_range_get_attr get wrong result. Flush work queue before
      iterate svm interval tree.
      Signed-off-by: zhang yifan's avatarYifan Zhang <yifan1.zhang@amd.com>
      Reviewed-by: Felix Kuehling's avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      f924f3a1
    • zhang yifan's avatar
      drm/amdkfd: fix random KFDSVMRangeTest.SetGetAttributesTest test failure · 2bbab7ce
      zhang yifan authored
      
      
      KFDSVMRangeTest.SetGetAttributesTest randomly fails in stress test.
      
      Note: Google Test filter = KFDSVMRangeTest.*
      [==========] Running 18 tests from 1 test case.
      [----------] Global test environment set-up.
      [----------] 18 tests from KFDSVMRangeTest
      [ RUN      ] KFDSVMRangeTest.BasicSystemMemTest
      [       OK ] KFDSVMRangeTest.BasicSystemMemTest (30 ms)
      [ RUN      ] KFDSVMRangeTest.SetGetAttributesTest
      [          ] Get default atrributes
      /home/yifan/brahma/libhsakmt/tests/kfdtest/src/KFDSVMRangeTest.cpp:154: Failure
      Value of: expectedDefaultResults[i]
        Actual: 4294967295
      Expected: outputAttributes[i].value
      Which is: 0
      /home/yifan/brahma/libhsakmt/tests/kfdtest/src/KFDSVMRangeTest.cpp:154: Failure
      Value of: expectedDefaultResults[i]
        Actual: 4294967295
      Expected: outputAttributes[i].value
      Which is: 0
      /home/yifan/brahma/libhsakmt/tests/kfdtest/src/KFDSVMRangeTest.cpp:152: Failure
      Value of: expectedDefaultResults[i]
        Actual: 4
      Expected: outputAttributes[i].type
      Which is: 2
      [          ] Setting/Getting atrributes
      [  FAILED  ]
      
      the root cause is that svm work queue has not finished when svm_range_get_attr is called, thus
      some garbage svm interval tree data make svm_range_get_attr get wrong result. Flush work queue before
      iterate svm interval tree.
      Signed-off-by: zhang yifan's avatarYifan Zhang <yifan1.zhang@amd.com>
      Reviewed-by: Felix Kuehling's avatarFelix Kuehling <Felix.Kuehling@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      2bbab7ce
  7. 11 Aug, 2021 2 commits
  8. 06 Aug, 2021 2 commits
  9. 02 Aug, 2021 4 commits
  10. 28 Jul, 2021 3 commits
  11. 23 Jul, 2021 7 commits
  12. 13 Jul, 2021 7 commits
  13. 08 Jul, 2021 1 commit
  14. 01 Jul, 2021 2 commits