Re: about interrupt latency

2005-03-08 Thread linux-os
On Tue, 8 Mar 2005, Francesco Oppedisano wrote: Hi, i'm trying to estimate the interrupt latency (time between hardware interrrupt and the start of the ISR) of a linux kernel 2.4.29 and i used a simple tecnique: inside the do_timer_interrupt i read the 8259 counter to obtain the elapsed time. By th

kernel mmap() and friends.

2005-03-08 Thread linux-os
Hello mem-map gurus, If one uses x = __get_dma_pages(GFP_KERNEL, nr), finds the physical address with b = virt_to_bus(x), then attempts to mmap(,,b,,,) the result _does_not_fail_, yet the user ends up with memory ...somewhere that is R/W able and WRONG. Yet, if the code executes SetPageReserved

Mount on Linux-2.6.10

2005-03-08 Thread linux-os
When I mount the root file-system and the proc file-system on an embedded system, I use MS_NOATIME|MS_NODIRTIME for the flags. No errors are reported and the file-systems are mounted. However, the (struct stat) st_mtime of the /proc directory is updated at every access and the st_mtime of any speci

Re: "remap_page_range" compile ERROR

2005-03-09 Thread linux-os
On Wed, 9 Mar 2005, Mukund JB. wrote: Hi all, I am running Redhat 9 Linux. I have problem with compiling the i810fb driver downloaded from Sourceforge site. I have D/W the i810fb patch "linux-i810fb-0.0.35.tar.bz2". When I run the make modules I get the following ERROR i810_main.c: 643: warning: pa

Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread linux-os
On Wed, 9 Mar 2005, Andrew Morton wrote: Russell King <[EMAIL PROTECTED]> wrote: I'm not convinced about the practicality of converting all static initialisations to code-based initialisations though This is the first one I recall seeing. All the other conversions were replacing static

Re: Can I get 200M contiguous physical memory?

2005-03-10 Thread linux-os
On Thu, 10 Mar 2005, Nate Edel wrote: From: "Arjan van de Ven" <[EMAIL PROTECTED]> To: "Jason Luo" <[EMAIL PROTECTED]> A data acquisition card. In DMA mode, the card need 200M contiguous memory for DMA. (or want to reserve memory at the boot commandline and then do really really evil hacks) Such as

Re: Strange Linking Problem

2005-03-12 Thread linux-os
On Sat, 12 Mar 2005, Matthias-Christian Ott wrote: Hi! I hope I'm right here. I've the following assembler code: SECTION .DATA hello: db 'Hello world!',10 helloLen: equ $-hello SECTION .TEXT GLOBAL main main: ; Write 'Hello world!' to the screen mov eax,4

Re: repeat a function after fixed time period

