DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th June 2013
clod clod is offline
New User
 
Join Date: Feb 2013
Posts: 2
Default i915 bitmask values

Hello everyone,

Giving a brief look at the code here http ://ftp .fr.openbsd.org/pub/OpenBSD/src/sys/dev/pci/drm/i915/i915_drv.c it states

Enable power-saving render C-state 6.
* Different stages can be selected via bitmask values

for i915_enable_rc6 , now my questions are how do I set bitmask values? and are they applicable also to other variables (such as i915_enable_fbc) ?

Thank you

Claudio

Last edited by J65nko; 7th June 2013 at 02:09 PM. Reason: fixed "speling" in title ;)
Reply With Quote
  #2   (View Single Post)  
Old 7th June 2013
thirdm thirdm is offline
Spam Deminer
 
Join Date: May 2009
Posts: 248
Default

Quote:
Originally Posted by clod View Post
Hello everyone,

Giving a brief look at the code here http ://ftp .fr.openbsd.org/pub/OpenBSD/src/sys/dev/pci/drm/i915/i915_drv.c it states

Enable power-saving render C-state 6.
* Different stages can be selected via bitmask values

for i915_enable_rc6 , now my questions are how do I set bitmask values? and are they applicable also to other variables (such as i915_enable_fbc) ?

Thank you

Claudio

The full comment in that code is...


Code:
/*
 * Enable power-saving render C-state 6.
 * Different stages can be selected via bitmask values
 * (0 = disable; 1 = enable rc6; 2 = enable deep rc6; 4 = enable deepest rc6).
 * For example, 3 would enable rc6 and deep rc6, and 7 would enable everything.
 * default: -1 (use per-chip default)
 */
int i915_enable_rc6 = -1;
i.e. it's the bitwise OR of the different values listed to get a union of their features, as is generally the case for masks. You set i915_enable_rc6 as described above and recompile. Whether the driver will work correctly with non-default values I have no idea.

The other variables in that file have their own bitmask values, which are documented similarly.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct Compiz? i915... punk0x29a FreeBSD General 1 1st September 2017 08:14 PM
declare same alias twice, alias values are different, why ? cq04cw Programming 5 29th March 2011 01:24 PM
pf tables how long values stored ijk FreeBSD Security 3 12th August 2008 11:45 AM


All times are GMT. The time now is 02:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick