drm/amdgpu:add tmr mc address into amdgpu_firmware_info
authorJames Zhu <jzhums@gmail.com>
Thu, 9 Aug 2018 16:31:38 +0000 (00:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Aug 2018 22:18:39 +0000 (17:18 -0500)
amdgpu IP blocks booting need Trust Memory Region(tmr) mc address
of its firmware which is loaded by PSP

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Likun Gao <likun.gao@amd.com>
Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h

index 08e3857..edb7baf 100644 (file)
@@ -226,6 +226,9 @@ struct amdgpu_firmware_info {
        void *kaddr;
        /* ucode_size_bytes */
        uint32_t ucode_size;
+       /* starting tmr mc address */
+       uint32_t tmr_mc_addr_lo;
+       uint32_t tmr_mc_addr_hi;
 };
 
 void amdgpu_ucode_print_mc_hdr(const struct common_firmware_header *hdr);