Commit 37d7b0ef authored by Todd Poynor's avatar Todd Poynor Committed by Greg Kroah-Hartman

staging: gasket: page table: convert various logs to debug level

Debugging information is improperly logged at non-debug log level in a
number of places, and some logs regarding error conditions may be
generated too frequently, such that these could cause performance
problems and/or obscure other logs.  Convert these to debug log level.
Signed-off-by: default avatarZhongze Hu <frankhu@chromium.org>
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d079f20
...@@ -306,7 +306,7 @@ int gasket_page_table_init( ...@@ -306,7 +306,7 @@ int gasket_page_table_init(
* hardware register that contains the page table size. * hardware register that contains the page table size.
*/ */
if (total_entries == ULONG_MAX) { if (total_entries == ULONG_MAX) {
gasket_nodev_error( gasket_nodev_debug(
"Error reading page table size. " "Error reading page table size. "
"Initializing page table with size 0."); "Initializing page table with size 0.");
total_entries = 0; total_entries = 0;
...@@ -323,7 +323,7 @@ int gasket_page_table_init( ...@@ -323,7 +323,7 @@ int gasket_page_table_init(
*ppg_tbl = kzalloc(sizeof(**ppg_tbl), GFP_KERNEL); *ppg_tbl = kzalloc(sizeof(**ppg_tbl), GFP_KERNEL);
if (!*ppg_tbl) { if (!*ppg_tbl) {
gasket_nodev_error("No memory for page table."); gasket_nodev_debug("No memory for page table.");
return -ENOMEM; return -ENOMEM;
} }
...@@ -332,7 +332,7 @@ int gasket_page_table_init( ...@@ -332,7 +332,7 @@ int gasket_page_table_init(
if (bytes != 0) { if (bytes != 0) {
pg_tbl->entries = vmalloc(bytes); pg_tbl->entries = vmalloc(bytes);
if (!pg_tbl->entries) { if (!pg_tbl->entries) {
gasket_nodev_error( gasket_nodev_debug(
"No memory for address translation metadata."); "No memory for address translation metadata.");
kfree(pg_tbl); kfree(pg_tbl);
*ppg_tbl = NULL; *ppg_tbl = NULL;
...@@ -658,7 +658,7 @@ int gasket_page_table_system_status(struct gasket_page_table *page_table) ...@@ -658,7 +658,7 @@ int gasket_page_table_system_status(struct gasket_page_table *page_table)
} }
if (gasket_page_table_num_entries(page_table) == 0) { if (gasket_page_table_num_entries(page_table) == 0) {
gasket_nodev_error("Page table size is 0."); gasket_nodev_debug("Page table size is 0.");
return GASKET_STATUS_LAMED; return GASKET_STATUS_LAMED;
} }
...@@ -903,7 +903,7 @@ static int gasket_perform_mapping( ...@@ -903,7 +903,7 @@ static int gasket_perform_mapping(
(unsigned long long)ptes[i].dma_addr); (unsigned long long)ptes[i].dma_addr);
if (ptes[i].dma_addr == -1) { if (ptes[i].dma_addr == -1) {
gasket_nodev_error( gasket_nodev_debug(
"%s i %d" "%s i %d"
" -> fail to map page %llx " " -> fail to map page %llx "
"[pfn %p ohys %p]\n", "[pfn %p ohys %p]\n",
...@@ -1612,7 +1612,7 @@ int gasket_set_user_virt( ...@@ -1612,7 +1612,7 @@ int gasket_set_user_virt(
*/ */
pg_tbl = gasket_dev->page_table[0]; pg_tbl = gasket_dev->page_table[0];
if (!pg_tbl) { if (!pg_tbl) {
gasket_nodev_error( gasket_nodev_debug(
"%s: invalid page table index", __func__); "%s: invalid page table index", __func__);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment