]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/bw: Don't call intel_dram_info() too early
authorGustavo Sousa <gustavo.sousa@intel.com>
Mon, 18 May 2026 16:14:00 +0000 (13:14 -0300)
committerGustavo Sousa <gustavo.sousa@intel.com>
Tue, 19 May 2026 17:25:03 +0000 (14:25 -0300)
commit2c0e9814b427abe382ac4d7bc444fcd03f4e7610
tree65bf88b2065851d0bbb77cf57162f46b1f79fa81
parent05e0550b65cd1604bd515fbc65f522bce4c10a87
drm/i915/bw: Don't call intel_dram_info() too early

If we end-up bailing early from intel_bw_init_hw() due to
!HAS_DISPLAY(display), the call to intel_dram_info() to initialize
dram_info will be meaningless.  Move the call to be done after that
check.

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