Skip to content

Commit

Permalink
drm/amdgpu: add mmhub client ids for aldebaran
Browse files Browse the repository at this point in the history
Add the mmhub client id table for aldebaran.

Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
alexdeucher committed Mar 24, 2021
1 parent 557da41 commit e844cd9
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,44 @@ static const char *mmhub_client_ids_arcturus[][2] = {
[384][1] = "OSS",
};

static const char *mmhub_client_ids_aldebaran[][2] = {
[2][0] = "MP1",
[3][0] = "MP0",
[15][0] = "SDMA0",
[32+0][0] = "UTCL2",
[32+4][0] = "MPIO",
[32+13][0] = "OSS",
[32+15][0] = "SDMA1",
[64+15][0] = "SDMA2",
[96+11][0] = "JPEG0",
[96+12][0] = "VCN0",
[96+13][0] = "VCNU0",
[96+15][0] = "SDMA3",
[128+11][0] = "JPEG1",
[128+12][0] = "VCN1",
[128+13][0] = "VCNU1",
[128+15][0] = "SDMA4",
[160+14][0] = "HDP",
[2][1] = "MP1",
[3][1] = "MP0",
[15][1] = "SDMA0",
[32+1][1] = "DBGU_IO0",
[32+2][1] = "DBGU_IO2",
[32+4][1] = "MPIO",
[32+13][1] = "OSS",
[32+15][1] = "SDMA1",
[64+15][1] = "SDMA2",
[96+11][1] = "JPEG0",
[96+12][1] = "VCN0",
[96+13][1] = "VCNU0",
[96+15][1] = "SDMA3",
[128+11][1] = "JPEG1",
[128+12][1] = "VCN1",
[128+13][1] = "VCNU1",
[128+15][1] = "SDMA4",
[160+14][1] = "HDP",
};

static const struct soc15_reg_golden golden_settings_mmhub_1_0_0[] =
{
SOC15_REG_GOLDEN_VALUE(MMHUB, 0, mmDAGB1_WRCLI2, 0x00000007, 0xfe5fe0fa),
Expand Down Expand Up @@ -570,6 +608,9 @@ static int gmc_v9_0_process_interrupt(struct amdgpu_device *adev,
case CHIP_RENOIR:
mmhub_cid = mmhub_client_ids_renoir[cid][rw];
break;
case CHIP_ALDEBARAN:
mmhub_cid = mmhub_client_ids_aldebaran[cid][rw];
break;
default:
mmhub_cid = NULL;
break;
Expand Down

0 comments on commit e844cd9

Please sign in to comment.