On Thu, Feb 03, 2022 at 11:49:33AM -0600, Naveen Krishna Chatradhi wrote:Will keep it consistent.
On SMCA banks of the GPU nodes, the node id information isTerminology should be consistent. I see "node id" and "node ID" here.
available in register MCA_IPID[47:44](InstanceIdHi).
Convert the hardware node ID to a value used by Linux
where GPU nodes are sequentially after the CPU nodes.
...
+ } else if (bank_type == SMCA_UMC_V2) {As mentioned for the previous patch, why not define this function in EDAC?
+ /*
+ * SMCA_UMC_V2 exists on GPU nodes, extract the node id
+ * from register MCA_IPID[47:44](InstanceIdHi).
+ * The InstanceIdHi field represents the instance ID of the GPU.
+ * Which needs to be mapped to a value used by Linux,
+ * where GPU nodes are simply numerically after the CPU nodes.
+ */
+ node_id = amd_get_gpu_node_system_id(m->ipid);
Thanks,
Yazen