Commit Graph

8920 Commits

Author SHA1 Message Date
Jonathan Kim 98c6784cc1 kfdtest: remove deprecated debug references
Remove all unused material from KFDDBGTest.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Change-Id: I13ed68656efadef7bbaf8bb737ce5a04829eca9b
2023-07-26 10:29:23 -04:00
Jonathan Kim 8471f80bac libhsakmt: remove old debugger versioning
Current debugger uses KFD version directly.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Change-Id: I212a53560a94dd24c599addce72f59c527c8af25
2023-07-26 09:41:38 -04:00
Ranjith Ramakrishnan 3d625f35e8 SWDEV-366827 - Header file installation path changed as per file reorganization
Change-Id: Idb94bd3c4cb32fa11ee6821b62ccd04d77a830e8
2023-07-25 17:40:42 -07:00
Maisam Arif c78ec46671 SWDEV-394316 - Handle not applicable vbios
Change-Id: I3390078a63c9a5eff67024b84a3be1369c4b1460
Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
2023-07-25 16:33:22 -05:00
Ranjith Ramakrishnan 86f7d52d97 For testing purpose removing the dependency of rocm-core-asan with rocm-core
The change is made temporarily for testing the ASAN jenkins build.
Need to revert this change after testing

Change-Id: Icbfcfec423170114becdc82696afcf54b6d79d48
2023-07-25 15:56:32 -05:00
Icarus Sparry 57b5e98d92 Update rocm module for MANPATH
Allow access to the manuals for llvm

Change-Id: Iea4c83412ff2defb0a2a013aab1a555eb3e24e8c
Signed-off-by: Icarus Sparry <icarus.sparry@amd.com>
2023-07-25 15:56:32 -05:00
Ranjith Ramakrishnan 50dd0fd2fb SWDEV-351540 - Improvements for ASAN changes in rocm-core
License file added to rocm-core asan and normal package
Package  description updated for ASAN package
Added rocm-core-asan dependency to rocm-core, so that removing rocm-core will cleanup all asan  pacakges as well
Added component name to cpack post install variables

Change-Id: Id8b69b4469ff3c66a6bd32503defd6411ce3b6c7
2023-07-25 15:56:32 -05:00
Ranjith Ramakrishnan c0331f38c7 SWDEV-351540 - ASAN packaging for rocm-core
Package only ASAN libraries
Component based install
Suffix "asan" added to package name

