Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: add support for MMHUB IP version 3.4.0

This initializes MMHUB IP version 3.4.0.

v2: squash in clients table update (Alex)

Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Tim Huang <tim.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Tim Huang and committed by
Alex Deucher
7aaaca3b e2fd14f5

+35
+1
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
··· 584 584 case IP_VERSION(3, 3, 0): 585 585 case IP_VERSION(3, 3, 1): 586 586 case IP_VERSION(3, 3, 2): 587 + case IP_VERSION(3, 4, 0): 587 588 adev->mmhub.funcs = &mmhub_v3_3_funcs; 588 589 break; 589 590 default:
+34
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
··· 163 163 [32+30][1] = "VCN1", 164 164 }; 165 165 166 + static const char *mmhub_client_ids_v3_4[][2] = { 167 + [0][0] = "VMC", 168 + [4][0] = "DCEDMC", 169 + [5][0] = "MPXSP", 170 + [6][0] = "MPASP", 171 + [7][0] = "MP1", 172 + [8][0] = "MPM", 173 + [23][0] = "HDP", 174 + [24][0] = "LSDMA", 175 + [25][0] = "JPEG", 176 + [26][0] = "VPE", 177 + [27][0] = "VSCH", 178 + [28][0] = "VCNU", 179 + [30][0] = "VCNRD", 180 + [3][1] = "DCEDWB", 181 + [4][1] = "DCEDMC", 182 + [5][1] = "MPXSP", 183 + [6][1] = "MPASAP", 184 + [7][1] = "MP1", 185 + [8][1] = "MPM", 186 + [21][1] = "OSSSYS", 187 + [23][1] = "HDP", 188 + [24][1] = "LSDMA", 189 + [25][1] = "JPEG", 190 + [26][1] = "VPE", 191 + [27][1] = "VSCH", 192 + [29][1] = "VCNWR", 193 + }; 194 + 166 195 static uint32_t mmhub_v3_3_get_invalidate_req(unsigned int vmid, 167 196 uint32_t flush_type) 168 197 { ··· 239 210 mmhub_cid = cid < ARRAY_SIZE(mmhub_client_ids_v3_3_1) ? 240 211 mmhub_client_ids_v3_3_1[cid][rw] : 241 212 cid == 0x140 ? "UMSCH" : NULL; 213 + break; 214 + case IP_VERSION(3, 4, 0): 215 + mmhub_cid = cid < ARRAY_SIZE(mmhub_client_ids_v3_4) ? 216 + mmhub_client_ids_v3_4[cid][rw] : 217 + cid == 0x140 ? "UMSCH" : NULL; 242 218 break; 243 219 default: 244 220 mmhub_cid = NULL;