Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cad647d authored by Langsdorf, Mark's avatar Langsdorf, Mark Committed by Dave Jones
Browse files

[CPUFREQ] correct powernow-k8 fid/vid masks for extended parts



The fid/vid masks for parts using the extended parts are slightly incorrect and can result in
incorrect fid/vid codes being applied.  No instances of this problem have been reported in
the field but it could be a problem with future parts.

Signed-off-by: default avatarMark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent e7bdd7a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -885,8 +885,8 @@ static int fill_powernow_table_fidvid(struct powernow_k8_data *data, struct cpuf
		u32 vid;

		if (data->exttype) {
			fid = data->acpi_data.states[i].status & FID_MASK;
			vid = (data->acpi_data.states[i].status >> VID_SHIFT) & VID_MASK;
			fid = data->acpi_data.states[i].status & EXT_FID_MASK;
			vid = (data->acpi_data.states[i].status >> VID_SHIFT) & EXT_VID_MASK;
		} else {
			fid = data->acpi_data.states[i].control & FID_MASK;
			vid = (data->acpi_data.states[i].control >> VID_SHIFT) & VID_MASK;
+3 −1
Original line number Diff line number Diff line
@@ -169,7 +169,9 @@ struct powernow_k8_data {
#define MVS_MASK        3
#define VST_MASK     0x7f
#define VID_MASK     0x1f
#define FID_MASK     0x3f
#define FID_MASK     0x1f
#define EXT_VID_MASK 0x3f
#define EXT_FID_MASK 0x3f


/*