Skip to contentSkip to conversation

2.6.17-rc5-mm2

PATCH In review Andrew Morton 25 participants 97 messages Jun 1, 2006 – Jun 21, 2006 2 messages not in the archive

Subsystems (8)
Networking SCSI USB Block layer +4 more subsystems
lore
Share & tools
lore

Andrew Morton

author Applied
#0 lore raw

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

- I just realised that I've been accidentally not updating the PCI tree for a while. Will be restored in next -mm.

- Has been booted and has passed various stress-tests on quad x86_64, quad ancient-Xeon, quad power4, quad ia64, dual old-PIII and a modern pentium-M laptop. So if it breaks, it's your fault.

Boilerplate:

- See the `hot-fixes' directory for any important updates to this patchset.

- To fetch an -mm tree using git, use (for example)

git fetch git://git.kernel.org/pub/scm/linux/kernel/git/smurf/linux-trees.git v2.6.16-rc2-mm1

- -mm kernel commit activity can be reviewed by subscribing to the mm-commits mailing list.

echo "subscribe mm-commits" | mail [email protected]

- If you hit a bug in -mm and it is not obvious which patch caused it, it is most valuable if you can perform a bisection search to identify which patch introduced the bug. Instructions for this process are at

http://www.zip.com.au/~akpm/linux/patches/stuff/bisecting-mm-trees.txt

But beware that this process takes some time (around ten rebuilds and reboots), so consider reporting the bug first and if we cannot immediately identify the faulty patch, then perform the bisection search.

- When reporting bugs, please try to Cc: the relevant maintainer and mailing list on any email.

Changes since 2.6.17-rc5-mm1:

origin.patch
git-acpi.patch
git-agpgart.patch
git-alsa.patch
git-audit-master.patch
git-block.patch
git-cfq.patch
git-cifs.patch
git-cpufreq.patch
git-dvb.patch
git-gfs2.patch
git-ia64.patch
git-infiniband.patch
git-intelfb.patch
git-klibc.patch
git-hdrcleanup.patch
git-hdrinstall.patch
git-libata-all.patch
git-mips.patch
git-mtd.patch
git-netdev-all.patch
git-net.patch
git-nfs.patch
git-powerpc.patch
git-rbtree.patch
git-sas.patch
git-pcmcia.patch
git-scsi-rc-fixes.patch
git-scsi-target.patch
git-supertrak.patch
git-watchdog.patch
git-cryptodev.patch

got trees

-ext3-resize-fix-double-unlock_super.patch -fbcon-fix-scrollback-with-logo-issue-immediately-after-boot.patch -spanned_pages-is-not-updated-at-a-case-of-memory-hot-add.patch -tpm-bios-log-parsing-fixes.patch -tpm-more-bios-log-parsing-fixes.patch -tpm-more-bios-log-parsing-fixes-tidy.patch -ipmi-reserve-i-o-ports-separately.patch -revert-swsusp-add-check-for-suspension-of-x-controlled-devices.patch -hrtimer-export-symbols.patch -scsi-properly-count-the-number-of-pages-in-scsi_req_map_sg.patch -x86_64-fix-stack-mmap-randomization-for-compat.patch -x86_64-fix-no-iommu-warning-in-pci-gart-driver.patch -i386-apic=-command-line-option-should-always-be.patch -x86_64-fix-last_tsc-calculation-of-pm-timer.patch -x86_64-handle-empty-node-zero.patch -x86_64-fix-off-by-one-in-bad_addr-checking-in.patch -x86_64-dont-do-syscall-exit-tracing-twice.patch -powerpc-fix-boot-on-emac.patch -au1100fb-fix-compilation.patch -maxinefb-fix-compilation-error.patch -sgiioc4-use-mmio-ops-instead-of-port-io.patch -md-fix-badness-in-sysfs_notify-caused-by-md_new_event.patch -firmware_class-s-semaphores-mutexes.patch -fix-mem-leak-in-sidewinder-driver.patch -git-mtd-ya-build-fix.patch
-pcmcia-irq-debugging.patch -ti-pcixx12-cardbus-controller-support.patch -pcmcia-missing-pcmcia_get_socket-result-check.patch -imm-no-need-for-unchecked_isa_dma.patch -git-scsi-target-fixup.patch -usb-gadget-update-inodec-to-support-full-speed-only.patch -usb-gadget-update-pxa2xx_udcc-and-arch-dependent-files.patch -usb-gadget-update-pxa2xx_udcc-driver-to-fully-support.patch -usb-gadget-clean-udch.patch -usb-gadget-dont-build-small-version-if-usbgadgetfs.patch -driver-for-apple-cinema-display.patch -driver-for-apple-cinema-display-tweaks.patch -usb-wifi-zd1201-cleanups.patch -x86_64-mm-acpi-blacklist-xw9300.patch -fix-x86_64-mm-reliable-stack-trace-support-i386-entrys.patch -x86_64-mm-reliable-stack-trace-support-non-x86-fix.patch -x86_64-mm-reliable-stack-trace-support-non-x86-fix-fix.patch

Merged into mainline or a subsystem tree

+nmclan_cs-dereferencing-skb-after-netif_rx.patch +s390-irb-memcpy-argument-swap.patch +s390-cio-non-unique-path-group-ids.patch +nbd-endian-annotations.patch +sparsemem-build-fix.patch +selinux-fix-sb_lock-sb_security_lock-nesting-was.patch

2.6.17 queue.

+s390-cleanup-bitopsh.patch

s390 cleanup

+blktrace_apih-endian-annotations.patch

Add endianness annotations.

+cifs-build-fix.patch
+git-cifs-kconfig-fix.patch

The CIFS tree was updated. Fix it.

+git-cpufreq-fixup.patch

Fix reject in git-cpufreq.patch

+gregkh-driver-firmware_class-s-semaphores-mutexes.patch

Driver tree update

+input-move-fixp-arithh-to-drivers-input.patch +input-fix-accuracy-of-fixp-arithh.patch +input-new-force-feedback-interface.patch +input-new-force-feedback-interface-fix.patch +input-adapt-hid-force-feedback-drivers-for-the-new-interface.patch +input-adapt-uinput-for-the-new-force-feedback-interface.patch +input-adapt-iforce-driver-for-the-new-force-feedback-interface.patch +input-force-feedback-driver-for-pid-devices.patch +input-force-feedback-driver-for-zeroplus-devices.patch +input-update-documentation-of-force-feedback.patch +input-drop-the-remains-of-the-old-ff-interface.patch +input-drop-the-old-pid-driver.patch +input-use-enospc-instead-of-enomem-in-iforce-when-device-full.patch

Input layer rework, force-feedback driver enhancements.

+libata-add-missing-data_xfer-for-pata_pdc2027x-and-pdc_adma.patch

Fix git-libata-all.patch.

+pppoe-missing-result-check-in-__pppoe_xmit.patch

pppoe fix

+pmf_register_irq_client-gives-sleep-with-locks-held-warning.patch

Powermac driver fix

+pci-dont-move-ioapics-below-pci-bridge.patch

io-apic handling fix

+scsi-properly-count-the-number-of-pages-in-scsi_req_map_sg-fix.patch

Fix akpm screwup.

+gregkh-usb-usb-new-cp2101-device.patch +gregkh-usb-gadgetfs-fix-aio-interface-bugs.patch +gregkh-usb-gadgetfs-fix-memory-leaks.patch +gregkh-usb-usbtest-report-errors-in-iso-tests.patch +gregkh-usb-usb-io_edgeport-cleanup-to-unicode-handling.patch +gregkh-usb-usb-serial-encapsulate-schedule_work-remove-double-calling.patch +gregkh-usb-usb-improve-kconfig-comment-for-mct_u232.patch +gregkh-usb-usb-syntax-cleanup-for-pl2303.patch +gregkh-usb-usb-storage-get-rid-of-the-timer-during-urb-submission.patch +gregkh-usb-improved-tt-scheduling-for-ehci.patch +gregkh-usb-usb-rmmod-pl2303-after-28.patch +gregkh-usb-ub-atomic-add_disk.patch +gregkh-usb-ub-random-cleanups.patch +gregkh-usb-usb-more-pegasus-log-spamming-removed.patch +gregkh-usb-usb-print-message-when-device-is-rejected-due-to-insufficient-power.patch +gregkh-usb-usbcore-fix-broken-rndis-config-selection.patch +gregkh-usb-usbhid-remove-unneeded-blacklist-entries.patch +gregkh-usb-usb-ftdi_sio-add-support-for-yost-engineering-servocenter3.1.patch +gregkh-usb-usb-zd1201-cleanups.patch +gregkh-usb-driver-for-apple-cinema-display.patch +gregkh-usb-airprime_major_update.patch

USB tree updates

+usb-add-sierra-wireless-mc5720-id-to-airprimec.patch +usb-negative-index-in-drivers-usb-host-isp116x-hcdc.patch

More USB additions

+x86_64-mm-i386-move-vm86-config.patch

x86_64 tree update

-node-hotplug-fixes-callres-of-register_cpu.patch -node-hotplug-fixes-callres-of-register_cpu-powerpc-warning-fix.patch -node-hotplug-register_node-fix.patch

Folxed into node-hotplug-register-cpu-remove-node-struct.patch

+node-hotplug-register-cpu-remove-node-struct-alpha-fix.patch

Fix it some more.

+lsm-add-task_setioprio-hook.patch

LSM hook for sys_setioprio().

+i386-dont-try-kprobes-for-v8086-mode.patch

x86 fix

+alpha-generic-hweight-build-fix.patch

Alpha build fix

+emu10k1-mark-midi_spinlock-as-used.patch

OSS driver fix

+add-max6902-rtc-support.patch
+add-max6902-rtc-support-tidy.patch
+rtc-small-documentation-update.patch

RTC udpates

+make-ext2_debug-work-again.patch

ext3 fixes

+ecryptfs-file-operations-fix-premature-release-of-file_info-memory.patch

ecryptfs update

+namespaces-utsname-use-init_utsname-when-appropriate-cifs-update.patch

Fix namespaces-utsname-use-init_utsname-when-appropriate.patch for recent CIFS changes.

+readahead-state-based-method-readahead-state-based-method-stand-alone-size-limit-code.patch +readahead-context-based-method-apply-stream_shift-size-limits-to-contexta-method.patch +readahead-context-based-method-fix-remain-counting.patch +readahead-backward-prefetching-method-add-use-case-comment.patch

Update readahead patches in -mm.

+reiser4-fix-trivial-tyops-which-were-hard-to-hit.patch

reiser4 fixes

+dm-table-get_target-fix-last-index.patch

device mapper fix.

+md-md-kconfig-speeling-feex.patch +md-fix-kconfig-error.patch +md-fix-bug-that-stops-raid5-resync-from-happening.patch +md-allow-re-add-to-work-on-array-without-bitmaps.patch +md-dont-write-dirty-clean-update-to-spares-leave-them-alone.patch +md-set-get-state-of-array-via-sysfs.patch +md-allow-rdev-state-to-be-set-via-sysfs.patch +md-allow-raid-layout-to-be-read-and-set-via-sysfs.patch +md-allow-resync_start-to-be-set-and-queried-via-sysfs.patch +md-allow-the-write_mostly-flag-to-be-set-via-sysfs.patch

RAID updates.

+statistics-infrastructure-make-printk_clock-a-generic-kernel-wide-nsec-resolution.patch +statistics-infrastructure-update-2.patch +statistics-infrastructure-update-3.patch

Fix the statistics-infrastructure patches.

+genirq-cleanup-remove-irq_descp-fix.patch

Fix genirq handling of MSI interrupts.

+genirq-add-chip-eoi-fastack-fasteoi.patch

More genirq work.

+lock-validator-stacktrace-fix-on-x86_64.patch +lock-validator-irqtrace-entrys-fix.patch +lock-validator-irqtrace-core-remove-softirqc-warn_on.patch +lock-validator-prove-mutex-locking-correctness-fix-null-type-name-bug.patch +lock-validator-disable-nmi-watchdog-if-config_lockdep-i386.patch +lock-validator-disable-nmi-watchdog-if-config_lockdep-x86_64.patch +lock-validator-special-locking-net-ipv4-igmpcpatch.patch +lock-validator-special-locking-net-ipv4-igmpc-2.patch +lock-validator-special-locking-sb-s_umount-2-fix.patch +lockdep-annotate-rpc_populate-for.patch +lock-validator-special-locking-sound-core-seq-seq_devicec.patch +lock-validator-special-locking-sound-core-seq-seq_devicec-fix.patch +lock-validator-fix-rt_hash_lock_sz.patch +lock-validator-introduce-irq__lockdep.patch +locking-validator-special-rule-8390c-disable_irq.patch +locking-validator-special-rule-3c59xc-disable_irq.patch -lock-validator-enable-lock-validator-in-kconfig-x86-only.patch +lock-validator-enable-lock-validator-in-kconfig-require-trace_irqflags_support.patch +lock-validator-irqtrace-support-non-x86-architectures.patch +lock-validator-disable-oprofile-if-lockdep=y.patch +lock-validator-select-kallsyms_all.patch

Locking validator work.

-profile-likely-unlikely-macros-tidy.patch
-profile-likely-unlikely-macros-fix.patch
-profile-likely-unlikely-macros-fix-2.patch
-fix-gcc-3x-w-likely-profiling.patch

Folded into profile-likely-unlikely-macros.patch

All 1265 patches:

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/patch-list

#1 lore raw
Quoted 4 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

I put the fix for slab corruption into mm1, and it did indeed cure that. However, if I add git-cfq.patch, my box still explodes.

-Mike

#4 lore raw
In reply to Andrew Morton
Quoted 8 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

Quoted 6 lines

- I just realised that I've been accidentally not updating the PCI tree for a while. Will be restored in next -mm.

- Has been booted and has passed various stress-tests on quad x86_64, quad ancient-Xeon, quad power4, quad ia64, dual old-PIII and a modern pentium-M laptop. So if it breaks, it's your fault.

What an optimist if ever I've seen one ;)

Bootdata ok (command line is ro root=/dev/md0 panic=60 console=ttyS0,57600 single)
Linux version 2.6.17-rc5-mm2 ([email protected]) (gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)) #2 SMP Thu Jun 1 21:17:50 NZST 2006 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003f670000 (usable)
BIOS-e820: 000000003f670000 - 000000003f6e9000 (ACPI NVS)
BIOS-e820: 000000003f6e9000 - 000000003f6ec000 (usable)
BIOS-e820: 000000003f6ec000 - 000000003f6ff000 (ACPI data)
BIOS-e820: 000000003f6ff000 - 000000003f700000 (usable)
DMI 2.3 present.
ACPI: PM-Timer IO Port: 0x408
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
Processor #0 15:4 APIC version 20
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1 15:4 APIC version 20
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82] disabled)
ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83] disabled)
ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
Setting APIC routing to flat
ACPI: HPET id: 0x8086a201 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 40000000 (gap: 3f700000:c0900000)
Built 1 zonelists
Kernel command line: ro root=/dev/md0 panic=60 console=ttyS0,57600 single
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 32768 bytes)
Console: colour VGA+ 80x25
Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar

... MAX_LOCKDEP_SUBTYPES:    8
... MAX_LOCK_DEPTH:          30
... MAX_LOCKDEP_KEYS:        2048
... TYPEHASH_SIZE:           1024
... MAX_LOCKDEP_ENTRIES:     8192
... MAX_LOCKDEP_CHAINS:      8192
... CHAINHASH_SIZE:          4096

memory used by lock dependency info: 1120 kB
per task-struct memory footprint: 1440 bytes
------------------------
| Locking API testsuite:
----------------------------------------------------------------------------
| spin |wlock |rlock |mutex | wsem | rsem |
--------------------------------------------------------------------------

                     A-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                 A-B-B-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
             A-B-B-C-C-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
             A-B-C-A-B-C deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
         A-B-B-C-C-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
         A-B-C-D-B-D-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
         A-B-C-D-B-C-D-A deadlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                    double unlock:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
                 bad unlock order:  ok  |  ok  |  ok  |  ok  |  ok  |  ok  |
  --------------------------------------------------------------------------
              recursive read-lock:             |  ok  |             |  ok  |
  --------------------------------------------------------------------------
                non-nested unlock:  ok  |  ok  |  ok  |  ok  |
  ------------------------------------------------------------
     hard-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
     soft-irqs-on + irq-safe-A/12:  ok  |  ok  |  ok  |
     hard-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
     soft-irqs-on + irq-safe-A/21:  ok  |  ok  |  ok  |
       sirq-safe-A => hirqs-on/12:  ok  |  ok  |  ok  |
       sirq-safe-A => hirqs-on/21:  ok  |  ok  |  ok  |
         hard-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
         soft-safe-A + irqs-on/12:  ok  |  ok  |  ok  |
         hard-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
         soft-safe-A + irqs-on/21:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/123:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/132:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/213:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/231:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/312:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #1/321:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/123:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/132:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/213:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/231:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/312:  ok  |  ok  |  ok  |
    hard-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
    soft-safe-A + unsafe-B #2/321:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/123:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/123:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/132:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/132:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/213:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/213:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/231:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/231:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/312:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/312:  ok  |  ok  |  ok  |
      hard-irq lock-inversion/321:  ok  |  ok  |  ok  |
      soft-irq lock-inversion/321:  ok  |  ok  |  ok  |
      hard-irq read-recursion/123:  ok  |
      soft-irq read-recursion/123:  ok  |
      hard-irq read-recursion/132:  ok  |
      soft-irq read-recursion/132:  ok  |
      hard-irq read-recursion/213:  ok  |
      soft-irq read-recursion/213:  ok  |
      hard-irq read-recursion/231:  ok  |
      soft-irq read-recursion/231:  ok  |
      hard-irq read-recursion/312:  ok  |
      soft-irq read-recursion/312:  ok  |
      hard-irq read-recursion/321:  ok  |
      soft-irq read-recursion/321:  ok  |

-------------------------------------------------------
Good, all 210 testcases passed! |
---------------------------------
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Checking aperture...
Memory: 1012508k/1039360k available (2694k kernel code, 25420k reserved, 1766k data, 216k init) Calibrating delay using timer specific routine.. 6009.49 BogoMIPS (lpj=12018986) Security Framework v1.0.0 initialized

SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability

Capability LSM initialized as secondary
Mount-cache hash table entries: 256
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 2048K
using mwait in idle threads.
CPU: Physical Processor ID: 0
CPU0: Thermal monitoring enabled (TM1)
Freeing SMP alternatives: 28k freed
lockdep: disabled NMI watchdog.
Using local APIC timer interrupts.
result 12500192
Detected 12.500 MHz APIC timer.
lockdep: not fixing up alternatives.
Booting processor 1/2 APIC 0x1
Initializing CPU#1
lockdep: disabled NMI watchdog.
Calibrating delay using timer specific routine.. 6000.27 BogoMIPS (lpj=12000551)
CPU: Trace cache: 12K uops, L1 D cache: 16K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU1: Thermal monitoring enabled (TM1)
Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 03
Brought up 2 CPUs
time.c: Using 14.318180 MHz WALL HPET GTOD HPET/TSC timer.
time.c: Detected 3000.062 MHz processor.
migration_cost=6
checking if image is initramfs... it is
Freeing initrd memory: 876k freed
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: BIOS Bug: MCFG area is not E820-reserved
PCI: Not using MMCONFIG.
PCI: Using configuration type 1
ACPI: Subsystem revision 20060310
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 7 9 10 *11 12)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 7 9 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 7 9 10 *11 12)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 7 9 *10 11 12)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 7 9 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 7 9 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 7 9 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 7 *9 10 11 12)
Intel 82802 RNG detected
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report
hpet0: at MMIO 0xfed00000 (virtual 0xffffffffff5fe000), IRQs 2, 8, 0
hpet0: 3 64-bit timers, 14318180 Hz
PCI-GART: No AMD northbridge found.
PCI: Ignore bogus resource 6 [0:0] of 0000:00:02.0
PCI: Bridge: 0000:00:1c.0
IO window: 2000-2fff
MEM window: 48000000-480fffff
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.2
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.3
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.4
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.5
IO window: disabled.
MEM window: disabled.
PREFETCH window: disabled.
PCI: Bridge: 0000:00:1e.0
IO window: 1000-1fff
MEM window: disabled.
PREFETCH window: disabled.
ACPI (acpi_bus-0192): Device `PEX0]is not power manageable [20060310] GSI 16 sharing vector 0xA9 and IRQ 16
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 169 ACPI (acpi_bus-0192): Device `PEX2]is not power manageable [20060310] GSI 17 sharing vector 0xB1 and IRQ 17
ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 177 ACPI (acpi_bus-0192): Device `PEX3]is not power manageable [20060310] GSI 18 sharing vector 0xB9 and IRQ 18
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 185 ACPI (acpi_bus-0192): Device `PEX4]is not power manageable [20060310]
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 17 (level, low) -> IRQ 169 ACPI (acpi_bus-0192): Device `PEX5]is not power manageable [20060310] GSI 19 sharing vector 0xC1 and IRQ 19
ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 16 (level, low) -> IRQ 193
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 6, 262144 bytes)
TCP established hash table entries: 32768 (order: 9, 3670016 bytes) TCP bind hash table entries: 16384 (order: 8, 1835008 bytes)
TCP: Hash tables configured (established 32768 bind 16384)
TCP reno registered
audit: initializing netlink socket (disabled) audit(1149153727.584:1): initialized
SELinux: Registering netfilter hooks
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered (default)
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 169 assign_interrupt_mode Found MSI capability
ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 177 assign_interrupt_mode Found MSI capability
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 185 assign_interrupt_mode Found MSI capability
ACPI: PCI Interrupt 0000:00:1c.4[A] -> GSI 17 (level, low) -> IRQ 169 assign_interrupt_mode Found MSI capability
ACPI: PCI Interrupt 0000:00:1c.5[B] -> GSI 16 (level, low) -> IRQ 193 assign_interrupt_mode Found MSI capability
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI Error (acpi_processor-0474): Getting cpuindex for acpiid 0x3 [20060310] ACPI Error (acpi_processor-0474): Getting cpuindex for acpiid 0x4 [20060310] Real Time Clock Driver v1.12ac
Linux agpgart interface v0.101 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled ÿserial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ACPI: PCI Interrupt 0000:06:03.0[A] -> GSI 19 (level, low) -> IRQ 185 0000:06:03.0: ttyS1 at I/O 0x1000 (irq = 185) is a 16550A 0000:06:03.0: ttyS2 at I/O 0x1008 (irq = 185) is a 16550A
isa bounce pool size: 16 pages
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
RAMDISK driver initialized: 4 RAM disks of 16384K size 1024 blocksize Intel(R) PRO/1000 Network Driver - version 7.0.38-k4-NAPI
Copyright (c) 1999-2006 Intel Corporation.
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 193
e1000: 0000:01:00.0: e1000_probe: (PCI Express:2.5Gb/s:Width x1) 00:13:20:60:b4:23
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH7: IDE controller at PCI slot 0000:00:1f.1
ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 177
ICH7: chipset revision 1
ICH7: not 100% native mode: will probe irqs later

    ide0: BM-DMA at 0x30b0-0x30b7, BIOS settings: hda:DMA, hdb:pio

hda: PIONEER DVD-RW DVR-111D, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ACPI (acpi_bus-0192): Device `IDES]is not power manageable [20060310]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 185 ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xFFFFC20000016100 ctl 0x0 bmdma 0x0 irq 58
ata2: SATA max UDMA/133 cmd 0xFFFFC20000016180 ctl 0x0 bmdma 0x0 irq 58
ata3: SATA max UDMA/133 cmd 0xFFFFC20000016200 ctl 0x0 bmdma 0x0 irq 58
ata4: SATA max UDMA/133 cmd 0xFFFFC20000016280 ctl 0x0 bmdma 0x0 irq 58
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
 [<0000000000000000>]
PGD 0
Oops: 0010 [1] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: idle Not tainted 2.6.17-rc5-mm2 #2
RIP: 0010:[<0000000000000000>]  [<0000000000000000>]
RSP: 0000:ffffffff80660f98  EFLAGS: 00010006
RAX: 0000000000003a00 RBX: ffffffff8090dec8 RCX: 0000000000000000
RDX: ffffffff8090dec8 RSI: ffffffff808fe100 RDI: 000000000000003a
RBP: ffffffff80660fb0 R08: 0000000000000001 R09: ffffffff802676aa
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000003a
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffffffff808fa000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 0, threadinfo ffffffff8090c000, task ffffffff80593760)
Stack: ffffffff80270132 ffffffff8025dbb1 ffffffff8094e084 ffffffff8090def0
       ffffffff802641a9  <EOI> ff6500005d4be8fa 65c900000020250c 00000010250c8b48
       f700001fd8e98148 7400000003582444
Call Trace:


Code:  Bad RIP value.
RIP  [<0000000000000000>] RSP <ffffffff80660f98>
CR2: 0000000000000000
 <0>Kernel panic - not syncing: Aiee, killing interrupt handler!
 BUG: warning at kernel/lockdep.c:1853/trace_hardirqs_on()

Call Trace:
  [<ffffffff8026e6ed>] show_trace+0xad/0x225
        [<ffffffff8026e87a>] dump_stack+0x15/0x1b  [<ffffffff802a05da>] 
trace_hardirqs_on+0xa1/0x124
        [<ffffffff80276fec>] smp_send_stop+0x4c/0x68
        [<ffffffff8028a491>] panic+0xa7/0x220  [<ffffffff80216376>] 
do_exit+0x74/0x94f
        [<ffffffff8020b195>] do_page_fault+0x895/0x9c4
        [<ffffffff802649dd>] error_exit+0x0/0x8e

Rebooting in 60 seconds..BUG: warning at kernel/panic.c:114/panic()

Call Trace:
  [<ffffffff8026e6ed>] show_trace+0xad/0x225
        [<ffffffff8026e87a>] dump_stack+0x15/0x1b  [<ffffffff8028a55e>] 
panic+0x174/0x220
        [<ffffffff80216376>] do_exit+0x74/0x94f  [<ffffffff8020b195>] 
do_page_fault+0x895/0x9c4
        [<ffffffff802649dd>] error_exit+0x0/0x8e

Hardware posted at http://www.reub.net/files/kernel/system-hardware

Box has MSI capabilities and MSI compiled in.

Reuben

#2 lore raw
In reply to Mike Galbraith
Quoted 8 lines · Mike Galbraith
Quoted 4 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

I put the fix for slab corruption into mm1, and it did indeed cure that. However, if I add git-cfq.patch, my box still explodes.

Andrew, you probably want to leave out git-cfq for a few days as it'll throw rejects once Linus pulls the for-2.6.17 cfq urgent fixes. I'll fixup the branch and the apparently silly bug that crept in that branch and give you a ping about when to reenable it!

Signature · 1 line
Jens Axboe
#3 lore raw
In reply to Mike Galbraith
Quoted 8 lines · On Thu, 01 Jun 2006 11:30:33 +0200 Mike Galbraith <[email protected]> wrote:
Quoted 4 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

I put the fix for slab corruption into mm1, and it did indeed cure that. However, if I add git-cfq.patch, my box still explodes.

OK, thanks. I put a revert patch into the hot-fixes directory.

block/cfq-iosched.c renamed from block/cfq-iosched.c~revert-git-cfq +117 -97
@@ -103,9 +103,8 @@ struct cfq_data {
 	 * rr list of queues with requests and the count of them
 	 */
 	struct list_head rr_list[CFQ_PRIO_LISTS];
+	struct list_head busy_rr;
 	struct list_head cur_rr;
-	unsigned short cur_prio;
-
 	struct list_head idle_rr;
 	unsigned int busy_queues;
 
@@ -141,6 +140,7 @@ struct cfq_data {
 
 	struct cfq_queue *active_queue;
 	struct cfq_io_context *active_cic;
+	int cur_prio, cur_end_prio;
 	unsigned int dispatch_slice;
 
 	struct timer_list idle_class_timer;
@@ -199,13 +199,8 @@ struct cfq_queue {
 	int on_dispatch[2];
 
 	/* io prio of this group */
-	unsigned short ioprio_class, ioprio;
-
-	/* current dynamic stair priority */
-	unsigned short dyn_ioprio;
-
-	/* same as real ioprio, except if queue has been elevated */
-	unsigned short org_ioprio_class, org_ioprio;
+	unsigned short ioprio, org_ioprio;
+	unsigned short ioprio_class, org_ioprio_class;
 
 	/* various state flags, see below */
 	unsigned int flags;
@@ -484,13 +479,25 @@ static void cfq_resort_rr_list(struct cf
 		list = &cfqd->cur_rr;
 	else if (cfq_class_idle(cfqq))
 		list = &cfqd->idle_rr;
-	else
-		list = &cfqd->rr_list[cfqq->dyn_ioprio];
+	else {
+		/*
+		 * if cfqq has requests in flight, don't allow it to be
+		 * found in cfq_set_active_queue before it has finished them.
+		 * this is done to increase fairness between a process that
+		 * has lots of io pending vs one that only generates one
+		 * sporadically or synchronously
+		 */
+		if (cfq_cfqq_dispatched(cfqq))
+			list = &cfqd->busy_rr;
+		else
+			list = &cfqd->rr_list[cfqq->ioprio];
+	}
 
 	/*
-	 * if queue was preempted, just add to front to be fair.
+	 * if queue was preempted, just add to front to be fair. busy_rr
+	 * isn't sorted.
 	 */
-	if (preempted) {
+	if (preempted || list == &cfqd->busy_rr) {
 		list_add(&cfqq->cfq_list, list);
 		return;
 	}
@@ -502,8 +509,6 @@ static void cfq_resort_rr_list(struct cf
 	while ((entry = entry->prev) != list) {
 		struct cfq_queue *__cfqq = list_entry_cfqq(entry);
 
-		if (__cfqq->ioprio < cfqq->ioprio)
-			break;
 		if (!__cfqq->service_last)
 			break;
 		if (time_before(__cfqq->service_last, cfqq->service_last))
@@ -729,49 +734,23 @@ cfq_merged_requests(request_queue_t *q, 
 	cfq_remove_request(next);
 }
 
-/*
- * Scale schedule slice based on io priority. Use the sync time slice only
- * if a queue is marked sync and has sync io queued. A sync queue with async
- * io only, should not get full sync slice length.
- */
-static inline int
-cfq_prio_to_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
-{
-	const int base_slice = cfqd->cfq_slice[cfq_cfqq_sync(cfqq)];
-	unsigned short prio = cfqq->dyn_ioprio;
-
-	WARN_ON(prio >= IOPRIO_BE_NR);
-
-	if (cfq_class_rt(cfqq))
-		prio = 0;
-
-	return base_slice + (base_slice / CFQ_SLICE_SCALE * (4 - prio));
-}
-
 static inline void
-cfq_set_prio_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
-{
-	cfqq->slice_end = cfq_prio_to_slice(cfqd, cfqq) + jiffies;
-}
-
-static inline int
-cfq_prio_to_maxrq(struct cfq_data *cfqd, struct cfq_queue *cfqq)
+__cfq_set_active_queue(struct cfq_data *cfqd, struct cfq_queue *cfqq)
 {
-	const int base_rq = cfqd->cfq_slice_async_rq;
-	unsigned short prio = cfqq->dyn_ioprio;
-
-	WARN_ON(cfqq->dyn_ioprio >= IOPRIO_BE_NR);
-
-	if (cfq_class_rt(cfqq))
-		prio = 0;
+	if (cfqq) {
+		/*
+		 * stop potential idle class queues waiting service
+		 */
+		del_timer(&cfqd->idle_class_timer);
 
-	return 2 * (base_rq + base_rq * (CFQ_PRIO_LISTS - 1 - prio));
-}
+		cfqq->slice_start = jiffies;
+		cfqq->slice_end = 0;
+		cfqq->slice_left = 0;
+		cfq_clear_cfqq_must_alloc_slice(cfqq);
+		cfq_clear_cfqq_fifo_expire(cfqq);
+	}
 
-static inline void cfq_prio_inc(unsigned short *p, unsigned int low_p)
-{
-	if (++(*p) == CFQ_PRIO_LISTS)
-		*p = low_p;
+	cfqd->active_queue = cfqq;
 }
 
 /*
@@ -803,8 +782,6 @@ __cfq_slice_expired(struct cfq_data *cfq
 	else
 		cfqq->slice_left = 0;
 
-	cfq_prio_inc(&cfqq->dyn_ioprio, cfqq->ioprio);
-
 	if (cfq_cfqq_on_rr(cfqq))
 		cfq_resort_rr_list(cfqq, preempted);
 
@@ -827,58 +804,73 @@ static inline void cfq_slice_expired(str
 		__cfq_slice_expired(cfqd, cfqq, preempted);
 }
 
-static struct cfq_queue *cfq_get_next_cfqq(struct cfq_data *cfqd)
+/*
+ * 0
+ * 0,1
+ * 0,1,2
+ * 0,1,2,3
+ * 0,1,2,3,4
+ * 0,1,2,3,4,5
+ * 0,1,2,3,4,5,6
+ * 0,1,2,3,4,5,6,7
+ */
+static int cfq_get_next_prio_level(struct cfq_data *cfqd)
 {
-	if (!cfqd->busy_queues)
-		return NULL;
-
-	if (list_empty(&cfqd->cur_rr)) {
-		unsigned short prio = cfqd->cur_prio;
+	int prio, wrap;
 
-		do {
-			struct list_head *list = &cfqd->rr_list[prio];
+	prio = -1;
+	wrap = 0;
+	do {
+		int p;
 
-			if (!list_empty(list)) {
-				list_splice_init(list, &cfqd->cur_rr);
+		for (p = cfqd->cur_prio; p <= cfqd->cur_end_prio; p++) {
+			if (!list_empty(&cfqd->rr_list[p])) {
+				prio = p;
 				break;
 			}
+		}
 
-			cfq_prio_inc(&prio, 0);
-		} while (prio != cfqd->cur_prio);
+		if (prio != -1)
+			break;
+		cfqd->cur_prio = 0;
+		if (++cfqd->cur_end_prio == CFQ_PRIO_LISTS) {
+			cfqd->cur_end_prio = 0;
+			if (wrap)
+				break;
+			wrap = 1;
+		}
+	} while (1);
 
-		cfq_prio_inc(&cfqd->cur_prio, 0);
-	}
+	if (unlikely(prio == -1))
+		return -1;
 
-	if (!list_empty(&cfqd->cur_rr));
-		return list_entry_cfqq(cfqd->cur_rr.next);
+	BUG_ON(prio >= CFQ_PRIO_LISTS);
 
-	return NULL;
-}
+	list_splice_init(&cfqd->rr_list[prio], &cfqd->cur_rr);
 
-static inline void
-__cfq_set_active_queue(struct cfq_data *cfqd, struct cfq_queue *cfqq)
-{
-	if (cfqq) {
-		WARN_ON(RB_EMPTY(&cfqq->sort_list));
-
-		/*
-		 * stop potential idle class queues waiting service
-		 */
-		del_timer(&cfqd->idle_class_timer);
-
-		cfqq->slice_start = jiffies;
-		cfqq->slice_end = 0;
-		cfqq->slice_left = 0;
-		cfq_clear_cfqq_must_alloc_slice(cfqq);
-		cfq_clear_cfqq_fifo_expire(cfqq);
+	cfqd->cur_prio = prio + 1;
+	if (cfqd->cur_prio > cfqd->cur_end_prio) {
+		cfqd->cur_end_prio = cfqd->cur_prio;
+		cfqd->cur_prio = 0;
+	}
+	if (cfqd->cur_end_prio == CFQ_PRIO_LISTS) {
+		cfqd->cur_prio = 0;
+		cfqd->cur_end_prio = 0;
 	}
 
-	cfqd->active_queue = cfqq;
+	return prio;
 }
 
 static struct cfq_queue *cfq_set_active_queue(struct cfq_data *cfqd)
 {
-	struct cfq_queue *cfqq = cfq_get_next_cfqq(cfqd);
+	struct cfq_queue *cfqq = NULL;
+
+	/*
+	 * if current list is non-empty, grab first entry. if it is empty,
+	 * get next prio level and grab first entry then if any are spliced
+	 */
+	if (!list_empty(&cfqd->cur_rr) || cfq_get_next_prio_level(cfqd) != -1)
+		cfqq = list_entry_cfqq(cfqd->cur_rr.next);
 
 	/*
 	 * if we have idle queues and no rt or be queues had pending
@@ -976,6 +968,37 @@ static inline struct cfq_rq *cfq_check_f
 }
 
 /*
+ * Scale schedule slice based on io priority. Use the sync time slice only
+ * if a queue is marked sync and has sync io queued. A sync queue with async
+ * io only, should not get full sync slice length.
+ */
+static inline int
+cfq_prio_to_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
+{
+	const int base_slice = cfqd->cfq_slice[cfq_cfqq_sync(cfqq)];
+
+	WARN_ON(cfqq->ioprio >= IOPRIO_BE_NR);
+
+	return base_slice + (base_slice/CFQ_SLICE_SCALE * (4 - cfqq->ioprio));
+}
+
+static inline void
+cfq_set_prio_slice(struct cfq_data *cfqd, struct cfq_queue *cfqq)
+{
+	cfqq->slice_end = cfq_prio_to_slice(cfqd, cfqq) + jiffies;
+}
+
+static inline int
+cfq_prio_to_maxrq(struct cfq_data *cfqd, struct cfq_queue *cfqq)
+{
+	const int base_rq = cfqd->cfq_slice_async_rq;
+
+	WARN_ON(cfqq->ioprio >= IOPRIO_BE_NR);
+
+	return 2 * (base_rq + base_rq * (CFQ_PRIO_LISTS - 1 - cfqq->ioprio));
+}
+
+/*
  * get next queue for service
  */
 static struct cfq_queue *cfq_select_queue(struct cfq_data *cfqd)
@@ -1092,6 +1115,7 @@ cfq_forced_dispatch(struct cfq_data *cfq
 	for (i = 0; i < CFQ_PRIO_LISTS; i++)
 		dispatched += cfq_forced_dispatch_cfqqs(&cfqd->rr_list[i]);
 
+	dispatched += cfq_forced_dispatch_cfqqs(&cfqd->busy_rr);
 	dispatched += cfq_forced_dispatch_cfqqs(&cfqd->cur_rr);
 	dispatched += cfq_forced_dispatch_cfqqs(&cfqd->idle_rr);
 
@@ -1331,11 +1355,6 @@ static void cfq_init_prio_data(struct cf
 	cfqq->org_ioprio = cfqq->ioprio;
 	cfqq->org_ioprio_class = cfqq->ioprio_class;
 
-	/*
-	 * start priority
-	 */
-	cfqq->dyn_ioprio = cfqq->ioprio;
-
 	if (cfq_cfqq_on_rr(cfqq))
 		cfq_resort_rr_list(cfqq, 0);
 
@@ -2210,6 +2229,7 @@ static int cfq_init_queue(request_queue_
 	for (i = 0; i < CFQ_PRIO_LISTS; i++)
 		INIT_LIST_HEAD(&cfqd->rr_list[i]);
 
+	INIT_LIST_HEAD(&cfqd->busy_rr);
 	INIT_LIST_HEAD(&cfqd->cur_rr);
 	INIT_LIST_HEAD(&cfqd->idle_rr);
 	INIT_LIST_HEAD(&cfqd->empty_list);

_

#5 lore raw
In reply to Reuben Farrelly
Quoted 11 lines · On Thu, 01 Jun 2006 21:34:37 +1200 Reuben Farrelly <[email protected]> wrote:
Quoted 8 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

Quoted 8 lines
Quoted 6 lines

- I just realised that I've been accidentally not updating the PCI tree for a while. Will be restored in next -mm.

- Has been booted and has passed various stress-tests on quad x86_64, quad ancient-Xeon, quad power4, quad ia64, dual old-PIII and a modern pentium-M laptop. So if it breaks, it's your fault.

What an optimist if ever I've seen one ;)

Dammit.

Quoted 9 lines

...

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH7: IDE controller at PCI slot 0000:00:1f.1
ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 18 (level, low) -> IRQ 177
ICH7: chipset revision 1
ICH7: not 100% native mode: will probe irqs later

     ide0: BM-DMA at 0x30b0-0x30b7, BIOS settings: hda:DMA, hdb:pio
Quoted 9 lines

hda: PIONEER DVD-RW DVR-111D, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ACPI (acpi_bus-0192): Device `IDES]is not power manageable [20060310]
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 185 ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xFFFFC20000016100 ctl 0x0 bmdma 0x0 irq 58
ata2: SATA max UDMA/133 cmd 0xFFFFC20000016180 ctl 0x0 bmdma 0x0 irq 58
ata3: SATA max UDMA/133 cmd 0xFFFFC20000016200 ctl 0x0 bmdma 0x0 irq 58

