Linux-Development-Sys Digest #157, Volume #8     Tue, 19 Sep 00 01:13:08 EDT

Contents:
  Re: aic7xxx 2.4.0 kernel module...gone (Jonathan)
  Re: kernel update problem (Juergen Heinzl)
  Module Gurus - Could you give me a little advice please? ("Tom")
  Re: Module Gurus - Could you give me a little advice please? ("Tom")
  Re: Finding bottlenecks in my app (Karl Heyes)
  Re: ASM problem building kernel (Myke Morgan)
  Re: 64M buffer passed from user to kernel (Ed Carp)
  Re: how pci devices use dma (Ed Carp)
  Re: Turning swap off (Ed Carp)
  Re: how pci devices use dma (Ed Carp)
  Re: kernel update problem (Karl Heyes)
  Re: ext2 file size limit? ("Peter T. Breuer")
  Re: 64M buffer passed from user to kernel (Pete Zaitcev)
  MS Visual Studio -> CodeForge?? ("Me")
  Re: kernel update problem ("Meree Tencg")
  Re: new windowing system (Stefaan A Eeckels)
  Re: new windowing system (Stefaan A Eeckels)
  Re: ASM problem building kernel (Paul Kimoto)

----------------------------------------------------------------------------

From: Jonathan <[EMAIL PROTECTED]>
Crossposted-To: alt.os.linux,comp.os.linux.misc,comp.os.linux.setup
Subject: Re: aic7xxx 2.4.0 kernel module...gone
Date: Mon, 18 Sep 2000 20:49:59 GMT

In article <[EMAIL PROTECTED]>,
  Josef Oswald <[EMAIL PROTECTED]> wrote:
> Remember Darren those Kernels are _unstable_ Versions :-(
>
> I tried to kompile one 2.4.test8 now three times and for some reason
> when I want to access my fvat partitions I get the message vfat not
> supported by kernel...... ( and yes I even compiled it fix in the
kernel
> and not as a module)
>
> I know that is not a answer to your question though..:-( Sorry
>
> Darren Welson wrote:
> >
> > Every time I recompile 2.4.0-test 6,7, and 8 kernel, I cannot seem
to
> > successfully load the AIC7XXX module, or at least have it made.
Anyone know
> > how I can check to make sure I am actually making this module, or
find a way
> > I can to compile it into the kernel?  I have added it as a module
and IN the
> > kernel in all three test versions as a low-level SCSI option, but
what am I
> > missing?
> >
> > darren
>
> --
> Josef Oswald [EMAIL PROTECTED]
> registered-linux-user # 13.818 at http://counter.li.org
>

Offtopic from the top-level post, but ...

I had that problem with the vfat modules also.  Read
/Documentation/Changes.  I had to upgrade modutils and rename
conf.modules to modules.conf.

As you said, however - this also does not address the aic7xxx problem ;)


Sent via Deja.com http://www.deja.com/
Before you buy.

------------------------------

From: [EMAIL PROTECTED] (Juergen Heinzl)
Subject: Re: kernel update problem
Date: 18 Sep 2000 21:25:31 GMT

In article <8q4l8j$[EMAIL PROTECTED]>, Meree Tencg wrote:
>Hi guy,
>I had been update kernel 2.2.17 from 2.2.14,
>when I booting the system every time, it has some
>warning message occur.
>
>warning: /boot/System.map has an incorrect kernel version.
[-]
You need to copy /usr/src/linux/System.map to /boot or
see man klogd for how to specify a different path.

/boot/System.map is always the first location it is looking
for and oh yes, if you have kept your old kernel you may
save the old System.map.

>and the system has booting final after 5mins. It will show the
[-]
5 minutes ???

>INIT: Id "d2" respawning too fast: disabled for 5 minutes
>who can teach me how to take care of this problem.
[-]
Something is going berserk. See /etc/inittab and what is being
started there. You need to search for an entry of the form
d2:1234:respawn:/sbin/something someoptions. It might be
klogd, but I'm not starting it up that way and won't try for
you here ;)

