dev-amdgpu: Add PM4PP, VMID, Linux definitions
The PM4 packet processor is handling all non-HSA GPU packets such as packets for (un)mapping HSA queues. This commit pulls many Linux structs and defines out into their own files for clarity. Finally, it implements the VMID related functions in AMDGPU device. Change-Id: I5f0057209305404df58aff2c4cd07762d1a31690 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/53068 Reviewed-by: Matt Sinclair <mattdsinclair@gmail.com> Maintainer: Matt Sinclair <mattdsinclair@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -45,10 +45,10 @@
|
||||
* MMIO offsets for graphics register bus manager (GRBM). These values were
|
||||
* taken from linux header files. The header files can be found here:
|
||||
*
|
||||
* https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/include/
|
||||
* asic_reg/gc/gc_9_0_offset.h
|
||||
* https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/include/
|
||||
* asic_reg/mmhub/mmhub_1_0_offset.h
|
||||
* https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/blob/rocm-4.2.0/
|
||||
* drivers/gpu/drm/amd/include/ asic_reg/gc/gc_9_0_offset.h
|
||||
* https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/blob/rocm-4.2.0/
|
||||
* drivers/gpu/drm/amd/include/ asic_reg/mmhub/mmhub_1_0_offset.h
|
||||
*/
|
||||
|
||||
#define mmVM_INVALIDATE_ENG17_ACK 0x08c6
|
||||
@@ -256,6 +256,12 @@ class AMDGPUVM : public Serializable
|
||||
/**
|
||||
* Page table base/start accessors for user VMIDs.
|
||||
*/
|
||||
void
|
||||
setPageTableBase(uint16_t vmid, Addr ptBase)
|
||||
{
|
||||
vmContexts[vmid].ptBase = ptBase;
|
||||
}
|
||||
|
||||
Addr
|
||||
getPageTableBase(uint16_t vmid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user