From: Kishon Vijay Abraham I <kishon@ti.com>
To: Christoph Hellwig <hch@lst.de>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>
Subject: Re: pci-usb/pci-sata broken with LPAE config after "reduce use of block bounce buffers"
Date: Wed, 5 Feb 2020 10:45:24 +0530 [thread overview]
Message-ID: <a5eb4f73-418a-6780-354f-175d08395e71@ti.com> (raw)
In-Reply-To: <20200203142155.GA16388@lst.de>
Hi Christoph,
On 03/02/20 7:51 PM, Christoph Hellwig wrote:
> On Fri, Jan 31, 2020 at 05:14:01PM +0530, Kishon Vijay Abraham I wrote:
>>> Can you throw in a little debug printk if this comes from
>>> dma_direct_possible or swiotlb_map?
>>
>> I could see swiotlb_tbl_map_single() returning DMA_MAPPING_ERROR.
>>
>> Kernel with debug print:
>> https://github.com/kishon/linux-wip.git nvm_dma_issue
>>
>> Full log: https://pastebin.ubuntu.com/p/Xf2ngxc3kB/
>
> Ok, this mostly like means we allocate a swiotlb buffer that isn't
> actually addressable. To verify that can you post the output with the
> first attached patch? If it shows the overflow message added there,
> please try if the second patch fixes it.
I'm seeing some sort of busy loop after applying your 1st patch. I sent
a SysRq to see where it is stuck
[ 182.641398] sysrq: Show Blocked State
[ 182.645080] task PC stack pid father
[ 182.650359] sync D 0 2101 1901 0x00000000
[ 182.655889] [<c0a399b8>] (__schedule) from [<c0a39e54>]
(schedule+0xa0/0x138)
[ 182.663063] [<c0a39e54>] (schedule) from [<c0a3a484>]
(io_schedule+0x14/0x34)
[ 182.670237] [<c0a3a484>] (io_schedule) from [<c02eebec>]
(wait_on_page_bit+0x14c/0x1a8)
[ 182.678283] [<c02eebec>] (wait_on_page_bit) from [<c02edaa4>]
(__filemap_fdatawait_range+0x94/0xec)
[ 182.687374] [<c02edaa4>] (__filemap_fdatawait_range) from
[<c02edb8c>] (filemap_fdatawait_keep_errors+0x24/0x50)
[ 182.697601] [<c02edb8c>] (filemap_fdatawait_keep_errors) from
[<c0385a84>] (sync_inodes_sb+0x1a8/0x23c)
[ 182.707041] [<c0385a84>] (sync_inodes_sb) from [<c035bd84>]
(iterate_supers+0x88/0xdc)
[ 182.714998] [<c035bd84>] (iterate_supers) from [<c0389be4>]
(ksys_sync+0x40/0xb8)
[ 182.722519] [<c0389be4>] (ksys_sync) from [<c0389c64>]
(sys_sync+0x8/0x10)
[ 182.729429] [<c0389c64>] (sys_sync) from [<c0201000>]
(ret_fast_syscall+0x0/0x4c)
[ 182.736943] Exception stack(0xe5461fa8 to 0xe5461ff0)
[ 182.742016] 1fa0: be8a8db4 be8a8db8 00000000
ffffffff 00000000 0009d6b8
[ 182.750230] 1fc0: be8a8db4 be8a8db8 00000001 00000024 be8a8db4
00000000 b6f0b000 0009d6dc
[ 182.758443] 1fe0: b6e2e3d0 be8a8c1c 00064821 b6e2e3dc
Full log here: https://pastebin.ubuntu.com/p/q6yDtP9vxR/
Thanks
Kishon
>
next prev parent reply other threads:[~2020-02-05 5:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-15 10:59 pci-usb/pci-sata broken with LPAE config after "reduce use of block bounce buffers" Kishon Vijay Abraham I
2019-11-15 13:06 ` Christoph Hellwig
2019-11-15 14:18 ` Kishon Vijay Abraham I
2019-11-16 16:35 ` Christoph Hellwig
2019-11-18 17:21 ` Robin Murphy
2019-11-25 5:43 ` Kishon Vijay Abraham I
2020-01-27 13:10 ` Kishon Vijay Abraham I
2020-01-27 13:22 ` Robin Murphy
2020-01-29 6:24 ` Kishon Vijay Abraham I
2020-01-30 7:58 ` Christoph Hellwig
2020-01-30 8:09 ` Kishon Vijay Abraham I
2020-01-30 16:42 ` Christoph Hellwig
2020-01-31 11:44 ` Kishon Vijay Abraham I
2020-02-03 14:21 ` Christoph Hellwig
2020-02-05 5:15 ` Kishon Vijay Abraham I [this message]
2020-02-05 7:47 ` Christoph Hellwig
2020-02-05 8:32 ` Kishon Vijay Abraham I
2020-02-05 8:48 ` Christoph Hellwig
2020-02-05 9:18 ` Kishon Vijay Abraham I
2020-02-05 9:19 ` Christoph Hellwig
2020-02-05 9:33 ` Kishon Vijay Abraham I
2020-02-05 16:05 ` Christoph Hellwig
2020-02-17 14:23 ` Christoph Hellwig
2020-02-18 12:15 ` Kishon Vijay Abraham I
2020-04-02 12:01 ` Kishon Vijay Abraham I
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=a5eb4f73-418a-6780-354f-175d08395e71@ti.com \
--to=kishon@ti.com \
--cc=hch@lst.de \
--cc=linux-pci@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).