BUG in modutils or drivers/isdn/hisax/
Hi Keith,
hi Karsten,
hi linux-kernel,
the current modutils (2.4.1) cannot read the __module_pci_device_table of a kernel/drivers/isdn/hisax/hisax.o module of linux 2.4.0 (vanilla).
What's wrong with it?
The compiler is gcc 2.95.2 (as shipped with debian potato). All other module device tables can be read. USB has not been compiled.
Thanks & Regards
Ingo Oeser
Now the gory details (ask for more if needed)...
I checked:
depmod -e -n /path/to/hisax.o (showed an empty pci table) depmod -e -n /path/to/8139too.o (showed a complete pci table)
configured in core:
CONFIG_X86=yCONFIG_ISA=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_MODULES=yCONFIG_KMOD=yCONFIG_M586TSC=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_USE_STRING_486=yCONFIG_X86_ALIGNMENT_16=yCONFIG_X86_TSC=yCONFIG_NOHIGHMEM=yCONFIG_NET=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_ELF=yCONFIG_PM=yCONFIG_ACPI=yCONFIG_PARPORT_PC_FIFO=yCONFIG_PARPORT_PC_SUPERIO=yCONFIG_PARPORT_1284=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_RAM=yCONFIG_PACKET_MMAP=yCONFIG_NETFILTER=yCONFIG_FILTER=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_SYN_COOKIES=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_IDEPCI_SHARE_IRQ=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_VIA82CXXX=yCONFIG_IDEDMA_AUTO=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_BLK_DEV_SR_VENDOR=yCONFIG_SCSI_MULTI_LUN=yCONFIG_NETDEVICES=yCONFIG_NET_ETHERNET=yCONFIG_NET_PCI=yCONFIG_PPP_MULTILINK=yCONFIG_ISDN_PPP=yCONFIG_ISDN_PPP_VJ=yCONFIG_ISDN_MPP=yCONFIG_HISAX_EURO=yCONFIG_DE_AOC=yCONFIG_HISAX_FRITZPCI=yCONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_SERIAL_CONSOLE=yCONFIG_SERIAL_EXTENDED=yCONFIG_SERIAL_DETECT_IRQ=yCONFIG_AUTOFS4_FS=yCONFIG_CRAMFS=yCONFIG_RAMFS=yCONFIG_JOLIET=yCONFIG_PROC_FS=yCONFIG_EXT2_FS=yCONFIG_MSDOS_PARTITION=yCONFIG_NLS=yCONFIG_VGA_CONSOLE=yCONFIG_MAGIC_SYSRQ=y
configured as modules:
CONFIG_PARPORT=mCONFIG_PARPORT_PC=mCONFIG_PNP=mCONFIG_ISAPNP=mCONFIG_PACKET=mCONFIG_NET_IPIP=mCONFIG_IP_NF_CONNTRACK=mCONFIG_IP_NF_FTP=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_LIMIT=mCONFIG_IP_NF_MATCH_MAC=mCONFIG_IP_NF_MATCH_MARK=mCONFIG_IP_NF_MATCH_MULTIPORT=mCONFIG_IP_NF_MATCH_TOS=mCONFIG_IP_NF_MATCH_STATE=mCONFIG_IP_NF_MATCH_UNCLEAN=mCONFIG_IP_NF_MATCH_OWNER=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_MIRROR=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_TOS=mCONFIG_IP_NF_TARGET_MARK=mCONFIG_IP_NF_TARGET_LOG=mCONFIG_IP_NF_COMPAT_IPCHAINS=mCONFIG_BLK_DEV_IDECD=mCONFIG_BLK_DEV_IDETAPE=mCONFIG_BLK_DEV_IDESCSI=mCONFIG_SCSI=mCONFIG_BLK_DEV_SD=mCONFIG_CHR_DEV_OSST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=mCONFIG_NE2K_PCI=mCONFIG_8139TOO=mCONFIG_RTL8129=mCONFIG_PPP=mCONFIG_PPP_ASYNC=mCONFIG_PPP_SYNC_TTY=mCONFIG_PPP_DEFLATE=mCONFIG_PPP_BSDCOMP=mCONFIG_PPPOE=mCONFIG_ISDN=mCONFIG_ISDN_DRV_HISAX=mCONFIG_PRINTER=mCONFIG_RTC=mCONFIG_ISO9660_FS=mCONFIG_NLS_CODEPAGE_437=mCONFIG_NLS_CODEPAGE_850=mCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_15=mCONFIG_NLS_UTF8=m
That's all so far. Need more? Just ask.
Signature · 6 lines
10.+11.03.2001 - 3. Chemnitzer LinuxTag <http://www.tu-chemnitz.de/linux/tag>
<<<<<<<<<<<< come and join the fun >>>>>>>>>>>>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/Hi,
Quoted 9 lines · Ingo Oeser
Hi Keith,
hi Karsten,
hi linux-kernel,the current modutils (2.4.1) cannot read the
__module_pci_device_tableof akernel/drivers/isdn/hisax/hisax.omodule of linux 2.4.0 (vanilla).What's wrong with it?
Nothing. Only the HFC-PCI part in hisax has such a table yet, all other card drivers in hisax don't have one at the moment.
Signature · 7 lines
Karsten Keil SuSE Labs ISDN development - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/
Hi Karsten,
Quoted 8 lines · Karsten Keil
Quoted 5 lines
the current modutils (2.4.1) cannot read the
__module_pci_device_tableof akernel/drivers/isdn/hisax/hisax.omodule of linux 2.4.0 (vanilla).What's wrong with it?
Nothing. Only the HFC-PCI part in hisax has such a table yet, all other card drivers in hisax don't have one at the moment.
To quote drivers/isdn/hisax/config.c:1710-1713 static struct pci_device_id hisax_pci_tbl[] __initdata = { #ifdef CONFIG_HISAX_FRTIZPCI
{PCI_VENDOR_ID_AVM, PCI_DEVICE_ID_AVM_FRITZ, PCI_ANY_ID, PCI_ANY_ID},
#endif
To quote my .config:CONFIG_ISDN_DRV_HISAX=mCONFIG_HISAX_FRITZPCI=y
So the bug is indeed in the driver and is a speling mistake Patch is:
drivers/isdn/hisax/config.c renamed from drivers/isdn/hisax/config.c.orig +2 -2
@@ -1708,8 +1708,8 @@ }static struct pci_device_id hisax_pci_tbl[]__initdata = { -#ifdef CONFIG_HISAX_FRTIZPCI - {PCI_VENDOR_ID_AVM ,PCI_DEVICE_ID_AVM_FRITZ ,PCI_ANY_ID ,PCI_ANY_ID }, +#ifdef CONFIG_HISAX_FRITZPCI + {PCI_VENDOR_ID_AVM ,PCI_DEVICE_ID_AVM_FRITZ ,PCI_ANY_ID ,PCI_ANY_ID }, #endif #ifdef CONFIG_HISAX_DIEHLDIVA {PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA20, PCI_ANY_ID, PCI_ANY_ID},
Please apply.
Regards
Ingo Oeser
Signature · 6 lines
10.+11.03.2001 - 3. Chemnitzer LinuxTag <http://www.tu-chemnitz.de/linux/tag>
<<<<<<<<<<<< come and join the fun >>>>>>>>>>>>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/Quoted 17 lines · Ingo Oeser
To quote drivers/isdn/hisax/config.c:1710-1713 static struct
pci_device_idhisax_pci_tbl[]__initdata= { #ifdefCONFIG_HISAX_FRTIZPCI
{PCI_VENDOR_ID_AVM,PCI_DEVICE_ID_AVM_FRITZ,PCI_ANY_ID,PCI_ANY_ID},
#endifTo quote my .config:
CONFIG_ISDN_DRV_HISAX=mCONFIG_HISAX_FRITZPCI=ySo the bug is indeed in the driver and is a speling mistake Patch is:
drivers/isdn/hisax/config.c line 1715
Quoted 10 lines
drivers/isdn/hisax/config.c renamed from drivers/isdn/hisax/config.c.orig +2
-2@@ -1708,8 +1708,8 @@ }static struct pci_device_id hisax_pci_tbl[]__initdata = { -#ifdef CONFIG_HISAX_FRTIZPCI - {PCI_VENDOR_ID_AVM ,PCI_DEVICE_ID_AVM_FRITZ ,PCI_ANY_ID ,PCI_ANY_ID }, +#ifdef CONFIG_HISAX_FRITZPCI + {PCI_VENDOR_ID_AVM ,PCI_DEVICE_ID_AVM_FRITZ ,PCI_ANY_ID ,PCI_ANY_ID }, #endif #ifdef CONFIG_HISAX_DIEHLDIVA {PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA20, PCI_ANY_ID, PCI_ANY_ID},
Close, but not quite. (Try compiling after your patch :)
Correct patch:
drivers/isdn/hisax/config.c +2 -2
@@ -1708,8 +1708,8 @@ }static struct pci_device_id hisax_pci_tbl[]__initdata = { -#ifdef CONFIG_HISAX_FRTIZPCI - {PCI_VENDOR_ID_AVM ,PCI_DEVICE_ID_AVM_FRITZ ,PCI_ANY_ID ,PCI_ANY_ID }, +#ifdef CONFIG_HISAX_FRITZPCI + {PCI_VENDOR_ID_AVM ,PCI_DEVICE_ID_AVM_A1 ,PCI_ANY_ID ,PCI_ANY_ID }, #endif #ifdef CONFIG_HISAX_DIEHLDIVA {PCI_VENDOR_ID_EICON, PCI_DEVICE_ID_EICON_DIVA20, PCI_ANY_ID, PCI_ANY_ID},
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/