Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2016 12:09:58 +0300
From:      Stanislav Galabov <sgalabov@gmail.com>
To:        Mori Hiroki <yamori813@yahoo.co.jp>
Cc:        Stanislav Galabov <sgalabov@gmail.com>, Adrian Chadd <adrian.chadd@gmail.com>, "freebsd-mips@freebsd.org" <freebsd-mips@freebsd.org>
Subject:   Re: sys/mips/mediatek kernel crash on RT3050
Message-ID:  <54D1B5E9-FB36-49D9-8CD0-0D42B732E8D9@gmail.com>
In-Reply-To: <125460.52837.qm@web101714.mail.ssk.yahoo.co.jp>
References:  <705503.18629.qm@web101707.mail.ssk.yahoo.co.jp> <CAJ-Vmomju=NVyhcG5K2UdDwXJZX%2Bc41onn8qUqzGzBW-wYPcSQ@mail.gmail.com> <81B9B540-B1CB-406F-9F51-FDBDB451B4FC@gmail.com> <125460.52837.qm@web101714.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Hi,

Could you please test after applying the patch found at: =
https://reviews.freebsd.org/D7692

Best wishes,
Stanislav

> On Aug 29, 2016, at 06:07, Mori Hiroki <yamori813@yahoo.co.jp> wrote:
>=20
> Hi
>=20
> I build for BCM box at sys/mips/brodecom today.
>=20
> This build have same panic.
>=20
> CFE> boot -raw -z -addr=3D0x80001000 -max=3D0x3a0000 flash0.os:
> Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
> Loading: ........... 3446116 bytes read
> Entry at 0x80001000
> Closing network.
> Starting program at 0x80001000
> entry: mips_init()
> Cache info:
>   picache_stride    =3D 4096
>   picache_loopcount =3D 4
>   pdcache_stride    =3D 4096
>   pdcache_loopcount =3D 4
> cpu0: Broadcom processor v41.144
>   MMU: Standard TLB, 32 entries (1K 4K 16K 64K 256K 1M 16M 64M 256M pg =
sizes)
>   L1 i-cache: 4 ways of 256 sets, 16 bytes per line
>   L1 d-cache: 2 ways of 512 sets, 16 bytes per line
>   L2 cache: disabled
>   Config1=3D0x3e9b6c86<MIPS16,EJTAG>
> KDB: debugger backends: ddb
> KDB: current backend: ddb
> Copyright (c) 1992-2016 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, =
1994
>         The Regents of the University of California. All rights =
reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 12.0-CURRENT #3 7c2f7cf(zrouter)-dirty: Mon Aug 29 11:41:45 =
JST 2016
>     =
hiroki@microserver:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tm=
p/
> mips.mipsel/storage/home/hiroki/freebsd/sys/Buffalo_WHR-HP-G54 mips
> gcc version 4.2.1 20070831 patched [FreeBSD]
> real memory  =3D 16125952 (15748K bytes)
> avail memory =3D 11137024 (10MB)
> nexus0: <MIPS32 root nexus>
> bhnd0: <BCM5354 SIBA bus> at mem 0x18000000-0x180fffff on nexus0
> bhnd_chipc0: <Broadcom ChipCommon I/O Controller, rev 20> mem =
0x18000000-0x18000
> dff,0x1fc00000-0x1fffffff,0x1c000000-0x1dffffff,0x1a000000-0x1bffffff =
at core 0
> on bhnd0
> bhnd_mips0: <Broadcom MIPS3302 Core, rev 8> mem 0x18002000-0x18002dff =
at core 2
> on bhnd0
> cpupic0: <MIPS32 Interrupt Controller> on nexus0
> bhnd_pmu0: <Broadcom ChipCommon PMU, rev 0> on bhnd_chipc0
> bhnd0: error reading BOARDVENDOR: 19
> bhnd_pmu0: error fetching board info: 19
> device_attach: bhnd_pmu0 attach returned 6
> nvram2env0: Found NVRAM at 0x1fc00400
> nvram2env0: <NVRAM to ENV pseudo-device> on nexus0
> nvram2env0: sig =3D 0x48534c46
> nvram2env0: size =3D 0x2f0
> nvram2env1: Found NVRAM at 0x1c7f8000
> nvram2env1: <NVRAM to ENV pseudo-device> on nexus0
> nvram2env1: sig =3D 0x48534c46
> nvram2env1: size =3D 0x344
> clock0: <Generic MIPS32 ticker> on nexus0
> panic: Unable to add hard IRQ 7 handler
> KDB: enter: panic
> [ thread pid 0 tid 100000 ]
> Stopped at      kdb_enter+0x4c: lui     at,0x8036
>=20
>=20
> ----- Original Message -----
>> From: Stanislav Galabov <sgalabov@gmail.com>
>> To: Adrian Chadd <adrian.chadd@gmail.com>
>> Cc: Mori Hiroki <yamori813@yahoo.co.jp>; "freebsd-mips@freebsd.org" =
<freebsd-mips@freebsd.org>
>> Date: 2016/8/26, Fri 01:31
>> Subject: Re: sys/mips/mediatek kernel crash on RT3050
>>=20
>> Hi all,
>>=20
>> I am currently on vacation and will be back next week. I guess I'll =
find
>> some time to look at this then if needed.
>>=20
>> Best wishes,
>> Stanislav
>>=20
>>> On Aug 25, 2016, at 18:25, Adrian Chadd <adrian.chadd@gmail.com>
>> wrote:
>>>=20
>>> Hm, does it require INTRNG these days?
>>>=20
>>>=20
>>> -a
>>>=20
>>>=20
>>>> On 24 August 2016 at 18:11, Mori Hiroki <yamori813@yahoo.co.jp>
>> wrote:
>>>> Hi
>>>>=20
>>>> I build sys/mips/mediatek for RT3050 box at few days before head.
>>>>=20
>>>> This kernel crash.
>>>>=20
>>>> This build based on rt3050.dtsi.
>>>>=20
>>>> Some one know this problem ?
>>>>=20
>>>> Thanks.
>>>>=20
>>>> Starting kernel ...
>>>>=20
>>>> FDT DTB  at: 0x802ce6f0
>>>> CPU   clock:  320MHz
>>>> Timer clock:  160MHz
>>>> UART  clock:  106MHz
>>>>=20
>>>> U-Boot args (from 0 args):
>>>>         None
>>>> Environment:
>>>> entry: mips_init()
>>>> RAM size: 32MB (assumed)
>>>> Cache info:
>>>>   picache_stride    =3D 4096
>>>>   picache_loopcount =3D 8
>>>>   pdcache_stride    =3D 4096
>>>>   pdcache_loopcount =3D 4
>>>> cpu0: MIPS Technologies processor v76.150
>>>>   MMU: Standard TLB, 32 entries (4K 16K 64K 256K 1M 16M 64M 256M pg
>> sizes)
>>>>   L1 i-cache: 4 ways of 256 sets, 32 bytes per line
>>>>   L1 d-cache: 4 ways of 128 sets, 32 bytes per line
>>>>   L2 cache: disabled
>>>>   Config1=3D0xbea3319e<PerfCount,WatchRegs,MIPS16,EJTAG>
>>>>   Config2=3D0x80000000
>>>>   Config3=3D0x420
>>>> Physical memory chunk(s):
>>>> 0x334000 - 0x1ffffff, 30195712 bytes (7372 pages)
>>>> Maxmem is 0x2000000
>>>> Copyright (c) 1992-2016 The FreeBSD Project.
>>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993,
>> 1994
>>>>         The Regents of the University of California. All rights
>> reserved.
>>>> FreeBSD is a registered trademark of The FreeBSD Foundation.
>>>> FreeBSD 12.0-CURRENT #1 ed1832a(zrouter): Sun Aug 21 12:19:54 JST =
2016
>>>>=20
>> =
hiroki@microserver:/storage/home/hiroki/obj/storage/home/hiroki/zrouter/tm=
p/
>>>> mips.mipsel/storage/home/hiroki/freebsd/sys/Fon_FON2305E_FDT mips
>>>> gcc version 4.2.1 20070831 patched [FreeBSD]
>>>> Preloaded elf kernel "kernel" at 0x8032afb0.
>>>> real memory  =3D 33554432 (32768K bytes)
>>>> Physical memory chunk(s):
>>>> 0x003c0000 - 0x01f3efff, 28831744 bytes (7039 pages)
>>>> avail memory =3D 28397568 (27MB)
>>>> ULE: setup cpu 0
>>>> random: entropy device external interface
>>>> firmware: 'rt2860fw' version 0: 8192 bytes loaded at 0x802d86d0
>>>> firmware: 'rt2561fw' version 0: 8192 bytes loaded at 0x802d2550
>>>> firmware: 'rt2561sfw' version 0: 8192 bytes loaded at
>> 0x802d45d0
>>>> wlan: <802.11 Link Layer>
>>>> firmware: 'rt2661fw' version 0: 8192 bytes loaded at 0x802d6650
>>>> null: <full device, null device, zero device>
>>>> openfirm: <Open Firmware control device>
>>>> mem: <memory>
>>>> nexus0: <MIPS32 root nexus>
>>>> random: harvesting attach, 8 bytes (4 bits) from nexus0
>>>> ofwbus0: <Open Firmware Device Tree> on nexus0
>>>> palmbus0: <MTK Palmbus> mem 0x10000000-0x101fffff on ofwbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from palmbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from ofwbus0
>>>> cpupic0: <MIPS32 Interrupt Controller> on ofwbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from cpupic0
>>>> sysc0: <MTK System Controller> mem 0-0xff on palmbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from sysc0
>>>> pinctrl0: <MTK Pin Controller> on ofwbus0
>>>> pinctrl0: GPIO mode start: 0x0000029d
>>>> Processing 1 pin-config node(s) in pinctrl-0 for spi@b00
>>>> Processing 1 pin-config node(s) in pinctrl-0 for uartlite@c00
>>>> Processing 1 pin-config node(s) in pinctrl-0 for pinctrl
>>>> pinctrl0: GPIO mode end  : 0x0000005d
>>>> random: harvesting attach, 8 bytes (4 bits) from pinctrl0
>>>> rstctrl0: <MTK Reset Controller> on ofwbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from rstctrl0
>>>> clkctrl0: <MTK Clock Controller> on ofwbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from clkctrl0
>>>> intc0: <MTK Interrupt Controller (v2)> mem 0x200-0x2ff irq 6 on
>> palmbus0
>>>> random: harvesting attach, 8 bytes (4 bits) from intc0
>>>> gpio0: <MTK GPIO Controller (v1)> mem 0x600-0x633 irq 9 on
>> palmbus0
>>>> gpiobus0: <OFW GPIO bus> on gpio0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpiobus0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpio0
>>>> palmbus0: <timer@100> mem 0x100-0x11f irq 4 compat
>> ralink,rt3050-timer (no drive
>>>> r attached)
>>>> palmbus0: <watchdog@120> mem 0x120-0x12f irq 5 compat
>> ralink,rt3050-wdt (no driv
>>>> er attached)
>>>> palmbus0: <memc@300> mem 0x300-0x3ff irq 7 compat
>> ralink,rt3050-memc (no driver
>>>> attached)
>>>> palmbus0: <uart@500> mem 0x500-0x5ff irq 8 disabled compat
>> ralink,rt3050-uart (n
>>>> o driver attached)
>>>> gpioled0: <GPIO led> at pin 14 on gpiobus0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpioled0
>>>> gpioled1: <GPIO led> at pin 11 on gpiobus0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpioled1
>>>> gpioled2: <GPIO led> at pin 9 on gpiobus0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpioled2
>>>> gpioled3: <GPIO led> at pin 12 on gpiobus0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpioled3
>>>> gpioc0: <GPIO controller> on gpio0
>>>> random: harvesting attach, 8 bytes (4 bits) from gpioc0
>>>> palmbus0: <gpio@638> mem 0x638-0x65b disabled compat
>> ralink,rt3050-gpio (no driv
>>>> er attached)
>>>> palmbus0: <gpio@660> mem 0x660-0x683 disabled compat
>> ralink,rt3050-gpio (no driv
>>>> er attached)
>>>> spi0: <MTK SPI Controller (v1)> mem 0xb00-0xbff on palmbus0
>>>> spibus0: <OFW SPI bus> on spi0
>>>> mx25l0: <M25Pxx Flash Family> at cs 0 mode 0 on spibus0
>>>> mx25l0: mx25ll64, sector 65536 bytes, 128 sectors
>>>> random: harvesting attach, 8 bytes (4 bits) from mx25l0
>>>> random: harvesting attach, 8 bytes (4 bits) from spibus0
>>>> random: harvesting attach, 8 bytes (4 bits) from spi0
>>>> uart0: <MTK UART Controller> mem 0xc00-0xcff irq 10 on palmbus0
>>>> uart0: console (57971,n,8,1)
>>>> uart0: fast interrupt
>>>> uart0: PPS capture mode: DCDinvalid
>>>> random: harvesting attach, 8 bytes (4 bits) from uart0
>>>> ofwbus0: <usbphy> compat ralink,rt3050-usbphy (no driver
>> attached)
>>>> rt0: <Ralink RT3050 onChip Ethernet driver> mem
>> 0x10100000-0x1010ffff irq 0 on o
>>>> fwbus0
>>>> rt0: RT305XF Ethernet MAC (rev 0x00000000)
>>>> rt0: use hardcoded 00:18:e7:d5:83:90 macaddr
>>>> rt0: bpf attached
>>>> rt0: Ethernet address: 00:18:e7:d5:83:90
>>>> random: harvesting attach, 8 bytes (4 bits) from rt0
>>>> mtkswitch0: <MTK Switch Driver> mem 0x10110000-0x10117fff irq 1
>> on ofwbus0
>>>> miibus0: <MII bus> on mtkswitch0
>>>> ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
>>>> ukphy0: OUI 0x000c43, model 0x0001, rev. 7
>>>> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>>>> random: harvesting attach, 8 bytes (4 bits) from ukphy0
>>>> random: harvesting attach, 8 bytes (4 bits) from miibus0
>>>> miibus1: <MII bus> on mtkswitch0
>>>> ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus1
>>>> ukphy1: OUI 0x000c43, model 0x0001, rev. 7
>>>> ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>>>> random: harvesting attach, 8 bytes (4 bits) from ukphy1
>>>> random: harvesting attach, 8 bytes (4 bits) from miibus1
>>>> miibus2: <MII bus> on mtkswitch0
>>>> ukphy2: <Generic IEEE 802.3u media interface> PHY 2 on miibus2
>>>> ukphy2: OUI 0x000c43, model 0x0001, rev. 7
>>>> ukphy2:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>>>> random: harvesting attach, 8 bytes (4 bits) from ukphy2
>>>> random: harvesting attach, 8 bytes (4 bits) from miibus2
>>>> miibus3: <MII bus> on mtkswitch0
>>>> ukphy3: <Generic IEEE 802.3u media interface> PHY 3 on miibus3
>>>> ukphy3: OUI 0x000c43, model 0x0001, rev. 7
>>>> ukphy3:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>>>> random: harvesting attach, 8 bytes (4 bits) from ukphy3
>>>> random: harvesting attach, 8 bytes (4 bits) from miibus3
>>>> miibus4: <MII bus> on mtkswitch0
>>>> ukphy4: <Generic IEEE 802.3u media interface> PHY 4 on miibus4
>>>> ukphy4: OUI 0x000c43, model 0x0001, rev. 7
>>>> ukphy4:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
>>>> random: harvesting attach, 8 bytes (4 bits) from ukphy4
>>>> random: harvesting attach, 8 bytes (4 bits) from miibus4
>>>> etherswitch0: <Switch controller> on mtkswitch0
>>>> random: harvesting attach, 8 bytes (4 bits) from etherswitch0
>>>> mdio0: <MDIO> on mtkswitch0
>>>> random: harvesting attach, 8 bytes (4 bits) from mdio0
>>>> random: harvesting attach, 8 bytes (4 bits) from mtkswitch0
>>>> ofwbus0: <wmac@10180000> mem 0x10180000-0x101bffff irq 2 compat
>> ralink,rt3050-wm
>>>> ac (no driver attached)
>>>> ofwbus0: <otg@101c0000> mem 0x101c0000-0x101fffff irq 3 disabled
>> compat ralink,r
>>>> t3050-otg (no driver attached)
>>>> ofwbus0: <gpio-leds> compat gpio-leds (no driver attached)
>>>> ofwbus0: <gpio-keys-polled> compat gpio-keys-polled (no driver
>> attached)
>>>> clock0: <Generic MIPS32 ticker> on nexus0
>>>> panic: Unable to add hard IRQ 7 handler
>>>> Uptime: 1s
>>>> Automatic reboot in 15 seconds - press a key on the console to =
abort
>>>> Rebooting...
>>>> _______________________________________________
>>>> freebsd-mips@freebsd.org mailing list
>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips
>>>> To unsubscribe, send any mail to
>> "freebsd-mips-unsubscribe@freebsd.org"
>>> _______________________________________________
>>> freebsd-mips@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-mips
>>> To unsubscribe, send any mail to
>> "freebsd-mips-unsubscribe@freebsd.org"
>>=20


--Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJXw/vmAAoJEIKmgXSGgsog5pMIALPvuSutJIZQ2XT+lj7Q5jHl
8FSKQ2wfd+mHJUeKK9kuG8WQUZP5mELR0n6G6sNa97piD4pPklTGTEU5yPeYYrIx
mTdTTdU9XopEET10Uc5T6+40DDgMWnrKjoS26/8Yi6woELaGuXCwbCcmeHa5KQsi
zI27NirooL3ahdlWRO1uX+kSmEnSjMtH0Cbv2CrtTDX8XFIahXkwi+8OneLTqADh
LQklbEi+iKLS9u25mXdpvS6vdu6cYIhFqU6ZNAFRoRyb5jLI0LmvOL71BYyxrHqx
5vw37vZm44Gpx1Fur1JTEg93sDQYb0JECaI8lvckHdsyfV6QNCx21BA2CvIvAWs=
=n09M
-----END PGP SIGNATURE-----

--Apple-Mail=_9F876D66-3AB1-4200-B016-4F72DD747C8D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54D1B5E9-FB36-49D9-8CD0-0D42B732E8D9>