2.5.69-mm5: pccard oops while booting: resolved
Subsystems (4)
Andrew,
I was having the following Oops when booting 2.5.69-mm5:
Unable to handle kernel paging request at virtual address febf0000 printing eip: c0192498 *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c0192498>] Not tainted VLI EFLAGS: 00010286
EIP is at pci_bus_match+0x18/0xb0
eax: 00000000 ebx: c13c1000 ecx: febf0000 edx: 00000000
esi: c13c104c edi: ffffffed ebp: cff3944c esp: cfde7ed0
ds: 007b es: 007b ss: 0068
Process pccardd (pid: 10, threadinfo=cfde6000 task=c1390060)
Stack: cff46390 c01d044f c13c104c cff46390 cff463c0 c13c104c c03207dc
c01d04ef
c13c104c cff46390 c13c104c c0320780 c13c1084 c01d06a4 c13c104c
c02c35e3
c03270a0 c13c104c 00000000 c13c1084 c01cf874 c13c104c cffc3a40
c13c1000
Call Trace:
[<c01d044f>] bus_match+0x2f/0x80
[<c01d04ef>] device_attach+0x4f/0x90
[<c01d06a4>] bus_add_device+0x64/0xb0
[<c01cf874>] device_add+0xd4/0x110
[<c018eb5e>] pci_bus_add_devices+0xae/0xe0
[<c020339b>] cb_alloc+0xab/0xf0
[<c02001d9>] socket_insert+0x69/0x80
[<c01ff78a>] get_socket_status+0x1a/0x20
[<c020041d>] pccardd+0x13d/0x1f0
[<c0115e90>] default_wake_function+0x0/0x20
[<c0109272>] ret_from_fork+0x6/0x14
[<c0115e90>] default_wake_function+0x0/0x20
[<c02002e0>] pccardd+0x0/0x1f0
[<c010722d>] kernel_thread_helper+0x5/0x18
Code: 83 fa 06 7e f1 31 c0 c3 b8 e0 06 32 c0 c3 90 8d 74 26 00 53 8b 4424 0c 8b 5c 24 08
83 e8 28 8b 48 0c 83 eb 4c 31 c0 85 c9 74 30 <8b> 11 85 d2 74 7a 89 f6 83 fa ff 74 2b 0f b
7 43 24 39 c2 74 23
This oops made me unable to use my 3Com CardBus NIC.
I've been able to pinpoint the culprit of this: it's the "make-KOBJ_NAME-match-BUS_ID_SIZE.patch" patch that it's causing the oops for me when booting 2.5.69.mm5.
Reverting this patch solves the oops for me.
I don't have the resources to investigate why this patch is causing the oops for me, but I'm willing to help you, if you need it :-)
Thanks!
Quoted 6 lines · Felipe Alfaro Solana
I've been able to pinpoint the culprit of this: it's the
"make-KOBJ_NAME-match-BUS_ID_SIZE.patch" patch that it's causing the oops for me when booting 2.5.69.mm5.Reverting this patch solves the oops for me.
I might have screwed that patch up.
This is the second half of it. When it crashed, did you have the below change in place as well?
Index: include/linux/device.h
===================================================================
RCS file: /home/scm/linux-2.5/include/linux/device.h,v retrieving revision 1.48
linux/device.h +1 -1
@@ -35,7 +35,7 @@#define DEVICE_NAME_SIZE 50#define DEVICE_NAME_HALF __stringify(20)/* Less than half to accommodate slop */ #define DEVICE_ID_SIZE 32 -#define BUS_ID_SIZE 20 +#define BUS_ID_SIZE KOBJ_NAME_LENenum {
-
Quoted 21 lines · Andrew Morton
Quoted 6 lines · Felipe Alfaro Solana
I've been able to pinpoint the culprit of this: it's the
"make-KOBJ_NAME-match-BUS_ID_SIZE.patch" patch that it's causing the oops for me when booting 2.5.69.mm5.Reverting this patch solves the oops for me.
I might have screwed that patch up.
This is the second half of it. When it crashed, did you have the below change in place as well?
Index:
include/linux/device.h
===================================================================
RCS file:/home/scm/linux-2.5/include/linux/device.h,vretrieving revision 1.48
diff -u -u -r1.48device.h
linux/device.h
Quoted 9 lines
linux/device.h +1
-2@@ -35,7 +35,7 @@#define DEVICE_NAME_SIZE 50#define DEVICE_NAME_HALF __stringify(20)/* Less than half to accommodate slop */ #define DEVICE_ID_SIZE 32 -#define BUS_ID_SIZE 20 +#define BUS_ID_SIZE KOBJ_NAME_LENenum { -
I applied the second half patch on top of 2.5.69-mm5 (the original 2.5.69-mm5 defined BUS_ID_SIZE as 20), but the "pccard" kernel task keeps crashing as before.
Anything else for me to try? :-)
Thanks!
Quoted 5 lines · Felipe Alfaro Solana
I applied the second half patch on top of 2.5.69-mm5 (the original 2.5.69-mm5 defined
BUS_ID_SIZEas 20), but the "pccard" kernel task keeps crashing as before.Anything else for me to try? :-)
I don't believe this problem is being caused by PCMCIA/Cardbus (until someone proves me wrong.)
This came up a few weeks ago, and it looked like the device models driver lists became corrupted somehow. Unfortunately it wasn't proven back then, and I haven't been able to reproduce this behaviour here.
We seem to be failing in pci_bus_match(), with pci_drv->id_table containing an invalid address. Could you apply this patch and see what happens? It'll be rather noisy during boot though.
The interesting one should be immediately prior to the oops.
drivers/pci/pci-driver.c +4 -1
@@ -6,6 +6,7 @@#include <linux/pci.h> #include <linux/module.h> #include <linux/init.h> +#include <linux/kallsyms.h> #include "pci.h" /*
@@ -183,7 +184,9 @@struct pci_dev * pci_dev =to_pci_dev (dev);struct pci_driver * pci_drv =to_pci_driver (drv);const struct pci_device_id * ids = pci_drv->id_table; - +printk ("pci_bus_match: pci_drv = %p" , pci_drv); +print_symbol (" (%s)" , pci_drv); +printk ("\n" );if (!ids)return 0 ;
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
Quoted 32 lines · Russell King
Quoted 5 lines · Felipe Alfaro Solana
I applied the second half patch on top of 2.5.69-mm5 (the original 2.5.69-mm5 defined
BUS_ID_SIZEas 20), but the "pccard" kernel task keeps crashing as before.Anything else for me to try? :-)
I don't believe this problem is being caused by PCMCIA/Cardbus (until someone proves me wrong.)
This came up a few weeks ago, and it looked like the device models driver lists became corrupted somehow. Unfortunately it wasn't proven back then, and I haven't been able to reproduce this behaviour here.
We seem to be failing in
pci_bus_match(), withpci_drv->id_tablecontaining an invalid address. Could you apply this patch and see what happens? It'll be rather noisy during boot though.The interesting one should be immediately prior to the oops.
drivers/pci/pci-driver.c +1
-0@@ -6,6 +6,7 @@#include <linux/pci.h> #include <linux/module.h> #include <linux/init.h> +#include <linux/kallsyms.h> #include "pci.h" /*
drivers/pci/pci-driver.c line 192
Quoted 10 lines
drivers/pci/pci-driver.c +3
-1@@ -183,7 +184,9 @@struct pci_dev * pci_dev =to_pci_dev (dev);struct pci_driver * pci_drv =to_pci_driver (drv);const struct pci_device_id * ids = pci_drv->id_table; - +printk ("pci_bus_match: pci_drv = %p" , pci_drv); +print_symbol (" (%s)" , pci_drv); +printk ("\n" );if (!ids)return 0 ;
OK, attached to this message:
"dmesg" contains the kernel messages when booting up 2.5.69-mm5 at tun level 1 with the patch applied.
"config" contains options used to configure the kernel. Mostly, the cardbus stuff is built-in, so no modules were loaded when booting into single-user mode.
Hope this helps!
#
# Automatically generated make config: don't edit
#CONFIG_X86=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#CONFIG_EXPERIMENTAL=y
#
# General setup
#CONFIG_SWAP=yCONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=yCONFIG_LOG_BUF_SHIFT=14CONFIG_FUTEX=y
#
# Loadable module support
#CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=yCONFIG_OBSOLETE_MODPARM=y
# CONFIG_MODVERSIONS is not setCONFIG_KMOD=y
#
# Processor type and features
#CONFIG_X86_PC=y
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not setCONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_SMP is not setCONFIG_PREEMPT=y
# CONFIG_X86_UP_APIC is not setCONFIG_X86_TSC=y
# CONFIG_X86_MCE is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not set
# CONFIG_EDD is not setCONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_025GB is not set
# CONFIG_05GB is not setCONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_MATH_EMULATION is not setCONFIG_MTRR=yCONFIG_HAVE_DEC_LOCK=y
# CONFIG_KEXEC is not set
#
# Power management options (ACPI, APM)
#CONFIG_PM=y
# CONFIG_SOFTWARE_SUSPEND is not set
#
# ACPI Support
#CONFIG_ACPI=yCONFIG_ACPI_BOOT=yCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_FAN=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_TOSHIBA is not set
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_BUS=yCONFIG_ACPI_INTERPRETER=yCONFIG_ACPI_EC=yCONFIG_ACPI_POWER=yCONFIG_ACPI_PCI=yCONFIG_ACPI_SYSTEM=y
# CONFIG_APM is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=y
# CONFIG_PCI_LEGACY_PROC is not setCONFIG_PCI_NAMES=y
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not setCONFIG_HOTPLUG=y
#
# PCMCIA/CardBus support
#CONFIG_PCMCIA=yCONFIG_CARDBUS=y
# CONFIG_I82092 is not set
# CONFIG_I82365 is not set
# CONFIG_TCIC is not set
#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set
#
# Executable file formats
#CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
# CONFIG_BINFMT_AOUT is not setCONFIG_BINFMT_ELF=yCONFIG_BINFMT_MISC=m
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
# CONFIG_PNP is not set
#
# Block devices
#CONFIG_BLK_DEV_FD=m
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_NBD=m
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_LBD is not set
#
# ATA/ATAPI/MFM/RLL device support
#CONFIG_IDE=y
#
# IDE, ATA and ATAPI Block devices
#CONFIG_BLK_DEV_IDE=y
#
# Please see Documentation/ide.txt for help/info on IDE drives #
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set CONFIG_BLK_DEV_IDEDISK=yCONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
# CONFIG_BLK_DEV_IDECS is not set CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_IDE_TASK_IOCTL is not set
#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not setCONFIG_BLK_DEV_IDEPCI=y
# CONFIG_BLK_DEV_GENERIC is not set
# CONFIG_IDEPCI_SHARE_IRQ is not setCONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDE_TCQ is not set
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not setCONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not setCONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not setCONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not setCONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_RZ1000 is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not setCONFIG_IDEDMA_AUTO=y
# CONFIG_IDEDMA_IVB is not setCONFIG_BLK_DEV_IDE_MODES=y
#
# SCSI device support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
#
# IEEE 1394 (FireWire) support (EXPERIMENTAL)
#
# CONFIG_IEEE1394 is not set
#
# I2O device support
#
# CONFIG_I2O is not set
#
# Networking support
#CONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_MMAP=y
# CONFIG_NETLINK_DEV is not setCONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not setCONFIG_UNIX=y
# CONFIG_NET_KEY is not setCONFIG_INET=yCONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not set
# CONFIG_INET_ECN is not set
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=mCONFIG_IP_NF_FTP=mCONFIG_IP_NF_IRC=mCONFIG_IP_NF_TFTP=mCONFIG_IP_NF_AMANDA=m
# CONFIG_IP_NF_QUEUE is not setCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_LIMIT=mCONFIG_IP_NF_MATCH_MAC=mCONFIG_IP_NF_MATCH_PKTTYPE=mCONFIG_IP_NF_MATCH_MARK=mCONFIG_IP_NF_MATCH_MULTIPORT=mCONFIG_IP_NF_MATCH_TOS=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_DSCP=m
# CONFIG_IP_NF_MATCH_AH_ESP is not setCONFIG_IP_NF_MATCH_LENGTH=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_MATCH_TCPMSS=mCONFIG_IP_NF_MATCH_HELPER=mCONFIG_IP_NF_MATCH_STATE=mCONFIG_IP_NF_MATCH_CONNTRACK=mCONFIG_IP_NF_MATCH_UNCLEAN=mCONFIG_IP_NF_MATCH_OWNER=mCONFIG_IP_NF_FILTER=m
# CONFIG_IP_NF_TARGET_REJECT is not set
# CONFIG_IP_NF_TARGET_MIRROR is not set
# CONFIG_IP_NF_NAT is not set
# CONFIG_IP_NF_MANGLE is not set
# CONFIG_IP_NF_TARGET_LOG is not set
# CONFIG_IP_NF_TARGET_ULOG is not set
# CONFIG_IP_NF_TARGET_TCPMSS is not set
# CONFIG_IP_NF_ARPTABLES is not set
# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
# CONFIG_IP_NF_COMPAT_IPFWADM is not set
# CONFIG_IPV6 is not set
# CONFIG_XFRM_USER is not set
#
# SCTP Configuration (EXPERIMENTAL)
#CONFIG_IPV6_SCTP__=y
# CONFIG_IP_SCTP is not set
# CONFIG_ATM is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_LLC is not set
# CONFIG_DECNET is not set
# CONFIG_BRIDGE is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
# CONFIG_NET_FASTROUTE is not set
# CONFIG_NET_HW_FLOWCONTROL is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not setCONFIG_NETDEVICES=y
#
# ARCnet devices
#
# CONFIG_ARCNET is not set
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not setCONFIG_TUN=m
# CONFIG_ETHERTAP is not set
#
# Ethernet (10 or 100Mbit)
#CONFIG_NET_ETHERNET=y
# CONFIG_MII is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not setCONFIG_NET_VENDOR_3COM=yCONFIG_VORTEX=m
# CONFIG_TYPHOON is not set
#
# Tulip family network device support
#
# CONFIG_NET_TULIP is not set
# CONFIG_HP100 is not set
# CONFIG_NET_PCI is not set
#
# Ethernet (1000 Mbit)
#
# CONFIG_ACENIC is not set
# CONFIG_DL2K is not set
# CONFIG_E1000 is not set
# CONFIG_NS83820 is not set
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set
# CONFIG_R8169 is not set
# CONFIG_SK98LIN is not set
# CONFIG_TIGON3 is not set
#
# Ethernet (10000 Mbit)
#
# CONFIG_IXGB is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set
#
# Token Ring devices (depends on LLC=y)
#
# CONFIG_RCPCI is not set
# CONFIG_SHAPER is not set
#
# Wan interfaces
#
# CONFIG_WAN is not set
#
# PCMCIA network device support
#
# CONFIG_NET_PCMCIA is not set
#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set
#
# IrDA (infrared) support
#
# CONFIG_IRDA is not set
#
# ISDN subsystem
#
# CONFIG_ISDN_BOOL is not set
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not setCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
#CONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256
#
# I2C support
#
# CONFIG_I2C is not set
#
# I2C Hardware Sensors Mainboard support
#
#
# I2C Hardware Sensors Chip support
#
# CONFIG_I2C_SENSOR is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not setCONFIG_RTC=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not setCONFIG_AGP=y
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD_8151 is not setCONFIG_AGP_INTEL=y
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_DRM is not set
#
# PCMCIA character devices
#
# CONFIG_SYNCLINK_CS is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
#
# File systems
#CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not setCONFIG_AUTOFS4_FS=m
#
# CD-ROM/DVD Filesystems
#CONFIG_ISO9660_FS=mCONFIG_JOLIET=yCONFIG_ZISOFS=yCONFIG_ZISOFS_FS=mCONFIG_UDF_FS=m
#
# DOS/FAT/NT Filesystems
#CONFIG_FAT_FS=m
# CONFIG_MSDOS_FS is not setCONFIG_VFAT_FS=m
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_DEVFS_FS is not setCONFIG_DEVPTS_FS=yCONFIG_TMPFS=yCONFIG_RAMFS=y
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Network File Systems
#CONFIG_NFS_FS=mCONFIG_NFS_V3=y
# CONFIG_NFS_V4 is not setCONFIG_NFSD=mCONFIG_NFSD_V3=y
# CONFIG_NFSD_V4 is not setCONFIG_NFSD_TCP=yCONFIG_LOCKD=mCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=mCONFIG_SUNRPC=m
# CONFIG_SUNRPC_GSS is not setCONFIG_SMB_FS=mCONFIG_SMB_NLS_DEFAULT=yCONFIG_SMB_NLS_REMOTE="cp437"CONFIG_CIFS=m
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_INTERMEZZO_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=yCONFIG_SMB_NLS=yCONFIG_NLS=y
#
# Native Language Support
#CONFIG_NLS_DEFAULT="utf8"CONFIG_NLS_CODEPAGE_437=m
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not setCONFIG_NLS_CODEPAGE_850=m
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not setCONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not setCONFIG_NLS_ISO8859_15=m
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not setCONFIG_NLS_UTF8=m
#
# Graphics support
#
# CONFIG_FB is not setCONFIG_VIDEO_SELECT=y
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=y
#
# Sound
#CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#CONFIG_SND=y
# CONFIG_SND_SEQUENCER is not setCONFIG_SND_OSSEMUL=yCONFIG_SND_MIXER_OSS=yCONFIG_SND_PCM_OSS=yCONFIG_SND_RTCTIMER=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not setCONFIG_SND_YMFPCI=y
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
#
# ALSA USB devices
#
# CONFIG_SND_USB_AUDIO is not set
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
#
# USB support
#CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
#
# Miscellaneous USB options
#CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
#
# USB Host Controller Drivers
#
# CONFIG_USB_EHCI_HCD is not set
# CONFIG_USB_OHCI_HCD is not setCONFIG_USB_UHCI_HCD=y
#
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not setCONFIG_USB_PRINTER=m
#
# SCSI support is needed for USB Storage
#
#
# USB Human Interface Devices (HID)
#CONFIG_USB_HID=yCONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not setCONFIG_USB_HIDDEV=y
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_XPAD is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not setCONFIG_USB_SCANNER=m
#
# USB Multimedia devices
#
# CONFIG_USB_DABUSB is not set
#
# Video4Linux support is needed for USB Multimedia device support #
#
# USB Network adaptors
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
#
# USB port drivers
#
#
# USB Serial Converter support
#CONFIG_USB_SERIAL=mCONFIG_USB_SERIAL_GENERIC=y
# CONFIG_USB_SERIAL_BELKIN is not set
# CONFIG_USB_SERIAL_WHITEHEAT is not set
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
# CONFIG_USB_SERIAL_EMPEG is not set
# CONFIG_USB_SERIAL_FTDI_SIO is not set
# CONFIG_USB_SERIAL_VISOR is not setCONFIG_USB_SERIAL_IPAQ=m
# CONFIG_USB_SERIAL_IR is not set
# CONFIG_USB_SERIAL_EDGEPORT is not set
# CONFIG_USB_SERIAL_EDGEPORT_TI is not set
# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set
# CONFIG_USB_SERIAL_KEYSPAN is not set
# CONFIG_USB_SERIAL_KLSI is not set
# CONFIG_USB_SERIAL_KOBIL_SCT is not set
# CONFIG_USB_SERIAL_MCT_U232 is not set
# CONFIG_USB_SERIAL_PL2303 is not set
# CONFIG_USB_SERIAL_SAFE is not set
# CONFIG_USB_SERIAL_CYBERJACK is not set
# CONFIG_USB_SERIAL_XIRCOM is not set
# CONFIG_USB_SERIAL_OMNINET is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_TIGL is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_BRLVGER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_GADGET is not set
#
# Bluetooth support
#
# CONFIG_BT is not set
#
# Profiling support
#
# CONFIG_PROFILING is not set
#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not setCONFIG_KALLSYMS=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not setCONFIG_DEBUG_INFO=y
# CONFIG_FRAME_POINTER is not set
#
# Security options
#
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
# CONFIG_CRYPTO is not set
#
# Library routines
#
# CONFIG_CRC32 is not setCONFIG_ZLIB_INFLATE=mCONFIG_X86_BIOS_REBOOT=y
Quoted 10 lines · Felipe Alfaro Solana
OK, attached to this message:
"dmesg" contains the kernel messages when booting up 2.5.69-mm5 at tun level 1 with the patch applied.
"config" contains options used to configure the kernel. Mostly, the cardbus stuff is built-in, so no modules were loaded when booting into single-user mode.
Hope this helps!
Indeed it does. This patch should solve the problem.
drivers/char/agp/intel-agp.c +1 -1
@@ -1635,7 +1635,7 @@MODULE_DEVICE_TABLE (pci, agp_intel_pci_table); -static struct __initdata pci_driver agp_intel_pci_driver = { +static struct pci_driver agp_intel_pci_driver = { .name ="agpgart-intel" , .id_table = agp_intel_pci_table, .probe = agp_intel_probe,
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
drivers/char/agp/intel-agp.c line 1641
Quoted 13 lines · Russell King
Indeed it does. This patch should solve the problem.
drivers/char/agp/intel-agp.c +1
-1@@ -1635,7 +1635,7 @@MODULE_DEVICE_TABLE (pci, agp_intel_pci_table); -static struct __initdata pci_driver agp_intel_pci_driver = { +static struct pci_driver agp_intel_pci_driver = { .name ="agpgart-intel" , .id_table = agp_intel_pci_table, .probe = agp_intel_probe,
Yup. Same stupid bug in all the other AGP drivers too. I'll fix them up and push that along in a few hours.
Dave
Signature · 2 lines
| Dave Jones. http://www.codemonkey.org.uk | SuSE Labs
Quoted 18 lines · Russell King
Quoted 10 lines · Felipe Alfaro Solana
OK, attached to this message:
"dmesg" contains the kernel messages when booting up 2.5.69-mm5 at tun level 1 with the patch applied.
"config" contains options used to configure the kernel. Mostly, the cardbus stuff is built-in, so no modules were loaded when booting into single-user mode.
Hope this helps!
Indeed it does. This patch should solve the problem.
drivers/char/agp/intel-agp.c line 1641
Quoted 8 lines
drivers/char/agp/intel-agp.c +1
-1@@ -1635,7 +1635,7 @@MODULE_DEVICE_TABLE (pci, agp_intel_pci_table); -static struct __initdata pci_driver agp_intel_pci_driver = { +static struct pci_driver agp_intel_pci_driver = { .name ="agpgart-intel" , .id_table = agp_intel_pci_table, .probe = agp_intel_probe,
I've applied this patch, but "pccard" keeps oopsing. The test kernel is a 2.5.69-mm5 with the "i8259-shutdown.patch" reverted, plus the above patch and your previous "verbose" patch. Attached to this message is the new "dmesg" from this patched kernel.
As I told Andrew, reverting "make-KOBJ_NAME-match-BUS_ID_SIZE.patch" solves the oops.
Quoted 8 lines · Felipe Alfaro Solana
The test kernel is
a 2.5.69-mm5 with the "i8259-shutdown.patch" reverted, plus the above patch and your previous "verbose" patch. Attached to this message is the new "dmesg" from this patched kernel.As I told Andrew, reverting "make-KOBJ_NAME-match-BUS_ID_SIZE.patch" solves the oops.
The weird thing is that this patch really doesn't do anything apart from increasing KOBJ_NAME_LEN from 16 to 20.
From: Ben Collins <[email protected]>
This was causing me all sorts of problems with linux1394's 16-18 byte long bus_id lengths. The sysfs names were all broken.
This not only makes KOBJ_NAME_LEN match BUS_ID_SIZE, but fixes the strncpy's in drivers/base/ so that it can't happen again (at least the strings will be null terminated).
drivers/base/bus.c | 2 ++ drivers/base/class.c | 2 ++ drivers/base/core.c | 1 + include/linux/device.h | 2 +- include/linux/kobject.h | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-)
drivers/base/bus.c renamed from drivers/base/bus.c~make-KOBJ_NAME-match-BUS_ID_SIZE +2 -0
@@ -432,6 +432,7 @@ int bus_add_driver(struct device_driverpr_debug ("bus %s: add driver %s\n" ,bus->name,drv->name);strncpy (drv->kobj.name,drv->name,KOBJ_NAME_LEN ); + drv->kobj.name[KOBJ_NAME_LEN -1 ] ='\0' ; drv->kobj.kset = &bus->drivers;if ((error =kobject_register (&drv->kobj))) {
@@ -541,6 +542,7 @@ struct bus_type * find_bus(char * name)int bus_register (struct bus_type * bus) {strncpy (bus->subsys.kset.kobj.name,bus->name,KOBJ_NAME_LEN ); + bus->subsys.kset.kobj.name[KOBJ_NAME_LEN -1 ] ='\0' ;subsys_set_kset (bus,bus_subsys);subsystem_register (&bus->subsys);
drivers/base/class.c renamed from drivers/base/class.c~make-KOBJ_NAME-match-BUS_ID_SIZE +2 -0
@@ -89,6 +89,7 @@ int class_register(struct class * cls)INIT_LIST_HEAD (&cls->interfaces);strncpy (cls->subsys.kset.kobj.name,cls->name,KOBJ_NAME_LEN ); + cls->subsys.kset.kobj.name[KOBJ_NAME_LEN -1 ] ='\0' ;subsys_set_kset (cls,class_subsys);subsystem_register (&cls->subsys);
@@ -259,6 +260,7 @@ int class_device_add(struct class_device/* first, register with generic layer. */ strncpy (class_dev->kobj.name, class_dev->class_id,KOBJ_NAME_LEN ); + class_dev->kobj.name[KOBJ_NAME_LEN -1 ] ='\0' ;kobj_set_kset_s (class_dev, class_obj_subsys);if (parent) class_dev->kobj.parent = &parent->subsys.kset.kobj;
drivers/base/core.c renamed from drivers/base/core.c~make-KOBJ_NAME-match-BUS_ID_SIZE +1 -0
@@ -214,6 +214,7 @@ int device_add(struct device *dev)/* first, register with generic layer. */ strncpy (dev->kobj.name,dev->bus_id,KOBJ_NAME_LEN ); + dev->kobj.name[KOBJ_NAME_LEN -1 ] ='\0' ;kobj_set_kset_s (dev,devices_subsys);if (parent) dev->kobj.parent = &parent->kobj;
include/linux/kobject.h renamed from include/linux/kobject.h~make-KOBJ_NAME-match-BUS_ID_SIZE +1 -1
@@ -12,7 +12,7 @@#include <linux/rwsem.h> #include <asm/atomic.h> -#define KOBJ_NAME_LEN 16 +#define KOBJ_NAME_LEN 20struct kobject {char name[KOBJ_NAME_LEN ];
include/linux/device.h renamed from include/linux/device.h~make-KOBJ_NAME-match-BUS_ID_SIZE +1 -1
@@ -35,7 +35,7 @@#define DEVICE_NAME_SIZE 50#define DEVICE_NAME_HALF __stringify(20)/* Less than half to accommodate slop */ #define DEVICE_ID_SIZE 32 -#define BUS_ID_SIZE 20 +#define BUS_ID_SIZE KOBJ_NAME_LENenum {
_
Quoted 7 lines · Andrew Morton
Quoted 6 lines · Felipe Alfaro Solana
The test kernel is
a 2.5.69-mm5 with the "i8259-shutdown.patch" reverted, plus the above patch and your previous "verbose" patch. Attached to this message is the new "dmesg" from this patched kernel.
Quoted 5 lines
Quoted 2 lines
As I told Andrew, reverting "make-KOBJ_NAME-match-BUS_ID_SIZE.patch" solves the oops.
The weird thing is that this patch really doesn't do anything apart from increasing
KOBJ_NAME_LENfrom 16 to 20.
OK, this is what I guessed by playing with 2.5.69-mm6:
1. Simply by changing KOBJ_NAME_LEN from 20 to 16 fixes the problem. This leads me to think there are some parts of the kernel (a driver, to be more exact) that are corrupting memory or doing something really nasty that is affecting PCI ID's tables and pci_bus_match() function.
2. Disabling or enabling preemptible kernel does not help.
3. Now, changing KOBJ_NAME_LEN back to 20, and then disabling support for the ALSA Yamaha PCI driver (YMFPCI) fixes the problem. I have tried disabling other drivers, like USB-UHCI, AGPGART, but it doesn't help. However, disabling YMFPCI solves the problem. So I guess, we've got a problem at alsa_card_ymfpci_init() function. Note that the YMFPCI was built-in into the kernel, and not as a module. However, building YMFPCI as a module still produces an oops. I'll post more information when I investigate a little more about this.
Any ideas on what's could be going on here? It's driving me nutts!
Thanks!
Re: 2.5.69-mm6: pccard oops while booting
Quoted 32 lines · Felipe Alfaro Solana
Quoted 7 lines · Andrew Morton
Quoted 6 lines · Felipe Alfaro Solana
The test kernel is
a 2.5.69-mm5 with the "i8259-shutdown.patch" reverted, plus the above patch and your previous "verbose" patch. Attached to this message is the new "dmesg" from this patched kernel.Quoted 5 lines
Quoted 2 lines
As I told Andrew, reverting "make-KOBJ_NAME-match-BUS_ID_SIZE.patch" solves the oops.
The weird thing is that this patch really doesn't do anything apart from increasing
KOBJ_NAME_LENfrom 16 to 20.OK, this is what I guessed by playing with 2.5.69-mm6:
1. Simply by changing
KOBJ_NAME_LENfrom 20 to 16 fixes the problem. This leads me to think there are some parts of the kernel (a driver, to be more exact) that are corrupting memory or doing something really nasty that is affecting PCI ID's tables andpci_bus_match()function.2. Disabling or enabling preemptible kernel does not help.
3. Now, changing
KOBJ_NAME_LENback to 20, and then disabling support for the ALSA Yamaha PCI driver (YMFPCI) fixes the problem. I have tried disabling other drivers, like USB-UHCI, AGPGART, but it doesn't help. However, disabling YMFPCI solves the problem. So I guess, we've got a problem atalsa_card_ymfpci_init()function. Note that the YMFPCI was built-in into the kernel, and not as a module. However, building YMFPCI as a module still produces an oops. I'll post more information when I investigate a little more about this.
Quoted 3 lines
Any ideas on what's could be going on here? It's driving me nutts!
Thanks!
OK, this is the oops caused when trying to modprobe snd-ymfpci on 2.5.69-mm6:
Linux version 2.5.69-mm6 ([email protected]) (gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-4)) #25 Fri May 16 15:04:26 CEST 2003
Unable to handle kernel paging request at virtual address 50464d59 printing eip: c01d07bf *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c01d07bf>] Not tainted VLI EFLAGS: 00010202
EIP is at driver_attach+0x3f/0x60
eax: 50464d59 ebx: 50464d59 ecx: 59004943 edx: d08a821e
esi: cfdec780 edi: d08aaa48 ebp: c030d100 esp: cfa0bf40
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 152, threadinfo=cfa0a000 task=cfde2690)
Stack: cff3884c d08aaa48 c030d14c 00000000 d08aaa76 c01d0a98 d08aaa48
00000009
c02e1830 00000000 c02e1818 cfa0a000 c01d0f1f d08aaa48 00000015
00000017
d0894c4c cfdec8a0 c0192527 d08aaa48 d087f019 d08aaa20 c02e1830
d08b1200
Call Trace:
[<d08aaa48>] driver+0x28/0xa0 [snd_ymfpci]
[<d08aaa76>] driver+0x56/0xa0 [snd_ymfpci]
[<c01d0a98>] bus_add_driver+0xa8/0xc0
[<d08aaa48>] driver+0x28/0xa0 [snd_ymfpci]
[<c01d0f1f>] driver_register+0x2f/0x40
[<d08aaa48>] driver+0x28/0xa0 [snd_ymfpci]
[<c0192527>] pci_register_driver+0x47/0x60
[<d08aaa48>] driver+0x28/0xa0 [snd_ymfpci]
[<d087f019>] +0x19/0x5b [snd_ymfpci]
[<d08aaa20>] driver+0x0/0xa0 [snd_ymfpci]
[<d08b1200>] +0x0/0xe0 [snd_ymfpci]
[<c012eb2c>] sys_init_module+0x12c/0x240
[<d08b1200>] +0x0/0xe0 [snd_ymfpci]
[<c0109349>] sysenter_past_esp+0x52/0x71
Code: db 74 32 8b 9a a8 00 00 00 8b 03 0f 18 00 90 8d b2 a8 00 00 00 39f3 74 1c 8d 76 00 8d 53 f8 8b 8a a4 00 00 00 85 c9 74 13 89 c3 <8b> 00 0f 18 00 90 39 f3 75 e7 83 c4 08 5b 5e 5f c3 89 7c 24 04
Re: 2.5.69-mm6: pccard oops while booting
Quoted 2 lines · Felipe Alfaro Solana
Unable to handle kernel paging request at virtual address 50464d59
hm, that address is "YMFP". Please try generating the oops
again with the below patch applied:
./sound/pci/ymfpci/ymfpci.c | 8 ++++---- ./sound/pci/ymfpci/ymfpci_main.c | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-)
./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11 -11
@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1YMFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;
@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2YMFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;
@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4YMFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;
@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6YMFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;
@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8YMFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9YMFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)
@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AYMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BYMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +4 -4
@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }
@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }
@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;
@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;
_
Re: 2.5.69-mm6: pccard oops while booting
Quoted 142 lines · Andrew Morton
Quoted 2 lines · Felipe Alfaro Solana
Unable to handle kernel paging request at virtual address 50464d59hm, that address is "YMFP". Please try generating the oops
again with the below patch applied:./sound/pci/ymfpci/ymfpci.c | 8 ++++---- ./sound/pci/ymfpci/ymfpci_main.c | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-)diff -puN
./sound/pci/ymfpci/ymfpci_main.c~a./sound/pci/ymfpci/ymfpci_main.c./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11
-11@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1YMFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2YMFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4YMFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6YMFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8YMFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9YMFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AYMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BYMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;diff -puN
./sound/pci/ymfpci/ymfpci.c~a./sound/pci/ymfpci/ymfpci.c./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +3
-3@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;
./sound/pci/ymfpci/ymfpci.c static int __devinit snd_card_ymfpci_pro · line 166
Quoted 8 lines
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +1
-1@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;
I've applied the patch above to a pristine 2.5.69-mm6. Curiously, if I build snd-ymfpci as a module, I can't reproduce the oops anymore. However, if I build snd-ymfpci into the kernel, I can *still* reproduce the oops.
Attached is the dmesg of a 2.5.69-mm6 plus the above patch with ymfpci integrated into the kernel.
Thanks!
Re: 2.5.69-mm6: pccard oops while booting
Quoted 159 lines · Felipe Alfaro Solana
Quoted 142 lines · Andrew Morton
Quoted 1 line · Felipe Alfaro Solana
Unable to handle kernel paging request at virtual address 50464d59hm, that address is "YMFP". Please try generating the oops
again with the below patch applied:
./sound/pci/ymfpci/ymfpci.c| 8 ++++----./sound/pci/ymfpci/ymfpci_main.c| 22 +++++++++++-----------2 files changed, 15 insertions(+), 15 deletions(-)diff -puN
./sound/pci/ymfpci/ymfpci_main.c~a./sound/pci/ymfpci/ymfpci_main.c./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11
-11@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1YMFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2YMFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4YMFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6YMFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8YMFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9YMFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AYMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BYMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;diff -puN
./sound/pci/ymfpci/ymfpci.c~a./sound/pci/ymfpci/ymfpci.c./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +3
-3@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;./sound/pci/ymfpci/ymfpci.c static int __devinit snd_card_ymfpci_pro · line 166
Quoted 8 lines
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +1
-1@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;I've applied the patch above to a pristine 2.5.69-mm6. Curiously, if I build snd-ymfpci as a module, I can't reproduce the oops anymore. However, if I build snd-ymfpci into the kernel, I can *still* reproduce the oops.
Quoted 6 lines
Attached is the dmesg of a 2.5.69-mm6 plus the above patch with ymfpci integrated into the kernel.
Thanks!
Unable to handle kernel paging request at virtual address 25007367
Unfortunately, now the address is gs\0%
This does not help that much. Could you please backout above patch, hand edit it so that each YMFPCI -> 1YMFPCI, YMFPCI -> 2YMFPCI etc. change looks instead like
YMFPCI -> 1MFPCI, YMFPCI -> 2MFPCI so that the string length and the first 3 bytes of the address stay constant and apply it again? That may give us better results.
Thanks,
Carl-Daniel
Signature · 1 line
http://www.hailfinger.org/
Re: 2.5.69-mm6: pccard oops while booting
Quoted 167 lines · Carl-Daniel Hailfinger
Quoted 159 lines · Felipe Alfaro Solana
Quoted 142 lines · Andrew Morton
Quoted 1 line · Felipe Alfaro Solana
Unable to handle kernel paging request at virtual address 50464d59hm, that address is "YMFP". Please try generating the oops
again with the below patch applied:
./sound/pci/ymfpci/ymfpci.c| 8 ++++----./sound/pci/ymfpci/ymfpci_main.c| 22 +++++++++++-----------2 files changed, 15 insertions(+), 15 deletions(-)diff -puN
./sound/pci/ymfpci/ymfpci_main.c~a./sound/pci/ymfpci/ymfpci_main.c./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11
-11@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1YMFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2YMFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4YMFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6YMFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8YMFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9YMFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AYMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BYMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;diff -puN
./sound/pci/ymfpci/ymfpci.c~a./sound/pci/ymfpci/ymfpci.c./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +3
-3@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EYMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;./sound/pci/ymfpci/ymfpci.c static int __devinit snd_card_ymfpci_pro · line 166
Quoted 8 lines
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +1
-1@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FYMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;I've applied the patch above to a pristine 2.5.69-mm6. Curiously, if I build snd-ymfpci as a module, I can't reproduce the oops anymore. However, if I build snd-ymfpci into the kernel, I can *still* reproduce the oops.
Quoted 6 lines
Attached is the dmesg of a 2.5.69-mm6 plus the above patch with ymfpci integrated into the kernel.
Thanks!
Unable to handle kernel paging request at virtual address 25007367
Quoted 7 lines
Unfortunately, now the address is gs\0%
This does not help that much. Could you please backout above patch, hand edit it so that each YMFPCI -> 1YMFPCI, YMFPCI -> 2YMFPCI etc. change looks instead like
YMFPCI -> 1MFPCI, YMFPCI -> 2MFPCI so that the string length and the first 3 bytes of the address stay constant and apply it again? That may give us better results.
This is getting tricky. How about this one?
Attached is "ymfpci2.patch" with your suggested changes, and "dmesg" with the new oops info.
Hope this helps. Thanks again!
./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11 -11
@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1MFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;
@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2MFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3MFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;
@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4MFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5MFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;
@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6MFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7MFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;
@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8MFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9MFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)
@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +4 -4
@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }
@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }
@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;
@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;
Re: 2.5.69-mm6: pccard oops while booting
Quoted 3 lines · Felipe Alfaro Solana
This is getting tricky. How about this one?
Attached is "ymfpci2.patch" with your suggested changes, and "dmesg" with the new oops info.
You need to reproduce the oops you get when you modprobe the module. The oops with this driver built in is different, and akpm's changes won't tell us which one causes the problem.
Instead of adding a character to each of those strings, could you remove the 'Y' character so the strings remain the same length as the original - that may cause the oops to reappear.
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
Re: 2.5.69-mm6: pccard oops while booting
Quoted 5 lines · Russell King
Quoted 3 lines · Felipe Alfaro Solana
This is getting tricky. How about this one?
Attached is "ymfpci2.patch" with your suggested changes, and "dmesg" with the new oops info.
Quoted 7 lines
You need to reproduce the oops you get when you modprobe the module. The oops with this driver built in is different, and akpm's changes won't tell us which one causes the problem.
Instead of adding a character to each of those strings, could you remove the 'Y' character so the strings remain the same length as the original - that may cause the oops to reappear.
Yeah! That's exactly what Carl proposed in a previous message. So, I did, but now I can't reproduce the oops with ymfpci compiled as a module. I can only reproduce the oops if ymfpci is built-into the kernel.
Wops! I'm lost. I'm tired and it's too late, so I'd better get some sleep and try to guess a little bit more tomorrow.
Thanks!
Re: 2.5.69-mm6: pccard oops while booting
In reply to Russell KingQuoted 10 lines · Russell King
Quoted 3 lines · Felipe Alfaro Solana
This is getting tricky. How about this one?
Attached is "ymfpci2.patch" with your suggested changes, and "dmesg" with the new oops info.You need to reproduce the oops you get when you modprobe the module. The oops with this driver built in is different, and akpm's changes won't tell us which one causes the problem.
True. Just a stab in the dark - leaving KOBJ_NAME_LEN == 20 and initializing the first four and last four bytes of the KOBJ_NAME_LEN sized buffer with a counter starting at 0 might also prove very interesting and could help resolve the Oops with the driver built in.
Motivation: Somehow, the disaster smells like somebody uses a hardcoded offset designed to work only if KOBJ_NAME_LEN == 16.
I would provide a patch, but I don't have the source handy right now due to disk space constraints.
Regards,
Carl-Daniel
Signature · 1 line
http://www.hailfinger.org/
Re: 2.5.69-mm6: pccard oops while booting: round 2
In reply to Carl-Daniel HailfingerI've been working on this a little this morning and these are the new conclusions I've drawn:
1. Definitively, the oops is being caused by the YMFPCI driver. I have built a mini-kernel by squashing the config to a minimum (disabled modules, preemptive, removed USB, IDE, AGP, Networking, CardBus, and nearly everything possible) and the kernel still faults.
2. Compiling the kernel with frame pointers causes a panic during boot instead of an oops. Thus, I've changed my config to use frame pointers. I don't know if this will make debugging a little harder or not, but I think it's interesting to use them as the call trace is a little different this time.
Attached to this message are the following files:
"ymfpci2.patch" which replaces the "YMPFCI" string with "1MFPCI", "2MFPCI" and so on. This patch should be applied against a pristine, clean 2.5.69-mm6 kernel tree.
"config" contains the configuration I used to build the kernel. Nearly everything has been left off: no swapping, no modules, no preemptive, no ACPI, no APM, no power management, no IDE, no USB, no AGP, no networking, etc. I made this to keep the number of additional drivers to a minimum and being able to concentrate on the faulting driver.
"oops" contains the kernel oops when booting 2.5.69-mm6 + ymfpci2.patch using the above config file.
Hope this can make things easier for you, guys, cause this thing is getting greater than me.
Thanks and have a nice weekend!
#
# Automatically generated make config: don't edit
#CONFIG_X86=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set
#
# General setup
#
# CONFIG_SWAP is not setCONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=yCONFIG_LOG_BUF_SHIFT=14
#
# Loadable module support
#
# CONFIG_MODULES is not setCONFIG_FUTEX=yCONFIG_EPOLL=y
#
# Processor type and features
#CONFIG_X86_PC=y
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not setCONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_X86_UP_APIC is not setCONFIG_X86_TSC=y
# CONFIG_X86_MCE is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not setCONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_025GB is not set
# CONFIG_05GB is not setCONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
#
# Power management options (ACPI, APM)
#
# CONFIG_PM is not set
#
# ACPI Support
#
# CONFIG_ACPI is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=y
# CONFIG_PCI_LEGACY_PROC is not set
# CONFIG_PCI_NAMES is not set
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
# CONFIG_HOTPLUG is not set
#
# Executable file formats
#CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
# CONFIG_BINFMT_AOUT is not setCONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
# CONFIG_PNP is not set
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_LBD is not set
#
# ATA/ATAPI/MFM/RLL device support
#
# CONFIG_IDE is not set
#
# SCSI device support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
#
# I2O device support
#
# CONFIG_I2O is not set
#
# Networking support
#
# CONFIG_NET is not set
#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set
#
# ISDN subsystem
#
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not setCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
#
# Non-8250 serial port support
#CONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256
#
# I2C support
#
# CONFIG_I2C is not set
#
# I2C Hardware Sensors Mainboard support
#
#
# I2C Hardware Sensors Chip support
#
# CONFIG_I2C_SENSOR is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# File systems
#CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
# CONFIG_FAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_DEVPTS_FS=y
# CONFIG_DEVPTS_FS_XATTR is not setCONFIG_TMPFS=yCONFIG_RAMFS=y
#
# Miscellaneous filesystems
#
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=y
#
# Graphics support
#
# CONFIG_FB is not set
# CONFIG_VIDEO_SELECT is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=y
#
# Sound
#CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#CONFIG_SND=y
# CONFIG_SND_SEQUENCER is not set
# CONFIG_SND_OSSEMUL is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not setCONFIG_SND_YMFPCI=y
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
#
# USB support
#
# CONFIG_USB is not set
#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not setCONFIG_KALLSYMS=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not setCONFIG_DEBUG_INFO=yCONFIG_FRAME_POINTER=y
#
# Security options
#
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
# CONFIG_CRYPTO is not set
#
# Library routines
#
# CONFIG_CRC32 is not setCONFIG_X86_BIOS_REBOOT=y
ds: 007b es: 007b ss: 0068
Process swapper (pid: 1, threadinfo=c12ea000 task=c12e9880)
Stack: cff5e470 cffedae0 00000021 c01e8600 c13d0000 cffedae0 00000021 fceec0cf
c01e8630 cff5e44c 00000000 c12ebf28 c0193932 c01e8600 cff5e470 cff5e470
c01e85e8 c12ebf44 c01939ba cff5e44c c01e85e8 cff5e454 c01e1f80 c01e85e8
Class Trace:
[<c0193932>] device_bind_driver+0x42/0x50
[<c01939ba>] bus_match+0x7a/0x80
[<c0193aad>] driver_attach+0x5d/0x70
[<c0193d56>] bus_add_driver+0xa6/0xc0
[<c01941b1>] driver_register+0x31/0x40
[<c01a74ca>] snd_ctl_register_ioctl+0x1a/0x70
[<c017be45>] pci_register_driver+0x45/0x60
[<c0214f45>] alsa_card_ymfpci_init+0x15/0x50
[<c020679b>] do_initcalls+0x2b/0xa0
[<c01231b2>] init_workqueues+0x12/0x30
[<c0105088>] init+0x28/0x150
[<c0105060>] init+0x0/0x150
[<c01073dd>] kernel_thread_helper+0x5/0x18
Code: ac aa 84 c0 75 fa 4b 83 c1 03 83 fb ff 75 ed 8b 45 ec 8b 55 e8 8b 7d 0c 89
44 24 08 89 54 24 04 89 3c 24 e8 d4 fe ff ff 8b 55 f0 <8b> 42 08 8d 48 6c ff 48
6c 78 68 8b 45 10 89 14 24 89 44 24 04
<0>Kernel panic: Attempted to kill init!./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11 -11
@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1MFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;
@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2MFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3MFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;
@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4MFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5MFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;
@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6MFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7MFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;
@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8MFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9MFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)
@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +4 -4
@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }
@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }
@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;
@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;
Re: 2.5.69-mm6: pccard oops while booting: round 2
Quoted 3 lines · Felipe Alfaro Solana
"oops" contains the kernel oops when booting 2.5.69-mm6 + ymfpci2.patch
using the above config file.
Bummer. Vital info is chopped off the top of the oops output.
Re: 2.5.69-mm6: pccard oops while booting: round 2
Quoted 1 line · Andrew Morton
Bummer. Vital info is chopped off the top of the oops output.
Well, I'm idiot. Please, disregard my previos mail. This contains the full oops, config and patch:
---
I've been working on this a little this morning and these are the new conclusions I've drawn:
1. Definitively, the oops is being caused by the YMFPCI driver. I have built a mini-kernel by squashing the config to a minimum (disabled modules, preemptive, removed USB, IDE, AGP, Networking, CardBus, and nearly everything possible) and the kernel still faults.
2. Compiling the kernel with frame pointers causes a panic during boot instead of an oops. Thus, I've changed my config to use frame pointers. I don't know if this will make debugging a little harder or not, but I think it's interesting to use them as the call trace is a little different this time.
Attached to this message are the following files:
"ymfpci2.patch" which replaces the "YMPFCI" string with "1MFPCI", "2MFPCI" and so on. This patch should be applied against a pristine, clean 2.5.69-mm6 kernel tree.
"config" contains the configuration I used to build the kernel. Nearly everything has been left off: no swapping, no modules, no preemptive, no ACPI, no APM, no power management, no IDE, no USB, no AGP, no networking, etc. I made this to keep the number of additional drivers to a minimum and being able to concentrate on the faulting driver.
"oops" contains the kernel oops when booting 2.5.69-mm6 + ymfpci2.patch using the above config file.
Hope this can make things easier for you, guys, cause this thing is getting greater than me.
---
#
# Automatically generated make config: don't edit
#CONFIG_X86=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set
#
# General setup
#
# CONFIG_SWAP is not setCONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=yCONFIG_LOG_BUF_SHIFT=14
#
# Loadable module support
#
# CONFIG_MODULES is not setCONFIG_FUTEX=yCONFIG_EPOLL=y
#
# Processor type and features
#CONFIG_X86_PC=y
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not setCONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_X86_UP_APIC is not setCONFIG_X86_TSC=y
# CONFIG_X86_MCE is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not setCONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_025GB is not set
# CONFIG_05GB is not setCONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
#
# Power management options (ACPI, APM)
#
# CONFIG_PM is not set
#
# ACPI Support
#
# CONFIG_ACPI is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=y
# CONFIG_PCI_LEGACY_PROC is not set
# CONFIG_PCI_NAMES is not set
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
# CONFIG_HOTPLUG is not set
#
# Executable file formats
#CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
# CONFIG_BINFMT_AOUT is not setCONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
# CONFIG_PNP is not set
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_LBD is not set
#
# ATA/ATAPI/MFM/RLL device support
#
# CONFIG_IDE is not set
#
# SCSI device support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
#
# I2O device support
#
# CONFIG_I2O is not set
#
# Networking support
#
# CONFIG_NET is not set
#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set
#
# ISDN subsystem
#
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not setCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
#
# Non-8250 serial port support
#CONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256
#
# I2C support
#
# CONFIG_I2C is not set
#
# I2C Hardware Sensors Mainboard support
#
#
# I2C Hardware Sensors Chip support
#
# CONFIG_I2C_SENSOR is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# File systems
#CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
# CONFIG_FAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_DEVPTS_FS=y
# CONFIG_DEVPTS_FS_XATTR is not setCONFIG_TMPFS=yCONFIG_RAMFS=y
#
# Miscellaneous filesystems
#
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=y
#
# Graphics support
#
# CONFIG_FB is not set
# CONFIG_VIDEO_SELECT is not set
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=y
#
# Sound
#CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#CONFIG_SND=y
# CONFIG_SND_SEQUENCER is not set
# CONFIG_SND_OSSEMUL is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not setCONFIG_SND_YMFPCI=y
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
#
# USB support
#
# CONFIG_USB is not set
#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not setCONFIG_KALLSYMS=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not setCONFIG_DEBUG_INFO=yCONFIG_FRAME_POINTER=y
#
# Security options
#
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
# CONFIG_CRYPTO is not set
#
# Library routines
#
# CONFIG_CRC32 is not setCONFIG_X86_BIOS_REBOOT=y
Unable to handle kernel paging request at virtual address fceec0d7 printing eip: c016954f *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c016954f>] Not tainted VLI EFLAGS: 00010246
EIP is at sys_create_link+0xcf/0x130
eax: cffedae0 ebx: ffffffff ecx: ffffffff edx: fceec0cf
esi: c01d128d edi: cff5e470 ebp: c12ebf10 esp: c12ebee4
ds: 007b es: 007b ss: 0068
Process swapper (pid: 1, threadinfo=c12ea000 task=c12e9880)
Stack: cff5e470 cffedae0 00000021 c01e8600 c13d0000 cffedae0 00000021 fceec0cf
c01e8630 cff5e44c 00000000 c12ebf28 c0193932 c01e8600 cff5e470 cff5e470
c01e85e8 c12ebf44 c01939ba cff5e44c c01e85e8 cff5e454 c01e1f80 c01e85e8
Call Trace:
[<c0193932>] device_bind_driver+0x42/0x50
[<c01939ba>] bus_match+0x7a/0x80
[<c0193aad>] driver_attach+0x5d/0x70
[<c0193d56>] bus_add_driver+0xa6/0xc0
[<c01941b1>] driver_register+0x31/0x40
[<c01a74ca>] snd_ctl_register_ioctl+0x1a/0x70
[<c017be45>] pci_register_driver+0x45/0x60
[<c0214f45>] alsa_card_ymfpci_init+0x15/0x50
[<c020679b>] do_initcalls+0x2b/0xa0
[<c01231b2>] init_workqueues+0x12/0x30
[<c0105088>] init+0x28/0x150
[<c0105060>] init+0x0/0x150
[<c01073dd>] kernel_thread_helper+0x5/0x18
Code: ac aa 84 c0 75 fa 4b 83 c1 03 83 fb ff 75 ed 8b 45 ec 8b 55 e8 8b 7d 0c 89
44 24 08 89 54 24 04 89 3c 24 e8 d4 fe ff ff 8b 55 f0 <8b> 42 08 8d 48 6c ff 48
6c 78 68 8b 45 10 89 14 24 89 44 24 04
<0>Kernel panic: Attempted to kill init!./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11 -11
@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1MFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;
@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2MFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3MFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;
@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4MFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5MFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;
@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6MFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7MFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;
@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8MFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9MFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)
@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +4 -4
@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }
@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }
@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;
@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;
Re: 2.5.69-mm6: pccard oops while booting: round 2
Quoted 10 lines · Felipe Alfaro Solana
Quoted 1 line · Andrew Morton
Bummer. Vital info is chopped off the top of the oops output.
I've been working on this a little this morning and these are the new conclusions I've drawn:
1. Definitively, the oops is being caused by the YMFPCI driver. I have built a mini-kernel by squashing the config to a minimum (disabled modules, preemptive, removed USB, IDE, AGP, Networking, CardBus, and
Could you please enable modules again and load ymfpci as module? This is supposed to give the best results with ymfpci2.patch. For ymfpci built in, the patch unfortunately does not help much.
Quoted 1 line
nearly everything possible) and the kernel still faults.
Thanks for your patience,
Carl-Daniel
Re: 2.5.69-mm6: pccard oops while booting: round 3
Quoted 3 lines · Carl-Daniel Hailfinger
Could you please enable modules again and load ymfpci as module? This is supposed to give the best results with ymfpci2.patch. For ymfpci built in, the patch unfortunately does not help much.
OK, We're getting closer, I think :-)
Attached to the message are: (a) "dmesg" with the oops caused by modprobing snd-ymfpci, (b) the new "config" file used to build the kernel, (c) "ymfpci2.patch" and (d) "sysfs.patch" with Andrew's latest patch to sysfs_create_link function.
As always, from a pristine 2.5.69-mm6 kernel, apply "ymfpci2.patch", then "sysfs.patch" and then use the supplied "config" to build. Boot this test kernel into runlevel 1 and then "modprobe snd-ymfpci" causes the oops described in the "dmesg" file.
Man, this is hard-chasing. Thank you guys for all your hard work! Thanks^2!
#
# Automatically generated make config: don't edit
#CONFIG_X86=yCONFIG_MMU=yCONFIG_UID16=yCONFIG_GENERIC_ISA_DMA=y
#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set
#
# General setup
#
# CONFIG_SWAP is not setCONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=yCONFIG_LOG_BUF_SHIFT=14
#
# Loadable module support
#CONFIG_MODULES=y
# CONFIG_MODULE_UNLOAD is not setCONFIG_OBSOLETE_MODPARM=y
# CONFIG_KMOD is not setCONFIG_FUTEX=yCONFIG_EPOLL=y
#
# Processor type and features
#CONFIG_X86_PC=y
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not setCONFIG_MPENTIUMIII=y
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MELAN is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_X86_GENERIC is not setCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_HUGETLB_PAGE is not set
# CONFIG_SMP is not set
# CONFIG_PREEMPT is not set
# CONFIG_X86_UP_APIC is not setCONFIG_X86_TSC=y
# CONFIG_X86_MCE is not set
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
# CONFIG_MICROCODE is not set
# CONFIG_X86_MSR is not set
# CONFIG_X86_CPUID is not setCONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
# CONFIG_025GB is not set
# CONFIG_05GB is not setCONFIG_1GB=y
# CONFIG_2GB is not set
# CONFIG_3GB is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_MTRR is not set
#
# Power management options (ACPI, APM)
#
# CONFIG_PM is not set
#
# ACPI Support
#
# CONFIG_ACPI is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=y
# CONFIG_PCI_LEGACY_PROC is not set
# CONFIG_PCI_NAMES is not set
# CONFIG_ISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
# CONFIG_HOTPLUG is not set
#
# Executable file formats
#CONFIG_KCORE_ELF=y
# CONFIG_KCORE_AOUT is not set
# CONFIG_BINFMT_AOUT is not setCONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
#
# Memory Technology Devices (MTD)
#
# CONFIG_MTD is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
# CONFIG_PNP is not set
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_LOOP is not set
# CONFIG_BLK_DEV_RAM is not set
# CONFIG_BLK_DEV_INITRD is not set
# CONFIG_LBD is not set
#
# ATA/ATAPI/MFM/RLL device support
#CONFIG_IDE=y
#
# IDE, ATA and ATAPI Block devices
#CONFIG_BLK_DEV_IDE=y
#
# Please see Documentation/ide.txt for help/info on IDE drives #
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set CONFIG_BLK_DEV_IDEDISK=yCONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
# CONFIG_BLK_DEV_IDECD is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_IDE_TASK_IOCTL is not set
#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not setCONFIG_BLK_DEV_IDEPCI=y
# CONFIG_BLK_DEV_GENERIC is not set
# CONFIG_IDEPCI_SHARE_IRQ is not setCONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
# CONFIG_IDEDMA_PCI_AUTO is not setCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not setCONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_RZ1000 is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDEDMA_IVB is not setCONFIG_BLK_DEV_IDE_MODES=y
#
# SCSI device support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
#
# I2O device support
#
# CONFIG_I2O is not set
#
# Networking support
#
# CONFIG_NET is not set
#
# Amateur Radio support
#
# CONFIG_HAMRADIO is not set
#
# ISDN subsystem
#
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not setCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=yCONFIG_SERIO_I8042=y
# CONFIG_SERIO_SERPORT is not set
# CONFIG_SERIO_CT82C710 is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Character devices
#CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
#
# Non-8250 serial port support
#CONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256
#
# I2C support
#
# CONFIG_I2C is not set
#
# I2C Hardware Sensors Mainboard support
#
#
# I2C Hardware Sensors Chip support
#
# CONFIG_I2C_SENSOR is not set
#
# Mice
#
# CONFIG_BUSMOUSE is not set
# CONFIG_QIC02_TAPE is not set
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_HW_RANDOM is not set
# CONFIG_NVRAM is not set
# CONFIG_RTC is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_FTAPE is not set
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HANGCHECK_TIMER is not set
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# File systems
#CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
# CONFIG_FAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_DEVPTS_FS=y
# CONFIG_DEVPTS_FS_XATTR is not setCONFIG_TMPFS=yCONFIG_RAMFS=y
#
# Miscellaneous filesystems
#
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=y
#
# Graphics support
#
# CONFIG_FB is not setCONFIG_VIDEO_SELECT=y
#
# Console display driver support
#CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not setCONFIG_DUMMY_CONSOLE=y
#
# Sound
#CONFIG_SOUND=y
#
# Advanced Linux Sound Architecture
#CONFIG_SND=y
# CONFIG_SND_SEQUENCER is not set
# CONFIG_SND_OSSEMUL is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
#
# Generic devices
#
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
#
# PCI devices
#
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_TRIDENT is not setCONFIG_SND_YMFPCI=m
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
# CONFIG_SND_INTEL8X0 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_VIA82XX is not set
#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
#
# USB support
#
# CONFIG_USB is not set
#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not setCONFIG_KALLSYMS=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not setCONFIG_DEBUG_INFO=yCONFIG_FRAME_POINTER=y
#
# Security options
#
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
# CONFIG_CRYPTO is not set
#
# Library routines
#
# CONFIG_CRC32 is not setCONFIG_X86_BIOS_REBOOT=y
Linux version 2.5.69-mm6-test ([email protected]) (gcc version 3.2.3 20030422 (Red Hat Linux 3.2.3-4)) #11 Sat May 17 14:40:15 CEST 2003 Video mode to be used for restore is f00
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000fff0000 (usable)
BIOS-e820: 000000000fff0000 - 000000000fff8000 (ACPI data)
BIOS-e820: 000000000fff8000 - 0000000010000000 (ACPI NVS)
BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
255MB LOWMEM available.
On node 0 totalpages: 65520
DMA zone: 4096 pages, LIFO batch:1
Normal zone: 61424 pages, LIFO batch:14
HighMem zone: 0 pages, LIFO batch:1
Building zonelist for node : 0
Kernel command line: ro root=/dev/hda3 1
Initializing CPU#0
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 697.151 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1376.25 BogoMIPS
Memory: 257504k/262080k available (767k kernel code, 3848k reserved, 246k data, 96k init, 0k highmem)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
-> /dev
-> /dev/console
-> /root
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After generic, caps: 0383f9ff 00000000 00000000 00000040
CPU: Intel Pentium III (Coppermine) stepping 06
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
Linux NoNET1.0 for Linux 2.6
PCI: PCI BIOS revision 2.10 entry at 0xfdb81, last bus=1
PCI: Using configuration type 1
BIO: pool of 256 setup, 14Kb (56 bytes/bio)
biovec pool[0]: 1 bvecs: 256 entries (12 bytes)
biovec pool[1]: 4 bvecs: 256 entries (48 bytes)
biovec pool[2]: 16 bvecs: 256 entries (192 bytes)
biovec pool[3]: 64 bvecs: 256 entries (768 bytes)
biovec pool[4]: 128 bvecs: 256 entries (1536 bytes)
biovec pool[5]: 256 bvecs: 256 entries (3072 bytes)
block request queues:
4/128 requests per read queue
4/128 requests per write queue
enter congestion at 15
exit congestion at 17
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI: Using IRQ router PIIX [8086/7110] at 00:07.0
PCI: IRQ 0 for device 00:0c.0 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Found IRQ 10 for device 00:0c.0
PCI: IRQ 0 for device 00:0c.1 doesn't match PIRQ mask - try pci=usepirqmask
PCI: Found IRQ 5 for device 00:0c.1
PCI: Sharing IRQ 5 with 00:09.0
SBF: Simple Boot Flag extension found and enabled.
SBF: Setting boot flags 0x1
Enabling SEP on CPU 0
Limiting direct PCI/PCI transfers.
pty: 256 Unix98 ptys configured
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:piohda: HITACHI_DK23BA-20, ATA DISK drive
anticipatory scheduling elevator
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdc: MATSHITADVD-ROM SR-8185, ATAPI CD/DVD-ROM drive
anticipatory scheduling elevator
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: host protected area => 1
hda: 39070080 sectors (20004 MB) w/2048KiB Cache, CHS=38760/16/63
hda: hda1 hda2 hda3 hda4
serio: i8042 AUX port at 0x60,0x64 irq 12
input: AT Set 2 keyboard on isa0060/serio0
serio: i8042 KBD port at 0x60,0x64 irq 1
Advanced Linux Sound Architecture Driver Version 0.9.2 (Thu Mar 20 13:31:57 2003 UTC). ALSA device list:
No soundcards found.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 96k freed
PCI: Found IRQ 5 for device 00:09.0
PCI: Sharing IRQ 5 with 00:0c.1
Unable to handle kernel paging request at virtual address b46c20d7 printing eip: c016b62f *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c016b62f>] Not tainted VLI EFLAGS: 00010246
EIP is at sysfs_create_link+0xcf/0x130
eax: cf643f60 ebx: ffffffff ecx: ffffffff edx: b46c20cf
esi: c01c99bb edi: cff5e470 ebp: cf765ef0 esp: cf765ec4
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 150, threadinfo=cf764000 task=cfc8f8c0)
Stack: cff5e470 cf643f60 00000023 d0825d60 cfb73000 cf643f60 00000023 b46c20cf
d0825d90 cff5e44c 00000000 cf765f08 c0195cc2 d0825d60 cff5e470 cff5e470
d0825d48 cf765f24 c0195d4a cff5e44c d0825d48 cff5e454 c01e25a0 d0825d48
Call Trace:
[<d0825d60>] driver+0x40/0xa0 [snd_ymfpci]
[<d0825d90>] driver+0x70/0xa0 [snd_ymfpci]
[<c0195cc2>] device_bind_driver+0x42/0x50
[<d0825d60>] driver+0x40/0xa0 [snd_ymfpci]
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<c0195d4a>] bus_match+0x7a/0x80
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<c0195e3d>] driver_attach+0x5d/0x70
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<c01960e6>] bus_add_driver+0xa6/0xc0
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<d082c080>] +0x0/0xa0 [snd_ymfpci]
[<c0196541>] driver_register+0x31/0x40
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<c017e145>] pci_register_driver+0x45/0x60
[<d0825d48>] driver+0x28/0xa0 [snd_ymfpci]
[<d080c7a8>] alsa_card_ymfpci_init+0x18/0x60 [snd_ymfpci]
[<d0825d20>] driver+0x0/0xa0 [snd_ymfpci]
[<c0128d32>] sys_init_module+0x102/0x1b0
[<d082c080>] +0x0/0xa0 [snd_ymfpci]
[<c010932d>] sysenter_past_esp+0x52/0x71
Code: ac aa 84 c0 75 fa 4b 83 c1 03 83 fb ff 75 ed 8b 45 ec 8b 55 e8 8b 7d 0c 89 44 24 08 89 54 24 04 89 3c 24 e8 d4 fe ff ff 8b 55 f0 <8b> 42 08 8d 48 6c ff 48 6c 78 68 8b 45 10 89 14 24 89 44 24 04 fs/sysfs/symlink.c renamed from fs/sysfs/symlink.c~sysfs_create_link-fix +1 -1
@@ -80,7 +80,7 @@ int sysfs_create_link(struct kobject * kchar * s; depth =object_depth (kobj); - size =object_path_length (target) + depth *3 -1 ; + size =object_path_length (target) + depth *3 +1 ;if (size >PATH_MAX )return -ENAMETOOLONG ;pr_debug ("%s: depth = %d, size = %d\n" ,__FUNCTION__,depth,size);
./sound/pci/ymfpci/ymfpci_main.c renamed from ./sound/pci/ymfpci/ymfpci_main.c~a +11 -11
@@ -1093,7 +1093,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *cif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI" , device,32 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"1MFPCI" , device,32 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_free;
@@ -1103,7 +1103,7 @@ int __devinit snd_ymfpci_pcm(ymfpci_t *c/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI" ); +strcpy (pcm->name,"2MFPCI" ); chip->pcm = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1138,7 +1138,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t *if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - AC'97" , device,0 ,1 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"3MFPCI - AC'97" , device,0 ,1 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm2_free;
@@ -1147,7 +1147,7 @@ int __devinit snd_ymfpci_pcm2(ymfpci_t */* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - AC'97" ); +strcpy (pcm->name,"4MFPCI - AC'97" ); chip->pcm2 = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1182,7 +1182,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpcif (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - IEC958" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"5MFPCI - IEC958" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_spdif_free;
@@ -1191,7 +1191,7 @@ int __devinit snd_ymfpci_pcm_spdif(ymfpc/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - IEC958" ); +strcpy (pcm->name,"6MFPCI - IEC958" ); chip->pcm_spdif = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1226,7 +1226,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_if (rpcm) *rpcm =NULL ; -if ((err =snd_pcm_new (chip->card,"YMFPCI - Rear" , device,1 ,0 , &pcm)) <0 ) +if ((err =snd_pcm_new (chip->card,"7MFPCI - Rear" , device,1 ,0 , &pcm)) <0 )return err; pcm->private_data = chip; pcm->private_free = snd_ymfpci_pcm_4ch_free;
@@ -1235,7 +1235,7 @@ int __devinit snd_ymfpci_pcm_4ch(ymfpci_/* global setup */ pcm->info_flags =0 ; -strcpy (pcm->name,"YMFPCI - Rear PCM" ); +strcpy (pcm->name,"8MFPCI - Rear PCM" ); chip->pcm_4ch = pcm;snd_pcm_lib_preallocate_pci_pages_for_all (chip->pci, pcm,64 *1024 ,256 *1024 );
@@ -1831,7 +1831,7 @@ static void snd_ymfpci_proc_read(snd_inf {// ymfpci_t *chip = snd_magic_cast(ymfpci_t, private_data, return); -snd_iprintf (buffer,"YMFPCI\n\n" ); +snd_iprintf (buffer,"9MFPCI\n\n" ); }static int __devinit snd_ymfpci_proc_init (snd_card_t * card,ymfpci_t *chip)
@@ -2226,12 +2226,12 @@ int __devinit snd_ymfpci_create(snd_card chip->reg_area_virt = (unsigned long )ioremap_nocache (chip->reg_area_phys,0x8000 );pci_set_master (pci); -if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"YMFPCI" )) ==NULL ) { +if ((chip->res_reg_area =request_mem_region (chip->reg_area_phys,0x8000 ,"AMFPCI" )) ==NULL ) {snd_ymfpci_free (chip);snd_printk ("unable to grab memory region 0x%lx-0x%lx\n" , chip->reg_area_phys, chip->reg_area_phys +0x8000 -1 );return -EBUSY ; } -if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"YMFPCI" , (void *) chip)) { +if (request_irq (pci->irq, snd_ymfpci_interrupt,SA_INTERRUPT |SA_SHIRQ ,"BMFPCI" , (void *) chip)) {snd_ymfpci_free (chip);snd_printk ("unable to grab IRQ %d\n" , pci->irq);return -EBUSY ;
./sound/pci/ymfpci/ymfpci.c renamed from ./sound/pci/ymfpci/ymfpci.c~a +4 -4
@@ -122,7 +122,7 @@ static int __devinit snd_card_ymfpci_pro fm_port[dev] = addr; }if (fm_port[dev] >=0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"CMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ;pci_write_config_word (pci,PCIR_DSXG_FMBASE , fm_port[dev]); }
@@ -133,7 +133,7 @@ static int __devinit snd_card_ymfpci_pro mpu_port[dev] = addr; }if (mpu_port[dev] >=0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"DMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ;pci_write_config_word (pci,PCIR_DSXG_MPU401BASE , mpu_port[dev]); }
@@ -146,7 +146,7 @@ static int __devinit snd_card_ymfpci_prodefault : fm_port[dev] =-1 ;break ; }if (fm_port[dev] >0 && - (chip->fm_res =request_region (fm_port[dev],4 ,"YMFPCI OPL3" )) !=NULL ) { + (chip->fm_res =request_region (fm_port[dev],4 ,"EMFPCI OPL3" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_FMEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_FMIO ;
@@ -160,7 +160,7 @@ static int __devinit snd_card_ymfpci_prodefault : mpu_port[dev] =-1 ;break ; }if (mpu_port[dev] >0 && - (chip->mpu_res =request_region (mpu_port[dev],2 ,"YMFPCI MPU401" )) !=NULL ) { + (chip->mpu_res =request_region (mpu_port[dev],2 ,"FMFPCI MPU401" )) !=NULL ) { legacy_ctrl |=YMFPCI_LEGACY_MEN ; }else { legacy_ctrl2 &= ~YMFPCI_LEGACY2_MPUIO ;
Re: 2.5.69-mm6: pccard oops while booting: gcc bug?
I've read the announcement of gcc 3.3 and saw that gcc 3.2 is not yet supported for linux kernel compilations (I've been using Red Hat's gcc-3.2.3-4 to compile 2.5.69-mm6). So I thought, what would happen if I use gcc 2.96 to compile the kernel instead?
And voilà... I've compiled 2.5.69-mm6 with Red Hat's 2.96.118 and now, I'm unable to reproduce the pccard oops you've been trying to chase down. Does this mean the pccard oops was caused by a compiler bug?
RFC is welcome.
Thanks!
[RFC] Disallow compilation with gcc 3.2.3 (was: Re: 2.5.69-mm6: pccard oops while booting:)
Quoted 8 lines · Felipe Alfaro Solana
I've read the announcement of gcc 3.3 and saw that gcc 3.2 is not yet supported for linux kernel compilations (I've been using Red Hat's gcc-3.2.3-4 to compile 2.5.69-mm6). So I thought, what would happen if I use gcc 2.96 to compile the kernel instead?
And voilà... I've compiled 2.5.69-mm6 with Red Hat's 2.96.118 and now, I'm unable to reproduce the pccard oops you've been trying to chase down. Does this mean the pccard oops was caused by a compiler bug?
Nobody has found an error in the code we talked about, so a compiler bug in gcc 3.2.3 seems to be the only explanation.
Thoughts?
Re: [RFC] Disallow compilation with gcc 3.2.3 (was: Re: 2.5.69-mm6: pccard oops while booting:)
Quoted 2 lines · Carl-Daniel Hailfinger
Nobody has found an error in the code we talked about, so a compiler bug in gcc 3.2.3 seems to be the only explanation.
In the last 20 years, I've come across lots of cases where optimizers did foolish things that broke code. I've also come across the odd case or three where the optimizer merely exposed a bug. Favorite cases here are where the optimizer removes what it thinks is a dead/redundant load/store, and exposes a race condition on a variable that should have been 'volatile' but wasn't, odd corner cases where sequence points actually matter (one of these was just posted here the other day, in fact)... stuff like that.
So yes. It's probably something borked in gcc 3.2.3 - but we probably won't know for sure till somebody goes over the assembler output with a fine tooth comb...
Re: [RFC] Disallow compilation with gcc 3.2.3 (was: Re: 2.5.69-mm6: pccard oops while booting:)
In reply to Carl-Daniel HailfingerQuoted 6 lines · Carl-Daniel Hailfinger
Quoted 5 lines · Felipe Alfaro Solana
I've read the announcement of gcc 3.3 and saw that gcc 3.2 is not yet supported for linux kernel compilations (I've been using Red Hat's gcc-3.2.3-4 to compile 2.5.69-mm6). So I thought, what would happen if I use gcc 2.96 to compile the kernel instead?
Quoted 6 lines
Quoted 3 lines
And voilà... I've compiled 2.5.69-mm6 with Red Hat's 2.96.118 and now, I'm unable to reproduce the pccard oops you've been trying to chase down. Does this mean the pccard oops was caused by a compiler bug?
Nobody has found an error in the code we talked about, so a compiler bug in gcc 3.2.3 seems to be the only explanation.
I would say it's indeed a bug with gcc 3.2.3. I'm now compiling using 2.96 and the problem has disappeared completely. Maybe I'll give a try with gcc 3.3 to see how it works.
Re: [RFC] Disallow compilation with gcc 3.2.3 (was: Re: 2.5.69-mm6: pccard oops while booting:)
In reply to Carl-Daniel HailfingerQuoted 7 lines · Carl-Daniel Hailfinger
Quoted 5 lines · Felipe Alfaro Solana
I've read the announcement of gcc 3.3 and saw that gcc 3.2 is not yet supported for linux kernel compilations (I've been using Red Hat's gcc-3.2.3-4 to compile 2.5.69-mm6). So I thought, what would happen if I use gcc 2.96 to compile the kernel instead?
Quoted 7 lines
Quoted 3 lines
And voilà... I've compiled 2.5.69-mm6 with Red Hat's 2.96.118 and now, I'm unable to reproduce the pccard oops you've been trying to chase down. Does this mean the pccard oops was caused by a compiler bug?
Nobody has found an error in the code we talked about, so a compiler bug in gcc 3.2.3 seems to be the only explanation.
It could be due to some incorrect code in the kernel, but we got away with it when using earlier compilers. We need to work out precisely where and why it went wrong.
Re: 2.5.69-mm6: pccard oops while booting: gcc bug?
In reply to Felipe Alfaro SolanaQuoted 8 lines · Felipe Alfaro Solana
I've read the announcement of gcc 3.3 and saw that gcc 3.2 is not yet supported for linux kernel compilations (I've been using Red Hat's gcc-3.2.3-4 to compile 2.5.69-mm6). So I thought, what would happen if I use gcc 2.96 to compile the kernel instead?
And voilà... I've compiled 2.5.69-mm6 with Red Hat's 2.96.118 and now, I'm unable to reproduce the pccard oops you've been trying to chase down. Does this mean the pccard oops was caused by a compiler bug?
Interesting. We know GCC 3.2.x produces wrong code on ARM without the patch in PR8896 (http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=8896)
being applied. GCC people aren't happy about applying this patch because it touches the generic reload code, which apparantly is sacred voodoo.
I'm wondering if this problem isn't only ARM, but affects others as well. (The result is that gcc pokes '4' instead of '3' into the ELF AUX entries as the value of AT_PHDR.)
Obviously, if x86 is affected and this patch fixes the problem, there's more motivation for the GCC people to include this fix. Someone needs to track down what's going wrong, and then gcc people need to comment.
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
Re: 2.5.69-mm6: pccard oops while booting: round 2
In reply to Felipe Alfaro SolanaQuoted 10 lines · Felipe Alfaro Solana
Unable to handle kernel paging request at virtual address fceec0d7 printing eip: c016954f *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c016954f>] Not tainted VLI EFLAGS: 00010246EIP is at
sys_create_link+0xcf/0x130
bah. That's totally different :(
But there seems to be a bug in there.
fs/sysfs/symlink.c renamed from fs/sysfs/symlink.c~sysfs_create_link-fix +1 -1
@@ -80,7 +80,7 @@ int sysfs_create_link(struct kobject * kchar * s; depth =object_depth (kobj); - size =object_path_length (target) + depth *3 -1 ; + size =object_path_length (target) + depth *3 +1 ;if (size >PATH_MAX )return -ENAMETOOLONG ;pr_debug ("%s: depth = %d, size = %d\n" ,__FUNCTION__,depth,size);
That probably won't fix it though.
Re: 2.5.69-mm6: pccard oops while booting: round 2
Quoted 28 lines · Andrew Morton
Quoted 10 lines · Felipe Alfaro Solana
Unable to handle kernel paging request at virtual address fceec0d7 printing eip: c016954f *pde = 00000000 Oops: 0000 [#1] CPU: 0 EIP: 0060:[<c016954f>] Not tainted VLI EFLAGS: 00010246EIP is at
sys_create_link+0xcf/0x130bah. That's totally different :(
But there seems to be a bug in there.
fs/sysfs/symlink.c renamed from fs/sysfs/symlink.c~sysfs_create_link-fix +1
-1@@ -80,7 +80,7 @@ int sysfs_create_link(struct kobject * kchar * s; depth =object_depth (kobj); - size =object_path_length (target) + depth *3 -1 ; + size =object_path_length (target) + depth *3 +1 ;if (size >PATH_MAX )return -ENAMETOOLONG ;pr_debug ("%s: depth = %d, size = %d\n" ,__FUNCTION__,depth,size);
Quoted 1 line
That probably won't fix it though.
I'm sorry to say the above patch doesn't fix the problem :-(
Quoted 4 lines
1. Simply by changing
KOBJ_NAME_LENfrom 20 to 16 fixes the problem. This leads me to think there are some parts of the kernel (a driver, to be more exact) that are corrupting memory or doing something really nasty that is affecting PCI ID's tables andpci_bus_match()function.
Are you sure you have a pristine source and everything is rebuilt against the new header? It'd be very easy for one object file to have the incorrect name len and cause this problem.
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ Deqo - http://www.deqo.com/
Quoted 8 lines · Ben Collins
Quoted 4 lines
1. Simply by changing
KOBJ_NAME_LENfrom 20 to 16 fixes the problem. This leads me to think there are some parts of the kernel (a driver, to be more exact) that are corrupting memory or doing something really nasty that is affecting PCI ID's tables andpci_bus_match()function.Are you sure you have a pristine source and everything is rebuilt against the new header? It'd be very easy for one object file to have the incorrect name len and cause this problem.
I'm 200% sure:
1. tar jxvf linux-2.5.69.tar.bz2
2. zcat 2.5.69-mm6.gz | patch -p1
3. make menuconfig
There is something in the Yamaha DS-XG PCI driver (I think the problem lies in alsa_card_ymfpci_init()) that is somewhat corrupting the PCI ID's table, or something else, that's causing the pci_bus_match() function to oops.
I'm no kernel expert, so I've been unable to guess much more than this.
When you send me the results of that patch, could you also include:
- /proc/modules (from before the crash)
- all kernel messages
please?
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html