]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Read DIMM size in Gb rather than GB
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 29 Sep 2020 13:13:12 +0000 (16:13 +0300)
committerJosé Roberto de Souza <jose.souza@intel.com>
Wed, 30 Sep 2020 20:32:05 +0000 (13:32 -0700)
commit0dbacc89555305f2c4526b725da5e3aea64c8352
tree17b1b76bff9a3dbaf3643245b2ba1bd7b9a66b49
parent33267703df1562a625a76a654927e1fbd4b6d0ce
drm/i915: Read DIMM size in Gb rather than GB

CNL+ can report DIMM sizes in .5 GB units. In order to not trauncate
away the .5 GB let's switch to storing the DIMM size in Gb units.

Cc: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200929131312.12999-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_dram.c