]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/intel_csr.c Fix DMC FW Loading issue on ICL.
authorJyoti Yadav <jyoti.r.yadav@intel.com>
Fri, 31 Aug 2018 06:00:23 +0000 (02:00 -0400)
committerImre Deak <imre.deak@intel.com>
Fri, 31 Aug 2018 13:46:46 +0000 (16:46 +0300)
commit18a79da8eff0a0688b48896f0d3563cf26f746e3
tree193d131b553a17c66217789d04901e2b267154e9
parent79e3126e00a86073cd830d90d52c287a86e7b139
drm/i915/intel_csr.c Fix DMC FW Loading issue on ICL.

This patch resolves the DMC FW loading issue.
Earlier DMC FW package have only one DMC FW for one stepping. But as such
there is no such restriction from Package side.
For ICL icl_dmc_ver1_07.bin binary package has DMC FW for 2 steppings.
So while reading the dmc_offset from package header, for 1st stepping
offset used to come 0x0 and was working fine till now.
But for second stepping and other steppings, offset is non zero number
and is in dwords. So we need to convert into bytes to fetch correct DMC
FW from correct place.

v2 : Added check for DMC FW max size for various gen. (Imre Deak)
v3 : Corrected naming convention for various gen. (Imre Deak)
v4 : Initialized max_fw_size to 0
v5 : Corrected DMC FW MAX_SIZE for various gen. (Imre Deak)
v6 : Fixed the typo issues.

Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Jyoti Yadav <jyoti.r.yadav@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1535695223-4648-1-git-send-email-jyoti.r.yadav@intel.com
drivers/gpu/drm/i915/intel_csr.c