Commit Graph

64521 Commits

Author SHA1 Message Date
Apurv Mishra b552e9d15d rocr: initialized missing fields in ext_table
Added initializations for 'ext_table' in 'hsa_system_get_major_extension_table()'

Change-Id: I5e46592192b7d7a294d30011481f16e93db11794
Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>
Reviewed-by: David Yat Sin <david.yatsin@amd.com>


[ROCm/ROCR-Runtime commit: d91a14ae0c]
2024-11-26 10:45:29 -05:00
Shweta Khatri 2cf3813f9f rocrtst: Disable FreeQueueRingBufferTest temporarily
This test is disabled until kernel patches are added to handle invalid
user actions gracefully. These patches validate and block operations
like freeing active queue buffers, which can corrupt the driver's state
if unhandled.

Currently, such operations result in driver state corruption, leading
to segmentation faults and subsequent failures during runtime.

Change-Id: If4c321a14df950a639141fc96048889659c14477
2024-11-26 09:18:47 -05:00
Shweta Khatri 7019761f4f rocrtst: Disable FreeQueueRingBufferTest temporarily
This test is disabled until kernel patches are added to handle invalid
user actions gracefully. These patches validate and block operations
like freeing active queue buffers, which can corrupt the driver's state
if unhandled.

Currently, such operations result in driver state corruption, leading
to segmentation faults and subsequent failures during runtime.

Change-Id: If4c321a14df950a639141fc96048889659c14477


[ROCm/ROCR-Runtime commit: 2cf3813f9f]
2024-11-26 09:18:47 -05:00
Anusha GodavarthySurya 04cc0ceeb1 SWDEV-491643 - AQL packets are captured for kernels disable sdma profiling
hsa_amd_profiling_async_copy_enable is taking 45us for the first call. Disable sdma profiling for enqueuing captured kernel packets and for accumulate command.
Change-Id: I80b51a58c46bccc9c1025e9331515f57c97b5a2a


[ROCm/clr commit: 9820480cbd]
2024-11-26 08:37:31 -05:00
Anusha GodavarthySurya 9820480cbd SWDEV-491643 - AQL packets are captured for kernels disable sdma profiling
hsa_amd_profiling_async_copy_enable is taking 45us for the first call. Disable sdma profiling for enqueuing captured kernel packets and for accumulate command.
Change-Id: I80b51a58c46bccc9c1025e9331515f57c97b5a2a
2024-11-26 08:37:31 -05:00
kjayapra-amd 240a27724b SWDEV-496106 - Use lock_ops to avoid race condition in safe_stream.
Change-Id: I5e98c34a41434e2f7d2e6406ea30ddcf01b1091c


[ROCm/clr commit: 39b64b57d9]
2024-11-26 06:56:56 -05:00
kjayapra-amd 39b64b57d9 SWDEV-496106 - Use lock_ops to avoid race condition in safe_stream.
Change-Id: I5e98c34a41434e2f7d2e6406ea30ddcf01b1091c
2024-11-26 06:56:56 -05:00
Satyanvesh Dittakavi 19ab862ea3 SWDEV-489384 - SWDEV-489388 - Fix memory leaks in hipStreamGetDevice catch tests
Change-Id: I7e96edbdbb8cde8b81c471bd0572f95df40d3530


[ROCm/hip-tests commit: 01bfe61293]
2024-11-26 01:56:28 -05:00
Satyanvesh Dittakavi 01bfe61293 SWDEV-489384 - SWDEV-489388 - Fix memory leaks in hipStreamGetDevice catch tests
Change-Id: I7e96edbdbb8cde8b81c471bd0572f95df40d3530
2024-11-26 01:56:28 -05:00
Satyanvesh Dittakavi 30d579a81b SWDEV-487649 - SWDEV-487639 - SWDEV-487636 - Fix memory leaks in catch tests
Change-Id: I7943ecffec6d470789aabde07e6c52d6b871cc13