I assume you're using the ahci driver here.

Quoted 17 lines

ata4: SATA max UDMA/133 cmd 0xFFFFC20000016280 ctl 0x0 bmdma 0x0 irq 58
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
  [<0000000000000000>]
PGD 0
Oops: 0010 [1] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: idle Not tainted 2.6.17-rc5-mm2 #2
RIP: 0010:[<0000000000000000>]  [<0000000000000000>]
RSP: 0000:ffffffff80660f98  EFLAGS: 00010006
RAX: 0000000000003a00 RBX: ffffffff8090dec8 RCX: 0000000000000000
RDX: ffffffff8090dec8 RSI: ffffffff808fe100 RDI: 000000000000003a
RBP: ffffffff80660fb0 R08: 0000000000000001 R09: ffffffff802676aa
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000003a
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Quoted 9 lines
FS:  0000000000000000(0000) GS:ffffffff808fa000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 0, threadinfo ffffffff8090c000, task ffffffff80593760)
Stack: ffffffff80270132 ffffffff8025dbb1 ffffffff8094e084 ffffffff8090def0
        ffffffff802641a9  <EOI> ff6500005d4be8fa 65c900000020250c 00000010250c8b48
        f700001fd8e98148 7400000003582444
Call Trace:

And we did a jump-to-zero. I'm suspecting the sata changes.

Is this the mysterious missing ->mode_filter, perhaps? I don't think so - we test for null there.

Should ahci.c have a data_xfer vector? Right now it's left at NULL.

Quoted 16 lines
Code:  Bad RIP value.
RIP  [<0000000000000000>] RSP <ffffffff80660f98>
CR2: 0000000000000000
  <0>Kernel panic - not syncing: Aiee, killing interrupt handler!
  BUG: warning at kernel/lockdep.c:1853/trace_hardirqs_on()

Call Trace:
   [<ffffffff8026e6ed>] show_trace+0xad/0x225
         [<ffffffff8026e87a>] dump_stack+0x15/0x1b  [<ffffffff802a05da>] 
trace_hardirqs_on+0xa1/0x124
         [<ffffffff80276fec>] smp_send_stop+0x4c/0x68
         [<ffffffff8028a491>] panic+0xa7/0x220  [<ffffffff80216376>] 
do_exit+0x74/0x94f
         [<ffffffff8020b195>] do_page_fault+0x895/0x9c4
         [<ffffffff802649dd>] error_exit+0x0/0x8e
Quoted 2 lines

Rebooting in 60 seconds..BUG: warning at kernel/panic.c:114/panic()

And here we collapsed instead of generating a backtrace. Both Ingo and the x86_64 guys have been playing with the backtrace code.

Quoted 2 lines

Hardware posted at http://www.reub.net/files/kernel/system-hardware

A .config would be useful too.

Quoted 2 lines

Box has MSI capabilities and MSI compiled in.

Hopefully MSI is fixed now.

#6 lore raw
Quoted 16 lines · Andrew Morton
Quoted 13 lines · On Thu, 01 Jun 2006 21:34:37 +1200 Reuben Farrelly <[email protected]> wrote:
Quoted 11 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

- I just realised that I've been accidentally not updating the PCI tree for a while. Will be restored in next -mm.

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

- Has been booted and has passed various stress-tests on quad x86_64, quad ancient-Xeon, quad power4, quad ia64, dual old-PIII and a modern pentium-M laptop. So if it breaks, it's your fault.

What an optimist if ever I've seen one ;)

Dammit.

A .config would be useful too.

Now up at http://www.reub.net/files/kernel/configs/2.6.17-rc5-mm2-x86_64.confg

(and yes, using AHCI)

Reuben

#26 lore raw
In reply to Andrew Morton
Quoted 1 line · Andrew Morton

Should ahci.c have a data_xfer vector? Right now it's left at NULL.

Definitely not.

If it needs one, something is _very very_ wrong.

Unlike traditional IDE interface (which most SATA uses), ahci and sata_sil24 do PIO over DMA, and that is hooked at a much higher level (->qc_issue).

I would be very interested in a trackback with symbol info...

Jeff

#8 lore raw
Quoted 9 lines · Ingo Molnar
Quoted 4 lines · Reuben Farrelly
Quoted 1 line

A .config would be useful too.

Now up at
http://www.reub.net/files/kernel/configs/2.6.17-rc5-mm2-x86_64.confg

hm, i cannot reproduce the stack backtrace secondary crash with your config. Weird.

ah, managed to reproduce it!

Jan, the dwarf2 unwinder apparently fails if we call a NULL function. The patch below will provoke it artificially on any box (as long as you have an IDE system). I've attached the incorrect backtrace attempt below, and the expected backtrace further below.

the relevant config options are:

CONFIG_DEBUG_INFO=y
CONFIG_FRAME_POINTER=y
CONFIG_UNWIND_INFO=y
CONFIG_STACK_UNWIND=y

Ingo

drivers/ide/ide-io.c +4 -0
Index: linux/drivers/ide/ide-io.c
===================================================================
@@ -1546,6 +1546,10 @@ irqreturn_t ide_intr (int irq, void *dev
 	ide_handler_t *handler;
 	ide_startstop_t startstop;
 
+	handler = NULL;
+	drive = NULL;
+	handler(drive);
+
 	spin_lock_irqsave(&ide_lock, flags);
 	hwif = hwgroup->hwif;
 

---{ BAD dump }---->

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: 
 [<0000000000000000>]
PGD 0 
Oops: 0010 [1] SMP 
last sysfs file: 
CPU 1 
Modules linked in:
Pid: 1, comm: idle Not tainted 2.6.17-rc5-mm2-lockdep #15
RIP: 0010:[<0000000000000000>]  [<0000000000000000>]
RSP: 0000:ffff81003ff9fcf0  EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000206 RCX: ffff81003fd20000
RDX: ffffffff809021e0 RSI: ffff81003fd02b30 RDI: 0000000000000000
RBP: ffff81003ff9fd28 R08: 0000000000000001 R09: ffff81003fd20ad8
R10: 0000000000000000 R11: 0000000000000001 R12: 00000000fffffff4
R13: ffff81003fd02b30 R14: 000000000000000e R15: 000000000000000e
FS:  0000000000000000(0000) GS:ffff81003ffea400(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 1, threadinfo ffff81003ff9e000, task ffff81003ff9ce20)
Stack:  ffffffff8020debd ffff81003ff9fd38 0000000000000206 00000000fffffff4
 ffff81003fd02b30 0000000000000001 000000000000000e ffff81003ff9fd78
 ffffffff802b4361 ffffffff80927120
Call Trace:


Code:  Bad RIP value.

RIP [<0000000000000000>]
RSP <ffff81003ff9fcf0>
CR2: 0000000000000000
<0>Kernel panic - not syncing: Attempted to kill init!

Call Trace:
 [<ffffffff8026ff17>] show_trace+0xa7/0x220
 [<ffffffff802702ad>] dump_stack+0x15/0x17
 [<ffffffff8028be3f>] panic+0x9e/0x21f
 [<ffffffff802166a7>] do_exit+0xa5/0x95e
 [<ffffffff8020b0b0>] do_page_fault+0x8b0/0x9df
 [<ffffffff802662a5>] error_exit+0x0/0x8e

---{ expected dump }---->

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: 
 [<ffffffff8020deb7>] ide_intr+0x17/0x208
PGD 0 
Oops: 0002 [1] SMP 
last sysfs file: 
CPU 1 
Modules linked in:
Pid: 1, comm: idle Not tainted 2.6.17-rc5-mm2-lockdep #14
RIP: 0010:[<ffffffff8020deb7>]  [<ffffffff8020deb7>] ide_intr+0x17/0x208
RSP: 0000:ffff81003ff9fcf8  EFLAGS: 00010092
RAX: 0000000000088212 RBX: 0000000000000206 RCX: ffff81003fd20000
RDX: ffffffff809021e0 RSI: ffff81003fd02b30 RDI: 000000000000000e
RBP: ffff81003ff9fd28 R08: 0000000000000001 R09: ffff81003fd20ad8
R10: 0000000000000000 R11: 0000000000000001 R12: 00000000fffffff4
R13: ffff81003fd02b30 R14: 000000000000000e R15: 000000000000000e
FS:  0000000000000000(0000) GS:ffff81003ffea400(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 1, threadinfo ffff81003ff9e000, task ffff81003ff9ce20)
Stack:  ffff81003ff9fd38 0000000000000206 00000000fffffff4 ffff81003fd02b30
 0000000000000001 000000000000000e ffff81003ff9fd78 ffffffff802b4371
 ffffffff80927120 ffffffff8020dea0
Call Trace:
 [<ffffffff802b4371>] request_irq+0xe1/0x141
 [<ffffffff80414ee4>] init_irq+0x2a4/0x572
 [<ffffffff80415333>] hwif_init+0x163/0x396
 [<ffffffff804156d5>] probe_hwif_init_with_fixup+0x25/0x83
 [<ffffffff80417853>] ide_setup_pci_device+0x54/0x96
 [<ffffffff8040baea>] amd74xx_probe+0x6a/0x71
 [<ffffffff8097ea7f>] ide_scan_pcidev+0x3f/0x6b
 [<ffffffff8097ead5>] ide_scan_pcibus+0x2a/0xdb
 [<ffffffff8097ea20>] ide_init+0x58/0x78
 [<ffffffff8026ee84>] init+0x164/0x2e3
 [<ffffffff8026647a>] child_rip+0x8/0x12
#9 lore raw
Quoted 7 lines · Ingo Molnar
Quoted 7 lines · Reuben Farrelly
Quoted 5 lines
Quoted 2 lines

A .config would be useful too.

Now up at
http://www.reub.net/files/kernel/configs/2.6.17-rc5-mm2-x86_64.confg

Quoted 6 lines
Quoted 2 lines

hm, i cannot reproduce the stack backtrace secondary crash with your config. Weird.

ah, managed to reproduce it!

Jan, the dwarf2 unwinder apparently fails if we call a NULL function.

Reuben, the workaround would be to disable CONFIG_STACK_UNWIND.

Ingo

#27 lore raw

Re: 2.6.17-rc5-mm2 another compile error

In reply to Andrew Morton

CC drivers/dma/ioatdma.o
drivers/dma/ioatdma.c: In function ‘ioat_init_module’:
drivers/dma/ioatdma.c:828: error: dereferencing pointer to incomplete type make[2]: *** [drivers/dma/ioatdma.o] Error 1
make[1]: *** [drivers/dma] Error 2
make: *** [drivers] Error 2

Now recompiling without support for "DMA engines"

Helge Hafting

#30 lore raw

Re: 2.6.17-rc5-mm2 stack unwind compile failure

In reply to Andrew Morton

2.6.17-rc5-mm2 with the cfq hotfix:

CC kernel/unwind.o
kernel/unwind.c: In function ‘unwind_add_table’:
kernel/unwind.c:189: error: dereferencing pointer to incomplete type kernel/unwind.c:190: error: dereferencing pointer to incomplete type kernel/unwind.c:190: error: dereferencing pointer to incomplete type kernel/unwind.c:191: error: dereferencing pointer to incomplete type kernel/unwind.c:191: error: dereferencing pointer to incomplete type make[1]: *** [kernel/unwind.o] Error 1
make: *** [kernel] Error 2

Now recompiling without "stack unwind support"

Helge Hafting

#10 lore raw
In reply to Ingo Molnar
Quoted 6 lines · Ingo Molnar
Quoted 4 lines · Ingo Molnar
Quoted 4 lines · Reuben Farrelly
Quoted 3 lines
Quoted 2 lines

A .config would be useful too.

Now up at http://www.reub.net/files/kernel/configs/2.6.17-rc5-mm2-x86_64.confg

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

hm, i cannot reproduce the stack backtrace secondary crash with your config. Weird.

ah, managed to reproduce it!

Jan, the dwarf2 unwinder apparently fails if we call a NULL function.

Reuben, the workaround would be to disable CONFIG_STACK_UNWIND.

Ingo

Ok, now with an identical config with the exception of this:

# CONFIG_STACK_UNWIND is not set

I did a full make mrproper after setting this (via menuconfig).

Not sure that this is much better unfortunately :(

ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 3 Gbps 0xf impl SATA mode ahci 0000:00:1f.2: flags: 64bit ncq led clo pio slum part
ata1: SATA max UDMA/133 cmd 0xFFFFC20000016100 ctl 0x0 bmdma 0x0 irq 58
ata2: SATA max UDMA/133 cmd 0xFFFFC20000016180 ctl 0x0 bmdma 0x0 irq 58
ata3: SATA max UDMA/133 cmd 0xFFFFC20000016200 ctl 0x0 bmdma 0x0 irq 58
ata4: SATA max UDMA/133 cmd 0xFFFFC20000016280 ctl 0x0 bmdma 0x0 irq 58
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)

Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
 [<0000000000000000>]
PGD 0
Oops: 0010 [1] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: idle Not tainted 2.6.17-rc5-mm2 #1
RIP: 0010:[<0000000000000000>]  [<0000000000000000>]
RSP: 0000:ffffffff8065ef98  EFLAGS: 00010006
RAX: 0000000000003a00 RBX: ffffffff8090bec8 RCX: 0000000000000000
RDX: ffffffff8090bec8 RSI: ffffffff808fc100 RDI: 000000000000003a
RBP: ffffffff8065efb0 R08: 0000000000000001 R09: ffffffff80268f0a
R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000003a
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffffffff808f8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 0, threadinfo ffffffff8090a000, task ffffffff805923e0)
Stack: ffffffff80271812 ffffffff8025f491 ffffffff8094c084 ffffffff8090bef0
       ffffffff80265a89  <EOI> ff6500005ccbe8fa 65c900000020250c 00000010250c8b48
       f700001fd8e98148 7400000003582444
Call Trace:
 <IRQ> [<ffffffff80271812>] do_IRQ+0x5f/0x7d
 [<ffffffff8025f491>] mwait_idle+0x0/0x54
 [<ffffffff80265a89>] ret_from_intr+0x0/0xf
 <EOI> [<ffffffff8045c748>] rtnetlink_rcv+0x54/0x58
 [<ffffffff8036bb09>] irqsafe4_soft_spin_321+0x64/0xe0
 [<ffffffff8036bb0a>] irqsafe4_soft_spin_321+0x65/0xe0
 [<ffffffff8036bb0d>] irqsafe4_soft_spin_321+0x68/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbba>] irqsafe4_soft_rlock_123+0x35/0xe0
 [<ffffffff8036bbbd>] irqsafe4_soft_rlock_123+0x38/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc6a>] irqsafe4_soft_rlock_132+0x5/0xe0
 [<ffffffff8036bc6d>] irqsafe4_soft_rlock_132+0x8/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd1a>] irqsafe4_soft_rlock_132+0xb5/0xe0
 [<ffffffff8036bd1d>] irqsafe4_soft_rlock_132+0xb8/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdca>] irqsafe4_soft_rlock_213+0x85/0xe0
 [<ffffffff8036bdcd>] irqsafe4_soft_rlock_213+0x88/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be7a>] irqsafe4_soft_rlock_231+0x55/0xe0
 [<ffffffff8036be7d>] irqsafe4_soft_rlock_231+0x58/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf50>] irqsafe4_soft_rlock_312+0x4b/0xe0
 [<ffffffff8036bf53>] irqsafe4_soft_rlock_312+0x4e/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c026>] irqsafe4_soft_rlock_321+0x41/0xe0
 [<ffffffff8036c029>] irqsafe4_soft_rlock_321+0x44/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fc>] irqsafe4_soft_wlock_123+0x37/0xe0
 [<ffffffff8036c0ff>] irqsafe4_soft_wlock_123+0x3a/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d2>] irqsafe4_soft_wlock_132+0x2d/0xe0
 [<ffffffff8036c1d5>] irqsafe4_soft_wlock_132+0x30/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a8>] irqsafe4_soft_wlock_213+0x23/0xe0
 [<ffffffff8036c2ab>] irqsafe4_soft_wlock_213+0x26/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37e>] irqsafe4_soft_wlock_231+0x19/0xe0
 [<ffffffff8036c381>] irqsafe4_soft_wlock_231+0x1c/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c454>] irqsafe4_soft_wlock_312+0xf/0xe0
 [<ffffffff8036c457>] irqsafe4_soft_wlock_312+0x12/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c52a>] irqsafe4_soft_wlock_321+0x5/0xe0
 [<ffffffff8036c52d>] irqsafe4_soft_wlock_321+0x8/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c600>] irqsafe4_soft_wlock_321+0xdb/0xe0
 [<ffffffff8036c603>] irqsafe4_soft_wlock_321+0xde/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d6>] irq_inversion_soft_spin_123+0xd1/0xe0
 [<ffffffff8036c6d9>] irq_inversion_soft_spin_123+0xd4/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ac>] irq_inversion_soft_spin_132+0xc7/0xe0
 [<ffffffff8036c7af>] irq_inversion_soft_spin_132+0xca/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c882>] irq_inversion_soft_spin_213+0xbd/0xe0
 [<ffffffff8036c885>] irq_inversion_soft_spin_213+0xc0/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c958>] irq_inversion_soft_spin_231+0xb3/0xe0
 [<ffffffff8036c95b>] irq_inversion_soft_spin_231+0xb6/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2e>] irq_inversion_soft_spin_312+0xa9/0xe0
 [<ffffffff8036ca31>] irq_inversion_soft_spin_312+0xac/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb04>] irq_inversion_soft_spin_321+0x9f/0xe0
 [<ffffffff8036cb07>] irq_inversion_soft_spin_321+0xa2/0xe0
 [<ffffffff8036cbd9>] irq_inversion_soft_rlock_123+0x94/0xe0
Unable to handle kernel paging request at ffffffff82800000 RIP:
 [<ffffffff8026fef9>] show_trace+0x152/0x1a2
PGD 203027 PUD 205027 PMD 0
Oops: 0000 [2] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: idle Not tainted 2.6.17-rc5-mm2 #1
RIP: 0010:[<ffffffff8026fef9>]  [<ffffffff8026fef9>] show_trace+0x152/0x1a2
RSP: 0000:ffffffff8065ecd8  EFLAGS: 00010006
RAX: 0000000000000000 RBX: b100000000000074 RCX: 0000000000000000
RDX: ffffffff805923e0 RSI: 0000000000000001 RDI: ffffffff8059e680
RBP: ffffffff8065ed18 R08: 0000000000000003 R09: ffffffff804c6873
R10: 0000000000000000 R11: 0000000000000002 R12: ffffffff827ffff9
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffffffff808f8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: ffffffff82800000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 0, threadinfo ffffffff8090a000, task ffffffff805923e0)
Stack: ffffffff80218050 0000000000000001 000000008065ed18 ffffffff80265aa9
       000000000000000a ffffffff8065afc0 ffffffff8065efc0 0000000000000000
       ffffffff8065ed68 ffffffff80270049
Call Trace:
 <IRQ> [<ffffffff80218050>] release_console_sem+0x20/0x247
 [<ffffffff80265aa9>] exit_intr+0x11/0x1a
 [<ffffffff80270049>] _show_stack+0xe9/0xf8
 [<ffffffff802700e4>] show_registers+0x8c/0x101
 [<ffffffff802701f9>] __die+0xa0/0xe3
 [<ffffffff8020b16e>] do_page_fault+0x86e/0x9c4
 [<ffffffff802a2bfd>] __lockdep_acquire+0xb4d/0xc06
 [<ffffffff8026c058>] _spin_unlock_irq+0x2b/0x33
 [<ffffffff802a1cf6>] trace_hardirqs_on+0xdd/0x124
 [<ffffffff8026c058>] _spin_unlock_irq+0x2b/0x33
 [<ffffffff802662bd>] error_exit+0x0/0x8e
 [<ffffffff80268f0a>] thread_return+0x63/0x103
 [<ffffffff80271812>] do_IRQ+0x5f/0x7d
 [<ffffffff8025f491>] mwait_idle+0x0/0x54
 [<ffffffff80265a89>] ret_from_intr+0x0/0xf
 <EOI> [<ffffffff8045c748>] rtnetlink_rcv+0x54/0x58
 [<ffffffff8036bb09>] irqsafe4_soft_spin_321+0x64/0xe0
 [<ffffffff8036bb0a>] irqsafe4_soft_spin_321+0x65/0xe0
 [<ffffffff8036bb0d>] irqsafe4_soft_spin_321+0x68/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbba>] irqsafe4_soft_rlock_123+0x35/0xe0
 [<ffffffff8036bbbd>] irqsafe4_soft_rlock_123+0x38/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc6a>] irqsafe4_soft_rlock_132+0x5/0xe0
 [<ffffffff8036bc6d>] irqsafe4_soft_rlock_132+0x8/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd1a>] irqsafe4_soft_rlock_132+0xb5/0xe0
 [<ffffffff8036bd1d>] irqsafe4_soft_rlock_132+0xb8/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdca>] irqsafe4_soft_rlock_213+0x85/0xe0
 [<ffffffff8036bdcd>] irqsafe4_soft_rlock_213+0x88/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be7a>] irqsafe4_soft_rlock_231+0x55/0xe0
 [<ffffffff8036be7d>] irqsafe4_soft_rlock_231+0x58/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf50>] irqsafe4_soft_rlock_312+0x4b/0xe0
 [<ffffffff8036bf53>] irqsafe4_soft_rlock_312+0x4e/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c026>] irqsafe4_soft_rlock_321+0x41/0xe0
 [<ffffffff8036c029>] irqsafe4_soft_rlock_321+0x44/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fc>] irqsafe4_soft_wlock_123+0x37/0xe0
 [<ffffffff8036c0ff>] irqsafe4_soft_wlock_123+0x3a/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d2>] irqsafe4_soft_wlock_132+0x2d/0xe0
 [<ffffffff8036c1d5>] irqsafe4_soft_wlock_132+0x30/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a8>] irqsafe4_soft_wlock_213+0x23/0xe0
 [<ffffffff8036c2ab>] irqsafe4_soft_wlock_213+0x26/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37e>] irqsafe4_soft_wlock_231+0x19/0xe0
 [<ffffffff8036c381>] irqsafe4_soft_wlock_231+0x1c/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c454>] irqsafe4_soft_wlock_312+0xf/0xe0
 [<ffffffff8036c457>] irqsafe4_soft_wlock_312+0x12/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c52a>] irqsafe4_soft_wlock_321+0x5/0xe0
 [<ffffffff8036c52d>] irqsafe4_soft_wlock_321+0x8/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c600>] irqsafe4_soft_wlock_321+0xdb/0xe0
 [<ffffffff8036c603>] irqsafe4_soft_wlock_321+0xde/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d6>] irq_inversion_soft_spin_123+0xd1/0xe0
 [<ffffffff8036c6d9>] irq_inversion_soft_spin_123+0xd4/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ac>] irq_inversion_soft_spin_132+0xc7/0xe0
 [<ffffffff8036c7af>] irq_inversion_soft_spin_132+0xca/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c882>] irq_inversion_soft_spin_213+0xbd/0xe0
 [<ffffffff8036c885>] irq_inversion_soft_spin_213+0xc0/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c958>] irq_inversion_soft_spin_231+0xb3/0xe0
 [<ffffffff8036c95b>] irq_inversion_soft_spin_231+0xb6/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2e>] irq_inversion_soft_spin_312+0xa9/0xe0
 [<ffffffff8036ca31>] irq_inversion_soft_spin_312+0xac/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb04>] irq_inversion_soft_spin_321+0x9f/0xe0
 [<ffffffff8036cb07>] irq_inversion_soft_spin_321+0xa2/0xe0
 [<ffffffff8036cbd9>] irq_inversion_soft_rlock_123+0x94/0xe0
Unable to handle kernel paging request at ffffffff82800000 RIP:
 [<ffffffff8026fef9>] show_trace+0x152/0x1a2
PGD 203027 PUD 205027 PMD 0
Oops: 0000 [3] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: idle Not tainted 2.6.17-rc5-mm2 #1
RIP: 0010:[<ffffffff8026fef9>]  [<ffffffff8026fef9>] show_trace+0x152/0x1a2
RSP: 0000:ffffffff8065ea18  EFLAGS: 00010006
RAX: 0000000000000000 RBX: b100000000000074 RCX: 0000000000000000
RDX: ffffffff805923e0 RSI: 0000000000000001 RDI: ffffffff8059e680
RBP: ffffffff8065ea58 R08: 0000000000000003 R09: ffffffff804c6873
R10: 0000000000000000 R11: 0000000000000002 R12: ffffffff827ffff9
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffffffff808f8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: ffffffff82800000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 0, threadinfo ffffffff8090a000, task ffffffff805923e0)
Stack: ffffffff80218050 0000000000000001 000000008065ea58 ffffffff8065ed20
       000000000000000a ffffffff8065afc0 ffffffff8065efc0 0000000000000000
       ffffffff8065eaa8 ffffffff80270049
Call Trace:
 <IRQ> [<ffffffff80218050>] release_console_sem+0x20/0x247
 [<ffffffff80270049>] _show_stack+0xe9/0xf8
 [<ffffffff802700e4>] show_registers+0x8c/0x101
 [<ffffffff802701f9>] __die+0xa0/0xe3
 [<ffffffff8020b16e>] do_page_fault+0x86e/0x9c4
 [<ffffffff802a2bfd>] __lockdep_acquire+0xb4d/0xc06
 [<ffffffff802662bd>] error_exit+0x0/0x8e
 [<ffffffff8026fef9>] show_trace+0x152/0x1a2
 [<ffffffff8026ff05>] show_trace+0x15e/0x1a2
 [<ffffffff80218050>] release_console_sem+0x20/0x247
 [<ffffffff80265aa9>] exit_intr+0x11/0x1a
 [<ffffffff80270049>] _show_stack+0xe9/0xf8
 [<ffffffff802700e4>] show_registers+0x8c/0x101
 [<ffffffff802701f9>] __die+0xa0/0xe3
 [<ffffffff8020b16e>] do_page_fault+0x86e/0x9c4
 [<ffffffff802a2bfd>] __lockdep_acquire+0xb4d/0xc06
 [<ffffffff8026c058>] _spin_unlock_irq+0x2b/0x33
 [<ffffffff802a1cf6>] trace_hardirqs_on+0xdd/0x124
 [<ffffffff8026c058>] _spin_unlock_irq+0x2b/0x33
 [<ffffffff802662bd>] error_exit+0x0/0x8e
 [<ffffffff80268f0a>] thread_return+0x63/0x103
 [<ffffffff80271812>] do_IRQ+0x5f/0x7d
 [<ffffffff8025f491>] mwait_idle+0x0/0x54
 [<ffffffff80265a89>] ret_from_intr+0x0/0xf
 <EOI> [<ffffffff8045c748>] rtnetlink_rcv+0x54/0x58
 [<ffffffff8036bb09>] irqsafe4_soft_spin_321+0x64/0xe0
 [<ffffffff8036bb0a>] irqsafe4_soft_spin_321+0x65/0xe0
 [<ffffffff8036bb0d>] irqsafe4_soft_spin_321+0x68/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbba>] irqsafe4_soft_rlock_123+0x35/0xe0
 [<ffffffff8036bbbd>] irqsafe4_soft_rlock_123+0x38/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc6a>] irqsafe4_soft_rlock_132+0x5/0xe0
 [<ffffffff8036bc6d>] irqsafe4_soft_rlock_132+0x8/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd1a>] irqsafe4_soft_rlock_132+0xb5/0xe0
 [<ffffffff8036bd1d>] irqsafe4_soft_rlock_132+0xb8/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdca>] irqsafe4_soft_rlock_213+0x85/0xe0
 [<ffffffff8036bdcd>] irqsafe4_soft_rlock_213+0x88/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be7a>] irqsafe4_soft_rlock_231+0x55/0xe0
 [<ffffffff8036be7d>] irqsafe4_soft_rlock_231+0x58/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf50>] irqsafe4_soft_rlock_312+0x4b/0xe0
 [<ffffffff8036bf53>] irqsafe4_soft_rlock_312+0x4e/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c026>] irqsafe4_soft_rlock_321+0x41/0xe0
 [<ffffffff8036c029>] irqsafe4_soft_rlock_321+0x44/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fc>] irqsafe4_soft_wlock_123+0x37/0xe0
 [<ffffffff8036c0ff>] irqsafe4_soft_wlock_123+0x3a/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d2>] irqsafe4_soft_wlock_132+0x2d/0xe0
 [<ffffffff8036c1d5>] irqsafe4_soft_wlock_132+0x30/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a8>] irqsafe4_soft_wlock_213+0x23/0xe0
 [<ffffffff8036c2ab>] irqsafe4_soft_wlock_213+0x26/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37e>] irqsafe4_soft_wlock_231+0x19/0xe0
 [<ffffffff8036c381>] irqsafe4_soft_wlock_231+0x1c/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c454>] irqsafe4_soft_wlock_312+0xf/0xe0
 [<ffffffff8036c457>] irqsafe4_soft_wlock_312+0x12/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c52a>] irqsafe4_soft_wlock_321+0x5/0xe0
 [<ffffffff8036c52d>] irqsafe4_soft_wlock_321+0x8/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c600>] irqsafe4_soft_wlock_321+0xdb/0xe0
 [<ffffffff8036c603>] irqsafe4_soft_wlock_321+0xde/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d6>] irq_inversion_soft_spin_123+0xd1/0xe0
 [<ffffffff8036c6d9>] irq_inversion_soft_spin_123+0xd4/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ac>] irq_inversion_soft_spin_132+0xc7/0xe0
 [<ffffffff8036c7af>] irq_inversion_soft_spin_132+0xca/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c882>] irq_inversion_soft_spin_213+0xbd/0xe0
 [<ffffffff8036c885>] irq_inversion_soft_spin_213+0xc0/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c958>] irq_inversion_soft_spin_231+0xb3/0xe0
 [<ffffffff8036c95b>] irq_inversion_soft_spin_231+0xb6/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2e>] irq_inversion_soft_spin_312+0xa9/0xe0
 [<ffffffff8036ca31>] irq_inversion_soft_spin_312+0xac/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb04>] irq_inversion_soft_spin_321+0x9f/0xe0
 [<ffffffff8036cb07>] irq_inversion_soft_spin_321+0xa2/0xe0
 [<ffffffff8036cbd9>] irq_inversion_soft_rlock_123+0x94/0xe0
Unable to handle kernel paging request at ffffffff82800000 RIP:
 [<ffffffff8026fef9>] show_trace+0x152/0x1a2
PGD 203027 PUD 205027 PMD 0
Oops: 0000 [4] SMP
last sysfs file:
CPU 0
Modules linked in:
Pid: 0, comm: idle Not tainted 2.6.17-rc5-mm2 #1
RIP: 0010:[<ffffffff8026fef9>]  [<ffffffff8026fef9>] show_trace+0x152/0x1a2
RSP: 0000:ffffffff8065e758  EFLAGS: 00010006
RAX: 0000000000000000 RBX: b100000000000074 RCX: 0000000000000000
RDX: ffffffff805923e0 RSI: 0000000000000001 RDI: ffffffff8059e680
RBP: ffffffff8065e798 R08: 0000000000000003 R09: ffffffff804c6873
R10: 0000000000000000 R11: 0000000000000002 R12: ffffffff827ffff9
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffffffff808f8000(0000) knlGS:0000000000000000
CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: ffffffff82800000 CR3: 0000000000201000 CR4: 00000000000006e0
Process idle (pid: 0, threadinfo ffffffff8090a000, task ffffffff805923e0)
Stack: ffffffff80218050 0000000000000001 000000008065e798 ffffffff8065ea60
       000000000000000a ffffffff8065afc0 ffffffff8065efc0 0000000000000000
       ffffffff8065e7e8 ffffffff80270049
