Re: Memory access

2001-07-03 Thread Eli Carter
t to look into ioremap() and maybe buy Linux Device Drivers by Rubini (O'Reilly). Have fun! Eli -------. No wonder we didn't get this right first time Eli Carter | through. It's not really all that horribly eli.carter(at)inet.com `- complicated, but t

Re: Linux kernel programming for beginners

2001-05-15 Thread Eli Carter
by some, but it seems completely on-topic to me... > jon (who's glad we didn't tell people how to request major device > numbers...) *chuckle* :) Eli -------. No wonder we didn't get this right first time Eli Carter | through. It&

Re: standard queue implementation?

2001-05-09 Thread Eli Carter
george anzinger wrote: > > Eli Carter wrote: > > > > All, > > > > I did a quick look in include/linux for a standard implementation of an > > array-based circular queue, but I didn't see one. > > > > I was thinking something that could be decl

standard queue implementation?

2001-05-09 Thread Eli Carter
n the kernel? If not, it seems that having something like this would reduce the potential for bugs. Thoughts? Eli ---. No wonder we didn't get this right first time Eli Carter | through. It's not really all that horribly eli.carter(at)inet.com `- c

Re: [PATCH] pcnet32 compilation fix for 2.4.3pre6

2001-03-29 Thread Eli Carter
ntics should continue to > use __inline__ since this keyword will hopefully forever signal the > gcc semantics. So what are the differences? (Or, what would I read to learn the differences?) When are they important to us? TIA, Eli ---. Rule of Accu

rate limiting error messages

2001-03-29 Thread Eli Carter
Can someone point me to a "standard way" of doing rate limiting of error messages in the kernel? TIA, Eli ---. Rule of Accuracy: When working toward Eli Carter |the solution of a problem, it always eli.carter(a

Re: [PATCH] pcnet32 compilation fix for 2.4.3pre6

2001-03-22 Thread Eli Carter
Jeff Garzik wrote: > > Eli Carter wrote: > > The "!(addr[0]&1)" part of the test already catches the ff's case, so > > that is redundant. > > Using 6 bytes instead of 7 is an improvement. > > oops. Thanks, updated patch attached. My patch

Re: [PATCH] pcnet32 compilation fix for 2.4.3pre6

2001-03-22 Thread Eli Carter
nline int is_valid_ether_addr( u8 *addr ) > +{ > + const char zaddr[6] = {0,}; > + const char faddr[6] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}; > + > + return !(addr[0]&1) && > + memcmp( addr, zaddr, 6) && > +

Re: gettimeofday question

2001-03-21 Thread Eli Carter
Eli Carter wrote: > > Eli Carter wrote: > > > > Russell King wrote: > > > > > > Eli Carter writes: > > > > What are you seeing that I'm missing? > > > > > > Ok, after sitting down and thinking again about this problem

Re: [PATCH] Prevent OOM from killing init

2001-03-21 Thread Eli Carter
int points = badness(p); > if (points > maxpoints) { > chosen = p; > Having not looked at the code... Why not "if( p->pid > 1 )"? (Or can p->pid can be negative?!, um, typecast to unsigned...) Eli ---

Re: gettimeofday question

2001-03-21 Thread Eli Carter
Eli Carter wrote: > > Russell King wrote: > > > > Eli Carter writes: > > > What are you seeing that I'm missing? > > > > Ok, after sitting down and thinking again about this problem, its not > > the 9.ms case, but the 10.1 case: >

Re: gettimeofday question

2001-03-21 Thread Eli Carter
Russell King wrote: > > Eli Carter writes: > > What are you seeing that I'm missing? > > Ok, after sitting down and thinking again about this problem, its not > the 9.ms case, but the 10.1 case: [snip] > Like I say, this requires good timing to create,

Re: gettimeofday question

2001-03-20 Thread Eli Carter
w? The x86 is an improvement over the current situation (at least on ebsa285). Or do you have something else in mind? Eli ---. Rule of Accuracy: When working toward Eli Carter |the solution of a problem, it always eli.carter(at)inet.com `--

Re: gettimeofday question

2001-03-19 Thread Eli Carter
Russell King wrote: > > Eli Carter writes: > > What are you seeing that I'm missing? > > Ok, after sitting down and thinking again about this problem, its not > the 9.ms case, but the 10.1 case: And you described (in much better detail) the same problem

Re: gettimeofday question

