RE: memcpy in 2.2.19

2001-04-02 Thread Chris Funderburg

My head hurts.  I tried the latest aic patch.  Tried it on another machine,
same version of compiler though.  (Redhat gcc 2.96 2731) - I then
tried one of the gcc snapshots, but that won't compile _at all_.

Oddly enough, the problem also occurs in reiserfs.

I've attached a copy of my .config if anyone wants to try it for
themselves...

cc -D__KERNEL__ -I/usr/src/linux/include -E -C -P -I/usr/src/linux/include -
imacros /usr/src/linux/include/asm-i386/page_offset.h -Ui386
arch/i386/vmlinux.lds.S >arch/i386/vmlinux.lds
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.o drivers/misc/misc.a
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
drivers/pci/pci.a drivers/pnp/pnp.a drivers/video/video.a \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
fs/filesystems.a(reiserfs.o): In function `ip_check_balance':
reiserfs.o(.text+0xa45e): undefined reference to `memset'
drivers/scsi/scsi.a(aic7xxx.o): In function `aic7xxx_load_seeprom':
aic7xxx.o(.text+0x116bf): undefined reference to `memcpy'
make: *** [vmlinux] Error 1



-Original Message-
From: Jeff Garzik [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2001 11:00
To: Chris Funderburg
Cc: Linux-Kernel
Subject: Re: memcpy in 2.2.19


On Fri, 30 Mar 2001, Chris Funderburg wrote:
> What's wrong with this picture:
> ld -m elf_i386 -T /usr/src/kernel/stable/linux/arch/i386/vmlinux.lds -e
[...]
> -o vmlinux
> drivers/scsi/scsi.a(aic7xxx.o): In function `aic7xxx_load_seeprom':
> aic7xxx.o(.text+0x116bf): undefined reference to `memcpy'
> make: *** [vmlinux] Error 1
>
> Is this something outside the kernel tree that I've lost?  Seems a bit
weird
> since memcpy must be
> used in thousands of other place.

It's even more strange because memcpy is not called at all from that
routine.  

Generally when this occurs, someone is using a gcc feature to copy a
structure, instead of calling memcpy directly.  Since the kernel is
sometimes compiled with -fno-builtins, and since we also have our own
kernel memcpy, using this particular gcc feature often runs into
problems.

It's not obvious from the code that this is going on, but it's one
possible cause.

Can you try the new aic7xxx driver?  Just search any linux-kernel mail
archive for Justin Gibbs, he is always [re-]posting the link to the
latest aic7xxx driver.  AFAIK it has kernel compatibility and thus
supports 2.2.x...

Jeff



 my.config


memcpy in 2.2.19

2001-03-29 Thread Chris Funderburg

What's wrong with this picture:

ld -m elf_i386 -T /usr/src/kernel/stable/linux/arch/i386/vmlinux.lds -e
stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.o drivers/misc/misc.a
drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a
drivers/pci/pci.a drivers/pnp/pnp.a drivers/video/video.a \
/usr/src/kernel/stable/linux/arch/i386/lib/lib.a
/usr/src/kernel/stable/linux/lib/lib.a
/usr/src/kernel/stable/linux/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/scsi/scsi.a(aic7xxx.o): In function `aic7xxx_load_seeprom':
aic7xxx.o(.text+0x116bf): undefined reference to `memcpy'
make: *** [vmlinux] Error 1

Is this something outside the kernel tree that I've lost?  Seems a bit weird
since memcpy must be
used in thousands of other place.


-
'E's not pinin'!
'E's passed on!
This parrot is no more!
He has ceased to be!
'E's expired and gone to meet 'is maker!
'E's a stiff!
Bereft of life, 'e rests in peace!
If you hadn't nailed 'im to the perch 'e'd be pushing up the daisies!
'Is metabolic processes are now 'istory!
'E's off the twig!
'E's kicked the bucket, 'e's shuffled off 'is mortal coil, run
down the curtain and joined the bleedin' choir invisibile!!
THIS IS AN EX-PARROT!!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Re: opl3sa not detected anymore

2001-02-12 Thread Chris Funderburg

On Mon, 12 Feb 2001, Scott Murray wrote:

Thanks!

The isapnp=0 fixed it.  I don't actually have an isapnp.conf file.

On my next compile I'll just disable the ISA Pnp driver.
I don't actually need it, but it's something that I've never bothered to
turn off. :)

CF

