提交图

8920 次代码提交

作者 SHA1 备注 提交日期
gobhardw 1e8b92e2b1 SWDEV-397576: Fixing typo for spm test in navi
Change-Id: If74a43b6283d158e9d0b9bdb59db828ae9f38cb5
2023-05-29 12:51:40 +05:30
Xiaogang Chen f6183f937e libhsakmt: allow gpu nodeid arrary is null and number of gpu is zero.
Allow hsaKmtRegisterGraphicsHandleToNodes parameters NodeArray be null
and NumberOfNodes be zero at same time. It is the case we want the imported
buffer not be registered by kfd. Set gpu_id_array = NULL explicitly to avoid
free uninitialized gpuid array.

Report: Yat Sin, David<David.YatSin@amd.com>
Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: I3babc1160c9573e38dd11d81965c8de2b70cae2e
2023-05-29 00:15:14 -04:00
Xiaogang Chen 7e4e57ae5f libhsakmt: have hsaKmtMapMemoryToGPU return same value as fmm_map_to_gpu.
Have hsaKmtMapMemoryToGPU return same value as fmm_map_to_gpu to keep consistency.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Ifabb72301e1d5a6c1310973bb1321714e12a1fa6
2023-05-29 00:15:14 -04:00
Xiaogang Chen ac1db60fc2 libhsakmt: query/use render node fds that libdrm uses.
Query render node fds that libdrm uses for current process and
use them at Thunk if available.

v2: avoid naming conflict with amdgpu_device_get_fd from amdgpu.h

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Id7288c03730f4a4c9c3644e37ca4725fec71a471
2023-05-29 00:15:14 -04:00
Xiaogang Chen 9bebb276be libhsakmt: add NodeId at HsaGraphicsResourceInfo.
Return GPU NodeId that exported the DMA buffer from amdgpu graphic driver
at fmm_register_graphics_handle.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Iaeccce6e6d0b7e27f10b15ed89d1b5310d03d44b
2023-05-29 00:15:14 -04:00
Xiaogang Chen 989c6c617c libhsakmt: add DMABuf import without address allocation.
When gpu map info is not provided import DMABuf without VA assigned.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: I996ab4eb46977af5064126529c28a8bf20a67292
2023-05-29 00:15:14 -04:00
Xiaogang Chen d2a37894bb libhsakmt: support allocating a fixed address at mmap_aperture.
When HsaMemFlags.ui32.FixedAddress=1 allocate fixed address at mmap_aperture.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: I1f3b532ec3c1a4fb0962126a0bd56441abaf6a9c
2023-05-29 00:15:14 -04:00
Xiaogang Chen 11ac57d293 libhsakmt: update HsaPointerInfo for address-only allocated VRAM.
Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Ib88b34dff772997d2b2e5f3c7e333cef3092ef56
2023-05-29 00:15:14 -04:00
Xiaogang Chen 108c0e5f92 kfdtest: add kfdtest cases for VA-only, VRAM-only allocated VRAM.
Alloc vram by kfd, then map by GEM api to GPU VM and map to CPU VM.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: Ib5b2f35662cd5473f622f6ffc9b62925fe57ae42
2023-05-29 00:15:14 -04:00
Xiaogang Chen 0138487aa4 libhsakmt: support vram-only and VA-only alloc/free.
Signed-off-by: Xiaogang.Chen <Xiaogang.Chen@amd.com>
Change-Id: I47cf53642d2ea197c08b20e84d7cae04b2d431e0
2023-05-29 00:15:14 -04:00
Xiaogang Chen 0a2989083b libhsakmt: add/init a new manageable_aperture_t from NON_CANONICAL space.
This new manageable_aperture_t is used for VRAM allocation-only and
VA allocation-only.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: I3866ef9d35386d6aef7b6934ac8d4a89ef843b50
2023-05-29 00:15:14 -04:00
Xiaogang Chen cc4fb2d1a9 libhsakmt: Revert "libhsakmt: Update FD creation logic"
This reverts commit fd48f14ceb.
Current amdgpu exposes one render node for one gpu node/partition,
revert to previous way to open render node at Thunk.

