Andreas Herrmann | 512d102 | 2011-05-25 20:43:31 +0200 | [diff] [blame] | 1 | Kernel driver fam15h_power |
| 2 | ========================== |
| 3 | |
| 4 | Supported chips: |
| 5 | * AMD Family 15h Processors |
Huang Rui | 5aeb5d2 | 2015-08-27 16:07:37 +0800 | [diff] [blame] | 6 | * AMD Family 16h Processors |
Andreas Herrmann | 512d102 | 2011-05-25 20:43:31 +0200 | [diff] [blame] | 7 | |
| 8 | Prefix: 'fam15h_power' |
| 9 | Addresses scanned: PCI space |
| 10 | Datasheets: |
| 11 | BIOS and Kernel Developer's Guide (BKDG) For AMD Family 15h Processors |
Huang Rui | 5aeb5d2 | 2015-08-27 16:07:37 +0800 | [diff] [blame] | 12 | BIOS and Kernel Developer's Guide (BKDG) For AMD Family 16h Processors |
Andreas Herrmann | 512d102 | 2011-05-25 20:43:31 +0200 | [diff] [blame] | 13 | |
Andreas Herrmann | d034fbf | 2012-10-29 18:50:47 +0100 | [diff] [blame] | 14 | Author: Andreas Herrmann <herrmann.der.user@googlemail.com> |
Andreas Herrmann | 512d102 | 2011-05-25 20:43:31 +0200 | [diff] [blame] | 15 | |
| 16 | Description |
| 17 | ----------- |
| 18 | |
| 19 | This driver permits reading of registers providing power information |
Huang Rui | 5aeb5d2 | 2015-08-27 16:07:37 +0800 | [diff] [blame] | 20 | of AMD Family 15h and 16h processors. |
Andreas Herrmann | 512d102 | 2011-05-25 20:43:31 +0200 | [diff] [blame] | 21 | |
Huang Rui | 5aeb5d2 | 2015-08-27 16:07:37 +0800 | [diff] [blame] | 22 | For AMD Family 15h and 16h processors the following power values can |
| 23 | be calculated using different processor northbridge function |
| 24 | registers: |
Andreas Herrmann | 512d102 | 2011-05-25 20:43:31 +0200 | [diff] [blame] | 25 | |
| 26 | * BasePwrWatts: Specifies in watts the maximum amount of power |
| 27 | consumed by the processor for NB and logic external to the core. |
| 28 | * ProcessorPwrWatts: Specifies in watts the maximum amount of power |
| 29 | the processor can support. |
| 30 | * CurrPwrWatts: Specifies in watts the current amount of power being |
| 31 | consumed by the processor. |
| 32 | |
| 33 | This driver provides ProcessorPwrWatts and CurrPwrWatts: |
| 34 | * power1_crit (ProcessorPwrWatts) |
| 35 | * power1_input (CurrPwrWatts) |
| 36 | |
| 37 | On multi-node processors the calculated value is for the entire |
| 38 | package and not for a single node. Thus the driver creates sysfs |
| 39 | attributes only for internal node0 of a multi-node processor. |