Firmware used reg set 2 for tlb invalidation. AMDGPU can start from reg
set 3 to avoid the conflict. AMDKFD will use the reg set 0 or 1 when
necesary.
Change-Id: I71c595701f47110df0242d6926607c94bd5644eb
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
1 file changed
1. Use spin lock instead of mutex in KIQ
2. Directly write to KIQ fence address instead of using fence_emit()
3. Disable the interrupt for KIQ read/write and use CPU polling
Change-Id: Id3693a2878ce1338f55aee3def6e7fc0f6b81996
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h
Change-Id: I5c6267253bfe5507a8821a482cf378852946
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h
index bc8dec9..3f0bbc4
KIQ read/write register will be called in atomic context so mutex can not be
used
Change-Id: Ifa14293b3cdfcf74cd7930a4058154d0a7d7f97c
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 +-
drivers/gpu/drm/amd/amdgpu
Change-Id: I87762bfc9903401ac06892bed10efa1767c15025
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 47 +++-
1 file changed, 34 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
b/drivers/gpu/drm/amd
nbio hdp flush routine are called within atomic context.
Avoid use KIQ when write to the HDP_MEM_COHERENCY_FLUSH_CNTL register
since this register has its own VF copy
Change-Id: Ia5e2d409f1ea47c67d9e56859b1902bed1b020c6
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c
Change-Id: I56475b72ac9f9a8e2701c58c5b10e1f2930af7cd
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/soc15d.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15d.h
b/drivers/gpu/drm/amd/amdgpu/soc15d.h
index 298ef4e..3130af8 100644
--- a/drivers/gpu
Change-Id: I6e4b07b14d72a2ae51b7436cfddf478e26be417c
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
index
Change-Id: Ibc3ae5ac852405b77908bc26f899fe97bde88d86
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 15 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 16 ++--
3
Change-Id: I5bd514b4357d1082f4e8be3df2a1b37051c9bd9f
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | 2 +-
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 2 +-
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c | 2 +-
3 files changed, 3 insertions(+), 3
Change-Id: I11522965287622bf577fca2aa5dee2aaf791a77f
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
b/drivers/gpu/drm/amd/include
Change-Id: I5bd514b4357d1082f4e8be3df2a1b37051c9bd9f
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c| 2 +-
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c | 2 +-
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 2 +-
drivers/gpu/drm/amd/amdkfd
Change-Id: I780e276983ba5a3bf077d274c84eb168585c806a
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 11 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 12
2 files changed, 23 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu
Change-Id: I11522965287622bf577fca2aa5dee2aaf791a77f
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 4 ++--
drivers/gpu/drm/amd/amdkfd
Change-Id: I11522965287622bf577fca2aa5dee2aaf791a77f
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 4 ++--
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 4 ++--
drivers/gpu/drm/amd/amdkfd
Change-Id: I780e276983ba5a3bf077d274c84eb168585c806a
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c | 4
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 5 +
2 files changed, 9 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu
eviction fence
Signed-off-by: Shaoyun Liu
Change-Id: I4a7dba32c21cbd5fc77512c0476b8d2b4b6ea155
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
b/drivers/gpu
Change-Id: I972b6d1e22434d01cdf819a528fc6360afc5a6bd
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c
index
Change-Id: I4bdc6dbcd82f32416f65e0a38fb9c3cb580684bf
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index
During emulation period, use the directly load for firmware also
only enable the GFX , SDMA and necessary common, gmc, ih IP block
Signed-off-by: Shaoyun Liu
Change-Id: I325910fa06be4060725f404e471cc79daaf343c3
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 10 +-
1 file changed, 9
There is no vbios post during emulation, use the common hw_init to
simulate the post
Change-Id: If363766cdd1d0dee9505c5b390732a35e6b80dee
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 21 +++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff
Change-Id: I9f794b9a4cbb3cc929ddc1e4f43d9509ce86d638
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index
Add amdgpu_emu_mode module parameter to control the emulation mode
Avoid vbios operation on emulation since there is no vbios post duirng
emulation,
use the common hw_init to simulate the post
Change-Id: Iba32fa16e735490e7401e471219797b83c6c2a58
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm
Change-Id: I6ff04e1199d1ebdbdb31d0e7e8ca3c240c61ab3a
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++
drivers/gpu/drm/amd/amdgpu/emu_soc.c | 34 ++
drivers/gpu/drm/amd/amdgpu/soc15.c | 4
On emulation mode , driver will be loaded with powerplay disabled
Change-Id: I22c343d990f9a306b033728a1cb560c1e8a4677f
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 8
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++
drivers/gpu/drm/amd/amdgpu
Change-Id: I6ff04e1199d1ebdbdb31d0e7e8ca3c240c61ab3a
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++
drivers/gpu/drm/amd/amdgpu/emu_soc.c | 33 +
drivers/gpu/drm/amd/amdgpu/soc15.c | 4
Change-Id: I10030e83d63b2c27bfd16b64178e4f07c13addfa
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 0a1868b..785fb78
Add common smu_soc_asic_init function to emulate the sillicon post sequence
Change-Id: I6ff04e1199d1ebdbdb31d0e7e8ca3c240c61ab3a
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/Makefile| 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h| 2 ++
drivers/gpu/drm/amd/amdgpu
Change-Id: If73d9e5f1f2f998d927f506ca4b7a961db368716
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index f6ec36f..7968944
Even reset failed, kfd post reset need to be called to make lock balance on
kfd side
Change-Id: I8b6ef29d7527915611be0b96a9cd039bc75bb0a9
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers
Change-Id: If34e3517b6cb6f31e898bbe7921485fbddb79fb9
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
index
When PP block is disabled, return a fix value(100M) for mclk and sclk on
bare-metal mode. This will cover the emulation mode as well.
Change-Id: If34e3517b6cb6f31e898bbe7921485fbddb79fb9
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 18 +++---
1 file
The register field hsas been changed in df 3.6, update to correct setting
Change-Id: Id625d7698b610c07081f421537964686f8f0b67c
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/asic_reg/df/df_3_6_sh_mask.h | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a
Change-Id: I654d02891b80f3457ddcd80d6a8ea5ace295a89c
Signed-off-by: Shaoyun Liu
---
.../drm/amd/include/asic_reg/vega10/ip_offset_1.h | 1248
1 file changed, 1248 insertions(+)
create mode 100644 drivers/gpu/drm/amd/include/asic_reg/vega10/ip_offset_1.h
diff --git a
Change-Id: I29f33ee3b4bbd6737f3426385a9e8452fb528a67
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c| 21 +++
drivers/gpu/drm/amd/amdgpu/soc15_common.h | 34 ---
2 files changed, 11 insertions(+), 44 deletions(-)
diff --git a
Change-Id: I84217de7c188f8886383500da3c91e488086586b
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 24 +
drivers/gpu/drm/amd/amdgpu/soc15.c | 10 ++
drivers/gpu/drm/amd/amdgpu/soc15.h
Change-Id: I29f33ee3b4bbd6737f3426385a9e8452fb528a67
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c| 21 +++
drivers/gpu/drm/amd/amdgpu/soc15_common.h | 34 ---
2 files changed, 11 insertions(+), 44 deletions(-)
diff --git a
Change-Id: I84217de7c188f8886383500da3c91e488086586b
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 24 +
drivers/gpu/drm/amd/amdgpu/soc15.c | 10 ++
drivers/gpu/drm/amd/amdgpu/soc15.h
Change-Id: I84217de7c188f8886383500da3c91e488086586b
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/Makefile | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 27 ++
drivers/gpu/drm/amd/amdgpu/soc15.c | 10 +
drivers/gpu/drm/amd/amdgpu/soc15.h
Change-Id: I29f33ee3b4bbd6737f3426385a9e8452fb528a67
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c| 21 +++
drivers/gpu/drm/amd/amdgpu/soc15_common.h | 34 ---
2 files changed, 11 insertions(+), 44 deletions(-)
diff --git a
Change-Id: I59828a9a10652988e22b50d87dd1ec9df8ae7a1d
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 259 +++---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 14 +-
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c| 13 +-
drivers/gpu/drm/amd/amdgpu
Change-Id: I132079eb13264aeab62c9e40c1a351609f15f90e
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 1 -
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 -
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 -
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c
Change-Id: Ibfeb782a67e07c4b0d24b1e1903f860735a307e6
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v9.c | 25 ---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4
drivers/gpu/drm/amd/amdgpu/psp_v10_0.c| 9
Change-Id: I29f33ee3b4bbd6737f3426385a9e8452fb528a67
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c| 126 ++
drivers/gpu/drm/amd/amdgpu/soc15_common.h | 34 ++--
2 files changed, 65 insertions(+), 95 deletions(-)
diff --git a/drivers
Change-Id: I59828a9a10652988e22b50d87dd1ec9df8ae7a1d
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 228 -
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 20 +--
drivers/gpu/drm/amd/amdgpu/nbio_v6_1.c | 22 ++--
drivers/gpu/drm/amd/amdgpu
Change-Id: I59828a9a10652988e22b50d87dd1ec9df8ae7a1d
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 19 +++
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 233 +++---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 20 +--
drivers/gpu/drm/amd/amdgpu
Change-Id: I59828a9a10652988e22b50d87dd1ec9df8ae7a1d
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 19 +++
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 233 +++---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 20 +--
drivers/gpu/drm/amd/amdgpu
Change-Id: Id2d38642bec9ea1e5fd471e5b8aff027a08438b0
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/kgd_kfd_interface.h | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
b/drivers/gpu/drm/amd/include/kgd_kfd_interface.h
Change-Id: If0babeaeb5237da6ce4d5c400e7df649cba5a8ac
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdkfd/kfd_device.c | 10 ++
drivers/gpu/drm/amd/amdkfd/kfd_module.c | 2 ++
2 files changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
b/drivers/gpu/drm
Change-Id: I222f4bb2c9a91c7a4764e6aa706e7d7f2e6d948d
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 19 +++
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 6 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 +
3 files changed, 30 insertions
From: shaoyunl
Add back kfd queues in start scheduling that originally been
removed on stop scheduling.
Signed-off-by: Shaoyun Liu
Reviewed-by: Felix Kuehling
---
.../drm/amd/amdkfd/kfd_device_queue_manager.c | 40 +--
1 file changed, 37 insertions(+), 3 deletions(-)
diff
New features require the new fields defines
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v11_api_def.h | 32 -
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 34 ++-
2 files changed, 64 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu
New features require the new fields defines
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v11_api_def.h | 46 ++-
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 34 +-
2 files changed, 78 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm
This is for MES to limit only one process for the user queues
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 24
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 19 +++
drivers/gpu/drm
This is for MES to limit only one process for the user queues
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 ++
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 24
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 19 +++
drivers/gpu/drm
From: shaoyunl
Add back kfd queues in start scheduling that originally been
removed on stop scheduling.
Signed-off-by: Shaoyun Liu
---
.../drm/amd/amdkfd/kfd_device_queue_manager.c | 40 +--
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd
From: shaoyunl
Add back kfd queues in start scheduling that originally been
removed on stop scheduling.
Signed-off-by: Shaoyun Liu
---
.../drm/amd/amdkfd/kfd_device_queue_manager.c | 40 +--
1 file changed, 37 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd
MES requires driver set cleaner_shader_fence_mc_addr
for cleaner shader support.
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v11_api_def.h | 3 ++-
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu
MES fence_value will be updated in fence_addr if API success,
otherwise upper 32 bit will be used to indicate error code.
In any case, MES will trigger an EOP interrupt with 0xb1 as
context id in the interrupt cookie
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v12_api_def.h
New features require the new fields defines
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v11_api_def.h | 46 ++-
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 34 +-
2 files changed, 78 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm
access
3. Update set_hw_resource1 for cooperative mode support
4. Add full_sh_mem_config_data for xnack support
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 98 ++-
1 file changed, 93 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd
MES internal will check CP_MES_MSCRATCH_LO/HI register to set scratch data
location
during ucode start, driver side need to start the MES one by one with different
setting for each pipe
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 43 +++---
1
When MES is been used , the set_hw_resource_1 API is required to
initialize MES internal context correctly
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 6 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 9 ++--
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 59
When MES is been used , the set_hw_resource_1 API is required to
initialize MES internal context correctly
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 6 +--
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 6 +--
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 52
need to be invalidated.
With this API the old INV_GART in MISC Op can be deprecated.
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/include/mes_v12_api_def.h | 34 +++
1 file changed, 34 insertions(+)
diff --git a/drivers/gpu/drm/amd/include/mes_v12_api_def.h
b/drivers/gpu/dr
>From MES version 0x81, it provide the new API INV_TLBS that support
invalidate tlbs with PASID.
Signed-off-by: Shaoyun Liu
---
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 9 +
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 15 +++
drivers/gpu/drm/amd/amdgpu/mes_v12_0.c |
66 matches
Mail list logo