From owner-svn-ports-head@freebsd.org Thu Jan 11 17:57:46 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CBED5E72329; Thu, 11 Jan 2018 17:57:46 +0000 (UTC) (envelope-from sbruno@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 6A7837CC29; Thu, 11 Jan 2018 17:57:46 +0000 (UTC) (envelope-from sbruno@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 9F008184FF; Thu, 11 Jan 2018 17:57:45 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0BHvjaT049195; Thu, 11 Jan 2018 17:57:45 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0BHvjjg049190; Thu, 11 Jan 2018 17:57:45 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201801111757.w0BHvjjg049190@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Thu, 11 Jan 2018 17:57:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458760 - in head/sysutils/x86info: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sbruno X-SVN-Commit-Paths: in head/sysutils/x86info: . files X-SVN-Commit-Revision: 458760 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2018 17:57:47 -0000 Author: sbruno Date: Thu Jan 11 17:57:44 2018 New Revision: 458760 URL: https://svnweb.freebsd.org/changeset/ports/458760 Log: sysutils/x86info Update to top of github tree Add patches from kib@ to fix cache decoding on CPUs after Intel microcode update: https://github.com/kernelslacker/x86info/pull/12 Approved by: swills Relnotes: Yes Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D13866 Added: head/sysutils/x86info/files/patch-cpuid.c (contents, props changed) head/sysutils/x86info/files/patch-cpuid_freebsd.c (contents, props changed) Modified: head/sysutils/x86info/Makefile head/sysutils/x86info/distinfo head/sysutils/x86info/files/patch-Makefile Modified: head/sysutils/x86info/Makefile ============================================================================== --- head/sysutils/x86info/Makefile Thu Jan 11 17:43:47 2018 (r458759) +++ head/sysutils/x86info/Makefile Thu Jan 11 17:57:44 2018 (r458760) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= x86info -DISTVERSION= 1.31snap01 +DISTVERSION= 1.31snap02 CATEGORIES= sysutils MAINTAINER= ports@FreeBSD.org @@ -17,7 +17,7 @@ ONLY_FOR_ARCHS= i386 amd64 USE_GITHUB= yes GH_ACCOUNT= kernelslacker -GH_TAGNAME= 636fbaa +GH_TAGNAME= b7d0839 USES= gmake pkgconfig python:build Modified: head/sysutils/x86info/distinfo ============================================================================== --- head/sysutils/x86info/distinfo Thu Jan 11 17:43:47 2018 (r458759) +++ head/sysutils/x86info/distinfo Thu Jan 11 17:57:44 2018 (r458760) @@ -1,3 +1,3 @@ -TIMESTAMP = 1480247467 -SHA256 (kernelslacker-x86info-1.31snap01-636fbaa_GH0.tar.gz) = 86f832da6ffcb2097fb10d6bab279d15470357f2efbbf1afd647fa26cd056e8c -SIZE (kernelslacker-x86info-1.31snap01-636fbaa_GH0.tar.gz) = 85199 +TIMESTAMP = 1515691206 +SHA256 (kernelslacker-x86info-1.31snap02-b7d0839_GH0.tar.gz) = eda506bac6352ac3f0a2de26601fe98a399f055d52c65298a47e12ce5ef64677 +SIZE (kernelslacker-x86info-1.31snap02-b7d0839_GH0.tar.gz) = 85805 Modified: head/sysutils/x86info/files/patch-Makefile ============================================================================== --- head/sysutils/x86info/files/patch-Makefile Thu Jan 11 17:43:47 2018 (r458759) +++ head/sysutils/x86info/files/patch-Makefile Thu Jan 11 17:57:44 2018 (r458760) @@ -1,23 +1,15 @@ ---- Makefile.orig 2016-10-12 19:04:55 UTC -+++ Makefile -@@ -18,6 +18,7 @@ CFLAGS += -Wstrict-prototypes -Wmissing- - CFLAGS += -Wswitch-enum - CFLAGS += -Wundef - CFLAGS += -Wwrite-strings -+CFLAGS += `pkg-config --cflags libpci` +--- Makefile.orig 2017-09-06 10:17:13.000000000 -0600 ++++ Makefile 2018-01-11 10:23:07.741490000 -0700 +@@ -39,7 +39,7 @@ + LDFLAGS += $(shell pkg-config --libs libpci) - # gcc specific - ifneq ($(shell $(CC) -v 2>&1 | grep -c "clang"), 1) -@@ -37,7 +38,7 @@ CFLAGS += $(shell if [ $(CPP_MAJOR) -eq - LDFLAGS = -Wl,-z,relro,-z,now - ifeq ($(CC),"") -CC = gcc +CC ?= gcc endif ifdef STATIC_LIBPCI -@@ -50,7 +51,7 @@ SHELL = /bin/sh +@@ -52,7 +52,7 @@ V = @ Q = $(V:1=) @@ -26,7 +18,7 @@ all: x86info -@@ -67,7 +68,7 @@ X86INFO_OBJS = $(sort $(patsubst %.c,%.o +@@ -69,7 +69,7 @@ x86info: $(X86INFO_OBJS) $(X86INFO_HEADERS) $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o x86info $(X86INFO_OBJS) \ Added: head/sysutils/x86info/files/patch-cpuid.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/x86info/files/patch-cpuid.c Thu Jan 11 17:57:44 2018 (r458760) @@ -0,0 +1,18 @@ +--- cpuid.c.orig 2017-09-06 10:17:13.000000000 -0600 ++++ cpuid.c 2018-01-11 10:34:12.018249000 -0700 +@@ -21,14 +21,7 @@ + { + unsigned int a = 0, b = 0, c = 0, d = 0; + +- if (eax != NULL) +- a = *eax; +- if (ebx != NULL) +- b = *ebx; +- if (ecx != NULL) +- c = *ecx; +- if (edx != NULL) +- d = *edx; ++ c = idx >> 32; + + bind_cpu(cpunr); + Added: head/sysutils/x86info/files/patch-cpuid_freebsd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/x86info/files/patch-cpuid_freebsd.c Thu Jan 11 17:57:44 2018 (r458760) @@ -0,0 +1,25 @@ +--- cpuid-freebsd.c.orig 2017-09-06 10:17:13.000000000 -0600 ++++ cpuid-freebsd.c 2018-01-11 10:34:01.353720000 -0700 +@@ -39,7 +39,7 @@ + static int nodriver=0; + char cpuname[20]; + int fh; +- cpuctl_cpuid_args_t args; ++ cpuctl_cpuid_count_args_t args; + + if (nodriver == 1) { + if (native_cpuid(CPU_number, idx, eax,ebx,ecx,edx)) +@@ -48,11 +48,12 @@ + } + + args.level = idx; ++ args.level_type = idx >> 32; + /* Ok, use the /dev/CPU interface in preference to the _up code. */ + (void)snprintf(cpuname, sizeof(cpuname), "/dev/cpuctl%u", CPU_number); + fh = open(cpuname, O_RDONLY); + if (fh != -1) { +- if (ioctl(fh, CPUCTL_CPUID, &args) != 0) { ++ if (ioctl(fh, CPUCTL_CPUID_COUNT, &args) != 0) { + perror(cpuname); + exit(EXIT_FAILURE); + }