Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad1d7a39 authored by Abhimanyu Garg's avatar Abhimanyu Garg
Browse files

swiotlb: Setting default IO TBL value to 1MB



swiotlb was allocting the 64MB of memory at boot up time, because we
used CMA so we do not use it. We can reduce it to 1MB.

Change-Id: I137f6e9069f86dcc9dcd883868b3e8a08c29d710
Signed-off-by: default avatarAbhimanyu Garg <agarg@codeaurora.org>
parent d21f97b7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -116,8 +116,8 @@ unsigned long swiotlb_nr_tbl(void)
}
EXPORT_SYMBOL_GPL(swiotlb_nr_tbl);

/* default to 64MB */
#define IO_TLB_DEFAULT_SIZE (64UL<<20)
/* default to 1MB */
#define IO_TLB_DEFAULT_SIZE SZ_1M
unsigned long swiotlb_size_or_default(void)
{
	unsigned long size;