* BUG: Bad page state in process swapper on new imx8qm board
@ 2019-10-16 9:19 Oliver Graute
2019-10-17 7:33 ` Oliver Graute
0 siblings, 1 reply; 6+ messages in thread
From: Oliver Graute @ 2019-10-16 9:19 UTC (permalink / raw)
To: kernelnewbies; +Cc: Aisheng Dong, Peng Fan
Hello list,
I try to bootup up a new imx8qm congatec board and I have written a dts
file for it and applied some imx8qm related patches which are not
mainline yet but working fine on another imx8qm board (same cpu,
different board vendor).
The Kernel starts to boot. But unfortunately its stucked after few
seconds with a lot memory/swapper issues.
BUG: Bad page state in process swapper
Some clue what`s going on here?
Best regards,
Oliver
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty (alarm@imx8qm) (gcc version 8.3.0 (GCC)) #4 SMP PREEMPT Thu Oct 10 13:23:33 UTC 2019
[ 0.000000] Machine model: Congatec QMX8 Qseven series
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fe000000
[ 0.000000] earlycon: lpuart32 at MMIO 0x000000005a060000 (options '')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080200000-0x000000097fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x97f3e2800-0x97f3e3fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000097fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x000000097fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000097fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 22 pages/cpu s52952 r8192 d28968 u90112
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1547784
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: console=ttyLP0,115200 root=/dev/mmcblk2p2 rootwait rw earlycon
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0xfa000000-0xfe000000] (64MB)
[ 0.000000] BUG: Bad page state in process swapper pfn:b0001
[ 0.000000] page:fffffe0000a00040 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] Disabling lock debugging due to kernel taint
[ 0.000000] BUG: Bad page state in process swapper pfn:b0002
[ 0.000000] page:fffffe0000a00080 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] BUG: Bad page state in process swapper pfn:b0003
[ 0.000000] page:fffffe0000a000c0 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] BUG: Bad page state in process swapper pfn:b0004
[ 0.000000] page:fffffe0000a00100 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] BUG: Bad page state in process swapper pfn:b0005
[ 0.000000] page:fffffe0000a00140 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] BUG: Bad page state in process swapper pfn:b0006
[ 0.000000] page:fffffe0000a00180 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] BUG: Bad page state in process swapper pfn:b0007
[ 0.000000] page:fffffe0000a001c0 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xec/0x118
[ 0.000000] free_pages_check_bad+0x70/0xa8
[ 0.000000] __free_pages_ok+0x2a8/0x2c8
[ 0.000000] __free_pages+0x4c/0x58
[ 0.000000] __free_pages_core+0xc0/0xd0
[ 0.000000] memblock_free_pages+0x10/0x18
[ 0.000000] memblock_free_all+0x188/0x254
[ 0.000000] mem_init+0x48/0x58
[ 0.000000] start_kernel+0x254/0x484
[ 0.000000] BUG: Bad page state in process swapper pfn:b0008
[ 0.000000] page:fffffe0000a00200 refcount:0 mapcount:1 mapping:0000000000000000 index:0x0
[ 0.000000] flags: 0x0()
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] raw: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 0.000000] page dumped because: nonzero mapcount
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Tainted: G B 5.3.0-rc7-next-20190904-00033-gf19a0a4e7252-dirty #4
[ 0.000000] Hardware name: Congatec QMX8 Qseven series (DT)
[ 0.000000] Call trace:
[ 0.000000] dump_backtrace+0x0/0x140
[ 0.000000] show_stack+0x14/0x20
[ 0.000000] dump_stack+0xb0/0xf4
[ 0.000000] bad_page+0xe
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: Bad page state in process swapper on new imx8qm board
2019-10-16 9:19 BUG: Bad page state in process swapper on new imx8qm board Oliver Graute
@ 2019-10-17 7:33 ` Oliver Graute
2019-10-17 10:12 ` Cengiz Can
2019-10-17 10:57 ` Peng Fan
0 siblings, 2 replies; 6+ messages in thread
From: Oliver Graute @ 2019-10-17 7:33 UTC (permalink / raw)
To: kernelnewbies, Aisheng Dong, Peng Fan
On 16/10/19, Oliver Graute wrote:
> Hello list,
>
> I try to bootup up a new imx8qm congatec board and I have written a dts
> file for it and applied some imx8qm related patches which are not
> mainline yet but working fine on another imx8qm board (same cpu,
> different board vendor).
>
> The Kernel starts to boot. But unfortunately its stucked after few
> seconds with a lot memory/swapper issues.
>
> BUG: Bad page state in process swapper
>
> Some clue what`s going on here?
So after some more digging I assume that this error is related to a
missing "reserved-memory" node in my devicetree. Now I need to find out
how to split up my memory the right way for this imx8qm congatec board.
Any hints?
Best regards,
Oliver
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: Bad page state in process swapper on new imx8qm board
2019-10-17 7:33 ` Oliver Graute
@ 2019-10-17 10:12 ` Cengiz Can
2019-10-21 17:16 ` Oliver Graute
2019-10-17 10:57 ` Peng Fan
1 sibling, 1 reply; 6+ messages in thread
From: Cengiz Can @ 2019-10-17 10:12 UTC (permalink / raw)
To: Oliver Graute; +Cc: kernelnewbies
Hello Oliver,
> So after some more digging I assume that this error is related to a
> missing "reserved-memory" node in my devicetree. Now I need to find
> out how to split up my memory the right way for this imx8qm congatec
> board.
I think asking in #linux-imx (freenode) would be a much better idea.
You can use https://webchat.freenode.net/ if you don't have an IRC
client handy.
Good luck!
--
Cengiz Can
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: BUG: Bad page state in process swapper on new imx8qm board
2019-10-17 7:33 ` Oliver Graute
2019-10-17 10:12 ` Cengiz Can
@ 2019-10-17 10:57 ` Peng Fan
2019-10-21 17:15 ` Oliver Graute
1 sibling, 1 reply; 6+ messages in thread
From: Peng Fan @ 2019-10-17 10:57 UTC (permalink / raw)
To: Oliver Graute, kernelnewbies, Aisheng Dong
> -----Original Message-----
> From: Oliver Graute <oliver.graute@gmail.com>
> Sent: 2019年10月17日 15:34
> To: kernelnewbies@kernelnewbies.org; Aisheng Dong
> <aisheng.dong@nxp.com>; Peng Fan <peng.fan@nxp.com>
> Subject: Re: BUG: Bad page state in process swapper on new imx8qm board
>
> On 16/10/19, Oliver Graute wrote:
> > Hello list,
> >
> > I try to bootup up a new imx8qm congatec board and I have written a
> > dts file for it and applied some imx8qm related patches which are not
> > mainline yet but working fine on another imx8qm board (same cpu,
> > different board vendor).
> >
> > The Kernel starts to boot. But unfortunately its stucked after few
> > seconds with a lot memory/swapper issues.
> >
> > BUG: Bad page state in process swapper
> >
> > Some clue what`s going on here?
>
> So after some more digging I assume that this error is related to a missing
> "reserved-memory" node in my devicetree. Now I need to find out how to
> split up my memory the right way for this imx8qm congatec board.
Which uboot release are you using? Did you include M4 image in flash.bin?
Regards,
Peng.
>
> Any hints?
>
> Best regards,
>
> Oliver
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: Bad page state in process swapper on new imx8qm board
2019-10-17 10:57 ` Peng Fan
@ 2019-10-21 17:15 ` Oliver Graute
0 siblings, 0 replies; 6+ messages in thread
From: Oliver Graute @ 2019-10-21 17:15 UTC (permalink / raw)
To: Peng Fan; +Cc: Aisheng Dong, kernelnewbies
On 17/10/19, Peng Fan wrote:
>
>
> > -----Original Message-----
> > From: Oliver Graute <oliver.graute@gmail.com>
> > Sent: 2019年10月17日 15:34
> > To: kernelnewbies@kernelnewbies.org; Aisheng Dong
> > <aisheng.dong@nxp.com>; Peng Fan <peng.fan@nxp.com>
> > Subject: Re: BUG: Bad page state in process swapper on new imx8qm board
> >
> > On 16/10/19, Oliver Graute wrote:
> > > Hello list,
> > >
> > > I try to bootup up a new imx8qm congatec board and I have written a
> > > dts file for it and applied some imx8qm related patches which are not
> > > mainline yet but working fine on another imx8qm board (same cpu,
> > > different board vendor).
> > >
> > > The Kernel starts to boot. But unfortunately its stucked after few
> > > seconds with a lot memory/swapper issues.
> > >
> > > BUG: Bad page state in process swapper
> > >
> > > Some clue what`s going on here?
> >
> > So after some more digging I assume that this error is related to a missing
> > "reserved-memory" node in my devicetree. Now I need to find out how to
> > split up my memory the right way for this imx8qm congatec board.
>
> Which uboot release are you using? Did you include M4 image in flash.bin?
I'am using the u-boot master branch with my board patches. Together with
the M4 Image. This particular problem is solved now by adding the right
reserved-memory statement and linux,cma {} statement.
No more kernel crashes yet. Now the kernel starts systemd and is stucked
there. I get no login prompt. It looks for me like getty can't find any
serial to attach. But the kernel is still running and writing to serial
lpuart32.
Best regards,
Oliver
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: BUG: Bad page state in process swapper on new imx8qm board
2019-10-17 10:12 ` Cengiz Can
@ 2019-10-21 17:16 ` Oliver Graute
0 siblings, 0 replies; 6+ messages in thread
From: Oliver Graute @ 2019-10-21 17:16 UTC (permalink / raw)
To: Cengiz Can; +Cc: kernelnewbies
On 17/10/19, Cengiz Can wrote:
> Hello Oliver,
>
> > So after some more digging I assume that this error is related to a
> > missing "reserved-memory" node in my devicetree. Now I need to find
> > out how to split up my memory the right way for this imx8qm congatec
> > board.
>
> I think asking in #linux-imx (freenode) would be a much better idea.
>
> You can use https://webchat.freenode.net/ if you don't have an IRC
> client handy.
thx for this hint. I'll show up there.
Best regards,
Oliver
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-10-21 17:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-16 9:19 BUG: Bad page state in process swapper on new imx8qm board Oliver Graute
2019-10-17 7:33 ` Oliver Graute
2019-10-17 10:12 ` Cengiz Can
2019-10-21 17:16 ` Oliver Graute
2019-10-17 10:57 ` Peng Fan
2019-10-21 17:15 ` Oliver Graute
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.