Skip to content

Commit

Permalink
drm/i915/bios: Parse HOBL parameter
Browse files Browse the repository at this point in the history
HOBL means hours of battery life, it is a power-saving feature
were supported motherboards can use a special voltage swing table
that uses less power.

So here parsing the VBT to check if this feature is supported.

BSpec: 20150
Reviewed-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200708205512.21625-3-jose.souza@intel.com
  • Loading branch information
José Roberto de Souza committed Jul 9, 2020
1 parent f0e86e0 commit f615cb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/display/intel_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,9 @@ parse_power_conservation_features(struct drm_i915_private *dev_priv,
*/
if (!(power->drrs & BIT(panel_type)))
dev_priv->vbt.drrs_type = DRRS_NOT_SUPPORTED;

if (bdb->version >= 232)
dev_priv->vbt.edp.hobl = power->hobl & BIT(panel_type);
}

static void
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/display/intel_vbt_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,7 @@ struct bdb_lfp_power {
u16 adb;
u16 lace_enabled_status;
struct agressiveness_profile_entry aggressivenes[16];
u16 hobl; /* 232+ */
} __packed;

/*
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ struct intel_vbt_data {
bool initialized;
int bpp;
struct edp_power_seq pps;
bool hobl;
} edp;

struct {
Expand Down

0 comments on commit f615cb6

Please sign in to comment.