Call Trace:
 <IRQ> [<ffffffff80218050>] release_console_sem+0x20/0x247
 [<ffffffff80270049>] _show_stack+0xe9/0xf8
 [<ffffffff802700e4>] show_registers+0x8c/0x101
 [<ffffffff802701f9>] __die+0xa0/0xe3
 [<ffffffff8020b16e>] do_page_fault+0x86e/0x9c4
 [<ffffffff802a2bfd>] __lockdep_acquire+0xb4d/0xc06
 [<ffffffff802662bd>] error_exit+0x0/0x8e
 [<ffffffff8026fef9>] show_trace+0x152/0x1a2
 [<ffffffff8026ff05>] show_trace+0x15e/0x1a2
 [<ffffffff80218050>] release_console_sem+0x20/0x247
 [<ffffffff80270049>] _show_stack+0xe9/0xf8
 [<ffffffff802700e4>] show_registers+0x8c/0x101
 [<ffffffff802701f9>] __die+0xa0/0xe3
 [<ffffffff8020b16e>] do_page_fault+0x86e/0x9c4
 [<ffffffff802a2bfd>] __lockdep_acquire+0xb4d/0xc06
 [<ffffffff802662bd>] error_exit+0x0/0x8e
 [<ffffffff8026fef9>] show_trace+0x152/0x1a2
 [<ffffffff8026ff05>] show_trace+0x15e/0x1a2
 [<ffffffff80218050>] release_console_sem+0x20/0x247
 [<ffffffff80265aa9>] exit_intr+0x11/0x1a
 [<ffffffff80270049>] _show_stack+0xe9/0xf8
 [<ffffffff802700e4>] show_registers+0x8c/0x101
 [<ffffffff802701f9>] __die+0xa0/0xe3
 [<ffffffff8020b16e>] do_page_fault+0x86e/0x9c4
 [<ffffffff802a2bfd>] __lockdep_acquire+0xb4d/0xc06
 [<ffffffff8026c058>] _spin_unlock_irq+0x2b/0x33
 [<ffffffff802a1cf6>] trace_hardirqs_on+0xdd/0x124
 [<ffffffff8026c058>] _spin_unlock_irq+0x2b/0x33
 [<ffffffff802662bd>] error_exit+0x0/0x8e
 [<ffffffff80268f0a>] thread_return+0x63/0x103
 [<ffffffff80271812>] do_IRQ+0x5f/0x7d
 [<ffffffff8025f491>] mwait_idle+0x0/0x54
 [<ffffffff80265a89>] ret_from_intr+0x0/0xf
 <EOI> [<ffffffff8045c748>] rtnetlink_rcv+0x54/0x58
 [<ffffffff8036bb09>] irqsafe4_soft_spin_321+0x64/0xe0
 [<ffffffff8036bb0a>] irqsafe4_soft_spin_321+0x65/0xe0
 [<ffffffff8036bb0d>] irqsafe4_soft_spin_321+0x68/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbb9>] irqsafe4_soft_rlock_123+0x34/0xe0
 [<ffffffff8036bbba>] irqsafe4_soft_rlock_123+0x35/0xe0
 [<ffffffff8036bbbd>] irqsafe4_soft_rlock_123+0x38/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc69>] irqsafe4_soft_rlock_132+0x4/0xe0
 [<ffffffff8036bc6a>] irqsafe4_soft_rlock_132+0x5/0xe0
 [<ffffffff8036bc6d>] irqsafe4_soft_rlock_132+0x8/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd19>] irqsafe4_soft_rlock_132+0xb4/0xe0
 [<ffffffff8036bd1a>] irqsafe4_soft_rlock_132+0xb5/0xe0
 [<ffffffff8036bd1d>] irqsafe4_soft_rlock_132+0xb8/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdc9>] irqsafe4_soft_rlock_213+0x84/0xe0
 [<ffffffff8036bdca>] irqsafe4_soft_rlock_213+0x85/0xe0
 [<ffffffff8036bdcd>] irqsafe4_soft_rlock_213+0x88/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be79>] irqsafe4_soft_rlock_231+0x54/0xe0
 [<ffffffff8036be7a>] irqsafe4_soft_rlock_231+0x55/0xe0
 [<ffffffff8036be7d>] irqsafe4_soft_rlock_231+0x58/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf4f>] irqsafe4_soft_rlock_312+0x4a/0xe0
 [<ffffffff8036bf50>] irqsafe4_soft_rlock_312+0x4b/0xe0
 [<ffffffff8036bf53>] irqsafe4_soft_rlock_312+0x4e/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c025>] irqsafe4_soft_rlock_321+0x40/0xe0
 [<ffffffff8036c026>] irqsafe4_soft_rlock_321+0x41/0xe0
 [<ffffffff8036c029>] irqsafe4_soft_rlock_321+0x44/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fb>] irqsafe4_soft_wlock_123+0x36/0xe0
 [<ffffffff8036c0fc>] irqsafe4_soft_wlock_123+0x37/0xe0
 [<ffffffff8036c0ff>] irqsafe4_soft_wlock_123+0x3a/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d1>] irqsafe4_soft_wlock_132+0x2c/0xe0
 [<ffffffff8036c1d2>] irqsafe4_soft_wlock_132+0x2d/0xe0
 [<ffffffff8036c1d5>] irqsafe4_soft_wlock_132+0x30/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a7>] irqsafe4_soft_wlock_213+0x22/0xe0
 [<ffffffff8036c2a8>] irqsafe4_soft_wlock_213+0x23/0xe0
 [<ffffffff8036c2ab>] irqsafe4_soft_wlock_213+0x26/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37d>] irqsafe4_soft_wlock_231+0x18/0xe0
 [<ffffffff8036c37e>] irqsafe4_soft_wlock_231+0x19/0xe0
 [<ffffffff8036c381>] irqsafe4_soft_wlock_231+0x1c/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c453>] irqsafe4_soft_wlock_312+0xe/0xe0
 [<ffffffff8036c454>] irqsafe4_soft_wlock_312+0xf/0xe0
 [<ffffffff8036c457>] irqsafe4_soft_wlock_312+0x12/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c529>] irqsafe4_soft_wlock_321+0x4/0xe0
 [<ffffffff8036c52a>] irqsafe4_soft_wlock_321+0x5/0xe0
 [<ffffffff8036c52d>] irqsafe4_soft_wlock_321+0x8/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c5ff>] irqsafe4_soft_wlock_321+0xda/0xe0
 [<ffffffff8036c600>] irqsafe4_soft_wlock_321+0xdb/0xe0
 [<ffffffff8036c603>] irqsafe4_soft_wlock_321+0xde/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d5>] irq_inversion_soft_spin_123+0xd0/0xe0
 [<ffffffff8036c6d6>] irq_inversion_soft_spin_123+0xd1/0xe0
 [<ffffffff8036c6d9>] irq_inversion_soft_spin_123+0xd4/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ab>] irq_inversion_soft_spin_132+0xc6/0xe0
 [<ffffffff8036c7ac>] irq_inversion_soft_spin_132+0xc7/0xe0
 [<ffffffff8036c7af>] irq_inversion_soft_spin_132+0xca/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c881>] irq_inversion_soft_spin_213+0xbc/0xe0
 [<ffffffff8036c882>] irq_inversion_soft_spin_213+0xbd/0xe0
 [<ffffffff8036c885>] irq_inversion_soft_spin_213+0xc0/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c957>] irq_inversion_soft_spin_231+0xb2/0xe0
 [<ffffffff8036c958>] irq_inversion_soft_spin_231+0xb3/0xe0
 [<ffffffff8036c95b>] irq_inversion_soft_spin_231+0xb6/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2d>] irq_inversion_soft_spin_312+0xa8/0xe0
 [<ffffffff8036ca2e>] irq_inversion_soft_spin_312+0xa9/0xe0
 [<ffffffff8036ca31>] irq_inversion_soft_spin_312+0xac/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb03>] irq_inversion_soft_spin_321+0x9e/0xe0
 [<ffffffff8036cb04>] irq_inversion_soft_spin_321+0x9f/0xe0
 [<ffffffff8036cb07>] irq_inversion_soft_spin_321+0xa2/0xe0

apkm: the x.tar.bz2 from a day ago that I tried works fine, so it's something that has gone into -mm in the last 24 or so hours...

reuben

#13 lore raw
In reply to Ingo Molnar
Quoted 1 line

Jan, the dwarf2 unwinder apparently fails if we call a NULL function.

That is expected behavior, as a NULL program counter (to the unwinder) means end-of-stack-frames. It can't do anything in that case, so the only solution I see is to either
- not at all call the unwinder from trap.c if the instruction pointer before the first unwind is not within kernel space, or
- force fall-through to the old logic if the first unwind attempt didn't yield a change to either rIP or rSP (implying that in that case there was no unwind information found to start with).

What do you think?

Jan

#32 lore raw

Re: 2.6.17-rc5-mm2 md cause BUGs, and readahead speedup

In reply to Andrew Morton

The good stuff first, bootup went from 55s to 43s according to bootchart. :-) Probably the readahead stuff.

I got some BUG messages in dmesg though, they
seem related to md initialization:

Freeing unused kernel memory: 236k freed
md: Autodetecting RAID arrays.

BUG: warning at fs/block_dev.c:944/do_open()
<c015748d> do_open+0x2e8/0x2ed  <c025d905> cfb_imageblit+0x85/0x550
<c02537e9> soft_cursor+0x13d/0x1a4  <c0166446> iget5_locked+0xe6/0x14e
<c0157668> bdev_test+0x0/0xc  <c0156aec> bdget+0xd6/0xde
<c015763d> open_partition_by_devnum+0x69/0x7c  <c034dcfa> md_import_device+0x78/0x24b
<c023aedc> kobject_register+0x30/0x35  <c034cdf3> md_probe+0x12e/0x16b
<c03506ef> md_ioctl+0x27a/0x154b  <c034f857> md_open+0x48/0x4f
<c01573d2> do_open+0x22d/0x2ed  <c015c659> do_lookup+0x47/0x126
<c02a84f4> scrup+0xca/0xd4  <c016422f> dput+0xba/0x177
<c015cee9> __link_path_walk+0x7b1/0xc37  <c0252d37> bit_cursor+0x34d/0x5c3
<c01674a0> mntput_no_expire+0x13/0x52  <c0350475> md_ioctl+0x0/0x154b
<c023413c> blkdev_driver_ioctl+0x42/0x44  <c02343a9> blkdev_ioctl+0x242/0x759
<c0166446> iget5_locked+0xe6/0x14e  <c0157668> bdev_test+0x0/0xc
<c0156aec> bdget+0xd6/0xde  <c0157674> bdev_set+0x0/0x8
<c0157492> blkdev_open+0x0/0x4c  <c01574ae> blkdev_open+0x1c/0x4c
<c014fb0c> __dentry_open+0xe4/0x1a3  <c014fc58> nameidata_to_filp+0x31/0x3a
<c014fc9a> do_filp_open+0x39/0x40  <c0156907> block_ioctl+0x18/0x1d
<c01568ef> block_ioctl+0x0/0x1d  <c015f5c9> do_ioctl+0x19/0x55
<c015f657> vfs_ioctl+0x52/0x247  <c015f880> sys_ioctl+0x34/0x50
<c0468027> syscall_call+0x7/0xb  <c046007b> sctp_getsockopt+0x7a0/0x147f
BUG: warning at fs/block_dev.c:944/do_open()
<c015748d> do_open+0x2e8/0x2ed  <c02ec589> ide_do_request+0x6c2/0x894
<c0237dd7> cfq_insert_request+0x6b/0x4a5  <c0230fa3> blk_remove_plug+0x25/0x5c
<c023100b> __generic_unplug_device+0x1f/0x25  <c0233e63> __make_request+0x108/0x395
<c0166446> iget5_locked+0xe6/0x14e  <c0157668> bdev_test+0x0/0xc
<c0156aec> bdget+0xd6/0xde  <c015763d> open_partition_by_devnum+0x69/0x7c
<c034dcfa> md_import_device+0x78/0x24b  <c023aedc> kobject_register+0x30/0x35
<c034cdf3> md_probe+0x12e/0x16b  <c03506ef> md_ioctl+0x27a/0x154b
<c034f857> md_open+0x48/0x4f  <c01573d2> do_open+0x22d/0x2ed
<c015c659> do_lookup+0x47/0x126  <c02a84f4> scrup+0xca/0xd4
<c016422f> dput+0xba/0x177  <c015cee9> __link_path_walk+0x7b1/0xc37
<c0252d37> bit_cursor+0x34d/0x5c3  <c01674a0> mntput_no_expire+0x13/0x52
<c0350475> md_ioctl+0x0/0x154b  <c023413c> blkdev_driver_ioctl+0x42/0x44
<c02343a9> blkdev_ioctl+0x242/0x759  <c0166446> iget5_locked+0xe6/0x14e
<c0157668> bdev_test+0x0/0xc  <c0156aec> bdget+0xd6/0xde
<c0157674> bdev_set+0x0/0x8  <c0157492> blkdev_open+0x0/0x4c
<c01574ae> blkdev_open+0x1c/0x4c  <c014fb0c> __dentry_open+0xe4/0x1a3
<c014fc58> nameidata_to_filp+0x31/0x3a  <c014fc9a> do_filp_open+0x39/0x40
<c0156907> block_ioctl+0x18/0x1d  <c01568ef> block_ioctl+0x0/0x1d
<c015f5c9> do_ioctl+0x19/0x55  <c015f657> vfs_ioctl+0x52/0x247
<c015f880> sys_ioctl+0x34/0x50  <c0468027> syscall_call+0x7/0xb
<c046007b> sctp_getsockopt+0x7a0/0x147f

md: autorun ...
md: considering hdb1 ...
.
.
.
hda: cache flushes not supported
hdb: cache flushes not supported
md: md_d0 stopped.

BUG: warning at fs/block_dev.c:944/do_open()
<c015748d> do_open+0x2e8/0x2ed  <c0238ea7> cfq_set_request+0x1d3/0x33f
<c0237dd7> cfq_insert_request+0x6b/0x4a5  <c022ffe4> elv_insert+0xdd/0x142
<c0154561> bio_phys_segments+0x14/0x16  <c0233e49> __make_request+0xee/0x395
<c016598b> find_inode+0x37/0x61  <c01661ce> ifind+0x29/0x61
<c01663bc> iget5_locked+0x5c/0x14e  <c0157668> bdev_test+0x0/0xc
<c0156a4c> bdget+0x36/0xde  <c015763d> open_partition_by_devnum+0x69/0x7c
<c034dcfa> md_import_device+0x78/0x24b  <c04664f8> schedule+0x2a2/0x5ef
<c01663bc> iget5_locked+0x5c/0x14e  <c035162f> md_ioctl+0x11ba/0x154b
<c0231000> __generic_unplug_device+0x14/0x25  <c0466853> io_schedule+0xe/0x16
<c0132a5f> find_get_pages_tag+0x27/0x66  <c0350475> md_ioctl+0x0/0x154b
<c023413c> blkdev_driver_ioctl+0x42/0x44  <c02343a9> blkdev_ioctl+0x242/0x759
<c013a42a> release_pages+0x2a/0x175  <c0132990> find_get_pages+0x19/0x49
<c0467089> mutex_lock+0xb/0x1a  <c02f46dc> ide_disk_put+0x1c/0x27
<c02f52bd> idedisk_release+0x45/0xc6  <c0165383> iput+0x35/0x62
<c0156f14> __blkdev_put+0x77/0x187  <c0165383> iput+0x35/0x62
<c0156f84> __blkdev_put+0xe7/0x187  <c0156907> block_ioctl+0x18/0x1d
<c01568ef> block_ioctl+0x0/0x1d  <c015f5c9> do_ioctl+0x19/0x55
<c015f657> vfs_ioctl+0x52/0x247  <c015f880> sys_ioctl+0x34/0x50
<c0467fbd> sysenter_past_esp+0x56/0x79

md: bind<hdb2>
raid1: raid set md_d0 active with 1 out of 2 mirrors

The machine seems to work fine. (That degraded array is degraded on purpose.)

Helge Hafting

#33 lore raw

Re: 2.6.17-rc5-mm2 md cause BUGs, and readahead speedup

Quoted 10 lines · Helge Hafting

The good stuff first, bootup went from 55s to 43s according to bootchart. :-)
Probably the readahead stuff.

I got some BUG messages in dmesg though, they
seem related to md initialization:

Freeing unused kernel memory: 236k freed
md: Autodetecting RAID arrays.

BUG: warning at fs/block_dev.c:944/do_open()

we're working on fixing this already; the warning appears to be an over-eager assert but we need to validate that some more first

#34 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

In reply to Andrew Morton

Hello,

here are small link issues on s390.

...

  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1

init/built-in.o(.init.text+0x564): In function `start_kernel':
: undefined reference to early_init_irq_lock_type' lib/built-in.o(.text+0xaf6): In function __iowrite64_copy':
: undefined reference to `__raw_writeq'
make: *** [.tmp_vmlinux1] Error 1

I think the early_init_irq_lock_type() undef is related to the lock-validator patch. Shall I just :

init/main.c +2 -0
@@ -473,7 +473,9 @@
 
        local_irq_disable();
        early_boot_irqs_off();
+#ifdef CONFIG_GENERIC_HARDIRQS
        early_init_irq_lock_type();
+#endif
 
 

too easy ... the lock-validator should be ported to s390 I guess. What are the steps to follow ?

As for the `__iowrite64_copy', shall we :

#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b)) #define __raw_writeq writeq

For the moment, it boots but I'd like to make sure i'm in the right direction before sending patches. However, the following one is safe and fixes a very small compil issue on s390 in klibc.

thanks,

C.

--

 usr/klibc/arch/s390/mmap.c |    1 +
 1 files changed, 1 insertion(+)
usr/klibc/arch/s390/mmap.c +1 -0
Index: 2.6.17-rc5-mm2/usr/klibc/arch/s390/mmap.c
===================================================================
@@ -1,5 +1,6 @@
 #include <sys/types.h>
 #include <linux/unistd.h>
+#include <errno.h>
 
 struct mmap_arg_struct {
        unsigned long addr;
#35 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

Quoted 8 lines · Cedric Le Goater

here are small link issues on s390.

...

  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
Quoted 5 lines

init/built-in.o(.init.text+0x564): In function `start_kernel':
: undefined reference to early_init_irq_lock_type' lib/built-in.o(.text+0xaf6): In function __iowrite64_copy':
: undefined reference to `__raw_writeq'
make: *** [.tmp_vmlinux1] Error 1

I will try.

Quoted 14 lines

I think the early_init_irq_lock_type() undef is related to the lock-validator patch. Shall I just :

init/main.c +2 -0
@@ -473,7 +473,9 @@
 
        local_irq_disable();
        early_boot_irqs_off();
+#ifdef CONFIG_GENERIC_HARDIRQS
        early_init_irq_lock_type();
+#endif
 
 
Quoted 2 lines

too easy ... the lock-validator should be ported to s390 I guess. What are the steps to follow ?

Can't comment on the port issues yet but we plan to add the s390 support to the lock-validator. It is just a cool debugging tool.

Quoted 4 lines

As for the `__iowrite64_copy', shall we :

#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b)) #define __raw_writeq writeq

Seems reasonable. __io_wirt() is a nop, so you are simply writing to the specified address.

Quoted 3 lines

For the moment, it boots but I'd like to make sure i'm in the right direction before sending patches. However, the following one is safe and fixes a very small compil issue on s390 in klibc.

Patches that fix compile problems are always fine with me. If it turns out wrong for some obscure reason we can fix it up later.

Signature · 8 lines
blue skies,
  Martin.

Martin Schwidefsky
Linux for zSeries Development & Services
IBM Deutschland Entwicklung GmbH

"Reality continues to ruin my life." - Calvin.
#36 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

Quoted 2 lines · Martin Schwidefsky

Can't comment on the port issues yet but we plan to add the s390 support to the lock-validator. It is just a cool debugging tool.

OK. So I'll keep my #ifdef hack for the moment.

Quoted 2 lines

Seems reasonable. __io_wirt() is a nop, so you are simply writing to the specified address.

Here it is,

thanks !

C.

This patch adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

---
 include/asm-s390/io.h |    5 +++++
 1 files changed, 5 insertions(+)
include/asm-s390/io.h +5 -0
Index: 2.6.17-rc5-mm2/include/asm-s390/io.h
===================================================================
@@ -86,20 +86,25 @@
 #define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
 #define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
 #define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#define readq(addr) (*(volatile unsigned long *) __io_virt(addr))
 
 #define readb_relaxed(addr) readb(addr)
 #define readw_relaxed(addr) readw(addr)
 #define readl_relaxed(addr) readl(addr)
+#define readq_relaxed(addr) readq(addr)
 #define __raw_readb readb
 #define __raw_readw readw
 #define __raw_readl readl
+#define __raw_readq readq
 
 #define writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))
 #define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
 #define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b))
 #define __raw_writeb writeb
 #define __raw_writew writew
 #define __raw_writel writel
+#define __raw_writeq writeq
 
 #define memset_io(a,b,c)        memset(__io_virt(a),(b),(c))
 #define memcpy_fromio(a,b,c)    memcpy((a),__io_virt(b),(c))
#42 lore raw
In reply to Andrew Morton

Andrew Morton napsal(a):

Quoted 2 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

Hello,

just another locking bug, I wonder if this wasn't discussed yet, but I can't find it.

============================
[ BUG: illegal lock usage! ]
----------------------------
illegal {hardirq-on-W} -> {in-hardirq-R} usage.
events/0/8 [HC1[1]:SC0[0]:HE0:SE1] takes:
(hl_irqs_lock){--+.}, at: [<f88e4e09>] highlevel_host_reset+0x15/0x63 [ieee1394]
{hardirq-on-W} state was registered at:

  [<c013e3af>] lockdep_acquire+0x59/0x6e
  [<c03a982c>] _write_lock+0x3e/0x4c
  [<f88e5772>] hpsb_register_highlevel+0xe1/0x123 [ieee1394]
  [<f88e5fd1>] init_csr+0x2f/0x46 [ieee1394]
  [<f883a1a8>] 0xf883a1a8
  [<c0144e9a>] sys_init_module+0x151/0x1c97
  [<c03aa13b>] syscall_call+0x7/0xb
irq event stamp: 380
hardirqs last  enabled at (379): [<c03aa183>] restore_nocheck+0x12/0x15
hardirqs last disabled at (380): [<c01038df>] common_interrupt+0x1b/0x2c
softirqs last  enabled at (0): [<c011f8c1>] copy_process+0x577/0x157e
softirqs last disabled at (0): [<00000000>] 0x0

other info that might help us debug this:
no locks held by events/0/8.

stack backtrace:
 [<c0103f56>] show_trace+0x1b/0x1d
 [<c0104694>] dump_stack+0x26/0x28
 [<c013c1f4>] print_usage_bug+0x22a/0x234
 [<c013cc24>] mark_lock+0x565/0x6b0
 [<c013d748>] __lockdep_acquire+0x3b8/0xc3b
 [<c013e3af>] lockdep_acquire+0x59/0x6e
 [<c03a94a3>] _read_lock+0x3e/0x4c
 [<f88e4e09>] highlevel_host_reset+0x15/0x63 [ieee1394]
 [<f88e27f3>] hpsb_selfid_complete+0x222/0x2fe [ieee1394]
 [<f895fe83>] ohci_irq_handler+0x705/0x9d2 [ohci1394]
 [<c014b30d>] handle_IRQ_event+0x31/0x65
 [<c014c52f>] handle_fasteoi_irq+0x6f/0xc8
 [<c0105b3a>] do_IRQ+0x61/0x87
 =======================
 [<c01038e9>] common_interrupt+0x25/0x2c
 [<f895bb65>] set_phy_reg+0x94/0x107 [ohci1394]
 [<f895c488>] ohci_devctl+0x43a/0x651 [ohci1394]
 [<f88e2034>] hpsb_reset_bus+0x34/0x38 [ieee1394]
 [<f88e43bc>] delayed_reset_bus+0xa5/0xf3 [ieee1394]
 [<c01333b7>] run_workqueue+0x7e/0xf5
 [<c0133fd5>] worker_thread+0x130/0x14b
 [<c0136f47>] kthread+0xc5/0xea
 [<c0101005>] kernel_thread_helper+0x5/0xb
Signature · 3 lines
Jiri Slaby         www.fi.muni.cz/~xslaby
\_.-^-._   [email protected]   _.-^-._/
B67499670407CE62ACC8 22A032CC55C339D47A7E
#43 lore raw
Quoted 8 lines · Jiri Slaby

Andrew Morton napsal(a):

Quoted 2 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

Hello,

just another locking bug, I wonder if this wasn't discussed yet, but I can't find it.

this appears to be a genuine bug:

Quoted 10 lines

============================
[ BUG: illegal lock usage! ]
----------------------------
illegal {hardirq-on-W} -> {in-hardirq-R} usage.
events/0/8 [HC1[1]:SC0[0]:HE0:SE1] takes:
(hl_irqs_lock){--+.}, at: [<f88e4e09>] highlevel_host_reset+0x15/0x63 [ieee1394]
{hardirq-on-W} state was registered at:

  [<c013e3af>] lockdep_acquire+0x59/0x6e
  [<c03a982c>] _write_lock+0x3e/0x4c
  [<f88e5772>] hpsb_register_highlevel+0xe1/0x123 [ieee1394]

hpsb_register_highlevel() does

	        write_lock(&hl_irqs_lock);

which is not irq safe
yet

Quoted 3 lines
stack backtrace:
 [<c03a94a3>] _read_lock+0x3e/0x4c
 [<f88e4e09>] highlevel_host_reset+0x15/0x63 [ieee1394]

the highlevel_host_reset function

Quoted 6 lines
 [<f88e27f3>] hpsb_selfid_complete+0x222/0x2fe [ieee1394]
 [<f895fe83>] ohci_irq_handler+0x705/0x9d2 [ohci1394]
 [<c014b30d>] handle_IRQ_event+0x31/0x65
 [<c014c52f>] handle_fasteoi_irq+0x6f/0xc8
 [<c0105b3a>] do_IRQ+0x61/0x87
 =======================

calls read_lock() from irq context.

this appears to be a genuine and real deadlock

#48 lore raw
In reply to Andrew Morton

Hi,

Quoted 3 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

I don't know why, but first bug appears only when avahi-daemon is started. Second look like a problem with my camera.
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_1.jpg
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

Here is config http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/mm-config

Regards,
Michal

Signature · 3 lines
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)
#14 lore raw
In reply to Jan Beulich
Quoted 3 lines · On Thu, 01 Jun 2006 14:20:24 +0200 "Jan Beulich" <[email protected]> wrote:
Quoted 1 line

Jan, the dwarf2 unwinder apparently fails if we call a NULL function.

That is expected behavior, as a NULL program counter (to the unwinder) means end-of-stack-frames.

Is it actually _expected_ that we'll encounter a NULL EIP during the unwind?

Because if it is not, then this is a good indication that the unwind attempt hasn't worked, so we should fall back to some other approach if we encounter a NULL at _any_ point in the backtrace, not the start.

