diff mbox series

[3/5] cpu/msr: add MSR_TEMPERATURE_TARGET to IA32_silvermont_MSRs

Message ID 20190712050822.21432-4-alex.hung@canonical.com
State Accepted
Headers show
Series Updates atom MSRs in IA32_silvermont_MSRs | expand

Commit Message

Alex Hung July 12, 2019, 5:08 a.m. UTC
BIT definition is as below:

15:0    Reserved
23:16   Temperature Target (R)
29:24   Target Offset (R/W)

Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/cpu/msr/msr.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Ivan Hu July 24, 2019, 8:03 a.m. UTC | #1
On 7/12/19 1:08 PM, Alex Hung wrote:
> BIT definition is as below:
> 
> 15:0    Reserved
> 23:16   Temperature Target (R)
> 29:24   Target Offset (R/W)
> 
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>   src/cpu/msr/msr.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/src/cpu/msr/msr.c b/src/cpu/msr/msr.c
> index 1ff4de43..f08dac65 100644
> --- a/src/cpu/msr/msr.c
> +++ b/src/cpu/msr/msr.c
> @@ -483,6 +483,7 @@ static const msr_info IA32_atom_MSRs[] = {
>   static const msr_info IA32_silvermont_MSRs[] = {
>   	{ "MSR_PMG_IO_CAPTURE_BASE",	0x000000e4,	0x000000000007ffffULL, NULL },
>   	{ "MSR_FEATURE_CONFIG",		0x0000013c,	0x0000000000000003ULL, NULL },
> +	{ "MSR_TEMPERATURE_TARGET",	0x000001a2,	0x000000003fff0000ULL, NULL },
>   	{ NULL,				0x00000000,	0, NULL },
>   };
>   
> 

Acked-by: Ivan Hu <ivan.hu@canonical.com>
Colin Ian King July 24, 2019, 3:08 p.m. UTC | #2
On 12/07/2019 06:08, Alex Hung wrote:
> BIT definition is as below:
> 
> 15:0    Reserved
> 23:16   Temperature Target (R)
> 29:24   Target Offset (R/W)
> 
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/cpu/msr/msr.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/cpu/msr/msr.c b/src/cpu/msr/msr.c
> index 1ff4de43..f08dac65 100644
> --- a/src/cpu/msr/msr.c
> +++ b/src/cpu/msr/msr.c
> @@ -483,6 +483,7 @@ static const msr_info IA32_atom_MSRs[] = {
>  static const msr_info IA32_silvermont_MSRs[] = {
>  	{ "MSR_PMG_IO_CAPTURE_BASE",	0x000000e4,	0x000000000007ffffULL, NULL },
>  	{ "MSR_FEATURE_CONFIG",		0x0000013c,	0x0000000000000003ULL, NULL },
> +	{ "MSR_TEMPERATURE_TARGET",	0x000001a2,	0x000000003fff0000ULL, NULL },
>  	{ NULL,				0x00000000,	0, NULL },
>  };
>  
> 

Acked-by: Colin Ian King <colin.king@canonical.com>
diff mbox series

Patch

diff --git a/src/cpu/msr/msr.c b/src/cpu/msr/msr.c
index 1ff4de43..f08dac65 100644
--- a/src/cpu/msr/msr.c
+++ b/src/cpu/msr/msr.c
@@ -483,6 +483,7 @@  static const msr_info IA32_atom_MSRs[] = {
 static const msr_info IA32_silvermont_MSRs[] = {
 	{ "MSR_PMG_IO_CAPTURE_BASE",	0x000000e4,	0x000000000007ffffULL, NULL },
 	{ "MSR_FEATURE_CONFIG",		0x0000013c,	0x0000000000000003ULL, NULL },
+	{ "MSR_TEMPERATURE_TARGET",	0x000001a2,	0x000000003fff0000ULL, NULL },
 	{ NULL,				0x00000000,	0, NULL },
 };