]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/bw: Extract get_display_bw_params()
authorGustavo Sousa <gustavo.sousa@intel.com>
Mon, 18 May 2026 16:14:04 +0000 (13:14 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Tue, 19 May 2026 17:25:04 +0000 (14:25 -0300)
commit4b478c8bad54d38aecf7bc0ccfb30d4ae2cd33e3
tree826229fcdd8f0a91f1818b7b8038ff8317762698
parentb0938f96cf483a452286294bef802aca6dc4ff37
drm/i915/bw: Extract get_display_bw_params()

Just like it is done for the platform-specific bandwidth parameters, use
a separate function named get_display_bw_params() to return the display
IP-specific parameters.  This simplifies intel_bw_init_hw() by having
just one call for each of the *_get_bw_info() functions.

v2:
  - Prefer to call get_display_bw_params() only once in
    intel_bw_init_hw() instead of having multiple calls in each of the
    affected *_get_bw_info() functions. (Jani)

v3:
  - Call get_display_bw_params() only after the check on
    HAS_DISPLAY(display). (Jani)
  - Return &gen11_bw_params only if display version is 11. (Matt)

v4:
  - Like done with get_soc_bw_params(), drop drm_WARN() when no display
    IP is matched.

Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260518-separate-platform-from-diplay-ip-specific-bw-params-v4-5-918528006549@intel.com
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c