|
|
Log in / Subscribe / Register

Address Translation support for MI200 and MI300 models

From:  Muralidhara M K <muralimk-AT-amd.com>
To:  <linux-edac-AT-vger.kernel.org>, <x86-AT-kernel.org>
Subject:  [PATCH 0/7] Address Translation support for MI200 and MI300 models
Date:  Wed, 25 Oct 2023 07:33:32 +0000
Message-ID:  <20231025073339.630093-1-muralimk@amd.com>
Cc:  <linux-kernel-AT-vger.kernel.org>, <bp-AT-alien8.de>, <mchehab-AT-kernel.org>, Muralidhara M K <muralidhara.mk-AT-amd.com>
Archive-link:  Article

From: Muralidhara M K <muralidhara.mk@amd.com>

This patchset adds support for MI200 heterogeneous address translation support
and MI300A address translation support, fixups on HBM3 memory address maps.

The patch set depends on the Yazen's patches submitted
"AMD Address Translation Library"
https://lore.kernel.org/linux-edac/20231005173526.42831-1...

The patchset does following

Patch 1:
MI200 heterogeneous address translation support.

Patch 2:
MI300 heterogeneous address translation support.

Patch 3:
Convert HBM3 MCA Decoded address to Normalized address.

Patch 4:
lookup table to get the correct cs instance id for HBM3.

Patch 5:
Convert physical cs id to logical cs id by static lookup
table.

Patch 6:
Reading correct bit fields to get cs_fabric_id.

Patch 7:
Identify all physical pages in a row to retire all 8 columns
of pages when the error is injected to avoid future errors.


Muralidhara M K (7):
  RAS: Add Address Translation support for MI200
  RAS: Add Address Translation support for MI300
  RAS: Add MCA Error address conversion for UMC
  RAS: Add static lookup table to get CS physical ID
  RAS: Add fixed Physical to logical CS ID mapping table
  RAS: Get CS fabirc ID register bit fields
  EDAC/amd64: RAS: platform/x86/amd: Identify all physical pages in row

 drivers/edac/amd64_edac.c         |   5 +
 drivers/ras/amd/atl/core.c        |   5 +-
 drivers/ras/amd/atl/dehash.c      | 149 ++++++++++++++
 drivers/ras/amd/atl/denormalize.c | 110 ++++++++++-
 drivers/ras/amd/atl/internal.h    |  27 ++-
 drivers/ras/amd/atl/map.c         | 158 ++++++++++++---
 drivers/ras/amd/atl/reg_fields.h  |  42 +++-
 drivers/ras/amd/atl/system.c      |   4 +
 drivers/ras/amd/atl/umc.c         | 309 +++++++++++++++++++++++++++++-
 include/linux/amd-atl.h           |   2 +
 10 files changed, 778 insertions(+), 33 deletions(-)

-- 
2.25.1



Copyright © 2023, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds