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

drm/i915/dram: Use intel_dram_type_str() for pnv

Replace the hand rolled PNV memory type printk string
stuff with intel_dram_type_str().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250902133113.18778-3-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>

+5 -3
+3 -2
drivers/gpu/drm/i915/display/i9xx_wm.c
··· 105 105 } 106 106 107 107 drm_dbg_kms(display->drm, 108 - "Could not find CxSR latency for DDR%s, FSB %u kHz, MEM %u kHz\n", 109 - is_ddr3 ? "3" : "2", dram_info->fsb_freq, dram_info->mem_freq); 108 + "Could not find CxSR latency for %s, FSB %u kHz, MEM %u kHz\n", 109 + intel_dram_type_str(dram_info->type), 110 + dram_info->fsb_freq, dram_info->mem_freq); 110 111 111 112 return NULL; 112 113 }
+1 -1
drivers/gpu/drm/i915/soc/intel_dram.c
··· 31 31 32 32 #define DRAM_TYPE_STR(type) [INTEL_DRAM_ ## type] = #type 33 33 34 - static const char *intel_dram_type_str(enum intel_dram_type type) 34 + const char *intel_dram_type_str(enum intel_dram_type type) 35 35 { 36 36 static const char * const str[] = { 37 37 DRAM_TYPE_STR(UNKNOWN),
+1
drivers/gpu/drm/i915/soc/intel_dram.h
··· 39 39 unsigned int intel_fsb_freq(struct drm_i915_private *i915); 40 40 unsigned int intel_mem_freq(struct drm_i915_private *i915); 41 41 const struct dram_info *intel_dram_info(struct drm_device *drm); 42 + const char *intel_dram_type_str(enum intel_dram_type type); 42 43 43 44 #endif /* __INTEL_DRAM_H__ */