linux-mips
[Top] [All Lists]

Re: page_write_back infinite wait (porting to Mips 4kec SoC)

To: linux-mips@linux-mips.org
Subject: Re: page_write_back infinite wait (porting to Mips 4kec SoC)
From: "Luigi 'Comio' Mantellini" <luigi.mantellini.ml@gmail.com>
Date: Wed, 1 Oct 2008 20:36:26 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:organization:to :subject:date:user-agent:references:in-reply-to:x-face:mime-version :content-type:content-transfer-encoding:content-disposition :message-id; bh=bpmTQv5z4OrhuZOyM53N/kaxKvTgeLut85Q5269TGXk=; b=LZ1CPICTBq8Et+gQ5pY/UAZPV5AHVCxxYQ93L4jPdw5cB6Gp+NLHqfzqV9lHV2kOHk MaGtul2v520jew1N2wQ7TPJu66nWwy4Qk3lLCTQNBO6Mu7IgXMf8g5H7UBW0cugwot/X lbcV4LCH/0rkrStv0jt5u36axrxjIacfWu/xs=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:organization:to:subject:date:user-agent:references :in-reply-to:x-face:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; b=vqzzq+6+oWaf3jkNj6WNY6B1/T/E27u6R5gikp53QsQodjamYg/EDH9Z8KEIxAlcgR gLlEAaBOWO5IdKv8syrZQ6ju4TA7rNQLDNCcwEBX3ALRtPper4yI6uzktN4fOuo+NMcF 4M1wkBKqlPdk0rIBd0VhlsG0lc7bv4kzwa+qM=
In-reply-to: <200809231409.44987.luigi.mantellini.ml@gmail.com>
Organization: Industrie Dial Face S.p.A.
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <200809231409.44987.luigi.mantellini.ml@gmail.com>
Reply-to: luigi.mantellini.ml@gmail.com
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.10.1 (Linux/2.6.24-21-generic; KDE/4.1.1; i686; ; )

I discovered the trouble...

the bsp code (from my cpu vendor) wrongly writes out the irq_desc vector overwriting some vital kernel structure...

best regards,

luigi

Il martedì 23 settembre 2008 14:09:44 Luigi 'Comio' Mantellini ha scritto:

> Hi List,

>

> I'm working on a 4Kec SoC. I'm trying to port a recent kernel (2.6.26-rcX

> from trunk) to my SoC but I have problem on timers (i think).

>

> The start sequence (start_kernel @init/main.c) freezes on the

> page_writeback_init() call. The page_writeback_init function calls the

> lock_timer_base function (by means the mod_timer/__mod_timer) that fails

> always the test likely(base!=NULL) (source file kernel/timer.c). The base

> variable (ponter to tvec_base) is always NULL, resulting an infinite loop.

>

> I'm using the cevt-r4t and csrc-4k standard mips 4k timer (on irq #7). With

> debugger I verified that the c0_compare_interrupt service routine is

> correctly invoked.

>

> Kindly, can anyone help me to understand what I need to check to solve this

> issue? If you need other information, please, ask me (This is my first mips

> port).

>

> Thanks in advance.

>

> best regards.

>

> luigi

--

Luigi Mantellini

R&D - Software

Industrie Dial Face S.p.A.

Via Canzo, 4

20068 Peschiera Borromeo (MI), Italy

Tel.: +39 02 5167 2813

Fax: +39 02 5167 2459

Email: luigi.mantellini@idf-hit.com

<Prev in Thread] Current Thread [Next in Thread>
  • Re: page_write_back infinite wait (porting to Mips 4kec SoC), Luigi 'Comio' Mantellini <=