Creating too much information is waaaaaaaaaaay better than creating too little. (This is a case in point - we're trying to fix a bug here and the unwinder is preventing that).

In fact, if there's any means at all by which we can detect that something has gone wrong with the unwind we should fall back.

Quoted 8 lines

It can't do anything
in that case, so the only solution I see is to either
- not at all call the unwinder from trap.c if the instruction pointer before the first unwind is not within kernel space, or
- force fall-through to the old logic if the first unwind attempt didn't yield a change to either rIP or rSP (implying that in that case there was no unwind information found to start with).

What do you think?

- Make the code robust and able to detect "unexpected" states at all points through the process. If at the end of the process we see that we have encountered an unexpected state,

- emit a diagnostic so Jan can work out if there's a way to improve the unwinder in this situation

- do a traditional backtrace as well.

#11 lore raw
In reply to Reuben Farrelly
Quoted 2 lines · On Thu, 01 Jun 2006 23:59:30 +1200 Reuben Farrelly <[email protected]> wrote:
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
  [<0000000000000000>]

Seems that a fix got lost. Please add this:

From: Ingo Molnar <[email protected]>

This is a fixed up and cleaned up replacement for genirq-msi-fixes.patch, which should solve the i386 4KSTACKS problem. I also added Ben's idea of pushing the __do_IRQ() check into generic_handle_irq().

I booted this with MSI enabled, but i only have MSI devices, not MSI-X devices. I'd still expect MSI-X to work now.

irqchip migration helper: call __do_IRQ() if a descriptor is attached to an irqtype-style controller. This also fixes MSI-X IRQ handling on i386 and x86_64.

Cc Thomas Gleixner <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Roland Dreier <[email protected]>

---

 arch/i386/kernel/irq.c |    5 +++++
 include/linux/irq.h    |   27 ++++++++++++++++-----------
 2 files changed, 21 insertions(+), 11 deletions(-)
arch/i386/kernel/irq.c renamed from arch/i386/kernel/irq.c~genirq-msi-fixes-2 +5 -0
diff -puN arch/i386/kernel/irq.c~genirq-msi-fixes-2 arch/i386/kernel/irq.c
@@ -77,6 +77,10 @@ fastcall unsigned int do_IRQ(struct pt_r
 	}
 #endif
 
+	if (!irq_desc[irq].handle_irq) {
+		__do_IRQ(irq, regs);
+		goto out_exit;
+	}
 #ifdef CONFIG_4KSTACKS
 
 	curctx = (union irq_ctx *) current_thread_info();
@@ -109,6 +113,7 @@ fastcall unsigned int do_IRQ(struct pt_r
 #endif
 		desc->handle_irq(irq, desc, regs);
 
+out_exit:
 	irq_exit();
 
 	return 1;
include/linux/irq.h renamed from include/linux/irq.h~genirq-msi-fixes-2 +16 -11
diff -puN include/linux/irq.h~genirq-msi-fixes-2 include/linux/irq.h
@@ -178,17 +178,6 @@ typedef struct irq_desc		irq_desc_t;
  */
 #include <asm/hw_irq.h>
 
-/*
- * Architectures call this to let the generic IRQ layer
- * handle an interrupt:
- */
-static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs)
-{
-	struct irq_desc *desc = irq_desc + irq;
-
-	desc->handle_irq(irq, desc, regs);
-}
-
 extern int setup_irq(unsigned int irq, struct irqaction *new);
 
 #ifdef CONFIG_GENERIC_HARDIRQS
@@ -326,6 +315,22 @@ handle_irq_name(void fastcall (*handle)(
  */
 extern fastcall unsigned int __do_IRQ(unsigned int irq, struct pt_regs *regs);
 
+/*
+ * Architectures call this to let the generic IRQ layer
+ * handle an interrupt. If the descriptor is attached to an
+ * irqchip-style controller then we call the ->handle_irq() handler,
+ * and it calls __do_IRQ() if it's attached to an irqtype-style controller.
+ */
+static inline void generic_handle_irq(unsigned int irq, struct pt_regs *regs)
+{
+	struct irq_desc *desc = irq_desc + irq;
+
+	if (likely(desc->handle_irq))
+		desc->handle_irq(irq, desc, regs);
+	else
+		__do_IRQ(irq, regs);
+}
+
 /* Handling of unhandled and spurious interrupts: */
 extern void note_interrupt(unsigned int irq, struct irq_desc *desc,
 			   int action_ret, struct pt_regs *regs);

_

#28 lore raw

Re: 2.6.17-rc5-mm2 another compile error

In reply to Helge Hafting
Quoted 7 lines · On Thu, 01 Jun 2006 13:42:35 +0200 Helge Hafting <[email protected]>…

CC drivers/dma/ioatdma.o
drivers/dma/ioatdma.c: In function ‘ioat_init_module’:
drivers/dma/ioatdma.c:828: error: dereferencing pointer to incomplete type make[2]: *** [drivers/dma/ioatdma.o] Error 1
make[1]: *** [drivers/dma] Error 2
make: *** [drivers] Error 2

        if (THIS_MODULE != NULL)
                THIS_MODULE->unsafe = 1;

Chris, this won't compile with CONFIG_MODULES=n.

If module unloading is unsafe (why?) then a suitable workaround would be to take an additional ref on the module (__module_get()) so that it cannot be unloaded.

#31 lore raw

Re: 2.6.17-rc5-mm2 stack unwind compile failure

In reply to Helge Hafting
Quoted 12 lines · On Thu, 01 Jun 2006 13:54:24 +0200 Helge Hafting <[email protected]>…

2.6.17-rc5-mm2 with the cfq hotfix:

CC kernel/unwind.o
kernel/unwind.c: In function ‘unwind_add_table’:
kernel/unwind.c:189: error: dereferencing pointer to incomplete type kernel/unwind.c:190: error: dereferencing pointer to incomplete type kernel/unwind.c:190: error: dereferencing pointer to incomplete type kernel/unwind.c:191: error: dereferencing pointer to incomplete type kernel/unwind.c:191: error: dereferencing pointer to incomplete type make[1]: *** [kernel/unwind.o] Error 1
make: *** [kernel] Error 2

Jan, you have a CONFIG_MODULES=n problem.

#44 lore raw
In reply to Arjan van de Ven
Quoted 11 lines · Arjan van de Ven
Quoted 8 lines · Jiri Slaby

Andrew Morton napsal(a):

Quoted 2 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

Hello,

just another locking bug, I wonder if this wasn't discussed yet, but I can't find it.

this appears to be a genuine bug:

Probably just dumb luck we haven't noticed it before. Thanks for the catch.

Signature · 4 lines
Ubuntu     - http://www.ubuntu.com/
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
SwissDisk  - http://www.swissdisk.com/
#49 lore raw
In reply to Michal Piotrowski
Quoted 10 lines · On Thu, 1 Jun 2006 17:51:16 +0200 "Michal Piotrowski"…

Hi,

Quoted 3 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

I don't know why, but first bug appears only when avahi-daemon is started. Second look like a problem with my camera.
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_1.jpg

For some reason the lockdep code expected that hardirqs would be enabled.

Quoted 1 line

http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

So it's claiming that we're taking multiple i_mutexes.

I can't immediately see where we took the outermost i_mutex there. Nor is it immediately obvious why this is considered to be deadlockable?

(lockdep tells us that a mutex was taken at "mutex_lock+0x8/0xa", which is fairly useless. We need to report who the caller of mutex_lock() was).

Quoted 1 line

Here is config http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/mm-config

#53 lore raw
In reply to Michal Piotrowski
Quoted 7 lines · Michal Piotrowski

Hi,

Quoted 3 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

Quoted 6 lines

I don't know why, but first bug appears only when avahi-daemon is started. Second look like a problem with my camera.
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_1.jpg
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

Here is config http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/mm-config

can you confirm this fixes it ?

---
 drivers/usb/core/inode.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/usb/core/inode.c +3 -3
Index: linux-2.6.17-rc5-mm1.5/drivers/usb/core/inode.c
===================================================================
@@ -333,7 +333,7 @@ static int usbfs_empty (struct dentry *d
 static int usbfs_unlink (struct inode *dir, struct dentry *dentry)
 {
 	struct inode *inode = dentry->d_inode;
-	mutex_lock(&inode->i_mutex);
+	mutex_lock_nested(&inode->i_mutex, I_MUTEX_CHILD);
 	dentry->d_inode->i_nlink--;
 	dput(dentry);
 	mutex_unlock(&inode->i_mutex);
@@ -346,7 +346,7 @@ static int usbfs_rmdir(struct inode *dir
 	int error = -ENOTEMPTY;
 	struct inode * inode = dentry->d_inode;
 
-	mutex_lock(&inode->i_mutex);
+	mutex_lock_nested(&inode->i_mutex, I_MUTEX_CHILD);
 	dentry_unhash(dentry);
 	if (usbfs_empty(dentry)) {
 		dentry->d_inode->i_nlink -= 2;
@@ -528,7 +528,7 @@ static void fs_remove_file (struct dentr
 	if (!parent || !parent->d_inode)
 		return;
 
-	mutex_lock(&parent->d_inode->i_mutex);
+	mutex_lock_nested(&parent->d_inode->i_mutex, I_MUTEX_PARENT);
 	if (usbfs_positive(dentry)) {
 		if (dentry->d_inode) {
 			if (S_ISDIR(dentry->d_inode->i_mode))
#50 lore raw
In reply to Andrew Morton
Quoted 6 lines
Quoted 2 lines

http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

So it's claiming that we're taking multiple i_mutexes.

I can't immediately see where we took the outermost i_mutex there.

inlining caused one level to be removed from the backtrace one level is in fs_remove_file, the sub level is usbfs_unlink (called from fs_remove_file)

Quoted 2 lines

Nor is
it immediately obvious why this is considered to be deadlockable?

what is missing is that we tell lockdep that there is a parent-child relationship between those two i_mutexes, so that it knows that 1) they're separate and 2) that the lock take order is parent->child

Quoted 2 lines

(lockdep tells us that a mutex was taken at "mutex_lock+0x8/0xa", which is fairly useless. We need to report who the caller of mutex_lock() was).

yeah this has been bugging me as well; either via a wrapper around mutex_lock or via the gcc option to backwalk the stack (but that only works with frame pointers enabled.. sigh)

#54 lore raw
In reply to Arjan van de Ven
Quoted 13 lines · On Thu, 01 Jun 2006 19:20:08 +0200 Arjan van de Ven <[email protected]>…
Quoted 12 lines · Michal Piotrowski

Hi,

Quoted 3 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

I don't know why, but first bug appears only when avahi-daemon is started. Second look like a problem with my camera.
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_1.jpg
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

Quoted 5 lines
Quoted 1 line

Here is config http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/mm-config

can you confirm this fixes it ?

s/fixes it/makes it go away/

Please describe these patches better.

Where was the outermost lock taken? How do we know that an attempt cannot be made to take them in the opposite order?

Quoted 35 lines
---
 drivers/usb/core/inode.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.17-rc5-mm1.5/drivers/usb/core/inode.c
===================================================================

drivers/usb/core/inode.c +3 -3
@@ -333,7 +333,7 @@ static int usbfs_empty (struct dentry *d
 static int usbfs_unlink (struct inode *dir, struct dentry *dentry)
 {
 	struct inode *inode = dentry->d_inode;
-	mutex_lock(&inode->i_mutex);
+	mutex_lock_nested(&inode->i_mutex, I_MUTEX_CHILD);
 	dentry->d_inode->i_nlink--;
 	dput(dentry);
 	mutex_unlock(&inode->i_mutex);
@@ -346,7 +346,7 @@ static int usbfs_rmdir(struct inode *dir
 	int error = -ENOTEMPTY;
 	struct inode * inode = dentry->d_inode;
 
-	mutex_lock(&inode->i_mutex);
+	mutex_lock_nested(&inode->i_mutex, I_MUTEX_CHILD);
 	dentry_unhash(dentry);
 	if (usbfs_empty(dentry)) {
 		dentry->d_inode->i_nlink -= 2;
@@ -528,7 +528,7 @@ static void fs_remove_file (struct dentr
 	if (!parent || !parent->d_inode)
 		return;
 
-	mutex_lock(&parent->d_inode->i_mutex);
+	mutex_lock_nested(&parent->d_inode->i_mutex, I_MUTEX_PARENT);
 	if (usbfs_positive(dentry)) {
 		if (dentry->d_inode) {
 			if (S_ISDIR(dentry->d_inode->i_mode))
#51 lore raw
In reply to Arjan van de Ven
Quoted 10 lines · On Thu, 01 Jun 2006 19:27:41 +0200 Arjan van de Ven <[email protected]>…
Quoted 6 lines
Quoted 2 lines

http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

So it's claiming that we're taking multiple i_mutexes.

I can't immediately see where we took the outermost i_mutex there.

inlining caused one level to be removed from the backtrace one level is in fs_remove_file, the sub level is usbfs_unlink (called from fs_remove_file)

OK.

I'll duck this patch for now, pending a tested-n-changelogged one, please.

Quoted 8 lines
Quoted 2 lines

Nor is
it immediately obvious why this is considered to be deadlockable?

what is missing is that we tell lockdep that there is a parent-child relationship between those two i_mutexes, so that it knows that 1) they're separate and 2) that the lock take order is parent->child

Quoted 6 lines
Quoted 2 lines

(lockdep tells us that a mutex was taken at "mutex_lock+0x8/0xa", which is fairly useless. We need to report who the caller of mutex_lock() was).

yeah this has been bugging me as well; either via a wrapper around mutex_lock or via the gcc option to backwalk the stack (but that only works with frame pointers enabled.. sigh)

Actually, __builtin_return_address(0) works OK with -fomit-frame-pointer, and that's all we need here.

#15 lore raw
In reply to Andrew Morton
Quoted 9 lines · On Thu, 1 Jun 2006 09:19:27 -0700 Andrew Morton <[email protected]> wrote:
Quoted 8 lines

It can't do anything
in that case, so the only solution I see is to either
- not at all call the unwinder from trap.c if the instruction pointer before the first unwind is not within kernel space, or
- force fall-through to the old logic if the first unwind attempt didn't yield a change to either rIP or rSP (implying that in that case there was no unwind information found to start with).

What do you think?

Quoted 8 lines

- Make the code robust and able to detect "unexpected" states at all points through the process. If at the end of the process we see that we have encountered an unexpected state,

- emit a diagnostic so Jan can work out if there's a way to improve the unwinder in this situation

- do a traditional backtrace as well.

Let me just agree with myself here. It would be wildly unacceptable for the unwinder to cause us to get _less_ information than we presently do under any circumstances, please. That would be a really bad impediment to kernel development.

#56 lore raw
In reply to Arjan van de Ven

Hi Arjan,

Quoted 13 lines · Arjan van de Ven
Quoted 12 lines · Michal Piotrowski

Hi,

Quoted 3 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

I don't know why, but first bug appears only when avahi-daemon is started. Second look like a problem with my camera.
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_1.jpg
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

Quoted 5 lines
Quoted 1 line

Here is config http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/mm-config

can you confirm this fixes it ?

Probably yes, I'm not 100% sure. I'll do some tests (do stupid things with camera while reboot).

Regards,
Michal

Signature · 3 lines
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)
#52 lore raw
In reply to Andrew Morton
Quoted 9 lines · Andrew Morton
Quoted 6 lines
Quoted 2 lines

(lockdep tells us that a mutex was taken at "mutex_lock+0x8/0xa", which is fairly useless. We need to report who the caller of mutex_lock() was).

yeah this has been bugging me as well; either via a wrapper around mutex_lock or via the gcc option to backwalk the stack (but that only works with frame pointers enabled.. sigh)

Actually, __builtin_return_address(0) works OK with -fomit-frame-pointer, and that's all we need here.

yes - but that means we'd have to propagate the EIP through all the mutex calls (and the assembly functions, etc.). I tried it and it's really a nightmare. What we can do is to have better information if FRAME_POINTERS is enabled.

Ingo

#58 lore raw
In reply to Andrew Morton
Quoted 4 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

Got a few build warnings with this one :

drivers/scsi/scsi_tgt_lib.c: In function `scsi_tgt_cmd_destroy':
drivers/scsi/scsi_tgt_lib.c:111: warning: implicit declaration of function scsi_host_put_command' drivers/scsi/scsi_tgt_lib.c: In function scsi_tgt_init_cmd':
drivers/scsi/scsi_tgt_lib.c:334: warning: implicit declaration of function scsi_alloc_sgtable' drivers/scsi/scsi_tgt_lib.c:334: warning: assignment makes pointer from integer without a cast drivers/scsi/scsi_tgt_lib.c:349: warning: implicit declaration of function scsi_free_sgtable'

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
#59 lore raw
Quoted 8 lines · Jesper Juhl
Quoted 4 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

Got a few build warnings with this one :

And some more :

arch/i386/crypto/aes.c:481: warning: initialization from incompatible pointer type
arch/i386/crypto/aes.c:483: warning: initialization from incompatible pointer type

Signature · 3 lines
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
#12 lore raw
In reply to Andrew Morton
Quoted 6 lines · Andrew Morton
Quoted 2 lines · On Thu, 01 Jun 2006 23:59:30 +1200 Reuben Farrelly <[email protected]> wrote:
Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP:
  [<0000000000000000>]
Quoted 8 lines

Seems that a fix got lost. Please add this:

From: Ingo Molnar <[email protected]>

This is a fixed up and cleaned up replacement for genirq-msi-fixes.patch, which should solve the i386 4KSTACKS problem. I also added Ben's idea of pushing the __do_IRQ() check into generic_handle_irq().

Indeed, that fixes it and -rc5-mm2 is now up and running.

Thanks,
Reuben

#60 lore raw
In reply to Jesper Juhl
Quoted 1 line · Jesper Juhl

Got a few build warnings with this one :

On the topic of build warnings, I got these (it's still building, and some of the earlier build output has gone past screen's scrollback buffer, so this might not be everything):

drivers/scsi/libsrp.c: In function 'srp_cmd_perform':
drivers/scsi/libsrp.c:434: warning: implicit declaration of function 'scsi_host_get_command'
drivers/scsi/libsrp.c:434: warning: assignment makes pointer from integer without a cast

ipc/msg.c: In function 'sys_msgctl':
ipc/msg.c:338: warning: 'setbuf.qbytes' may be used uninitialized in this function
ipc/msg.c:338: warning: 'setbuf.uid' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.gid' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.mode' may be used uninitialized in this function

ipc/sem.c: In function 'sys_semctl':
ipc/sem.c:810: warning: 'setbuf.uid' may be used uninitialized in this function ipc/sem.c:810: warning: 'setbuf.gid' may be used uninitialized in this function ipc/sem.c:810: warning: 'setbuf.mode' may be used uninitialized in this function

kernel/lockdep.c: In function 'static_obj':
kernel/lockdep.c:1112: warning: unused variable 'i'

fs/bio.c: In function 'bio_alloc_bioset':
fs/bio.c:169: warning: 'idx' may be used uninitialized in this function

fs/eventpoll.c: In function 'sys_epoll_create':
fs/eventpoll.c:500: warning: 'fd' may be used uninitialized in this function

fs/jfs/jfs_txnmgr.c: In function 'txCommit':
fs/jfs/jfs_txnmgr.c:1922: warning: 'pxd.addr2' may be used uninitialized in this function
fs/jfs/jfs_txnmgr.c:1922: warning: 'pxd.addr1' may be used uninitialized in this function
fs/jfs/jfs_txnmgr.c:1922: warning: 'pxd.len' may be used uninitialized in this function

fs/reiser4/plugin/file/cryptcompress.c: In function 'align_or_cut_overhead':
fs/reiser4/plugin/file/cryptcompress.c:871: warning: 'oh' may be used uninitialized in this function

fs/xfs/xfs_bmap.c: In function 'xfs_bmapi':
fs/xfs/xfs_bmap.c:2498: warning: 'rtx' is used uninitialized in this function

fs/xfs/xfs_dir.c: In function 'xfs_dir_removename':
fs/xfs/xfs_dir.c:363: warning: 'totallen' may be used uninitialized in this function
fs/xfs/xfs_dir.c:363: warning: 'count' may be used uninitialized in this function

fs/xfs/xfs_inode.c: In function 'xfs_ifree':
fs/xfs/xfs_inode.c:1960: warning: 'last_offset' may be used uninitialized in this function
fs/xfs/xfs_inode.c:1958: warning: 'last_dip' may be used uninitialized in this function

fs/xfs/xfs_log.c: In function 'xlog_write':
fs/xfs/xfs_log.c:1749: warning: 'iclog' may be used uninitialized in this function

fs/xfs/xfs_log_recover.c: In function 'xlog_find_tail':
fs/xfs/xfs_log_recover.c:523: warning: 'first_blk' may be used uninitialized in this function

Signature · 1 line
-Barry K. Nathan <[email protected]>
#57 lore raw
In reply to Michal Piotrowski
Quoted 16 lines · Michal Piotrowski

Hi Arjan,

Quoted 13 lines · Arjan van de Ven
Quoted 12 lines · Michal Piotrowski

Hi,

Quoted 3 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

I don't know why, but first bug appears only when avahi-daemon is started. Second look like a problem with my camera.
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_1.jpg
http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/bug_2.jpg

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Here is config http://www.stardust.webpages.pl/files/mm/2.6.17-rc5-mm2/mm-config

can you confirm this fixes it ?

Probably yes, I'm not 100% sure. I'll do some tests (do stupid things with camera while reboot).

Problem fixed, thanks.

Regards,
Michal

Signature · 3 lines
Michal K. K. Piotrowski
LTG - Linux Testers Group
(http://www.stardust.webpages.pl/ltg/wiki/)
#62 lore raw
In reply to Jesper Juhl
Quoted 1 line · Jesper Juhl

Got a few build warnings with this one :

My build finished; I got this warning during make modules_install:

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.17-rc5-mm2; fi
WARNING: /lib/modules/2.6.17-rc5-mm2/kernel/drivers/scsi/libsrp.ko needs unknown symbol scsi_tgt_queue_command

Signature · 1 line
-Barry K. Nathan <[email protected]>
#61 lore raw
In reply to Barry K. Nathan
Quoted 8 lines · Barry K. Nathan
Quoted 1 line · Jesper Juhl

Got a few build warnings with this one :

On the topic of build warnings, I got these (it's still building, and some of the earlier build output has gone past screen's scrollback buffer, so this might not be everything):

Quoted 5 lines

drivers/scsi/libsrp.c: In function 'srp_cmd_perform':
drivers/scsi/libsrp.c:434: warning: implicit declaration of function 'scsi_host_get_command'
drivers/scsi/libsrp.c:434: warning: assignment makes pointer from integer without a cast

Yes, I managed to lose a fix-up-the-rejects patch. I wonder why it compiled for me..

include/scsi/scsi_cmnd.h renamed from include/scsi/scsi_cmnd.h~git-scsi-target-fixup +5 -0
@@ -150,11 +150,16 @@ struct scsi_cmnd {
 #define SCSI_STATE_MLQUEUE         0x100b
 
 
+extern struct scsi_cmnd *scsi_host_get_command(struct Scsi_Host *,
+					       enum dma_data_direction, gfp_t);
 extern struct scsi_cmnd *scsi_get_command(struct scsi_device *, gfp_t);
+extern void scsi_host_put_command(struct Scsi_Host *, struct scsi_cmnd *);
 extern void scsi_put_command(struct scsi_cmnd *);
 extern void scsi_io_completion(struct scsi_cmnd *, unsigned int, unsigned int);
 extern void scsi_finish_command(struct scsi_cmnd *cmd);
 extern void scsi_req_abort_cmd(struct scsi_cmnd *cmd);
+extern struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *, gfp_t);
+extern void scsi_free_sgtable(struct scatterlist *, int);
 
 extern void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
 				 size_t *offset, size_t *len);

_

Quoted 6 lines

ipc/msg.c: In function 'sys_msgctl':
ipc/msg.c:338: warning: 'setbuf.qbytes' may be used uninitialized in this function
ipc/msg.c:338: warning: 'setbuf.uid' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.gid' may be used uninitialized in this function ipc/msg.c:338: warning: 'setbuf.mode' may be used uninitialized in this function

Various false positives from gcc-4.

#63 lore raw
In reply to Barry K. Nathan
Quoted 11 lines · Barry K. Nathan
Quoted 1 line · Jesper Juhl

Got a few build warnings with this one :

My build finished; I got this warning during make modules_install:

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.17-rc5-mm2; fi
WARNING: /lib/modules/2.6.17-rc5-mm2/kernel/drivers/scsi/libsrp.ko needs unknown symbol scsi_tgt_queue_command

Please send `grep SCSI .config'.

I'd be guessing that either SCSI_SRP needs to depend upon SCSI_TGT or we need a stub function for scsi_tgt_queue_command(), for when SCSI_TGT is undefined.

#64 lore raw
Quoted 1 line · Andrew Morton

Please send `grep SCSI .config'.

Ok, here it is.

# SCSI device support
CONFIG_SCSI=y
# CONFIG_SCSI_TGT is not set
CONFIG_SCSI_PROC_FS=y
# SCSI support type (disk, tape, CD-ROM)
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs # CONFIG_SCSI_MULTI_LUN is not set CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# SCSI Transports
CONFIG_SCSI_SPI_ATTRS=m
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_ISCSI_ATTRS=m
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_DOMAIN_ATTRS is not set
# SCSI low-level drivers
CONFIG_ISCSI_TCP=m
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_7000FASST is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AHA152X is not set
# CONFIG_SCSI_AHA1542 is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_IN2000 is not set
# CONFIG_SCSI_ARCMSR is not set
CONFIG_SCSI_SATA=y
# CONFIG_SCSI_SATA_AHCI is not set
# CONFIG_SCSI_PATA_ALI is not set
# CONFIG_SCSI_PATA_AMD is not set
# CONFIG_SCSI_SATA_SVW is not set
# CONFIG_SCSI_PATA_TRIFLEX is not set
# CONFIG_SCSI_PATA_MPIIX is not set
# CONFIG_SCSI_PATA_OLDPIIX is not set
# CONFIG_SCSI_ATA_PIIX is not set
# CONFIG_SCSI_SATA_MV is not set
# CONFIG_SCSI_PATA_NETCELL is not set
# CONFIG_SCSI_SATA_NV is not set
# CONFIG_SCSI_PATA_OPTI is not set
# CONFIG_SCSI_PDC_ADMA is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_SATA_QSTOR is not set CONFIG_SCSI_PATA_PDC2027X=y
# CONFIG_SCSI_SATA_PROMISE is not set
# CONFIG_SCSI_SATA_SX4 is not set CONFIG_SCSI_SATA_SIL=y
# CONFIG_SCSI_SATA_SIL24 is not set
# CONFIG_SCSI_PATA_SIL680 is not set
# CONFIG_SCSI_PATA_SIS is not set
# CONFIG_SCSI_SATA_SIS is not set
# CONFIG_SCSI_SATA_ULI is not set
# CONFIG_SCSI_PATA_VIA is not set
# CONFIG_SCSI_SATA_VIA is not set
# CONFIG_SCSI_SATA_VITESSE is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_DTC3280 is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_GENERIC_NCR5380 is not set
# CONFIG_SCSI_GENERIC_NCR5380_MMIO is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_NCR53C406A is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_PAS16 is not set
# CONFIG_SCSI_PSI240I is not set
# CONFIG_SCSI_QLOGIC_FAS is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SYM53C416 is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_T128 is not set
# CONFIG_SCSI_U14_34F is not set
# CONFIG_SCSI_ULTRASTOR is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
CONFIG_SCSI_SRP=m
# Old CD-ROM drivers (not SCSI, not IDE)
# CONFIG_CD_NO_IDESCSI is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'

Signature · 1 line
-Barry K. Nathan <[email protected]>
#65 lore raw
Quoted 7 lines · On Thu, 1 Jun 2006 17:07:29 -0700 "Barry K. Nathan" <[email protected]> wrote:
Quoted 1 line · Andrew Morton

Please send `grep SCSI .config'.

Ok, here it is.

# CONFIG_SCSI_TGT is not set
CONFIG_SCSI_SRP=m

yup, that's the problem, thanks.

#66 lore raw
Quoted 4 lines · Andrew Morton
Quoted 1 line · On Thu, 1 Jun 2006 17:07:29 -0700 "Barry K. Nathan" <[email protected]> wrote:

On 6/1/06, Andrew Morton <[email protected]> wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Please send `grep SCSI .config'.

Ok, here it is.

# CONFIG_SCSI_TGT is not set
CONFIG_SCSI_SRP=m

yup, that's the problem, thanks.

Looking at the Kconfig help text, it looks to me like SCSI_SRP without SCSI_TGT makes no sense. I guess at some point I must have been thinking "I have no idea what SCSI RDMA Protocol is, so I'll build it as a module just to be safe" -- I somehow missed the word "target" in its Kconfig help text when I enabled it...

Signature · 1 line
-Barry K. Nathan <[email protected]>
#67 lore raw
In reply to Andrew Morton

Ok, the kernel that I now have booting is 2.6.17-rc5-mm2 + my pata_pdc2027x patch + the 3 hotfixes that I saw when I started trying to build the kernel (i.e. without git-scsi-target-fixup but with the other 3 that are now present).

During boot of my Debian sarge system, this kernel always gives this warning at "Starting MTA:"
http://static.flickr.com/47/158326090_35d0129147_b_d.jpg

Then, a minute or two after boot, it usually (well over 50% of the time, but not quite 100%) gives this oops:
http://static.flickr.com/51/158326091_6a7057834c_b_d.jpg

If it doesn't fail with that oops, it usually tends to fail with other oopses (I have not managed to capture any of those, but they all seem to mention network-related stuff). Once, it just froze up without an oops. The oops I posted happens often enough that it's probably unjustifiably difficult to try reproducing the other oopses until this one is fixed or worked around.

I plan to try 2.6.17-rc5-mm1 + mingo's latest lockdep patch for that kernel + a properly fixed-up pata_pdc2027x, to see whether that kernel fails the same way; I've built it but I won't have a chance to test it for another 3-6 hours.

Signature · 1 line
-Barry K. Nathan <[email protected]>
#68 lore raw
Quoted 8 lines · On Thu, 1 Jun 2006 17:58:48 -0700 "Barry K. Nathan" <[email protected]> wrote:

Ok, the kernel that I now have booting is 2.6.17-rc5-mm2 + my pata_pdc2027x patch + the 3 hotfixes that I saw when I started trying to build the kernel (i.e. without git-scsi-target-fixup but with the other 3 that are now present).

During boot of my Debian sarge system, this kernel always gives this warning at "Starting MTA:"
http://static.flickr.com/47/158326090_35d0129147_b_d.jpg

That's the mysterious lockdep warning - I'm not sure we've got to the bottom of that.

Quoted 10 lines

Then, a minute or two after boot, it usually (well over 50% of the time, but not quite 100%) gives this oops:
http://static.flickr.com/51/158326091_6a7057834c_b_d.jpg

If it doesn't fail with that oops, it usually tends to fail with other oopses (I have not managed to capture any of those, but they all seem to mention network-related stuff). Once, it just froze up without an oops. The oops I posted happens often enough that it's probably unjustifiably difficult to try reproducing the other oopses until this one is fixed or worked around.

Damn, sorry. LLC is completely borked. You should emphatically set CONFIG_LLC=n.

#85 lore raw
In reply to Andrew Morton

On ia64 + make allmodconfig

CC kernel/sysctl.o
kernel/sysctl.c:305: error: braced-group within expression allowed only inside a function kernel/sysctl.c:314: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:314: warning: data definition has no type or storage class kernel/sysctl.c:314: error: syntax error before '}' token kernel/sysctl.c:323: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:323: warning: data definition has no type or storage class kernel/sysctl.c:323: error: syntax error before '}' token kernel/sysctl.c:332: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:332: warning: data definition has no type or storage class kernel/sysctl.c:332: error: syntax error before '}' token kernel/sysctl.c:341: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:341: warning: data definition has no type or storage class kernel/sysctl.c:341: error: syntax error before '}' token kernel/sysctl.c:98: warning: 'ngroups_max' defined but not used kernel/sysctl.c:1810: warning: 'proc_do_utsns_string' defined but not used

This is caused by CONFIG_UTS_NS.
Maybe namespaces-utsname-sysctl-hack-cleanup-2.patch has compile trouble. attaches my .config

-Kame

#86 lore raw
Quoted 18 lines · On Fri, 2 Jun 2006 12:23:11 +0900 KAMEZAWA Hiroyuki…

On ia64 + make allmodconfig

CC kernel/sysctl.o
kernel/sysctl.c:305: error: braced-group within expression allowed only inside a function kernel/sysctl.c:314: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:314: warning: data definition has no type or storage class kernel/sysctl.c:314: error: syntax error before '}' token kernel/sysctl.c:323: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:323: warning: data definition has no type or storage class kernel/sysctl.c:323: error: syntax error before '}' token kernel/sysctl.c:332: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:332: warning: data definition has no type or storage class kernel/sysctl.c:332: error: syntax error before '}' token kernel/sysctl.c:341: warning: type defaults to int' in declaration of ia64_intri_res' kernel/sysctl.c:341: warning: data definition has no type or storage class kernel/sysctl.c:341: error: syntax error before '}' token kernel/sysctl.c:98: warning: 'ngroups_max' defined but not used kernel/sysctl.c:1810: warning: 'proc_do_utsns_string' defined but not used

yup, thanks.

From: Andrew Morton <[email protected]>

Don't try to evaluate `current' at compile time - ia64 explodes.

Cc Sam Vilain <[email protected]>
Cc Serge E. Hallyn <[email protected]>
Cc Kirill Korotaev <[email protected]>
Cc "Eric W. Biederman" <[email protected]>
Cc Herbert Poetzl <[email protected]>
Cc Andrey Savochkin <[email protected]>
Cc KAMEZAWA Hiroyuki <[email protected]>

---

 kernel/sysctl.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
kernel/sysctl.c renamed from kernel/sysctl.c~namespaces-utsname-sysctl-hack-cleanup-2-fix +5 -5
diff -puN kernel/sysctl.c~namespaces-utsname-sysctl-hack-cleanup-2-fix kernel/sysctl.c
@@ -302,7 +302,7 @@ static ctl_table kern_table[] = {
 		.procname	= "ostype",
 		.data		= NULL,
 		/* could maybe use __NEW_UTS_LEN here? */
-		.maxlen		= sizeof(current->nsproxy->uts_ns->name.sysname),
+		.maxlen		= FIELD_SIZEOF(struct new_utsname, sysname),
 		.mode		= 0444,
 		.proc_handler	= &proc_do_utsns_string,
 		.strategy	= &sysctl_string,
@@ -311,7 +311,7 @@ static ctl_table kern_table[] = {
 		.ctl_name	= KERN_OSRELEASE,
 		.procname	= "osrelease",
 		.data		= NULL,
-		.maxlen		= sizeof(current->nsproxy->uts_ns->name.release),
+		.maxlen		= FIELD_SIZEOF(struct new_utsname, release),
 		.mode		= 0444,
 		.proc_handler	= &proc_do_utsns_string,
 		.strategy	= &sysctl_string,
@@ -320,7 +320,7 @@ static ctl_table kern_table[] = {
 		.ctl_name	= KERN_VERSION,
 		.procname	= "version",
 		.data		= NULL,
-		.maxlen		= sizeof(current->nsproxy->uts_ns->name.version),
+		.maxlen		= FIELD_SIZEOF(struct new_utsname, version),
 		.mode		= 0444,
 		.proc_handler	= &proc_do_utsns_string,
 		.strategy	= &sysctl_string,
@@ -329,7 +329,7 @@ static ctl_table kern_table[] = {
 		.ctl_name	= KERN_NODENAME,
 		.procname	= "hostname",
 		.data		= NULL,
-		.maxlen		= sizeof(current->nsproxy->uts_ns->name.nodename),
+		.maxlen		= FIELD_SIZEOF(struct new_utsname, nodename),
 		.mode		= 0644,
 		.proc_handler	= &proc_do_utsns_string,
 		.strategy	= &sysctl_string,
@@ -338,7 +338,7 @@ static ctl_table kern_table[] = {
 		.ctl_name	= KERN_DOMAINNAME,
 		.procname	= "domainname",
 		.data		= NULL,
-		.maxlen		= sizeof(current->nsproxy->uts_ns->name.domainname),
+		.maxlen		= FIELD_SIZEOF(struct new_utsname, domainname),
 		.mode		= 0644,
 		.proc_handler	= &proc_do_utsns_string,
 		.strategy	= &sysctl_string,

_

#69 lore raw
In reply to Andrew Morton
Quoted 8 lines · Andrew Morton
Quoted 5 lines · On Thu, 1 Jun 2006 17:58:48 -0700 "Barry K. Nathan" <[email protected]> wrote:

Ok, the kernel that I now have booting is 2.6.17-rc5-mm2 + my pata_pdc2027x patch + the 3 hotfixes that I saw when I started trying to build the kernel (i.e. without git-scsi-target-fixup but with the other 3 that are now present).

Quoted 6 lines
Quoted 3 lines

During boot of my Debian sarge system, this kernel always gives this warning at "Starting MTA:"
http://static.flickr.com/47/158326090_35d0129147_b_d.jpg

That's the mysterious lockdep warning - I'm not sure we've got to the bottom of that.

Barry, if the system boots up fine with LLC disabled (and if you still get the lockdep warning), then please apply the following patch:

http://redhat.com/~mingo/lockdep-patches/latency-tracing-lockdep.patch

accept all the default 'make oldconfig' options and reboot into the patched kernel. If everything goes well then the system should still boot up fine, you should still get the lockdep warning - but this time there should be a long trace in /proc/latency_trace. Please upload that trace - it gives us the kernel's function trace, leading up to the warning.

Ingo

#17 lore raw
In reply to a message not in the archive
Quoted 3 lines

- Make the code robust and able to detect "unexpected" states at all points through the process. If at the end of the process we see that we have encountered an unexpected state,

The problem is that the unwind is expected to end with an odd state (i.e. fail), at least until all possible root points of execution (i.e. bottoms of call stacks) have a proper annotation forcing their parent program counter to zero (which I don't expect to happen soon, if ever, because I think this is something difficult to prove). Thus the only reasonable thing to do is to check whether the first level of unwinding failed.

Quoted 4 lines

- emit a diagnostic so Jan can work out if there's a way to improve the unwinder in this situation

- do a traditional backtrace as well.

This might be a config or boot option (and might be forced on for a short while), but I generally don't think this is helpful, given that the entire point of the added logic is to remove (useless) information (even more that if you have to rely on the screen alone, you have to live with its limited size, and pushing out an old-style stack trace after the unwound one would likely make part or all of it as well as the register information disappear).

Jan

#18 lore raw
Quoted 9 lines · On Fri, 02 Jun 2006 08:54:04 +0200 "Jan Beulich" <[email protected]> wrote:
Quoted 3 lines

- Make the code robust and able to detect "unexpected" states at all points through the process. If at the end of the process we see that we have encountered an unexpected state,

The problem is that the unwind is expected to end with an odd state (i.e. fail), at least until all possible root points of execution (i.e. bottoms of call stacks) have a proper annotation forcing their parent program counter to zero (which I don't expect to happen soon, if ever, because I think this is something difficult to prove). Thus the only reasonable thing to do is to check whether the first level of unwinding failed.

Are there other heuristics we can apply? For example, we have a pretty good idea whereabouts the top of a kernel stack is. If we don't end up close to that offset then we can assume that something went wrong?

Quoted 10 lines
Quoted 4 lines

- emit a diagnostic so Jan can work out if there's a way to improve the unwinder in this situation

- do a traditional backtrace as well.

This might be a config or boot option (and might be forced on for a short while), but I generally don't think this is helpful, given that the entire point of the added logic is to remove (useless) information (even more that if you have to rely on the screen alone, you have to live with its limited size, and pushing out an old-style stack trace after the unwound one would likely make part or all of it as well as the register information disappear).

Plus a config or boot option is too late.

#19 lore raw
In reply to Jan Beulich
Quoted 11 lines · Jan Beulich
Quoted 3 lines

- Make the code robust and able to detect "unexpected" states at all points through the process. If at the end of the process we see that we have encountered an unexpected state,

The problem is that the unwind is expected to end with an odd state (i.e. fail), at least until all possible root points of execution (i.e. bottoms of call stacks) have a proper annotation forcing their parent program counter to zero (which I don't expect to happen soon, if ever, because I think this is something difficult to prove). Thus the only reasonable thing to do is to check whether the first level of unwinding failed.

firstly, i'd suggest to use another magic value for 'bottom of call stacks' - it is way too common to jump or call a NULL pointer. Something like 0xfedcba9876543210 would be better.

Quoted 5 lines
Quoted 4 lines

- emit a diagnostic so Jan can work out if there's a way to improve the unwinder in this situation

- do a traditional backtrace as well.

Quoted 7 lines

This might be a config or boot option (and might be forced on for a short while), but I generally don't think this is helpful, given that the entire point of the added logic is to remove (useless) information (even more that if you have to rely on the screen alone, you have to live with its limited size, and pushing out an old-style stack trace after the unwound one would likely make part or all of it as well as the register information disappear).

for the RIP/EIP to get corrupted is a common occurance. So is stack corruption. So the fallback mechanism shouldnt be a 'short while' side-thought, it must be part of the design.

If we use a much better magic value to delimit the stack then our confidence that the stacktrace is correct will be much higher.

In all other cases (if we go outside of the stack page(s)) we _must_ fall back to the dump 'scan the stack pages for interesting entries' method, to get the information out! "Uh oh the unwind info somehow got corrupted, sorry" is not enough to debug a kernel bug.

What we _can_ ignore are stack/register corruptions that accidentally cause a valid unwind call chain to be printed. That is impossible to detect and it's much less likely than say normal stack or register corruption. But we _must not_ ignore clear parsing errors. This is a really basic thing ...

Ingo

#20 lore raw
Quoted 4 lines · On Fri, 2 Jun 2006 09:09:48 +0200 Ingo Molnar <[email protected]> wrote:

In all other cases (if we go outside of the stack page(s)) we _must_ fall back to the dump 'scan the stack pages for interesting entries' method, to get the information out! "Uh oh the unwind info somehow got corrupted, sorry" is not enough to debug a kernel bug.

Also, it might be worth doing a two-pass thing. Pass 1 doesn't print anything - it just figures out whether pass2 will succeed. If not, fall back without printing anything.

#21 lore raw
Quoted 11 lines · Andrew Morton
Quoted 4 lines · On Fri, 2 Jun 2006 09:09:48 +0200 Ingo Molnar <[email protected]> wrote:

In all other cases (if we go outside of the stack page(s)) we _must_ fall back to the dump 'scan the stack pages for interesting entries' method, to get the information out! "Uh oh the unwind info somehow got corrupted, sorry" is not enough to debug a kernel bug.

Also, it might be worth doing a two-pass thing. Pass 1 doesn't print anything - it just figures out whether pass2 will succeed. If not, fall back without printing anything.

correct, that's what stacktrace.c does for example. In the first lockdep queue i switched show_trace() to make use of stacktrace.c, so it can be used for printing traces too.

Ingo

#23 lore raw
In reply to a message not in the archive
Quoted 3 lines

firstly, i'd suggest to use another magic value for 'bottom of call stacks' - it is way too common to jump or call a NULL pointer. Something like 0xfedcba9876543210 would be better.

That's contrary to common use (outside of the kernel). I'm opposed to this. Detecting an initial bad EIP isn't a problem, and the old code can be used easily in that case.

Quoted 3 lines

for the RIP/EIP to get corrupted is a common occurance. So is stack corruption. So the fallback mechanism shouldnt be a 'short while' side-thought, it must be part of the design.

RIP/EIP corruption, as said above, can be easily handled. RSP/ESP corruption, as I understand it, isn't being handled in the old code, and so I can't see what improvements the new code could do here (given that instruction and stack pointers serve as the anchors for kicking off an unwind).

Quoted 4 lines

In all other cases (if we go outside of the stack page(s)) we _must_ fall back to the dump 'scan the stack pages for interesting entries' method, to get the information out! "Uh oh the unwind info somehow got corrupted, sorry" is not enough to debug a kernel bug.

Again, you miss the point that the very last unwind operation must always be expected to move the stack pointer outside the stack boundaries, which would mean triggering the fallback path in all cases. With this, we could as well leave out the entire unwind code and keep everyone of us manually do the separation of good and bad entries in the trace shown.

Jan

#24 lore raw
Quoted 7 lines · Jan Beulich
Quoted 3 lines

firstly, i'd suggest to use another magic value for 'bottom of call stacks' - it is way too common to jump or call a NULL pointer. Something like 0xfedcba9876543210 would be better.

That's contrary to common use (outside of the kernel). I'm opposed to this. Detecting an initial bad EIP isn't a problem, and the old code can be used easily in that case.

but 0 is pretty much the worst choice for something that needs to be reliable - it's the most common type of machine word in existence, amongst all the 18446744073709551616 possibilities. And we need not care about userspace's prior choices, this code and data is totally under the kernel's control.

Quoted 9 lines
Quoted 3 lines

for the RIP/EIP to get corrupted is a common occurance. So is stack corruption. So the fallback mechanism shouldnt be a 'short while' side-thought, it must be part of the design.

RIP/EIP corruption, as said above, can be easily handled. RSP/ESP corruption, as I understand it, isn't being handled in the old code, and so I can't see what improvements the new code could do here (given that instruction and stack pointers serve as the anchors for kicking off an unwind).

i'm not only talking about RSP/ESP corruption, but about stack corruption. I.e. some area of the stack is corrupted. With the scanning method we at least get some other entries out - while with the unwind method we only say 'sorry'.

anyway, i think that handling a bad initial RIP/EIP would be a good first step and it should solve the problem at hand. (it will also serve as a basis for whatever other heuristics we might want to apply later on)

Quoted 11 lines
Quoted 4 lines

In all other cases (if we go outside of the stack page(s)) we _must_ fall back to the dump 'scan the stack pages for interesting entries' method, to get the information out! "Uh oh the unwind info somehow got corrupted, sorry" is not enough to debug a kernel bug.

Again, you miss the point that the very last unwind operation must always be expected to move the stack pointer outside the stack boundaries, which would mean triggering the fallback path in all cases. With this, we could as well leave out the entire unwind code and keep everyone of us manually do the separation of good and bad entries in the trace shown.

no, i dont miss that point at all. What _you_ are missing is the obvious
solution: stacks on x86_64 are already linked to each other, via fixed-position pointers at the end of the stackpages. So the unwinder can easily check whether the 'next stack' as suggested by the link at the end of the page is indeed the same as the unwind jumpout does. If not => fallback.

same for i386 - there too the stacks are linked via non-unwind data. The unwinder can do a pretty good verification of the jumpout.

Ingo

#87 lore raw
In reply to Andrew Morton
Quoted 2 lines · On Thu, 1 Jun 2006 01:48:06 -0700 Andrew Morton <[email protected]> wrote:

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

Is it supposed to work on x86_64?

I've tried enabling something minimal (full config attached):

CONFIG_PROVE_SPIN_LOCKING=y
# CONFIG_PROVE_RW_LOCKING is not set
# CONFIG_PROVE_MUTEX_LOCKING is not set
# CONFIG_PROVE_RWSEM_LOCKING is not set
CONFIG_LOCKDEP=y
CONFIG_DEBUG_LOCKDEP=y
CONFIG_TRACE_IRQFLAGS=y
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
CONFIG_DEBUG_LOCKING_API_SELFTESTS=y
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_INFO is not set
# CONFIG_PAGE_OWNER is not set
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_VM is not set
CONFIG_FRAME_POINTER=y
# CONFIG_UNWIND_INFO is not set
CONFIG_FORCED_INLINING=y

---

and I get unexpected failures in the validator self test, and then a kernel panic. Something like this:

[test output]
--------------------------------------------------------------

BUG: 21 unexpected failures (out of 210) - debugging disabled!
--------------------------------------------------------------

Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) Inode cache hash table entries: 32768 (order: 6, 252144 bytes) Checking apeture...
CPU 0: aperture @ [...] size 64 MB
Memory: [....]
kmem_cache_create: couldn't create cache size-512.
kernel panic - not syncing: kmem_cache_create(): failed to create slab 'size-512'

Bad quality snapshots:
http://img92.imageshack.us/img92/446/02060610499mx.jpg
http://img137.imageshack.us/img137/29/02060610501qr.jpg

Signature · 2 lines
	Paolo Ornati
	Linux 2.6.16-ck11 on x86_64
#88 lore raw
Quoted 7 lines · Paolo Ornati
Quoted 2 lines · On Thu, 1 Jun 2006 01:48:06 -0700 Andrew Morton <[email protected]> wrote:

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

Is it supposed to work on x86_64?

yeah, it's supposed to work.

Quoted 1 line

I've tried enabling something minimal (full config attached):

please send me the real full config you used for the build - this one has only the =y entries. (from which it's hard to reproduce your original config)

Ingo

#89 lore raw
Quoted 7 lines · Ingo Molnar

yeah, it's supposed to work.

Quoted 1 line

I've tried enabling something minimal (full config attached):

please send me the real full config you used for the build - this one has only the =y entries. (from which it's hard to reproduce your original config)

when running it through 'make oldconfig' and grepping for =y it didnt match your original config, but the resulting kernel was just as broken as yours, so it's good enough for now ;-) Below is the crashlog over serial.

Ingo

[    0.000000] Linux version 2.6.17-rc5-mm2-lockdep (mingo@mercury) (gcc version 4.0.2) #24 Fri Jun 2 13:11:52 CEST 2006
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
[    0.000000]  BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000003fff0000 (usable)
[    0.000000]  BIOS-e820: 000000003fff0000 - 000000003fff3000 (ACPI NVS)
[    0.000000]  BIOS-e820: 000000003fff3000 - 0000000040000000 (ACPI data)
[    0.000000]  BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
[    0.000000]  BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
[    0.000000] DMI 2.3 present.
[    0.000000] ACPI: RSDP (v000 Nvidia                                ) @ 0x00000000000f76f0
[    0.000000] ACPI: RSDT (v001 Nvidia AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x000000003fff3040
[    0.000000] ACPI: FADT (v001 Nvidia AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x000000003fff30c0
[    0.000000] ACPI: SRAT (v001 AMD    HAMMER   0x00000001 AMD  0x00000001) @ 0x000000003fff9500
[    0.000000] ACPI: MCFG (v001 Nvidia AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x000000003fff9600
[    0.000000] ACPI: MADT (v001 Nvidia AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x000000003fff9440
[    0.000000] ACPI: DSDT (v001 NVIDIA AWRDACPI 0x00001000 MSFT 0x0100000e) @ 0x0000000000000000
[    0.000000] On node 0 totalpages: 256402
[    0.000000]   DMA zone: 1897 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 254505 pages, LIFO batch:31
[    0.000000] Nvidia board detected. Ignoring ACPI timer override.
[    0.000000] ACPI: PM-Timer IO Port: 0x4008
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] Processor #0 15:3 APIC version 16
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[    0.000000] Processor #1 15:3 APIC version 16
[    0.000000] WARNING: NR_CPUS limit of 1 reached. Processor ignored.
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: BIOS IRQ0 pin2 override ignored.
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 14 global_irq 14 high edge)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 15 global_irq 15 high edge)
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] ACPI: IRQ14 used by override.
[    0.000000] ACPI: IRQ15 used by override.
[    0.000000] Setting APIC routing to flat
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] Allocating PCI resources starting at 50000000 (gap: 40000000:a0000000)
[    0.000000] Built 1 zonelists
[    0.000000] Kernel command line: root=/dev/hda5 earlyprintk=serial,ttyS0,115200 console=ttyS0,115200 console=tty 3 nmi_watchdog=0 profile=0 debug initcall_debug apic=debug notsc idle=poll maxcpus=2
[    0.000000] kernel profiling enabled (shift: 0)
[    0.000000] using polling idle threads.
[    0.000000] Initializing CPU#0
[    0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[   12.131188] Disabling vsyscall due to use of PM timer
[   12.136064] time.c: Using 3.579545 MHz WALL PM GTOD PM timer.
[   12.141784] time.c: Detected 2160.234 MHz processor.
[   12.146728] disabling early console
[   12.152478] Console: colour VGA+ 80x25
[   12.510248] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[   12.518020] ... MAX_LOCKDEP_SUBTYPES:    8
[   12.522144] ... MAX_LOCK_DEPTH:          30
[   12.526356] ... MAX_LOCKDEP_KEYS:        2048
[   12.530740] ... TYPEHASH_SIZE:           1024
[   12.535126] ... MAX_LOCKDEP_ENTRIES:     8192
[   12.539511] ... MAX_LOCKDEP_CHAINS:      8192
[   12.543896] ... CHAINHASH_SIZE:          4096
[   12.548281]  memory used by lock dependency info: 1120 kB
[   12.553706]  per task-struct memory footprint: 1440 bytes
[   12.559132] ------------------------
[   12.562736] | Locking API testsuite:
[   12.566341] ----------------------------------------------------------------------------
[   12.574453]                                  | spin |wlock |rlock |mutex | wsem | rsem |
[   12.582565]   --------------------------------------------------------------------------
[   12.590680]                      A-A deadlock:  ok  |failed|failed|FAILED|failed|failed|
[   12.599300]                  A-B-B-A deadlock:  ok  |failed|  ok  |FAILED|failed|failed|
[   12.607905]              A-B-B-C-C-A deadlock:  ok  |failed|  ok  |FAILED|failed|failed|
[   12.616511]              A-B-C-A-B-C deadlock:  ok  |failed|  ok  |FAILED|failed|failed|
[   12.625124]          A-B-B-C-C-D-D-A deadlock:  ok  |failed|  ok  |FAILED|failed|failed|
[   12.633722]          A-B-C-D-B-D-D-A deadlock:  ok  |failed|  ok  |FAILED|failed|failed|
[   12.642344]          A-B-C-D-B-C-D-A deadlock:  ok  |failed|  ok  |FAILED|failed|failed|
[   12.650950]                     double unlock:  ok  |failed|failed|  ok  |failed|failed|
[   12.659547]                  bad unlock order:  ok  |failed|failed|FAILED|failed|failed|
[   12.668151]   --------------------------------------------------------------------------
[   12.676262]               recursive read-lock:             |  ok  |             |failed|
[   12.684644]   --------------------------------------------------------------------------
[   12.692755]                 non-nested unlock:  ok  |  ok  |  ok  |  ok  |
[   12.699991]   ------------------------------------------------------------
[   12.706889]      hard-irqs-on + irq-safe-A/12:  ok  |failed|  ok  |
[   12.713433]      soft-irqs-on + irq-safe-A/12:  ok  |failed|  ok  |
[   12.719984]      hard-irqs-on + irq-safe-A/21:  ok  |failed|  ok  |
[   12.726536]      soft-irqs-on + irq-safe-A/21:  ok  |failed|  ok  |
[   12.733094]        sirq-safe-A => hirqs-on/12:  ok  |failed|  ok  |
[   12.739639]        sirq-safe-A => hirqs-on/21:  ok  |failed|  ok  |
[   12.746198]          hard-safe-A + irqs-on/12:  ok  |failed|  ok  |
[   12.752742]          soft-safe-A + irqs-on/12:  ok  |failed|  ok  |
[   12.759303]          hard-safe-A + irqs-on/21:  ok  |failed|  ok  |
[   12.768218]          soft-safe-A + irqs-on/21:  ok  |failed|  ok  |
[   12.774763]     hard-safe-A + unsafe-B #1/123:  ok  |failed|  ok  |
[   12.781323]     soft-safe-A + unsafe-B #1/123:  ok  |failed|  ok  |
[   12.787883]     hard-safe-A + unsafe-B #1/132:  ok  |failed|  ok  |
[   12.794434]     soft-safe-A + unsafe-B #1/132:  ok  |failed|  ok  |
[   12.800986]     hard-safe-A + unsafe-B #1/213:  ok  |failed|  ok  |
[   12.807538]     soft-safe-A + unsafe-B #1/213:  ok  |failed|  ok  |
[   12.814106]     hard-safe-A + unsafe-B #1/231:  ok  |failed|  ok  |
[   12.820650]     soft-safe-A + unsafe-B #1/231:  ok  |failed|  ok  |
[   12.827208]     hard-safe-A + unsafe-B #1/312:  ok  |failed|  ok  |
[   12.833753]     soft-safe-A + unsafe-B #1/312:  ok  |failed|  ok  |
[   12.840305]     hard-safe-A + unsafe-B #1/321:  ok  |failed|  ok  |
[   12.846856]     soft-safe-A + unsafe-B #1/321:  ok  |failed|  ok  |
[   12.853407]     hard-safe-A + unsafe-B #2/123:  ok  |failed|  ok  |
[   12.859968]     soft-safe-A + unsafe-B #2/123:  ok  |failed|  ok  |
[   12.866528]     hard-safe-A + unsafe-B #2/132:  ok  |failed|  ok  |
[   12.873087]     soft-safe-A + unsafe-B #2/132:  ok  |failed|  ok  |
[   12.879632]     hard-safe-A + unsafe-B #2/213:  ok  |failed|  ok  |
[   12.886199]     soft-safe-A + unsafe-B #2/213:  ok  |failed|  ok  |
[   12.892744]     hard-safe-A + unsafe-B #2/231:  ok  |failed|  ok  |
[   12.899303]     soft-safe-A + unsafe-B #2/231:  ok  |failed|  ok  |
[   12.905855]     hard-safe-A + unsafe-B #2/312:  ok  |failed|  ok  |
[   12.912416]     soft-safe-A + unsafe-B #2/312:  ok  |failed|  ok  |
[   12.918976]     hard-safe-A + unsafe-B #2/321:  ok  |failed|  ok  |
[   12.925535]     soft-safe-A + unsafe-B #2/321:  ok  |failed|  ok  |
[   12.932095]       hard-irq lock-inversion/123:FAILED|failed|  ok  |
[   12.938639]       soft-irq lock-inversion/123:FAILED|failed|  ok  |
[   12.945198]       hard-irq lock-inversion/132:FAILED|failed|  ok  |
[   12.951742]       soft-irq lock-inversion/132:FAILED|failed|  ok  |
[   12.958293]       hard-irq lock-inversion/213:FAILED|failed|  ok  |
[   12.964845]       soft-irq lock-inversion/213:FAILED|failed|  ok  |
[   12.971397]       hard-irq lock-inversion/231:FAILED|failed|  ok  |
[   12.977949]       soft-irq lock-inversion/231:FAILED|failed|  ok  |
[   12.984500]       hard-irq lock-inversion/312:FAILED|failed|  ok  |
[   12.991059]       soft-irq lock-inversion/312:FAILED|failed|  ok  |
[   12.997603]       hard-irq lock-inversion/321:FAILED|failed|  ok  |
[   13.004162]       soft-irq lock-inversion/321:FAILED|failed|  ok  |
[   13.010706]       hard-irq read-recursion/123:  ok  |
[   13.015889]       soft-irq read-recursion/123:  ok  |
[   13.021079]       hard-irq read-recursion/132:  ok  |
[   13.026262]       soft-irq read-recursion/132:  ok  |
[   13.031454]       hard-irq read-recursion/213:  ok  |
[   13.036644]       soft-irq read-recursion/213:  ok  |
[   13.041827]       hard-irq read-recursion/231:  ok  |
[   13.047016]       soft-irq read-recursion/231:  ok  |
[   13.052200]       hard-irq read-recursion/312:  ok  |
[   13.057391]       soft-irq read-recursion/312:  ok  |
[   13.062581]       hard-irq read-recursion/321:  ok  |
[   13.067773]       soft-irq read-recursion/321:  ok  |
[   13.072955] -----------------------------------------------------------------
[   13.080113] BUG:  20 unexpected failures (out of 210) - debugging disabled! |
[   13.087270] -----------------------------------------------------------------
[   13.095120] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[   13.103207] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[   13.110249] Checking aperture...
[   13.113503] CPU 0: aperture @ 230000000 size 32 MB
[   13.118320] Aperture too small (32 MB)
[   13.127043] No AGP bridge found
[   13.140057] Memory: 1012872k/1048512k available (2660k kernel code, 34912k reserved, 1481k data, 208k init)
[   13.149832] kmem_cache_create: couldn't create cache size-512.
[   13.155690] Kernel panic - not syncing: kmem_cache_create(): failed to create slab `size-512'
[   13.155692] 
[   13.165750]
#90 lore raw
Quoted 8 lines · On Fri, 2 Jun 2006 13:17:04 +0200 Ingo Molnar <[email protected]> wrote:
Quoted 3 lines

please send me the real full config you used for the build - this one has only the =y entries. (from which it's hard to reproduce your original config)

when running it through 'make oldconfig' and grepping for =y it didnt match your original config, but the resulting kernel was just as broken as yours, so it's good enough for now ;-) Below is the crashlog over serial.

Anyway, full config attached.

It's a .17-rc5-mm2 + 2 hot-fixes:
lock-validator-x86_64-irqflags-trace-entrys-fix.patch revert-git-cfq.patch

Signature · 2 lines
	Paolo Ornati
	Linux 2.6.16-ck11 on x86_64
#70 lore raw
In reply to Andrew Morton

(Ingo, I got your e-mail too, and I will reply to it once I've followed your instructions.)

Quoted 2 lines · Andrew Morton

Damn, sorry. LLC is completely borked. You should emphatically set CONFIG_LLC=n.

Just one problem with that...

config ATALK
tristate "Appletalk protocol support"
select LLC

This box runs netatalk for both file and print service, but I could temporarily disable it for testing... Ok, the kernel's up and running w/o CONFIG_LLC and CONFIG_ATALK now, and the warning still happened at boot time, but it has stayed up for over an hour without keeling over with a panic.

It looks like netatalk was fixed at some point so that it can do AFP over TCP without the presence of a running atalkd, so unless I buy a really old used Mac, I shouldn't need CONFIG_ATALK for the file server anymore. Also, to make a *long* story short, I also should be able to get rid of the print server in a few weeks. I'll still need to occasionally boot back into a CONFIG_ATALK kernel to use the print server until then, but I should be able to run an ATALK-less kernel for days at a time (i.e. when the print server is not in use)...

Signature · 1 line
-Barry K. Nathan <[email protected]>
#91 lore raw
In reply to Paolo Ornati
Quoted 7 lines · Paolo Ornati
Quoted 4 lines · On Fri, 2 Jun 2006 13:17:04 +0200 Ingo Molnar <[email protected]> wrote:
Quoted 3 lines

please send me the real full config you used for the build - this one has only the =y entries. (from which it's hard to reproduce your original config)

Quoted 6 lines
Quoted 4 lines

when running it through 'make oldconfig' and grepping for =y it didnt match your original config, but the resulting kernel was just as broken as yours, so it's good enough for now ;-) Below is the crashlog over serial.

Anyway, full config attached.

thanks. Your config triggered 4 different bugs! 1 nasty slab.c one and 3 locking-selftest bugs.

Quoted 3 lines

It's a .17-rc5-mm2 + 2 hot-fixes:
lock-validator-x86_64-irqflags-trace-entrys-fix.patch revert-git-cfq.patch

please try my latest lockdep-combo patch:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

ontop of vanilla -mm2. The combo patch includes all current -mm2 hotfixes plus all current lockdep fixes.

Ingo

#71 lore raw
In reply to Barry K. Nathan
Quoted 2 lines · Barry K. Nathan

(Ingo, I got your e-mail too, and I will reply to it once I've followed your instructions.)

ok. I forgot to mention that it's probably a good idea to first apply my lockdep-combo patch to -mm2:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

this includes all current -mm hotfixes and all lockdep fixes. (The lockdep tracer patch will still apply cleanly ontop of the combo patch.)

Ingo

#92 lore raw
In reply to Ingo Molnar
Quoted 6 lines · On Fri, 2 Jun 2006 16:13:49 +0200 Ingo Molnar <[email protected]> wrote:

please try my latest lockdep-combo patch:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

ontop of vanilla -mm2. The combo patch includes all current -mm2 hotfixes plus all current lockdep fixes.

It gives me an Oops: "NULL pointer dereference at kmem_cache_alloc+0x23/0x7b" and than a panic (attemp to kill idle task).

I'll try to get a nice picture...

Signature · 2 lines
	Paolo Ornati
	Linux 2.6.16-ck11 on x86_64
#93 lore raw
Quoted 5 lines · Paolo Ornati
Quoted 2 lines · On Fri, 2 Jun 2006 16:13:49 +0200 Ingo Molnar <[email protected]> wrote:

please try my latest lockdep-combo patch:

Quoted 8 lines
Quoted 4 lines

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

ontop of vanilla -mm2. The combo patch includes all current -mm2 hotfixes plus all current lockdep fixes.

It gives me an Oops: "NULL pointer dereference at kmem_cache_alloc+0x23/0x7b" and than a panic (attemp to kill idle task).

ok, i can reproduce that with your full config.

Ingo

#82 lore raw
In reply to Barry K. Nathan
Quoted 4 lines · Barry K. Nathan

(Ingo, I got your e-mail too, and I will reply to it once I've followed your instructions.)

On 6/1/06, Andrew Morton <[email protected]> wrote:

Quoted 8 lines
Quoted 2 lines

Damn, sorry. LLC is completely borked. You should emphatically set CONFIG_LLC=n.

Just one problem with that...

config ATALK
tristate "Appletalk protocol support"
select LLC

Strange. ATALK doesn't need 802.2LLC, merely SNAP.

Alan

#72 lore raw
In reply to Ingo Molnar
Quoted 7 lines · Ingo Molnar

ok. I forgot to mention that it's probably a good idea to first apply my lockdep-combo patch to -mm2:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

this includes all current -mm hotfixes and all lockdep fixes. (The lockdep tracer patch will still apply cleanly ontop of the combo patch.)

Actually, I noticed that the tracer patch applied with fewer offsets (i.e. "more cleanly," in a sense) with the lockdep-combo patch applied first, so I did that.

I'm doing building the kernel, but I haven't been able to boot it yet:
This system boots the kernel off floppy disks, and under 2.6.17-rc5-mm2, the floppy drive no longer works! The disk spins but the kernel can't read any of the disk's sectors, even for other known-working floppies. I'll have to boot back into 2.6.17-rc4-mm3 before I can copy the new kernel onto a disk and boot from it. That will take me a couple of minutes, although I have to go to school in under an hour so I might not get to it until later today.

Oh, wait, let me try a sadistic experiment first: Let's see if I can format a floppy disk with the floppy drive in this non-functioning state... no, "/dev/fd0: Read-only file system", 100% reproducible.

Signature · 1 line
-Barry K. Nathan <[email protected]>
#73 lore raw
Quoted 1 line · Barry K. Nathan

I'm doing building the kernel, but I haven't been able to boot it yet:

That should be "done building".

Quoted 4 lines

This system boots the kernel off floppy disks, and under 2.6.17-rc5-mm2, the floppy drive no longer works! The disk spins but the kernel can't read any of the disk's sectors, even for other known-working floppies. I'll have to boot back into 2.6.17-rc4-mm3

I notice that I get messages like this in dmesg with each disk access:

[24067.495591]
[24067.496740] floppy driver state
[24067.497874] -------------------
[24067.499009] now=2371176 last interrupt=2370874 diff=302 last called
handler=c021c69b
[24067.501195] timeout_message=redo fd request
[24067.502286] last output bytes:
[24067.503500]  8 80 2287517
[24067.504716]  8 80 2287517
[24067.505960]  8 80 2287517
[24067.507173]  8 80 2287517
[24067.508347]  8 80 2287972
[24067.509480]  8 80 2287972
[24067.510611]  8 80 2287972
[24067.511745]  8 80 2287972
[24067.512876]  8 80 2288278
[24067.514007]  8 80 2288278
[24067.515138]  8 80 2288278
[24067.516281]  8 80 2288278
[24067.517403]  8 80 2343834
[24067.518456]  8 80 2343834
[24067.519705]  8 80 2343834
[24067.520910]  8 80 2343834
[24067.522099]  8 80 2370874
[24067.523290]  8 80 2370874
[24067.524481]  8 80 2370874
[24067.525638]  8 80 2370874
[24067.526772] last result at 2370874
[24067.527906] last redo_fd_request at 2370876
[24067.529041]
[24067.530174] status=80
[24067.531305] fdc_busy=1
[24067.532436] floppy_work.func=c021a164
[24067.533570] cont=c0310e98
[24067.534651] current_req=dfe9a7d0
[24067.535747] command_status=-1
[24067.536937]
[24067.538133] floppy0: floppy timeout called
[24067.539345] end_request: I/O error, dev fd0, sector 0

The various numbers sometimes change however. I could provide a few more samples if need be.

Signature · 1 line
-Barry K. Nathan <[email protected]>
#83 lore raw
In reply to Alan Cox
Quoted 1 line · Alan Cox

On Gwe, 2006-06-02 at 06:14 -0700, Barry K. Nathan wrote:

[snip]

Quoted 7 lines
Quoted 5 lines

Just one problem with that...

config ATALK
tristate "Appletalk protocol support"
select LLC

Strange. ATALK doesn't need 802.2LLC, merely SNAP.

There's CONFIG_LLC, and there's also CONFIG_LLC2. I wonder if actual 802.2LLC support is the latter, not the former...

Signature · 1 line
-Barry K. Nathan <[email protected]>
#84 lore raw
In reply to Barry K. Nathan
Quoted 13 lines · On Fri, 2 Jun 2006 06:14:21 -0700 "Barry K. Nathan" <[email protected]> wrote:

(Ingo, I got your e-mail too, and I will reply to it once I've followed your instructions.)

Quoted 2 lines · Andrew Morton

Damn, sorry. LLC is completely borked. You should emphatically set CONFIG_LLC=n.

Just one problem with that...

config ATALK
tristate "Appletalk protocol support"
select LLC

Quoted 5 lines

This box runs netatalk for both file and print service, but I could temporarily disable it for testing... Ok, the kernel's up and running w/o CONFIG_LLC and CONFIG_ATALK now, and the warning still happened at boot time, but it has stayed up for over an hour without keeling over with a panic.

We have a probable fix for the LLC problem. I placed this in the hot-fixes directory:

net/llc/llc_input.c renamed from net/llc/llc_input.c~git-net-llc-fix +0 -1
diff -puN net/llc/llc_input.c~git-net-llc-fix net/llc/llc_input.c
@@ -176,7 +176,6 @@ int llc_rcv(struct sk_buff *skb, struct 
  		struct sk_buff *cskb = skb_clone(skb, GFP_ATOMIC);
  		if (cskb)
  			rcv(cskb, dev, pt, orig_dev);
-		rcv(skb, dev, pt, orig_dev);
 	}
 	dest = llc_pdu_type(skb);
 	if (unlikely(!dest || !llc_type_handlers[dest - 1]))

_

#96 lore raw
In reply to Andrew Morton
Quoted 9 lines · Andrew Morton

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/

- A cfq bug was fixed in mainline, so the git-cfq tree has been restored.

- Various lock-validator and genirq fixes have been added. Should be slightly less oopsy than 2.6.17-rc5-mm1.

Quoted 7 lines

- I just realised that I've been accidentally not updating the PCI tree for a while. Will be restored in next -mm.

- Has been booted and has passed various stress-tests on quad x86_64, quad ancient-Xeon, quad power4, quad ia64, dual old-PIII and a modern pentium-M laptop. So if it breaks, it's your fault.

This reliably goes kablam on an x86_64 machine with a tg3 network card which was also happening for 2.6.17-rc5-mm1. A patch bisect found that reversing git-net.patch and git-net-git-klibc-fixup.patch on top of the -mm3 got rid of the problem. Don't ask me why.

The console log I have of the most common oops is below and the .config used is attached. The oops happens reliably but at varying times and not always the same oops either. Usually sshing into the machine and compiling the kernel is enough. On at least one occasion, sshing to the machine triggered it.

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-autobench ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=t tyS1,19200 autobench_args: root=30726124 ABAT:1149162305 earlyprintk=serial,tty S1,19200
[Linux-bzImage, setup=0x1e00, size=0x1e0682]
initrd /initrd-autobench.img
[Linux-initrd @ 0x37e60000, 0x18fbdc bytes]

Bootdata ok (command line is ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=ttyS1,19200 autobench_args: root=30726124 ABAT:1149162305 earlyprintk=serial,ttyS1,19200)
Linux version 2.6.17-rc5-mm2-autokern1 ([email protected]) (/usr/local/autobench/var/tmp/build/scripts/mkcompile_h: line 61: /usr/local/autobench/sources/x86_64-cross/*/bin/x86_64-unknown-linux-gnu-gcc: No such file or directory) #1 SMP Thu Jun 1 06:33:03 CDT 2006 BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009d400 (usable)
BIOS-e820: 000000000009d400 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000003ffcddc0 (usable)
BIOS-e820: 000000003ffcddc0 - 000000003ffd0000 (ACPI data)
BIOS-e820: 000000003ffd0000 - 0000000040000000 (reserved)
BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved)
kernel direct mapping tables up to 100000000 @ 8000-8000
DMI 2.3 present.
ACPI: PM-Timer IO Port: 0x2208
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 15:1 APIC version 16
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 15:1 APIC version 16
ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
Processor #2 15:1 APIC version 16
ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
Processor #3 15:1 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x02] dfl dfl lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x03] dfl dfl lint[0x1])
ACPI: IOAPIC (id[0x0e] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 14, version 17, address 0xfec00000, GSI 0-23
ACPI: IOAPIC (id[0x0d] address[0xfec10000] gsi_base[24])
IOAPIC[1]: apic_id 13, version 17, address 0xfec10000, GSI 24-27
ACPI: IOAPIC (id[0x0c] address[0xfec20000] gsi_base[48])
IOAPIC[2]: apic_id 12, version 17, address 0xfec20000, GSI 48-51
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 low level)
Setting APIC routing to physical flat
ACPI: HPET id: 0x10228203 base: 0xfecff000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:bec00000)
SMP: Allowing 4 CPUs, 0 hotplug CPUs
Built 1 zonelists
Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=ttyS1,19200 autobench_args: root=30726124 ABAT:1149162305 earlyprintk=serial,ttyS1,19200
powernow-k8: MP systems not supported by PSB BIOS structure
powernow-k8: MP systems not supported by PSB BIOS structure
powernow-k8: MP systems not supported by PSB BIOS structure
powernow-k8: MP systems not supported by PSB BIOS structure
Red Hat nash version 5.0.32 starting
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
INIT: version 2.86 booting
Welcome to Fedora Core
Press 'I' to enter interactive startup.
Setting clock (localtime): Thu Jun 1 06:49:46 CDT 2006 [ OK ]
Starting udev: [ OK ]
Setting hostname bl6-13.ltc.austin.ibm.com: [ OK ]
Setting up Logical Volume Management: 2 logical volume(s) in volume group "VolGroup00" now active
[ OK ]
Checking filesystems
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/VolGroup00/LogVol00 /dev/VolGroup00/LogVol00: clean, 290003/7929856 files, 2612703/7929856 blocks
[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -a /dev/sda1 /boot: clean, 62/512512 files, 43213/512064 blocks
[ OK ]
Remounting root filesystem in read-write mode: [ OK ]

Mounting local filesystems:  [  OK  ]
Enabling local filesystem quotas:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Starting readahead_early:  Starting background readahead: [  OK  ]
[  OK  ]
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.17-rc5-mm2-autokern1/kernel/arch/x86_64/kernel/cpufreq/acpi-cpufreq.ko): No such device
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth1:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting irqbalance: [  OK  ]
Starting portmap: [  OK  ]
Starting NFS statd: [  OK  ]
Starting RPC idmapd: FATAL: Module sunrpc not found.
FATAL: Error running install command for sunrpc
Starting system message bus: [  OK  ]

Starting Bluetooth services:[ OK ][ OK ]
Mounting other filesystems: [ OK ]
Starting hidd: [ OK ]
Starting automount: [ OK ]
Starting smartd: [ OK ]
Starting acpi daemon: [ OK ]
Starting hpiod: [ OK ]
Starting hpssd: [ OK ]
Starting cups: [ OK ]
Starting sshd: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
Starting console mouse services: [ OK ]
Starting crond: [ OK ]
Starting xfs: [ OK ]
Starting anacron: [ OK ]
Starting atd: [ OK ]
Starting Avahi daemon: [ OK ]
Starting cups-config-daemon: [ OK ]
Starting HAL daemon: [ OK ]

Fedora Core release 5 (Bordeaux)
Kernel 2.6.17-rc5-mm2-autokern1 on an x86_64

bl6-13.ltc.austin.ibm.com login: -- 0:conmux-control -- time-stamp -- Jun/01/06 4:50:00 -- -- 0:conmux-control -- time-stamp -- Jun/01/06 4:53:30 --

Unable to handle kernel NULL pointer dereference at 0000000000000008 RIP:
 [<ffffffff812296a5>] skb_dequeue+0x2c/0x50
PGD 33867067 PUD 0 Oops: 0002 [1] SMP last sysfs file: /block/sda/sda1/size
CPU 0 Modules linked in: ipv6 ppdev hidp rfcomm l2cap bluetooth video sony_acpi button battery asus_acpi ac lp parport_pc parport nvram
Pid: 1995, comm: sshd Not tainted 2.6.17-rc5-mm2-autokern1 #1
RIP: 0010:[<ffffffff812296a5>]  [<ffffffff812296a5>] skb_dequeue+0x2c/0x50
RSP: 0018:ffff8100336c3c28  EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff8100335c1c90 RCX: ffff81003ec74a00
RDX: 000000000000003d RSI: 0000000000000246 RDI: ffff8100335c1ca8
RBP: ffff81003d2435c0 R08: ffff810037fda828 R09: ffff81003e671ac0
R10: 0000000000000008 R11: 0000000000000001 R12: ffff8100335c1ca8
R13: ffff8100336c3da0 R14: ffff8100336c3d68 R15: 0000000000000000
FS:  00002b90bfcf5be0(0000) GS:ffffffff81463000(0000) knlGS:00000000f7ef26b0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000008 CR3: 000000003327c000 CR4: 00000000000006e0
Process sshd (pid: 1995, threadinfo ffff8100336c2000, task ffff810037dec090)
Stack: ffff8100335c1c90 ffff81003d2435c0 ffff8100335c1bc0 ffffffff81283767
       ffffffa100000001 0000005300000001 0000000000000000 00000040000000d0
       0000000000003fad ffff8100330630c0 
Call Trace:
 [<ffffffff81283767>] unix_stream_recvmsg+0x101/0x4bf
 [<ffffffff8122666e>] release_sock+0x10/0xae
 [<ffffffff812522d1>] tcp_sendmsg+0x9d5/0xaa7
 [<ffffffff81223aaf>] do_sock_read+0xc6/0xd1
 [<ffffffff81223bff>] sock_aio_read+0x4f/0x5e
 [<ffffffff81080bc8>] do_sync_read+0xc9/0x106
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8128a3c8>] _spin_unlock_irq+0x6/0xa
 [<ffffffff812882c5>] thread_return+0x64/0xec
 [<ffffffff81080ce9>] vfs_read+0xe4/0x172
 [<ffffffff81081037>] sys_read+0x45/0x6e
 [<ffffffff810092be>] system_call+0x7e/0x83


Code: 48 89 58 08 48 c7 45 00 00 00 00 00 48 c7 45 08 00 00 00 00 RIP  [<ffffffff812296a5>] skb_dequeue+0x2c/0x50 RSP <ffff8100336c3c28>

CR2: 0000000000000008
<3>BUG: sleeping function called from invalid context at include/linux/rwsem.h:53
in_atomic():0, irqs_disabled():1

Call Trace:
 [<ffffffff810299a0>] __might_sleep+0xc0/0xc2
 [<ffffffff8103f5a1>] blocking_notifier_call_chain+0x1f/0x4e
 [<ffffffff81034c96>] do_exit+0x22/0x8b2
 [<ffffffff8117e593>] do_unblank_screen+0x29/0x121
 [<ffffffff8128c5a2>] do_page_fault+0x73f/0x7ac
 [<ffffffff81092a25>] __pollwait+0x0/0xdd
 [<ffffffff81009f8d>] error_exit+0x0/0x84
 [<ffffffff812296a5>] skb_dequeue+0x2c/0x50
 [<ffffffff8122968e>] skb_dequeue+0x15/0x50
 [<ffffffff81283767>] unix_stream_recvmsg+0x101/0x4bf
 [<ffffffff8122666e>] release_sock+0x10/0xae
 [<ffffffff812522d1>] tcp_sendmsg+0x9d5/0xaa7
 [<ffffffff81223aaf>] do_sock_read+0xc6/0xd1
 [<ffffffff81223bff>] sock_aio_read+0x4f/0x5e
 [<ffffffff81080bc8>] do_sync_read+0xc9/0x106
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8128a3c8>] _spin_unlock_irq+0x6/0xa
 [<ffffffff812882c5>] thread_return+0x64/0xec
 [<ffffffff81080ce9>] vfs_read+0xe4/0x172
 [<ffffffff81081037>] sys_read+0x45/0x6e
 [<ffffffff810092be>] system_call+0x7e/0x83

BUG: spinlock recursion on CPU#0, sshd/1995
 lock: ffff8100335c1ca8, .magic: dead4ead, .owner: sshd/1995, .owner_cpu: 0

Call Trace:
 [<ffffffff8113ac4f>] _raw_spin_lock+0x3a/0xf1
 [<ffffffff8128a32e>] _spin_lock_irqsave+0x9/0xe
 [<ffffffff8122968e>] skb_dequeue+0x15/0x50
 [<ffffffff81281aff>] unix_release_sock+0x1b9/0x214
 [<ffffffff812235cc>] sock_release+0x17/0x99
 [<ffffffff812232a7>] sock_destroy_inode+0x0/0x10
 [<ffffffff81224295>] sock_close+0x2c/0x30
 [<ffffffff81081c55>] __fput+0xd0/0x1a5
 [<ffffffff810806b5>] filp_close+0x59/0x61
 [<ffffffff81034489>] put_files_struct+0x69/0xac
 [<ffffffff81034f00>] do_exit+0x28c/0x8b2
 [<ffffffff8117e593>] do_unblank_screen+0x29/0x121
 [<ffffffff8128c5a2>] do_page_fault+0x73f/0x7ac
 [<ffffffff81092a25>] __pollwait+0x0/0xdd
 [<ffffffff81009f8d>] error_exit+0x0/0x84
 [<ffffffff812296a5>] skb_dequeue+0x2c/0x50
 [<ffffffff8122968e>] skb_dequeue+0x15/0x50
 [<ffffffff81283767>] unix_stream_recvmsg+0x101/0x4bf
 [<ffffffff8122666e>] release_sock+0x10/0xae
 [<ffffffff812522d1>] tcp_sendmsg+0x9d5/0xaa7
 [<ffffffff81223aaf>] do_sock_read+0xc6/0xd1
 [<ffffffff81223bff>] sock_aio_read+0x4f/0x5e
 [<ffffffff81080bc8>] do_sync_read+0xc9/0x106
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8128a3c8>] _spin_unlock_irq+0x6/0xa
 [<ffffffff812882c5>] thread_return+0x64/0xec
 [<ffffffff81080ce9>] vfs_read+0xe4/0x172
 [<ffffffff81081037>] sys_read+0x45/0x6e
 [<ffffffff810092be>] system_call+0x7e/0x83

NMI Watchdog detected LOCKUP on CPU 0
CPU 0 Modules linked in: ipv6 ppdev hidp rfcomm l2cap bluetooth video sony_acpi button battery asus_acpi ac lp parport_pc parport nvram
Pid: 1995, comm: sshd Not tainted 2.6.17-rc5-mm2-autokern1 #1

RIP: 0010:[<ffffffff8113aca0>]  [<ffffffff8113aca0>] _raw_spin_lock+0x8b/0xf1
RSP: 0018:ffff8100336c38e8  EFLAGS: 00000002
RAX: 0000000000000008 RBX: ffff8100335c1ca8 RCX: 00000000322d6395
RDX: 00000000000000f9 RSI: ffffffff812c3b89 RDI: 0000000000000001
RBP: 000000001400c898 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00002b90bfcf5be0(0000) GS:ffffffff81463000(0000) knlGS:00000000f7ef26b0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000008 CR3: 0000000001001000 CR4: 00000000000006e0
Process sshd (pid: 1995, threadinfo ffff8100336c2000, task ffff810037dec090)
Stack: 0000000000000246 0000000000000000 ffff8100335c1ca8 ffffffff8128a32e
       ffff8100335c1c90 ffffffff8122968e ffff81003df6a1c0 ffff8100335c1bc0
       ffff8100335c1ef0 ffffffff81281aff 
Call Trace:
 [<ffffffff8128a32e>] _spin_lock_irqsave+0x9/0xe
 [<ffffffff8122968e>] skb_dequeue+0x15/0x50
 [<ffffffff81281aff>] unix_release_sock+0x1b9/0x214
 [<ffffffff812235cc>] sock_release+0x17/0x99
 [<ffffffff812232a7>] sock_destroy_inode+0x0/0x10
 [<ffffffff81224295>] sock_close+0x2c/0x30
 [<ffffffff81081c55>] __fput+0xd0/0x1a5
 [<ffffffff810806b5>] filp_close+0x59/0x61
 [<ffffffff81034489>] put_files_struct+0x69/0xac
 [<ffffffff81034f00>] do_exit+0x28c/0x8b2
 [<ffffffff8117e593>] do_unblank_screen+0x29/0x121
 [<ffffffff8128c5a2>] do_page_fault+0x73f/0x7ac
 [<ffffffff81092a25>] __pollwait+0x0/0xdd
 [<ffffffff81009f8d>] error_exit+0x0/0x84
 [<ffffffff812296a5>] skb_dequeue+0x2c/0x50
 [<ffffffff8122968e>] skb_dequeue+0x15/0x50
 [<ffffffff81283767>] unix_stream_recvmsg+0x101/0x4bf
 [<ffffffff8122666e>] release_sock+0x10/0xae
 [<ffffffff812522d1>] tcp_sendmsg+0x9d5/0xaa7
 [<ffffffff81223aaf>] do_sock_read+0xc6/0xd1
 [<ffffffff81223bff>] sock_aio_read+0x4f/0x5e
 [<ffffffff81080bc8>] do_sync_read+0xc9/0x106
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8128a3c8>] _spin_unlock_irq+0x6/0xa
 [<ffffffff812882c5>] thread_return+0x64/0xec
 [<ffffffff81080ce9>] vfs_read+0xe4/0x172
 [<ffffffff81081037>] sys_read+0x45/0x6e
 [<ffffffff810092be>] system_call+0x7e/0x83


Code: eb d9 45 85 e4 74 d2 45 31 e4 65 48 8b 04 25 00 00 00 00 65 console shuts up ...
 <1>Fixing recursive fault but reboot is needed!
NMI Watchdog detected LOCKUP on CPU 1
CPU 1 Modules linked in: ipv6 ppdev hidp rfcomm l2cap bluetooth video sony_acpi button battery asus_acpi ac lp parport_pc parport nvram
Pid: 1390, comm: klogd Not tainted 2.6.17-rc5-mm2-autokern1 #1
RIP: 0010:[<ffffffff8107d426>]  [<ffffffff8107d426>] cache_alloc_refill+0x145/0x4f5
RSP: 0018:ffff81003f25bb78  EFLAGS: 00000046
RAX: 000000000000000f RBX: ffff810037e0c440 RCX: 000000000000001d
RDX: ffff810037e0c440 RSI: ffff81003c47d000 RDI: 0000000000000000
RBP: ffff810037fda400 R08: ffff810037fd7000 R09: ffff810037f820c0
R10: 00007fff164281e3 R11: 0000000000000246 R12: 000000000000001e
R13: ffff810037fd96c0 R14: 00007fff164281d0 R15: 0000000000000000
FS:  00002ae6948e06d0(0000) GS:ffff81003ff81340(0000) knlGS:00000000f7efb6b0
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00000037a1f03088 CR3: 000000003d252000 CR4: 00000000000006e0
Process klogd (pid: 1390, threadinfo ffff81003f25a000, task ffff810037c70800)
Stack: 0000000000000000 0000000000000001 000000d0000000d0 0000000000000246
       00000000000000d0 ffff810037fd96c0 ffff810037fd96c0 00007fff164281d0
       0000000000000000 ffffffff8107d2d7 
Call Trace:
 [<ffffffff8107d2d7>] kmem_cache_alloc+0x5a/0x64
 [<ffffffff81227da1>] __alloc_skb+0x30/0x11d
 [<ffffffff81226410>] sock_alloc_send_skb+0x6d/0x1ea
 [<ffffffff8128256e>] unix_wait_for_peer+0xb7/0xc3
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff8102bed5>] __wake_up+0x36/0x4d
 [<ffffffff81282de2>] unix_dgram_sendmsg+0x160/0x48f
 [<ffffffff81223cd5>] do_sock_write+0xc7/0xd2
 [<ffffffff81223e25>] sock_aio_write+0x4f/0x5e
 [<ffffffff81080e40>] do_sync_write+0xc9/0x106
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff81045d20>] autoremove_wake_function+0x0/0x2e
 [<ffffffff81080f64>] vfs_write+0xe7/0x175
 [<ffffffff810810a5>] sys_write+0x45/0x6e
 [<ffffffff810092be>] system_call+0x7e/0x83


Code: 48 8b 06 48 39 70 08 74 0a 0f 0b 68 4c b8 2a 81 c2 a1 00 48
Signature · 3 lines
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab

#
# Automatically generated make config: don't edit # Linux kernel version: 2.6.17-rc5-mm2-autokern1
# Fri Jun 2 13:18:52 2006
#
CONFIG_X86_64=y
CONFIG_64BIT=y
CONFIG_X86=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_MMU=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y CONFIG_GENERIC_HWEIGHT=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_X86_CMPXCHG=y
CONFIG_EARLY_PRINTK=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32

#
# General setup
#
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SWAP=y
CONFIG_SWAP_PREFETCH=y
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_TASKSTATS is not set
CONFIG_SYSCTL=y
# CONFIG_UTS_NS is not set
CONFIG_AUDIT=y
CONFIG_AUDITSYSCALL=y
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_CPUSETS=y
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
CONFIG_KLIBC_ERRLIST=y
CONFIG_KLIBC_ZLIB=y
CONFIG_UID16=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# CONFIG_EMBEDDED is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
CONFIG_KALLSYMS_EXTRA_PASS=y
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_RT_MUTEXES=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set

#
# Loadable module support
#
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_KMOD=y
CONFIG_STOP_MACHINE=y

#
# Block layer
#
CONFIG_LBD=y
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_AS=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"

#
# Processor type and features
#
CONFIG_X86_PC=y
# CONFIG_X86_VSMP is not set
CONFIG_MK8=y
# CONFIG_MPSC is not set
# CONFIG_GENERIC_CPU is not set
CONFIG_X86_L1_CACHE_BYTES=64
CONFIG_X86_L1_CACHE_SHIFT=6
CONFIG_X86_INTERNODE_CACHE_BYTES=64
CONFIG_X86_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_MICROCODE=m
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_MTRR=y
CONFIG_SMP=y
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_PREEMPT_BKL=y
CONFIG_NUMA=y
CONFIG_K8_NUMA=y
CONFIG_NODES_SHIFT=6
CONFIG_X86_64_ACPI_NUMA=y
# CONFIG_NUMA_EMU is not set
CONFIG_ARCH_DISCONTIGMEM_ENABLE=y
CONFIG_ARCH_DISCONTIGMEM_DEFAULT=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_SELECT_MEMORY_MODEL=y
# CONFIG_FLATMEM_MANUAL is not set
CONFIG_DISCONTIGMEM_MANUAL=y
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_DISCONTIGMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_NEED_MULTIPLE_NODES=y
# CONFIG_SPARSEMEM_STATIC is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_MIGRATION=y
CONFIG_UNALIGNED_ZONE_BOUNDARIES=y
CONFIG_ADAPTIVE_READAHEAD=y
CONFIG_DEBUG_READAHEAD=y
# CONFIG_READAHEAD_SMOOTH_AGING is not set
CONFIG_HAVE_ARCH_EARLY_PFN_TO_NID=y
CONFIG_OUT_OF_LINE_PFN_TO_PAGE=y
CONFIG_NR_CPUS=255
CONFIG_HOTPLUG_CPU=y
CONFIG_HPET_TIMER=y
CONFIG_HPET_EMULATE_RTC=y
CONFIG_IOMMU=y
CONFIG_CALGARY_IOMMU=y
CONFIG_SWIOTLB=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_INTEL=y
CONFIG_X86_MCE_AMD=y
CONFIG_KEXEC=y
CONFIG_CRASH_DUMP=y
CONFIG_PHYSICAL_START=0x1000000
# CONFIG_SECCOMP is not set
# CONFIG_HZ_100 is not set
CONFIG_HZ_250=y
# CONFIG_HZ_1000 is not set
CONFIG_HZ=250
# CONFIG_REORDER is not set
CONFIG_K8_NB=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_ISA_DMA_API=y
CONFIG_GENERIC_PENDING_IRQ=y

#
# Power management options
#
CONFIG_PM=y
CONFIG_PM_LEGACY=y
CONFIG_PM_DEBUG=y
CONFIG_SOFTWARE_SUSPEND=y
CONFIG_PM_STD_PARTITION=""
CONFIG_SUSPEND_SMP=y

#
# ACPI (Advanced Configuration and Power Interface) Support #
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_NUMA=y
CONFIG_ACPI_ASUS=m
# CONFIG_ACPI_ATLAS is not set
CONFIG_ACPI_IBM=m
# CONFIG_ACPI_IBM_DOCK is not set CONFIG_ACPI_TOSHIBA=m
CONFIG_ACPI_SONY=m
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=y

#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y CONFIG_CPU_FREQ_DEBUG=y CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=m CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=m CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m

#
# CPUFreq processor drivers
#
CONFIG_X86_POWERNOW_K8=y
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_SPEEDSTEP_CENTRINO=y
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
CONFIG_X86_ACPI_CPUFREQ=m

#

# shared options
#
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_X86_SPEEDSTEP_LIB is not set

#
# Bus options (PCI etc.)
#
CONFIG_PCI=y
CONFIG_PCI_DIRECT=y
CONFIG_PCI_MMCONFIG=y
CONFIG_PCIEPORTBUS=y
# CONFIG_PCI_MSI is not set
# CONFIG_PCI_DEBUG is not set

#
# PCCARD (PCMCIA/CardBus) support
#
CONFIG_PCCARD=y
# CONFIG_PCMCIA_DEBUG is not set
CONFIG_PCMCIA=y
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_PCMCIA_IOCTL=y
CONFIG_CARDBUS=y

#
# PC-card bridges
#
CONFIG_YENTA=y
CONFIG_YENTA_O2=y
CONFIG_YENTA_RICOH=y
CONFIG_YENTA_TI=y
CONFIG_YENTA_ENE_TUNE=y
CONFIG_YENTA_TOSHIBA=y
CONFIG_PD6729=m
CONFIG_I82092=m
CONFIG_PCCARD_NONSTATIC=y

#
# PCI Hotplug Support
#
# CONFIG_HOTPLUG_PCI is not set

#
# Executable file formats / Emulations
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_IA32_EMULATION=y
# CONFIG_IA32_AOUT is not set
CONFIG_COMPAT=y
CONFIG_SYSVIPC_COMPAT=y

#
# Networking
#
CONFIG_NET=y

#
# Networking options
#
# CONFIG_NETDEBUG is not set
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
CONFIG_XFRM_USER=y
CONFIG_NET_KEY=m
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not set
CONFIG_IP_FIB_HASH=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
CONFIG_IP_ROUTE_VERBOSE=y
# CONFIG_IP_PNP is not set
CONFIG_NET_IPIP=m
CONFIG_NET_IPGRE=m
CONFIG_NET_IPGRE_BROADCAST=y
CONFIG_IP_MROUTE=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
# CONFIG_ARPD is not set
CONFIG_SYN_COOKIES=y
CONFIG_INET_AH=m
CONFIG_INET_ESP=m
CONFIG_INET_IPCOMP=m
CONFIG_INET_XFRM_TUNNEL=m
CONFIG_INET_TUNNEL=m
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_INET_DIAG=m
CONFIG_INET_TCP_DIAG=m
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y
CONFIG_IPV6=m
CONFIG_IPV6_PRIVACY=y
# CONFIG_IPV6_ROUTER_PREF is not set
CONFIG_INET6_AH=m
CONFIG_INET6_ESP=m
CONFIG_INET6_IPCOMP=m
CONFIG_INET6_XFRM_TUNNEL=m
CONFIG_INET6_TUNNEL=m
CONFIG_INET6_XFRM_MODE_TRANSPORT=m
CONFIG_INET6_XFRM_MODE_TUNNEL=m
CONFIG_IPV6_TUNNEL=m
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETFILTER is not set

#
# DCCP Configuration (EXPERIMENTAL)
#
CONFIG_IP_DCCP=m
CONFIG_INET_DCCP_DIAG=m
CONFIG_IP_DCCP_ACKVEC=y

#
# DCCP CCIDs Configuration (EXPERIMENTAL)
#
CONFIG_IP_DCCP_CCID2=m
CONFIG_IP_DCCP_CCID3=m
CONFIG_IP_DCCP_TFRC_LIB=m

#
# DCCP Kernel Hacking
#
# CONFIG_IP_DCCP_DEBUG is not set

#
# SCTP Configuration (EXPERIMENTAL)
#
CONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_MSG is not set
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_HMAC_NONE is not set
# CONFIG_SCTP_HMAC_SHA1 is not set
CONFIG_SCTP_HMAC_MD5=y

#
# TIPC Configuration (EXPERIMENTAL)
#
CONFIG_TIPC=m
# CONFIG_TIPC_ADVANCED is not set
# CONFIG_TIPC_DEBUG is not set
CONFIG_ATM=m
CONFIG_ATM_CLIP=m
# CONFIG_ATM_CLIP_NO_ICMP is not set
CONFIG_ATM_LANE=m
# CONFIG_ATM_MPOA is not set
CONFIG_ATM_BR2684=m
# CONFIG_ATM_BR2684_IPFILTER is not set
CONFIG_BRIDGE=m
CONFIG_VLAN_8021Q=m
# CONFIG_DECNET is not set
CONFIG_LLC=y
# CONFIG_LLC2 is not set
CONFIG_IPX=m
# CONFIG_IPX_INTERN is not set
CONFIG_ATALK=m
CONFIG_DEV_APPLETALK=y
CONFIG_IPDDP=m
CONFIG_IPDDP_ENCAP=y
CONFIG_IPDDP_DECAP=y
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
CONFIG_NET_DIVERT=y
# CONFIG_ECONET is not set
CONFIG_WAN_ROUTER=m

#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
# CONFIG_NET_SCH_CLK_JIFFIES is not set
CONFIG_NET_SCH_CLK_GETTIMEOFDAY=y
# CONFIG_NET_SCH_CLK_CPU is not set

#
# Queueing/Scheduling
#
CONFIG_NET_SCH_CBQ=m
CONFIG_NET_SCH_HTB=m
CONFIG_NET_SCH_HFSC=m
CONFIG_NET_SCH_ATM=m
CONFIG_NET_SCH_PRIO=m
CONFIG_NET_SCH_RED=m
CONFIG_NET_SCH_SFQ=m
CONFIG_NET_SCH_TEQL=m
CONFIG_NET_SCH_TBF=m
CONFIG_NET_SCH_GRED=m
CONFIG_NET_SCH_DSMARK=m
CONFIG_NET_SCH_NETEM=m
CONFIG_NET_SCH_INGRESS=m

#
# Classification
#
CONFIG_NET_CLS=y
CONFIG_NET_CLS_BASIC=m
CONFIG_NET_CLS_TCINDEX=m
CONFIG_NET_CLS_ROUTE4=m
CONFIG_NET_CLS_ROUTE=y
CONFIG_NET_CLS_FW=m
CONFIG_NET_CLS_U32=m
CONFIG_CLS_U32_PERF=y
CONFIG_NET_CLS_RSVP=m
CONFIG_NET_CLS_RSVP6=m
CONFIG_NET_EMATCH=y
CONFIG_NET_EMATCH_STACK=32
CONFIG_NET_EMATCH_CMP=m
CONFIG_NET_EMATCH_NBYTE=m
CONFIG_NET_EMATCH_U32=m
CONFIG_NET_EMATCH_META=m
CONFIG_NET_EMATCH_TEXT=m
# CONFIG_NET_CLS_ACT is not set
CONFIG_NET_CLS_POLICE=y
CONFIG_NET_CLS_IND=y
CONFIG_NET_ESTIMATOR=y

#
# Network testing
#
CONFIG_NET_PKTGEN=m
# CONFIG_HAMRADIO is not set
CONFIG_IRDA=m

#
# IrDA protocols
#
CONFIG_IRLAN=m
CONFIG_IRCOMM=m
# CONFIG_IRDA_ULTRA is not set

#
# IrDA options
#
CONFIG_IRDA_CACHE_LAST_LSAP=y
CONFIG_IRDA_FAST_RR=y
# CONFIG_IRDA_DEBUG is not set

#
# Infrared-port device drivers
#

#
# SIR device drivers
#
CONFIG_IRTTY_SIR=m

#
# Dongle support
#
CONFIG_DONGLE=y
CONFIG_ESI_DONGLE=m
CONFIG_ACTISYS_DONGLE=m
CONFIG_TEKRAM_DONGLE=m
# CONFIG_TOIM3232_DONGLE is not set
CONFIG_LITELINK_DONGLE=m
CONFIG_MA600_DONGLE=m
CONFIG_GIRBIL_DONGLE=m
CONFIG_MCP2120_DONGLE=m
CONFIG_OLD_BELKIN_DONGLE=m
CONFIG_ACT200L_DONGLE=m

#
# Old SIR device drivers
#

#
# Old Serial dongle support
#

#
# FIR device drivers
#
CONFIG_NSC_FIR=m
CONFIG_WINBOND_FIR=m
CONFIG_SMC_IRCC_FIR=m
CONFIG_ALI_FIR=m
CONFIG_VLSI_FIR=m
CONFIG_VIA_FIR=m
CONFIG_BT=m
CONFIG_BT_L2CAP=m
CONFIG_BT_SCO=m
CONFIG_BT_RFCOMM=m
CONFIG_BT_RFCOMM_TTY=y
CONFIG_BT_BNEP=m
CONFIG_BT_BNEP_MC_FILTER=y
CONFIG_BT_BNEP_PROTO_FILTER=y
CONFIG_BT_HIDP=m

#
# Bluetooth device drivers
#
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
CONFIG_BT_HCIDTL1=m
CONFIG_BT_HCIBT3C=m
CONFIG_BT_HCIBLUECARD=m
CONFIG_BT_HCIBTUART=m
CONFIG_BT_HCIVHCI=m
CONFIG_IEEE80211=m
# CONFIG_IEEE80211_DEBUG is not set
CONFIG_IEEE80211_CRYPT_WEP=m
CONFIG_IEEE80211_CRYPT_CCMP=m
CONFIG_IEEE80211_CRYPT_TKIP=m
# CONFIG_IEEE80211_SOFTMAC is not set
CONFIG_WIRELESS_EXT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_SYS_HYPERVISOR is not set

#
# Connector - unified userspace <-> kernelspace linker #
CONFIG_CONNECTOR=m

#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=m
# CONFIG_MTD_DEBUG is not set
CONFIG_MTD_CONCAT=m
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_REDBOOT_PARTS=m
CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not set
# CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
CONFIG_MTD_CMDLINE_PARTS=y

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=m
CONFIG_MTD_BLOCK=m
CONFIG_MTD_BLOCK_RO=m
CONFIG_FTL=m
CONFIG_NFTL=m
CONFIG_NFTL_RW=y
CONFIG_INFTL=m
CONFIG_RFD_FTL=m

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=m
CONFIG_MTD_JEDECPROBE=m
CONFIG_MTD_GEN_PROBE=m
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
CONFIG_MTD_CFI_INTELEXT=m
CONFIG_MTD_CFI_AMDSTD=m
CONFIG_MTD_CFI_STAA=m
CONFIG_MTD_CFI_UTIL=m
CONFIG_MTD_RAM=m
CONFIG_MTD_ROM=m
CONFIG_MTD_ABSENT=m
# CONFIG_MTD_OBSOLETE_CHIPS is not set

#
# Mapping drivers for chip access
#
CONFIG_MTD_COMPLEX_MAPPINGS=y
# CONFIG_MTD_PHYSMAP is not set
# CONFIG_MTD_PNC2000 is not set
CONFIG_MTD_SC520CDP=m
CONFIG_MTD_NETSC520=m
CONFIG_MTD_TS5500=m
# CONFIG_MTD_SBC_GXX is not set
# CONFIG_MTD_AMD76XROM is not set
# CONFIG_MTD_ICHXROM is not set
CONFIG_MTD_SCB2_FLASH=m
# CONFIG_MTD_NETtel is not set
# CONFIG_MTD_DILNETPC is not set
# CONFIG_MTD_L440GX is not set
CONFIG_MTD_PCI=m
# CONFIG_MTD_PLATRAM is not set

#
# Self-contained MTD device drivers
#
CONFIG_MTD_PMC551=m
# CONFIG_MTD_PMC551_BUGFIX is not set
# CONFIG_MTD_PMC551_DEBUG is not set
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
CONFIG_MTD_MTDRAM=m
CONFIG_MTDRAM_TOTAL_SIZE=4096
CONFIG_MTDRAM_ERASE_SIZE=128
CONFIG_MTD_BLOCK2MTD=m

#
# Disk-On-Chip Device Drivers
#
CONFIG_MTD_DOC2000=m
# CONFIG_MTD_DOC2001 is not set
CONFIG_MTD_DOC2001PLUS=m
CONFIG_MTD_DOCPROBE=m
CONFIG_MTD_DOCECC=m
# CONFIG_MTD_DOCPROBE_ADVANCED is not set
CONFIG_MTD_DOCPROBE_ADDRESS=0

#
# NAND Flash Device Drivers
#
CONFIG_MTD_NAND=m
# CONFIG_MTD_NAND_VERIFY_WRITE is not set
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND_IDS=m
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_NANDSIM is not set

#
# OneNAND Flash Device Drivers
#
# CONFIG_MTD_ONENAND is not set

#
# Parallel port support
#
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
CONFIG_PARPORT_PC_PCMCIA=m
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_AX88796 is not set
CONFIG_PARPORT_1284=y

#
# Plug and Play support
#
CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set

#
# Protocols
#
CONFIG_PNPACPI=y

#
# Block devices
#
CONFIG_BLK_DEV_FD=m
CONFIG_PARIDE=m
CONFIG_PARIDE_PARPORT=m

#
# Parallel IDE high-level drivers
#
CONFIG_PARIDE_PD=m
CONFIG_PARIDE_PCD=m
CONFIG_PARIDE_PF=m
CONFIG_PARIDE_PT=m
CONFIG_PARIDE_PG=m

#
# Parallel IDE protocol modules
#
CONFIG_PARIDE_ATEN=m
CONFIG_PARIDE_BPCK=m
CONFIG_PARIDE_COMM=m
CONFIG_PARIDE_DSTR=m
CONFIG_PARIDE_FIT2=m
CONFIG_PARIDE_FIT3=m
CONFIG_PARIDE_EPAT=m
CONFIG_PARIDE_EPATC8=y
CONFIG_PARIDE_EPIA=m
CONFIG_PARIDE_FRIQ=m
CONFIG_PARIDE_FRPW=m
CONFIG_PARIDE_KBIC=m
CONFIG_PARIDE_KTTI=m
CONFIG_PARIDE_ON20=m
CONFIG_PARIDE_ON26=m
CONFIG_BLK_CPQ_DA=m
CONFIG_BLK_CPQ_CISS_DA=m
CONFIG_CISS_SCSI_TAPE=y
CONFIG_BLK_DEV_DAC960=m
CONFIG_BLK_DEV_UMEM=m
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=m
CONFIG_BLK_DEV_CRYPTOLOOP=m
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_SX8=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_BLK_DEV_INITRD=y
CONFIG_CDROM_PKTCDVD=m
CONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
CONFIG_ATA_OVER_ETH=m

#
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives #
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECS=m
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set CONFIG_BLK_DEV_IDEFLOPPY=y
CONFIG_BLK_DEV_IDESCSI=m
CONFIG_IDE_TASK_IOCTL=y

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_CMD640=y
CONFIG_BLK_DEV_CMD640_ENHANCED=y
CONFIG_BLK_DEV_IDEPNP=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
CONFIG_BLK_DEV_AEC62XX=y
CONFIG_BLK_DEV_ALI15X3=y
# CONFIG_WDC_ALI15X3 is not set
CONFIG_BLK_DEV_AMD74XX=y
CONFIG_BLK_DEV_ATIIXP=y
CONFIG_BLK_DEV_CMD64X=y
CONFIG_BLK_DEV_TRIFLEX=y
CONFIG_BLK_DEV_CY82C693=y
CONFIG_BLK_DEV_CS5520=y
CONFIG_BLK_DEV_CS5530=y
CONFIG_BLK_DEV_HPT34X=y
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_BLK_DEV_HPT366=y
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
CONFIG_BLK_DEV_IT821X=y
# CONFIG_BLK_DEV_NS87415 is not set
CONFIG_BLK_DEV_PDC202XX_OLD=y
# CONFIG_PDC202XX_BURST is not set
CONFIG_BLK_DEV_PDC202XX_NEW=y
CONFIG_BLK_DEV_SVWKS=y
CONFIG_BLK_DEV_SIIMAGE=y
CONFIG_BLK_DEV_SIS5513=y
CONFIG_BLK_DEV_SLC90E66=y
# CONFIG_BLK_DEV_TRM290 is not set
CONFIG_BLK_DEV_VIA82CXXX=y
# CONFIG_IDE_ARM is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set

#
# SCSI device support
#
CONFIG_RAID_ATTRS=m
CONFIG_SCSI=y
# CONFIG_SCSI_TGT is not set
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=m
CONFIG_CHR_DEV_OSST=m
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=y
CONFIG_CHR_DEV_SCH=m

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs #
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_ISCSI_ATTRS=m
CONFIG_SCSI_SAS_ATTRS=y
# CONFIG_SCSI_SAS_DOMAIN_ATTRS is not set

#
# SCSI low-level drivers
#
CONFIG_ISCSI_TCP=m
CONFIG_BLK_DEV_3W_XXXX_RAID=m
CONFIG_SCSI_3W_9XXX=m
CONFIG_SCSI_ACARD=m
CONFIG_SCSI_AACRAID=m
CONFIG_SCSI_AIC7XXX=m
CONFIG_AIC7XXX_CMDS_PER_DEVICE=4
CONFIG_AIC7XXX_RESET_DELAY_MS=15000
# CONFIG_AIC7XXX_DEBUG_ENABLE is not set
CONFIG_AIC7XXX_DEBUG_MASK=0
# CONFIG_AIC7XXX_REG_PRETTY_PRINT is not set
CONFIG_SCSI_AIC7XXX_OLD=m
CONFIG_SCSI_AIC79XX=m
CONFIG_AIC79XX_CMDS_PER_DEVICE=4
CONFIG_AIC79XX_RESET_DELAY_MS=15000
# CONFIG_AIC79XX_ENABLE_RD_STRM is not set
# CONFIG_AIC79XX_DEBUG_ENABLE is not set
CONFIG_AIC79XX_DEBUG_MASK=0
# CONFIG_AIC79XX_REG_PRETTY_PRINT is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_ARCMSR is not set
CONFIG_MEGARAID_NEWGEN=y
CONFIG_MEGARAID_MM=m
CONFIG_MEGARAID_MAILBOX=m
CONFIG_MEGARAID_LEGACY=m
CONFIG_MEGARAID_SAS=m
CONFIG_SCSI_SATA=m
CONFIG_SCSI_SATA_AHCI=m
# CONFIG_SCSI_PATA_ALI is not set
# CONFIG_SCSI_PATA_AMD is not set
CONFIG_SCSI_SATA_SVW=m
# CONFIG_SCSI_PATA_TRIFLEX is not set
# CONFIG_SCSI_PATA_MPIIX is not set
# CONFIG_SCSI_PATA_OLDPIIX is not set
CONFIG_SCSI_ATA_PIIX=m
CONFIG_SCSI_SATA_MV=m
# CONFIG_SCSI_PATA_NETCELL is not set
CONFIG_SCSI_SATA_NV=m
# CONFIG_SCSI_PATA_OPTI is not set
CONFIG_SCSI_PDC_ADMA=m
# CONFIG_SCSI_HPTIOP is not set
CONFIG_SCSI_SATA_QSTOR=m
# CONFIG_SCSI_PATA_PDC2027X is not set
CONFIG_SCSI_SATA_PROMISE=m
CONFIG_SCSI_SATA_SX4=m
CONFIG_SCSI_SATA_SIL=m
CONFIG_SCSI_SATA_SIL24=m
# CONFIG_SCSI_PATA_SIL680 is not set
# CONFIG_SCSI_PATA_SIS is not set
CONFIG_SCSI_SATA_SIS=m
CONFIG_SCSI_SATA_ULI=m
# CONFIG_SCSI_PATA_VIA is not set
CONFIG_SCSI_SATA_VIA=m
CONFIG_SCSI_SATA_VITESSE=m
CONFIG_SCSI_SATA_INTEL_COMBINED=y
CONFIG_SCSI_BUSLOGIC=m
# CONFIG_SCSI_OMIT_FLASHPOINT is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
CONFIG_SCSI_GDTH=m
CONFIG_SCSI_IPS=m
CONFIG_SCSI_INITIO=m
CONFIG_SCSI_INIA100=m
CONFIG_SCSI_PPA=m
CONFIG_SCSI_IMM=m
# CONFIG_SCSI_IZIP_EPP16 is not set
# CONFIG_SCSI_IZIP_SLOW_CTR is not set
# CONFIG_SCSI_STEX is not set
CONFIG_SCSI_SYM53C8XX_2=m
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16
CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
CONFIG_SCSI_SYM53C8XX_MMIO=y
# CONFIG_SCSI_IPR is not set
CONFIG_SCSI_QLOGIC_1280=m
CONFIG_SCSI_QLA_FC=m
CONFIG_SCSI_LPFC=m
CONFIG_SCSI_DC395x=m
CONFIG_SCSI_DC390T=m
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_SRP is not set

#
# PCMCIA SCSI adapter support
#
# CONFIG_PCMCIA_FDOMAIN is not set
CONFIG_PCMCIA_QLOGIC=m
CONFIG_PCMCIA_SYM53C500=m

#
# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=m
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID10=m
# CONFIG_MD_RAID456 is not set
CONFIG_MD_MULTIPATH=m
CONFIG_MD_FAULTY=m
CONFIG_BLK_DEV_DM=y
CONFIG_DM_CRYPT=m
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_MIRROR=y
CONFIG_DM_ZERO=y
CONFIG_DM_MULTIPATH=m
CONFIG_DM_MULTIPATH_EMC=m

#
# Fusion MPT device support
#
CONFIG_FUSION=y
CONFIG_FUSION_SPI=y
CONFIG_FUSION_FC=y
CONFIG_FUSION_SAS=y
CONFIG_FUSION_MAX_SGE=40
CONFIG_FUSION_CTL=y
CONFIG_FUSION_LAN=y

#
# IEEE 1394 (FireWire) support
#
CONFIG_IEEE1394=m

#
# Subsystem Options
#
# CONFIG_IEEE1394_VERBOSEDEBUG is not set
CONFIG_IEEE1394_OUI_DB=y
CONFIG_IEEE1394_EXTRA_CONFIG_ROMS=y
CONFIG_IEEE1394_CONFIG_ROM_IP1394=y
# CONFIG_IEEE1394_EXPORT_FULL_API is not set

#
# Device Drivers
#

#
# Texas Instruments PCILynx requires I2C
#
CONFIG_IEEE1394_OHCI1394=m

#
# Protocol Drivers
#
CONFIG_IEEE1394_VIDEO1394=m
CONFIG_IEEE1394_SBP2=m
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
CONFIG_IEEE1394_ETH1394=m
CONFIG_IEEE1394_DV1394=m
CONFIG_IEEE1394_RAWIO=m

#
# I2O device support
#
# CONFIG_I2O is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
CONFIG_BONDING=m
CONFIG_EQUALIZER=m
CONFIG_TUN=m
CONFIG_NET_SB1000=m

#
# ARCnet devices
#
# CONFIG_ARCNET is not set

#
# PHY device support
#
CONFIG_PHYLIB=m

#
# MII PHY device drivers
#
CONFIG_MARVELL_PHY=m
CONFIG_DAVICOM_PHY=m
CONFIG_QSEMI_PHY=m
CONFIG_LXT_PHY=m
CONFIG_CICADA_PHY=m
# CONFIG_SMSC_PHY is not set

#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
CONFIG_MII=m
CONFIG_HAPPYMEAL=m
CONFIG_SUNGEM=m
CONFIG_CASSINI=m
CONFIG_NET_VENDOR_3COM=y
CONFIG_VORTEX=m
CONFIG_TYPHOON=m

#
# Tulip family network device support
#
CONFIG_NET_TULIP=y
CONFIG_DE2104X=m
CONFIG_TULIP=m
# CONFIG_TULIP_MWI is not set
CONFIG_TULIP_MMIO=y
# CONFIG_TULIP_NAPI is not set
CONFIG_DE4X5=m
CONFIG_WINBOND_840=m
CONFIG_DM9102=m
CONFIG_ULI526X=m
CONFIG_PCMCIA_XIRCOM=m
# CONFIG_HP100 is not set
CONFIG_NET_PCI=y
CONFIG_PCNET32=m
CONFIG_AMD8111_ETH=m
CONFIG_AMD8111E_NAPI=y
CONFIG_ADAPTEC_STARFIRE=m
CONFIG_ADAPTEC_STARFIRE_NAPI=y
CONFIG_B44=m
CONFIG_FORCEDETH=m
CONFIG_DGRS=m
# CONFIG_EEPRO100 is not set
CONFIG_E100=m
CONFIG_FEALNX=m
CONFIG_NATSEMI=m
CONFIG_NE2K_PCI=m
CONFIG_8139CP=m
CONFIG_8139TOO=m
# CONFIG_8139TOO_PIO is not set
# CONFIG_8139TOO_TUNE_TWISTER is not set
CONFIG_8139TOO_8129=y
# CONFIG_8139_OLD_RX_RESET is not set
CONFIG_SIS900=m
CONFIG_EPIC100=m
CONFIG_SUNDANCE=m
# CONFIG_SUNDANCE_MMIO is not set
CONFIG_VIA_RHINE=m
CONFIG_VIA_RHINE_MMIO=y
CONFIG_NET_POCKET=y
CONFIG_ATP=m
CONFIG_DE600=m
CONFIG_DE620=m

#
# Ethernet (1000 Mbit)
#
CONFIG_ACENIC=m
# CONFIG_ACENIC_OMIT_TIGON_I is not set
CONFIG_DL2K=m
CONFIG_E1000=m
CONFIG_E1000_NAPI=y
# CONFIG_E1000_DISABLE_PACKET_SPLIT is not set
CONFIG_NS83820=m
CONFIG_HAMACHI=m
CONFIG_YELLOWFIN=m
CONFIG_R8169=m
CONFIG_R8169_NAPI=y
CONFIG_R8169_VLAN=y
CONFIG_SIS190=m
CONFIG_SKGE=m
CONFIG_SKY2=m
# CONFIG_SK98LIN is not set
CONFIG_VIA_VELOCITY=m
CONFIG_TIGON3=y
CONFIG_BNX2=m

#
# Ethernet (10000 Mbit)
#
CONFIG_CHELSIO_T1=m
CONFIG_IXGB=m
CONFIG_IXGB_NAPI=y
CONFIG_S2IO=m
CONFIG_S2IO_NAPI=y
# CONFIG_MYRI10GE is not set

#
# Token Ring devices
#
CONFIG_TR=y
CONFIG_IBMOL=m
CONFIG_3C359=m
# CONFIG_TMS380TR is not set

#
# Wireless LAN (non-hamradio)
#
CONFIG_NET_RADIO=y
# CONFIG_NET_WIRELESS_RTNETLINK is not set

#
# Obsolete Wireless cards support (pre-802.11)
#
# CONFIG_STRIP is not set
CONFIG_PCMCIA_WAVELAN=m
CONFIG_PCMCIA_NETWAVE=m

#
# Wireless 802.11 Frequency Hopping cards support
#
# CONFIG_PCMCIA_RAYCS is not set

#
# Wireless 802.11b ISA/PCI cards support
#
CONFIG_IPW2100=m
CONFIG_IPW2100_MONITOR=y
# CONFIG_IPW2100_DEBUG is not set
CONFIG_IPW2200=m
# CONFIG_IPW2200_MONITOR is not set
# CONFIG_IPW2200_QOS is not set
# CONFIG_IPW2200_DEBUG is not set
CONFIG_AIRO=m
CONFIG_HERMES=m
CONFIG_PLX_HERMES=m
CONFIG_TMD_HERMES=m
CONFIG_NORTEL_HERMES=m
CONFIG_PCI_HERMES=m
CONFIG_ATMEL=m
CONFIG_PCI_ATMEL=m

#
# Wireless 802.11b Pcmcia/Cardbus cards support
#
CONFIG_PCMCIA_HERMES=m
CONFIG_PCMCIA_SPECTRUM=m
CONFIG_AIRO_CS=m
CONFIG_PCMCIA_ATMEL=m
CONFIG_PCMCIA_WL3501=m

#
# Prism GT/Duette 802.11(a/b/g) PCI/Cardbus support #
CONFIG_PRISM54=m
CONFIG_HOSTAP=m
CONFIG_HOSTAP_FIRMWARE=y CONFIG_HOSTAP_FIRMWARE_NVRAM=y CONFIG_HOSTAP_PLX=m
CONFIG_HOSTAP_PCI=m
CONFIG_HOSTAP_CS=m
# CONFIG_ACX is not set CONFIG_NET_WIRELESS=y

#
# PCMCIA network device support
#
CONFIG_NET_PCMCIA=y
CONFIG_PCMCIA_3C589=m
CONFIG_PCMCIA_3C574=m
CONFIG_PCMCIA_FMVJ18X=m
CONFIG_PCMCIA_PCNET=m
CONFIG_PCMCIA_NMCLAN=m
CONFIG_PCMCIA_SMC91C92=m
CONFIG_PCMCIA_XIRC2PS=m
CONFIG_PCMCIA_AXNET=m

#
# Wan interfaces
#
# CONFIG_WAN is not set

#
# ATM drivers
#
# CONFIG_ATM_DUMMY is not set
CONFIG_ATM_TCP=m
CONFIG_ATM_LANAI=m
CONFIG_ATM_ENI=m
# CONFIG_ATM_ENI_DEBUG is not set
# CONFIG_ATM_ENI_TUNE_BURST is not set
CONFIG_ATM_FIRESTREAM=m
# CONFIG_ATM_ZATM is not set
CONFIG_ATM_IDT77252=m
# CONFIG_ATM_IDT77252_DEBUG is not set
# CONFIG_ATM_IDT77252_RCV_ALL is not set
CONFIG_ATM_IDT77252_USE_SUNI=y
CONFIG_ATM_AMBASSADOR=m
# CONFIG_ATM_AMBASSADOR_DEBUG is not set
CONFIG_ATM_HORIZON=m
# CONFIG_ATM_HORIZON_DEBUG is not set
CONFIG_ATM_FORE200E_MAYBE=m
# CONFIG_ATM_FORE200E_PCA is not set
CONFIG_ATM_HE=m
# CONFIG_ATM_HE_USE_SUNI is not set
CONFIG_FDDI=y
# CONFIG_DEFXX is not set
CONFIG_SKFP=m
# CONFIG_HIPPI is not set
CONFIG_PLIP=m
# CONFIG_PPP is not set
CONFIG_SLIP=m
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLIP_SMART=y
# CONFIG_SLIP_MODE_SLIP6 is not set
CONFIG_NET_FC=y
# CONFIG_SHAPER is not set
CONFIG_NETCONSOLE=m
CONFIG_NETPOLL=y
# CONFIG_NETPOLL_RX is not set
CONFIG_NETPOLL_TRAP=y
CONFIG_NET_POLL_CONTROLLER=y

#
# ISDN subsystem
#
# CONFIG_ISDN is not set

#
# Telephony Support
#
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_EFFECTS is not set

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_INPUT_JOYDEV=m
# CONFIG_INPUT_TSDEV is not set
CONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD 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

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_SERIO_I8042=y
CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
CONFIG_GAMEPORT=m
CONFIG_GAMEPORT_NS558=m
CONFIG_GAMEPORT_L4=m
CONFIG_GAMEPORT_EMU10K1=m
CONFIG_GAMEPORT_FM801=m

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_CS is not set
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_PRINTER=m
CONFIG_LP_CONSOLE=y
CONFIG_PPDEV=m
CONFIG_TIPAR=m

#
# IPMI
#
CONFIG_IPMI_HANDLER=m
# CONFIG_IPMI_PANIC_EVENT is not set
CONFIG_IPMI_DEVICE_INTERFACE=m
CONFIG_IPMI_SI=m
CONFIG_IPMI_WATCHDOG=m
CONFIG_IPMI_POWEROFF=m

#
# Watchdog Cards
#
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_NOWAYOUT is not set

#
# Watchdog Device Drivers
#
CONFIG_SOFT_WATCHDOG=m
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
CONFIG_ALIM1535_WDT=m
CONFIG_ALIM7101_WDT=m
# CONFIG_SC520_WDT is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
CONFIG_IBMASR=m
# CONFIG_WAFER_WDT is not set
CONFIG_I6300ESB_WDT=m
CONFIG_I8XX_TCO=m
# CONFIG_ITCO_WDT is not set
# CONFIG_SC1200_WDT is not set
# CONFIG_60XX_WDT is not set
# CONFIG_SBC8360_WDT is not set
# CONFIG_CPU5_WDT is not set
CONFIG_W83627HF_WDT=m
CONFIG_W83877F_WDT=m
CONFIG_W83977F_WDT=m
CONFIG_MACHZ_WDT=m
# CONFIG_SBC_EPX_C3_WATCHDOG is not set

#
# PCI-based Watchdog Cards
#
CONFIG_PCIPCWATCHDOG=m
CONFIG_WDTPCI=m
CONFIG_WDT_501_PCI=y
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_INTEL=y
CONFIG_HW_RANDOM_AMD=y
CONFIG_HW_RANDOM_GEODE=y
CONFIG_NVRAM=m
CONFIG_RTC=y
CONFIG_DTLK=m
CONFIG_R3964=m
# CONFIG_APPLICOM is not set

#
# Ftape, the floppy tape device driver
#
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_DRM is not set

#
# PCMCIA character devices
#
# CONFIG_SYNCLINK_CS is not set
CONFIG_CARDMAN_4000=m
CONFIG_CARDMAN_4040=m
CONFIG_MWAVE=m
# CONFIG_RAW_DRIVER is not set
CONFIG_HPET=y
# CONFIG_HPET_RTC_IRQ is not set
# CONFIG_HPET_MMAP is not set
CONFIG_HANGCHECK_TIMER=m

#
# TPM devices
#
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set

#
# I2C support
#
# CONFIG_I2C is not set

#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set

#
# Dallas's 1-wire bus
#
CONFIG_W1=m
CONFIG_W1_CON=y

#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_MATROX is not set

#
# 1-wire Slaves
#
# CONFIG_W1_SLAVE_THERM is not set
# CONFIG_W1_SLAVE_SMEM is not set
# CONFIG_W1_SLAVE_DS2433 is not set

#
# Hardware Monitoring support
#
CONFIG_HWMON=m
# CONFIG_HWMON_VID is not set
CONFIG_SENSORS_F71805F=m
CONFIG_SENSORS_HDAPS=m
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Misc devices
#
# CONFIG_IBM_ASM is not set

#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
CONFIG_VIDEO_V4L2=y

#
# Digital Video Broadcasting Devices
#
CONFIG_DVB=y
CONFIG_DVB_CORE=m

#
# Supported DVB Frontends
#

#
# Customise DVB Frontends
#

#
# DVB-S (satellite) frontends
#
CONFIG_DVB_STV0299=m
CONFIG_DVB_CX24110=m
CONFIG_DVB_CX24123=m
CONFIG_DVB_TDA8083=m
CONFIG_DVB_MT312=m
CONFIG_DVB_VES1X93=m
CONFIG_DVB_S5H1420=m

#
# DVB-T (terrestrial) frontends
#
CONFIG_DVB_SP8870=m
CONFIG_DVB_SP887X=m
CONFIG_DVB_CX22700=m
CONFIG_DVB_CX22702=m
CONFIG_DVB_L64781=m
CONFIG_DVB_TDA1004X=m
CONFIG_DVB_NXT6000=m
CONFIG_DVB_MT352=m
# CONFIG_DVB_ZL10353 is not set
CONFIG_DVB_DIB3000MB=m
CONFIG_DVB_DIB3000MC=m

#
# DVB-C (cable) frontends
#
CONFIG_DVB_VES1820=m
CONFIG_DVB_TDA10021=m
CONFIG_DVB_STV0297=m

#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #
CONFIG_DVB_NXT200X=m
CONFIG_DVB_OR51211=m
CONFIG_DVB_OR51132=m
CONFIG_DVB_BCM3510=m
CONFIG_DVB_LGDT330X=m

#
# Miscellaneous devices
#
# CONFIG_DVB_LNBP21 is not set
# CONFIG_DVB_ISL6421 is not set

#
# Graphics support
#
CONFIG_FIRMWARE_EDID=y
# CONFIG_FB is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_VIDEO_SELECT=y
CONFIG_DUMMY_CONSOLE=y

#
# Sound
#
# CONFIG_SOUND is not set

#
# USB support
#
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
# CONFIG_USB is not set

#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' #

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set

#
# MMC/SD Card support
#
CONFIG_MMC=m
# CONFIG_MMC_DEBUG is not set
CONFIG_MMC_BLOCK=m
# CONFIG_MMC_SDHCI is not set
CONFIG_MMC_WBSD=m

#
# LED devices
#
# CONFIG_NEW_LEDS is not set

#
# LED drivers
#

#
# LED Triggers
#

#
# InfiniBand support
#
CONFIG_INFINIBAND=m
CONFIG_INFINIBAND_USER_MAD=m
CONFIG_INFINIBAND_USER_ACCESS=m
CONFIG_INFINIBAND_ADDR_TRANS=y
CONFIG_INFINIBAND_MTHCA=m
CONFIG_INFINIBAND_MTHCA_DEBUG=y
CONFIG_INFINIBAND_IPOIB=m
CONFIG_INFINIBAND_IPOIB_DEBUG=y
# CONFIG_INFINIBAND_IPOIB_DEBUG_DATA is not set
CONFIG_INFINIBAND_SRP=m
# CONFIG_INFINIBAND_ISER is not set

#
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL) #
CONFIG_EDAC=y

#
# Reporting subsystems
#
# CONFIG_EDAC_DEBUG is not set
CONFIG_EDAC_MM_EDAC=m
CONFIG_EDAC_E752X=m
CONFIG_EDAC_POLL=y

#
# Real Time Clock
#
# CONFIG_RTC_CLASS is not set

#
# DMA Engine support
#
# CONFIG_DMA_ENGINE is not set

#
# DMA Clients
#

#
# DMA Devices
#

#
# Firmware Drivers
#
CONFIG_EDD=m
CONFIG_DELL_RBU=m
CONFIG_DCDBAS=m

#
# File systems
#
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISER4_FS is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
CONFIG_REISERFS_PROC_INFO=y
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
CONFIG_FS_POSIX_ACL=y
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
CONFIG_OCFS2_FS=m
CONFIG_MINIX_FS=m
CONFIG_ROMFS_FS=m
CONFIG_INOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_QUOTA=y
# CONFIG_QFMT_V1 is not set
CONFIG_QFMT_V2=y
CONFIG_QUOTACTL=y
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
CONFIG_FUSE_FS=m

#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=m
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=m
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_VMCORE=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y
CONFIG_RAMFS=y
CONFIG_CONFIGFS_FS=m

#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
CONFIG_BFS_FS=m
CONFIG_EFS_FS=m
# CONFIG_JFFS_FS is not set
# CONFIG_JFFS2_FS is not set
CONFIG_CRAMFS=m
CONFIG_VXFS_FS=m
# CONFIG_HPFS_FS is not set
CONFIG_QNX4FS_FS=m
CONFIG_SYSV_FS=m
CONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not set

#
# Network File Systems
#
# CONFIG_NFS_FS is not set
# CONFIG_NFSD is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_CIFS_DEBUG2 is not set
CONFIG_NCP_FS=m
CONFIG_NCPFS_PACKET_SIGNING=y
CONFIG_NCPFS_IOCTL_LOCKING=y
CONFIG_NCPFS_STRONG=y
CONFIG_NCPFS_NFS_NS=y
CONFIG_NCPFS_OS2_NS=y
CONFIG_NCPFS_SMALLDOS=y
CONFIG_NCPFS_NLS=y
CONFIG_NCPFS_EXTRAS=y
CONFIG_CODA_FS=m
# CONFIG_CODA_FS_OLD_API is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not set

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
CONFIG_OSF_PARTITION=y
CONFIG_AMIGA_PARTITION=y
# CONFIG_ATARI_PARTITION is not set
CONFIG_MAC_PARTITION=y
CONFIG_MSDOS_PARTITION=y
CONFIG_BSD_DISKLABEL=y
CONFIG_MINIX_SUBPARTITION=y
CONFIG_SOLARIS_X86_PARTITION=y
CONFIG_UNIXWARE_DISKLABEL=y
# CONFIG_LDM_PARTITION is not set
CONFIG_SGI_PARTITION=y
# CONFIG_ULTRIX_PARTITION is not set
CONFIG_SUN_PARTITION=y
CONFIG_KARMA_PARTITION=y
CONFIG_EFI_PARTITION=y

#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="utf8"
CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_737=m
CONFIG_NLS_CODEPAGE_775=m
CONFIG_NLS_CODEPAGE_850=m
CONFIG_NLS_CODEPAGE_852=m
CONFIG_NLS_CODEPAGE_855=m
CONFIG_NLS_CODEPAGE_857=m
CONFIG_NLS_CODEPAGE_860=m
CONFIG_NLS_CODEPAGE_861=m
CONFIG_NLS_CODEPAGE_862=m
CONFIG_NLS_CODEPAGE_863=m
CONFIG_NLS_CODEPAGE_864=m
CONFIG_NLS_CODEPAGE_865=m
CONFIG_NLS_CODEPAGE_866=m
CONFIG_NLS_CODEPAGE_869=m
CONFIG_NLS_CODEPAGE_936=m
CONFIG_NLS_CODEPAGE_950=m
CONFIG_NLS_CODEPAGE_932=m
CONFIG_NLS_CODEPAGE_949=m
CONFIG_NLS_CODEPAGE_874=m
CONFIG_NLS_ISO8859_8=m
CONFIG_NLS_CODEPAGE_1250=m
CONFIG_NLS_CODEPAGE_1251=m
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=m
CONFIG_NLS_ISO8859_2=m
CONFIG_NLS_ISO8859_3=m
CONFIG_NLS_ISO8859_4=m
CONFIG_NLS_ISO8859_5=m
CONFIG_NLS_ISO8859_6=m
CONFIG_NLS_ISO8859_7=m
CONFIG_NLS_ISO8859_9=m
CONFIG_NLS_ISO8859_13=m
CONFIG_NLS_ISO8859_14=m
CONFIG_NLS_ISO8859_15=m
CONFIG_NLS_KOI8_R=m
CONFIG_NLS_KOI8_U=m
CONFIG_NLS_UTF8=m

#
# Distributed Lock Manager
#
# CONFIG_DLM is not set

#
# Instrumentation Support
#
CONFIG_PROFILING=y
CONFIG_OPROFILE=m
CONFIG_KPROBES=y

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
# CONFIG_PRINTK_TIME is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_UNUSED_SYMBOLS=y
# CONFIG_DEBUG_SHIRQ is not set
CONFIG_DEBUG_KERNEL=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_MUTEXES is not set
CONFIG_DEBUG_RT_MUTEXES=y
CONFIG_DEBUG_PI_LIST=y
# CONFIG_RT_MUTEX_TESTER is not set
CONFIG_DEBUG_SPINLOCK=y
# CONFIG_PROVE_SPIN_LOCKING is not set
# CONFIG_PROVE_RW_LOCKING is not set
# CONFIG_PROVE_MUTEX_LOCKING is not set
# CONFIG_PROVE_RWSEM_LOCKING is not set
CONFIG_DEBUG_SPINLOCK_SLEEP=y
CONFIG_DEBUG_LOCKING_API_SELFTESTS=y
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_INFO=y
# CONFIG_PAGE_OWNER is not set
CONFIG_DEBUG_FS=y
# CONFIG_DEBUG_VM is not set
# CONFIG_FRAME_POINTER is not set
# CONFIG_UNWIND_INFO is not set
# CONFIG_FORCED_INLINING is not set
# CONFIG_DEBUG_SYNCHRO_TEST is not set
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_PROFILE_LIKELY is not set
# CONFIG_WANT_EXTRA_DEBUG_INFORMATION is not set
CONFIG_DEBUG_RODATA=y
# CONFIG_IOMMU_DEBUG is not set

#
# Security options
#
CONFIG_KEYS=y
CONFIG_KEYS_DEBUG_PROC_KEYS=y
CONFIG_SECURITY=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_CAPABILITIES=y
# CONFIG_SECURITY_SECLVL is not set
# CONFIG_SECURITY_SELINUX is not set

#
# Cryptographic options
#
CONFIG_CRYPTO=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_NULL=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_SHA1=y
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_SHA512=m
CONFIG_CRYPTO_WP512=m
CONFIG_CRYPTO_TGR192=m
CONFIG_CRYPTO_DES=m
CONFIG_CRYPTO_BLOWFISH=m
CONFIG_CRYPTO_TWOFISH=m
CONFIG_CRYPTO_SERPENT=m
CONFIG_CRYPTO_AES=m
CONFIG_CRYPTO_AES_X86_64=m
CONFIG_CRYPTO_CAST5=m
CONFIG_CRYPTO_CAST6=m
CONFIG_CRYPTO_TEA=m
CONFIG_CRYPTO_ARC4=m
CONFIG_CRYPTO_KHAZAD=m
CONFIG_CRYPTO_ANUBIS=m
CONFIG_CRYPTO_DEFLATE=m
CONFIG_CRYPTO_MICHAEL_MIC=m
CONFIG_CRYPTO_CRC32C=m
# CONFIG_CRYPTO_TEST is not set

#
# Hardware crypto devices
#

#
# Library routines
#
CONFIG_CRC_CCITT=m
CONFIG_CRC16=m
CONFIG_CRC32=y
CONFIG_LIBCRC32C=m
CONFIG_ZLIB_INFLATE=m
CONFIG_ZLIB_DEFLATE=m
CONFIG_TEXTSEARCH=y
CONFIG_TEXTSEARCH_KMP=m
CONFIG_TEXTSEARCH_BM=m
CONFIG_TEXTSEARCH_FSM=m
CONFIG_PLIST=y

#97 lore raw
Quoted 10 lines · On Fri, 2 Jun 2006 19:38:36 +0100 (IST) Mel Gorman <[email protected]> wrote:

This reliably goes kablam on an x86_64 machine with a tg3 network card which was also happening for 2.6.17-rc5-mm1. A patch bisect found that reversing git-net.patch and git-net-git-klibc-fixup.patch on top of the -mm3 got rid of the problem. Don't ask me why.

The console log I have of the most common oops is below and the .config used is attached. The oops happens reliably but at varying times and not always the same oops either. Usually sshing into the machine and compiling the kernel is enough. On at least one occasion, sshing to the machine triggered it.

Yeah, sorry. I _knew_ LLC was buggy but I forgot to mention it in the release notes and wasted heaps of lots of people's time. Feel free to bill me :(

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/hot-fixes/git-net-llc-fix.patch

should fix.

#94 lore raw
In reply to Paolo Ornati
Quoted 5 lines · Paolo Ornati
Quoted 2 lines · On Fri, 2 Jun 2006 16:13:49 +0200 Ingo Molnar <[email protected]> wrote:

please try my latest lockdep-combo patch:

Quoted 8 lines
Quoted 4 lines

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

ontop of vanilla -mm2. The combo patch includes all current -mm2 hotfixes plus all current lockdep fixes.

It gives me an Oops: "NULL pointer dereference at kmem_cache_alloc+0x23/0x7b" and than a panic (attemp to kill idle task).

ok, this was yet another slab.c early init assumption ...

could try the latest combo patch at:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

does this one finally boot for you?

Ingo

#95 lore raw
Quoted 7 lines · On Fri, 2 Jun 2006 21:49:47 +0200 Ingo Molnar <[email protected]> wrote:

ok, this was yet another slab.c early init assumption ...

could try the latest combo patch at:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

does this one finally boot for you?

I've applied the single patch. At first I've got problems (lots of messages scrolling on the screen, and then a kernel panic). They are related to netconsole because disabling it lets me boot :)

If the problem with netconsole doesn't go away I'll set up a serial console to capture the enormous output.

Signature · 1 line
	Paolo Ornati
Quoted 1 line
Quoted 1 line
Quoted 1 line
	Linux 2.6.17-rc5-mm2-lockdep on x86_64 <<<
#74 lore raw
In reply to Barry K. Nathan
Quoted 8 lines · Barry K. Nathan

I'm doing building the kernel, but I haven't been able to boot it yet:
This system boots the kernel off floppy disks, and under 2.6.17-rc5-mm2, the floppy drive no longer works! The disk spins but the kernel can't read any of the disk's sectors, even for other known-working floppies. I'll have to boot back into 2.6.17-rc4-mm3 before I can copy the new kernel onto a disk and boot from it. That will take me a couple of minutes, although I have to go to school in under an hour so I might not get to it until later today.

does it get any better if you remove:

http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/broken-out/lock-validator-floppyc-irq-release-fix.patch

?

Ingo

#25 lore raw
In reply to Ingo Molnar
Quoted 11 lines · Ingo Molnar
Quoted 7 lines · Jan Beulich
Quoted 3 lines

firstly, i'd suggest to use another magic value for 'bottom of call stacks' - it is way too common to jump or call a NULL pointer. Something like 0xfedcba9876543210 would be better.

That's contrary to common use (outside of the kernel). I'm opposed to this. Detecting an initial bad EIP isn't a problem, and the old code can be used easily in that case.

Quoted 5 lines

but 0 is pretty much the worst choice for something that needs to be reliable - it's the most common type of machine word in existence, amongst all the 18446744073709551616 possibilities. And we need not care about userspace's prior choices, this code and data is totally under the kernel's control.

I've missed some context here, but assuming you're talking about DWARF and reliably marking the end of the backtrace, why not actually mark stack termination instead of futzing around with zeros? GDB now detects the return address column in the unwind info being set to undefined and treats that as an end of stack. Then you can treat any other zeros you encounter as problems.

Signature · 2 lines
Daniel Jacobowitz
CodeSourcery
#75 lore raw
In reply to Ingo Molnar
Quoted 5 lines · Ingo Molnar

does it get any better if you remove:

http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/broken-out/lock-validator-floppyc-irq-release-fix.patch

?

I won't be able to check until later today. With the tracing patch added (for figuring out the warning at boot time), my kernel is about 50-60K too large to fit on a 1.6MB floppy. I first need to see if I can trim or modularize some fat from my kernel without affecting the reproducibility of these bugs... (If all else fails, I'll probably add a CD-RW drive to this box and boot kernels from that.)

Signature · 1 line
-Barry K. Nathan <[email protected]>
#76 lore raw
Quoted 5 lines · Barry K. Nathan
Quoted 4 lines · Ingo Molnar

does it get any better if you remove:

http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/broken-out/lock-validator-floppyc-irq-release-fix.patch

Quoted 8 lines
Quoted 1 line

?

I won't be able to check until later today. With the tracing patch added (for figuring out the warning at boot time), my kernel is about 50-60K too large to fit on a 1.6MB floppy. I first need to see if I can trim or modularize some fat from my kernel without affecting the reproducibility of these bugs... (If all else fails, I'll probably add a CD-RW drive to this box and boot kernels from that.)

just disable FORCED_INLINING in the .config, turn on EMBEDDED and select OPTIMIZE_FOR_SIZE, and that should give you 30-40% of kernel size savings.

Ingo

#77 lore raw
Quoted 9 lines · Ingo Molnar
Quoted 5 lines

added (for figuring out the warning at boot time), my kernel is about 50-60K too large to fit on a 1.6MB floppy. I first need to see if I can trim or modularize some fat from my kernel without affecting the reproducibility of these bugs... (If all else fails, I'll probably add a CD-RW drive to this box and boot kernels from that.)

just disable FORCED_INLINING in the .config, turn on EMBEDDED and select OPTIMIZE_FOR_SIZE, and that should give you 30-40% of kernel size savings.

also, the latest combo patch:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

should have the floppy bug(s) fixed.

Ingo

#98 lore raw
In reply to Andrew Morton
Quoted 8 lines · Andrew Morton
Quoted 5 lines · On Fri, 2 Jun 2006 19:38:36 +0100 (IST) Mel Gorman <[email protected]> wrote:

This reliably goes kablam on an x86_64 machine with a tg3 network card which was also happening for 2.6.17-rc5-mm1. A patch bisect found that reversing git-net.patch and git-net-git-klibc-fixup.patch on top of the -mm3 got rid of the problem. Don't ask me why.

Quoted 8 lines
Quoted 5 lines

The console log I have of the most common oops is below and the .config used is attached. The oops happens reliably but at varying times and not always the same oops either. Usually sshing into the machine and compiling the kernel is enough. On at least one occasion, sshing to the machine triggered it.

Yeah, sorry. I _knew_ LLC was buggy but I forgot to mention it in the release notes and wasted heaps of lots of people's time. Feel free to bill me :(

Nah, it gave me something handy to do on a Friday :)

Quoted 4 lines

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17-rc5/2.6.17-rc5-mm2/hot-fixes/git-net-llc-fix.patch

should fix.

Confirmed. The machine passed some fairly basic tests it was failing on before.

Signature · 3 lines
Mel Gorman
Part-time Phd Student                          Linux Technology Center
University of Limerick                         IBM Dublin Software Lab
#78 lore raw
In reply to Ingo Molnar
Quoted 6 lines · Ingo Molnar
Quoted 3 lines · Ingo Molnar

just disable FORCED_INLINING in the .config, turn on EMBEDDED and select OPTIMIZE_FOR_SIZE, and that should give you 30-40% of kernel size savings.

I was already doing OPTIMIZE_FOR_SIZE. I didn't think of disabling FORCED_INLINING, thanks for reminding me of that. I managed to trim the kernel in other ways.

Quoted 5 lines

also, the latest combo patch:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

should have the floppy bug(s) fixed.

I'll try that later today (and I'll also provide the /proc/latency_trace to help figure out the warning). In the meantime, I can confirm that the floppy drive started working again with lock-validator-floppyc-irq-release-fix.patch reverted.

BTW, the latency_trace is close to 130K. Should I send it to you by private mail instead of to the list? Or should I compress it and send it as an attachment?

Andrew, I can also confirm that the LLC hotfix is allowing LLC (and AppleTalk) to work again.

Signature · 1 line
-Barry K. Nathan <[email protected]>
#79 lore raw
Quoted 3 lines · Barry K. Nathan

I was already doing OPTIMIZE_FOR_SIZE. I didn't think of disabling FORCED_INLINING, thanks for reminding me of that. I managed to trim the kernel in other ways.

Hmm... disabling FORCED_INLINING didn't make much if any difference.

Quoted 8 lines
Quoted 5 lines

also, the latest combo patch:

http://redhat.com/~mingo/lockdep-patches/lockdep-combo-2.6.17-rc5-mm2.patch

should have the floppy bug(s) fixed.

I'll try that later today (and I'll also provide the /proc/latency_trace to help figure out the warning). In the meantime,

[snip]

Yes, the latest combo patch works. It still gives the warning, too (copied here since it looks slightly different with the latency trace patch added):

[  197.343620] (            idle-0    |#0): new 120978036 us user-latency.
[  197.343807] stopped custom tracer.
[  197.343948] BUG: warning at kernel/lockdep.c:1856/trace_hardirqs_on()
[  197.345928]  [<c010329b>] show_trace_log_lvl+0x5b/0x105
[  197.346359]  [<c0103896>] show_trace+0x1b/0x20
[  197.346759]  [<c01038ed>] dump_stack+0x1f/0x24
[  197.347159]  [<c012efa2>] trace_hardirqs_on+0xfb/0x185
[  197.348873]  [<c029b009>] _spin_unlock_irq+0x24/0x2d
[  197.350620]  [<e09034e8>] do_tx_done+0x171/0x179 [ns83820]
[  197.350895]  [<e090445c>] ns83820_irq+0x149/0x20b [ns83820]
[  197.351166]  [<c013b4b8>] handle_IRQ_event+0x1d/0x52
[  197.353216]  [<c013c6c2>] handle_level_irq+0x97/0xe1
[  197.355157]  [<c01048c3>] do_IRQ+0x8b/0xac
[  197.355612]  [<c0102d9d>] common_interrupt+0x25/0x2c

I've posted the /proc/latency_trace here:
http://members.cox.net/barrykn/linux/trace/latency_trace.bz2

It turns out that I was *way* off on the size in my last mail. It's actually close to 9MB decompressed, 370K bz2-compressed.

Signature · 1 line
-Barry K. Nathan <[email protected]>
#81 lore raw
In reply to Barry K. Nathan
Quoted 3 lines · Barry K. Nathan

BTW, the latency_trace is close to 130K. Should I send it to you by private mail instead of to the list? Or should I compress it and send it as an attachment?

bzip -9 has a better than 1:20 compression ratio on latency traces, so the 130K should go down to ~6K - perfectly fine for attaching it. (that way others on lkml can take a look too)

Ingo

#80 lore raw
In reply to Barry K. Nathan
Quoted 6 lines · Barry K. Nathan

Yes, the latest combo patch works. It still gives the warning, too (copied here since it looks slightly different with the latency trace patch added):

I've posted the /proc/latency_trace here:
http://members.cox.net/barrykn/linux/trace/latency_trace.bz2

ok, thanks - this pinpointed the problem. I have just sent the fix for that (against -mm3), does your networking card still work with that patch applied, and if yes, is the lock validator silent on your box now?

Btw., the easiest way to find out whether there's a lockdep problem on your box is to grep for debug_locks in /proc/lockdep_stats - it should still be on 1. If there's a warning, it goes to 0. That is an easy to script flag.

Quoted 2 lines

It turns out that I was *way* off on the size in my last mail. It's actually close to 9MB decompressed, 370K bz2-compressed.

heh ;) Yeah. But it does tell us everything (and much more) about the immediate history of any particular bug.

Ingo

#45 lore raw

PATCH 1/1 ieee1394: hl_irqs_lock is taken in hardware interrupt context

In reply to Ben Collins

ohci1394 and pcilynx call highlevel_host_reset from their hardware interrupt handler (via hpsb_selfid_complete). Therefore all readers and writers of hl_irqs_lock have to disable interrupts. Reported by Jiri Slaby and J. A. Magallon.

---
 drivers/ieee1394/highlevel.c |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)
drivers/ieee1394/highlevel.c +17 -10
Index: linux/drivers/ieee1394/highlevel.c
===================================================================
@@ -210,6 +210,8 @@ static int highlevel_for_each_host_reg(s
 
 void hpsb_register_highlevel(struct hpsb_highlevel *hl)
 {
+	unsigned long flags;
+
         INIT_LIST_HEAD(&hl->addr_list);
 	INIT_LIST_HEAD(&hl->host_info_list);
 
@@ -219,9 +221,9 @@ void hpsb_register_highlevel(struct hpsb
         list_add_tail(&hl->hl_list, &hl_drivers);
 	up_write(&hl_drivers_sem);
 
-	write_lock(&hl_irqs_lock);
+	write_lock_irqsave(&hl_irqs_lock, flags);
 	list_add_tail(&hl->irq_list, &hl_irqs);
-	write_unlock(&hl_irqs_lock);
+	write_unlock_irqrestore(&hl_irqs_lock, flags);
 
 	if (hl->add_host)
 		nodemgr_for_each_host(hl, highlevel_for_each_host_reg);
@@ -282,9 +284,11 @@ static int highlevel_for_each_host_unreg
 
 void hpsb_unregister_highlevel(struct hpsb_highlevel *hl)
 {
-	write_lock(&hl_irqs_lock);
+	unsigned long flags;
+
+	write_lock_irqsave(&hl_irqs_lock, flags);
 	list_del(&hl->irq_list);
-	write_unlock(&hl_irqs_lock);
+	write_unlock_irqrestore(&hl_irqs_lock, flags);
 
 	down_write(&hl_drivers_sem);
         list_del(&hl->hl_list);
@@ -518,42 +522,45 @@ void highlevel_remove_host(struct hpsb_h
 
 void highlevel_host_reset(struct hpsb_host *host)
 {
+	unsigned long flags;
         struct hpsb_highlevel *hl;
 
-	read_lock(&hl_irqs_lock);
+	read_lock_irqsave(&hl_irqs_lock, flags);
 	list_for_each_entry(hl, &hl_irqs, irq_list) {
                 if (hl->host_reset)
                         hl->host_reset(host);
         }
-	read_unlock(&hl_irqs_lock);
+	read_unlock_irqrestore(&hl_irqs_lock, flags);
 }
 
 void highlevel_iso_receive(struct hpsb_host *host, void *data, size_t length)
 {
+	unsigned long flags;
         struct hpsb_highlevel *hl;
         int channel = (((quadlet_t *)data)[0] >> 8) & 0x3f;
 
-        read_lock(&hl_irqs_lock);
+        read_lock_irqsave(&hl_irqs_lock, flags);
 	list_for_each_entry(hl, &hl_irqs, irq_list) {
                 if (hl->iso_receive)
                         hl->iso_receive(host, channel, data, length);
         }
-        read_unlock(&hl_irqs_lock);
+        read_unlock_irqrestore(&hl_irqs_lock, flags);
 }
 
 void highlevel_fcp_request(struct hpsb_host *host, int nodeid, int direction,
 			   void *data, size_t length)
 {
+	unsigned long flags;
         struct hpsb_highlevel *hl;
         int cts = ((quadlet_t *)data)[0] >> 4;
 
-        read_lock(&hl_irqs_lock);
+        read_lock_irqsave(&hl_irqs_lock, flags);
 	list_for_each_entry(hl, &hl_irqs, irq_list) {
                 if (hl->fcp_request)
                         hl->fcp_request(host, nodeid, direction, cts, data,
 					length);
         }
-        read_unlock(&hl_irqs_lock);
+        read_unlock_irqrestore(&hl_irqs_lock, flags);
 }
 
 int highlevel_read(struct hpsb_host *host, int nodeid, void *data,
#46 lore raw

PATCH 1/1 ieee1394: adjust code formatting in highlevel.c

Replace spaces by tabulators, wrap lines at 80 columns, delete some blank lines and superfluous braces. Collapse some if()-within-if() constructs. Replace a literal CSR address by its preprocessor constant.

---
applies after patch
"ieee1394: hl_irqs_lock is taken in hardware interrupt context"

 drivers/ieee1394/highlevel.c |  415 +++++++++++++++--------------------
 1 files changed, 182 insertions(+), 233 deletions(-)
drivers/ieee1394/highlevel.c +182 -233
Index: linux/drivers/ieee1394/highlevel.c
===================================================================
@@ -53,7 +53,7 @@ static struct hpsb_address_serve dummy_z
 
 
 static struct hl_host_info *hl_get_hostinfo(struct hpsb_highlevel *hl,
-					      struct hpsb_host *host)
+					    struct hpsb_host *host)
 {
 	struct hl_host_info *hi = NULL;
 
@@ -68,24 +68,18 @@ static struct hl_host_info *hl_get_hosti
 		}
 	}
 	read_unlock(&hl->host_info_lock);
-
 	return NULL;
 }
 
-
 /* Returns a per host/driver data structure that was previously stored by
  * hpsb_create_hostinfo. */
 void *hpsb_get_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host)
 {
 	struct hl_host_info *hi = hl_get_hostinfo(hl, host);
 
-	if (hi)
-		return hi->data;
-
-	return NULL;
+	return hi ? hi->data : NULL;
 }
 
-
 /* If size is zero, then the return here is only valid for error checking */
 void *hpsb_create_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host,
 			   size_t data_size)
@@ -96,8 +90,8 @@ void *hpsb_create_hostinfo(struct hpsb_h
 
 	hi = hl_get_hostinfo(hl, host);
 	if (hi) {
-		HPSB_ERR("%s called hpsb_create_hostinfo when hostinfo already exists",
-			 hl->name);
+		HPSB_ERR("%s called hpsb_create_hostinfo when hostinfo already"
+			 " exists", hl->name);
 		return NULL;
 	}
 
@@ -120,7 +114,6 @@ void *hpsb_create_hostinfo(struct hpsb_h
 	return data;
 }
 
-
 int hpsb_set_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host,
 		      void *data)
 {
@@ -132,16 +125,14 @@ int hpsb_set_hostinfo(struct hpsb_highle
 			hi->data = data;
 			return 0;
 		} else
-			HPSB_ERR("%s called hpsb_set_hostinfo when hostinfo already has data",
-				 hl->name);
+			HPSB_ERR("%s called hpsb_set_hostinfo when hostinfo "
+				 "already has data", hl->name);
 	} else
 		HPSB_ERR("%s called hpsb_set_hostinfo when no hostinfo exists",
 			 hl->name);
-
 	return -EINVAL;
 }
 
-
 void hpsb_destroy_hostinfo(struct hpsb_highlevel *hl, struct hpsb_host *host)
 {
 	struct hl_host_info *hi;
@@ -154,23 +145,20 @@ void hpsb_destroy_hostinfo(struct hpsb_h
 		write_unlock_irqrestore(&hl->host_info_lock, flags);
 		kfree(hi);
 	}
-
 	return;
 }
 
-
-void hpsb_set_hostinfo_key(struct hpsb_highlevel *hl, struct hpsb_host *host, unsigned long key)
+void hpsb_set_hostinfo_key(struct hpsb_highlevel *hl, struct hpsb_host *host,
+			   unsigned long key)
 {
 	struct hl_host_info *hi;
 
 	hi = hl_get_hostinfo(hl, host);
 	if (hi)
 		hi->key = key;
-
 	return;
 }
 
-
 void *hpsb_get_hostinfo_bykey(struct hpsb_highlevel *hl, unsigned long key)
 {
 	struct hl_host_info *hi;
@@ -187,24 +175,18 @@ void *hpsb_get_hostinfo_bykey(struct hps
 		}
 	}
 	read_unlock(&hl->host_info_lock);
-
 	return data;
 }
 
-
 static int highlevel_for_each_host_reg(struct hpsb_host *host, void *__data)
 {
 	struct hpsb_highlevel *hl = __data;
 
 	hl->add_host(host);
 
-        if (host->update_config_rom) {
-		if (hpsb_update_config_rom_image(host) < 0) {
-			HPSB_ERR("Failed to generate Configuration ROM image for host "
-				 "%s-%d", hl->name, host->id);
-		}
-	}
-
+	if (host->update_config_rom && hpsb_update_config_rom_image(host) < 0)
+		HPSB_ERR("Failed to generate Configuration ROM image for host "
+			 "%s-%d", hl->name, host->id);
 	return 0;
 }
 
@@ -212,13 +194,13 @@ void hpsb_register_highlevel(struct hpsb
 {
 	unsigned long flags;
 
-        INIT_LIST_HEAD(&hl->addr_list);
+	INIT_LIST_HEAD(&hl->addr_list);
 	INIT_LIST_HEAD(&hl->host_info_list);
 
 	rwlock_init(&hl->host_info_lock);
 
 	down_write(&hl_drivers_sem);
-        list_add_tail(&hl->hl_list, &hl_drivers);
+	list_add_tail(&hl->hl_list, &hl_drivers);
 	up_write(&hl_drivers_sem);
 
 	write_lock_irqsave(&hl_irqs_lock, flags);
@@ -227,8 +209,7 @@ void hpsb_register_highlevel(struct hpsb
 
 	if (hl->add_host)
 		nodemgr_for_each_host(hl, highlevel_for_each_host_reg);
-
-        return;
+	return;
 }
 
 static void __delete_addr(struct hpsb_address_serve *as)
@@ -238,7 +219,8 @@ static void __delete_addr(struct hpsb_ad
 	kfree(as);
 }
 
-static void __unregister_host(struct hpsb_highlevel *hl, struct hpsb_host *host, int update_cr)
+static void __unregister_host(struct hpsb_highlevel *hl, struct hpsb_host *host,
+			      int update_cr)
 {
 	unsigned long flags;
 	struct list_head *lh, *next;
@@ -253,7 +235,6 @@ static void __unregister_host(struct hps
 	write_lock_irqsave(&addr_space_lock, flags);
 	list_for_each_safe (lh, next, &hl->addr_list) {
 		as = list_entry(lh, struct hpsb_address_serve, hl_list);
-
 		if (as->host == host)
 			__delete_addr(as);
 	}
@@ -261,15 +242,12 @@ static void __unregister_host(struct hps
 
 	/* Now update the config-rom to reflect anything removed by the
 	 * highlevel driver. */
-	if (update_cr && host->update_config_rom) {
-		if (hpsb_update_config_rom_image(host) < 0) {
-			HPSB_ERR("Failed to generate Configuration ROM image for host "
-				 "%s-%d", hl->name, host->id);
-		}
-	}
+	if (update_cr && host->update_config_rom &&
+	    hpsb_update_config_rom_image(host) < 0)
+		HPSB_ERR("Failed to generate Configuration ROM image for host "
+			 "%s-%d", hl->name, host->id);
 
-	/* And finally, remove all the host info associated between these
-	 * two. */
+	/* Finally remove all the host info associated between these two. */
 	hpsb_destroy_hostinfo(hl, host);
 }
 
@@ -278,7 +256,6 @@ static int highlevel_for_each_host_unreg
 	struct hpsb_highlevel *hl = __data;
 
 	__unregister_host(hl, host, 1);
-
 	return 0;
 }
 
@@ -291,7 +268,7 @@ void hpsb_unregister_highlevel(struct hp
 	write_unlock_irqrestore(&hl_irqs_lock, flags);
 
 	down_write(&hl_drivers_sem);
-        list_del(&hl->hl_list);
+	list_del(&hl->hl_list);
 	up_write(&hl_drivers_sem);
 
 	nodemgr_for_each_host(hl, highlevel_for_each_host_unreg);
@@ -325,9 +302,11 @@ u64 hpsb_allocate_and_register_addrspace
 		end   = CSR1212_ALL_SPACE_END;
 	}
 
-	if (((start|end) & ~align_mask) || (start >= end) || (end > 0x1000000000000ULL)) {
-		HPSB_ERR("%s called with invalid addresses (start = %012Lx    end = %012Lx)",
-			 __FUNCTION__, (unsigned long long)start, (unsigned long long)end);
+	if (((start|end) & ~align_mask) || (start >= end) ||
+	    (end > CSR1212_ALL_SPACE_END)) {
+		HPSB_ERR("%s called with invalid addresses "
+			 "(start = %012Lx  end = %012Lx)", __FUNCTION__,
+			 (unsigned long long)start,(unsigned long long)end);
 		return retval;
 	}
 
@@ -341,20 +320,21 @@ u64 hpsb_allocate_and_register_addrspace
 	as->host = host;
 
 	write_lock_irqsave(&addr_space_lock, flags);
-
 	list_for_each(entry, &host->addr_space) {
 		u64 a1sa, a1ea;
 		u64 a2sa, a2ea;
 
 		a1 = list_entry(entry, struct hpsb_address_serve, host_list);
-		a2 = list_entry(entry->next, struct hpsb_address_serve, host_list);
+		a2 = list_entry(entry->next, struct hpsb_address_serve,
+				host_list);
 
 		a1sa = a1->start & align_mask;
 		a1ea = (a1->end + alignment -1) & align_mask;
 		a2sa = a2->start & align_mask;
 		a2ea = (a2->end + alignment -1) & align_mask;
 
-		if ((a2sa - a1ea >= size) && (a2sa - start >= size) && (a2sa > start)) {
+		if ((a2sa - a1ea >= size) && (a2sa - start >= size) &&
+		    (a2sa > start)) {
 			as->start = max(start, a1ea);
 			as->end = as->start + size;
 			list_add(&as->host_list, entry);
@@ -363,47 +343,45 @@ u64 hpsb_allocate_and_register_addrspace
 			break;
 		}
 	}
-
 	write_unlock_irqrestore(&addr_space_lock, flags);
 
-	if (retval == CSR1212_INVALID_ADDR_SPACE) {
+	if (retval == CSR1212_INVALID_ADDR_SPACE)
 		kfree(as);
-	}
-
 	return retval;
 }
 
 int hpsb_register_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host,
-                            struct hpsb_address_ops *ops, u64 start, u64 end)
+			    struct hpsb_address_ops *ops, u64 start, u64 end)
 {
-        struct hpsb_address_serve *as;
+	struct hpsb_address_serve *as;
 	struct list_head *lh;
-        int retval = 0;
-        unsigned long flags;
+	int retval = 0;
+	unsigned long flags;
 
-        if (((start|end) & 3) || (start >= end) || (end > 0x1000000000000ULL)) {
-                HPSB_ERR("%s called with invalid addresses", __FUNCTION__);
-                return 0;
-        }
+	if (((start|end) & 3) || (start >= end) ||
+	    (end > CSR1212_ALL_SPACE_END)) {
+		HPSB_ERR("%s called with invalid addresses", __FUNCTION__);
+		return 0;
+	}
 
 	as = kmalloc(sizeof(*as), GFP_ATOMIC);
 	if (!as)
 		return 0;
 
-        INIT_LIST_HEAD(&as->host_list);
-        INIT_LIST_HEAD(&as->hl_list);
-        as->op = ops;
-        as->start = start;
-        as->end = end;
+	INIT_LIST_HEAD(&as->host_list);
+	INIT_LIST_HEAD(&as->hl_list);
+	as->op = ops;
+	as->start = start;
+	as->end = end;
 	as->host = host;
 
 	write_lock_irqsave(&addr_space_lock, flags);
-
 	list_for_each(lh, &host->addr_space) {
 		struct hpsb_address_serve *as_this =
 			list_entry(lh, struct hpsb_address_serve, host_list);
 		struct hpsb_address_serve *as_next =
-			list_entry(lh->next, struct hpsb_address_serve, host_list);
+			list_entry(lh->next, struct hpsb_address_serve,
+				   host_list);
 
 		if (as_this->end > as->start)
 			break;
@@ -419,60 +397,51 @@ int hpsb_register_addrspace(struct hpsb_
 
 	if (retval == 0)
 		kfree(as);
-
-        return retval;
+	return retval;
 }
 
 int hpsb_unregister_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host,
-                              u64 start)
+			      u64 start)
 {
-        int retval = 0;
-        struct hpsb_address_serve *as;
-        struct list_head *lh, *next;
-        unsigned long flags;
-
-        write_lock_irqsave(&addr_space_lock, flags);
+	int retval = 0;
+	struct hpsb_address_serve *as;
+	struct list_head *lh, *next;
+	unsigned long flags;
 
+	write_lock_irqsave(&addr_space_lock, flags);
 	list_for_each_safe (lh, next, &hl->addr_list) {
-                as = list_entry(lh, struct hpsb_address_serve, hl_list);
-                if (as->start == start && as->host == host) {
+		as = list_entry(lh, struct hpsb_address_serve, hl_list);
+		if (as->start == start && as->host == host) {
 			__delete_addr(as);
-                        retval = 1;
-                        break;
-                }
-        }
-
-        write_unlock_irqrestore(&addr_space_lock, flags);
-
-        return retval;
+			retval = 1;
+			break;
+		}
+	}
+	write_unlock_irqrestore(&addr_space_lock, flags);
+	return retval;
 }
 
 int hpsb_listen_channel(struct hpsb_highlevel *hl, struct hpsb_host *host,
-                         unsigned int channel)
+			unsigned int channel)
 {
-        if (channel > 63) {
-                HPSB_ERR("%s called with invalid channel", __FUNCTION__);
-                return -EINVAL;
-        }
-
-        if (host->iso_listen_count[channel]++ == 0) {
-                return host->driver->devctl(host, ISO_LISTEN_CHANNEL, channel);
-        }
-
+	if (channel > 63) {
+		HPSB_ERR("%s called with invalid channel", __FUNCTION__);
+		return -EINVAL;
+	}
+	if (host->iso_listen_count[channel]++ == 0)
+		return host->driver->devctl(host, ISO_LISTEN_CHANNEL, channel);
 	return 0;
 }
 
 void hpsb_unlisten_channel(struct hpsb_highlevel *hl, struct hpsb_host *host,
-                           unsigned int channel)
+			   unsigned int channel)
 {
-        if (channel > 63) {
-                HPSB_ERR("%s called with invalid channel", __FUNCTION__);
-                return;
-        }
-
-        if (--host->iso_listen_count[channel] == 0) {
-                host->driver->devctl(host, ISO_UNLISTEN_CHANNEL, channel);
-        }
+	if (channel > 63) {
+		HPSB_ERR("%s called with invalid channel", __FUNCTION__);
+		return;
+	}
+	if (--host->iso_listen_count[channel] == 0)
+		host->driver->devctl(host, ISO_UNLISTEN_CHANNEL, channel);
 }
 
 static void init_hpsb_highlevel(struct hpsb_host *host)
@@ -493,26 +462,24 @@ static void init_hpsb_highlevel(struct h
 
 void highlevel_add_host(struct hpsb_host *host)
 {
-        struct hpsb_highlevel *hl;
+	struct hpsb_highlevel *hl;
 
 	init_hpsb_highlevel(host);
 
 	down_read(&hl_drivers_sem);
-        list_for_each_entry(hl, &hl_drivers, hl_list) {
+	list_for_each_entry(hl, &hl_drivers, hl_list) {
 		if (hl->add_host)
 			hl->add_host(host);
-        }
-	up_read(&hl_drivers_sem);
-	if (host->update_config_rom) {
-		if (hpsb_update_config_rom_image(host) < 0)
-			HPSB_ERR("Failed to generate Configuration ROM image for "
-				 "host %s-%d", hl->name, host->id);
 	}
+	up_read(&hl_drivers_sem);
+	if (host->update_config_rom && hpsb_update_config_rom_image(host) < 0)
+		HPSB_ERR("Failed to generate Configuration ROM image for host "
+			 "%s-%d", hl->name, host->id);
 }
 
 void highlevel_remove_host(struct hpsb_host *host)
 {
-        struct hpsb_highlevel *hl;
+	struct hpsb_highlevel *hl;
 
 	down_read(&hl_drivers_sem);
 	list_for_each_entry(hl, &hl_drivers, hl_list)
@@ -523,186 +490,168 @@ void highlevel_remove_host(struct hpsb_h
 void highlevel_host_reset(struct hpsb_host *host)
 {
 	unsigned long flags;
-        struct hpsb_highlevel *hl;
+	struct hpsb_highlevel *hl;
 
 	read_lock_irqsave(&hl_irqs_lock, flags);
 	list_for_each_entry(hl, &hl_irqs, irq_list) {
-                if (hl->host_reset)
-                        hl->host_reset(host);
-        }
+		if (hl->host_reset)
+			hl->host_reset(host);
+	}
 	read_unlock_irqrestore(&hl_irqs_lock, flags);
 }
 
 void highlevel_iso_receive(struct hpsb_host *host, void *data, size_t length)
 {
 	unsigned long flags;
-        struct hpsb_highlevel *hl;
-        int channel = (((quadlet_t *)data)[0] >> 8) & 0x3f;
+	struct hpsb_highlevel *hl;
+	int channel = (((quadlet_t *)data)[0] >> 8) & 0x3f;
 
-        read_lock_irqsave(&hl_irqs_lock, flags);
+	read_lock_irqsave(&hl_irqs_lock, flags);
 	list_for_each_entry(hl, &hl_irqs, irq_list) {
-                if (hl->iso_receive)
-                        hl->iso_receive(host, channel, data, length);
-        }
-        read_unlock_irqrestore(&hl_irqs_lock, flags);
+		if (hl->iso_receive)
+			hl->iso_receive(host, channel, data, length);
+	}
+	read_unlock_irqrestore(&hl_irqs_lock, flags);
 }
 
 void highlevel_fcp_request(struct hpsb_host *host, int nodeid, int direction,
 			   void *data, size_t length)
 {
 	unsigned long flags;
-        struct hpsb_highlevel *hl;
-        int cts = ((quadlet_t *)data)[0] >> 4;
+	struct hpsb_highlevel *hl;
+	int cts = ((quadlet_t *)data)[0] >> 4;
 
-        read_lock_irqsave(&hl_irqs_lock, flags);
+	read_lock_irqsave(&hl_irqs_lock, flags);
 	list_for_each_entry(hl, &hl_irqs, irq_list) {
-                if (hl->fcp_request)
-                        hl->fcp_request(host, nodeid, direction, cts, data,
+		if (hl->fcp_request)
+			hl->fcp_request(host, nodeid, direction, cts, data,
 					length);
-        }
-        read_unlock_irqrestore(&hl_irqs_lock, flags);
+	}
+	read_unlock_irqrestore(&hl_irqs_lock, flags);
 }
 
-int highlevel_read(struct hpsb_host *host, int nodeid, void *data,
-                   u64 addr, unsigned int length, u16 flags)
+int highlevel_read(struct hpsb_host *host, int nodeid, void *data, u64 addr,
+		   unsigned int length, u16 flags)
 {
-        struct hpsb_address_serve *as;
-        unsigned int partlength;
-        int rcode = RCODE_ADDRESS_ERROR;
-
-        read_lock(&addr_space_lock);
+	struct hpsb_address_serve *as;
+	unsigned int partlength;
+	int rcode = RCODE_ADDRESS_ERROR;
 
+	read_lock(&addr_space_lock);
 	list_for_each_entry(as, &host->addr_space, host_list) {
 		if (as->start > addr)
 			break;
 
-                if (as->end > addr) {
-                        partlength = min(as->end - addr, (u64) length);
+		if (as->end > addr) {
+			partlength = min(as->end - addr, (u64) length);
 
-                        if (as->op->read) {
-                                rcode = as->op->read(host, nodeid, data,
+			if (as->op->read)
+				rcode = as->op->read(host, nodeid, data,
 						     addr, partlength, flags);
-                        } else {
-                                rcode = RCODE_TYPE_ERROR;
-                        }
+			else
+				rcode = RCODE_TYPE_ERROR;
 
 			data += partlength;
-                        length -= partlength;
-                        addr += partlength;
+			length -= partlength;
+			addr += partlength;
 
-                        if ((rcode != RCODE_COMPLETE) || !length) {
-                                break;
-                        }
-                }
-        }
-
-        read_unlock(&addr_space_lock);
-
-        if (length && (rcode == RCODE_COMPLETE)) {
-                rcode = RCODE_ADDRESS_ERROR;
-        }
+			if ((rcode != RCODE_COMPLETE) || !length)
+				break;
+		}
+	}
+	read_unlock(&addr_space_lock);
 
-        return rcode;
+	if (length && (rcode == RCODE_COMPLETE))
+		rcode = RCODE_ADDRESS_ERROR;
+	return rcode;
 }
 
-int highlevel_write(struct hpsb_host *host, int nodeid, int destid,
-		    void *data, u64 addr, unsigned int length, u16 flags)
+int highlevel_write(struct hpsb_host *host, int nodeid, int destid, void *data,
+		    u64 addr, unsigned int length, u16 flags)
 {
-        struct hpsb_address_serve *as;
-        unsigned int partlength;
-        int rcode = RCODE_ADDRESS_ERROR;
-
-        read_lock(&addr_space_lock);
+	struct hpsb_address_serve *as;
+	unsigned int partlength;
+	int rcode = RCODE_ADDRESS_ERROR;
 
+	read_lock(&addr_space_lock);
 	list_for_each_entry(as, &host->addr_space, host_list) {
 		if (as->start > addr)
 			break;
 
-                if (as->end > addr) {
-                        partlength = min(as->end - addr, (u64) length);
+		if (as->end > addr) {
+			partlength = min(as->end - addr, (u64) length);
 
-                        if (as->op->write) {
-                                rcode = as->op->write(host, nodeid, destid,
-						      data, addr, partlength, flags);
-                        } else {
-                                rcode = RCODE_TYPE_ERROR;
-                        }
+			if (as->op->write)
+				rcode = as->op->write(host, nodeid, destid,
+						      data, addr, partlength,
+						      flags);
+			else
+				rcode = RCODE_TYPE_ERROR;
 
 			data += partlength;
-                        length -= partlength;
-                        addr += partlength;
+			length -= partlength;
+			addr += partlength;
 
-                        if ((rcode != RCODE_COMPLETE) || !length) {
-                                break;
-                        }
-                }
-        }
-
-        read_unlock(&addr_space_lock);
-
-        if (length && (rcode == RCODE_COMPLETE)) {
-                rcode = RCODE_ADDRESS_ERROR;
-        }
+			if ((rcode != RCODE_COMPLETE) || !length)
+				break;
+		}
+	}
+	read_unlock(&addr_space_lock);
 
-        return rcode;
+	if (length && (rcode == RCODE_COMPLETE))
+		rcode = RCODE_ADDRESS_ERROR;
+	return rcode;
 }
 
-
 int highlevel_lock(struct hpsb_host *host, int nodeid, quadlet_t *store,
-                   u64 addr, quadlet_t data, quadlet_t arg, int ext_tcode, u16 flags)
+		   u64 addr, quadlet_t data, quadlet_t arg, int ext_tcode,
+		   u16 flags)
 {
-        struct hpsb_address_serve *as;
-        int rcode = RCODE_ADDRESS_ERROR;
-
-        read_lock(&addr_space_lock);
+	struct hpsb_address_serve *as;
+	int rcode = RCODE_ADDRESS_ERROR;
 
+	read_lock(&addr_space_lock);
 	list_for_each_entry(as, &host->addr_space, host_list) {
 		if (as->start > addr)
 			break;
 
-                if (as->end > addr) {
-                        if (as->op->lock) {
-                                rcode = as->op->lock(host, nodeid, store, addr,
-                                                     data, arg, ext_tcode, flags);
-                        } else {
-                                rcode = RCODE_TYPE_ERROR;
-                        }
-
-                        break;
-                }
-        }
-
-        read_unlock(&addr_space_lock);
-
-        return rcode;
+		if (as->end > addr) {
+			if (as->op->lock)
+				rcode = as->op->lock(host, nodeid, store, addr,
+						     data, arg, ext_tcode,
+						     flags);
+			else
+				rcode = RCODE_TYPE_ERROR;
+			break;
+		}
+	}
+	read_unlock(&addr_space_lock);
+	return rcode;
 }
 
 int highlevel_lock64(struct hpsb_host *host, int nodeid, octlet_t *store,
-                     u64 addr, octlet_t data, octlet_t arg, int ext_tcode, u16 flags)
+		     u64 addr, octlet_t data, octlet_t arg, int ext_tcode,
+		     u16 flags)
 {
-        struct hpsb_address_serve *as;
-        int rcode = RCODE_ADDRESS_ERROR;
+	struct hpsb_address_serve *as;
+	int rcode = RCODE_ADDRESS_ERROR;
 
-        read_lock(&addr_space_lock);
+	read_lock(&addr_space_lock);
 
 	list_for_each_entry(as, &host->addr_space, host_list) {
 		if (as->start > addr)
 			break;
 
-                if (as->end > addr) {
-                        if (as->op->lock64) {
-                                rcode = as->op->lock64(host, nodeid, store,
-                                                       addr, data, arg,
-                                                       ext_tcode, flags);
-                        } else {
-                                rcode = RCODE_TYPE_ERROR;
-                        }
-
-                        break;
-                }
-        }
-
-        read_unlock(&addr_space_lock);
-
-        return rcode;
+		if (as->end > addr) {
+			if (as->op->lock64)
+				rcode = as->op->lock64(host, nodeid, store,
+						       addr, data, arg,
+						       ext_tcode, flags);
+			else
+				rcode = RCODE_TYPE_ERROR;
+			break;
+		}
+	}
+	read_unlock(&addr_space_lock);
+	return rcode;
 }
#47 lore raw

Re: [PATCH 2.6.17-rc5-mm3] ieee1394: hl_irqs_lock is taken in hardware interrupt context

In reply to Stefan Richter
Quoted 2 lines · I wrote:

ohci1394 and pcilynx call highlevel_host_reset from their hardware interrupt handler (via hpsb_selfid_complete).

By the way, the hl->host_reset() handlers should be audited WRT possibilities to offload parts of them into tasklets, workqueues etc..

bad:

	csr.c::host_reset() ->
	http://bugzilla.kernel.org/show_bug.cgi?id=6070

OK:

	nodemgr.c::nodemgr_host_reset()
	sbp2.c::sbp2_host_reset()

looks OK to me:

	dv1394.c::dv1394_host_reset()

can't tell:

	eth1394.c::ether1394_host_reset()
	raw1394.c::host_reset()
Signature · 3 lines
Stefan Richter
-=====-=-==- -==- --=-=
http://arcgraph.de/sr/
#37 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

In reply to Cedric Le Goater
Quoted 23 lines

This patch adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

---
 include/asm-s390/io.h |    5 +++++
 1 files changed, 5 insertions(+)

Index: 2.6.17-rc5-mm2/include/asm-s390/io.h
===================================================================

include/asm-s390/io.h +1 -0
@@ -86,20 +86,25 @@
 #define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
 #define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
 #define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#define readq(addr) (*(volatile unsigned long *) __io_virt(addr))
 
 #define readb_relaxed(addr) readb(addr)
 #define readw_relaxed(addr) readw(addr)
 #define readl_relaxed(addr) readl(addr)

include/asm-s390/io.h line 103

Quoted 10 lines
include/asm-s390/io.h +3 -0
+#define readq_relaxed(addr) readq(addr)
 #define __raw_readb readb
 #define __raw_readw readw
 #define __raw_readl readl
+#define __raw_readq readq
 
 #define writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))
 #define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
 #define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b))

This looks wrong: "b" is a u64 and you write it to something that is an unsigned long. We're going to miss a few bits on 31 bit platforms...

#38 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

Quoted 2 lines · Heiko Carstens

This looks wrong: "b" is a u64 and you write it to something that is an unsigned long. We're going to miss a few bits on 31 bit platforms...

Indeed. Here's another version protecting the quad macros with __s390x__. to be applied on rc6-mm1.

For the moment, __raw_writeq() is needed by __iowrite64_copy() which is protected by CONFIG_64BIT. Some drivers also use it.

Thanks for reviewing,

C.

From: Cedric Le Goater <[email protected]>
Replace-Subject: s390 adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

---
 include/asm-s390/io.h |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
include/asm-s390/io.h +15 -0
Index: 2.6.17-rc6-mm1/include/asm-s390/io.h
===================================================================
@@ -86,20 +86,35 @@ extern void iounmap(void *addr);
 #define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
 #define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
 #define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#ifdef __s390x__
+#define readq(addr) (*(volatile unsigned long *) __io_virt(addr))
+#endif
 
 #define readb_relaxed(addr) readb(addr)
 #define readw_relaxed(addr) readw(addr)
 #define readl_relaxed(addr) readl(addr)
+#ifdef __s390x__
+#define readq_relaxed(addr) readq(addr)
+#endif
 #define __raw_readb readb
 #define __raw_readw readw
 #define __raw_readl readl
+#ifdef __s390x__
+#define __raw_readq readq
+#endif
 
 #define writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))
 #define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
 #define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+#ifdef __s390x__
+#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b))
+#endif
 #define __raw_writeb writeb
 #define __raw_writew writew
 #define __raw_writel writel
+#ifdef __s390x__
+#define __raw_writeq writeq
+#endif
 
 #define memset_io(a,b,c)        memset(__io_virt(a),(b),(c))
 #define memcpy_fromio(a,b,c)    memcpy((a),__io_virt(b),(c))
#39 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

Quoted 31 lines · Cedric Le Goater
Quoted 2 lines · Heiko Carstens

This looks wrong: "b" is a u64 and you write it to something that is an unsigned long. We're going to miss a few bits on 31 bit platforms...

Indeed. Here's another version protecting the quad macros with __s390x__. to be applied on rc6-mm1.

For the moment, __raw_writeq() is needed by __iowrite64_copy() which is protected by CONFIG_64BIT. Some drivers also use it.

Thanks for reviewing,

C.

From: Cedric Le Goater <[email protected]>
Replace-Subject: s390 adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

---
 include/asm-s390/io.h |   15 +++++++++++++++
 1 file changed, 15 insertions(+)

Index: 2.6.17-rc6-mm1/include/asm-s390/io.h
===================================================================

include/asm-s390/io.h extern void iounmap(void *addr); · line 91

Quoted 6 lines
include/asm-s390/io.h +3 -0
@@ -86,20 +86,35 @@ extern void iounmap(void *addr);
 #define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
 #define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
 #define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#ifdef __s390x__
+#define readq(addr) (*(volatile unsigned long *) __io_virt(addr))
+#endif

Please use an unsigned long long cast and get rid of the ifdefs...

#40 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

Quoted 1 line · Heiko Carstens

Please use an unsigned long long cast and get rid of the ifdefs...

How's that ? Again on rc6-mm1.

thanks !

C.

From: Cedric Le Goater <[email protected]>
Replace-Subject: s390 adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

---
 include/asm-s390/io.h |    5 +++++
 1 file changed, 5 insertions(+)
include/asm-s390/io.h +5 -0
Index: 2.6.17-rc6-mm1/include/asm-s390/io.h
===================================================================
@@ -86,20 +86,25 @@ extern void iounmap(void *addr);
 #define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
 #define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
 #define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#define readq(addr) (*(volatile unsigned long long *) __io_virt(addr))
 
 #define readb_relaxed(addr) readb(addr)
 #define readw_relaxed(addr) readw(addr)
 #define readl_relaxed(addr) readl(addr)
+#define readq_relaxed(addr) readq(addr)
 #define __raw_readb readb
 #define __raw_readw readw
 #define __raw_readl readl
+#define __raw_readq readq
 
 #define writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))
 #define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
 #define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+#define writeq(b,addr) (*(volatile unsigned long long *) __io_virt(addr) = (b))
 #define __raw_writeb writeb
 #define __raw_writew writew
 #define __raw_writel writel
+#define __raw_writeq writeq
 
 #define memset_io(a,b,c)        memset(__io_virt(a),(b),(c))
 #define memcpy_fromio(a,b,c)    memcpy((a),__io_virt(b),(c))
#41 lore raw

Re: 2.6.17-rc5-mm2 link issues on s390

Quoted 31 lines

From: Cedric Le Goater <[email protected]>
Replace-Subject: s390 adds __raw_writeq required by __iowrite64_copy.

It also adds all the related quad routines.

---
 include/asm-s390/io.h |    5 +++++
 1 file changed, 5 insertions(+)

Index: 2.6.17-rc6-mm1/include/asm-s390/io.h
===================================================================

include/asm-s390/io.h +3 -0
@@ -86,20 +86,25 @@ extern void iounmap(void *addr);
 #define readb(addr) (*(volatile unsigned char *) __io_virt(addr))
 #define readw(addr) (*(volatile unsigned short *) __io_virt(addr))
 #define readl(addr) (*(volatile unsigned int *) __io_virt(addr))
+#define readq(addr) (*(volatile unsigned long long *) __io_virt(addr))
 
 #define readb_relaxed(addr) readb(addr)
 #define readw_relaxed(addr) readw(addr)
 #define readl_relaxed(addr) readl(addr)
+#define readq_relaxed(addr) readq(addr)
 #define __raw_readb readb
 #define __raw_readw readw
 #define __raw_readl readl
+#define __raw_readq readq
 
 #define writeb(b,addr) (*(volatile unsigned char *) __io_virt(addr) = (b))

include/asm-s390/io.h extern void iounmap(void *addr); · line 110

Quoted 10 lines
include/asm-s390/io.h +2 -0
 #define writew(b,addr) (*(volatile unsigned short *) __io_virt(addr) = (b))
 #define writel(b,addr) (*(volatile unsigned int *) __io_virt(addr) = (b))
+#define writeq(b,addr) (*(volatile unsigned long long *) __io_virt(addr) = (b))
 #define __raw_writeb writeb
 #define __raw_writew writew
 #define __raw_writel writel
+#define __raw_writeq writeq
 
 #define memset_io(a,b,c)        memset(__io_virt(a),(b),(c))
 #define memcpy_fromio(a,b,c)    memcpy((a),__io_virt(b),(c))

Thank you!

#29 lore raw

Re: 2.6.17-rc5-mm2 another compile error

In reply to Andrew Morton
Quoted 11 lines · Andrew Morton
Quoted 7 lines · On Thu, 01 Jun 2006 13:42:35 +0200 Helge Hafting <[email protected]>…

CC drivers/dma/ioatdma.o
drivers/dma/ioatdma.c: In function ‘ioat_init_module’:
drivers/dma/ioatdma.c:828: error: dereferencing pointer to incomplete type make[2]: *** [drivers/dma/ioatdma.o] Error 1
make[1]: *** [drivers/dma] Error 2
make: *** [drivers] Error 2

Quoted 8 lines
        if (THIS_MODULE != NULL)
                THIS_MODULE->unsafe = 1;

Chris, this won't compile with CONFIG_MODULES=n.

If module unloading is unsafe (why?) then a suitable workaround would be to take an additional ref on the module (__module_get()) so that it cannot be unloaded.

This bug is still present in 2.6.17-mm1, and even worse it's now in Linus' tree.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed