drm/amdgpu: cleanup all virtualization detection routine
we need to move virt detection much earlier because: 1) HW team confirms us that RCC_IOV_FUNC_IDENTIFIER will always be at DE5 (dw) mmio offset from vega10, this way there is no need to implement detect_hw_virt() routine in each nbio/chip file. for VI SRIOV chip (tonga & fiji), the BIF_IOV_FUNC_IDENTIFIER is at 0x1503 2) we need to acknowledged we are SRIOV VF before we do IP discovery because the IP discovery content will be updated by host everytime after it recieved a new coming "REQ_GPU_INIT_DATA" request from guest (there will be patches for this new handshake soon). Signed-off-by: Monk Liu <Monk.Liu@amd.com> Reviewed-by: Emily Deng <Emily.Deng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1162,8 +1162,10 @@
|
||||
#define mmRCC_CONFIG_MEMSIZE_BASE_IDX 0
|
||||
#define mmRCC_CONFIG_RESERVED 0x0de4 // duplicate
|
||||
#define mmRCC_CONFIG_RESERVED_BASE_IDX 0
|
||||
#ifndef mmRCC_IOV_FUNC_IDENTIFIER
|
||||
#define mmRCC_IOV_FUNC_IDENTIFIER 0x0de5 // duplicate
|
||||
#define mmRCC_IOV_FUNC_IDENTIFIER_BASE_IDX 0
|
||||
#endif
|
||||
|
||||
|
||||
// addressBlock: syshub_mmreg_ind_syshubdec
|
||||
|
@@ -4251,8 +4251,10 @@
|
||||
#define mmRCC_CONFIG_MEMSIZE_BASE_IDX 2
|
||||
#define mmRCC_CONFIG_RESERVED 0x00c4
|
||||
#define mmRCC_CONFIG_RESERVED_BASE_IDX 2
|
||||
#ifndef mmRCC_IOV_FUNC_IDENTIFIER
|
||||
#define mmRCC_IOV_FUNC_IDENTIFIER 0x00c5
|
||||
#define mmRCC_IOV_FUNC_IDENTIFIER_BASE_IDX 2
|
||||
#endif
|
||||
|
||||
|
||||
// addressBlock: nbio_nbif0_rcc_dev0_BIFDEC1
|
||||
|
@@ -2687,8 +2687,10 @@
|
||||
#define mmRCC_CONFIG_MEMSIZE_BASE_IDX 2
|
||||
#define mmRCC_CONFIG_RESERVED 0x00c4
|
||||
#define mmRCC_CONFIG_RESERVED_BASE_IDX 2
|
||||
#ifndef mmRCC_IOV_FUNC_IDENTIFIER
|
||||
#define mmRCC_IOV_FUNC_IDENTIFIER 0x00c5
|
||||
#define mmRCC_IOV_FUNC_IDENTIFIER_BASE_IDX 2
|
||||
#endif
|
||||
|
||||
|
||||
// addressBlock: nbio_nbif0_rcc_dev0_BIFDEC1
|
||||
|
Reference in New Issue
Block a user