Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Mar 2014 16:33:00 -0500 (CDT)
From:      Lawrence "The Dreamer" Chen <beastie@tardisi.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/187620: [patch] sysutils/pefs-kmod: AESNI support is missing
Message-ID:  <201403152133.s2FLX0R4023519@zen.lhaven.homeip.net>
Resent-Message-ID: <201403152140.s2FLe0sP018662@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187620
>Category:       ports
>Synopsis:       [patch] sysutils/pefs-kmod: AESNI support is missing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 15 21:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Lawrence "The Dreamer" Chen
>Release:        FreeBSD 9.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD zen.lhaven.homeip.net 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64

	FreeBSD mew.cns.ksu.edu 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0: Sat Jan 11 03:25:02 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	
	AESNI support is missing from pefs-kmod.  Examining the source there's
	is is controlled by PEFS_AESNI, but there's no option to turn it on.
>How-To-Repeat:
	
>Fix:

	
	Add option to turn on AESNI support.

	I built this port on machine with AESNI and one without AESNI, both
	run the same release of FreeBSD.  No problems using it on both,
	just get different kernel messages when it loads.

--- patch begins here ---
--- Makefile.orig	2014-03-13 12:36:48.957873074 -0500
+++ Makefile	2014-03-13 12:35:21.828874302 -0500
@@ -17,6 +17,11 @@
 
 ONLY_FOR_ARCHS=	i386 amd64	# not tested on other archs
 
+OPTIONS_DEFINE=	AESNI
+AESNI_DESC=	Use AES accelerator on (some) Intel CPUs
+
+AESNI_MAKE_ENV=	PEFS_AESNI=yes
+
 USES=		kmod uidfix
 
 .include <bsd.port.mk>
--- patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403152133.s2FLX0R4023519>