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

Commit cfae3c59 authored by Vinay Sudra's avatar Vinay Sudra
Browse files

soc: qcom: Remove reserved-memory free operation for xbl log dump



Remove reserved-memory free operation perform after successful
copy log into driver buffer which may lead to boot failure.

Change-Id: I8833eb1d2ab0d10c88c6904f55f99cd7ada8ccb5
Signed-off-by: default avatarVinay Sudra <vsudra@codeaurora.org>
parent be348e49
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -29,17 +29,6 @@ static ssize_t xbl_log_show(struct file *fp,
static struct bin_attribute attribute =
__BIN_ATTR(xbl_log, 0444, xbl_log_show, NULL, 0);

static void free_xbl_log_buf(phys_addr_t paddr, size_t size)
{
	unsigned long pfn_start = 0, pfn_end = 0, pfn_idx = 0;

	memblock_free(paddr, size);
	pfn_start = paddr >> PAGE_SHIFT;
	pfn_end = (paddr + size) >> PAGE_SHIFT;
	for (pfn_idx = pfn_start; pfn_idx < pfn_end; pfn_idx++)
		free_reserved_page(pfn_to_page(pfn_idx));
}

static int xbl_log_kthread(void *arg)
{
	int err = 1;
@@ -104,8 +93,6 @@ static int xbl_log_kthread(void *arg)
		memcpy(xbl_log_buf, addr, xbl_log_size);
		xbl_log_buf[xbl_log_size-1] = '\0';
		memunmap(addr);
		if (xbl_log_size)
			free_xbl_log_buf(xbl_log_paddr, xbl_log_size);
		return 0;
	}