Context |
Check |
Description |
snowpatch_ozlabs/apply_patch |
fail
|
Failed to apply to any branch
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch powerpc/merge (d20f726744a0312b4b6613333bda7da9bc52fb75)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch powerpc/next (39352430aaa05fbe4ba710231c70b334513078f2)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch linus/master (16fc44d6387e260f4932e9248b985837324705d8)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch powerpc/fixes (791f9e36599d94af5a76d3f74d04e16326761aae)
|
snowpatch_ozlabs/apply_patch |
warning
|
Failed to apply on branch linux-next (1fe5501ba1abf2b7e78295df73675423bd6899a0)
|
@@ -76,11 +76,9 @@ static unsigned long default_nslabs = IO_TLB_DEFAULT_SIZE >> IO_TLB_SHIFT;
static int __init
setup_io_tlb_npages(char *str)
{
- if (isdigit(*str)) {
- /* avoid tail segment of size < IO_TLB_SEGSIZE */
- default_nslabs =
- ALIGN(simple_strtoul(str, &str, 0), IO_TLB_SEGSIZE);
- }
+ if (isdigit(*str))
+ swiotlb_adjust_size(
+ simple_strtoul(str, &str, 0) << IO_TLB_SHIFT);
if (*str == ',')
++str;
if (!strcmp(str, "force"))
Use the proper helper to do the proper alignment of the buffer size to the requirements of the swiotlb allocator instead of open coding the logic. Signed-off-by: Christoph Hellwig <hch@lst.de> --- kernel/dma/swiotlb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)