Jachym Holecek | 1 Sep 2006 03:14
Favicon

Re: Interrupts problem

Hello Jean-Francois,

# Jean-Francois Boudreault 2006-08-31:
> I have a problem with custom hardware interruptions.
> 
> I'm currently designing custom network device. I'm using Jachym's port 
> on virtex fpga with the console on the serial port. I have a driver 
> which allocate dma memory on initialization. I use a callout function 
> called every 30ms that simply write 32bits dma memory address to a 
> register of the custom device to initiate a network transfert (which 
> take <1ms). As soon transfert is completed, the custom device sends an 
> interruption which call my driver's interruption routine that reset the 
> callout to another 30ms.

This is not the best way to archieve high throughput... you might want
to enqueue new packet from the "transfer done" interrupt handler. Well,
ideally you'd want to come up with a smart DMA engine that does most
of the work for you :-)

> On booting, I see packets going out of the custom device every 30ms as 
> expected. But as soon the system is booted and my console started ('sh' 
> called in single-user mode), it takes about 400ms to receive 
> interruption from the custom device. Then if I give input to the console 
> (simply press and hold ENTER key) I get back 30ms response from device.

Hmm, I'd suspect interrupt priority masks are incorrectly calculated.
What IPL are you running at? Also, as Tim noted, the problem could
be deeper down in interrupt handling code (though I've never seen the
behaviour you describe on the Virtex). It would be useful to add some
diagnostic printfs to ext_intr (print interrupt status register at the
(Continue reading)

Dan LaBell | 5 Sep 2006 04:24
Picon

NetBSD on Kurobox?

Hi, I have a Kurobox, and I'm wondering if anyone has had any success 
putting NetBSD on it, over to of the Linux it comes with.  It seems 
possible based, on http://www5.atwiki.jp/kuro-bsd/
(Of course it's in japanese. )

Linux via 'cat /proc/cpuinfo' describes the machine as:

cpu		: 82xx
revision	: 16.20 (pvr 8081 1014)
bogomips	: 130.25
vendor		: Motorola SPS
machine		: Sandpoint
processor	: PVID: 0x80811014, vendor: Motorola

Allen Briggs | 6 Sep 2006 01:30
Picon

Re: NetBSD on Kurobox?

On Mon, Sep 04, 2006 at 10:24:07PM -0400, Dan LaBell wrote:
> Hi, I have a Kurobox, and I'm wondering if anyone has had any success 
> putting NetBSD on it, over to of the Linux it comes with.  It seems 
> possible based, on http://www5.atwiki.jp/kuro-bsd/
> (Of course it's in japanese. )

It certainly looks possible based on what you posted.  I think I
recall someone posting about it, too.

Any idea how to get ahold of one?

-allen

--

-- 
Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs <at> ninthwonder.com

Tim Rightnour | 6 Sep 2006 03:18
Gravatar

Re: NetBSD on Kurobox?


On 05-Sep-2006 Allen Briggs wrote:
> Any idea how to get ahold of one?

My understanding is they are essentially one of the little NAS <-> USB disk
frobs.  I think Buffalo makes them, and they are supposedly very similar to the
Buffalo NAS frobs.  I assume they are mostly the same other than the Kuroboxen
being easier to hack on.  http://kurobox.com/

---
Tim Rightnour <root <at> garbled.net>
NetBSD: Free multi-architecture OS http://www.netbsd.org/
Genecys: Open Source 3D MMORPG: http://www.genecys.org/

Allen Briggs | 6 Sep 2006 05:18
Picon

Re: NetBSD on Kurobox?

On Tue, Sep 05, 2006 at 06:18:12PM -0700, Tim Rightnour wrote:
> My understanding is they are essentially one of the little NAS <-> USB disk
> frobs.  I think Buffalo makes them, and they are supposedly very similar to
> the Buffalo NAS frobs.  I assume they are mostly the same other than the
> Kuroboxen being easier to hack on.  http://kurobox.com/

Cool.  Thanks for the link.  It's archived for a round tuit windfall.

-allen

--

-- 
Allen Briggs  |  http://www.ninthwonder.com/~briggs/  |  briggs <at> ninthwonder.com

Garrett D'Amore | 17 Sep 2006 06:56

evbppc conversion to generic-todr

I have converted evbppc to generic todr.  For evbppc, this was fairly
straight-forward.  This also removes some now stale files.  Please test,
review and if appropriate commit (or ask me to commit).

I've compile tested all the evbppc kernels, and it looks good so far.

The patch is at ftp://ftp.NetBSD.org/pub/NetBSD/misc/gdamore/evbppc.diff

Thanks!

--

-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191

Jachym Holecek | 18 Sep 2006 22:51
Favicon

Re: evbppc conversion to generic-todr

# Garrett D'Amore 2006-09-17:
> I have converted evbppc to generic todr.  For evbppc, this was fairly
> straight-forward.  This also removes some now stale files.  Please test,
> review and if appropriate commit (or ask me to commit).
> 
> I've compile tested all the evbppc kernels, and it looks good so far.
> 
> The patch is at ftp://ftp.NetBSD.org/pub/NetBSD/misc/gdamore/evbppc.diff

Well, certainly looks fine to me... I think we can remove
powerpc/ibm4xx/dev/todclock.c as well, it doesn't seem to be used anywhere.

	-- Jachym

Garrett D'Amore | 19 Sep 2006 00:02

Re: evbppc conversion to generic-todr

Jachym Holecek wrote:
> # Garrett D'Amore 2006-09-17:
>   
>> I have converted evbppc to generic todr.  For evbppc, this was fairly
>> straight-forward.  This also removes some now stale files.  Please test,
>> review and if appropriate commit (or ask me to commit).
>>
>> I've compile tested all the evbppc kernels, and it looks good so far.
>>
>> The patch is at ftp://ftp.NetBSD.org/pub/NetBSD/misc/gdamore/evbppc.diff
>>     
>
> Well, certainly looks fine to me... I think we can remove
> powerpc/ibm4xx/dev/todclock.c as well, it doesn't seem to be used anywhere.
>
> 	-- Jachym
>   

I already removed (and committed) that file.  It wasn't used by anything
even before this change.

--

-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191

Jachym Holecek | 19 Sep 2006 00:17
Favicon

Re: evbppc conversion to generic-todr

# Garrett D'Amore 2006-09-19:
> I already removed (and committed) that file.  It wasn't used by anything
> even before this change.

Aha, I'm somewhat behind with source-changes (too much work)...

	-- Jachym

Garrett D'Amore | 19 Sep 2006 00:23

Re: evbppc conversion to generic-todr

Jachym Holecek wrote:
> # Garrett D'Amore 2006-09-19:
>   
>> I already removed (and committed) that file.  It wasn't used by anything
>> even before this change.
>>     
>
> Aha, I'm somewhat behind with source-changes (too much work)...
>
> 	-- Jachym
>   

I committed the change, and listed you as approver.  :-)

--

-- 
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134  Fax: 951 325-2191


Gmane