Skip to content

Commit

Permalink
14013 Update Zen 3 cpuid_subr.c info
Browse files Browse the repository at this point in the history
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
rmustacc committed Aug 12, 2021
1 parent f204773 commit bdc2492
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
17 changes: 16 additions & 1 deletion usr/src/uts/i86pc/os/cpuid_subr.c
Expand Up @@ -34,7 +34,7 @@
* Copyright 2012 Jens Elkner <jel+illumos@cs.uni-magdeburg.de>
* Copyright 2012 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
* Copyright 2019 Joyent, Inc.
* Copyright 2020 Oxide Computer Company
* Copyright 2021 Oxide Computer Company
*/

/*
Expand Down Expand Up @@ -656,6 +656,21 @@ static const struct amd_rev_mapent {
*/
{ 0x18, 0x00, 0x00, 0x1, 0x1, X86_CHIPREV_HYGON_18_DN_A1, "DN_A1",
A_SKTS_18 },

/*
* =============== AuthenticAMD Family 0x19 ===============
*/
{ 0x19, 0x00, 0x00, 0x0, 0x0, X86_CHIPREV_AMD_19_GN_A0, "GN-A0",
A_SKTS_19 },
{ 0x19, 0x01, 0x01, 0x0, 0x0, X86_CHIPREV_AMD_19_GN_B0, "GN-B0",
A_SKTS_19 },
{ 0x19, 0x01, 0x01, 0x1, 0x1, X86_CHIPREV_AMD_19_GN_B1, "GN-B1",
A_SKTS_19 },

{ 0x19, 0x21, 0x21, 0x0, 0x0, X86_CHIPREV_AMD_19_VMR_B0, "VMR-B0",
A_SKTS_20 },
{ 0x19, 0x21, 0x21, 0x2, 0x2, X86_CHIPREV_AMD_19_VMR_B1, "VMR-B1",
A_SKTS_20 },
};

/*
Expand Down
11 changes: 11 additions & 0 deletions usr/src/uts/intel/sys/x86_archext.h
Expand Up @@ -979,6 +979,17 @@ extern "C" {
#define X86_CHIPREV_HYGON_18_DN_A1 \
_X86_CHIPREV_MKREV(X86_VENDOR_HYGON, 0x18, 0x0001)

#define X86_CHIPREV_AMD_19_GN_A0 \
_X86_CHIPREV_MKREV(X86_VENDOR_AMD, 0x19, 0x0000)
#define X86_CHIPREV_AMD_19_GN_B0 \
_X86_CHIPREV_MKREV(X86_VENDOR_AMD, 0x19, 0x0001)
#define X86_CHIPREV_AMD_19_GN_B1 \
_X86_CHIPREV_MKREV(X86_VENDOR_AMD, 0x19, 0x0002)
#define X86_CHIPREV_AMD_19_VMR_B0 \
_X86_CHIPREV_MKREV(X86_VENDOR_AMD, 0x19, 0x0003)
#define X86_CHIPREV_AMD_19_VMR_B1 \
_X86_CHIPREV_MKREV(X86_VENDOR_AMD, 0x19, 0x0004)

/*
* Various socket/package types, extended as the need to distinguish
* a new type arises. The top 8 byte identfies the vendor and the
Expand Down

0 comments on commit bdc2492

Please sign in to comment.