Re: msghdr problem in tcp_sendmsg

2005-09-08 Thread linux-os \(Dick Johnson\)
On Thu, 8 Sep 2005, Serge Goodenko wrote: > Hello! > > I trace the kernel networking code (ver 2.4.25). > I send simple message (say, "hello") using simple client and see how > tcp_sendmsg function works. > And what I see is that there's NO my message (e.g. "hello") in the msghdr > structure

Re: How to plan a kernel update ?

2005-09-08 Thread linux-os \(Dick Johnson\)
On Thu, 8 Sep 2005, Weber Ress wrote: > Hi, > > I'm responsible to planning a kernel upgrade in many servers, from 2.4 > version to 2.6.13 (last stable version), using Debian 3.1r0a > > My team has good technical skills, but they need to be led. I would > like know, what's the best pratices and

Re: 2.6.13: loop ioctl crashes

2005-09-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Sep 2005, Ian Collier wrote: > I'm trying out PPDD from https://retiisi.dyndns.org/~sailus/ppdd/ > because I have some old stuff in that format. However, the crash > seems to occur in code that isn't touched by the PPDD patch. It > happens while I'm trying to set up the loop device -

Re: 2.6.13: loop ioctl crashes

2005-09-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Sep 2005, Ian Collier wrote: > On Fri, Sep 09, 2005 at 08:32:10AM -0400, linux-os (Dick Johnson) wrote: >> I guess you are trying to do a copy_from_user() with a spin-lock >> being held or the interrupts otherwise disabled. You can hold >> a semaphore, to preve

Re: 2.6.13: loop ioctl crashes

2005-09-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Sep 2005, Richard B. Johnson wrote: > On Fri, 9 Sep 2005, Ian Collier wrote: > >> On Fri, Sep 09, 2005 at 08:32:10AM -0400, linux-os (Dick Johnson) wrote: >>> I guess you are trying to do a copy_from_user() with a spin-lock >>> being held or the interrup

Re: query_modules syscall gone? Any replacement?

2005-09-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Sep 2005, iSteve wrote: > Greetings, > I'm coding an application that messes with modules a lot, and I've > stumbled upon a query_modules syscall in my docs. Later I've found out > that the docs come from modutils and that module-init-tools doesn't seem > to document (any of) the

Re: [ham] Re: Gracefully killing kswapd, or any kernel thread

2005-09-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Sep 2005, Kristis Makris wrote: > On Wed, 2005-09-07 at 18:36 -0400, linux-os (Dick Johnson) wrote: >> On Wed, 7 Sep 2005, Kristis Makris wrote: >> >>>> To kill a kernel thread, you need to make __it__ call exit(). It must be > > I was able to make it c

Re: Initial ramdisk support does not work (for me) on 2.6.17.13

2006-11-16 Thread linux-os \(Dick Johnson\)
> Hi! > > Hallo. > > We are building embedded devices based on Linux and we use a ramdisk as > our root device in order to avoid problems with people switching off the > unit without a proper shutdown and to save write-cycles on our flash disc. > > Using a 2.6.12 kernel it was no problem to boot

Re: diabling interrupts on pentium 4 processor

2006-11-17 Thread linux-os \(Dick Johnson\)
> On 11/16/06, ranjith kumar <[EMAIL PROTECTED]> wrote: > Hi, > How to disable interrupts on pentium 4 (or any > i386) > machine? > > I tried to include "cli" instruction in a kernel > module. But got runtime error. In a module, "cli" should not be an illegal opcode, but in

Re: failed 'ljmp' in linear addressing mode

2006-11-27 Thread linux-os \(Dick Johnson\)
On Wed, 22 Nov 2006, Jun Sun wrote: > > I am plowing along as I am learning about the in'n'outs about i386. I am > totally stuck on this one. I would appreciate any help. > > As you can see, the function turns off paging mode (of course it > runs from identically mapped page) and tries to jump

Re: Reserving a fixed physical address page of RAM.

2006-11-28 Thread linux-os \(Dick Johnson\)
On Mon, 27 Nov 2006, Jon Ringle wrote: > Robert Hancock wrote: >> Jon Ringle wrote: >>> Hi, >>> >>> I need to reserve a page of memory at a specific area of RAM that will >>> be used as a "shared memory" with another processor over PCI. How can I >>> ensure that the this area of RAM gets reseved

Re: failed 'ljmp' in linear addressing mode

2006-11-28 Thread linux-os \(Dick Johnson\)
On Mon, 27 Nov 2006, Jun Sun wrote: > > On Mon, Nov 27, 2006 at 08:58:57AM -0500, linux-os (Dick Johnson) wrote: >> >> I think it probably resets the instant that you turn off paging. To >> turn off paging, you need to copy some code (properly linked) to an >> are

Re: failed 'ljmp' in linear addressing mode

