Re: insmod segfault in pci_find_subsys()

2005-04-18 Thread Toralf Lund
Sam Ravnborg wrote: On Wed, Apr 13, 2005 at 01:49:10PM +0200, Toralf Lund wrote: Yes. As I've (also) already said elsewhere, I knew that, really. The current build setup fails to do this partly for historical reasons, partly because the driver also supports different OSes. (And is still

Re: insmod segfault in pci_find_subsys()

2005-04-13 Thread Sam Ravnborg
On Wed, Apr 13, 2005 at 01:49:10PM +0200, Toralf Lund wrote: > > > > > Yes. As I've (also) already said elsewhere, I knew that, really. The > current build setup fails to do this partly for historical reasons, > partly because the driver also supports different OSes. (And is still > expected to

Re: insmod segfault in pci_find_subsys()

2005-04-13 Thread Toralf Lund
Arjan van de Ven wrote: Yes. You are right. I actually mentioned this on a different thread: I eventually found out that the kernel was compiled with -mregparam=3, and the module was not. This option seems to have been added to the default config and/or Red Hat's build setup sometime before the

Re: insmod segfault in pci_find_subsys()

2005-04-13 Thread Arjan van de Ven
> Yes. You are right. I actually mentioned this on a different thread: I > eventually found out that the kernel was compiled with -mregparam=3, and > the module was not. This option seems to have been added to the default > config and/or Red Hat's build setup sometime before the current kernel

Re: insmod segfault in pci_find_subsys()

2005-04-13 Thread Toralf Lund
Greg KH wrote: On Tue, Mar 29, 2005 at 04:15:37PM +0200, Toralf Lund wrote: Greg KH wrote: On Fri, Mar 18, 2005 at 10:12:05AM +0100, Toralf Lund wrote: Am I seeing an issue with the PCI functions here, or is it just that I fail to spot an obvious mistake in the module itself?

Re: insmod segfault in pci_find_subsys()

2005-04-13 Thread Greg KH
On Tue, Mar 29, 2005 at 04:15:37PM +0200, Toralf Lund wrote: > Greg KH wrote: > > >On Fri, Mar 18, 2005 at 10:12:05AM +0100, Toralf Lund wrote: > > > > > >>Am I seeing an issue with the PCI functions here, or is it just that I > >>fail to spot an obvious mistake in the module itself? > >> > >

Re: insmod segfault in pci_find_subsys()

2005-03-29 Thread Toralf Lund
Greg KH wrote: On Fri, Mar 18, 2005 at 10:12:05AM +0100, Toralf Lund wrote: Am I seeing an issue with the PCI functions here, or is it just that I fail to spot an obvious mistake in the module itself? I think it's a problem in your code. I built and ran the following example module just f

Re: insmod segfault in pci_find_subsys()

2005-03-19 Thread Toralf Lund
Greg KH wrote: On Fri, Mar 18, 2005 at 10:12:05AM +0100, Toralf Lund wrote: Am I seeing an issue with the PCI functions here, or is it just that I fail to spot an obvious mistake in the module itself? I think it's a problem in your code. I built and ran the following example module just f

Re: insmod segfault in pci_find_subsys()

2005-03-18 Thread Greg KH
On Fri, Mar 18, 2005 at 10:12:05AM +0100, Toralf Lund wrote: > Am I seeing an issue with the PCI functions here, or is it just that I > fail to spot an obvious mistake in the module itself? I think it's a problem in your code. I built and ran the following example module just fine (based on your

insmod segfault in pci_find_subsys()

2005-03-18 Thread Toralf Lund
Hi. I'm having some major issues with a custom module I'm hacking on (actually maintained by someone else, but I've done odd bits of development.) I simply get a segfault at module install time, and the problem seems to occur while the module is scanning the PCI bus. The error log from one inst