[PATCH v2] drm/amdgpu: Enable VM_CONTEXT1_CNTL after page table addr is set.

2023-05-24 Thread ghostfly233
In setup_vmid_config functions of all mmhubs, the CONTEXT1_CNTL reg is enabled before related CONTEXT1_PAGE_TABLE_START_ADDR and CONTEXT1_PAGE_TABLE_END_ADDR regs are written, which may cause undefined behavior. This patch enable CONTEXT1_CNTL after page table addresses are set, so that it can ens

[PATCH] drm/amdgpu: Enable GCVM_CONTEXT1_CNTL after page table addr is set.

2023-05-24 Thread ghostfly233
In gfxhub_v2_1_setup_vmid_config(), the GCVM_CONTEXT1_CNTL reg is enabled before related GCVM_CONTEXT1_PAGE_TABLE_START_ADDR and GCVM_CONTEXT1_PAGE_TABLE_END_ADDR regs are written, which may cause undefined behavior. This patch enable GCVM_CONNTEXT1_CNTL after page table addresses are set, so that

[PATCH] drm/amdgpu: Rearrange WREG32 operations in gfxhub_v2_1.c

2023-05-20 Thread ghostfly233
In gfxhub_v2_1_setup_vmid_config(), the GCVM_CONTEXT1_CNTL reg is written before related GCVM_CONTEXT1_PAGE_TABLE_START_ADDR and GCVM_CONTEXT1_PAGE_TABLE_END_ADDR regs are written, which may cause undefined behavior. This patch rearranges WREG32 operations in gfxhub_v2_1_setup_vmid_config(), so th