2006-11-28 Thread linux-os \(Dick Johnson\)
On Tue, 28 Nov 2006, Jun Sun wrote: > On Tue, Nov 28, 2006 at 08:46:44AM -0500, linux-os (Dick Johnson) wrote: >> >> On Mon, 27 Nov 2006, Jun Sun wrote: >> >>> >>> On Mon, Nov 27, 2006 at 08:58:57AM -0500, linux-os (Dick Johnson) wrote: >>>> &

Re: Question: kthread zombie process

2007-03-13 Thread linux-os \(Dick Johnson\)
On Tue, 13 Mar 2007, Mockern wrote: > Hi, > > I use kthread in my driver. The problem is that I can't kill process > with kill_proc function. After rmmod my_driver, ps command shows again SW > my_driver. > > How can I remove this process? > > Thank you > You need to follow the procedures used

USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
I have multiple AMD 64-bit servers in several configurations, with several different motherboards, which fail to recognize a USB keyboard when booted from a "stock" Linux kernel. They only work with a RedHat kernel! I have removed all but one CPU from one in an attempt to find the problem. The

Re: USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Mar 2007, Jiri Kosina wrote: > On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote: > >> I have multiple AMD 64-bit servers in several configurations, with >> several different motherboards, which fail to recognize a USB keyboard >> when booted from a "s

Re: USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Mar 2007, Jiri Kosina wrote: > (added linux-usb-devel@lists.sourceforge.net to CC) > > On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote: > >>>> I have multiple AMD 64-bit servers in several configurations, with >>>> several different motherb

Re: [linux-usb-devel] USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Mar 2007, Alan Stern wrote: > On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote: > >>>> Ouch! I can't do anything by copy from a screen! There is no way to get >>>> `dmesg` without the keyboard! That's why I sent a request to >>>> linux-k

Re: [linux-usb-devel] USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Mar 2007, Alan Stern wrote: > On Thu, 15 Mar 2007, Dmitry Torokhov wrote: > >> On 3/15/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >>> echo "Loading uhci-hcd.ko module" >>> insmod /lib/uhci-hcd.ko >>> echo "Loa

Re: [linux-usb-devel] USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Mar 2007, Dmitry Torokhov wrote: > On 3/15/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> echo "Loading uhci-hcd.ko module" >> insmod /lib/uhci-hcd.ko >> echo "Loading ehci-hcd.ko module" >> insmod /lib/ehci-hcd.ko >

Re: [linux-usb-devel] USB Keyboard

2007-03-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Mar 2007, Jiri Kosina wrote: > On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote: > > [...] >> The initrd "linuxrc" file that loads the modules is here. One can see >> the order in which the modules are loaded. We had to make our own shell >&g

Re: i386: Why putting __USER_DS in kernel threads stack initialization?

