From owner-svn-src-head@freebsd.org Sun Aug 9 12:58:58 2015 Return-Path: Delivered-To: svn-src-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 B74C699884C; Sun, 9 Aug 2015 12:58:58 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E6409AC; Sun, 9 Aug 2015 12:58:58 +0000 (UTC) (envelope-from kwm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t79Cww2d027167; Sun, 9 Aug 2015 12:58:58 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t79CwvGj027161; Sun, 9 Aug 2015 12:58:57 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201508091258.t79CwvGj027161@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Sun, 9 Aug 2015 12:58:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r286524 - in head: . etc sys/dev/drm sys/dev/drm2 X-SVN-Group: head 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.20 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: Sun, 09 Aug 2015 12:58:58 -0000 Author: kwm (ports committer) Date: Sun Aug 9 12:58:56 2015 New Revision: 286524 URL: https://svnweb.freebsd.org/changeset/base/286524 Log: Add a new group named 'video' with the id of 44. And make drm create devices in /dev/dri/ with this new group. This will allow ports and users to more easily access to these devices for OpenGL and OpenCL support. Reviewed by: dumbbell@ Approved by: dumbbell@ Differential Revision: https://reviews.freebsd.org/D1260 Modified: head/UPDATING head/etc/group head/sys/dev/drm/drmP.h head/sys/dev/drm2/drmP.h Modified: head/UPDATING ============================================================================== --- head/UPDATING Sun Aug 9 12:20:22 2015 (r286523) +++ head/UPDATING Sun Aug 9 12:58:56 2015 (r286524) @@ -31,6 +31,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11 disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20150809: + The default group assigned to /dev/dri entries has been changed + from 'wheel' to 'video' with the id of '44'. If you want to have + access to the dri devices please add yourself to the video group + with: + + # pw groupmod video -m $USER + 20150806: The menu.rc and loader.rc files will now be replaced during upgrades. Please migrate local changes to menu.rc.local and Modified: head/etc/group ============================================================================== --- head/etc/group Sun Aug 9 12:20:22 2015 (r286523) +++ head/etc/group Sun Aug 9 12:58:56 2015 (r286524) @@ -17,6 +17,7 @@ sshd:*:22: smmsp:*:25: mailnull:*:26: guest:*:31: +video:*:44: bind:*:53: unbound:*:59: proxy:*:62: Modified: head/sys/dev/drm/drmP.h ============================================================================== --- head/sys/dev/drm/drmP.h Sun Aug 9 12:20:22 2015 (r286523) +++ head/sys/dev/drm/drmP.h Sun Aug 9 12:58:56 2015 (r286524) @@ -175,7 +175,7 @@ SYSCTL_DECL(_hw_drm); #define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP) #define DRM_DEV_UID 0 -#define DRM_DEV_GID 0 +#define DRM_DEV_GID 44 /* "video" group */ #define wait_queue_head_t atomic_t #define DRM_WAKEUP(w) wakeup((void *)w) Modified: head/sys/dev/drm2/drmP.h ============================================================================== --- head/sys/dev/drm2/drmP.h Sun Aug 9 12:20:22 2015 (r286523) +++ head/sys/dev/drm2/drmP.h Sun Aug 9 12:58:56 2015 (r286524) @@ -1593,7 +1593,7 @@ SYSCTL_DECL(_hw_drm); #define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP) #define DRM_DEV_UID 0 -#define DRM_DEV_GID 0 +#define DRM_DEV_GID 44 /* "video" group */ #define DRM_WAKEUP(w) wakeup((void *)w) #define DRM_WAKEUP_INT(w) wakeup(w)