drm/i915/xe2hpd: Identify the memory type for SKUs with GDDR + ECC
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Mon, 24 Mar 2025 17:22:33 +0000 (10:22 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 25 Mar 2025 01:14:06 +0000 (18:14 -0700)
commit327e30123cafcb45c0fc5843da0367b90332999d
tree22e0690a5527b766f371edefb06a81e27e9cdcb5
parent11938353bfbfaf1acad000bac45adc296748f2f1
drm/i915/xe2hpd: Identify the memory type for SKUs with GDDR + ECC

Some SKUs of Xe2_HPD platforms (such as BMG) have GDDR memory type
with ECC enabled. We need to identify this scenario and add a new
case in xelpdp_get_dram_info() to handle it. In addition, the
derating value needs to be adjusted accordingly to compensate for
the limited bandwidth.

Bspec: 64602
Cc: Matt Roper <matthew.d.roper@intel.com>
Fixes: 3adcf970dc7e ("drm/xe/bmg: Drop force_probe requirement")
Cc: stable@vger.kernel.org
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250324-tip-v2-1-38397de319f8@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/soc/intel_dram.c
drivers/gpu/drm/xe/xe_device_types.h