2007-03-19 Thread linux-os \(Dick Johnson\)
On Sun, 18 Mar 2007, Ahmed S. Darwish wrote: > Hi list, > > Reading the kernel threads initialization code I see: > > int kernel_thread(...) { > > struct pt_regs regs; > memset(, 0, sizeof(regs)); > [...] > **regs.xds = __USER_DS; > **regs.xes = __USER_DS; > [...]

Ramdisk size

2007-02-28 Thread linux-os \(Dick Johnson\)
Hello, On an embedded system, I use two ramdisks. They are both 16 megabytes in size. I can create them interactively in the normal way with mke2fs. However, when the system is booted using isolinux, the RAM disks become corrupted. Apparently isolinux.cfg's ramdisk_size (not documented, only

Re: getting processor numbers

2007-04-03 Thread linux-os \(Dick Johnson\)
On Tue, 3 Apr 2007, Ulrich Drepper wrote: > More and more code depends on knowing the number of processors in the > system to efficiently scale the code. E.g., in OpenMP it is used by > default to determine how many threads to create. Creating more threads > than there are processors/cores

Re: set up new kernel with grub

2007-04-04 Thread linux-os \(Dick Johnson\)
On Wed, 4 Apr 2007, Michael wrote: > Hi, > > I compiled a new kernel: 2.6.20.3, and hope to test it without removing > my old kernel. You don't need to remove your old kernel. Log in as root. # cd /usr/src/linux-2.6.20.3 If your current kernel is 2.6.20.3, edit the Makefile to add some

Kernel threads

2007-03-06 Thread linux-os \(Dick Johnson\)
Hello, In linux-2.6.16.24, there is a problem with kernel threads and the aic79xx.c driver. When nash is executing /initrd/linuxrc in the initial RAM disk during boot, it will be installing drivers. One driver, aic79xx.c creates some kernel threads that will exit after the initialization

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread linux-os \(Dick Johnson\)
On Wed, 7 Mar 2007, Luong Ngo wrote: > Hi all, > > I am having this problem. I have a process with 2 threads created. One > of the thread will keep calling IOCTL to get information from the > kernel and will be blocked if there is no new information. If there is > information retured, the

Re: Sleeping thread not receive signal until it wakes up

2007-03-07 Thread linux-os \(Dick Johnson\)
> > On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >> On Wed, 7 Mar 2007, Luong Ngo wrote: >> >>> Hi all, >>> >>> I am having this problem. I have a process with 2 threads created. One >>> of the thre

Re: Sleeping thread not receive signal until it wakes up

2007-03-08 Thread linux-os \(Dick Johnson\)
On Wed, 7 Mar 2007, Luong Ngo wrote: > On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >>> >>> On 3/7/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >>>> >>>> On Wed, 7 Mar 2007, Luong Ngo wrote: >>&g

Re: What does this scsi error mean ?

2007-01-16 Thread linux-os \(Dick Johnson\)
On Mon, 15 Jan 2007, Olivier Galibert wrote: > On Mon, Jan 15, 2007 at 06:45:40PM +, Alan wrote: >> On Mon, 15 Jan 2007 18:16:02 +0100 >> Olivier Galibert <[EMAIL PROTECTED]> wrote: >> >>> sd 0:0:0:0: SCSI error: return code = 0x0802 >>> sda: Current: sense key: Hardware Error >>>

Re: PROBLEM: KB->KiB, MB -> MiB, ... (IEC 60027-2)

2007-01-22 Thread linux-os \(Dick Johnson\)
On Mon, 22 Jan 2007, Lennart Sorensen wrote: > On Mon, Jan 22, 2007 at 06:36:19PM +, Alan wrote: >> K is Kelvin, k is kilo- > > K is a unit is Kelvin, k/K as a prefix is kilo. > >> See ISO 31. There is a standard for this stuff which is used worldwide >> and only bits of the computing

Re: [patch] fix emergency reboot: call reboot notifier list if possible

2007-01-24 Thread linux-os \(Dick Johnson\)
On Wed, 24 Jan 2007, Randy Dunlap wrote: > On Tue, 23 Jan 2007 19:57:12 + Pavel Machek wrote: > >> Hi! >> > On Wed, Jan 17, 2007 at 10:13:19AM +0100, Ingo Molnar wrote: >> we dont call the reboot notifiers during emergency reboot mainly because >> it could be called from atomic

User tools for March 11

2007-02-13 Thread linux-os \(Dick Johnson\)
Hi! In the United States, some idiots have decided that the year 2000 scare wasn't enough so they changed the start date for daylight savings time from the first Sunday in April to the second Sunday in March. Does anybody know if there are new tools like `hwclock` and `date`? Will new 'C' runtime

Re: GPL vs non-GPL device drivers

2007-02-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Feb 2007, Manu Abraham wrote: > On 2/15/07, Mws <[EMAIL PROTECTED]> wrote: >> hi vj, >> >> On Thursday 15 February 2007, v j wrote: >>> This is in reference to the following thread: >>> >>> http://lkml.org/lkml/2006/12/14/63 >>> >>> I am not sure if this is ever addressed in LKML, but

Re: cat, cp operations for tty driver (like for char one)

2007-02-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Feb 2007, Mockern wrote: > I have a question about linux tty driver > > how to support cp, cat operations in tty driver (like tiny_tty)? > (e.g. echo "hello tty" > /dev/ttyS3, cat < ttyS10 etc) > > There a lot of examples with char drivers, but I could not find it for tty > Linux

Re: APIC priorities, can they be changed?

2007-02-15 Thread linux-os \(Dick Johnson\)
On Thu, 15 Feb 2007, Mike Panetta wrote: > I am not on the list (corperate email sucks) so please CC any replies to > me. Thanks. > > I am working on a project that has run in to what seems to be an > interrupt priority problem. We switched mainboards in our product and > went from a system

Re: cat, cp operations for tty driver (like for char one)

2007-02-16 Thread linux-os \(Dick Johnson\)
On Fri, 16 Feb 2007, Mockern wrote: > Thanx for your respond. > > Does it mean I have to change nothing in my tty driver > (based on serial_core.c) to use: cat and cp? No "nonstandard " special > functions to implement? > Change nothing. It you are making your own, make sure your iocl()

Re: GPL vs non-GPL device drivers

2007-02-19 Thread linux-os \(Dick Johnson\)
On Mon, 19 Feb 2007, Michael K. Edwards wrote: > On 2/19/07, Alan <[EMAIL PROTECTED]> wrote: >>> jurisdiction. Copyright infringement is a statutory tort, and the >>> only limits to contracting away the right to sue for this tort are >>> those provided in the copyright statute itself. A

Re: somebody dropped a (warning) bomb

2007-02-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Feb 2007, Jan Engelhardt wrote: > > On Feb 8 2007 16:42, Linus Torvalds wrote: >> >> Most C types don't, and some you can't even tell (do pointers generate >> "signed" or "unsigned" comparisons? > > I'd say "neither", because both > >signed void *ptr; and >unsigned void *xyz; >

Re: somebody dropped a (warning) bomb

2007-02-09 Thread linux-os \(Dick Johnson\)
On Fri, 9 Feb 2007, Jan Engelhardt wrote: > > On Feb 9 2007 08:16, linux-os (Dick Johnson) wrote: >> On Fri, 9 Feb 2007, Jan Engelhardt wrote: >>> On Feb 8 2007 16:42, Linus Torvalds wrote: >>>> >>> Further, giving again answer to the question wh

Re: somebody dropped a (warning) bomb

2007-02-12 Thread linux-os \(Dick Johnson\)
On Fri, 9 Feb 2007, Jan Engelhardt wrote: > > On Feb 9 2007 15:29, linux-os (Dick Johnson) wrote: >>> >>> I was referring to "absolute memory", not the offset magic that assembler >>> allows. After all, (reg+relativeOffset) will yield an absolute a

Re: Interface for the new fallocate() system call

2007-03-29 Thread linux-os \(Dick Johnson\)
On Thu, 29 Mar 2007, Jan Engelhardt wrote: > Hi, > > On Mar 29 2007 17:21, Amit K. Arora wrote: >> >> We need to come up with the best possible layout of arguments for the >> fallocate() system call. Various architectures have different >> requirements for how the arguments should look like.

Re: [RFC][PATCH] fix abs() macro to work with types wider than int

2007-04-25 Thread linux-os \(Dick Johnson\)
On Wed, 25 Apr 2007, John Anthony Kazos Jr. wrote: I think it's like it is just to be consistent with abs() in C, which also contains labs() and llabs(). >>> We actually had labs() before (few months ago), but since it was not >>> used, and if it would it seemed better to just fix

Re: [RFC][PATCH] fix abs() macro to work with types wider than int

2007-04-25 Thread linux-os \(Dick Johnson\)
On Wed, 25 Apr 2007, Andreas Schwab wrote: > "linux-os (Dick Johnson)" <[EMAIL PROTECTED]> writes: > >> I think this works, regardless of the length of the integers: >> >> #define abs(x) (((x)<0)?-(x):(x)) > > But it evaluates its argumen

Re: assembly code in the loadable kernel module

2007-04-27 Thread linux-os \(Dick Johnson\)
On Fri, 27 Apr 2007, Parav K Pandit wrote: > Hi, > > I have written one function in assembly for my kernel module. > Function is in module3.s file. > I have added the module3.o file in the object list in the Makefile. > But it shows compile time warning and following output. > > What do I need

Re: ZFS with Linux: An Open Plea

2007-04-17 Thread linux-os \(Dick Johnson\)
On Tue, 17 Apr 2007, Xavier Bestel wrote: > On Tue, 2007-04-17 at 10:59 -0400, linux-os (Dick Johnson) wrote: >> So, what needs to be done is simply find out the specifications of >> the file-system. > > I didn't know that was that simple, great ! > So, what do we wait ?

Re: ZFS with Linux: An Open Plea

2007-04-17 Thread linux-os \(Dick Johnson\)
On Tue, 17 Apr 2007, Theodore Tso wrote: > On Tue, Apr 17, 2007 at 02:54:32AM -0400, David R. Litwin wrote: >>> The license that protects the code we write is far from nonsense. >> >> I know. In the end, this is the reason this topic is being discussed. >> >> I suggest the first thing you do is

Re: assembly code in the loadable kernel module

2007-04-27 Thread linux-os \(Dick Johnson\)
On Fri, 27 Apr 2007, Daniel Hazelton wrote: > On Friday 27 April 2007 07:57:58 Marat Buharov wrote: >> On 4/27/07, Parav K Pandit <[EMAIL PROTECTED]> wrote: [SNIPPED all the junk] > > Most companies require that *ANY* e-mail sent by employees while at work > contain disclaimers like those. Some

Re: USB Keyboard

2007-08-16 Thread linux-os \(Dick Johnson\)
On Thu, 16 Aug 2007, Jiri Kosina wrote: > On Wed, 15 Aug 2007, linux-os (Dick Johnson) wrote: > >> I thought maybe there was a bug that had been fixed in later versions so >> I built and installed Linux-2.6.22.1. The required usbhid.ko doesn't >> build, even though i

Re: Thinking outside the box on file systems

2007-08-16 Thread linux-os \(Dick Johnson\)
On Thu, 16 Aug 2007, Helge Hafting wrote: > Marc Perkel wrote: >> Kyle, What I'm suggesting is scrapping all existing >> concepts and replacing them with something entirely >> new. Posix, Unix, SELinux go away except for an >> emulation layer for backwards compatibility. What I'm >> suggesting

Re: Thinking outside the box on file systems

2007-08-20 Thread linux-os \(Dick Johnson\)
On Mon, 20 Aug 2007, Marc Perkel wrote: > [Snipped...] > > What's the point? People are openly hostile to new > ideas here. I started out nice and laid out my ideas > and you have a bunch of morons who attack anything > new. [Snopped...] > > Marc Perkel > Junk Email Filter dot com >

Re: Software based ECC ?

2007-08-21 Thread linux-os \(Dick Johnson\)
On Tue, 21 Aug 2007, Bodo Eggert wrote: > Folkert van Heusden <[EMAIL PROTECTED]> wrote: > http://pdos.csail.mit.edu/papers/softecc:ddopson-meng > softecc_ddopson-meng.pdf "SoftECC : A System for Software Memory Integrity Checking" >>> >>> Personally, I'd recommend just shelling out

Re: request for Linux kernel related project ideas

2007-08-23 Thread linux-os \(Dick Johnson\)
On Thu, 23 Aug 2007, Robert P. J. Day wrote: > On Thu, 23 Aug 2007, Clemens Koller wrote: > >> shaneed cm schrieb: >>> Hi, >>> This is a request for Linux kernel related project ideas. >>> I am Computer Science Engineering final year student. We have to do >>> a project of one year duration .

Re: division and cpu usage

2007-08-24 Thread linux-os \(Dick Johnson\)
On Thu, 23 Aug 2007, Luka Napotnik wrote: > Hello. > > I'm new to kernel development and have some questions. > > 1. Why can't I divide with regular casting to double ((double)a / > (double)b)? It gives me strange errors when compiling: > > WARNING: "__divdf3" [/root] undefined! > WARNING:

Re: Forbid deletion of memory mappings

2007-09-04 Thread linux-os \(Dick Johnson\)
On Thu, 30 Aug 2007, Clemens Kolbitsch wrote: > On Thursday 30 August 2007 23:50:21 [EMAIL PROTECTED] wrote: >> On Thu, 30 Aug 2007 23:41:09 +0200, Clemens Kolbitsch said: >>> On Thursday 30 August 2007 23:34:52 you wrote: On Thu, 30 Aug 2007, Clemens Kolbitsch wrote: > is there no way

Re: ramdisk

2007-09-04 Thread linux-os \(Dick Johnson\)
On Mon, 3 Sep 2007, Xu Yang wrote: > Hi everyone, > > I want to use ramdisk to boot my filesystem, as I can't use NFS and harddisk. > > I have load the ramdisk into the ram memory (start address :0x400) > > and in the boot options I specified : root =dev/ram0 initrd=0x400 Since you

Re: Fwd: That whole "Linux stealing our code" thing

2007-09-04 Thread linux-os \(Dick Johnson\)
On Tue, 4 Sep 2007, Chris Friesen wrote: > Daniel Hazelton wrote: >> On Tuesday 04 September 2007 09:27:02 Krzysztof Halasa wrote: >> >>> Daniel Hazelton <[EMAIL PROTECTED]> writes: >>> US Copyright law. A copyright holder, regardless of what license he/she may have released the work

Re: ramdisk

2007-09-04 Thread linux-os \(Dick Johnson\)
ight? if > not how to create it? > > thanks, > > regards, > mkknod /dev/ram0 b 1 0 mkknod /dev/ram1 b 1 1 mkknod /dev/ram2 b 1 2 Do this in the file-system you create for the RAM Disk. > > 2007/9/4, linux-os (Dick Johnson) <[EMAIL PROTECTED]>: >> >> On M

Re: file system for solid state disks

2007-09-05 Thread linux-os \(Dick Johnson\)
On Wed, 5 Sep 2007, Denys Vlasenko wrote: > On Thursday 23 August 2007 09:55, Daniel J Blueman wrote: >> On 23 Aug, 07:00, Jan Engelhardt <[EMAIL PROTECTED]> wrote: >>> On Aug 23 2007 01:01, Richard Ballantyne wrote: What file system that is already in the linux kernel do people recommend

USB Keyboard

2007-08-15 Thread linux-os \(Dick Johnson\)
Hello all, I have been using linux-2.6.16.24 for development. However, when I boot a sustem that uses a Dell USB keyboard with a hub built into a Dell monitor, there are continuous keyboard disconnect messages until I exercise ^S/^Q. Then, everything is fine. I thought maybe there was a bug that

Re: ECC and DMA to/from disk controllers

2007-09-10 Thread linux-os \(Dick Johnson\)
On Mon, 10 Sep 2007, Bruce Allen wrote: > Dear LKML, > > Apologies in advance for potential mis-use of LKML, but I don't know where > else to ask. > > An ongoing study on datasets of several Petabytes have shown that there > can be 'silent data corruption' at rates much larger than one might >

Re: Building a kernel-source RPM (not a kernel RPM)?

2007-09-12 Thread linux-os \(Dick Johnson\)
On Wed, 12 Sep 2007, Jan Engelhardt wrote: > > On Sep 12 2007 20:23, Bernd Petrovitsch wrote: >> On Wed, 2007-09-12 at 20:16 +0200, Sam Ravnborg wrote: But we are talking[0] about a kernel-source-$VERSION.$ARCH.rpm's which contain the kernel sources (read: lots of .c and .h files,

Re: Chroot bug

2007-09-26 Thread linux-os \(Dick Johnson\)
On Wed, 26 Sep 2007, David Newall wrote: > Olivier Galibert wrote: >> chroot does not allow you to walk out if you're in. > > You're mistaken. Or more properly, further use of chroot lets you walk > out. This really has been said before, and before, and before. > >chroot("subtree"); //

Re: Floating Point Issue

2007-09-27 Thread linux-os \(Dick Johnson\)
If Windows lets you get away with this, then Windows is broken. memset(ch,'\0',strlen(ch) ); 'ch' is uninitialized local data. Nobody knows what evil lurks... Thay said, the kernel will make sure that any data that gets put into your address-space doesn't contain anybody else's information

Re: Out of memory management in embedded systems

2007-09-28 Thread linux-os \(Dick Johnson\)
On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > Applications with dynamic input and dynamic memory usage have some > issues with the current overcommitting kernel. A high memory usage > situation eventually results in that a process is killed by the OOM > killer. This is especially

Re: Out of memory management in embedded systems

2007-09-28 Thread linux-os \(Dick Johnson\)
On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: >> >>> On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >

Re: Out of memory management in embedded systems

2007-09-28 Thread linux-os \(Dick Johnson\)
On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: > On 9/28/07, linux-os (Dick Johnson) <[EMAIL PROTECTED]> wrote: >> >> On Fri, 28 Sep 2007, [iso-8859-1] Daniel Spång wrote: >> >>> Applications with dynamic input and dynamic memory usage have some >&g

Re: yield API

2007-10-02 Thread linux-os (Dick Johnson)
On Tue, 2 Oct 2007, Ingo Molnar wrote: > > * David Schwartz <[EMAIL PROTECTED]> wrote: > >>> These are generic statements, but i'm _really_ interested in the >>> specifics. Real, specific code that i can look at. The typical Linux >>> distro consists of in execess of 500 millions of lines of

Re: [KERNEL]: Avoid divide in IS_ALIGN

2007-11-20 Thread linux-os (Dick Johnson)
On Tue, 20 Nov 2007, Herbert Xu wrote: > Hi: > > [KERNEL]: Avoid divide in IS_ALIGN > > I was happy to discover the brand new IS_ALIGN macro and quickly > used it in my code. To my dismay I found that the generated code > used division to perform the test. > > This patch fixes it by changing

Re: [KERNEL]: Avoid divide in IS_ALIGN

2007-11-21 Thread linux-os (Dick Johnson)
On Tue, 20 Nov 2007, Richard B. Johnson wrote: > On Tue, 20 Nov 2007, Herbert Xu wrote: > >> Hi: >> >> [KERNEL]: Avoid divide in IS_ALIGN >> >> I was happy to discover the brand new IS_ALIGN macro and quickly >> used it in my code. To my dismay I found that the generated code >> used division

Re: Point of gpl-only modules (flame)

2007-10-03 Thread linux-os (Dick Johnson)
On Tue, 2 Oct 2007, Jan Engelhardt wrote: > > On Oct 2 2007 23:49, Jimmy wrote: >> >> Anyway, I've been trying to figure out what purpose the gpl-only code serves. >> What good comes out of disabling people from probing modules that do not >> have a >> gpl-compatible license? > > find

Re: __LITTLE_ENDIAN vs. __LITTLE_ENDIAN_BITFIELD

2007-10-05 Thread linux-os \(Dick Johnson\)
On Fri, 5 Oct 2007, Timur Tabi wrote: > Andreas Schwab wrote: > >> The bit mapping on your device is strictly internal to the device and >> has nothing to do with bit order on the C level. > > Then I don't understand that point of defining __LITTLE_ENDIAN_BITFIELD. What does it mean for a

Re: __LITTLE_ENDIAN vs. __LITTLE_ENDIAN_BITFIELD

2007-10-10 Thread linux-os (Dick Johnson)
On Tue, 9 Oct 2007, Krzysztof Halasa wrote: > Jeremy Fitzhardinge <[EMAIL PROTECTED]> writes: > >> but the gist is that IBM has >> traditionally bit 0 for MSB and x for LSB. It's a pain to work with: >> for one, bits in the same place in a word (say, control register) are >> renumbered in 32 vs

Re: Ethernet driver problem

2007-10-10 Thread linux-os (Dick Johnson)
On Wed, 10 Oct 2007, Jupe wrote: > Hi, > > I have written an ethernet driver for an ARM based board. > Linux version: 2.6.20.1 > > Ping is working fine. > > I have written a test server/client application using socket programming > (TCP). > After the connection is setup the server sends a file

Re: Wasting our Freedom

2007-09-18 Thread linux-os \(Dick Johnson\)
On Tue, 18 Sep 2007, Bodo Eggert wrote: > Paul de Weerd <[EMAIL PROTECTED]> wrote: >> On Mon, Sep 17, 2007 at 03:38:45PM +0200, Adrian Bunk wrote: > >> | It's not about lazyness of BSD developers, many people who consider the >> | BSD licence more free than the GPL argue that the advantage of

Re: PCI Interrupt

2007-09-18 Thread linux-os \(Dick Johnson\)
On Tue, 18 Sep 2007 [EMAIL PROTECTED] wrote: > > I have a CAN PCI card installed on my Ubuntu box. > I understand that PCI interrupts should be level rather than edge > triggered. > > The output of cat /proc/interrupts is :- > > CPU0 > 0:1614601IO-APIC-edge timer > 1:

Re: PCI Interrupt

2007-09-18 Thread linux-os \(Dick Johnson\)
cc > 18/09/2007 14:57 "Linux kernel" > > Subject > Please respond to Re: PCI Interrupt > "linux-os \(Dick >

Re: PCI Interrupt

2007-09-18 Thread linux-os \(Dick Johnson\)
On Tue, 18 Sep 2007 [EMAIL PROTECTED] wrote: > Sorted. > > A setting in the BIOS meant it was storing old configuration data. > After disabling this option, it became a level triggered interrupt and > everything now works! > > Thanks. Good! Cheers, Dick Johnson Penguin : Linux version

RE: Question about free/used memory on Linux

2007-10-22 Thread linux-os (Dick Johnson)
On Sun, 21 Oct 2007, Ravinandan Arakali (rarakali) wrote: > Hi Vaidy, > Thanks for clarifying several of my doubts. > > To answer your question about my intention, we currently have a > system with 2 GB RAM and I need to find out the actual used and > free memory so that we can decide if the

Re: kernel processes - are they really needed?

2007-10-24 Thread linux-os (Dick Johnson)
On Wed, 24 Oct 2007, Ram wrote: > Hi, >When i do ps -l. i see the following processes which are obviously > started by kernel. > > Could any one tell me what each of these processes do and can > anyone of them can be removed.? > > PID Uid VmSize Stat Command >1 root584 S

Re: [PATCH] fix "passing argument # of '__memcpy' discards qualifiers from pointer target type" warnings

2007-10-24 Thread linux-os (Dick Johnson)
On Wed, 24 Oct 2007, Bodo Eggert wrote: > Miguel Botón <[EMAIL PROTECTED]> wrote: > >> This patch fixes the warnings "passing argument 1 of '__memcpy' discards >> qualifiers from pointer target type" and "passing argument 2 of '__memcpy' >> discards qualifiers from pointer target type" when

Re: Is gcc thread-unsafe?

2007-10-25 Thread linux-os (Dick Johnson)
On Thu, 25 Oct 2007, Andi Kleen wrote: > On Thursday 25 October 2007 05:24, Nick Piggin wrote: > >> Basically, what the gcc developers are saying is that gcc is >> free to load and store to any memory location, so long as it >> behaves as if the instructions were executed in sequence. > > This

Re: halt does not shut the system down

2007-10-16 Thread linux-os (Dick Johnson)
On Tue, 16 Oct 2007, John Sigler wrote: > John Sigler wrote: > >> Alexey Starikovskiy wrote: >> >>> Could you please open bug at bugzilla.kernel.org and put all these >>> files there? >> >> http://bugzilla.kernel.org/show_bug.cgi?id=9148 >> >> Writing 15361 (i.e. 0x3C01) to

Re: how to use TLB to prevent Linux accessing a particular memory region

2007-10-16 Thread linux-os (Dick Johnson)
On Tue, 16 Oct 2007, veerasena reddy wrote: > Hi, > > I have a board, which has two processors ( one is MIPS > on which Linux-2.6.18 kernel runs and another is DSP > based processor) and 32MB DDR. > > Out of 32MB of DDR 8MB is reserved for use by DSP > processor. But the MIPS processor

Re: eradicating out of tree modules

2007-10-30 Thread linux-os (Dick Johnson)
On Mon, 29 Oct 2007, Tilman Schmidt wrote: > Am 28.10.2007 20:25 schrieb Adrian Bunk: >> On Sun, Oct 28, 2007 at 07:51:12PM +0100, Tilman Schmidt wrote: >>> Am 28.10.2007 02:55 schrieb Adrian Bunk: Justifying anything with code with not GPL compatible licences has zero relevance here.

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: uml and -regparm=3

2008-01-09 Thread linux-os (Dick Johnson)
On Wed, 9 Jan 2008, Miklos Szeredi wrote: > FASTCALL is defined empty in -mm, but UML is not compiled with > -mregparm=3 and so this breaks things (I noticed problems with > rwsem_down_write_failed). > > Tried recompiling UML with -mregparm=3, but that resulted in a strange > failure immediately

Re: Is it possible to change IRQ for certain device?

2008-01-10 Thread linux-os (Dick Johnson)
On Thu, 10 Jan 2008, Jan Marek wrote: > Hello lkml, > > I have problem with my computer: I have motherboard with AMD690G chipset > and nVidia VGA card. But I cannot set BIOS, to assign for VGA unique > IRQ. VGA card is sharing IRQ with two ohci_hcd (USB 1.1 controllers). > But when I want use

Re: Is the PCI clock within the spec?

2007-12-04 Thread linux-os (Dick Johnson)
On Tue, 4 Dec 2007, John Sigler wrote: > Hello Sébastien, > > Sébastien Dugué wrote: > >> John Sigler wrote: >> >>> I have an x86 system, running Linux 2.6.22.1-rt9, in which I plug one >>> or two PCI I/O boards. I had been experiencing complete system lock-ups >>> until I sent the system to the

Re: Is the PCI clock within the spec?

2007-12-04 Thread linux-os (Dick Johnson)
On Tue, 4 Dec 2007, John Sigler wrote: > Dick Johnson wrote: > >> You can't just touch a scope-probe to the PCI >> clock pin and clip the scope-probe grounding >> lead to a convenient "ground" to make these >> measurements! You need a special fixture that >> will make a low-inductance connection

Possible EXT2 race

2007-12-07 Thread linux-os (Dick Johnson)
On linux-2.6.22.1, executing the following script while the mailer is writing to /var/spool/mail/linux-os. #!/bin/bash while true ; do >/var/spool/mail/linux-os; sleep 1; done ...will cause the following errors to occur. Dec 7 04:05:55 chaos kernel: sd 0:0:1:0: [sdb] Sense Key :

Re: Possible EXT2 race

2007-12-07 Thread linux-os (Dick Johnson)
On Fri, 7 Dec 2007, Dave Jones wrote: > On Fri, Dec 07, 2007 at 08:15:42AM -0500, linux-os (Dick Johnson) wrote: > > > Dec 7 04:05:55 chaos kernel: sd 0:0:1:0: [sdb] Add. Sense: Peripheral > > device write fault > > This sounds more like a hardware

Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern AMD64 with MCP51 laptops

2007-12-11 Thread linux-os (Dick Johnson)
On Tue, 11 Dec 2007, David Newall wrote: > Rene Herman wrote: >> This particular discussion isn't about anything in general but solely >> about the delay an outb_p gives you on x86 since what is under >> discussion is not using an output to port 0x80 on that platform to >> generate it. > > That

Re: RFC: outb 0x80 in inb_p, outb_p harmful on some modern AMD64 with MCP51 laptops

2007-12-11 Thread linux-os (Dick Johnson)
On Tue, 11 Dec 2007, David P. Reed wrote: > > > Alan Cox wrote: >> >> The vga driver is somewhat misnamed. In console mode we handle everything >> back to MDA/HGA and some HGA adapters do need delays. >> >> > No they don't. I really, really, really know this for a fact. I wrote > ASM drivers

Re: [Patch] document ext3 requirements (was Re: [RFD] Incrementalfsck)

2008-01-18 Thread linux-os (Dick Johnson)
On Fri, 18 Jan 2008, Theodore Tso wrote: > On Thu, Jan 17, 2008 at 04:31:48PM -0800, Bryan Henderson wrote: >> But I heard some years ago from a disk drive engineer that that is a myth >> just like the rotational energy thing. I added that to the discussion, >> but admitted that I haven't

Re: Communication between user process and kernel modules

2008-01-18 Thread linux-os (Dick Johnson)
On Fri, 18 Jan 2008, mokhtar wrote: > > Hi > > What are the different solution to make a user process communicate with a > kernel modules? > > Whatis the the advantages and disadvanteges of each solutions ? > ioctl() is the universal Unix mechanism for control of drivers (modules). open(),

Trying to convert old modules to newer kernels

2007-12-19 Thread linux-os (Dick Johnson)
Here is a so-called BUG when trying to insert the following module into the kernel (2.6.22.1). BUG: unable to handle kernel paging request at virtual address 6814ec83 printing eip: c016d013 *pde = Oops: [#1] PREEMPT SMP Modules linked in: MemDev parport_pc lp parport nfsd

Re: Trying to convert old modules to newer kernels

2007-12-19 Thread linux-os (Dick Johnson)
On Wed, 19 Dec 2007, Lennart Sorensen wrote: > On Wed, Dec 19, 2007 at 03:10:28PM -0500, linux-os (Dick Johnson) wrote: >> >> >> Here is a so-called BUG when trying to insert the following >> module into the kernel (2.6.22.1). >> >> >> BUG: unab

Re: Trying to convert old modules to newer kernels

2007-12-19 Thread linux-os (Dick Johnson)
On Wed, 19 Dec 2007, Jan Engelhardt wrote: > > On Dec 19 2007 15:10, linux-os (Dick Johnson) wrote: > > >> I got rid of __init and anything else that I thought could cause the fault, > > I anticipate the day removing __init causes a breakage, heh. > I mean, if all i

Re: Trying to convert old modules to newer kernels

2007-12-20 Thread linux-os (Dick Johnson)
On Thu, 20 Dec 2007, Lennart Sorensen wrote: > On Wed, Dec 19, 2007 at 03:56:45PM -0500, linux-os (Dick Johnson) wrote: >> >> On Wed, 19 Dec 2007, Lennart Sorensen wrote: >> >>> On Wed, Dec 19, 2007 at 03:10:28PM -0500, linux-os (Dick Johnson) wrote: >>>&

<    1   2   3   4   5   >