> On Mon, 12 Feb 2001, Chris Funderburg wrote:
>
> >
> > After the updates to the opl3sa2 driver (2.4.2-pre3?) my card isn't being
> > detected anymore.  Are there further updates to come, or do I need to
> > change the settings?  The driver is being loaded as a module with the
> > following in /etc/modules.conf:
> [snip]
> > The midi works fine, but 'modprobe sound' reports:
> >
> > opl3sa2: No cards found
> > opl3sa2: 0 PnP card(s) found.
>
> If you've configured ISA PnP support into the kernel, then the driver
> ignores those settings unless you specify isapnp=0.  What I'd suggest
> is that you try disabling the configuration done by the isapnp tools,
> which can be done on RedHat and derived systems by renaming your
> /etc/isapnp.conf to something else.  There seem to be some issues
> with resetting the PnP configuration with isapnp after the in-kernel
> ISA PnP driver has done its stuff, as a couple of other people have
> mentioned similiar problems.
>
> Scott
>
>
>

-- 
... Any resemblance between the above views and those of my employer,
my terminal, or the view out my window are purely coincidental.  Any
resemblance between the above and my own views is non-deterministic.  The
question of the existence of views in the absence of anyone to hold them
is left as an exercise for the reader.  The question of the existence of
the reader is left as an exercise for the second god coefficient.  (A
discussion of non-orthogonal, non-integral polytheism is beyond the scope
of this article.)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://vger.kernel.org/lkml/



Re: opl3sa not detected anymore

2001-02-12 Thread Chris Funderburg


Well what do you know...
I added isapnp=0 and it worked.

 at 0x370
 at 0x534 irq 5 dma 1,0
 at 0x330 irq 5 dma -1,0

The dma and the MSS address (0x534) looks odd, but at least it
seems to play now.

And no, AFAIK, this driver has never been able to detect PNP settings.
If you try to run it without them, you get this:

opl3sa2: io, mss_io, irq, dma, and dma2 must be set

Thanks for your help!

CF


On Tue, 13 Feb 2001, Jérôme Augé wrote:

> Chris Funderburg wrote:
> > following in /etc/modules.conf:
> >
> > alias sound-slot-0 opl3sa2
> > options sound dmabuf=1
> > alias midi opl3
> > options opl3 io=0x388
> > options opl3sa2 mss_io=0x530 irq=5 dma=1 dma2=0 mpu_io=0x330 io=0x370
> >
> > The midi works fine, but 'modprobe sound' reports:
> >
> > opl3sa2: No cards found
> > opl3sa2: 0 PnP card(s) found.
> >
> > If the settings above look ok, then how can help debug it?
>
> Try to add "isapnp=0" to the opl3sa2 options list :
>
> opl3sa2 mss_io=0x530 irq=5 dma=1 dma2=0 mpu_io=0x330 io=0x370 isapnp=0
>
> I had the same problem and adding isapnp=0 solved it, but PNP isn't
> supposed to automaticaly detect those options ?
>
>

-- 
... Any resemblance between the above views and those of my employer,
my terminal, or the view out my window are purely coincidental.  Any
resemblance between the above and my own views is non-deterministic.  The
question of the existence of views in the absence of anyone to hold them
is left as an exercise for the reader.  The question of the existence of
the reader is left as an exercise for the second god coefficient.  (A
discussion of non-orthogonal, non-integral polytheism is beyond the scope
of this article.)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://vger.kernel.org/lkml/



opl3sa not detected anymore

2001-02-12 Thread Chris Funderburg


After the updates to the opl3sa2 driver (2.4.2-pre3?) my card isn't being
detected anymore.  Are there further updates to come, or do I need to
change the settings?  The driver is being loaded as a module with the
following in /etc/modules.conf:

alias sound-slot-0 opl3sa2
options sound dmabuf=1
alias midi opl3
options opl3 io=0x388
options opl3sa2 mss_io=0x530 irq=5 dma=1 dma2=0 mpu_io=0x330 io=0x370

The midi works fine, but 'modprobe sound' reports:

opl3sa2: No cards found
opl3sa2: 0 PnP card(s) found.

If the settings above look ok, then how can help debug it?

Regards
CF
-- 
... Any resemblance between the above views and those of my employer,
my terminal, or the view out my window are purely coincidental.  Any
resemblance between the above and my own views is non-deterministic.  The
question of the existence of views in the absence of anyone to hold them
is left as an exercise for the reader.  The question of the existence of
the reader is left as an exercise for the second god coefficient.  (A
discussion of non-orthogonal, non-integral polytheism is beyond the scope
of this article.)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://vger.kernel.org/lkml/