Re: [PATCH] ARC: Fix ICCM & DCCM runtime size checks

2020-04-03 Thread Vineet Gupta
On 4/2/20 10:54 AM, Eugeniy Paltsev wrote: > 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

[PATCH] ARC: Fix ICCM & DCCM runtime size checks

2020-04-02 Thread Eugeniy Paltsev
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