View Single Post
  #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