If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:avm power.ko

From BoxMatrix


BoxMatrix >> Shell-Commands >> avm_power.ko @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Kernel-Module

Note that Kernel 2.4 and builtin *.o modules have been renamed to *.ko for an easier comparison.

Goto:   Events  -  Configuration  -  Calculation  -  GPL-Browser  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

avm_power.ko is a (virtual) power management module by AVM.
It sends information about the CPU load and power consumption to the system.

It provides the /dev/avm_power device for Configuration of its power calculations.

This is a virtual module to have an article about it. It is part of the kernel source at:

drivers/char/avm_power/

On Puma6 and Puma7 models avm_power.ko runs in dual Linux mode, see the explanation of the powermanagment_remote event.

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this module. Last update: 2023-12-10 05:13 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Sink evsink powermanagment_remote_sink 7* 6.24 - 7.50 Event-Sink of avm_power.ko AVM
Receives event powermanagment_remote (event) 7* 6.24 - 7.50 Remote power saving status AVM
Source evsrc cpu_idle (evsrc) 74* 6.20 - 7.57 Event-Source of avm_power.ko AVM
Sends event cpu_idle (event) 74* 6.20 - 7.57 CPU, DSP and memory consumption AVM
Sends event remote_notifier 12* 6.24 - 7.50 Remote Event-Source notify AVM
Source evsrc cpu_run (evsrc) 68* 6.80 - 7.57 Event-Source of avm_power.ko AVM
Sends event cpu_run (event) 68* 6.80 - 7.57 Per core CPU load AVM
Sends event remote_notifier 12* 6.87 - 7.50 Remote Event-Source notify AVM
Source evsrc pm_info_stat 74* 6.20 - 7.57 Event-Source of avm_power.ko AVM
Sends event pm_ressourceinfo_status 69* 6.20 - 7.57 Power consumption and system temperature AVM
Sends event remote_notifier 7* 6.24 - 7.50 Remote Event-Source notify AVM
Source evsrc powermanagment_remote (evsrc) 12* 6.24 - 7.50 Event-Source of avm_power.ko / extswitch_watch AVM
Sends event powermanagment_remote (event) 7* 6.24 - 7.50 Remote power saving status AVM
Sends event remote_notifier 7* 6.24 - 7.50 Remote Event-Source notify AVM
Source evsrc powermanagment_status (evsrc) 74* 6.20 - 7.57 Event-Source of avm_power.ko AVM
Sends event powermanagment_status (event) 69* 6.20 - 7.57 DSL power saving status AVM
Sends event remote_notifier 7* 6.24 - 7.50 Remote Event-Source notify AVM
Source evsrc telefonprofile (evsrc) 74* 6.20 - 7.57 Event-Source of avm_power.ko AVM
Sends event remote_notifier 7* 6.24 - 7.50 Remote Event-Source notify AVM
Sends event telefonprofile (event) 69* 6.20 - 7.57 Telephony power saving change AVM
Source evsrc temperature (evsrc) 74* 6.20 - 7.57 Event-Source of avm_power.ko AVM
Sends event remote_notifier 7* 6.24 - 7.50 Remote Event-Source notify AVM
Sends event temperature (event) 69* 6.20 - 7.57 System temperature AVM
23 event relations for this module

Configuration

Configurartion is done at boot time using the write only /dev/avm_power device. Excerpt from files fw 7.39:

cat /lib/modules/pm_info.in >/dev/avm_power

Let's have a look at the config file:

cat lib/modules/pm_info.in

PMINFO_MODE=7,100,141,10,100
PMINFO_MODE=4,100,130,10,100
PMINFO_MODE=1,100,0,1,0
PMINFO_MODE=14,100,29,10,-17
PMINFO_MODE=2,100,0,1,1500
PMINFO_MODE=3,100,0,1,2500
PMINFO_MODE=8,100,200,78,150
PMINFO_MODE=11,900,5,1,0
PMINFO_MODE=10,100,15,1,0
PMINFO_MODE=9,2267,1,1,50

Possible commands from the usage help debug output in avm_power_file.c:

PMINFO_MODE = device, norm_rate, multiplier, divider, offset
PMINFO_SET  = device, power_rate
ETH_MODE    = port, state
LOAD_MODE   = mode (0 auto, 1 off, > 1 Level)
IDLE_MODE   = mode

The device also allows to set PowerMode scripts:

echo MODE="name"  >/dev/avm_power

Here the list of scripts from power.h, not all of these work from userland:

* te_active
* dsl
* LTE
* ata
* vdsl
* update
* dect_trace_on
* dect_trace_off
* telefon_profile_on
* telefon_profile_off
* multicast_profile_on
* multicast_profile_off
* voip_profile_on
* voip_profile_off
* usb_current_req
* pcmlink_bus_off
* pcmlink_bus_on
* pots_load
* te_load
* te_reload
* pots_reload
* tepots_switchauto
* tepots_switchmanu
* lock_governor
* unlock_governor
* e1_active
* e1_inactive

Commands which open the device in fw 7.39 are:

Calculation

Here caculation findings will be collected. The source also contains an excel file explaining the calculation.

Ethernet power consumption from the source of avm_cpmac.ko fw 7.29:

/******************************************************************************\
 * Powermanagement                                                            *
 *                                                                            *
 * To report reasonable values to the powermanagement module there has to be  *
 * distinguished between products with different hardware capabilities. As an *
 * example and base for the chosen values, here is an overview of values for  *
 * the 7320 with two Gigabit PHYs. The values were obtained in the urloader.  *
 *                                                                            *
 * two links with  overall power  derived values                              *
 *                                for one port                                *
 *   1 GiBits/s       4,6 W          550 mW                                   *
 * 100 MiBits/s       3,7 W          100 mW                                   *
 *  10 MiBits/s       3,6 W           50 mW                                   *
 * no link            3,5 W            0 mW                                   *
 *                                                                            *
\******************************************************************************/

GPL-Browser

Daily updated index of all avm_power.ko code findings on the GPL-Browser. Last update: 2024-04-19 20:13 GMT.
The Files header attempts to list the files which belong to this module. Useful if a directory contains multiple modules.
The Browse column points to the Path of the Makefile referring this code on the gpl.boxmatrix.info service.
The SoC column lists the Chip-Codenames, the Model column lists the nicks of the Box-Models.
The Diff column links the comparison of the AVM Kernel to the pristine original from Kernel.org.
The Download column links the full tarball the respective directory content is extracted from.
The presence of the source does not mean it fits the respective model and architecture. See the Model-Matrix where it's used.
Note that this list matches module names with hyphen (-) and underscore (_) exchangeable, same as modprobe does.

Dependencies

Daily updated index of all dependencies of this module. Last update: 2024-04-19 07:32 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Enabled by kcfg CONFIG_AVM_POWER 65 4.74 - 7.90 AVM power managment support (avm_power.ko, cpu_temperature.ko) Linux
Enabled by kcfg CONFIG_AVM_POWER_REMOTE_SINK 42 7.04 - 7.62 Powermanagment Remote-Sink (avm_power.ko) Linux
2 dependencies for this module

Model-Matrix

Daily updated index of the presence, path and size of this module for each model. Last update: 2024-04-19 05:15 GMT.
Showing all models using this module. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 6670 Cable (arm) 7.61 - 7.62 ./kernel/drivers/char/avm_power <builtin>
FRITZ!Box 6670 Cable (atom) 7.61 - 7.62 ./kernel/drivers/char/avm_power <builtin>
2 models use this module

Symbols

Daily updated index of all symbols of this module. Last update: 2024-04-19 07:32 GMT.

Firmware Symbol
0 symbols for this module

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

a