mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 14:32:23 +00:00
swiotlb-xen: suppress certain init retries
Only on the 2nd of the paths leading to xen_swiotlb_init()'s "error" label it is useful to retry the allocation; the first one did already iterate through all possible order values. Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/56477481-87da-4962-9661-5e1b277efde0@suse.com Signed-off-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
parent
d9a688add3
commit
79ca5f778a
@ -184,7 +184,7 @@ int __ref xen_swiotlb_init(void)
|
||||
order--;
|
||||
}
|
||||
if (!start)
|
||||
goto error;
|
||||
goto exit;
|
||||
if (order != get_order(bytes)) {
|
||||
pr_warn("Warning: only able to allocate %ld MB for software IO TLB\n",
|
||||
(PAGE_SIZE << order) >> 20);
|
||||
@ -214,6 +214,7 @@ int __ref xen_swiotlb_init(void)
|
||||
pr_info("Lowering to %luMB\n", bytes >> 20);
|
||||
goto retry;
|
||||
}
|
||||
exit:
|
||||
pr_err("%s (rc:%d)\n", xen_swiotlb_error(m_ret), rc);
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user