Change-Id: Ic758eefef27742df3a4a4301fd3661714de4bb36
2023-07-25 15:56:32 -05:00
nunnikri be7ab0a514 Revert "merge release code into development (#1)" (#3)
This reverts commit 7cd7ed199a.
2023-07-25 13:52:55 -07:00
gobhardw 06d918d2b4 Adding kokkos kernel name trucate test
Change-Id: I01af7dbb399cfe470e548a584faec890924d7039
2023-07-26 00:18:31 +05:30
gobhardw 80ecb2b288 Adding color codes for rocprofv2 options
Change-Id: Ifff57f8ff6dfee00fb91e4147ad867762b956a6a
2023-07-26 00:07:53 +05:30
gobhardw f5e8628978 Add usage for all the options in rocprofv2
Change-Id: Ic95c83b6aa8cd90e0550be989cddb28edb1ee73c
2023-07-25 23:50:48 +05:30
ROCm CI Service Account 7cd7ed199a merge release code into development (#1)
* SWDEV-383541 : Updating the HIP_PATH in env

Change-Id: I8a58fe684ce1a6f076d41faf0365d19f11862623
(cherry picked from commit c9f1935325)

* OSRB review update : Changing the license file to MIT

Change-Id: I4a079df5ac10620f16649234064d54e922d246aa
(cherry picked from commit 3118790ad5)

---------

Co-authored-by: Nirmal Unnikrishnan <Nirmal.Unnikrishnan@amd.com>
2023-07-25 10:45:01 -07:00
Philip Yang a395dd7306 kfdtest: KFDSVMEvictTest support large VRAM or small system memory
For xnack off, skip SVM evict tests if memory allocation size is larger
than 15/16 total system memory, because the test may fail to allocate
CWSR svm range to create queue after allocating test memory.

Limit eviction size from total VRAM size to 1/2 total VRAM size,
because for 192GB VRAM, evict 192GB may takes more than 120 seconds
and cause test timeout failed.

Change-Id: Ib1483b9aab580a8539187b2943cadea0fd5a7c71
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
2023-07-25 11:11:55 -04:00
David Yat Sin 469defa78a Add agent query for nearest CPU agent
Add agent info query to return nearest CPU agent. This can be used to
determine which CPU agent is in the same NUMA region as the GPU agent.

Change-Id: I5400b4347ffbf4d2a836df31c4de443a38b0ecd1
2023-07-24 13:59:13 -04:00
Jonathan Kim 0d14144e3a Silence implicity conversion warnings in exception handling
Silence unnamed enum warning in error code comparison

Change-Id: I008b269c106bbad83a1f7588e7b4ec89ec17d37d
2023-07-24 10:06:55 -04:00
Jonathan Kim 42274cfc59 Fix out of order initializer for memory region
Silence out of order initializer compile warnings during memory region
initialization.

Change-Id: Idbbdd93d3ea8cda289d25a473b3882b920b2e8d8
2023-07-24 09:58:37 -04:00
Lang Yu e877840197 Add support for GC 11.5.0 and 11.5.1
Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Change-Id: I3c4116e78a5c1ddac2389f5fece57485bdb17f68
2023-07-22 16:06:22 +08:00
Shweta Khatri a2d0adf9be Correct evaluating condition to use logical AND
Aqlpacket:IsValid() function: Replaced bitwise AND operator (&) with the logical
AND operator (&&) when evaluating AQL packet type

Change-Id: I59980bc206cc7eff424023fff0bb92b618aa8c70
2023-07-21 15:36:48 -04:00
David Yat Sin 687eb043d4 Add retain handle and get allocation properties
Support function to retain allocation handle for memory mappings.
The get allocation properties function will return the current
allocation properties for existing memory mappings.

This is part of patch series for Virtual Memory API.

Change-Id: I0a53a11b6efc2b5bf9d463512a489a2abd812551
2023-07-21 15:17:01 -04:00
David Yat Sin b03c96c264 Support exporting and importing memory mappings
Support exporting  and importing dmabuf file descriptors for memory
mappings. The exported dmabuf file descriptors are shareable posix
file descriptors that can be used for cross-vendor, cross-device
and cross-process memory sharing.

This is part of patch series for Virtual Memory API.

Change-Id: I3673fc009f7e73bc26be8349e19f66e20d0607c5
2023-07-21 15:17:01 -04:00
David Yat Sin 13fbd8a232 Support Get and Set access for memory mappings
Mapping memory handles to virtual memory addresses do not make them
accessible. The set access function is needed to make the memory
mappings accessible to specific agents. The get access function
returns current access properties for individual agents.

This is part of patch series for Virtual Memory API.

Change-Id: I152ba0557fd2a802eb9d840568b68cdd1911b72c
2023-07-21 15:17:01 -04:00
David Yat Sin 179dcf1c77 Support mapping and unmapping memory handles
Add support for mapping and unmapping memory handles to virtual
address ranges.

This is part of patch series for Virtual Memory API.

Change-Id: If512d49ff4211e68f2064249add607a3200e458a
2023-07-21 15:17:01 -04:00
David Yat Sin e4a84c4a9c Support memory handles
Add support for creating and releasing memory handles. Memory
handles are memory allocations on device memory without a virtual
address.

This is part of patch series for Virtual Memory API.

Change-Id: I5dfb162eb1661621cce171b2870a3c93b24d840e
2023-07-21 15:17:01 -04:00
David Yat Sin 1085311f1a Support Virtual Address reservations
Add support for reserving virtual address ranges. Virtual address
ranges are addresses without any memory backing. These address ranges
need to be mapped to memory handles later.

This is part of patch series for Virtual Memory API.

Change-Id: I5d066e7421d6896f933f524312afc230a13d594e
2023-07-21 15:17:01 -04:00
David Yat Sin a55f11025b Change libdrm initialization
Change initialize libdrm device and file descriptor initialization
to use new APIs from Thunk. Libdrm recommends that we re-use the same
file descriptor thoughout the life of a process instead of re-creating
new one each time.

This is part of patch series for Virtual Memory API.

Change-Id: I1c0b8d1bd660cd25478b5f94c84071b90d93fc6c
2023-07-21 15:17:01 -04:00
David Yat Sin e65edb35fc Add check/query for virtual memory API support
Checks whether version of libdrm library installed on current
system supports the amdgpu_device_get_fd API. This API is
required to support the virtual memory API functions. The
amdgpu_device_get_fd function was introduced in libdrm-2.4.109.
Using a runtime check test instead of static dependency to be
able to support previous APIs on older versions of libdrm.
Add query for virtual memory API support.

This is part of patch series for Virtual Memory API.

Change-Id: Iec831eb24b5d1689c392e50ae86f4d52d4870ac4
2023-07-21 15:17:01 -04:00
David Yat Sin 3ebe1fdff9 Add query for recommended granularity size
Add new query for recommended granularity size. This is the
internal blocksize used. While the existing query for granularity
size returns the minimum size possible, it is recommended that
allocations and mappings are multiple of the recommended granularity
size to minimise internal memory fragmentation.

This is part of patch series for Virtual Memory API.

Change-Id: Ia82c8f073b2a2c47ecd26fbb0aba27b8b7cd965f
2023-07-21 15:17:01 -04:00
Kent Russell 1958224379 run_kfdtest.sh: Clarify parameters taking arguments
For --node and --exclude, these flags take arguments, but usage was
unclear. This led to attempts like --node=1 , which will not work
appropriately. Add examples for flags that take parameters, as well as
the requirements for those parameters. Also change --exclude parsing to
match --node parsing, for consistency

Change-Id: I563ba9b370a24d9a84b9c39093f3cb1a5d723cef
2023-07-21 10:53:31 -04:00
Charis Poag 4613e8dec3 Update logging and README for other project usage
Updates:
    * [rocm-smi] Logging now can update files on
      per-project-basis for install/remove
    * [rocm-smi] README now has latest build
      instructions, including test builds
    * [rocm-smi] Updated README to include
      revision dates

Change-Id: Ifb19a6f32ccf6938f47225db53fef88021909264
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-07-20 19:09:11 -05:00
David Yat Sin 3f97bbda93 Support extended scope fine-grained memory
Add display flag for extended scope fine-grained memory

Change-Id: I73f965e12a7a68afcd71f93a7b6a1af453de0510
2023-07-20 22:30:16 +00:00
Jonathan Kim 2d3a09cbd6 kfdtest: disable gws tests for gfx11
GFX11 will no longer use GWS for cooperative launch so disable the test.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Change-Id: I8611c8158e1654782150ad10f1f65edb578e6435
2023-07-20 11:22:56 -04:00
David Yat Sin a7ffddb265 Adding documentation for SDMA environment var
Adding documentation for modifiers for SDMA copy

Change-Id: I2425672c3ba1f1617d29b8f4b49776775d78a376
2023-07-20 15:15:04 +00:00
Hao Zhou b81fcc2c32 Merge amd-staging into amd-master 20230720
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: Ib2cb8cd0fa41f863e692dd5f92ab78ace776210c
2023-07-20 14:42:57 +08:00
gobhardw 7f8e60b09a SWDEV-411518 Fixing runtime error for v2
Change-Id: Ic0996f5f00639cee3ef45da165ad45dbebe7efe2
2023-07-19 22:11:18 +05:30
Cole Ramos ed31b8a988 Update issue templates 2023-07-19 10:49:01 -05:00
Cole Ramos ef41565a0a Update issue templates 2023-07-19 10:47:12 -05:00
Oliveira, Daniel 573620f586 Add revision to --showhw
Code changes related to the following:
  * Added 'rsmi_dev_revision_get()' related code
  * Test code
  * Functional tests

Change-Id: I8c2097c65384a028c8c8437b717d05d52fe45250
Signed-off-by: Oliveira, Daniel <daniel.oliveira@amd.com>
2023-07-18 16:17:33 -05:00
colramos-amd 6487ba3853 New simple_charts utility
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-18 16:04:31 -05:00
colramos-amd 479eb66d95 Add figure styling to YML configs
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-18 16:03:21 -05:00
gobhardw ee79034d03 Fixing plugin tests from build directory
Change-Id: I853e37d21d43cea4de4dcbb8c4feabd88ae81db5

Removed unnecessary check that was causing plugin tests to fail from build directory.

Change-Id: I853e37d21d43cea4de4dcbb8c4feabd88ae81db5
2023-07-18 14:10:36 -04:00
Ammar ELWazir 041aa70cc6 SWDEV-411283: Adding ROCTx Test
Change-Id: Icf99ef584ff8ff38e16bc731951a1f47b7de90b0
2023-07-18 07:29:17 -04:00
Galantsev, Dmitrii 8fe848d10e Fix sys and id tests
The following read tests were failing:
*.TestIdInfoRead
*.TestSysInfoRead

1. *.TestIdInfoRead failed because rsmi_dev_brand_get did not specify
   dependency on vbios_version.

2. *.TestSysInfoRead failed because the test didn't expect vbios_version to
   be missing. Which is a new behavior in Aqua Vanjaram.

Change-Id: I9ee88a12fcf6cff2032049e2ecdfb2957efb03ab
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-07-17 15:52:23 -04:00
Galantsev, Dmitrii b0fe2fbd07 Add .cache to gitignore
Change-Id: Ida03bf1f50704bea44827d7578cd74c1896d4368
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-07-17 15:52:23 -04:00
Shweta Khatri 82e7979c61 Fixes a bug that led to setting wrong access type for device local memory
The access type for extended scope fine grained memory was being returned as never
allowed by default

Change-Id: I0167ea0e5931053f22f2d2755bf426d43d2bb8e5
2023-07-17 14:52:01 -04:00
JoseSantosAMD d7ba2acec9 Adding config files
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
2023-07-17 13:19:03 -05:00
colramos-amd 2b0ac9b5d8 Enable join_prof() merge util to be called from outside Omniperf
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-17 13:12:56 -05:00
colramos-amd fd55a69805 Filter additional ops in gen_counter_list fucn
Signed-off-by: colramos-amd <colramos@amd.com>
2023-07-17 13:12:22 -05:00
JoseSantosAMD 43d492dce2 Adding config files
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
2023-07-17 13:02:00 -05:00
JoseSantosAMD 3137076a72 Migrate to @grafana/create-plugin
Signed-off-by: JoseSantosAMD <Jose.Santos@amd.com>
2023-07-17 12:46:05 -05:00