linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nick Krause <xerofoify@gmail.com>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	Jet Chen <jet.chen@intel.com>, Su Tao <tao.su@intel.com>,
	Yuanhan Liu <yuanhan.liu@intel.com>, LKP <lkp@01.org>,
	dri-devel@lists.freedesktop.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [sbc_gxx] kernel BUG at include/linux/mtd/map.h:148!
Date: Tue, 5 Aug 2014 20:08:57 -0400	[thread overview]
Message-ID: <CAPDOMVgN=tc_o7E19ss4j5FAG4vpgUSzuUXYLSNGfpWCvPsAwA@mail.gmail.com> (raw)
In-Reply-To: <20140805135947.GA5593@localhost>

On Tue, Aug 5, 2014 at 9:59 AM, Fengguang Wu <fengguang.wu@intel.com> wrote:
> Hello,
>
> This is an old BUG that still lives in linux-next.
>
> [    4.284620] device id = 2670
> [    4.286157] SBC-GXx flash: IO:0x258-0x259 MEM:0xdc000-0xdffff
> [    4.287060] ------------[ cut here ]------------
> [    4.287722] kernel BUG at include/linux/mtd/map.h:148!
> [    4.288048] invalid opcode: 0000 [#1] PREEMPT SMP
> [    4.288048] CPU 1
> [    4.288048] Pid: 1, comm: swapper/0 Not tainted 3.5.0-rc4-00162-g49099c4 #17 Bochs Bochs
> [    4.288048] RIP: 0010:[<ffffffff8177e8de>]  [<ffffffff8177e8de>] mtd_do_chip_probe+0x1d/0x1f
> [    4.288048] RSP: 0018:ffff880011049e20  EFLAGS: 00010246
> [    4.288048] RAX: 0000000000000000 RBX: ffffffff82a23550 RCX: 0000000000000000
> [    4.288048] RDX: ffff880011049e20 RSI: ffffffff82a23580 RDI: ffff880011049e80
> [    4.288048] RBP: ffff880011049e80 R08: 0000000000000003 R09: ffffffff810d6c93
> [    4.288048] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff82a23eb0
> [    4.288048] R13: ffffffff828790ce R14: 0000000000000000 R15: 0000000000000000
> [    4.288048] FS:  0000000000000000(0000) GS:ffff880012600000(0000) knlGS:0000000000000000
> [    4.288048] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
> [    4.288048] CR2: 0000000000000000 CR3: 000000000298c000 CR4: 00000000000406e0
> [    4.288048] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [    4.288048] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> [    4.288048] Process swapper/0 (pid: 1, threadinfo ffff880011048000, task ffff880011040000)
> [    4.288048] Stack:
> [    4.288048]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> [    4.288048]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> [    4.288048]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
> [    4.288048] Call Trace:
> [    4.288048]  [<ffffffff81779e05>] cfi_probe+0x15/0x17
> [    4.288048]  [<ffffffff81779d9b>] do_map_probe+0xa0/0xac
> [    4.288048]  [<ffffffff834d1aac>] ? physmap_init+0x12/0x12
> [    4.288048]  [<ffffffff834d1bb0>] init_sbc_gxx+0x104/0x15b
> [    4.288048]  [<ffffffff8348d1b3>] do_one_initcall+0x86/0x208
> [    4.288048]  [<ffffffff8348d442>] kernel_init+0x10d/0x1c2
> [    4.288048]  [<ffffffff8348c739>] ? do_early_param+0xc3/0xc3
> [    4.288048]  [<ffffffff8207b2f4>] kernel_thread_helper+0x4/0x10
> [    4.288048]  [<ffffffff820797b4>] ? retint_restore_args+0x13/0x13
> [    4.288048]  [<ffffffff8348d335>] ? do_one_initcall+0x208/0x208
> [    4.288048]  [<ffffffff8207b2f0>] ? gs_change+0x13/0x13
> [    4.288048] Code: 83 c4 58 5b 41 5c 41 5d 41 5e 41 5f 5d c3 55 48 89 e5 48 83 ec 60 66 66 66 66 90 31 c0 b9 18 00 00 00 48 8d 55 a0 48 89 d7 f3 ab <0f> 0b 55 48 89 e5 66 66 66 66 90 48 c7 c6 a0 39 a2 82 e8 cc ff
> [    4.288048] RIP  [<ffffffff8177e8de>] mtd_do_chip_probe+0x1d/0x1f
> [    4.288048]  RSP <ffff880011049e20>
> [    4.321423] ---[ end trace 169195d5d1f9be6e ]---
> [    4.322118] swapper/0 (1) used greatest stack depth: 3768 bytes left
>
> This script may reproduce the error.
>
> ----------------------------------------------------------------------------
> #!/bin/bash
>
> kernel=$1
> initrd=quantal-core-x86_64.cgz
>
> wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
>
> kvm=(
>         qemu-system-x86_64
>         -enable-kvm
>         -cpu Haswell,+smep,+smap
>         -kernel $kernel
>         -initrd $initrd
>         -m 320
>         -smp 2
>         -net nic,vlan=1,model=e1000
>         -net user,vlan=1
>         -boot order=nc
>         -no-reboot
>         -watchdog i6300esb
>         -rtc base=localtime
>         -serial stdio
>         -display none
>         -monitor null
> )
>
> append=(
>         hung_task_panic=1
>         earlyprintk=ttyS0,115200
>         debug
>         apic=debug
>         sysrq_always_enabled
>         rcupdate.rcu_cpu_stall_timeout=100
>         panic=10
>         softlockup_panic=1
>         nmi_watchdog=panic
>         prompt_ramdisk=0
>         console=ttyS0,115200
>         console=tty0
>         vga=normal
>         root=/dev/ram0
>         rw
>         drbd.minor_count=8
> )
>
> "${kvm[@]}" --append "${append[*]}"
> ----------------------------------------------------------------------------
>
> Thanks,
> Fengguang
>
> _______________________________________________
> LKP mailing list
> LKP@linux.intel.com
>
I am new , here and will try to trace your issue on linus's tree
unless there is a major difference between Linus's tree and
linux-next.
If there is please let me known before I start tracing this.
Best Regards ,
Nick

  reply	other threads:[~2014-08-06  0:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 13:59 [sbc_gxx] kernel BUG at include/linux/mtd/map.h:148! Fengguang Wu
2014-08-06  0:08 ` Nick Krause [this message]
2014-08-07 22:46   ` Brian Norris

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='CAPDOMVgN=tc_o7E19ss4j5FAG4vpgUSzuUXYLSNGfpWCvPsAwA@mail.gmail.com' \
    --to=xerofoify@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fengguang.wu@intel.com \
    --cc=jet.chen@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=lkp@01.org \
    --cc=tao.su@intel.com \
    --cc=yuanhan.liu@intel.com \
    /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).