2001-03-19 Thread Eli Carter
Russell King wrote: > > Eli Carter writes: > > Russell, I know that at least the EBSA285's timer1_gettimeoffset() needs > > some attention to fix a time going backward problem. > > I know about this, which is what started me looking at what x86 does, > and I am f

Re: gettimeofday question

2001-03-19 Thread Eli Carter
variables... but that's kinda ugly. Perhaps it should call gettimeoffset to make sure that it keeps up with the jiffies? Ummm Of course, if interrupt are disabled for multiple jiffies, I'm not sure quite how we detect that either... Thoughts, comments, questions, etc. welcome. Eli -

Re: strange nonmonotonic behavior of gettimeoftheday

2001-03-02 Thread Eli Carter
liseconds.) I've seen behaviour like that on an ARM processor because the time code was not considering missed (or rather, delayed response to) timer interrupts. The time jump in that case was slightly less than 1 jiffie (jiffie = 10ms). It's likely rather hardware

Re: newbie fodder

2001-02-21 Thread Eli Carter
http://www.win.tue.nl/~aeb/linux/vfs/trail-1.html Cool. Post this to kernelnewbies: [EMAIL PROTECTED] Eli ---. Rule of Accuracy: When working toward Eli Carter |the solution of a problem, it always eli.carter(at)inet.com `

Re: The lack of specification

2001-02-19 Thread Eli Carter
t; web in one place - its called the Kernel Wiki, and iirc it is on > sourceforge. It's here: http://kernelbook.sourceforge.net:80/wiki/?KernelWiki BUT.. it's currently dead and has been since December. I'd really like to see this brought back... Eli ---------

Re: Little question of mine....

2001-02-16 Thread Eli Carter
. I see flame throwers everywhere. Get "Linux Device Drivers" by Rubini and hang out on the kernel-newbies list for a while... people there are more open to answering questions of this type than most here. But above all, don't let the flames from this discourage you. ^C-ya, Eli

Re: [PATCH] pcnet32.c: MAC address may be in CSR registers

2001-02-15 Thread Eli Carter
but I tested this change in a 2.2.x kernel, so it should be ok. Is this patch satisfactory? Eli . Rule of Accuracy: When working toward Eli Carter | the solution of a problem, it always [EMAIL PROTECTED] `- helps if you know the answer. --- linux/

Re: [PATCH] pcnet32.c: MAC address may be in CSR registers

2001-02-15 Thread Eli Carter
shortly. This one still uses the PROM since we are going for least change in initialization. is_valid_ether_addr() is static inline in Is this one satisfactory? Eli --------. Rule of Accuracy: When working toward Eli Carter | the solution of a problem

Re: Documentation required for TCP / IP stack implementation

2001-02-15 Thread Eli Carter
be helpful to you. Eli . Rule of Accuracy: When working toward Eli Carter | the solution of a problem, it always [EMAIL PROTECTED] `- helps if you know the answer. - To unsubscribe from this list: send the line "unsu

Re: [PATCH] pcnet32.c: MAC address may be in CSR registers

2001-02-15 Thread Eli Carter
not read the EEPROM. I think he has a point, so I'll make that change and submit yet another patch pair. Alan, do you want me to put your inline version in while I'm at it, or what? Comments? Eli . Rule of Accuracy: When working toward Eli Carter

Re: [PATCH] pcnet32.c: MAC address may be in CSR registers

2001-02-14 Thread Eli Carter
Eli Carter wrote: > I'm dealing with an AMD chip that does not have the station address in > the PROM at the base address, but resides in the "Physical Address > Registers" in the chip (thanks to the bootloader in my case). This > patch makes the driver try those regis

[PATCH] pcnet32.c: MAC address may be in CSR registers

2001-02-14 Thread Eli Carter
nly.) If this is not acceptible or could be improved, please reply with feedback. TIA, Eli . Rule of Accuracy: When working toward Eli Carter | the solution of a problem, it always [EMAIL PROTECTED] `- helps if you know the

Re: lkml subject line

2001-02-12 Thread Eli Carter
header (draft-chandhok-listid-04.txt RFC-to-be, > implemented in lots of mailing list managers already). Have you looked at the headers in an LK email? Sender: [EMAIL PROTECTED] X-Mailing-List: [EMAIL PROTECTED] ^^ Should provide that List-Id you want. Eli

peek/poke question

2001-01-30 Thread Eli Carter
er, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `-- (random fortune) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED]

Re: [PATCH] pcnet32.c ARM support & AM79C973 improvements