Signed-off-by: Xiaogang Chen<Xiaogang.Chen@amd.com>
Change-Id: I436be74f8e872a7ab5c4a1420b4ea884f5a00e57
2023-05-29 00:15:14 -04:00
David Yat Sin b290d65ec9 Bump interface versions due to hsa_amd_memory_async_copy_on_engine added
Change-Id: Iff36719e800280d58217647bb70d3b5d5fcc91fe
2023-05-26 12:04:06 +00:00
coleramos425 70405f184f Detect illogical counter values and throw warning (#103)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-25 15:45:05 -05:00
Kent Russell 478a68d49c kfdtest: Test XNACK on and off for SVM tests
Add parameterization for KFDSVM tests so that we test with both XNACK
enabled and XNACK disabled. This will be overridden by HSA_XNACK, if set

Change-Id: Ie96eb61c03115f947e08cfa076ac459f7440f5d8
2023-05-25 12:08:16 -04:00
coleramos425 8af6efc0be Remove submodule checkout from CI
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-25 10:26:59 -05:00
gobhardw 7ef30a17c8 Fix async copy test and logic flaw in tracer test
Change-Id: I046f12cc7513f7b555b4c148d5ec34bc2354280e
2023-05-25 09:46:42 -04:00
Giovanni LB cd9ad067fa SWDEV-401887: Removed output folder sent to att.py
Change-Id: I3e09c1ead9c24a5fd03cd26e4bee18d580a2f377
2023-05-25 07:52:01 -03:00
Hao Zhou 7d508f75ab Revert "Merge amd-staging into amd-master 20230524"
This reverts commit 3629c4d5ca.

Reason for revert: <commit break mainline rocm builds - RHEL-9>

Change-Id: Ideed94313b15bc8af2bd9855535d490fd84b5c3b
2023-05-25 01:53:24 -04:00
Ammar ELWazir 3368b7483f Fixing ROCSYS
Change-Id: I907e2d0dae0413ebda4f83227dfe99e8a8f86d12
2023-05-25 00:26:01 -04:00
Ammar ELWazir 078cb99d2c Removing Grafana
Change-Id: I73c84daa6f8a9da6de217b81665087662d25f4c5
2023-05-25 00:25:27 -04:00
Ammar ELWazir 6b07b139c4 Fixing Timestamps for Tracing for the trace buffer results
Change-Id: I89b36daacb6531840ac334ba4629c73a7b8f1e79
2023-05-25 01:59:54 +00:00
Ammar ELWazir 1bba393b1b SWDEV-389161: Fixing CTF plugin to work with the TraceBuffer
Change-Id: I4bd9f21bb91d6bd7cee1417d88a81d9d3be6ea9b
2023-05-24 22:46:40 +00:00
Sriraksha Nagaraj cdc74d31db SWDEV-389161:Adding fix for tensorflow app hang with rocprofv2
Change-Id: I48ade2e853468940aa5e1fca58ba22f686d89f26
2023-05-24 22:46:40 +00:00
Cole Ramos 435ba2f54b Merge pull request #132 from arghdos/fix_merge_on_grid
Fix merge on grid
2023-05-24 16:58:01 -05:00
Nicholas Curtis b48fb1e4cb reformat 2023-05-24 16:08:09 -04:00
Bill(Shuzhou) Liu a6467c4083 Fallback to gpu_metrics if the sysfs is not available
The gpu_metrics may have required PCI link width and speed.

Change-Id: I939d733f5f6a71088545ba042345eb1b6ad20ee5
2023-05-24 14:51:43 -05:00
Nicholas Curtis 2e403232db fix column name 2023-05-24 15:29:29 -04:00
Graham Sider 0772e8d618 rocrtst: Throw on LocateKernelFile open() failures
Throw runtime error instead of returning empty string when open() fails
in LocateKernelFile()

Signed-off-by: Graham Sider <Graham.Sider@amd.com>
Change-Id: Iafa360fbc2d3c9b01b9fe7ea4c11d70bd254ccce
2023-05-24 14:31:26 -04:00
Nicholas Curtis 10e6b1f068 Fix issue where join was being done on the incorrect key 2023-05-24 14:22:00 -04:00
gobhardw b817742d89 SWDEV-388373 : plugins option validates plugin name
Change-Id: Id1aa810bb6f1f8e52fc0b2f2e5332dd44bf71708
2023-05-24 01:41:13 -04:00
Hao Zhou 3629c4d5ca Merge amd-staging into amd-master 20230524
Signed-off-by: Hao Zhou <Hao.Zhou@amd.com>
Change-Id: I049d28cfd837e104f71051695baaca9e4f2ca4f9
2023-05-24 12:40:26 +08:00
David Yat Sin 41f6d0426d Adding gfx941 and gfx942
Adding support for gfx941 and gfx942 ISAs.
gfx940 ISA will use sc0:1 sc1:1 on load/store operations
gfx942 ISA will use default load/store operations

Change-Id: If1efbef86f59e2cf2d48fe359cd4166405a0a579
2023-05-23 11:13:16 -04:00
gobhardw 7957dc24ea Fixing tracer hello world test
Change-Id: I79b84506c404ac8ad5d63eb5af08f8f4cb4167ae
2023-05-23 12:19:16 +05:30
Ammar ELWazir cf14bfbef0 Adding a way to define the OPS operation in the file plugin
Change-Id: Id1810b9a34bd0af2f000c53aad328bb019768eb0
2023-05-23 04:38:17 +00:00
Ammar ELWazir 55feb12ed9 Fixing BARECTF Binary search path in CTF Plugin CMake
Change-Id: I05a965a844584422ea93a4dd4196b8d7b2cdb339
2023-05-23 04:38:16 +00:00
Ammar ELWazir 05ed06f883 Fixing queue.cpp as record_id is being generated as transferred in the signal handler arguments as the kernel_name id
Change-Id: Ic89d1dad4993a5a78e19e416248208a3e4980538
2023-05-23 04:38:16 +00:00
Ammar ELWazir b6bcb5cd50 SWDEV-401678: Fixed Generated Record IDs missed between different threads
Change-Id: I7f78224dcc317668ee3c54279435f253121ad539
2023-05-23 04:38:16 +00:00
David Yat Sin 50e754d08b ASAN: Remap first page of allocations to host mem
When compiling in ASAN mode, remap the first page of device allocations
to system memory. ASAN's memory allocator uses a small amount of extra
memory to store data for housekeeping purpose. But because this memory
is from the GPU memory pool, it might have uncommon memory type for host
to access. Mapping this section of memory to the host makes this memory
accessible to ASAN.

Change-Id: I36f659d616a4d15558372592439a8723c5c84a69
Signed-off-by: Bing Ma <Bing.Ma@amd.com>
2023-05-22 20:58:54 -04:00
gobhardw 31c9bc44e1 SWDEV-387956 : Added CTF in --help option and Fixed plugin path
Change-Id: I666084ddd4f77c4e1c012b6ca13d101e11dbc494
2023-05-23 00:42:16 +05:30
Bill(Shuzhou) Liu 160c99d12d SWDEV-400644: Reset the mutex only if errors
To prevent reset the mutex while using it, only reset the mutex
if it cannot acquire it.

Change-Id: I95e0ed1bf543f285ce81b4df9c51e16a88081d38
2023-05-22 11:20:44 -04:00
coleramos425 14df0584b4 Display first X chars in --kernel-names (#115)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 16:25:50 -05:00
coleramos425 dc89d64f11 Comply to Python formatting
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 16:10:20 -05:00
coleramos425 514b91b210 Add LDSBanks for LDS bw calc (#107)
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 16:08:23 -05:00
coleramos425 d23efe461e Enhance logging
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 13:38:19 -05:00
coleramos425 ae3f562b6c Remove private submodules
Signed-off-by: coleramos425 <colramos@amd.com>
2023-05-19 12:41:00 -05:00
Ammar ELWazir f7e7255f10 Fixing Record ID in queues.cpp
Change-Id: I39aa90cdf399f47272b710a5377841c29708dfda
2023-05-19 16:56:22 +00:00
David Yat Sin a1f3b619a7 Add mutex when reserving scratch
This prevents race condition when creating queues concurrently.

Change-Id: I5ea9714926fe06e1719fcb2559cb485063355e4f
2023-05-19 11:05:13 -04:00
Sam Wu 74dce41f4f update documentation dependencies via requirements
rocm-docs-core v0.11.0

Change-Id: I2ecc8c6015b9bb186e1b3241eb84bcbda9c46152
2023-05-18 13:29:08 -06:00
Ranjith Ramakrishnan 8ce1529027 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-05-18 05:34:35 -07:00