Re: [PATCH] drm/amdgpu: save VCN instances init info before jpeg init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Jingwen Chen <Jingwen.Chen2@xxxxxxx>

Best Regards,
JingWen Chen

On 2023/10/10 14:27, Lin.Cao wrote:
JPEG init header will overwirte vcn init header info which will
loss some debug information

Signed-off-by: Lin.Cao <lincao12@xxxxxxx>
---
  drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
index a3768aefb6b6..bc38b90f8cf8 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c
@@ -431,6 +431,10 @@ static int jpeg_v4_0_start_sriov(struct amdgpu_device *adev)
  	end.cmd_header.command_type =
  		MMSCH_COMMAND__END;
+ size = sizeof(struct mmsch_v4_0_init_header);
+	table_loc = (uint32_t *)table->cpu_addr;
+	memcpy(&header, (void *)table_loc, size);
+
  	header.version = MMSCH_VERSION;
  	header.total_size = RREG32_SOC15(VCN, 0, regMMSCH_VF_CTX_SIZE);



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux