Skip to contentSkip to conversation

tools/intel_bios_reader: Dump more bits for general bit definitions block (1)

PATCH New [email protected] 1 participant 3 messages Jun 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 tools/intel_bios_reader: Dump more bits for general bit definitions block (1)

From: Ville Syrjälä <[email protected]>

---
 tools/intel_bios.h        | 17 ++++++++++++++---
 tools/intel_bios_reader.c | 35 +++++++++++++++++++++++++++++++++--
 2 files changed, 47 insertions(+), 5 deletions(-)
tools/intel_bios.h +14 -3
index b7ebd48ef7e7..c4632da336d9 100644
@@ -104,12 +104,19 @@ struct bdb_general_features {
 	unsigned char ssc_freq:1;
 	unsigned char enable_lfp_on_override:1;
 	unsigned char disable_ssc_ddt:1;
-	unsigned char rsvd8:3;	/* finish byte */
+	unsigned char underscan_vga_timings:1;
+	unsigned char dynamic_cdclk:1; /* 183 */
+	unsigned char vbios_hotplug_support:1;
 
 	/* bits 3 */
 	unsigned char disable_smooth_vision:1;
 	unsigned char single_dvi:1;
-	unsigned char rsvd9:6;	/* finish byte */
+	unsigned char rotate_180:1; /* 181 */
+	unsigned char fdi_rx_polarity:1;
+	unsigned char vbios_extended_mode:1; /* 160 */
+	unsigned char copy_ilfp_dtd_to_sdvo_lvds_dtd:1; /* 160 */
+	unsigned char panel_best_fit_timing:1; /* 160 */
+	unsigned char ignore_strap_state:1; /* 160 */
 
 	/* bits 4 */
 	unsigned char legacy_monitor_detect;
@@ -117,7 +124,11 @@ struct bdb_general_features {
 	/* bits 5 */
 	unsigned char int_crt_support:1;
 	unsigned char int_tv_support:1;
-	unsigned char rsvd11:6;	/* finish byte */
+	unsigned char int_efp_support:1;
+	unsigned char dp_ssc_enable:1;
+	unsigned char dp_ssc_freq:1;
+	unsigned char dp_ssc_dongle_supported:1;
+	unsigned char rsvd11:2;	/* finish byte */
 } __attribute__ ((packed));
 
 #define GPIO_PIN_NONE		0x00	/* "N/A" */
tools/intel_bios_reader.c +33 -2
index 4c4ab666fc55..588cc2c36c7a 100644
@@ -151,6 +151,7 @@ static void dump_general_features(struct context *context,
 	printf("\tMessage: %s\n", YESNO(features->msg_enable));
 	printf("\tClear screen: %d\n", features->clear_screen);
 	printf("\tDVO color flip required: %s\n", YESNO(features->color_flip));
+
 	printf("\tExternal VBT: %s\n", YESNO(features->download_ext_vbt));
 	printf("\tEnable SSC: %s\n", YESNO(features->enable_ssc));
 	if (features->enable_ssc) {
@@ -171,13 +172,45 @@ static void dump_general_features(struct context *context,
 	       YESNO(features->enable_lfp_on_override));
 	printf("\tDisable SSC on clone: %s\n",
 	       YESNO(features->disable_ssc_ddt));
+	printf("\tUnderscan support for VGA timings: %s\n",
+	       YESNO(features->underscan_vga_timings));
+	if (context->bdb->version >= 183)
+		printf("\tDynamic CD clock: %s\n", YESNO(features->dynamic_cdclk));
+	printf("\tHotplug support in VBIOS: %s\n",
+	       YESNO(features->vbios_hotplug_support));
+
 	printf("\tDisable smooth vision: %s\n",
 	       YESNO(features->disable_smooth_vision));
 	printf("\tSingle DVI for CRT/DVI: %s\n", YESNO(features->single_dvi));
+	if (context->bdb->version >= 181)
+		printf("\tEnable 180 degree rotation: %s\n", YESNO(features->rotate_180));
+	printf("\tInverted FDI Rx polarity: %s\n", YESNO(features->fdi_rx_polarity));
+	if (context->bdb->version >= 160) {
+		printf("\tExtended VBIOS mode: %s\n", YESNO(features->vbios_extended_mode));
+		printf("\tCopy iLFP DTD to SDVO LVDS DTD: %s\n", YESNO(features->copy_ilfp_dtd_to_sdvo_lvds_dtd));
+		printf("\tBest fit panel timing algorithm: %s\n", YESNO(features->panel_best_fit_timing));
+		printf("\tIgnore strap state: %s\n", YESNO(features->ignore_strap_state));
+	}
+
 	printf("\tLegacy monitor detect: %s\n",
 	       YESNO(features->legacy_monitor_detect));
+
 	printf("\tIntegrated CRT: %s\n", YESNO(features->int_crt_support));
 	printf("\tIntegrated TV: %s\n", YESNO(features->int_tv_support));
+	printf("\tIntegrated EFP: %s\n", YESNO(features->int_efp_support));
+	printf("\tDP SSC enable: %s\n", YESNO(features->dp_ssc_enable));
+	if (features->dp_ssc_enable) {
+		if (IS_VALLEYVIEW(context->devid) || IS_CHERRYVIEW(context->devid) ||
+		    IS_BROXTON(context->devid))
+			printf("\tSSC frequency: 100 MHz\n");
+		else if (HAS_PCH_SPLIT(context->devid))
+			printf("\tSSC frequency: %s\n", features->dp_ssc_freq ?
+			       "100 MHz" : "120 MHz");
+		else
+			printf("\tSSC frequency: %s\n", features->dp_ssc_freq ?
+			       "100 MHz" : "96 MHz");
+	}
+	printf("\tDP SSC dongle supported: %s\n", YESNO(features->dp_ssc_dongle_supported));
 }
 
 static void dump_backlight_info(struct context *context,
@@ -361,8 +394,6 @@ static const char *efp_conn(uint8_t type)
 	return "unknown";
 }
 
-
-
 static void dump_child_device(struct context *context,
 			      struct child_device_config *child)
 {
Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

PATCH 2/3 tools/intel_bios_reader: Dump out more information from the child device structure

From: Ville Syrjälä <[email protected]>

---
 tools/intel_bios.h        | 51 ++++++++++++++++++++++++++++++-----
 tools/intel_bios_reader.c | 69 ++++++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 107 insertions(+), 13 deletions(-)
tools/intel_bios.h +44 -7
index c4632da336d9..ac8c8650272d 100644
@@ -272,18 +272,55 @@ struct child_device_config {
 struct efp_child_device_config {
 	uint16_t handle;
 	uint16_t device_type;
-	uint8_t skip1[12];
+	uint16_t device_class;
+	uint8_t i2c_speed;
+	uint8_t dp_onboard_redriver; /* 158 */
+	uint8_t dp_ondock_redriver; /* 158 */
+	uint8_t hdmi_level_shifter_value:4; /* 169 */
+	uint8_t hdmi_max_data_rate:4; /* 204 */
+	uint16_t dtd_buf_ptr; /* 161 */
+	uint8_t edidless_efp:1; /* 161 */
+	uint8_t compression_enable:1; /* 198 */
+	uint8_t compression_method:1; /* 198 */
+	uint8_t ganged_edp:1; /* 202 */
+	uint8_t skip0:4;
+	uint8_t compression_structure_index:4; /* 198 */
+	uint8_t skip1:4;
+	uint8_t slave_port; /*  202 */
+	uint8_t skip2;
 	uint8_t port;
-	uint8_t skip2[2];
+	uint8_t i2c_pin; /* for add-in card */
+	uint8_t slave_addr; /* for add-in card */
 	uint8_t ddc_pin;
-	uint8_t skip3[3];
-	uint8_t docked_port;
+	uint16_t edid_ptr;
+	uint8_t dvo_config;
+	uint8_t efp_docked_port:1; /* 158 */
+	uint8_t lane_reversal:1; /* 184 */
+	uint8_t onboard_lspcon:1; /* 192 */
+	uint8_t iboost_enable:1; /* 196 */
+	uint8_t hpd_invert:1; /* BXT 196 */
+	uint8_t slip3:3;
 	uint8_t hdmi_compat:1;
-	uint8_t conn_info:3;
-	uint8_t skip4:4;
+	uint8_t dp_compat:1;
+	uint8_t tmds_compat:1;
+	uint8_t skip4:5;
 	uint8_t aux_chan;
 	uint8_t dongle_detect;
-	uint8_t skip5[6];
+	uint8_t pipe_cap:2;
+	uint8_t sdvo_stall:1; /* 158 */
+	uint8_t hpd_status:2;
+	uint8_t integrated_encoder:1;
+	uint8_t skip5:2;
+	uint8_t dvo_wiring;
+	uint8_t mipi_bridge_type; /* 171 */
+	uint16_t device_class_ext;
+	uint8_t dvo_function;
+	uint8_t dp_usb_type_c:1; /* 195 */
+	uint8_t skip6:7;
+	uint8_t dp_usb_type_c_2x_gpio_index; /* 195 */
+	uint16_t dp_usb_type_c_2x_gpio_pin; /* 195 */
+	uint8_t iboost_dp:4; /* 196 */
+	uint8_t iboost_hdmi:4; /* 196 */
 } __attribute__ ((packed));
 
 struct bdb_general_definitions {
tools/intel_bios_reader.c +63 -6

78 lines not on this page · raw message

Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw

PATCH 3/3 tools/intel_bios_reader: Dump out more of the eDP block

In reply to [email protected]

From: Ville Syrjälä <[email protected]>

---
 tools/intel_bios.h        |  26 ++++++++---
 tools/intel_bios_reader.c | 108 ++++++++++++++++++++++++++++++++++++++++++----
 2 files changed, 120 insertions(+), 14 deletions(-)
tools/intel_bios.h +21 -5
index ac8c8650272d..925bb06cd110 100644
@@ -658,21 +658,37 @@ struct edp_power_seq {
 	uint16_t t12;
 } __attribute__ ((packed));
 
-struct edp_link_params {
+struct edp_fast_link_params {
 	uint8_t rate:4;
 	uint8_t lanes:4;
 	uint8_t preemphasis:4;
 	uint8_t vswing:4;
 } __attribute__ ((packed));
 
-struct bdb_edp {
+struct edp_pwm_delays {
+	uint16_t pwm_on_to_backlight_enable;
+	uint16_t backlight_disable_to_pwm_off;
+} __attribute__ ((packed));
+
+struct edp_full_link_params {
+	uint8_t preemphasis:4;
+	uint8_t vswing:4;
+} __attribute__ ((packed));
+
+struct bdb_edp { /* 155 */
 	struct edp_power_seq power_seqs[16];
 	uint32_t color_depth;
-	struct edp_link_params link_params[16];
+	struct edp_fast_link_params fast_link_params[16];
 	uint32_t sdrrs_msa_timing_delay;
 
-	uint16_t edp_s3d_feature;
-	uint16_t edp_t3_optimization;
+	uint16_t s3d_feature; /* 163 */
+	uint16_t t3_optimization; /* 165 */
+	uint64_t vswing_preemph_table_selection; /* 173 */
+	uint16_t fast_link_training; /* 182 */
+	uint16_t dpcd_600h_write_required; /* 185 */
+	struct edp_pwm_delays pwm_delays[16]; /* 186 */
+	uint16_t full_link_params_provided; /* 199 */
+	struct edp_full_link_params full_link_params[16]; /* 199 */
 } __attribute__ ((packed));
 
 
tools/intel_bios_reader.c +99 -9

144 lines not on this page · raw message

Signature · 6 lines
2.7.4

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx