From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 02 Dec 2009 12:56:57 +0100 (CET) Received: from mail.hstx.com ([64.95.133.106]:9615 "EHLO mail.hstx.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1492435AbZLBLPT (ORCPT ); Wed, 2 Dec 2009 12:15:19 +0100 Received: from edgecaus01.caus.global.vpn ([10.10.0.28]) by mail.hstx.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Dec 2009 03:15:11 -0800 Received: from exchtxuk2.HSTX.global.vpn ([10.11.65.54]) by edgecaus01.caus.global.vpn with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Dec 2009 03:15:11 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA7340.B5457A50" Subject: Reserved instruction in kernel code Date: Wed, 2 Dec 2009 11:15:06 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Reserved instruction in kernel code Thread-Index: AcpzQLP1sZJGDFhmS7mG82KGzLMtSw== From: "Ales Mulej" To: X-OriginalArrivalTime: 02 Dec 2009 11:15:11.0878 (UTC) FILETIME=[B6FF8260:01CA7340] Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 25268 X-Approved-By: ralf@linux-mips.org X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: Ales.Mulej@HSTX.com Precedence: bulk X-list: linux-mips This is a multi-part message in MIME format. ------_=_NextPart_001_01CA7340.B5457A50 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm porting linux(2.6.31.6) to the Wintegra WINHDP2 refrence board. As a refrence I already have an old BSP from Wintegra based on kernel 2.6.10. =20 During the kernel start up process I receive following error: =20 Reserved instruction in kernel code[#1]: Cpu 0 $ 0 : 00000000 1000fc00 802be630 00000001 $ 4 : 802be670 802be674 ffffffff 802f4d4c $ 8 : 1000fc01 1000001f 00000001 0000002b $12 : 00000000 000001f5 07a0d380 00000000 $16 : 00000000 00000000 00000000 1000fc00 $20 : 802e9674 bd030f04 3e490000 00000a72 $24 : 00000008 8000167c =20 $28 : 802ba000 802bbd30 ffffffff 802f4d4c Hi : 000000fb Lo : 00000001 epc : 801013a0 handle_ri_int+0x18/0x38 Not tainted ra : 802f4d4c __log_buf+0x0/0x20000 Status: 1000fc03 KERNEL EXL IE=20 Cause : 50808000 PrId : 00019365 (MIPS 24Kc) Modules linked in: Process swapper (pid: 0, threadinfo=3D802ba000, task=3D802bc000, tls=3D00000000) Stack : 1000fc00 1000001f 00000001 0000002b 00000000 000001f5 00000000 1000fc00 802be630 00000001 802be670 802be674 ffffffff 802f4d4c 1000fc00 1000001f 00000001 0000002b 00000000 000001f5 07a0d380 00000000 00000000 00000000 00000000 1000fc00 802e9674 bd030f04 3e490000 00000a72 00000008 8000167c 802bbe94 802a2954 802ba000 802bbde0 ffffffff 802f4d4c 1000fc02 000000fb ... Call Trace: [<801013a0>] handle_ri_int+0x18/0x38 =20 =20 Code: 01094025 3908001e 40886000 <00000040> 00000040 00000040 000000c0 03a02021 3c1f8010=20 Disabling lock debugging due to kernel taint Kernel panic - not syncing: Attempted to kill the idle task! =20 =20 Does anybody know where is the problem? I suspect, that the problem is in my interrupt routine, because I receive this error as soon as the tick timer start's up. =20 Regards, Ales =20 =20 =20 ------_=_NextPart_001_01CA7340.B5457A50 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I'm porting linux(2.6.31.6) to the Wintegra WINHDP2 = refrence board.

As a refrence I already have an old BSP from = Wintegra based on kernel 2.6.10.

 

During the kernel start up process I receive = following error:

 

Reserved instruction in kernel = code[#1]:

Cpu 0

$ 0   : 00000000 1000fc00 802be630 = 00000001

$ 4   : 802be670 802be674 ffffffff = 802f4d4c

$ 8   : 1000fc01 1000001f 00000001 = 0000002b

$12   : 00000000 000001f5 07a0d380 = 00000000

$16   : 00000000 00000000 00000000 = 1000fc00

$20   : 802e9674 bd030f04 3e490000 = 00000a72

$24   : 00000008 8000167c           = ;      

$28   : 802ba000 802bbd30 ffffffff = 802f4d4c

Hi    : 000000fb

Lo    : 00000001

epc   : 801013a0 = handle_ri_int+0x18/0x38

    Not tainted

ra    : 802f4d4c = __log_buf+0x0/0x20000

Status: 1000fc03    KERNEL EXL IE =

Cause : 50808000

PrId  : 00019365 (MIPS 24Kc)

Modules linked in:

Process swapper (pid: 0, threadinfo=3D802ba000, = task=3D802bc000, tls=3D00000000)

Stack : 1000fc00 1000001f 00000001 0000002b = 00000000 000001f5 00000000 1000fc00

        802be630 = 00000001 802be670 802be674 ffffffff 802f4d4c 1000fc00 1000001f

        00000001 = 0000002b 00000000 000001f5 07a0d380 00000000 00000000 00000000

        00000000 = 1000fc00 802e9674 bd030f04 3e490000 00000a72 00000008 8000167c

        802bbe94 = 802a2954 802ba000 802bbde0 ffffffff 802f4d4c 1000fc02 000000fb

        = ...

Call Trace:

[<801013a0>] = handle_ri_int+0x18/0x38

 

 

Code: 01094025  3908001e  40886000 <00000040> 00000040  00000040  000000c0  = 03a02021  3c1f8010

Disabling lock debugging due to kernel = taint

Kernel panic - not syncing: Attempted to kill the = idle task!

 

 

Does anybody know where is the = problem?

I suspect, that the problem is in my interrupt = routine, because I receive this error as soon as the tick timer start's = up.

 

Regards,

Ales

 

 

 

------_=_NextPart_001_01CA7340.B5457A50-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 02 Dec 2009 18:19:33 +0100 (CET) Received: from h5.dl5rb.org.uk ([81.2.74.5]:48966 "EHLO h5.dl5rb.org.uk" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1493472AbZLBRTa (ORCPT ); Wed, 2 Dec 2009 18:19:30 +0100 Received: from h5.dl5rb.org.uk (localhost.localdomain [127.0.0.1]) by h5.dl5rb.org.uk (8.14.3/8.14.3) with ESMTP id nB2HJSu5000373; Wed, 2 Dec 2009 17:19:28 GMT Received: (from ralf@localhost) by h5.dl5rb.org.uk (8.14.3/8.14.3/Submit) id nB2HJRuK000371; Wed, 2 Dec 2009 17:19:27 GMT Date: Wed, 2 Dec 2009 17:19:27 +0000 From: Ralf Baechle To: Ales Mulej Cc: linux-mips@linux-mips.org Subject: Re: Reserved instruction in kernel code Message-ID: <20091202171927.GB13441@linux-mips.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 25278 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk X-list: linux-mips On Wed, Dec 02, 2009 at 11:15:06AM -0000, Ales Mulej wrote: > > I'm porting linux(2.6.31.6) to the Wintegra WINHDP2 refrence board. > > As a refrence I already have an old BSP from Wintegra based on kernel > 2.6.10. > > > > During the kernel start up process I receive following error: > > > > Reserved instruction in kernel code[#1]: The CPU is taking an exception because of an instruction it doesn't know. One reason for this might be an incorrect CPU type setting in the kernel configuration resulting in the generation of such code. Ralf From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 02 Dec 2009 18:47:56 +0100 (CET) Received: from mail3.caviumnetworks.com ([12.108.191.235]:10088 "EHLO mail3.caviumnetworks.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1493472AbZLBRrw (ORCPT ); Wed, 2 Dec 2009 18:47:52 +0100 Received: from caexch01.caveonetworks.com (Not Verified[192.168.16.9]) by mail3.caviumnetworks.com with MailMarshal (v6,5,4,7535) id ; Wed, 02 Dec 2009 09:47:42 -0800 Received: from caexch01.caveonetworks.com ([192.168.16.9]) by caexch01.caveonetworks.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Dec 2009 09:45:50 -0800 Received: from dd1.caveonetworks.com ([12.108.191.236]) by caexch01.caveonetworks.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 2 Dec 2009 09:45:50 -0800 Message-ID: <4B16A7CC.3090305@caviumnetworks.com> Date: Wed, 02 Dec 2009 09:45:48 -0800 From: David Daney User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Ales Mulej CC: linux-mips@linux-mips.org Subject: Re: Reserved instruction in kernel code References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Dec 2009 17:45:50.0331 (UTC) FILETIME=[49679CB0:01CA7377] Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 25280 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney@caviumnetworks.com Precedence: bulk X-list: linux-mips Ales Mulej wrote: > Hi, > > > > I'm porting linux(2.6.31.6) to the Wintegra WINHDP2 refrence board. > > As a refrence I already have an old BSP from Wintegra based on kernel > 2.6.10. > > > > During the kernel start up process I receive following error: > > > > Reserved instruction in kernel code[#1]: > > Cpu 0 > > $ 0 : 00000000 1000fc00 802be630 00000001 > > $ 4 : 802be670 802be674 ffffffff 802f4d4c > > $ 8 : 1000fc01 1000001f 00000001 0000002b > > $12 : 00000000 000001f5 07a0d380 00000000 > > $16 : 00000000 00000000 00000000 1000fc00 > > $20 : 802e9674 bd030f04 3e490000 00000a72 > > $24 : 00000008 8000167c > > $28 : 802ba000 802bbd30 ffffffff 802f4d4c > > Hi : 000000fb > > Lo : 00000001 > > epc : 801013a0 handle_ri_int+0x18/0x38 > > Not tainted > > ra : 802f4d4c __log_buf+0x0/0x20000 > > Status: 1000fc03 KERNEL EXL IE > > Cause : 50808000 > > PrId : 00019365 (MIPS 24Kc) > > Modules linked in: > > Process swapper (pid: 0, threadinfo=802ba000, task=802bc000, tls=00000000) > > Stack : 1000fc00 1000001f 00000001 0000002b 00000000 000001f5 00000000 > 1000fc00 > > 802be630 00000001 802be670 802be674 ffffffff 802f4d4c 1000fc00 > 1000001f > > 00000001 0000002b 00000000 000001f5 07a0d380 00000000 00000000 > 00000000 > > 00000000 1000fc00 802e9674 bd030f04 3e490000 00000a72 00000008 > 8000167c > > 802bbe94 802a2954 802ba000 802bbde0 ffffffff 802f4d4c 1000fc02 > 000000fb > > ... > > Call Trace: > > [<801013a0>] handle_ri_int+0x18/0x38 > > > > > > Code: 01094025 3908001e 40886000 <00000040> 00000040 00000040 ... ssnop ssnop ssnop ... One would think a 'PrId : 00019365 (MIPS 24Kc)' would execute those. The cause value indicates an 'Interrupt' but you are somehow executing in handle_ri_int, so it could be that multiple exceptions are messing up the OOPS output... > > Disabling lock debugging due to kernel taint > > Kernel panic - not syncing: Attempted to kill the idle task! > > > > > > Does anybody know where is the problem? > > I suspect, that the problem is in my interrupt routine, because I > receive this error as soon as the tick timer start's up. > > > > Regards, > > Ales > > > > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 02 Dec 2009 19:52:42 +0100 (CET) Received: from localhost.localdomain ([127.0.0.1]:44038 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1493726AbZLBSwj (ORCPT ); Wed, 2 Dec 2009 19:52:39 +0100 Date: Wed, 2 Dec 2009 18:52:39 +0000 (GMT) From: "Maciej W. Rozycki" To: David Daney cc: Ales Mulej , linux-mips@linux-mips.org Subject: Re: Reserved instruction in kernel code In-Reply-To: <4B16A7CC.3090305@caviumnetworks.com> Message-ID: References: <4B16A7CC.3090305@caviumnetworks.com> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 25281 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: macro@linux-mips.org Precedence: bulk X-list: linux-mips On Wed, 2 Dec 2009, David Daney wrote: > > Reserved instruction in kernel code[#1]: > > > > Cpu 0 > > > > $ 0 : 00000000 1000fc00 802be630 00000001 > > > > $ 4 : 802be670 802be674 ffffffff 802f4d4c > > > > $ 8 : 1000fc01 1000001f 00000001 0000002b > > > > $12 : 00000000 000001f5 07a0d380 00000000 > > > > $16 : 00000000 00000000 00000000 1000fc00 > > > > $20 : 802e9674 bd030f04 3e490000 00000a72 > > > > $24 : 00000008 8000167c > > $28 : 802ba000 802bbd30 ffffffff 802f4d4c > > > > Hi : 000000fb > > > > Lo : 00000001 > > > > epc : 801013a0 handle_ri_int+0x18/0x38 > > > > Not tainted > > > > ra : 802f4d4c __log_buf+0x0/0x20000 > > > > Status: 1000fc03 KERNEL EXL IE > > > > Cause : 50808000 > > > > PrId : 00019365 (MIPS 24Kc) > > > > Modules linked in: > > > > Process swapper (pid: 0, threadinfo=802ba000, task=802bc000, tls=00000000) > > > > Stack : 1000fc00 1000001f 00000001 0000002b 00000000 000001f5 00000000 > > 1000fc00 > > > > 802be630 00000001 802be670 802be674 ffffffff 802f4d4c 1000fc00 > > 1000001f > > > > 00000001 0000002b 00000000 000001f5 07a0d380 00000000 00000000 > > 00000000 > > > > 00000000 1000fc00 802e9674 bd030f04 3e490000 00000a72 00000008 > > 8000167c > > > > 802bbe94 802a2954 802ba000 802bbde0 ffffffff 802f4d4c 1000fc02 > > 000000fb > > > > ... > > > > Call Trace: > > > > [<801013a0>] handle_ri_int+0x18/0x38 > > > > > > > > Code: 01094025 3908001e 40886000 <00000040> 00000040 00000040 > > ... ssnop ssnop ssnop ... > > One would think a 'PrId : 00019365 (MIPS 24Kc)' would execute those. > > The cause value indicates an 'Interrupt' but you are somehow executing in > handle_ri_int, so it could be that multiple exceptions are messing up the OOPS > output... Look at the preceding code -- the EXL bit has just been cleared (while executing handle_ri_int()) and the interrupt exception has been immediately taken, overwriting the EPC and Cause registers with what you can see above. So either the original RI exception happened earlier elsewhere, or there is something completely broken somewhere resulting in this misleading dump (like stack corruption resulting in a jump to handle_ri() or whatever). To figure out which is the case I'd suggest running the RI handler with interrupts disabled for debugging and see if the correct values from EPC and Cause are reported. If this runs correctly, then obviously the causing place of the RI exception has to be fixed, but also the interrupt exception handler has to be investigated to see why the values from EPC and Cause stored on the stack get corrupted. Otherwise the new symptoms will (hopefully) suggest what to do next. Maciej From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.hstx.com ([64.95.133.106]:9615 "EHLO mail.hstx.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1492435AbZLBLPT (ORCPT ); Wed, 2 Dec 2009 12:15:19 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA7340.B5457A50" Subject: Reserved instruction in kernel code Date: Wed, 2 Dec 2009 11:15:06 -0000 Message-ID: From: "Ales Mulej" Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: linux-mips@linux-mips.org Message-ID: <20091202111506.TCz_3eoGEXDQ6APxySBAYyqdno-adUETW1x0SnT65zk@z> This is a multi-part message in MIME format. ------_=_NextPart_001_01CA7340.B5457A50 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I'm porting linux(2.6.31.6) to the Wintegra WINHDP2 refrence board. As a refrence I already have an old BSP from Wintegra based on kernel 2.6.10. =20 During the kernel start up process I receive following error: =20 Reserved instruction in kernel code[#1]: Cpu 0 $ 0 : 00000000 1000fc00 802be630 00000001 $ 4 : 802be670 802be674 ffffffff 802f4d4c $ 8 : 1000fc01 1000001f 00000001 0000002b $12 : 00000000 000001f5 07a0d380 00000000 $16 : 00000000 00000000 00000000 1000fc00 $20 : 802e9674 bd030f04 3e490000 00000a72 $24 : 00000008 8000167c =20 $28 : 802ba000 802bbd30 ffffffff 802f4d4c Hi : 000000fb Lo : 00000001 epc : 801013a0 handle_ri_int+0x18/0x38 Not tainted ra : 802f4d4c __log_buf+0x0/0x20000 Status: 1000fc03 KERNEL EXL IE=20 Cause : 50808000 PrId : 00019365 (MIPS 24Kc) Modules linked in: Process swapper (pid: 0, threadinfo=3D802ba000, task=3D802bc000, tls=3D00000000) Stack : 1000fc00 1000001f 00000001 0000002b 00000000 000001f5 00000000 1000fc00 802be630 00000001 802be670 802be674 ffffffff 802f4d4c 1000fc00 1000001f 00000001 0000002b 00000000 000001f5 07a0d380 00000000 00000000 00000000 00000000 1000fc00 802e9674 bd030f04 3e490000 00000a72 00000008 8000167c 802bbe94 802a2954 802ba000 802bbde0 ffffffff 802f4d4c 1000fc02 000000fb ... Call Trace: [<801013a0>] handle_ri_int+0x18/0x38 =20 =20 Code: 01094025 3908001e 40886000 <00000040> 00000040 00000040 000000c0 03a02021 3c1f8010=20 Disabling lock debugging due to kernel taint Kernel panic - not syncing: Attempted to kill the idle task! =20 =20 Does anybody know where is the problem? I suspect, that the problem is in my interrupt routine, because I receive this error as soon as the tick timer start's up. =20 Regards, Ales =20 =20 =20 ------_=_NextPart_001_01CA7340.B5457A50 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I'm porting linux(2.6.31.6) to the Wintegra WINHDP2 = refrence board.

As a refrence I already have an old BSP from = Wintegra based on kernel 2.6.10.

 

During the kernel start up process I receive = following error:

 

Reserved instruction in kernel = code[#1]:

Cpu 0

$ 0   : 00000000 1000fc00 802be630 = 00000001

$ 4   : 802be670 802be674 ffffffff = 802f4d4c

$ 8   : 1000fc01 1000001f 00000001 = 0000002b

$12   : 00000000 000001f5 07a0d380 = 00000000

$16   : 00000000 00000000 00000000 = 1000fc00

$20   : 802e9674 bd030f04 3e490000 = 00000a72

$24   : 00000008 8000167c           = ;      

$28   : 802ba000 802bbd30 ffffffff = 802f4d4c

Hi    : 000000fb

Lo    : 00000001

epc   : 801013a0 = handle_ri_int+0x18/0x38

    Not tainted

ra    : 802f4d4c = __log_buf+0x0/0x20000

Status: 1000fc03    KERNEL EXL IE =

Cause : 50808000

PrId  : 00019365 (MIPS 24Kc)

Modules linked in:

Process swapper (pid: 0, threadinfo=3D802ba000, = task=3D802bc000, tls=3D00000000)

Stack : 1000fc00 1000001f 00000001 0000002b = 00000000 000001f5 00000000 1000fc00

        802be630 = 00000001 802be670 802be674 ffffffff 802f4d4c 1000fc00 1000001f

        00000001 = 0000002b 00000000 000001f5 07a0d380 00000000 00000000 00000000

        00000000 = 1000fc00 802e9674 bd030f04 3e490000 00000a72 00000008 8000167c

        802bbe94 = 802a2954 802ba000 802bbde0 ffffffff 802f4d4c 1000fc02 000000fb

        = ...

Call Trace:

[<801013a0>] = handle_ri_int+0x18/0x38

 

 

Code: 01094025  3908001e  40886000 <00000040> 00000040  00000040  000000c0  = 03a02021  3c1f8010

Disabling lock debugging due to kernel = taint

Kernel panic - not syncing: Attempted to kill the = idle task!

 

 

Does anybody know where is the = problem?

I suspect, that the problem is in my interrupt = routine, because I receive this error as soon as the tick timer start's = up.

 

Regards,

Ales

 

 

 

------_=_NextPart_001_01CA7340.B5457A50--