Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dram: bypass fsb/mem freq detection on dg2 and no display

Non-display now calls the intel_fsb_freq() and intel_mem_freq()
functions, so we don't have to have the frequencies initialized for dg2
or non-display cases.

This is in preparation for unifying the pre-gen9 handling in dram info.

DG2 remains a special case as described in commit 5eb6bf0b44e7
("drm/i915/dg2: Don't read DRAM info").

v2: Rebase

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/7bfed06d431354f3918ea73d43a2ec8ed9426a76.1755511595.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Jani Nikula 10e656f8 6c9f41d8

+4 -1
+4 -1
drivers/gpu/drm/i915/soc/intel_dram.c
··· 727 727 struct dram_info *dram_info; 728 728 int ret; 729 729 730 + if (IS_DG2(i915) || !HAS_DISPLAY(display)) 731 + return 0; 732 + 730 733 detect_fsb_freq(i915); 731 734 detect_mem_freq(i915); 732 735 733 - if (GRAPHICS_VER(i915) < 9 || IS_DG2(i915) || !HAS_DISPLAY(display)) 736 + if (GRAPHICS_VER(i915) < 9) 734 737 return 0; 735 738 736 739 dram_info = drmm_kzalloc(&i915->drm, sizeof(*dram_info), GFP_KERNEL);