mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-27 03:36:44 +00:00
bios_reader: Fix SSC frequency parse for Ironlake/Sandybridge
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
This commit is contained in:
parent
020abdb7cc
commit
581205db44
@ -36,6 +36,9 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
#include "intel_bios.h"
|
#include "intel_bios.h"
|
||||||
|
#include "intel_gpu_tools.h"
|
||||||
|
|
||||||
|
static uint32_t devid;
|
||||||
|
|
||||||
/* no bother to include "edid.h" */
|
/* no bother to include "edid.h" */
|
||||||
#define _H_ACTIVE(x) (x[2] + ((x[4] & 0xF0) << 4))
|
#define _H_ACTIVE(x) (x[2] + ((x[4] & 0xF0) << 4))
|
||||||
@ -148,9 +151,14 @@ static void dump_general_features(void)
|
|||||||
printf("\tDVO color flip required: %s\n", YESNO(features->color_flip));
|
printf("\tDVO color flip required: %s\n", YESNO(features->color_flip));
|
||||||
printf("\tExternal VBT: %s\n", YESNO(features->download_ext_vbt));
|
printf("\tExternal VBT: %s\n", YESNO(features->download_ext_vbt));
|
||||||
printf("\tEnable SSC: %s\n", YESNO(features->enable_ssc));
|
printf("\tEnable SSC: %s\n", YESNO(features->enable_ssc));
|
||||||
if (features->enable_ssc)
|
if (features->enable_ssc) {
|
||||||
printf("\tSSC frequency: %s\n", features->ssc_freq ?
|
if (HAS_PCH_SPLIT(devid))
|
||||||
"100 MHz (66 MHz on 855)" : "96 MHz (48 MHz on 855)");
|
printf("\tSSC frequency: %s\n", features->ssc_freq ?
|
||||||
|
"100 MHz" : "120 MHz");
|
||||||
|
else
|
||||||
|
printf("\tSSC frequency: %s\n", features->ssc_freq ?
|
||||||
|
"100 MHz (66 MHz on 855)" : "96 MHz (48 MHz on 855)");
|
||||||
|
}
|
||||||
printf("\tLFP on override: %s\n",
|
printf("\tLFP on override: %s\n",
|
||||||
YESNO(features->enable_lfp_on_override));
|
YESNO(features->enable_lfp_on_override));
|
||||||
printf("\tDisable SSC on clone: %s\n",
|
printf("\tDisable SSC on clone: %s\n",
|
||||||
@ -661,6 +669,7 @@ int main(int argc, char **argv)
|
|||||||
struct stat finfo;
|
struct stat finfo;
|
||||||
struct bdb_block *block;
|
struct bdb_block *block;
|
||||||
char signature[17];
|
char signature[17];
|
||||||
|
struct pci_device *pci_dev;
|
||||||
|
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
printf("usage: %s <rom file>\n", argv[0]);
|
printf("usage: %s <rom file>\n", argv[0]);
|
||||||
@ -720,6 +729,9 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
pci_dev = intel_get_pci_device();
|
||||||
|
devid = pci_dev->device_id;
|
||||||
|
|
||||||
dump_general_features();
|
dump_general_features();
|
||||||
dump_general_definitions();
|
dump_general_definitions();
|
||||||
// dump_child_devices();
|
// dump_child_devices();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user