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

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

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 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 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 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: kernel load issues (insmod segfault)

2005-04-01 Thread Toralf Lund
Toralf Lund wrote: Hi. I thought I might try this one again (with updated code and more compete info): Right. I think maybe I've made some kind of stupid mistake. Sorry. I looked, and looked again, and just couldn't find anything wrong with the module (so it must be the kernel, right?), but I

kernel load issues (insmod segfault)

2005-04-01 Thread Toralf Lund
Hi. I thought I might try this one again (with updated code and more compete info): I have a special hardware driver module that leads to unexpected trouble at load-time; insmod simply segfaults. That's unexpected not because I can guarantee that the module is good, but because the problem

kernel load issues (insmod segfault)

2005-04-01 Thread Toralf Lund
Hi. I thought I might try this one again (with updated code and more compete info): I have a special hardware driver module that leads to unexpected trouble at load-time; insmod simply segfaults. That's unexpected not because I can guarantee that the module is good, but because the problem

Re: kernel load issues (insmod segfault)

2005-04-01 Thread Toralf Lund
Toralf Lund wrote: Hi. I thought I might try this one again (with updated code and more compete info): Right. I think maybe I've made some kind of stupid mistake. Sorry. I looked, and looked again, and just couldn't find anything wrong with the module (so it must be the kernel, right?), but I

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

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

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

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

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

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