2001-01-18 Thread Eli Carter
Eli Carter wrote: > Here is a patch that adds the following to the pcnet32.c driver: [snip] > - According to the Am79C973/Am79C975 docs from AMD, The collision bits > are only valid if ENP is set, so I added a check for that. [snip] > @@ -1164,7 +1206,8 @@ >

[PATCH] pcnet32.c ARM support & AM79C973 improvements

2001-01-18 Thread Eli Carter
ld be welcomed as well. Comments? Eli . "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `-- (random fortune) --- linux/drivers/net/pcnet32.c 2001/01/17 17:42:4

Re: lance.c @ 100Mbit

2001-01-16 Thread Eli Carter
.) I'm open to suggestions on that as well. :) Thanks again! Eli . "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `-- (random fortune) - To unsubscribe

lance.c @ 100Mbit

2001-01-16 Thread Eli Carter
Quick question: has anyone used the lance.c driver for a 100BaseT network PCI device? If so, what successes/failures did you run into? (I'm working with an Am79C973 chip.) TIA, Eli . "To the systems programmer, users and applications Eli Carter | ser

Re: generic sleeping locks?

2000-12-19 Thread Eli Carter
ook/kernel-locking* > > Rusty. > -- > Hacking time. Perhaps I should have specified that I'm working with 2.2.xy I'll d/l a 2.4.0-test and look at the docbook in that. Thanks for the pointer. Eli . "To the systems programmer, users and applicat

Re: generic sleeping locks?

2000-12-18 Thread Eli Carter
question: What about blocking read/write locks (with _interruptible variants)? TIA, Eli . "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `-- (random fortune)

generic sleeping locks?

2000-12-18 Thread Eli Carter
leep lock. A few blind greps through the source didn't find anything that caught my eye. If there aren't, would a patch to add them be of interest to anyone? Input on design details welcome. TIA, Eli . "To the systems programmer, users and appl

Re: [OT] Re: Linus's include file strategy redux

2000-12-15 Thread Eli Carter
; /usr/src/linux-2.2.18) > > I personally wouldn't like some programs to do a `uname -r` > check because it won't do what I want it to :) And don't forget cross-compiling... (No, I don't know how all that is supposed to work. *sigh*) ^C-ya, Eli --

Re: Assistance requested in demystifying wait queues.

2000-12-05 Thread Eli Carter
ful stuff. Some of it is a bit dated by development in 2.2 & 2.[34], but it'll help a lot. Good luck, Eli ----. "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `

[PATCH] lance.c - dev_kfree_skb() then reference skb->len

2000-11-28 Thread Eli Carter
ect. Please apply or let me know why. Eli ps. It's an attachment rather than inline because I can't seem to get Netscape (4.71) to do that without replacing tabs with spaces. Grr. . "To the systems programmer, users and applications Eli Carter |

kmem_grow

2000-10-05 Thread Eli Carter
ectly somewhere I'll read the fine manual or the appropriate source if someone will point it out to me... TIA, Eli . "To the systems programmer, users and applications Eli Carter | serve only to provide a test load.&qu

Re: Russell King forks ARM Linux.

2000-09-27 Thread Eli Carter
mode=thread) *sigh* Eli ----. "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `-- (random fortune) - To unsubscribe from this list: send the line "un

Re: Fixed addresses for various architectures

2000-09-15 Thread Eli Carter
Russell King wrote: > Eli Carter writes: > > I have a Gnome Dia document in which I've tried to lay out the fixed > > memory locations for arm-linux and the mapping of > > ioremap<->virt<->phys<->bus. It's not perfect, but if you want a copy, >

Re: configuring from kernel source directory

2000-09-13 Thread Eli Carter
ke xconfig works in the original old kernel source > directory. > Thanks ! include/asm is supposed to be a softlink. man cp. You need to use -d to preserve links instead of dereferencing them. Eli --------. "To the systems programmer, users and applications E

Re: Fixed addresses for various architectures

2000-09-13 Thread Eli Carter
m-linux and the mapping of ioremap<->virt<->phys<->bus. It's not perfect, but if you want a copy, email me. Eli . "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `

Re: Proposal: Linux Kernel Patch Management System

2000-09-13 Thread Eli Carter
isn't available, what is the point of submitting the patch? Eli ------------. "To the systems programmer, users and applications Eli Carter | serve only to provide a test load." [EMAIL PROTECTED] `-- (random fortune) - To unsubscribe from this l