[ROCm/hip-tests commit: 9cf127697e]
2024-11-26 01:55:39 -05:00
Satyanvesh Dittakavi 9cf127697e SWDEV-487649 - SWDEV-487639 - SWDEV-487636 - Fix memory leaks in catch tests
Change-Id: I7943ecffec6d470789aabde07e6c52d6b871cc13
2024-11-26 01:55:39 -05:00
Galantsev, Dmitrii 94005119d6 CI - Add initial config
Change-Id: I02a08e3f761b7997d8835566b81654431423405d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2024-11-25 21:43:33 -06:00
Galantsev, Dmitrii 7778c34142 CI - Add initial config
Change-Id: I02a08e3f761b7997d8835566b81654431423405d
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: 94005119d6]
2024-11-25 21:43:33 -06:00
Ajay ffc418c7fd SWDEV-1 - avoid same stream target name for tests
Having same target name causes same includes to be called twice

Change-Id: I53469a07e6dee375ea4a4700ccac3c9487b79e4a


[ROCm/hip-tests commit: c03ad253fd]
2024-11-25 17:50:24 -05:00
Ajay c03ad253fd SWDEV-1 - avoid same stream target name for tests
Having same target name causes same includes to be called twice

Change-Id: I53469a07e6dee375ea4a4700ccac3c9487b79e4a
2024-11-25 17:50:24 -05:00
German Andryeyev 816af44b05 rocr: Add logic to track the age of events
Some KFD versions can return from hsaKmtWaitOnMultipleEvents_Ext without
any wait and require the second call without age array init.

Change-Id: I8358c33080084d47c273c2a2827085d0570c8201
2024-11-25 14:55:22 -05:00
German Andryeyev 18c28ebdaf rocr: Add logic to track the age of events
Some KFD versions can return from hsaKmtWaitOnMultipleEvents_Ext without
any wait and require the second call without age array init.

Change-Id: I8358c33080084d47c273c2a2827085d0570c8201


[ROCm/ROCR-Runtime commit: 816af44b05]
2024-11-25 14:55:22 -05:00
Apurv Mishra 6f6ee9679c rocr: uninitialized pointer read in InitScratchPool
Initialized 'scratch_base' as a nullptr to avoid
uninitialized read in hsaKmtAllocMemory()

Change-Id: I3b0e67f3fd3b591e1d21d691f0777b1d1a059b73
Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>
2024-11-25 14:02:37 -05:00
Apurv Mishra 76812e7110 rocr: uninitialized pointer read in InitScratchPool
Initialized 'scratch_base' as a nullptr to avoid
uninitialized read in hsaKmtAllocMemory()

Change-Id: I3b0e67f3fd3b591e1d21d691f0777b1d1a059b73
Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>


[ROCm/ROCR-Runtime commit: 6f6ee9679c]
2024-11-25 14:02:37 -05:00
Ajay 0e1bbfe1a5 SWDEV-1 - disable failing nvidia tests
Unit_hipDeviceSetLimit_Negative_PrintfFifoSize
Unit_hipDeviceSetLimit_Negative_MallocHeapSize

Change-Id: I526a7deaead4ff89f93f90bca66e9cee13e3d66c


[ROCm/hip-tests commit: 61517c976f]
2024-11-25 08:48:18 -08:00
Ajay 61517c976f SWDEV-1 - disable failing nvidia tests
Unit_hipDeviceSetLimit_Negative_PrintfFifoSize
Unit_hipDeviceSetLimit_Negative_MallocHeapSize

