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 the _details_ ki
(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 the _details_ kill you. Linus
-
To unsubscribe from this list: send the line
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's not really all that
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's not really all that horribly
eli.carter(at)inet.com
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 dec
in 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 `- complicated
in 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 `- complicated
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 declared, allocated, and then
used with an addq and a removeq
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
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
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
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 Accuracy: When working toward
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 also
addr )
> +{
> + const char zaddr[6] = {0,};
> + const char faddr[6] = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF};
> +
> + return !(addr[0]&1) &&
> + memcmp( addr, zaddr, 6) &&
> + memcmp( addr, faddr, 6);
!(addr[0]1)
+ memcmp( addr, zaddr, 6)
+ memcmp( addr, faddr, 6);
+}
+
#endif
#endif /* _LINUX_ETHERDEVICE_H */
--
---. Rule of Accuracy: When working toward
Eli Carter |the solution of a problem, it always
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 also adds inline source
docs, and uses 'static inlin
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, its
s = 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
---.
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:
>
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
) {
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
---. Rule of Accuracy: When working toward
Eli Carter |the solution of
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, its not
the 9.ms case, but the 10.1 case:
[snip]
Like I say, this requires good
ow? 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 `
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 `-- helps if you
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 proble
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 firmly
o 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
---. Rule of Accuracy: When working toward
Eli Carter |
Rule of Accuracy: When working toward
Eli Carter |the solution of a problem, it always
eli.carter(at)inet.com `-- helps if you know the answer.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL
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 firmly of the conclusion that x86 is buggy
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 I was talking
about in the first
.)
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 specific; see if yo
nterrupts. The time jump in that case was slightly less than 1 jiffie
(jiffie = 10ms). It's likely rather hardware specific; see if you can
get someone with the same hardware to run your test code.
Eli
---. Rule of Accuracy: When worki
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 `
/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 `-- helps if you know the answer
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
.
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
. Rule of Accuracy: When working toward
Eli Carter
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
. Rule
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
. Rule of Accuracy: When working toward
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/drivers/net/pcnet32.c.2.4
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, it always
[EMA
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 &q
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 | the solution of a problem, it
ce.h
while I'm at it, or what?
Comments?
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:
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 "unsubscribe linux-kern
for least change in
initialization.
is_valid_ether_addr() is static inline in linux/etherdevice.h
Is this one satisfactory?
Eli
. Rule of Accuracy: When working toward
Eli Carter | the solution of a problem, it always
[EMAIL PROTECTED
. Rule of Accuracy: When working toward
Eli Carter | the solution of a problem, it always
[EMAIL PROTECTED] `- helps if you know the answer.
--- linux/drivers/net/pcnet32.c.2.4.1 Wed Feb 14 16:49:31 2001
+++ linux/drivers/net/pcnet32.c Thu Feb 15 13
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 registers
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 answer.
diff -u -r1.1.1
es cleanly.)
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 answer
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 registers if the stati
raft-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
.
?
Sender: [EMAIL PROTECTED]
X-Mailing-List: [EMAIL PROTECTED]
^^ Should provide that List-Id you want.
Eli
. Rule of Accuracy: When working toward
Eli Carter | the solution of a problem, it always
[EMAIL PROTECTED
r, 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]
Plea
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]
Please
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 @@
>
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:48 1.3
+++ linux/drive
ents?
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:48 1.3
+++ linux/drivers/net/
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 @@
}
#endif
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 from this
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 | serve
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 | serve
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 from this
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 applications
at the docbook in that. Thanks for the
pointer.
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
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)
. 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 applications
Eli Carter | serve
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 applications
Eli Carter |
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)
-
To unsubscribe from this
/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
--------. "To the systems pr
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
. "To the systems programmer, users and applications
Eli Carter | serve only to provide a test
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] `-- (r
opment 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] `-- (random fortune)
-
To unsubscribe from this list: se
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 | serve only to p
ease 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 | serve only to prov
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."
[EMAIL
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."
[EMAIL
ad)
*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 "unsubscribe
he current /.post:
Kernel Fork for Big Iron?
Posted by Hemos on Wednesday
September 27, @04:01PM
from the what-to-do dept.
(http://slashdot.org/article.pl?sid=00/09/27/191243mode=thread)
*sigh*
Eli
. "To the systems programmer, users and a
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,
> > emai
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,
email me.
Note that all of this is dependent on many things
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
Eli Carter |
ng 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] `--
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 list: send
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 list: send the line "unsubscribe linux-kernel&
ot 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] `-- (random fortune)
-
To unsubscribe from this list: send the lin
!
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
Eli Carter | serve only to provide a test load."
[EMAIL
86 matches
Mail list logo