EDAC/amd64: Split read_base_mask() into dct/umc functions
authorMuralidhara M K <muralidhara.mk@amd.com>
Fri, 27 Jan 2023 17:04:10 +0000 (17:04 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 24 Mar 2023 12:03:20 +0000 (13:03 +0100)
commitb29dad9bf3ce13e7a37f7fc75ee2c95ac48b9f08
tree6b6980e32fd5f8d8e61533fe671987e75ffbb0f7
parent637f60ef2cc7c015c2e065503f8da89272ab208d
EDAC/amd64: Split read_base_mask() into dct/umc functions

Call them from their respective hw_info_get() paths.

Call the new functions after the setting the chip select base and mask
counts, since those are need to read the correct number of chip select
base and mask registers. And call the new functions before the remaining
set up, because the base and mask register values will be needed later.

  [Yazen: Rebased/reworked patch and reworded commit message. ]

Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Co-developed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Co-developed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230127170419.1824692-14-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c