From: wangkefeng.wang@huawei.com (Kefeng Wang)
To: linux-arm-kernel@lists.infradead.org
Subject: ask for help about swiotlb buffer is full
Date: Wed, 4 Feb 2015 20:01:01 +0800 [thread overview]
Message-ID: <54D209FD.40100@huawei.com> (raw)
In-Reply-To: <20150202182435.GH22661@e104818-lin.cambridge.arm.com>
On 2015-02-03 2:24, Catalin Marinas wrote:
> On Sat, Jan 31, 2015 at 04:00:06AM +0000, Kefeng Wang wrote:
>> On 2015-01-30 19:59, Catalin Marinas wrote:
[...]
>>>
>>
>> 4kb page, use Make ARCH=arm64 defconfig in v3.19 to generate config.
>>
>> [ 0.678293] software IO TLB [mem 0x7e800000-0x7ec00000] (4MB) mapped at [ffffffc07e800000-ffffffc07ebfffff]
>> [ 0.686991] DMA: preallocated 256 KiB pool for atomic allocations
>
> Was the swiotlb buffer size the same in the 3.16 kernel? The only thing
> I recall adding was the atomic pool allocations but these are only for
> non-coherent DMA ops and only for dma_alloc/free. I assume, in the case
> of SATA, the failure is on the dma_map_sg() path.
Swiotlb buffer size is both 4M in v3.16 and v3.19-rc4, and the failure is
on the dma_map_sg() -> swiotlb_map_sg_attrs.
>
> Maybe with a 3.19 kernel you get more than 4MB swiotlb buffers used at a
> time with your tests; can you try increasing this via a kernel command
> like to, let's say, 8MB? If I got my calculations correctly (an IO TLB
> slab is 1 << 11):
>
> swiotlb=4096
>
> If it still runs out with bigger buffers, we may need to look into
> potential leaks.
>
The buddy allocator can only support 4M contiguous physical memory, so it's
useless to increase swiotlb buffer.
next prev parent reply other threads:[~2015-02-04 12:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <54CB5820.9020102@huawei.com>
2015-01-30 10:19 ` ask for help about swiotlb buffer is full Kefeng Wang
2015-01-30 10:44 ` Robin Murphy
2015-01-31 3:33 ` Kefeng Wang
2015-01-30 11:59 ` Catalin Marinas
2015-01-31 4:00 ` Kefeng Wang
2015-02-02 18:24 ` Catalin Marinas
2015-02-04 12:01 ` Kefeng Wang [this message]
2015-02-04 13:32 ` Catalin Marinas
2015-02-04 14:48 ` Ding Tianhong
2015-02-05 18:19 ` Catalin Marinas
2015-02-07 1:53 ` Kefeng Wang
2015-02-09 16:50 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54D209FD.40100@huawei.com \
--to=wangkefeng.wang@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.