Change-Id: I526a7deaead4ff89f93f90bca66e9cee13e3d66c
2024-11-25 08:48:18 -08:00
dependabot[bot] 9028e84067 Bump rocm-docs-core[api_reference] from 1.8.5 to 1.9.0 in /docs/sphinx
Bumps [rocm-docs-core[api_reference]](https://github.com/ROCm/rocm-docs-core) from 1.8.5 to 1.9.0.
- [Release notes](https://github.com/ROCm/rocm-docs-core/releases)
- [Changelog](https://github.com/ROCm/rocm-docs-core/blob/v1.9.0/CHANGELOG.md)
- [Commits](https://github.com/ROCm/rocm-docs-core/compare/v1.8.5...v1.9.0)

---
updated-dependencies:
- dependency-name: rocm-docs-core[api_reference]
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

[ROCm/rocprofiler-systems commit: 743c0fcc09]
2024-11-25 11:04:01 -05:00
dependabot[bot] 743c0fcc09 Bump rocm-docs-core[api_reference] from 1.8.5 to 1.9.0 in /docs/sphinx
Bumps [rocm-docs-core[api_reference]](https://github.com/ROCm/rocm-docs-core) from 1.8.5 to 1.9.0.
- [Release notes](https://github.com/ROCm/rocm-docs-core/releases)
- [Changelog](https://github.com/ROCm/rocm-docs-core/blob/v1.9.0/CHANGELOG.md)
- [Commits](https://github.com/ROCm/rocm-docs-core/compare/v1.8.5...v1.9.0)

---
updated-dependencies:
- dependency-name: rocm-docs-core[api_reference]
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 11:04:01 -05:00
Charis Poag 72fd1821b0 Merge amd-staging into amd-master 20241125
Change-Id: I801dcda853066d8d2e19a8727b2b07dcafc253b4
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/rocm_smi_lib commit: 562575c73d]
2024-11-25 08:39:32 -06:00
Charis Poag 562575c73d Merge amd-staging into amd-master 20241125
Change-Id: I801dcda853066d8d2e19a8727b2b07dcafc253b4
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2024-11-25 08:39:32 -06:00
Anusha GodavarthySurya aa4f1b31df SWDEV-491643 - DEBUG_HIP_FORCE_GRAPH_QUEUES is 1 enable capture path
Change-Id: Ibddd50592232b090bf5eab8395fe78a36bb3a14a


[ROCm/clr commit: 25a893658a]
2024-11-25 05:21:10 -05:00
Anusha GodavarthySurya 25a893658a SWDEV-491643 - DEBUG_HIP_FORCE_GRAPH_QUEUES is 1 enable capture path
Change-Id: Ibddd50592232b090bf5eab8395fe78a36bb3a14a
2024-11-25 05:21:10 -05:00
amd-jmacaran 001bc2dea7 SWDEV-458516 - External CI: Support commits on both staging and mainline
Change-Id: Ie256402db9c5f306eb1feb05a088fa9a5eab9e5f


[ROCm/hipother commit: bceb8acbc4]
2024-11-25 00:19:15 -05:00
amd-jmacaran bceb8acbc4 SWDEV-458516 - External CI: Support commits on both staging and mainline
Change-Id: Ie256402db9c5f306eb1feb05a088fa9a5eab9e5f
2024-11-25 00:19:15 -05:00
amd-jmacaran 7ffcc70cf6 SWDEV-458516 - External CI: Update ROCR-Runtime branches
Change-Id: Iab6bffc3719d7dfadb87b291916b64210a1324c1


[ROCm/hip commit: d2d7c685d6]
2024-11-25 00:17:45 -05:00
amd-jmacaran d2d7c685d6 SWDEV-458516 - External CI: Update ROCR-Runtime branches
Change-Id: Iab6bffc3719d7dfadb87b291916b64210a1324c1
2024-11-25 00:17:45 -05:00
Jaydeep Patel 177ef6b6f8 SWDEV-498816 - Detached thread might exit and pthread_t is invalid access to check if it is valid or not.
Hence, It is not required to check it if thread is already finished processing packets.

Change-Id: If1b43a169a06203f3e1ab0529cf592879496d7c4


[ROCm/clr commit: 3f3f3d0f1c]
2024-11-24 01:38:47 -05:00
Jaydeep Patel 3f3f3d0f1c SWDEV-498816 - Detached thread might exit and pthread_t is invalid access to check if it is valid or not.
Hence, It is not required to check it if thread is already finished processing packets.

Change-Id: If1b43a169a06203f3e1ab0529cf592879496d7c4
2024-11-24 01:38:47 -05:00
Mallya, Ameya Keshava c067bc6b9e Update force-sync.yml
Fixed destination for mirror

[ROCm/rocprofiler-sdk commit: 92929baa44]
2024-11-23 00:33:04 -06:00
Mallya, Ameya Keshava 92929baa44 Update force-sync.yml
Fixed destination for mirror
2024-11-23 00:33:04 -06:00
Mallya, Ameya Keshava 91600ceb8f Create force-sync.yml
[ROCm/rocprofiler-sdk commit: f6ca6742a4]
2024-11-23 00:33:04 -06:00
Mallya, Ameya Keshava f6ca6742a4 Create force-sync.yml 2024-11-23 00:33:04 -06:00
Choudhary, Rahul 0c45ed69f8 Create PSDB.yml enabling psdb for github emu staging branch (#2)
# Create PSDB.yml enabling psdb for github emu staging branch

## What type of PR is this? (check all applicable)

- [ ] Refactor
- [x] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Documentation Update

## Technical details

Moving internal repo from github to github EMU 

## Added/updated tests?

_We encourage you to keep the code coverage percentage at 80% and
above._

- [ ] Yes
- [x] No, Does not apply to this PR.

## Updated CHANGELOG?

_Needed for Release updates for a ROCm release._

- [ ] Yes
- [x] No, Does not apply to this PR.

## Added/Updated documentation?

- [ ] Yes
- [x] No, Does not apply to this PR.

---------

Co-authored-by: Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com>

[ROCm/rocprofiler-sdk commit: 53bb4466a4]
2024-11-23 00:33:04 -06:00
Choudhary, Rahul 53bb4466a4 Create PSDB.yml enabling psdb for github emu staging branch (#2)
# Create PSDB.yml enabling psdb for github emu staging branch

## What type of PR is this? (check all applicable)

- [ ] Refactor
- [x] Feature
- [ ] Bug Fix
- [ ] Optimization
- [ ] Documentation Update

## Technical details

Moving internal repo from github to github EMU 

## Added/updated tests?

_We encourage you to keep the code coverage percentage at 80% and
above._

- [ ] Yes
- [x] No, Does not apply to this PR.

## Updated CHANGELOG?

_Needed for Release updates for a ROCm release._

- [ ] Yes
- [x] No, Does not apply to this PR.

## Added/Updated documentation?

- [ ] Yes
- [x] No, Does not apply to this PR.

---------

Co-authored-by: Mallya, Ameya Keshava <AmeyaKeshava.Mallya@amd.com>
2024-11-23 00:33:04 -06:00
Elwazir, Ammar 7608eb49d6 Updating CI
Update continuous_integration.yml

Update continuous_integration.yml

Adding EMU Runners

Update continuous_integration.yml

Update continuous_integration.yml

Bump thollander/actions-comment-pull-request from 2.5.0 to 3.0.1

Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 2.5.0 to 3.0.1.
- [Release notes](https://github.com/thollander/actions-comment-pull-request/releases)
- [Commits](https://github.com/thollander/actions-comment-pull-request/compare/v2.5.0...v3.0.1)

---
updated-dependencies:
- dependency-name: thollander/actions-comment-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Update continuous_integration.yml

Update continuous_integration.yml

Update run-ci.py

Update upload-image-to-github.py

Update continuous_integration.yml

Update continuous_integration.yml

Update continuous_integration.yml

Update continuous_integration.yml

Update continuous_integration.yml

using github output

Update continuous_integration.yml

Revert temp change

Update continuous_integration.yml

Update continuous_integration.yml


[ROCm/rocprofiler-sdk commit: d564f759a5]
2024-11-23 00:33:04 -06:00
Elwazir, Ammar d564f759a5 Updating CI
Update continuous_integration.yml

Update continuous_integration.yml

Adding EMU Runners

Update continuous_integration.yml

Update continuous_integration.yml

Bump thollander/actions-comment-pull-request from 2.5.0 to 3.0.1

Bumps [thollander/actions-comment-pull-request](https://github.com/thollander/actions-comment-pull-request) from 2.5.0 to 3.0.1.
- [Release notes](https://github.com/thollander/actions-comment-pull-request/releases)
- [Commits](https://github.com/thollander/actions-comment-pull-request/compare/v2.5.0...v3.0.1)

---
updated-dependencies:
- dependency-name: thollander/actions-comment-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Update continuous_integration.yml

Update continuous_integration.yml

Update run-ci.py

Update upload-image-to-github.py

Update continuous_integration.yml

Update continuous_integration.yml

Update continuous_integration.yml

Update continuous_integration.yml

Update continuous_integration.yml

using github output

Update continuous_integration.yml

Revert temp change

Update continuous_integration.yml

Update continuous_integration.yml
2024-11-23 00:33:04 -06:00
Charis Poag 06fead7e41 [SWDEV-499029] Fix unable to change memory partition modes
Changes:
  * [API] Removed checking board name, fixes for other MI ASICs
  * [CLI] Increased progress bar to change memory partition modes
    to 140 seconds, since driver reload is variable per system

Change-Id: Ifcaf40d28b4adf5eaa800c9e3748d33749dc414a
Signed-off-by: Charis Poag <Charis.Poag@amd.com>


[ROCm/rocm_smi_lib commit: d04cec7f1d]
2024-11-22 20:19:29 -05:00
Charis Poag d04cec7f1d [SWDEV-499029] Fix unable to change memory partition modes
Changes:
  * [API] Removed checking board name, fixes for other MI ASICs
  * [CLI] Increased progress bar to change memory partition modes
    to 140 seconds, since driver reload is variable per system

Change-Id: Ifcaf40d28b4adf5eaa800c9e3748d33749dc414a
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2024-11-22 20:19:29 -05:00
Apurv Mishra 610f8a1e0f rocr: Uninitialized scalar variables and pointer
Added check and initialized parameters for PtrInfo().

v1: Checking if PtrInfo() returns success.
v2: Initialization for variables being passed to PtrInfo().

Change-Id: If3ec4608c8e58be259b4fd51ad681b9bc34ddff6
Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>
Reviewed-by: David Yat Sin <david.yatsin@amd.com>
2024-11-22 16:23:29 -05:00
Apurv Mishra 6ff8fb022a rocr: Uninitialized scalar variables and pointer
Added check and initialized parameters for PtrInfo().

v1: Checking if PtrInfo() returns success.
v2: Initialization for variables being passed to PtrInfo().

Change-Id: If3ec4608c8e58be259b4fd51ad681b9bc34ddff6
Signed-off-by: Apurv Mishra <apurv.mishra@amd.com>
Reviewed-by: David Yat Sin <david.yatsin@amd.com>


[ROCm/ROCR-Runtime commit: 610f8a1e0f]
2024-11-22 16:23:29 -05:00
Giovanni Baraldi 3f437a9c41 Fix for cache invalidation in stitch.py
Change-Id: I81fa7bd7006feb20fead5eca2003886f58e3ca53
2024-11-22 13:24:57 -06:00
Giovanni Baraldi 9ccbdb8630 Fix for cache invalidation in stitch.py
Change-Id: I81fa7bd7006feb20fead5eca2003886f58e3ca53


[ROCm/rocprofiler commit: 3f437a9c41]
2024-11-22 13:24:57 -06:00
Ioannis Assiouras 569a4cac67 SWDEV-500124 - Removed Unit_hipHostAlloc_AllocateUseMoreThanAvailGPUMemory
Change-Id: I549ec451df2211378f421f35abc822d02cb0af24


[ROCm/hip-tests commit: ab395147d2]
2024-11-22 13:20:50 -05:00
Ioannis Assiouras ab395147d2 SWDEV-500124 - Removed Unit_hipHostAlloc_AllocateUseMoreThanAvailGPUMemory
Change-Id: I549ec451df2211378f421f35abc822d02cb0af24
2024-11-22 13:20:50 -05:00
Ioannis Assiouras aff8088c47 SWDEV-492356 - Install artifacts needed by UUID tests at the top level directory
Change-Id: I960efecfdfc7a0c39a8beec6a334e6aa08095f9c


[ROCm/hip-tests commit: b06dda1f09]
2024-11-22 11:02:23 +00:00