drm/amdgpu: add node_id to physical id conversion in EOP handler

A new field nodeid in interrupt cookie indicates the node ID.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Shiwu Zhang <shiwu.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Le Ma
2021-11-19 18:03:34 +08:00
committed by Alex Deucher
parent 147862d00b
commit 15091a6f43
3 changed files with 29 additions and 2 deletions

View File

@@ -99,6 +99,17 @@ const char *soc15_ih_clientid_name[] = {
"MP1"
};
const int node_id_to_phys_map[NODEID_MAX] = {
[XCD0_NODEID] = 0,
[XCD1_NODEID] = 1,
[XCD2_NODEID] = 2,
[XCD3_NODEID] = 3,
[XCD4_NODEID] = 4,
[XCD5_NODEID] = 5,
[XCD6_NODEID] = 6,
[XCD7_NODEID] = 7,
};
/**
* amdgpu_irq_disable_all - disable *all* interrupts
*