AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080703114227.0141b41a@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<warren.gale@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@onstor-exch02.onstor.net/INBOX	0	BB375AF679D4A34E9CA8DFA650E2B04E0ABCF4BE@onstor-exch02.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 3 Jul 2008 11:43:09 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: "Warren Gale" <warren.gale@onstor.com>
Subject: Re: woo hoo
Message-ID: <20080703114309.231f327e@ripper.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0ABCF4BE@onstor-exch02.onstor.net>
References: <BB375AF679D4A34E9CA8DFA650E2B04E0ABCF163@onstor-exch02.onstor.net>
	<20080702192827.35b503a7@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0ABCF340@onstor-exch02.onstor.net>
	<20080703102124.0d009751@ripper.onstor.net>
	<BB375AF679D4A34E9CA8DFA650E2B04E0ABCF4BE@onstor-exch02.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Thu, 3 Jul 2008 11:25:23 -0700 "Warren Gale"
<warren.gale@onstor.com> wrote:

> Ah,   well that figures... I should have seen that one coming.
> Just when I feel like I'm getting somewhere,  stop, U turn..
> Oh well,  Ok.. Not all a loss.. Did find some other stuff..
> So I guess I need to look at the "yenta" card bus driver stuff..
> Right? 

I don't know if that's a good idea.  That driver is fairly complicated
and has a lot of Linux-y stuff in it that would be useless for the
PROM.  But you can always use it for reference for things like how it
does polling, how it programs DMA, etc.  Reading the documentation
for the part would probably be faster/simpler.  It's a weird part if you
ask me, with multiple modes and other crapola, and I don't want you to
get bogged down in that too much.  KIS.

> I did do some experimenting in PROM awhile back and broke it.
> so I dropped it and finished up other diag stuff.
> Taking out the spinning wheel did nothing to speed up the load.

Not sure it's a driver issue.  I would look for things like:

+ ways to bring the filesystem and the driver closer together, like
get enough info from the filesystem to be able to set up only one read
for a contiguous chunk of blocks, instead of one read for each block,
if you know what I mean.

+ if you're not using DMA, use DMA.  might take you a day or two of
consulting the programmer's guide for the part, but should be pretty
simple.

+ Brian said something about not reading one byte at a time.  We're not
doing that, are we?

> Ok,  I'm back on that one....
> You letting Brian know?

Already chatted it all with Brian.