Cheers,
Juergen

-- 
\ Real name     : J�rgen Heinzl         \       no flames      /
 \ EMail Private : [EMAIL PROTECTED] \ send money instead /

------------------------------

From: "Tom" <[EMAIL PROTECTED]>
Crossposted-To: fa.linux.kernel
Subject: Module Gurus - Could you give me a little advice please?
Date: Mon, 18 Sep 2000 21:25:26 GMT

Hello,

I am developing a module/device driver for a PCI based data acquisition/DSP
card presently installed on an x86 architecture motherboard. The card
contains ~1MB of shared PCI memory and some various control/status registers
accessible via x86 I/O ports.

I have successfully been able to talk to the board thorugh the I/O ports and
peek/poke the shared memory. All the kernel/module methods of I/O port
allocation and ioremap'ing seem to work great.

My question is: if a user space program should desire to read and write
blocks (arrays) of data to the shared memory, what is the preferred method
of implementing the deviceRead/deviceWrite functions in the module?

For example, consider the block write to the shared memory. This is how I
would envision it is done (please pardon any repulsive C style that I use,
I'm just trying to illustrate the methods):  :-)

static ssize_t deviceWrite( struct file *filePtr, const char *buf, size_t
count, loff_t *off)
{
        char* tBuf;

        ....

        tBuf = kmalloc( count , GFP_KERNEL );
              copy_from_user( tBuf, buf, count );
              memcpy_toio( deviceVirtualAddress, tBuf, count );
        kfree( tBuf );
}

Or is the following better:

static ssize_t deviceWrite( struct file *filePtr, const char *buf, size_t
count, loff_t *off)
{
        int i;

        unsigned tBuf;
        unsigned* src = (unsigned*)buf;
        unsigned* dst = (unsigned*)deviceVirtualAddress;

        ...

        for( i = 0; i < count/sizeof(unsigned); i++){
                copy_from_user( &tBuf, src, sizeof(unsigned) );
                        writel( dst, tBuf, 1 );
                src++;
                dst++;
        }
}

Or do both ways suck, I'm hopeless as a Linux module writer,  and I should
take my inept programming skills and go work for Microsoft?

IMHO, the first method seems wasteful of memory but possibly fast.
The second method seems like it might be slow.

(Not to mention, I'm sure my boss will want DMA someday... I'm doomed!)

Any thoughts, opinions, ideas, etc. would be greatly appreciated.

TIA,
Tom Anwyll

------------------------------

From: "Tom" <[EMAIL PROTECTED]>
Crossposted-To: fa.linux.kernel
Subject: Re: Module Gurus - Could you give me a little advice please?
Date: Mon, 18 Sep 2000 21:44:55 GMT


On 18-Sep-2000, "Tom" <[EMAIL PROTECTED]> wrote:
<snip>
> writel( dst, tBuf, 1 );

Sorry, make that:

writel( tBuf, dst );

------------------------------

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: Finding bottlenecks in my app
Date: Mon, 18 Sep 2000 22:56:31 +0000

In article <8q4pjp$ur3$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> Hi All,
> 
> I have a large application written in C++ on linux, using many shared
> libraries, and I am interested in finding the performance bottlenecks.
> 
> I have used 'quantify' on Solaris and Windows NT, and I am interested in
> knowing if there are any such tools on Linux.
> 
> I know about gprof, but if I understand correctly, I will have to recompile
> my entire application (including all shared libraries) in order to use this
> tool.
> 

You have to re-compile the parts you want to profile.  this does not be have to
include the shared libs.

karl.


------------------------------

From: Myke Morgan <[EMAIL PROTECTED]>
Subject: Re: ASM problem building kernel
Date: Mon, 18 Sep 2000 14:58:34 -0700

Paul Kimoto wrote:
> 
> In article <[EMAIL PROTECTED]>, Myke Morgan wrote:
> > I'm trying to build the 2.2.14 kernel that came right off the RedHat 6.2
> > CDROM and using gcc 2.95.2. The error is nowhere near the single file I
> > altered. It must be something with my compiler, since a colleague built
> > it fine with egcs 2.91.?.
> >
> > Here's one error:
>  [deletia]
> > {standard input}: Assembler messages:
> > {standard input}:978: Error: no such 386 instruction: `movups'
> > {standard input}:979: Error: no such 386 instruction: `movups'
>  [and so forth]
> 
> > My assembler has version:
> >
> > % as -v
> > GNU assembler version 2.9.1 (i686-pc-linux-gnu), using BFD version 2.9.1
> 
> (The assembler is not the compiler.)  Perhaps you should try a newer
> binutils, with a version number like 2.9.5.0.16 or 2.10.0.24 or some
> such.

I'm not sure what you're implying by "the assembler is not the compiler"
(I do understand that). I did get the very latest binutils 2.10.0.24 and
the same thing happened. Has anyone seen this before?

> 
> --
> Paul Kimoto

-- 
myke

------------------------------

From: Ed Carp <[EMAIL PROTECTED]>
Subject: Re: 64M buffer passed from user to kernel
Date: Mon, 18 Sep 2000 16:37:12 -0500

lsnover wrote:

> I'm a newbie and need help.
> I need to allocate a 64MB of contiguous memory which needs to be mapped
> into user memory.  Then the buffer will be passed to a kernel module
> for DMAing to a custom PCI board.  I've heard one approach is to use
> kmalloc() and copy_to_user().  Is this my only option?  Does
> copy_to_user() create a second copy of the buffer, hence creating 2 64MB
> buffers?

Don't you mean 64KB?

------------------------------

From: Ed Carp <[EMAIL PROTECTED]>
Subject: Re: how pci devices use dma
Date: Mon, 18 Sep 2000 16:39:54 -0500

Anil Prasad wrote:

>         can anyone tell that how pci devices in linux use dma.

Think "bus matering".

------------------------------

From: Ed Carp <[EMAIL PROTECTED]>
Subject: Re: Turning swap off
Date: Mon, 18 Sep 2000 16:44:22 -0500

"H�kan" wrote:

> What happend if I turning swap offt? Should I see any preformace downloads?
> Not so good network preformance? Does anyone know?

If everything you run is in memory, you shouldn't see any performance
hit.

> How do I turn the swap off. Is it enough to remove the swap entry in
> /etc/fstab

I'd comment it out.

------------------------------

From: Ed Carp <[EMAIL PROTECTED]>
Subject: Re: how pci devices use dma
Date: Mon, 18 Sep 2000 16:49:46 -0500

Ed Carp wrote:

> >         can anyone tell that how pci devices in linux use dma.
> 
> Think "bus matering".

Yes, I can type (sort of).  I meant "bus mastering".

I hate Sun keyboards.

------------------------------

From: Karl Heyes <[EMAIL PROTECTED]>
Subject: Re: kernel update problem
Date: Mon, 18 Sep 2000 23:03:49 +0000

In article <8q4l8j$[EMAIL PROTECTED]>, "Meree Tencg" <[EMAIL PROTECTED]>
wrote:
> Hi guy, I had been update kernel 2.2.17 from 2.2.14, when I booting the
> system every time, it has some warning message occur.
> 
> warning: /boot/System.map has an incorrect kernel version.
> 

Not a problem really for you suspect. I usually get rid of that file, and after
compiling I copy the one that gets built (/usr/src/linux) to
/lib/modules/<version>


> and the system has booting final after 5mins. It will show the INIT: Id "d2"
> respawning too fast: disabled for 5 minutes who can teach me how to take care
> of this problem. thank very much.
> 
To get the interesting bit do

grep '^d2' /etc/inittab

for whatever reason, the command init is trying run is terminating quickly and
init is disabling it for the moment.

whatever it is maybe requiring a kernel service that for haven't built.


karl.



------------------------------

From: "Peter T. Breuer" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.misc
Subject: Re: ext2 file size limit?
Date: 18 Sep 2000 22:13:43 GMT

In comp.os.linux.misc Anders Gulden Olstad <[EMAIL PROTECTED]> wrote:
: ext2fs has a filesize limit of 2GB, I'm sorry. 

You are confusing yourself through the 31-bit effect on ix86 VFS. Extfs
has no built-in 32 bit limit. There are large file patches for ix86.
The kernel VFS supports large lseeks anyway. It's up to user applications
to make the right library call.

Peter

------------------------------

From: [EMAIL PROTECTED] (Pete Zaitcev)
Subject: Re: 64M buffer passed from user to kernel
Date: Mon, 18 Sep 2000 23:52:23 GMT

On Mon, 18 Sep 2000 18:48:50 GMT, lsnover <[EMAIL PROTECTED]> wrote:
> I need to allocate a 64MB of contiguous memory which needs to be mapped
> into user memory.  Then the buffer will be passed to a kernel module
> for DMAing to a custom PCI board.  I've heard one approach is to use
> kmalloc() and copy_to_user().  Is this my only option?  Does
> copy_to_user() create a second copy of the buffer, hence creating 2 64MB
> buffers?

I guess you deal with an MPEG encoder/decoder or video capture board.
The only way to get 64MB is to use Pauline's Bigphisarea, allocate
the needed memory in the driver with Bigphisarea calls, then mmap
this into the user space. Check how Zoran and BTTV drivers do it.

The copy_to_user() is a copy, which is not necesserily a bad idea,
but it is a copy nonetheless. The kmalloc() cannot give you large
enough chunks. Neither can get_free_pages().

> Any other suggestions?

Rape the board designers, preferably with a screwdriver.
For instance, over time C-cube provided alternative protocol
that does not require insane amounts of contiguous memory.
For most boards it can be done with changes in the microcode.

--Pete

------------------------------

From: "Me" <[EMAIL PROTECTED]>
Subject: MS Visual Studio -> CodeForge??
Date: Mon, 18 Sep 2000 19:37:46 -0500

I'm a user of Microsoft Visual Studio. I have grown tired of the Microsoft
way of doing things (e.g. rebooting, hung systems, rebooting, bloatware,
rebooting, etc.). I want to evaluate a move to Linux for our web-based
applications and need some direction regarding development environments.

Visual Stuido is nice, to say the least. Project management (read make file
management), integrated source control, integrated debugger, etc. are must
have features. We're in a 12-member development, working on about three
different projects at any given time. This stuff works great except for the
Microsoft problems (did I mention rebooting and hung servers?). And we can't
get Visual Source Safe (MS source control attempt) to stay stable for more
than 90 days or so.

Is there anything like it in Linux? We're currently looking at CodeForge. So
far, so good, but would like to consider other options if they are
available.

Thanks!



------------------------------

From: "Meree Tencg" <[EMAIL PROTECTED]>
Subject: Re: kernel update problem
Date: Tue, 19 Sep 2000 09:35:41 +0800

Hi;
Thank your respond, I'm take care of the first problem.
I'm copy the System.map file under /usr/src/linux after cpmpiling.

The sec. problem maybe the modem's power down.
because this modem is ppp dial-in server.

Thank your resopnd again.

"Karl Heyes" <[EMAIL PROTECTED]> ���g��l��
news:8q63ha$rb2$[EMAIL PROTECTED]...
> In article <8q4l8j$[EMAIL PROTECTED]>, "Meree Tencg"
<[EMAIL PROTECTED]>
> wrote:
> > Hi guy, I had been update kernel 2.2.17 from 2.2.14, when I booting the
> > system every time, it has some warning message occur.
> >
> > warning: /boot/System.map has an incorrect kernel version.
> >
>
> Not a problem really for you suspect. I usually get rid of that file, and
after
> compiling I copy the one that gets built (/usr/src/linux) to
> /lib/modules/<version>
>
>
> > and the system has booting final after 5mins. It will show the INIT: Id
"d2"
> > respawning too fast: disabled for 5 minutes who can teach me how to take
care
> > of this problem. thank very much.
> >
> To get the interesting bit do
>
> grep '^d2' /etc/inittab
>
> for whatever reason, the command init is trying run is terminating quickly
and
> init is disabling it for the moment.
>
> whatever it is maybe requiring a kernel service that for haven't built.
>
>
> karl.
>
>



------------------------------

From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Subject: Re: new windowing system
Date: Tue, 19 Sep 2000 00:53:14 +0200

In article <POWw5.15580$[EMAIL PROTECTED]>,
        "John Smith" <[EMAIL PROTECTED]> writes:
> It's "neck of the woods", idiot.
> 
> "Stefaan A Eeckels" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
>> In article <[EMAIL PROTECTED]>,
>> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>> >
>> BTW, do they still say "robot" for a traffic light
>> in your nick of the woods?

You have just proved in a public forum that I made
a spelling mistake, and that you have no manners.

HAND,

-- 
Stefaan
-- 
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.

------------------------------

From: [EMAIL PROTECTED] (Stefaan A Eeckels)
Crossposted-To: comp.os.linux.x,comp.windows.x
Subject: Re: new windowing system
Date: Tue, 19 Sep 2000 00:46:49 +0200

In article <8ptrgt$eis$[EMAIL PROTECTED]>,
        [EMAIL PROTECTED] writes:
> 
> 
>> >Modicum? You have to be joking. I went to your link and found
>> >research, yes, but hardly anything I'd find outside some
>> >computer science departent's limited-access library. Sheesh.
FYI, "modicum" means "a moderate quantity".

>> Read the manual page for X, commonly found via "man X".
> 
> Chris, quit being a twerp. You were talking firstly about
> serious research, then you pretend you were talking about
> something that can be found in a man page.
He was talking about a modicum of research, meaning you
performing a moderate quantity of man-page reading 
before spouting inanities about X requiring sockets.

> You're giving Unix people a bad name by pretending to be
> a know it all.

He gave a moderate, informed answer to the umpteenth 
unimaginative rehashing of the "I don't like X for all
the wrong reasons" troll. 

You are giving yourself a bad name. 

-- 
Stefaan
-- 
Ninety-Ninety Rule of Project Schedules:
        The first ninety percent of the task takes ninety percent of
the time, and the last ten percent takes the other ninety percent.

------------------------------

From: [EMAIL PROTECTED] (Paul Kimoto)
Subject: Re: ASM problem building kernel
Date: 19 Sep 2000 00:48:55 -0500
Reply-To: [EMAIL PROTECTED]

In article <[EMAIL PROTECTED]>, Myke Morgan wrote:
>> In article <[EMAIL PROTECTED]>, Myke Morgan wrote:
>>> I'm trying to build the 2.2.14 kernel that came right off the RedHat 6.2
>>> CDROM and using gcc 2.95.2. The error is nowhere near the single file I
>>> altered.

>>> {standard input}: Assembler messages:
>>> {standard input}:978: Error: no such 386 instruction: `movups'
>>> {standard input}:979: Error: no such 386 instruction: `movups'

>>> % as -v
>>> GNU assembler version 2.9.1 (i686-pc-linux-gnu), using BFD version 2.9.1

>  I did get the very latest binutils 2.10.0.24 and
> the same thing happened.

Using strings(1), grep(1), find(1), etc., I found that the (binary)
assembler program on my system contains the strings "movups", but neither
the compiler nor the *.[sSh] files in linux-2.2.18-pre6 do.  (I don't see
that string in the i386 part of the gcc source code, either.)

Can you figure out what is producing these instructions (that the assembler
isn't understanding)?  (Remember that the compiler is actually
/GCC_PREFIX/lib/gcc-lib/i*86-linux*/VERSION_NUMBER/cc1.)

Perhaps Red Hat has messed with the kernel source code or the compiler in
a way that requires some particular assembler.

-- 
Paul Kimoto
This message was originally posted in plain text.  Any images, 
hyperlinks, or the like shown here have been added without my
consent, and may be a violation of international copyright law.

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list (and comp.os.linux.development.system) via:

    Internet: [EMAIL PROTECTED]

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Development-System Digest
******************************

Reply via email to