2005-03-23 Thread linux-os
On Wed, 23 Mar 2005, Arjan van de Ven wrote: On Wed, 2005-03-23 at 15:56 -0500, linux-os wrote: static void start_timer(void) { if(!atomic_read(&info->running)) { atomic_inc(&info->running); same race. No such race at all. here there is one; you use add_timer

Re: repeat a function after fixed time period

2005-03-24 Thread linux-os
On Wed, 23 Mar 2005, sounak chakraborty wrote: --- linux-os <[EMAIL PROTECTED]> wrote: On Wed, 23 Mar 2005, Arjan van de Ven wrote: On Wed, 2005-03-23 at 15:56 -0500, linux-os wrote: static void start_timer(void) { if(!atomic_read(&info->running)) { atomic_inc(&

mmap/munmap on linux-2.6.11

2005-03-25 Thread linux-os
Memory gurus, We have an application where a driver allocates DMA-able memory. This DMA-able memory is mmap()ed to user-space. To conserve DMA memory only single pages are obtained using __get_dma_pages(GFP_KERNEL, 1) (one page at a time). These pages, that may be scattered all about, are mmap()ed

Re: [PATCH] no need to check for NULL before calling kfree() - fs/ext2/

2005-03-25 Thread linux-os
Isn't it expensive of CPU time to call kfree() even though the pointer may have already been freed? I suggest that the check for a NULL before the call is much less expensive than calling kfree() and doing the check there. The resulting "double check" is cheap, compared to the call. On Fri, 25 Mar

Re: [PATCH] remove redundant NULL pointer checks prior to calling kfree() in fs/nfsd/

2005-03-25 Thread linux-os
On Fri, 25 Mar 2005, Jesper Juhl wrote: (please keep me on CC) checking for NULL before calling kfree() is redundant and needlessly enlarges the kernel image, let's get rid of those checks. Hardly. ORing a value with itself and jumping on condition is real cheap compared with pushing a value into t

Re: [PATCH] no need to check for NULL before calling kfree() -fs/ext2/

2005-03-26 Thread linux-os
On Sat, 26 Mar 2005, Arjan van de Ven wrote: On Fri, 2005-03-25 at 17:29 -0500, linux-os wrote: Isn't it expensive of CPU time to call kfree() even though the pointer may have already been freed? nope a call instruction is effectively half a cycle or less, the branch Wrong! predictor of th

Re: [PATCH] no need to check for NULL before calling kfree() -fs/ext2/

2005-03-27 Thread linux-os
On Sat, 26 Mar 2005, Marcin Dalecki wrote: On 2005-03-27, at 00:21, linux-os wrote: Always, always, a call will be more expensive than a branch on condition. It's impossible to be otherwise. A call requires that the return address be written to memory (the stack), using register indirection

Re: [PATCH] no need to check for NULL before calling kfree()-fs/ext2/

2005-03-27 Thread linux-os
On Sun, 27 Mar 2005, Arjan van de Ven wrote: On Sat, 2005-03-26 at 18:21 -0500, linux-os wrote: On Sat, 26 Mar 2005, Arjan van de Ven wrote: On Fri, 2005-03-25 at 17:29 -0500, linux-os wrote: Isn't it expensive of CPU time to call kfree() even though the pointer may have already been freed? n

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-28 Thread linux-os
On Mon, 28 Mar 2005, Steven Rostedt wrote: On Sun, 2005-03-27 at 21:54 -0400, Horst von Brand wrote: Wrong. You are free to do whatever you like in the privacy of your home, but not distribute the result. So you could very well distribute both pieces, one under GPL, the other not, and leave the lin

Re: Strange memory problem with Linux booted from U-Boot

2005-03-28 Thread linux-os
I tried your program with several 'val' values including ~0 and 0. The results were the same. In spite of using character pointers on large negative integers, everything worked. What was the observed kernel problem?? Perhaps, the kernel's printk() was not as kind as g++ and you got some strange pri

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-29 Thread linux-os
On Mon, 28 Mar 2005, Steven Rostedt wrote: On Mon, 2005-03-28 at 19:56 -0500, Kyle Moffett wrote: On Mar 28, 2005, at 19:21, Steven Rostedt wrote: So you are saying that a stand alone section of code, that needs wrappers to work with Linux is a derived work of Linux? If there's some functionality,

Re: PCI bus mastering question

2005-03-29 Thread linux-os
On Tue, 29 Mar 2005, Mateusz Berezecki wrote: Hello dear list readers, I've been googling on the topic for a couple of minutes and I got some question. If PCI bus mastering means the device gets the control over the bus and does all device voodoo is it possible to achieve the same effects without u

Re: Delay in a tasklet.

2005-03-30 Thread linux-os
On Wed, 30 Mar 2005, Davide Rossetti wrote: Bouchard, Sebastien wrote: Hi, I'm in the process of writing a linux driver and I have a question in regards to tasklet : Is it ok to have large delay "udelay(1000);" in the tasklet? If not, what should I do? Please send the answer to me personally (I'm n

Re: i386/x86_64 segment register issuses (Re: PATCH: Fix x86 segment register access)

2005-03-30 Thread linux-os
On Wed, 30 Mar 2005, Linus Torvalds wrote: [ binutils and libc back in the discussion - I don't know why they got dropped ] On Tue, 29 Mar 2005, H. J. Lu wrote: There is no such an instruction of "movl %ds,(%eax)". The old assembler accepts it and turns it into "movw %ds,(%eax)". I disagree. Viole

Re: How to debug kernel before there is no printk mechanism?

2005-03-30 Thread linux-os
On Wed, 30 Mar 2005, krishna wrote: Hi all, How can one debug kernel before there is no printk mechanism in kernel. Regards, Krishna Chaitanya Write directly to screen memory at 0x000b8000, or write to the RS-232C UART while polling the TX buf empty bit, or just write bits that mean something to yo

Re: How to debug kernel before there is no printk mechanism?

2005-03-30 Thread linux-os
YI, a real-mode segment is a 16-byte entity, therefore there are many segment:offset combinations that can get you to 0x000b8000. On Wednesday 30 March 2005 04:47 pm, linux-os wrote: On Wed, 30 Mar 2005, krishna wrote: Hi all, How can one debug kernel before there is no printk mechanism in kernel. R

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-30 Thread linux-os
On Wed, 30 Mar 2005, Rik van Riel wrote: On Tue, 29 Mar 2005, linux-os wrote: If there is documented proof that those symbols were previously available and then they were changed to something more restrictive, I think one would prevail if a complaint were brought in court. They're still avai

Re: How to debug kernel before there is no printk mechanism?

2005-03-30 Thread linux-os
On Wed, 30 Mar 2005, Vicente Feito wrote: On Wednesday 30 March 2005 06:09 pm, linux-os wrote: On Wed, 30 Mar 2005, Vicente Feito wrote: Video memory is at b800:, for humans 0xb800, not at 0x000b8000 Wrong. "real-mode" can use a segment address of b800, that doesn't work in

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-31 Thread linux-os
On Thu, 31 Mar 2005, Sean wrote: On Wed, March 30, 2005 2:57 pm, linux-os said: Yes. And this would show that whomever did that already violated the intent of the GPL by adding restrictions to use. NotGood(tm). Dick, You are so full of shit. There are no additonal restrictions, just the

Low file-system performance for 2.6.11 compared to 2.4.26

2005-03-31 Thread linux-os
/var/gdm/:0.Xauth -nolisten tcp vt7 442 4735 4619 15 0 2 8940 - S? 0:02 /usr/bin/gdmgreeter 4 0 4890 1 17 0 2744 1108 wait S? 0:00 login -- root 4 0 5119 1 17 0 2744 1328 wait S? 0:00 login -- linux-os

Re: [RFC] : remove unreliable, unused and unmainained arch from kernel.

2005-04-01 Thread linux-os
On Fri, 1 Apr 2005, Evgeniy Polyakov wrote: Hello, developers. In order to compete with the new upcoming releases of the various OSes, and to join all developers efforts into the one really promising and powerfull direction, I present you following patch, which removes absolutely unused in a real w

Re: [RFC] : remove unreliable, unused and unmainained arch from kernel.

2005-04-01 Thread linux-os
[PATCH snipped] Cruel joke. Now 80 percent of the Intel clones won't boot. Those are the ones that run industry, you know, the stuff that is necessary to earn money. Without i386 support, you don't have any embedded systems. You need to use the garbage Motorola CPUs and the proprietary operating sy

IBM Patents

2005-01-17 Thread linux-os
Tue Jan 11 07:07:40 EST 2005 IBM has announced that it will provide free access to about 500 of its existing software patents to users and groups working on open source software. http://www.ibm.com/news/us/ Many of these patents relate to interoperability, communications, file-export proto

Re: Random packets loss under x86_64 - routing?

2005-01-17 Thread linux-os
On Mon, 17 Jan 2005, Peter Kruse wrote: Hello, thanks for your reply linux-os wrote: > When they 'disappear', use `arp -d hostname` to delete the entry from the ARP tables. Then see if you can ping it. It is possible that the destination machine got re-routed and the new router's

RE: New Linux System time proposal

2005-01-19 Thread linux-os
On Tue, 18 Jan 2005, Robert White wrote: I thought it was not at all unusual to miss a jiffy here or there due to interrupt locking/latency; plus jiffies is expressed with respect to the value of HZ so you would need to do some deviding in there somewhere. Makes no difference. The idea is that jiff

Re: kbuild: Implicit dependence on the C compiler

2005-01-19 Thread linux-os
On Wed, 19 Jan 2005, Bodo Eggert wrote: Sam Ravnborg <[EMAIL PROTECTED]> wrote: 1) Unconditionally execute make install assuming vmlinux is up-to-date. make modules_install run unconditionally, so this is already know practice (o) Vote for this. IMO, a make install should NEVER run the compil

Re: 2.6.10-mm1 hang

2005-01-19 Thread linux-os
On Wed, 19 Jan 2005, Andrew Morton wrote: Badari Pulavarty <[EMAIL PROTECTED]> wrote: I was playing with kexec+kdump and ran into this on 2.6.10-mm1. I have seen similar behaviour on 2.6.10. I am using a 4-way P-III machine. I have a module which tries gets same spinlock twice. When I try to "in

Re: thoughts on kernel security issues

2005-01-25 Thread linux-os
On Tue, 25 Jan 2005, John Richard Moser wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitry Torokhov wrote: On Tue, 25 Jan 2005 13:37:10 -0500, John Richard Moser <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Linus Torvalds wrote: On Tue, 25 Jan 2005, John Richar

Re: Register saving and signal handling

2005-01-25 Thread linux-os
On Tue, 25 Jan 2005, Robert Szeleney wrote: Hi! This is my first time posting to the Linux kernel mailing-list, and I hope someone can help me or at least explain following to me. When a task gets interrupted by a signal, the do_signal() function is called. Now, when the signal is not handled by

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-11 Thread linux-os (Dick Johnson)
On Fri, 8 Feb 2008, Mark Hounschell wrote: > linux-os (Dick Johnson) wrote: >> >> The correct word should be "invalid," in spite of >> the fact that the SCSI committee used invalid syntax. >> >> Alan is right. There is nothing illegal in the kernel >

Re: [PATCH] fs/coda: remove static inline forward declarations

2008-02-13 Thread linux-os (Dick Johnson)
On Wed, 13 Feb 2008, [iso-8859-1] Ilpo Järvinen wrote: > They're defined later on in the same file with bodies and > nothingin between needs them. > > Signed-off-by: Ilpo Järvinen <[EMAIL PROTECTED]> > --- > include/linux/coda_linux.h |3 --- > 1 files changed, 0 insertions(+), 3 deletions(-)

Re: [PATCH] fs/coda: remove static inline forward declarations

2008-02-13 Thread linux-os (Dick Johnson)
On Wed, 13 Feb 2008, [iso-8859-1] Ilpo Järvinen wrote: > On Wed, 13 Feb 2008, linux-os (Dick Johnson) wrote: >> >> On Wed, 13 Feb 2008, [iso-8859-1] Ilpo Järvinen wrote: >> >>> They're defined later on in the same file with bodies and >>> nothingin bet

Re: Is there a "blackhole" /dev/null directory?

2008-02-14 Thread linux-os (Dick Johnson)
On Thu, 14 Feb 2008, Mika Lawando wrote: > Jasper Bryant-Greene schrieb: >> On Thu, 2008-02-14 at 10:30 +0100, rzryyvzy wrote: >> >>> /dev/null is often very useful, specially if programs force to save data in >>> some file. But some programs like to creates different temporary file >>> names,

Re: [PATCH] scsi_error: Fix language abuse.

2008-02-08 Thread linux-os (Dick Johnson)
The correct word should be "invalid," in spite of the fact that the SCSI committee used invalid syntax. Alan is right. There is nothing illegal in the kernel and if there is, it must be removed as soon as it is discovered! On Fri, 8 Feb 2008, James Bottomley wrote: > > On Fri, 2008-02-08 at 1

Re: Print long messages to console from kernel module

2008-02-25 Thread linux-os (Dick Johnson)
On Mon, 25 Feb 2008, Arvid Brodin wrote: > I need to write messages > 1023 characters long to the console from a > module*. printk() is limited to 1023 characters, and splitting the message > over several printk()'s results in a line break and "Month hh:mm:ss host > kernel:" being inserted in

Re: kernel guide to space

2005-07-21 Thread linux-os \(Dick Johnson\)
On Thu, 21 Jul 2005, Jesper Juhl wrote: > On 7/21/05, Kyle Moffett <[EMAIL PROTECTED]> wrote: >> On Jul 20, 2005, at 20:45:21, Paul Jackson wrote: > [...snip...] >> *cough* TargetStatistics[TargetID].HostAdapterResetsCompleted *cough* >> >> I suspect linus would be willing to accept a few cleanup

Re: Kernel doesn't free Cached Memory

2005-07-22 Thread linux-os \(Dick Johnson\)
On Fri, 22 Jul 2005, Bernd Petrovitsch wrote: > On Fri, 2005-07-22 at 08:27 -0300, Vinicius wrote: > [...] >>I have a server with 2 Pentium 4 HT processors and 32 GB of RAM, this >> server runs lots of applications that consume lots of memory to. When I stop >> this applications, the kernel d

Re: Whats in this vaddr segment 0xffffe000-0xfffff000 ---p ?

2005-07-22 Thread linux-os \(Dick Johnson\)
On Fri, 22 Jul 2005, vamsi krishna wrote: > Hello, > >> >> The location of the vsyscall page is different on 32 and 64 bit >> machines. So 0xe000 is NOT the address you are looking for while >> dealing with the 64 bit machine. Rather 0xff60 is the >> correct location (on x86-64).

Re: Whats in this vaddr segment 0xffffe000-0xfffff000 ---p ?

2005-07-22 Thread linux-os \(Dick Johnson\)
On Fri, 22 Jul 2005, vamsi krishna wrote: > Hi, > >> It doesn't. The 32-bit machines never show 64 bit words in >> /proc/NN/maps. They don't "know" how. >> >> b7fd6000-b7fd7000 rw-p b7fd6000 00:00 0 >> b7ff5000-b7ff6000 rw-p b7ff5000 00:00 0 >> bffe1000-bfff6000 rw-p bffe1000 00:00 0 [st

Re: [PATCH 2.6.13-rc5-gitNOW] msleep() cannot be used from interrupt

2005-08-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Petr Vandrovec wrote: > Hello Linus, > can you apply patch below? > > Since beginning of July my Opteron box was randomly crashing and being > rebooted > by hardware watchdog. Today it finally did it in front of me, and this patch > will hopefully fix it. > > Problem is tha

Re: [PATCH 2.6.13-rc5-gitNOW] msleep() cannot be used from interrupt

2005-08-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Petr Vandrovec wrote: > linux-os (Dick Johnson) wrote: >> On Fri, 5 Aug 2005, Petr Vandrovec wrote: >> >> >>> Hello Linus, >>> can you apply patch below? >>> >>> Since beginning of July my Opteron box was randomly

Re: preempt with selinux NULL pointer dereference

2005-08-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Antoine Martin wrote: >>> [ 4788.218951] Unable to handle kernel NULL pointer dereference at >>> 0028 RIP: >>> [ 4788.218959] {inode_has_perm+81} >>> [ 4788.218971] PGD 2485f067 PUD 0 >>> [ 4788.218975] Oops: [1] PREEMPT >>> [ 4788.218977] CPU 0 >>> [ 4788.21

Re: preempt with selinux NULL pointer dereference

2005-08-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Dave Jones wrote: > On Fri, Aug 05, 2005 at 01:19:40PM -0400, linux-os (Dick Johnson) wrote: > > > > > tsdev 8832 0 > >___ This doesen't seem to be a "standard" module. Maybe > > it doesn't h

Re: [PATCH 2.6.13-rc5-gitNOW] msleep() cannot be used from interrupt

2005-08-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Venkatesh Pallipadi wrote: > On Fri, Aug 05, 2005 at 11:53:29AM -0700, Andrew Morton wrote: >> >> That's all pretty sad stuff. I guess for now we can go back to the busy >> loop. Longer-term it would be nice if we could tune up the HPET driver in >> some manner so we can avo

Re: local DDOS? Kernel panic when accessing /proc/ioports

2005-08-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Martin Loschwitz wrote: > Hi folks, > > I just ran into the following problem: Having updated my box to 2.6.12.3, > I tried to start YaST2 and noticed a kernel panic (see below). Some quick > debugging brought the result that the kernel crashes while some user (not > even root

Re: local DDOS? Kernel panic when accessing /proc/ioports

2005-08-08 Thread linux-os \(Dick Johnson\)
On Fri, 5 Aug 2005, Martin Loschwitz wrote: > On Fri, Aug 05, 2005 at 03:40:26PM -0400, linux-os (Dick Johnson) wrote: >> >> On Fri, 5 Aug 2005, Martin Loschwitz wrote: >> >>> Hi folks, >>> >>> I just ran into the following problem: Having update

Re: [HELP] How to get address of module

2005-08-08 Thread linux-os \(Dick Johnson\)
On Mon, 8 Aug 2005, Hiroki Kaminaga wrote: > > Hi! > > I'm looking for *nice* way to get address of loaded module in 2.6. > I'd like to know the address from driver. > > In 2.4, I wrote something like this: > > * * * > > (in kernel src) > --- kernel/module.c > +++ kernel/module.c > > struct modul

Re: I can not build a new kernel image with a assembly module

2005-08-08 Thread linux-os \(Dick Johnson\)
On Mon, 8 Aug 2005, mhb wrote: > Hi > > I had added an assembly program to the networking > section of kernel linux 2.2.16 without any problem. > But when I add it to kerenel 2.4.1 I could build that > kernel, but I faced with kernel panic error when I > boot > system with new builded image. I us

RE: Wireless support

2005-08-08 Thread linux-os \(Dick Johnson\)
On Mon, 8 Aug 2005, Alejandro Bonilla wrote: Any idea how much hardware is out there that needs >> ndiswrapper to work? >>> >>> No real idea but an educated guess: too much... >>> >> >> I like the idea of blacklisting anything with a native driver (even a >> partially working one), but leavi

Re: datagram queue length

2005-08-09 Thread linux-os \(Dick Johnson\)
On Tue, 9 Aug 2005, Jonathan Ellis wrote: > (Posted a few days ago to c.os.l.networking; no replies there.) > > I seem to be running into a limit of 64 queued datagrams. This isn't a > data buffer size; varying the size of the datagram makes no difference > in the observed queue size. If more d

Re: 100 000 interrupts/c is it normal ?

2005-08-10 Thread linux-os \(Dick Johnson\)
On Wed, 10 Aug 2005, sve wrote: > Hi, > > kernel 2.6.12 on 2 way PIII. vmstat shows 0 intr/c due to overflow. > cat /proc/interrupts shows a lot of rtc > irq8 interrupts ~100 000 intr/c. First, there is some bogus RTC driver installed. It has initialized the interrupt system for LEVEL interr

CCITT-CRC16 in kernel

2005-08-10 Thread linux-os \(Dick Johnson\)
Hello CRC Wizards, I am trying to use ../linux-2.6.12/lib/crc_citt in a driver. Basically, it doesn't return anything that closely resembles the CCIT-16 CRC. I note that drivers that use it expect it to return 0xf0b8 if it performs the CRC of something that has the CRC appended (weird). Does any

Re: CCITT-CRC16 in kernel

2005-08-11 Thread linux-os \(Dick Johnson\)
On Wed, 10 Aug 2005 [EMAIL PROTECTED] wrote: >> Does anybody know what the CRC of a known string is supposed >> to be? I have documentation that states that the CCITT CRC-16 >> of "123456789" is supposed to be 0xe5cc and "A" is supposed >> to be 0x9479. The kernel one doesn't do this. In fact, I

Re: __init()

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, raja wrote: > Hi, > Is there any way to execute my own __init() instead of default > __init() while running an executable. > - Sure you link your object file with your own instead of using the default gcc -c -o myprog.o myprog.c as -o start.o start.S

Re: Need help in understanding x86 syscall

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Bodo Eggert wrote: > Ukil a <[EMAIL PROTECTED]> wrote: > >> Now I had the doubt that if the the syscall >> implementation is very large will the scheduling and >> other interrupts be blocked for the whole time till >> the process returns from the ISR (because in an ISR by >>

Re: CCITT-CRC16 in kernel

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005 [EMAIL PROTECTED] wrote: >>> Using this bit-ordering, and omitting the x^16 term as is >>> conventional (it's implicit in the implementation), the polynomials >>> come out as: >>> CRC-16: 0xa001 >>> CRC-CCITT: 0x8408 >> >> Huh? That's the problem. >> >> X^16 + X^12 + X^5 + X^0

Re: Need help in understanding x86 syscall

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Coywolf Qi Hunt wrote: > On 8/11/05, Steven Rostedt <[EMAIL PROTECTED]> wrote: >> On Thu, 2005-08-11 at 10:04 -0400, linux-os (Dick Johnson) wrote: >>> Every interrupt software, or hardware, results in the branched >>> procedure being execute

Re: CCITT-CRC16 in kernel

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Kyle Moffett wrote: > On Aug 11, 2005, at 11:19:59, linux-os (Dick Johnson) wrote: >> On Thu, 11 Aug 2005 [EMAIL PROTECTED] wrote: >>> You're wrong in two ways: >>> 1) You've got CRC-16 and CRC-CCITT mixed up, and >>> 2) You&#

Re: Need help in understanding x86 syscall

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Coywolf Qi Hunt wrote: > On 8/12/05, Coywolf Qi Hunt <[EMAIL PROTECTED]> wrote: >> On 8/12/05, Steven Rostedt <[EMAIL PROTECTED]> wrote: >>> On Thu, 2005-08-11 at 11:51 -0400, Steven Rostedt wrote: And booted it. The system is up and running, so I really don't thin

Re: Need help in understanding x86 syscall

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Steven Rostedt wrote: > On Thu, 2005-08-11 at 13:10 -0400, linux-os (Dick Johnson) wrote: >> On Thu, 11 Aug 2005, Coywolf Qi Hunt wrote: > >>>> >>> >>> Also glibc support. >>> >>> -- >>> Coywolf Qi Hunt >

Re: Need help in understanding x86 syscall

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Steven Rostedt wrote: > On Thu, 2005-08-11 at 13:26 -0400, Steven Rostedt wrote: > >> 288fb seems to use "int 0x80" and so do all the other system calls that >> I inspected. > > I expect that if I had a Gentoo system that I compiled for my machine, > this would be different.

Re: Need help in understanding x86 syscall

2005-08-11 Thread linux-os \(Dick Johnson\)
On Thu, 11 Aug 2005, Steven Rostedt wrote: > On Thu, 2005-08-11 at 13:46 -0400, linux-os (Dick Johnson) wrote: > >> >> I was talking about the one who had the glibc support to use >> the newer system-call entry (who's name can confuse). >> >> You are lo

Re: question : any difference between "echo xxx > /dev/console" and printk

2005-08-15 Thread linux-os \(Dick Johnson\)
On Sun, 14 Aug 2005, Tomko wrote: > Hi all, > > as topic, do anyone know is there any difference between them ? by the > way, console should only output but not input , but i could still see > something when i type " cat /dev/console" in one terminal then type > something at the tty where i open

Re: Multiple virtual address mapping for the same code on IA-64 linux kernel.

2005-08-16 Thread linux-os \(Dick Johnson\)
On Tue, 16 Aug 2005, vamsi krishna wrote: > Hello All, > > Sorry to interrupt you. > > I have been investigating a problem in which there has been a dramatic > core size (complete program size) of a program running on a IA-64 > machine running kernel version 2.4.21-4.0.1 (A redhat advanced server

Re: FPU-intensive programs crashing with floating point exception on Cyrix MII

2005-08-17 Thread linux-os \(Dick Johnson\)
On Wed, 17 Aug 2005, Ondrej Zary wrote: > My machine (Cyrix MII PR300 CPU, PCPartner TXB820DS board with i430TX > chipset) exhibits a really weird problem: > When I run a program that uses FPU, it sometimes crashes with "flaoting > point exception" - for example, when playing MP3 files using any

RE: ZyXEL Kernel /BusyBox GPL violation?

2005-07-26 Thread linux-os \(Dick Johnson\)
On Tue, 26 Jul 2005, David Schwartz wrote: > >>> Also if they didn't modify the kernel, they don't have to give you >>> source, they can just refer you to kernel.org. >> >> Wrong. >> >> http://www.fsf.org/licensing/licenses/gpl-faq.html#DistributeWithS >> ourceOnInternet >> [[[I want to distri

Re: xor as a lazy comparison

2005-07-27 Thread linux-os \(Dick Johnson\)
On Wed, 27 Jul 2005, Clayton Weaver wrote: > Is not xor (^) typically compiled to a > one cycle instruction regardless of > requested optimization level? (May not > always have been the case on every > target architecture for != equality > tests.) > Clayton Weaver > cgweav at fastmail dot fm > I

Re: core file not generated when kernel is crashed with Sysrq key

2005-07-28 Thread linux-os \(Dick Johnson\)
On Thu, 28 Jul 2005, dipankar das wrote: > Hi, > core file is not generated when kernel is crashed with > Sysrq key ? > > What could be the reason for this ? > > Br, > Dipankar. It's not supposed to write any 'core' file. A 'core' file is a dump of users' virtual memory. It has nothing to do

Re: kernel guide to space (updated)

2005-07-28 Thread linux-os \(Dick Johnson\)
On Thu, 28 Jul 2005, Michael S. Tsirkin wrote: > > 7. Comments > Don't use C99 // comments. I don't think this is correct. In fact, I remember a discussion where // was preferred for new code. Cheers, Dick Johnson Penguin : Linux version 2.6.12 on an i686 machine (5537.79 BogoMips). Warn

Re: Unable to mount the SD card formatted using the DIGITAL CAMREA on Linux box

2005-07-29 Thread linux-os \(Dick Johnson\)
On Fri, 29 Jul 2005, Srinivas G. wrote: > Dear All, > > We have developed a Block Device Driver to handle the flash media > devices in Linux 2.6.x kernel. It is working fine. We are able to mount > the SD cards that are formatted on Windows systems, but we unable mount > the cards that are format

Re: [PATCH] speed up on find_first_bit for i386 (let compiler do the work)

2005-07-29 Thread linux-os \(Dick Johnson\)
On Fri, 29 Jul 2005 [EMAIL PROTECTED] wrote: >> OK, I guess when I get some time, I'll start testing all the i386 bitop >> functions, comparing the asm with the gcc versions. Now could someone >> explain to me what's wrong with testing hot cache code. Can one >> instruction retrieve from memory

RE: Unable to mount the SD card formatted using the DIGITAL CAMREA on Linux box

2005-07-29 Thread linux-os \(Dick Johnson\)
ala > > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:linux-kernel- >> [EMAIL PROTECTED] On Behalf Of Lennart Sorensen >> Sent: Friday, July 29, 2005 7:08 PM >> To: linux-os (Dick Johnson) >> Cc: Srinivas G.; linux-kernel-Mailing-list >&

RE: Unable to mount the SD card formatted using the DIGITAL CAMREA on Linux box

2005-07-29 Thread linux-os \(Dick Johnson\)
On Fri, 29 Jul 2005, linux-os (Dick Johnson) wrote: > > > camera formatted info > -- > Disk /dev/tfa0: 448 cylinders, 2 heads, 32 sectors/track > Units = cylinders of 32768 bytes, blocks of 1024 bytes, counting from 0 > >Device Boot Start End

RE: Unable to mount the SD card formatted using the DIGITAL CAMREA on Linux box

2005-08-01 Thread linux-os \(Dick Johnson\)
ounted file systems > > I have gone through the mount.c code in order to understand where I am > exactly failing. > mount is failing in guess_fstype_and_mount() in do_mount_syscall after > issuing the mount sys call. > I am attaching the source code of mount functionality which ma

Re: IBM HDAPS, I need a tip.

2005-08-01 Thread linux-os \(Dick Johnson\)
On Mon, 1 Aug 2005, Paulo Marques wrote: > Jan Engelhardt wrote: >>> So in order to calibrate it you need a readily available source of >>> constant acceleration, preferably with a known value. >>> >>> Hint: -9.8 m/sec^2. >> >> Drop it out of the window? :) > > No, no. Constant gravity (like havi

Re: IBM HDAPS, I need a tip.

2005-08-01 Thread linux-os \(Dick Johnson\)
On Mon, 1 Aug 2005, Vojtech Pavlik wrote: > On Mon, Aug 01, 2005 at 08:55:53AM -0400, linux-os (Dick Johnson) wrote: > >>> Jan Engelhardt wrote: >>>>> So in order to calibrate it you need a readily available source of >>>>> constant acceleration, pr

Re: Power consumption HZ100, HZ250, HZ1000: new numbers

2005-08-02 Thread linux-os \(Dick Johnson\)
On Tue, 2 Aug 2005, Folkert van Heusden wrote: Maybe new desktop systems - but what about the tens of millions of old systems that don't. >>> >>> Does anyone really give a shit about saving power on the desktop anyway? >>> This is basically a laptop issue. >> >> Eh yes, very much. > > I

Re: Linux, Get the facts?

2005-08-02 Thread linux-os \(Dick Johnson\)
On Tue, 2 Aug 2005, Alejandro Bonilla wrote: > Hi Guys/Gals, > > I watched some commercials and I almost puked when I looked at the > Microsoft Get the Facts for Linux vs Windows Server stuff. > > They have a url which is http://www.microsoft.com/getthefacts > > Is this crap any close to re

Re: [Question] arch-independent way to differentiate between user andkernel

2005-08-03 Thread linux-os \(Dick Johnson\)
On Wed, 3 Aug 2005, Steven Rostedt wrote: > Hi all, > > I'm dealing with a problem where I want to know from __do_IRQ in > kernel/irq/handle.c if the interrupt occurred while the process was in > user space or kernel space. But the trick here is that it must work on > all architectures. > > Does

Re: 2.4.21: Sharing interrupts with serial console

2005-08-04 Thread linux-os \(Dick Johnson\)
On Wed, 3 Aug 2005, Chris Budd wrote: > I have read > http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/preparation-setport.html > and http://www.linux-mips.org/archives/linux-mips/2004-04/msg00134.html > and other items, but I still have not found the answers to the > following questions: >

Re: Getting rid of SHMMAX/SHMALL ?

2005-08-04 Thread linux-os \(Dick Johnson\)
On Thu, 4 Aug 2005, Andi Kleen wrote: > > I noticed that even 64bit architectures have a ridiculously low > max limit on shared memory segments by default: > > #define SHMMAX 0x200 /* max shared seg size (bytes) */ > #define SHMMNI 4096 /* max num of segs

Re: **SPAM** [PATCH 3/3] usb gadget driver for MQ11xx graphics chip

2005-08-04 Thread linux-os \(Dick Johnson\)
On Thu, 4 Aug 2005, Patrick McFarland wrote: > On Wednesday 03 August 2005 05:49 pm, Nick Sillik wrote: >> Michael Krufky wrote: >>> [EMAIL PROTECTED] wrote: >>> >>> The email subject. "Re: **SPAM** [PATCH 3/3] usb gadget driver for >>> MQ11xx graphics chip" ... Was that an accident, or did m

Re: How to get the physical page addresses from a kernel virtual address for DMA SG List?

2005-08-04 Thread linux-os \(Dick Johnson\)
You are trying to do it backwards. You need to have your driver use get_dma_pages() to acquire pages suitable for DMA. Your driver then impliments mmap(). The user-mode application then mmaps() the dma-able pages into its address-space. FYI, the pages may be from anywhere, some archs can only DM

Re: How to get the physical page addresses from a kernel virtualaddress for DMA SG List?

2005-08-04 Thread linux-os \(Dick Johnson\)
On Thu, 4 Aug 2005, Steven Rostedt wrote: > On Thu, 2005-08-04 at 15:39 +0200, Clemens Koller wrote: >>> You are trying to do it backwards. You need to have your driver >>> use get_dma_pages() to acquire pages suitable for DMA. Your >>> driver then impliments mmap(). >> >> Okay, I have seen that,

Re: Flash erase groups and filesystems

2005-08-18 Thread linux-os \(Dick Johnson\)
On Wed, 17 Aug 2005, Pavel Machek wrote: > Hi! > >>> Question came up before, albeit with a different phrasing. One >>> possible approach to benefit from this ability would be to create a >>> "forget" operation. When a filesystem already knows that some data is >>> unneeded (after a truncate or

Re: Environment variables inside the kernel?

2005-08-18 Thread linux-os \(Dick Johnson\)
On Thu, 18 Aug 2005, [iso-8859-1] Guillermo López Alejos wrote: > Hi, > > I have a piece of code which uses environment variables. I have been > told that it is not going to work in kernel space because the concept > of environment is not applicable inside the kernel. > > I belive that, but I nee

Re: floppy driver in 2.6.12.5

2005-08-19 Thread linux-os \(Dick Johnson\)
On Fri, 19 Aug 2005, Cezary Sliwa wrote: > > Just wanted to format a floppy disk with fdformat, no way: > > Aug 14 22:28:45 kwant kernel: floppy0: unexpected interrupt > Aug 14 22:28:45 kwant kernel: floppy0: sensei repl[0]=80 > Aug 14 22:28:49 kwant kernel: floppy0: -- FDC reply errorfloppy0: un

Re: sched_yield() makes OpenLDAP slow

2005-08-22 Thread linux-os \(Dick Johnson\)
On Sat, 20 Aug 2005, Robert Hancock wrote: > Howard Chu wrote: >> I'll note that we removed a number of the yield calls (that were in >> OpenLDAP 2.2) for the 2.3 release, because I found that they were >> redundant and causing unnecessary delays. My own test system is running >> on a Linux 2.6.1

Re: kernel module seg fault

2005-08-23 Thread linux-os \(Dick Johnson\)
On Tue, 23 Aug 2005, manomugdha biswas wrote: > Hi, > I have written a kernel module and I can load (insmod) > it without any error. But when i run my module it gets > seg fault at interruptible_sleep_on_timeout(); > > I have used this function in the following way: > > DECLARE_WAIT_QUEUE_HEAD(wq

Re: sched_yield() makes OpenLDAP slow

2005-08-23 Thread linux-os \(Dick Johnson\)
On Mon, 22 Aug 2005, Robert Hancock wrote: > linux-os (Dick Johnson) wrote: >> I reported thet sched_yield() wasn't working (at least as expected) >> back in March of 2004. >> >> for(;;) >> sched_yield(); >> >>

Re: question on memory barrier

2005-08-24 Thread linux-os \(Dick Johnson\)
On Wed, 24 Aug 2005, moreau francis wrote: > Hi, > > I'm currently trying to write a USB driver for Linux. The device must be > configured by writing some values into the same register but I want to be > sure that the writing order is respected by either the compiler and the cpu. > > For example,

Re: question on memory barrier

2005-08-24 Thread linux-os \(Dick Johnson\)
On Wed, 24 Aug 2005, moreau francis wrote: > > --- "linux-os (Dick Johnson)" <[EMAIL PROTECTED]> a écrit : > >> >> On Wed, 24 Aug 2005, moreau francis wrote: >> >>> Hi, >>> >>> I'm currently trying to write a USB driver f

Re: question on memory barrier

2005-08-24 Thread linux-os \(Dick Johnson\)
On Wed, 24 Aug 2005, Oliver Neukum wrote: > Am Mittwoch, 24. August 2005 20:22 schrieb linux-os (Dick Johnson): >>> sorry but I'm not sure to understand you...Do you mean that the first write >>> into reg_a pointer will be completed before the second write because

<    1   2   3   4   >