Welcome! Log In Create A New Profile

Advanced

[PATCH] Add support cache line size for Hygon Dhyana CPU

Jinke Fan
May 07, 2019 03:28AM
# HG changeset patch
# User Fanjinke <fanjinke@hygon.cn>
# Date 1557209225 -28800
# Tue May 07 14:07:05 2019 +0800
# Node ID 9bc6da16b217ce2c5fc63048a705c2b3195d3bb7
# Parent 16a1adadf43751f59257ba419f6bacd530dd19d3
Add support cache line size for Hygon Dhyana CPU

Background:
Chengdu Haiguang IC Design Co., Ltd (Hygon) is a Joint Venture between
AMD and Haiguang Information Technology Co.,Ltd., aims at providing high
performance x86 processor for China server market. Its first generation
processor codename is Dhyana, which originates from AMD technology and
shares most of the architecture with AMD's family 17h, but with different
CPU Vendor ID("HygonGenuine")/Family series number(Family 18h).

diff -r 16a1adadf437 -r 9bc6da16b217 src/core/ngx_cpuinfo.c
--- a/src/core/ngx_cpuinfo.c Wed Apr 24 16:38:56 2019 +0300
+++ b/src/core/ngx_cpuinfo.c Tue May 07 14:07:05 2019 +0800
@@ -124,6 +124,8 @@

} else if (ngx_strcmp(vendor, "AuthenticAMD") == 0) {
ngx_cacheline_size = 64;
+ } else if (ngx_strcmp(vendor, "HygonGenuine") == 0) {
+ ngx_cacheline_size = 64;
}
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Add support cache line size for Hygon Dhyana CPU

Jinke Fan 468 May 07, 2019 03:28AM

Re: [PATCH] Add support cache line size for Hygon Dhyana CPU

Maxim Dounin 161 May 08, 2019 12:10PM

Re: [PATCH] Add support cache line size for Hygon Dhyana CPU

Jinke Fan 215 May 08, 2019 11:38PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 177
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready