]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: Fix ICCM & DCCM runtime size checks
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Thu, 2 Apr 2020 17:54:28 +0000 (20:54 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Sun, 12 Apr 2020 23:17:00 +0000 (16:17 -0700)
commit33423fca0731be2eff69980683f283b28fed21eb
treed77d6a745b6dd81f04406ca396ef435871febdc9
parent0e6c92ce1d170795a396f8108369eb2c8412797f
ARC: Fix ICCM & DCCM runtime size checks

As of today the ICCM and DCCM size checks are incorrectly using
mismatched units (KiB checked against bytes). The CONFIG_ARC_DCCM_SZ
and CONFIG_ARC_ICCM_SZ are in KiB, but the size calculated in
runtime and stored in cpu->dccm.sz and cpu->iccm.sz is in bytes.

Fix that.

Reported-by: Paul Greco <pmgreco@us.ibm.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/setup.c