drm/amd/amdgpu: add dummy_page_addr to sriov msg
Subsystems (2)
PATCH v2 1/1 drm/amd/amdgpu: add dummy_page_addr to sriov msg
Add dummy_page_addr to sriov msg for host driver to set GCVM_L2_PROTECTION_DEFAULT_ADDR* registers correctly.
v2:
should update vf2pf msg instead
Signed-off-by Jingwen Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1 -0
@@ -584,6 +584,7 @@ static int amdgpu_virt_write_vf2pf_data(struct amdgpu_device *adev) vf2pf_info->encode_usage =0 ; vf2pf_info->decode_usage =0 ; + vf2pf_info->dummy_page_addr = (uint64_t )adev->dummy_page_addr; vf2pf_info->checksum =amd_sriov_msg_checksum ( vf2pf_info, vf2pf_info->header.size,0 ,0 );
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h +2 -1
@@ -261,9 +261,10 @@ struct amd_sriov_msg_vf2pf_info {uint8_t id;uint32_t version; } ucode_info[AMD_SRIOV_MSG_RESERVE_UCODE ]; +uint64_t dummy_page_addr;/* reserved */ -uint32_t reserved[256 -68 ]; +uint32_t reserved[256 -70 ]; };/* mailbox message send from guest to host */
Signature · 1 line
2.30.2
[AMD Official Use Only]
Reviewed-by Horace Chen <[email protected]>
-----Original Message-----
From: Chen, JingWen <[email protected]>
Sent: Thursday, October 21, 2021 6:12 PM
To: [email protected]
Cc: Liu, Monk <[email protected]>; Chen, Horace <[email protected]>; Chen, JingWen <[email protected]>
Subject: [PATCH v2] drm/amd/amdgpu: add dummy_page_addr to sriov msg
Add dummy_page_addr to sriov msg for host driver to set GCVM_L2_PROTECTION_DEFAULT_ADDR* registers correctly.
v2:
should update vf2pf msg instead
Signed-off-by Jingwen Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | 1 + drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c +1 -0
@@ -584,6 +584,7 @@ static int amdgpu_virt_write_vf2pf_data(struct amdgpu_device *adev) vf2pf_info->encode_usage =0 ; vf2pf_info->decode_usage =0 ; + vf2pf_info->dummy_page_addr = (uint64_t )adev->dummy_page_addr; vf2pf_info->checksum =amd_sriov_msg_checksum ( vf2pf_info, vf2pf_info->header.size, 0, 0); diff --git a/drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h b/drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h
index 995899191288..7326b6c1b71c 100644
drivers/gpu/drm/amd/amdgpu/amdgv_sriovmsg.h +2 -1
@@ -261,9 +261,10 @@ struct amd_sriov_msg_vf2pf_info {uint8_t id;uint32_t version; } ucode_info[AMD_SRIOV_MSG_RESERVE_UCODE ]; +uint64_t dummy_page_addr;/* reserved */ -uint32_t reserved[256 -68 ]; +uint32_t reserved[256 -70 ]; };/* mailbox message send from guest to host */
--
2.30.2