From owner-svn-src-head@freebsd.org Mon Jul 9 08:41:55 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6049E103079D; Mon, 9 Jul 2018 08:41:55 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 11BAB8B51A; Mon, 9 Jul 2018 08:41:55 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E775F12BE2; Mon, 9 Jul 2018 08:41:54 +0000 (UTC) (envelope-from wma@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w698fsel073126; Mon, 9 Jul 2018 08:41:54 GMT (envelope-from wma@FreeBSD.org) Received: (from wma@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w698fssE073125; Mon, 9 Jul 2018 08:41:54 GMT (envelope-from wma@FreeBSD.org) Message-Id: <201807090841.w698fssE073125@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: wma set sender to wma@FreeBSD.org using -f From: Wojciech Macek Date: Mon, 9 Jul 2018 08:41:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r336128 - in head/sys/arm64: arm64 include X-SVN-Group: head X-SVN-Commit-Author: wma X-SVN-Commit-Paths: in head/sys/arm64: arm64 include X-SVN-Commit-Revision: 336128 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 08:41:55 -0000 Author: wma Date: Mon Jul 9 08:41:54 2018 New Revision: 336128 URL: https://svnweb.freebsd.org/changeset/base/336128 Log: ARM64: Add ThunderX2 CPU revision macro. Add ThunderX2 name in identcpu.c Submitted by: Patryk Duda Obtained from: Semihalf Sponsored by: Cavium Modified: head/sys/arm64/arm64/identcpu.c head/sys/arm64/include/cpu.h Modified: head/sys/arm64/arm64/identcpu.c ============================================================================== --- head/sys/arm64/arm64/identcpu.c Mon Jul 9 08:37:55 2018 (r336127) +++ head/sys/arm64/arm64/identcpu.c Mon Jul 9 08:41:54 2018 (r336128) @@ -134,6 +134,7 @@ static const struct cpu_parts cpu_parts_arm[] = { /* Cavium */ static const struct cpu_parts cpu_parts_cavium[] = { { CPU_PART_THUNDERX, "ThunderX" }, + { CPU_PART_THUNDERX2, "ThunderX2" }, CPU_PART_NONE, }; Modified: head/sys/arm64/include/cpu.h ============================================================================== --- head/sys/arm64/include/cpu.h Mon Jul 9 08:37:55 2018 (r336127) +++ head/sys/arm64/include/cpu.h Mon Jul 9 08:41:54 2018 (r336128) @@ -97,6 +97,8 @@ #define CPU_REV_THUNDERX_1_0 0x00 #define CPU_REV_THUNDERX_1_1 0x01 +#define CPU_REV_THUNDERX2_0 0x00 + #define CPU_IMPL(midr) (((midr) >> 24) & 0xff) #define CPU_PART(midr) (((midr) >> 4) & 0xfff) #define CPU_VAR(midr) (((midr) >> 20) & 0xf)