EDAC/amd64: Allow for DF Indirect Broadcast reads
authorYazen Ghannam <yazen.ghannam@amd.com>
Thu, 28 Oct 2021 17:56:58 +0000 (17:56 +0000)
committerBorislav Petkov <bp@suse.de>
Mon, 15 Nov 2021 11:48:55 +0000 (12:48 +0100)
commit448c3d6085b71aad58cd515469560ee76c982007
tree975cefb21ae90a92bdd8fbedd34d52975dc1c107
parentb3218ae47771f943b3e222f35fc46afacba39929
EDAC/amd64: Allow for DF Indirect Broadcast reads

The DF Indirect Access method allows for "Broadcast" accesses in which
case no specific instance is targeted. Add support using a reserved
instance ID of 0xFF to indicate a broadcast access. Set the FICAA
register appropriately.

Define helpers functions for instance and broadcast reads and use them
where appropriate.

Drop the "amd_" prefix since these functions are all static.

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-4-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c