EDAC/amd64: Add context struct
authorYazen Ghannam <yazen.ghannam@amd.com>
Thu, 28 Oct 2021 17:56:59 +0000 (17:56 +0000)
committerBorislav Petkov <bp@suse.de>
Mon, 15 Nov 2021 11:54:16 +0000 (12:54 +0100)
commit70aeb807cf8649dedbcd59b70dfc38fb89bdf1bd
treefeb5f8c9f837710b952acc2e0b912f9a370dc870
parent448c3d6085b71aad58cd515469560ee76c982007
EDAC/amd64: Add context struct

Define an address translation context struct. This will hold values that
will be passed between multiple functions.

Save return address, Node ID, and the Instance ID number to start.
Currently, the UMC number is used as the Instance ID, but future DF
versions may use another value.

Also include a "tmp" field to use when reading registers. This is to
avoid having to define a temporary variable in multiple functions.

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211028175728.121452-5-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c