Re: [9fans] sheevaplug SD card driver

2012-11-10 Thread Erik Quanstrom
Interesting. Speaking of odd bits. Just noticed that devether does qbwrite not pass. Why? It defeats TCP congestion CTL. - erik Richard Miller <9f...@hamnavoe.com> wrote: >quans...@quanstro.net wrote: >> i really do like your cc malloc, though. very clean. > >Actually I've just noticed that

Re: [9fans] sheevaplug SD card driver

2012-11-10 Thread Richard Miller
quans...@quanstro.net wrote: > i really do like your cc malloc, though. very clean. Actually I've just noticed that my ccmalloc() function just duplicates what the standard mallocalign() already does. So I've removed it from the yet-to-be-applied sdmmc-driver patch.

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Charles Forsyth
Blocks are intended for IO. On 19 October 2012 22:49, erik quanstrom wrote: > Block*s (well at least the buffer) > needs to be special because the ethernet on the marvell is not > cache coherent. >

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread erik quanstrom
On Fri Oct 19 17:31:50 EDT 2012, charles.fors...@gmail.com wrote: > I think it's better to specify memory that must have special cache > properties, rather than assuming that everything is. this depends on the ratio of memory that has special cache properties to the memory that doesn't. if you h

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Charles Forsyth
I think it's better to specify memory that must have special cache properties, rather than assuming that everything is.

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Richard Miller
> kw-style caches (16-byte lines) mem.h says it's 32. But yeah, it's not much. > i had to look twice to verify i understood the pointer orthodontics. Correctness proof (or refutation) is left as an exercise for the reader...

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread lucio
> Or you can look in /n/sources/patch/sdmmc-driver. Thanks, will do. Time to dust off the Plug again. Thank you. ++L

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread erik quanstrom
On Fri Oct 19 11:40:41 EDT 2012, 9f...@hamnavoe.com wrote: > > easiest to just > > cacheline-align everything in malloc > > Might be a good idea for ARM. Until someone produces a > chip with gigantic cache lines? > > Another alternative might be to have a separate pool of > uncached memory. i'm

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Skip Tavakkolian
comment it out and uncomment the line above. On Fri, Oct 19, 2012 at 8:21 AM, wrote: >> /n/sources/contrib/miller/9/kw > > in "plug": > > I see you use /usr/miller/bin/arm/usbd, is there something special in > it? > > Also, "paq" reappears, do we want it, or is it just leftover? > > rip

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Richard Miller
> easiest to just > cacheline-align everything in malloc Might be a good idea for ARM. Until someone produces a chip with gigantic cache lines? Another alternative might be to have a separate pool of uncached memory.

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Richard Miller
>> /n/sources/contrib/miller/9/kw > > in "plug": > > I see you use /usr/miller/bin/arm/usbd, is there something special in > it? > > Also, "paq" reappears, do we want it, or is it just leftover? Sorry, this was leakage from my own experiments. I've now replaced that plug config with a standard

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread erik quanstrom
On Fri Oct 19 10:01:11 EDT 2012, 9f...@hamnavoe.com wrote: > > could you explain the ccmalloc trick? > > "cache coherent malloc" - not really a trick, just a way to > ensure SD buffers are cache-aligned and occupy an integral > number of cache lines, to avoid embarrassment when doing > dma on AR

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread lucio
> /n/sources/contrib/miller/9/kw in "plug": I see you use /usr/miller/bin/arm/usbd, is there something special in it? Also, "paq" reappears, do we want it, or is it just leftover? ripple# diff plug /n/sources/contrib/miller/9/kw/plug 59a60 > sdmmc sdio

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Richard Miller
> could you explain the ccmalloc trick? "cache coherent malloc" - not really a trick, just a way to ensure SD buffers are cache-aligned and occupy an integral number of cache lines, to avoid embarrassment when doing dma on ARM (which bypasses the cache). It costs a bit of space but saves copyin

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread erik quanstrom
On Fri Oct 19 09:37:40 EDT 2012, 9f...@hamnavoe.com wrote: > > it works > > like a charm. > > Thanks. Patch sdmmc-driver now submitted. could you explain the ccmalloc trick? - erik

Re: [9fans] sheevaplug SD card driver

2012-10-19 Thread Richard Miller
> it works > like a charm. Thanks. Patch sdmmc-driver now submitted.

Re: [9fans] sheevaplug SD card driver

2012-10-18 Thread Skip Tavakkolian
Thanks!!! I plan to try it out on sheeva and guru later today. On Thu, Oct 18, 2012 at 5:42 AM, Richard Miller <9f...@hamnavoe.com> wrote: > As a side effect of the raspberry pi work, I've produced an SD card > driver for the sheevaplug (and presumably other kirkwood platforms). > It's in two sec

Re: [9fans] sheevaplug SD card driver

2012-10-18 Thread David du Colombier
> Would anyone with a sheevaplug or similar, and a collection of SD > cards, like to try it out before I submit a patch? I just tried with various 2 GB to 16 GB Kingston SD and microSD (with adapter) cards on my SheevaPlug and it works like a charm. Thanks for your very nice work. -- David du C

Re: [9fans] sheevaplug SD card driver

2012-10-18 Thread Gorka Guardiola
On Thu, Oct 18, 2012 at 2:42 PM, Richard Miller <9f...@hamnavoe.com> wrote: > As a side effect of the raspberry pi work, I've produced an SD card > driver for the sheevaplug (and presumably other kirkwood platforms). > It's in two sections: the top layer does the card protocol and is > identical be

[9fans] sheevaplug SD card driver

2012-10-18 Thread Richard Miller
As a side effect of the raspberry pi work, I've produced an SD card driver for the sheevaplug (and presumably other kirkwood platforms). It's in two sections: the top layer does the card protocol and is identical between rpi and kw (could go into /sys/src/9/port?), while the lower layer does the ho