Vladislav Sytchenko
f45cea29b7
[PAL] Clamp max image buffer size...
...
to the maximum size we can possibly create.
Change-Id: Iade51d84fdada4ae1299d9b2410d373a46357c66
2020-12-15 12:14:09 -05:00
Jason Tang
d4316141b7
SWDEV-263539 - More Target ID fix in GSL path
...
On behalf of Tony Tye. The bootleg passes CQE Baffin/Ellesmere test.
Change-Id: I4c21d21b3aaba360682ef15b8a4dda239f8af276
2020-12-14 16:48:55 -05:00
Jason Tang
054f256589
SWDEV-260632 - [PAL] Report correct Target ID
...
Change-Id: Ia39395e2c02e7c95b3df93be1f8030b4fa734583
2020-12-01 18:33:25 -05:00
German Andryeyev
08b846ae12
Remove obsolete terminate() method
...
Change-Id: I66b4a74f17977f1af320f402402a2f1b602e9911
2020-11-30 11:46:09 -05:00
Jason Tang
0c62d3bf1c
SWDEV-260632 - [PAL] Use new Target ID format
...
Change-Id: Icd2d95b9c3f5adbd295fb2272bf453ccb9f09678
2020-11-24 17:38:13 -05:00
Jason Tang
3351b9c993
SWDEV-260632 - [PAL] Simplify NullDevice::init()
...
Change-Id: I9d44162f38806e3742c18da48e382baafeb7060f
2020-11-21 10:00:35 -05:00
Vladislav Sytchenko
b4e212a0f9
[PAL] Force large buffer mappings to use pinned memory
...
PAL doesn't perform chunking for system memory allocations, hence we
should fall back to using pinned memory for mapping large buffers.
Change-Id: I1b472616b72d12ed0105fb65532acacdb98ac7b3
2020-11-18 17:12:32 -05:00
Vladislav Sytchenko
026baec57b
[PAL] Navi23 support
...
Change-Id: I10bb0653746060bd83ca7feda10fdafc07ced845
2020-11-13 15:08:04 -05:00
Vladislav Sytchenko
5e60e06a50
[PAL] Navi22 support
...
Change-Id: I9f1741898b4afaa0e787d8053d8f006ee3d17017
2020-11-13 15:00:57 -05:00
Vladislav Sytchenko
353a018bce
[PAL] Report actual HW limits for max image buffer size
...
Change-Id: I62aa3f1e9709b91ba223af0abf8bf6395fe8ec59
2020-11-13 14:59:50 -05:00
Jason Tang
2ee2392f63
SWDEV-260376 - [PAL] Fix Windows build
...
Change-Id: I788198b5980a46981de4b2e7aaa6a495e6e98cad
2020-11-13 09:51:43 -05:00
Jason Tang
b1d75637bd
SWDEV-260376 - [PAL] Use Pal::AsicRevision to match device
...
A device's offset in Pal::AsicRevision could be changed from time to time, while the current implementation assume the offset never changes.
Change-Id: Id993512aa0da6e0b2356f594d5e58f76d1f97f16
2020-11-12 09:49:48 -05:00
German Andryeyev
234a94f838
Add SPM support for RGP
...
RGP protocol supports SPM collection. Enable it in the PAL backend.
Change-Id: I0fa17334addad037ba6689d11fff0993f7899e66
2020-11-11 13:10:23 -05:00
Vladislav Sytchenko
be66e29e94
[PAL] Change free mem tracking logic to use PAL size
...
PAL may internally align up the allocation size to the page size
reported by KMD. This will cause a mismatch in size between OCL and PAL.
To avoid this, use PAL size when updating the free memory counter on
both alloc and free.
Change-Id: Ic6e8c861a52170476474fb70a769eef93be3261f
2020-10-20 12:10:14 -04:00
Jason Tang
25cc965c76
Change file mode 755 back to 644
...
Change-Id: I4ba5d66997ffd3331c56674d4bf805160dcdf049
2020-10-19 15:09:32 -04:00
German Andryeyev
cb4e6bd264
Upgrade PAL interface version to 632
...
Change-Id: I1b8b936cc9bc59ff80296cc6bf5137c3af398c5d
2020-10-16 13:12:16 -04:00
Rahul Garg
c0f8b52f06
Add image1DMaxWidth_ for maxTexture1D property
...
Needed by SWDEV-254068
Change-Id: Ic650dfb6e5b38d7544ba647c53de52deda39b92d
2020-10-14 17:30:43 -04:00
Vladislav Sytchenko
330b674821
[PAL] Allow more heaps for non-SVM suballocations
...
On ReBar systems the invible heap is not present, so in theory we should
fail creating the suballocation chunk, however PAL doesn't report any
errors.
To make sure we never fail, allow creating the allocation in the visible
heap and system memory.
Change-Id: Iea9cc68d98b9cb396a2b7a37398b98b66274083b
2020-10-14 16:56:12 -04:00
Vladislav Sytchenko
2ec5a47c88
[PAL] Allow for embedding debug info into IBs
...
Change-Id: I4473b9c5aa36370d9af37f22a78f4414eaa21e01
2020-10-14 15:54:48 -04:00
Vladislav Sytchenko
26d1b28b16
[PAL] Allow overriding reported asic revision
...
This is helpfull to do when debugging issues on lowend asics. Navi14 can be emulated as Navi10. So can Navi22 be emulated as Navi21.
Change-Id: I693ffd45a5b03657822afdc872781901bc69b65c
2020-10-13 09:36:15 -04:00
Vladislav Sytchenko
fd09a7a23c
[PAL] Skip extra calls to MakeResident
...
With the PAL_ALWAYS_RESIDENT flag memory objects are resident at allocation time, no need to make them resident again before submit.
Also we should never evict anything with this setting, or we'll generate a VM fault.
Change-Id: Ieacc6af88ab4e09c20efd94100e148b2502e1d70
2020-10-09 14:13:32 -04:00
Vladislav Sytchenko
f26bb1d76d
[PAL] Add entry for unannounced device
...
Change-Id: I323f240068ee1eff6981e69b7a2837f06157e44b
2020-10-02 13:52:25 -04:00
Vladislav Sytchenko
11bdf0005f
[PAL] Detect if resizable bar is enabled
...
Change-Id: I54b2e878d1cf7235a848a4b243f878538e226702
2020-10-02 12:25:00 -04:00
Vladislav Sytchenko
1183455755
Fix Windows build
...
Change-Id: Icdc723843541a5c13503670b5f972b78db0cccbf
2020-09-30 14:40:07 -04:00
kjayapra-amd
4071cf1a16
SWDEV-241896 - Remove extern support in ROCclr/HIP since compiler added Texture Reference support.
...
Change-Id: I2cf27e13a53860fe11e9245c9cbdcb8bd88a7872
2020-09-25 10:20:16 -04:00
Jason Tang
40b432f992
Avoid using sdma engine if there's none
...
Change-Id: Id8d373683f3e1667ab461b4c5b8b490377b64cc0
2020-09-25 09:48:10 -04:00
kjayapra-amd
7462e39954
SWDEV-252542 - Fixing Win Compilation on SWDEV-241902.
...
Change-Id: If76f79002b265dccf6da4acef1ff9372d8b0a2ff
2020-09-18 12:11:56 -04:00
kjayapra-amd
a66c56d641
SWDEV-241902 - Changes to pass file descriptor and offset to load code object.
...
Change-Id: I0243cccdeaa533b2a56fde42f12d5424c3b63a3b
2020-09-15 07:54:24 -04:00
Vladislav Sytchenko
be0d98b433
Fix typo
...
Change-Id: I571e84cab9258dfd5e94b70865505f452ed89016
2020-09-12 20:16:27 -04:00
Laurent Morichetti
5d4b6f74d3
Use std::atomic
...
Replace amd::Atomic with std::atomic. Remove make_atomic uses by
converting the variable to std::atomic and making sure the memory
order is relaxed when synchronizes-with is not needed.
Delete utils/atomic.hpp.
Change-Id: I0b36db8d604a8510ac6e36b32885fd16a1b8ccfa
2020-09-09 14:55:29 -04:00
Jason Tang
5ecce5c287
Remove gfxipVersion_ from device level
...
Change-Id: I11485beffdb9371a20d7abcaa1d1774c102db574
2020-09-07 11:33:49 -04:00
kjayapra-amd
0163d8acc0
SWDEV-240800 - P2P device attributes support
...
Change-Id: I2b060a66715f676dfb7136940e69e21288f509d8
2020-09-03 14:41:53 -04:00
Vladislav Sytchenko
d6e89ec371
Navi21 support
...
Change-Id: I7263556fdb85dc0152a2a72cc0ec4d7cd5e978a6
2020-09-03 11:14:37 -04:00
Tao Sang
e986f5c820
Replace private libelf with elfio
...
Change-Id: I4c630d78f7bf23dda85ec8480bb2790864405657
2020-08-26 12:32:13 -04:00
Jason Tang
f8f6bc16a1
SWDEV-246565 - Remove passing -msram-ecc to Comgr
...
Change-Id: I1604a0014186a5779561da3ec3eefec65aff5c37
2020-08-06 12:48:53 -04:00
Anusha Godavarthy Surya
093f7fa3ca
SWDEV-244600 - HIP BLIT code object needs to have reserved symbol name
...
Change-Id: I8401fea5eab71c0f7414eec0666066d9553a6622
2020-08-06 01:14:06 -04:00
Vlad Sytchenko
9d0b0c32a9
Fix typo
...
Change-Id: I8b659508f567afa126aeb7749b536b443935e3df
2020-08-04 11:15:21 -04:00
Vlad Sytchenko
24c1c48db7
Only enable HIP for Vega20 on non-ROCm platforms
...
SWDEV-245906
All asics will still be supported for developer builds.
Change-Id: I0eac2246162d133fe63449c200d996fe05bd51bd
2020-07-27 13:09:58 -04:00
Tao Sang
fdef6f722f
Apply constexpr on global constant varaibles
...
When HIP_ENABLE_DEFERRED_LOADING=0, many global variables will be
referenced but they are not initialized in that early time. The patch
will use constexpr to initialze global constant varables in compile
time.
Change-Id: I9d538b7abc6a0ce700ec3332b97fc144db5fc1ef
2020-07-22 22:14:13 -04:00
Jason Tang
2800fc2fa3
SWDEV-232197 - Fix PAL build
...
Change-Id: Iad306077cadfd8de1491ac0a188eee4802d8ce1f
2020-07-22 17:10:03 -04:00
Jason Tang
65f4230494
SWDEV-232197 - Use TargetID for action_info_set_isa_name()
...
Change-Id: I6661a2bbc2e55586c1b5029694d67cb54a4f23a6
2020-07-22 13:47:17 -04:00
Jason Tang
532083f87c
For apu: call commitSvmMemory() from Device::svmAlloc()
...
Change-Id: Ic6e9b2ad4624e7e1c50835d3825254c76e764bf0
2020-06-22 10:09:32 -04:00
Jason Tang
138b2d3ce2
Set the tiled_ flag according to ImageCreateInfo
...
Change-Id: I3e1b2fdd15e32c3c24f4341001b068738c98e388
2020-06-19 12:34:07 -04:00
German Andryeyev
01fcf82448
Switch PAL to interface 610
...
Change-Id: Ida563f38513789f5ba105ac92a9737c59cd5d90d
2020-06-19 11:40:12 -04:00
Jason Tang
155ff5bdcc
Merge pal Resource mapLayers/unmapLayers logic into map/unmap
...
Change-Id: I0198fb96f104539fb557f91160665e60ba576132
2020-06-19 10:51:48 -04:00
kjayapra-amd
1982c16e46
FEAT-30761 - Adding defaults to all Switch cases in PalDevice gfx detection.
...
Change-Id: Ic998dba44d3287484d6b0da4f07f320de8e6d92b
2020-06-04 20:49:58 -04:00
kjayapra-amd
ea0137fb22
FEAT-30761 - Fixing fall through in gfxip major/minor detection.
...
Change-Id: Ib97b3dbe993e01df3360cbeda6bd0d9d366535b6
2020-05-23 12:42:44 -04:00
Matt Arsenault
1d267c9c08
Remove include/ from #includes
...
These are unnecessary and an obstacle to producing a relocatable
package.
Change-Id: I0059bf7a2d11fcece0cd7ab47d7545d0df4d7099
2020-05-19 19:35:09 -04:00
Jason Tang
cd2a713d63
Add major/minor/stepping to device layer
...
Change-Id: If82ea55a46b166b243a98089a6e9c40ccfdb479f
2020-05-17 12:57:34 -04:00
Jason Tang
9b5e1fec6c
Correct the way to get subtarget
...
Change-Id: I47805424c0bd69547cff0ab71c369552016052b5
2020-05-15 17:18:39 -04:00