[igt-dev] [PATCH i-g-t v2 12/17] tools/intel_vbt_decode: Clean up driver features block decoding
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Sep 6 12:29:39 UTC 2022
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Print all the stuff from the driver features block, and print
it in the same order as the spec lists it to make it a bit
easier to compare the two.
Also use consistent naming for a bunch of the fields that
exist in both the driver features block and the power conservation
block.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tools/intel_vbt_decode.c | 93 ++++++++++++++++++++++++++++++----------
1 file changed, 70 insertions(+), 23 deletions(-)
diff --git a/tools/intel_vbt_decode.c b/tools/intel_vbt_decode.c
index f82be17b17f5..ecdccd2b9166 100644
--- a/tools/intel_vbt_decode.c
+++ b/tools/intel_vbt_decode.c
@@ -1368,23 +1368,28 @@ static void dump_driver_feature(struct context *context,
{
const struct bdb_driver_features *feature = block_data(block);
- printf("\tBoot Device Algorithm: %s\n", feature->boot_dev_algorithm ?
- "driver default" : "os default");
- printf("\tBlock display switching when DVD active: %s\n",
- YESNO(feature->allow_display_switch_dvd));
- printf("\tAllow display switching when in Full Screen DOS: %s\n",
- YESNO(feature->allow_display_switch_dos));
- printf("\tHot Plug DVO: %s\n", YESNO(feature->hotplug_dvo));
- printf("\tDual View Zoom: %s\n", YESNO(feature->dual_view_zoom));
- printf("\tDriver INT 15h hook: %s\n", YESNO(feature->int15h_hook));
- printf("\tEnable Sprite in Clone Mode: %s\n",
- YESNO(feature->sprite_in_clone));
printf("\tUse 00000110h ID for Primary LFP: %s\n",
YESNO(feature->primary_lfp_id));
+ printf("\tEnable Sprite in Clone Mode: %s\n",
+ YESNO(feature->sprite_in_clone));
+ printf("\tDriver INT 15h hook: %s\n",
+ YESNO(feature->int15h_hook));
+ printf("\tDual View Zoom: %s\n",
+ YESNO(feature->dual_view_zoom));
+ printf("\tHot Plug DVO: %s\n",
+ YESNO(feature->hotplug_dvo));
+ printf("\tAllow display switching when in Full Screen DOS: %s\n",
+ YESNO(feature->allow_display_switch_dos));
+ printf("\tAllow display switching when DVD active: %s\n",
+ YESNO(feature->allow_display_switch_dvd));
+ printf("\tBoot Device Algorithm: %s\n",
+ feature->boot_dev_algorithm ? "driver default" : "os default");
+
printf("\tBoot Mode X: %u\n", feature->boot_mode_x);
printf("\tBoot Mode Y: %u\n", feature->boot_mode_y);
printf("\tBoot Mode Bpp: %u\n", feature->boot_mode_bpp);
printf("\tBoot Mode Refresh: %u\n", feature->boot_mode_refresh);
+
printf("\tEnable LFP as primary: %s\n",
YESNO(feature->enable_lfp_primary));
printf("\tSelective Mode Pruning: %s\n",
@@ -1397,9 +1402,8 @@ static void dump_driver_feature(struct context *context,
YESNO(feature->nt_clone_support));
printf("\tDefault Power Scheme user interface: %s\n",
feature->power_scheme_ui ? "3rd party" : "CUI");
- printf
- ("\tSprite Display Assignment when Overlay is Active in Clone Mode: %s\n",
- feature->sprite_display_assign ? "primary" : "secondary");
+ printf("\tSprite Display Assignment when Overlay is Active in Clone Mode: %s\n",
+ feature->sprite_display_assign ? "primary" : "secondary");
printf("\tDisplay Maintain Aspect Scaling via CUI: %s\n",
YESNO(feature->cui_aspect_scaling));
printf("\tPreserve Aspect Ratio: %s\n",
@@ -1407,16 +1411,59 @@ static void dump_driver_feature(struct context *context,
printf("\tEnable SDVO device power down: %s\n",
YESNO(feature->sdvo_device_power_down));
printf("\tCRT hotplug: %s\n", YESNO(feature->crt_hotplug));
+
printf("\tLVDS config: %s (0x%x)\n",
lvds_config[feature->lvds_config], feature->lvds_config);
+ printf("\tTV hotplug: %s\n",
+ YESNO(feature->tv_hotplug));
+
+ printf("\tDisplay subsystem enable: %s\n",
+ YESNO(feature->display_subsystem_enable));
+ printf("\tEmbedded platform: %s\n",
+ YESNO(feature->embedded_platform));
printf("\tDefine Display statically: %s\n",
YESNO(feature->static_display));
+
printf("\tLegacy CRT max X: %d\n", feature->legacy_crt_max_x);
printf("\tLegacy CRT max Y: %d\n", feature->legacy_crt_max_y);
printf("\tLegacy CRT max refresh: %d\n",
feature->legacy_crt_max_refresh);
- printf("\tEnable DRRS: %s\n", YESNO(feature->drrs_enabled));
- printf("\tEnable PSR: %s\n", YESNO(feature->psr_enabled));
+
+ printf("\tInternal source termination for HDMI: %s\n",
+ YESNO(feature->hdmi_termination));
+ printf("\tCEA 861-D HDMI support: %s\n",
+ YESNO(feature->cea861d_hdmi_support));
+ printf("\tSelf refresh enable: %s\n",
+ YESNO(feature->self_refresh_enable));
+
+ printf("\tCustom VBT number: 0x%x\n", feature->custom_vbt_version);
+
+ printf("\tPC Features field validity: %s\n",
+ YESNO(feature->pc_feature_valid));
+ printf("\tDynamic Media Refresh Rate Switching (DMRRS): %s\n",
+ YESNO(feature->dmrrs_enabled));
+ printf("\tIntermediate Pixel Storage (IPS): %s\n",
+ YESNO(feature->ips_enabled));
+ printf("\tPanel Self Refresh (PSR): %s\n",
+ YESNO(feature->psr_enabled));
+ printf("\tTurbo Boost Technology: %s\n",
+ YESNO(feature->tbt_enabled));
+ printf("\tGraphics Power Management (GPMT): %s\n",
+ YESNO(feature->gpmt_enabled));
+ printf("\tGraphics Render Standby (RS): %s\n",
+ YESNO(feature->grs_enabled));
+ printf("\tDynamic Refresh Rate Switching (DRRS): %s\n",
+ YESNO(feature->drrs_enabled));
+ printf("\tAutomatic Display Brightness (ADB): %s\n",
+ YESNO(feature->adb_enabled));
+ printf("\tDxgkDDI Backlight Control (DxgkDdiBLC): %s\n",
+ YESNO(feature->bltclt_enabled));
+ printf("\tDisplay Power Saving Technology (DPST): %s\n",
+ YESNO(feature->dpst_enabled));
+ printf("\tSmart 2D Display Technology (S2DDT): %s\n",
+ YESNO(feature->s2ddt_enabled));
+ printf("\tRapid Memory Power Management (RMPM): %s\n",
+ YESNO(feature->rmpm_enabled));
}
static void dump_edp(struct context *context,
@@ -1652,19 +1699,19 @@ static void dump_lfp_power(struct context *context,
printf("\tPanel %d%s\n", i, context->panel_type == i ? " *" : "");
- printf("\t\tDPST: %s\n",
+ printf("\t\tDisplay Power Saving Technology (DPST): %s\n",
YESNO(panel_bool(lfp_block->dpst, i)));
- printf("\t\tPSR: %s\n",
+ printf("\t\tPanel Self Refresh (PSR): %s\n",
YESNO(panel_bool(lfp_block->psr, i)));
- printf("\t\tDRRS: %s\n",
+ printf("\t\tDynamic Refresh Rate Switching (DRRS): %s\n",
YESNO(panel_bool(lfp_block->drrs, i)));
printf("\t\tDisplay LACE support: %s\n",
YESNO(panel_bool(lfp_block->lace_support, i)));
- printf("\t\tADT: %s\n",
+ printf("\t\tAssertive Display Technology (ADT): %s\n",
YESNO(panel_bool(lfp_block->adt, i)));
- printf("\t\tDMRRS: %s\n",
+ printf("\t\tDynamic Media Refresh Rate Switching (DMRRS): %s\n",
YESNO(panel_bool(lfp_block->dmrrs, i)));
- printf("\t\tADB: %s\n",
+ printf("\t\tAutomatic Display Brightness (ADB): %s\n",
YESNO(panel_bool(lfp_block->adb, i)));
printf("\t\tDefault Display LACE enabled: %s\n",
YESNO(panel_bool(lfp_block->lace_enabled_status, i)));
@@ -1682,7 +1729,7 @@ static void dump_lfp_power(struct context *context,
if (context->bdb->version < 233)
continue;
- printf("\t\tVRR feature: %s\n",
+ printf("\t\tVariable Refresh Rate (VRR): %s\n",
YESNO(panel_bool(lfp_block->vrr_feature_enabled, i)));
if (context->bdb->version < 247)
--
2.35.1
More information about the igt-dev
mailing list