From: Roman Geller Date: Fri, 6 Jul 2018 14:32:10 +0000 (+0100) Subject: [9610][7885][7872][7570] wlbt: Reduce mifram min alloc block to 64 bytes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b5e9b8afdac68ed297ad8d858c0013cd9584fcbb;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9610][7885][7872][7570] wlbt: Reduce mifram min alloc block to 64 bytes Reduced granularity of miframman allocator to 64 bytes, as this is the Cortex R cache line size. Change-Id: If9260e837750bd138cd19c3066fe4f0385154f4f SCSC-Bug-Id: SSB-41587 Signed-off-by: Roman Geller (cherry picked from commit 9f564e0ee5377eb55d2ce632f8e77d42b0d4b922) --- diff --git a/drivers/misc/samsung/scsc/miframman.c b/drivers/misc/samsung/scsc/miframman.c index 1346b09dbc60..62f4293d8d0d 100644 --- a/drivers/misc/samsung/scsc/miframman.c +++ b/drivers/misc/samsung/scsc/miframman.c @@ -17,6 +17,7 @@ void miframman_init(struct miframman *ram, void *start_dram, size_t size_pool) { mutex_init(&ram->lock); + SCSC_TAG_INFO(MIF, "MIFRAMMAN_BLOCK_SIZE = %d\n", MIFRAMMAN_BLOCK_SIZE); ram->num_blocks = size_pool / MIFRAMMAN_BLOCK_SIZE; if (ram->num_blocks == 0) { diff --git a/drivers/misc/samsung/scsc/miframman.h b/drivers/misc/samsung/scsc/miframman.h index c908065eba94..19b0b1405b06 100644 --- a/drivers/misc/samsung/scsc/miframman.h +++ b/drivers/misc/samsung/scsc/miframman.h @@ -19,7 +19,7 @@ void miframman_free(struct miframman *ram, void *mem); void miframman_deinit(struct miframman *ram); #define MIFRAMMAN_MAXMEM (16 * 1024 * 1024) -#define MIFRAMMAN_BLOCK_SIZE (2 * 1024) +#define MIFRAMMAN_BLOCK_SIZE (64) #define MIFRAMMAN_NUM_BLOCKS ((MIFRAMMAN_MAXMEM) / (MIFRAMMAN_BLOCK_SIZE))