Project

General

Profile

Actions

Feature #13339

closed

Add support for Hygon Dhyana Family 18h processor

Added by Wen Pu 10 months ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

As a new x86 CPU vendor, Chengdu Haiguang IC Design Co., Ltd (Hygon)
is a joint venture between AMD and Haiguang Information Technology Co.,
Ltd., aims at providing x86 processors for China server market.

The first generation Hygon processor(Dhyana) shares most architecture
with AMD's family 17h, but with different CPU vendor ID
and PCI vendor ID and family series number 18h(Hygon negotiated
with AMD to confirm that only Hygon use family 18h).

To enable Hygon Dhyana support in illumos, add new definitions
X86_VENDORSTR_HYGON("HygonGenuine") and X86_VENDOR_HYGON to identify
Hygon Dhyana CPU.

Initialize the CPU features(cpuid, topology, mca, npe, cmi, cpupm, hma,
lgrpplat, isa, cpc, pcbe, etc) by sharing the code path of AMD family 17h.

The changes have been applied to the current illumos-gate and tested
with OmniOS successfully on Hygon Dhyana processor.


Files

Actions #1

Updated by Electric Monk 10 months ago

  • Gerrit CR set to 1080
Actions #2

Updated by Wen Pu 10 months ago

Some system information:
$ isainfo -x
amd64: clzero monitorx clflushopt fsgsbase rdseed adx avx2 fma bmi2 bmi1 rdrand f16c amd_svm avx xsave movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt amd_sse4a tscp ahf cx16 sse3 sse2 sse fxsr amd_mmx mmx cmov amd_sysc cx8 tsc fpu
i386: clzero monitorx clflushopt rdseed adx avx2 fma bmi2 bmi1 rdrand f16c amd_svm avx xsave movbe sse4.2 sse4.1 ssse3 amd_lzcnt popcnt amd_sse4a tscp ahf cx16 sse3 sse2 sse fxsr amd_mmx mmx cmov amd_sysc cx8 tsc fpu
$ pfexec cpustat -h
cpustat: cannot access performance counters - Operation not applicable

fmtopo, pginfo, lgrpinfo and mdb messages are in the attachments.

Actions #3

Updated by Electric Monk 9 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 9b0429a10eec9313ec782d8421272aff70adbfdc

commit  9b0429a10eec9313ec782d8421272aff70adbfdc
Author: Pu Wen <puwen@hygon.cn>
Date:   2020-12-29T20:01:31.000Z

    13339 Add support for Hygon Dhyana Family 18h processor
    Reviewed by: Robert Mustacchi <rm@fingolfin.org>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF