Index: share/man/man4/Makefile =================================================================== --- share/man/man4/Makefile +++ share/man/man4/Makefile @@ -110,6 +110,7 @@ chromebook_platform.4 \ ${_chvgpio.4} \ ciss.4 \ + ${_coredirector.4} \ ${_coretemp.4} \ cp2112.4 \ ${_cpuctl.4} \ @@ -797,6 +798,7 @@ _bxe.4= bxe.4 _bytgpio.4= bytgpio.4 _chvgpio.4= chvgpio.4 +_coredirector.4= coredirector.4 _coretemp.4= coretemp.4 _cpuctl.4= cpuctl.4 _dpms.4= dpms.4 Index: share/man/man4/coredirector.4 =================================================================== --- /dev/null +++ share/man/man4/coredirector.4 @@ -0,0 +1,79 @@ +.\"- +.\" Copyright (c) 2024 Koine Yuusuke +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.Dd March 17, 2024 +.Dt COREDIRECTOR 4 +.Os +.Sh NAME +.Nm coredirector +.Nd device driver for Intel Hardware Feedback Interface / Intel Thread Director +.Sh SYNOPSIS +To compile this driver into the kernel, +place the following line in your +kernel configuration file: +.Bd -ragged -offset indent +.Cd "device coredirector" +.Ed +.Pp +Alternatively, to load the driver as a +module at boot time, place the following line in +.Xr loader.conf 5 : +.Bd -literal -offset indent +coredirector_load="YES" +.Ed +.Pp +Also, by setting the following option in the your +kernel configuration file, the obtaioned value can +be passed to the ULE scheduler. +.Bd -ragged -offset indent +.Cd "options CPUGRP_SCORE" +.Ed +.Pp +However, currently no improvements to scheduling +using the passed values have been implemented. +.Sh DESCRIPTION +The +.Nm +driver provides support for Intel Hardware Feedback +Interface (HFI) / Intel Thread Director (ITD) in Intel +Hybrid-Architecture CPUs. +.Pp +The +.Nm +driver reports each CPU core group's Performance / +Efficiency parameter through a sysctl node, named +.Va dev.coredirector.%d.hwtable . +.Sh SEE ALSO +.Xr sysctl 8 +.Sh HISTORY +The +.Nm +driver currently under development. +.Sh AUTHORS +.An -nosplit +The +.Nm +driver was written by +.An Koine Yuusuke Aq Mt koinec@yahoo.co.jp .