size = buffer->data + prz->buffer_size - block;
numerr = persistent_ram_decode_rs8(prz, block, size, par);
if (numerr > 0) {
- pr_devel("error in block %p, %d\n", block, numerr);
+ pr_info("error in block %p, %d\n", block, numerr);
prz->corrected_bytes += numerr;
} else if (numerr < 0) {
- pr_devel("uncorrectable error in block %p\n", block);
+ pr_info("uncorrectable error in block %p\n", block);
prz->bad_blocks++;
}
block += prz->ecc_info.block_size;
page_start = start - offset_in_page(start);
page_count = DIV_ROUND_UP(size + offset_in_page(start), PAGE_SIZE);
+#ifndef CONFIG_DEBUG_SNAPSHOT
if (memtype)
prot = pgprot_noncached(PAGE_KERNEL);
else
prot = pgprot_writecombine(PAGE_KERNEL);
-
+#else
+ /*
+ * If using exynos-snapshot, we can get the debug information
+ * from tracing data of exynos-snapshot. So we don't need noncacheable
+ * region that could cause performace problems.
+ */
+ prot = PAGE_KERNEL;
+#endif
pages = kmalloc_array(page_count, sizeof(struct page *), GFP_KERNEL);
if (!pages) {
pr_err("%s: Failed to allocate array for %u pages\n",
pr_info("found existing invalid buffer, size %zu, start %zu\n",
buffer_size(prz), buffer_start(prz));
else {
- pr_debug("found existing buffer, size %zu, start %zu\n",
+ pr_info("found existing buffer, size %zu, start %zu\n",
buffer_size(prz), buffer_start(prz));
persistent_ram_save_old(prz);
return 0;
}
} else {
- pr_debug("no valid data in buffer (sig = 0x%08x)\n",
+ pr_info("no valid data in buffer (sig = 0x%08x)\n",
prz->buffer->sig);
}