> Thanks,
> Warren
>  
> 
> -----Original Message-----
> From: Andy Sharp 
> Sent: Thursday, July 03, 2008 10:21 AM
> To: Warren Gale
> Subject: Re: woo hoo
> 
> Oops, I forgot to mention that you are to stop working on this for the
> current release and dig into the PROM code and make it load the images
> faster.  Enlist whatever help/advice you need from me.
> 
> Cheers,
> 
> a
> 
> 
> On Thu, 3 Jul 2008 08:26:10 -0700 "Warren Gale"
> <warren.gale@onstor.com> wrote:
> 
> > Ha Ha hehe ... Yep, I Know.. I was just happy to see some
> > progress ... ( breaking things for me IS
> > progress..(sometimes)  :) ) 
> > 
> > 
> > -----Original Message-----
> > From: Andy Sharp 
> > Sent: Wednesday, July 02, 2008 7:28 PM
> > To: Warren Gale
> > Subject: Re: woo hoo
> > 
> > Hmm, let me think for a second.  Oh yeah.  I TOLD YOU IT WOULDN'T
> > WORK.  OK I'll stop shouting now.
> > 
> > On Wed, 2 Jul 2008 17:43:09 -0700 "Warren Gale"
> > <warren.gale@onstor.com> wrote:
> > 
> > > Andy,
> > > 
> > >   I like it... looks like that module doesn't work...yet...
> > > 
> > > Thought you'd like the output :-)
> > > 
> > >  
> > > 
> > > Warren
> > > 
> > >  
> > > 
> > > ata1: PATA max PIO0 cmd 0x90000000dc000000 ctl 0x90000000dc00000e
> > > bmdma 0x0000000000000000 irq 56
> > > 
> > > ds1511 ds1511: rtc core: registered ds1511 as rtc0
> > > 
> > > MGMTBUS: using irq 29
> > > 
> > > MGMTBUS: registered net device mgmtbus @ 900000008f000000
> > > 
> > > rcon device will be in the hizzy @ 900000008f0000e0
> > > 
> > > prom_init
> > > 
> > > from_init: DEV_29LV040 sector size = 65536 size = 524288
> > > 
> > > DBE physical address: 001f800000
> > > 
> > > Data bus error, epc == ffffffff82197a50, ra == ffffffff82197a44
> > > 
> > > Oops[#1]:
> > > 
> > > Cpu 0
> > > 
> > > $ 0   : 0000000000000000 0000000014001fe0 0000000000000000
> > > ffffffffffffffff
> > > 
> > > $ 4   : ffffffffbf800000 0000000000000090 0000000000000055
> > > ffffffff822f0000
> > > 
> > > $ 8   : ffffffff822b0000 ffffffff822b6890 ffffffffffff1d77
> > > ffffffff82300000
> > > 
> > > $12   : ffffffff82310000 ffffffff82300000 fffffffffffffff8
> > > ffffffff8223d518
> > > 
> > > $16   : ffffffff82324e40 ffffffffbf800000 ffffffff82324e38
> > > ffffffff82324e41
> > > 
> > > $20   : 0000000000000001 ffffffff82320000 0000000000000002
> > > ffffffff82240000
> > > 
> > > $24   : 0000000000000000 0000000000000020
> > > 
> > > $28   : a8000000048e4000 a8000000048e7ed0 0000000000000008
> > > ffffffff82197a44
> > > 
> > > Hi    : 00000000000000c7
> > > 
> > > Lo    : ae147ae147ac3400
> > > 
> > > epc   : ffffffff82197a50 from_init+0x98/0x2e0     Not tainted
> > > 
> > > ra    : ffffffff82197a44 from_init+0x8c/0x2e0
> > > 
> > > Status: 14001fe3    KX SX UX KERNEL EXL IE
> > > 
> > > Cause : 0080841c
> > > 
> > > PrId  : 00040103
> > > 
> > > Modules linked in:
> > > 
> > > Process swapper (pid: 1, threadinfo=a8000000048e4000,
> > > task=a8000000048e1768)
> > > 
> > > Stack : ffffffffffffffed ffffffff82240000 ffffffff82290000
> > > fffffffffffffffe
> > > 
> > >         0000000000000000 ffffffff82270000 ffffffff822f0000
> > > ffffffff822f0000
> > > 
> > >         0000000000000000 ffffffff82197fe4 0000000000000000
> > > ffffffff822f35f8
> > > 
> > >         0000000000000000 fffffffffffffffe ffffffff822d86a8
> > > ffffffff822d86a8
> > > 
> > >         0000000000000000 0000000000000000 0000000000000000
> > > 0000000000000000
> > > 
> > >         0000000000000000 0000000000000000 0000000000000000
> > > 0000000000000000
> > > 
> > >         0000000000000000 0000000000000000 0000000000000000
> > > 0000000000000000
> > > 
> > >         0000000000000000 0000000000000000 0000000000000000
> > > ffffffff82003930
> > > 
> > >         0000000000000000 ffffffff82003920 0000000000000000
> > > 0000000000000000
> > > 
> > >         0000000000000000 0000000000000000
> > > 
> > > Call Trace:
> > > 
> > > [<ffffffff82197a50>] from_init+0x98/0x2e0
> > > 
> > > [<ffffffff82197fe4>] prom_init+0x3c/0x168
> > > 
> > > [<ffffffff822d86a8>] kernel_init+0xd0/0x2f8
> > > 
> > > [<ffffffff82003930>] kernel_thread_helper+0x10/0x18
> > > 
> > >  
> > > 
