linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Chen Wang <unicorn_wang@outlook.com>
To: kbusch@kernel.org, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me,
	linux-nvme@lists.infradead.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org,
	fengchun.li@sophgo.com, Inochi Amaoto <inochiama@outlook.com>
Subject: Re: [bug report] WARNING when nvme_probe
Date: Sat, 7 Dec 2024 12:26:14 +0800	[thread overview]
Message-ID: <PNZPR01MB4528980B1F286C5843B70DBFFE322@PNZPR01MB4528.INDPRD01.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <PNZPR01MB4528CE2B4B42BD765EC8DDE1FE322@PNZPR01MB4528.INDPRD01.PROD.OUTLOOK.COM>

Adding CC to Inochi, who might be intereseted in too.

On 2024/12/7 12:22, Chen Wang wrote:
> Hello,
>
> When I test with latest 6.13-rc1, I see kernel complains as below, but 
> I don't see this in 6.12 serials (6.12-rc1 & 6.12-rc7).
>
> I'm developing PCIe driver and there is a RC switch which has some 
> devices conneted to, including a  nvme device.
>
> Can somebody help double-check and comment?
>
> Sent to NVME related mails and CCed to MM, who might be interested in 
> this question.
>
> Thanks,
>
> Chen
>
>
> [    2.075408] ------------[ cut here ]------------
> [    2.075414] WARNING: CPU: 51 PID: 403 at mm/page_alloc.c:4727 
> __alloc_pages_noprof+0x788/0xd08
> [    2.075432] Modules linked in:
> [    2.075442] CPU: 51 UID: 0 PID: 403 Comm: kworker/u257:0 Not 
> tainted 6.13.0-rc1+ #1
> [    2.075449] Hardware name: Milk-V Pioneer (DT)
> [    2.075454] Workqueue: async async_run_entry_fn
> [    2.075467] epc : __alloc_pages_noprof+0x788/0xd08
> [    2.075473]  ra : __dma_direct_alloc_pages.isra.0+0x1f8/0x434
> [    2.075480] epc : ffffffff8029e252 ra : ffffffff800d1f96 sp : 
> ffffffd7017bb840
> [    2.075485]  gp : ffffffff82072a28 tp : ffffffd701761c00 t0 : 
> ffffffd703b023b8
> [    2.075488]  t1 : 0000000000000000 t2 : 6d7768206e6f6d77 s0 : 
> ffffffd7017bb9e0
> [    2.075491]  s1 : 0000000000000cc0 a0 : 0000000000000cc0 a1 : 
> 000000000000000e
> [    2.075495]  a2 : 0000000000000000 a3 : 0000000000000000 a4 : 
> 0000000000000001
> [    2.075498]  a5 : ffffffff82013d7a a6 : 3fffffffffffffff a7 : 
> 000000000000003e
> [    2.075501]  s2 : ffffffffffffffff s3 : 0000000000000000 s4 : 
> 0000000004000000
> [    2.075504]  s5 : 0000000000003fff s6 : ffffffffffffffff s7 : 
> 000000000000000e
> [    2.075508]  s8 : ffffffff8213d190 s9 : 000000000000000e s10: 
> 0000000000000100
> [    2.075510]  s11: ffffffd70034d3c0 t3 : ffffffd700260f00 t4 : 
> ffffffd700260f00
> [    2.075514]  t5 : ffffffd700260000 t6 : ffffffd7017bb6d8
> [    2.075516] status: 0000000200000120 badaddr: 0000000000000000 
> cause: 0000000000000003
> [    2.075521] [<ffffffff8029e252>] __alloc_pages_noprof+0x788/0xd08
> [    2.075527] [<ffffffff800d1f96>] 
> __dma_direct_alloc_pages.isra.0+0x1f8/0x434
> [    2.075533] [<ffffffff800d27ac>] dma_direct_alloc_pages+0x28/0x11c
> [    2.075537] [<ffffffff800cdc54>] __dma_alloc_pages+0x3a/0x54
> [    2.075547] [<ffffffff800d199c>] dma_alloc_noncontiguous+0x8e/0x1c6
> [    2.075551] [<ffffffff80a3f352>] nvme_setup_host_mem+0x2a8/0x446
> [    2.075558] [<ffffffff80a42dbc>] nvme_probe+0x730/0x802
> [    2.075564] [<ffffffff806fb4dc>] local_pci_probe+0x40/0x82
> [    2.075572] [<ffffffff806fc1a6>] pci_device_probe+0xca/0x1f0
> [    2.075578] [<ffffffff809a2964>] really_probe+0x9e/0x33e
> [    2.075589] [<ffffffff809a2c80>] __driver_probe_device+0x7c/0x132
> [    2.075595] [<ffffffff809a2e0c>] driver_probe_device+0x38/0xc6
> [    2.075601] [<ffffffff809a3182>] 
> __driver_attach_async_helper+0x4a/0xc4
> [    2.075607] [<ffffffff8006616a>] async_run_entry_fn+0x34/0x126
> [    2.075613] [<ffffffff80055a16>] process_one_work+0x172/0x316
> [    2.075621] [<ffffffff80056626>] worker_thread+0x2e2/0x448
> [    2.075626] [<ffffffff8005ee4a>] kthread+0xc2/0xe2
> [    2.075633] [<ffffffff80e8de56>] ret_from_fork+0xe/0x1c
> [    2.075645] ---[ end trace 0000000000000000 ]---
> [    2.094302] nvme nvme0: allocated 64 MiB host memory buffer (16 
> segments).
> [    2.223519] nvme nvme0: 1/0/0 default/read/poll queues
>
>


  reply	other threads:[~2024-12-07  4:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-07  4:22 Chen Wang
2024-12-07  4:26 ` Chen Wang [this message]
2024-12-08  2:56   ` Keith Busch
2024-12-09  1:27     ` Chen Wang

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=PNZPR01MB4528980B1F286C5843B70DBFFE322@PNZPR01MB4528.INDPRD01.PROD.OUTLOOK.COM \
    --to=unicorn_wang@outlook.com \
    --cc=akpm@linux-foundation.org \
    --cc=axboe@kernel.dk \
    --cc=fengchun.li@sophgo.com \
    --cc=hch@lst.de \
    --cc=inochiama@outlook.com \
    --cc=kbusch@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /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