2007-08-09 08:51:34

by Andrew Morton

[permalink] [raw]
Subject: 2.6.23-rc2-mm1


ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/

- Added new NFSD development tree as git-nfsd ("J. Bruce Fields"
<[email protected]>)

- There is a new e1000 driver in git-netdev-all, called e1000e. I'm sure
the developers would like it tested. Please cc [email protected] on
any reports.

- I dropped the SSB patches due to various catastrophes and they are being
redone. But git-wireless.patch had some dependencies upon SSB which were
plugged with some nasty bandaids. So there are some kconfig warnings whcih
come out of there. Don't worry about it for now.

- If there's a patch in here which you think should be in 2.6.23 but I do
not have it designated in that way, please be sure to let me know.

- Apparently the importing of -mm into git (as described in the boilerplate
below) is not presently working.



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 tag v2.6.16-rc2-mm1
git-checkout -b local-v2.6.16-rc2-mm1 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.

- When reporting bugs in this kernel via email, please also rewrite the
email Subject: in some manner to reflect the nature of the bug. Some
developers filter by Subject: when looking for messages to read.

- Occasional snapshots of the -mm lineup are uploaded to
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/ and are announced on
the mm-commits list.



Changes since 2.6.23-rc2-mm1:


origin.patch
git-acpi.patch
git-alsa.patch
git-agpgart.patch
git-audit-master.patch
git-cifs.patch
git-cpufreq.patch
git-dma.patch
git-drm.patch
git-dvb.patch
git-hwmon.patch
git-gfs2-nmw.patch
git-hid.patch
git-ieee1394.patch
git-infiniband.patch
git-input.patch
git-jfs.patch
git-jg-misc.patch
git-kvm.patch
git-libata-all.patch
git-m32r.patch
git-md-accel.patch
git-mips.patch
git-mmc.patch
git-mtd.patch
git-ubi.patch
git-netdev-all.patch
git-ixgbe.patch
git-net.patch
git-nfs.patch
git-nfsd.patch
git-ocfs2.patch
git-r8169.patch
git-s390.patch
git-sched.patch
git-sh.patch
git-scsi-misc.patch
git-sparc64.patch
git-unionfs.patch
git-v9fs.patch
git-wireless.patch
git-ipwireless_cs.patch
git-newsetup.patch
git-xfs.patch
git-cryptodev.patch
git-kgdb.patch
git-block-vs-reiser4.patch

git trees

-genirq-temporary-fix-for-level-triggered-irq-resend.patch
-git-acpi-mark_tsc_unstable-build-fix.patch
-drivers-acpi-sbsc-remove-dead-code.patch
-acpi-cure-run-together-printk-lines.patch
-make-struct-sony_nc_ids-static.patch
-kernel-auditscc-fix-an-off-by-one.patch
-powerpc-fix-num_cpus-calculation-in-smp_call_function_map.patch
-gregkh-driver-sysfs-remove-first-pass-at-shadow-directory-support.patch
-gregkh-driver-sysfs-implement-sysfs-manged-shadow-directory-support.patch
-gregkh-driver-sysfs-implement-sysfs_delete_link-and-sysfs_rename_link.patch
-gregkh-driver-driver-core-implement-shadow-directory-support-for-device-classes.patch
-drivers-media-video-msp3400-driverc-kmalloc-memset-conversion-to-kzalloc.patch
-sata_mv-test-patch-for-hightpoint-rocketraid-1740-1742.patch
-libata-sff-unbreak-non-dma-capable-controllers-again.patch
-pata_cmd64x-correct-the-speed-ranges.patch
-pata_sis-fix-mwdma-for-=-udma66-chipsets-and-udma-for-udma33-chipsets.patch
-ide-cs5535-fix-array-overrun.patch
-ide-alim15x3-correct-hp-detect.patch
-ide-sis5513-add-fsc-amilo-a1630-pci-subvendor_dev-to-laptops.patch
-ide-cs5520-fix-pio-auto-tuning-in-ide-dma-check-method.patch
-ide-cs5535-pio-fixes.patch
-ide-it8213-pio-fixes-take2.patch
-ide-jmicron-pio-fixes.patch
-ide-piix-slc90e66-fix-pio1-handling-in-speedproc-method-take2.patch
-ide-scc_pata-pio-fixes.patch
-ide-ide-add-cable-detection-for-early-udma66-devices.patch
-ide-ide-pmac-use-ide-tune-dma.patch
-fix-ide-ide-add-ide-set-pio-take3.patch
-fix-runtogether-printks-in-cmd64x-ide-driver.patch
-eliminate-warnings-in-ide-tapec.patch
-drivers-ide-arm-icsidec-kmalloc-memset-conversion-to-kzalloc.patch
-mips-remove-some-duplicate-includes.patch
-mtd-remove-redundant-dead-code-from-physmap_ofc.patch
-mtd-onenand_simc-make-struct-info-static.patch
-drivers-mtd-inftlmountc-kmalloc-memset-conversion-to-kcalloc.patch
-drivers-pci-hotplug-cpqphp_ctrlc-kmalloc-memset-conversion-to-kzalloc.patch
-tiny-sched_getaffinity-cleanup.patch
-scsi-fix-build-for-config_scsi_tgt=n-2.patch
-aha152x-in-debug-mode.patch
-make-scsi_host_link_pm_policy-static.patch
-drivers-scsi-ide-scsic-kmalloc-memset-conversion-to-kzalloc.patch
-gregkh-usb-usb-nikon-d50-is-an-unusual-device.patch
-gregkh-usb-usb-clean-up-duplicate-includes-in-drivers-usb.patch
-gregkh-usb-usblp-implement-the-enospc-convention.patch
-gregkh-usb-usblp-make-use-of-urb_free_buffer.patch
-fix-gregkh-usb-usb-add-the-concept-of-default-authorization-to-usb-hosts.patch
-git-kgdb-arm-fix.patch
-git-kgdb-mips-fix.patch
-fix-kgdb-kernel-doc.patch
-serial-sh-sci-fix-build-failure-from-kgdb-fallout.patch
-nfs-fix-put_nfs_open_context.patch
-acpi_ec_remove-fix-use-after-free.patch
-acpi_battery_add-use-after-free.patch
-mm-migratec-cleanups.patch
-locks-kill-redundant-local-variable.patch
-cfs-mark-print_cfs_stats-static.patch
-stifb-detect-cards-in-double-buffer-mode-more-reliably.patch

Merged into mainline or a subsystem tree

+stifb-detect-cards-in-double-buffer-mode-more-reliably.patch
+fbcon-kill-compile-warning.patch
+fbcon-kill-compile-warning-fix.patch
+pvr2fb-fix-oops-when-pseudo_palette-is-written.patch
+pvr2fb-consolidated-cleanup-of-pvr2fbc.patch
+pvr2fb-update-documentation-fb-pvr2fbtxt.patch
+matroxfb-rectify-jitter-g450-g550.patch
+frv-connect-up-fallocate.patch
+ecryptfs-fix-lookup-error-for-special-files.patch
+fix-missing-numa_zonelist_order-sysctl.patch
+remove-unused-struct-proc_dir_entryset.patch
+linux-audit-list-is-subscribers-only.patch
+ecryptfs-fix-error-handling-in-ecryptfs_init.patch
+hibernation-do-not-try-to-mark-invalid-pfns-as-nosave.patch
+drivers-char-pcmcia-cm40x0_csc-fix-release-function-call.patch
+memory-hotplug-document-take-3.patch
+kernel-parameterstxt-watchdogtxt-should-be-wdttxt.patch
+spi_mpc83xx-in-qe-mode-use-sysclk-2.patch
+spi_mpc83xx-fix-prescale-modulus-calculation.patch
+update-checkpatchpl-to-version-009.patch
+allow-rcutorture-to-handle-synchronize_sched.patch
+documentation-sysrq-description-of-h-slightly-inaccurate.patch
+docs-note-about-select-in-kconfig-languagetxt.patch
+alpha-o_cloexec-definition.patch
+fix-serial-buffer-memory-leak.patch
+fix-serial-buffer-memory-leak-fix.patch
+mtdchar-build-fix.patch

2.6.23 queue

+finish-i386-and-x86-64-sysdata-conversion.patch
+remove-bdput-from-do_open-in-fs-block_devc.patch
+remove-bdput-from-do_open-in-fs-block_devc-fix.patch
+apply-memory-policies-to-top-two-highest-zones-when-highest-zone-is-zone_movable.patch

Probably for 2.6.23.

+slow-down-printk-during-boot-fix-4.patch

Keep fixing slow-down-printk-during-boot.patch

+emu10k1-remove-redundant-memset.patch
+sound-pci-ioremap-iounmap-balancing.patch

ALSA fixes

+at91-remove-at91_lcdch.patch

arm fix

+allow-ondemand-and-conservative-cpufreq-governors-to-be-used-as-default-kconfig-fix.patch

cpufreq changes

+gregkh-driver-sysfs-fix-locking-in-sysfs_lookup-and-sysfs_rename_dir.patch
+gregkh-driver-fix-off-by-one-in-sys-module-refcnt.patch
+gregkh-driver-howto-korean-translation-of-documentation-howto.patch
+gregkh-driver-howto-latest-lxr-url-address-changed.patch
+gregkh-driver-driver-core-make-sysfs-uevent-attributes-static.patch
+gregkh-driver-debugfs-helper-for-decimal-challenged.patch
+gregkh-driver-sysfs-remove-first-pass-at-shadow-directory-support.patch
+gregkh-driver-sysfs-cosmetic-changes-in-sysfs_lookup.patch
+gregkh-driver-sysfs-simplify-sysfs_rename_dir.patch
+gregkh-driver-sysfs-make-sysfs_add-remove_one-call-link-unlink_sibling-implictly.patch
+gregkh-driver-sysfs-make-sysfs_add_one-automatically-check-for-duplicate-entry.patch
+gregkh-driver-sysfs-make-sysfs_addrm_finish-return-void.patch

driver tree updates

+mga_dma-return-err-not-just-zero-from-mga_do_cleanup_dma.patch

DRM fix

+git-dvb-fixup-2.patch

Fix git-dvb

+ds1682-add-sesnsors-kconfig-variable-prefix.patch

i2c fix

+sn-add-support-for-cpu-disable.patch

ia64 fix

+clean-modulessymvers-in-external-module-dirs.patch
+scripts-ver_linux-correct-printing-of-binutils-version.patch
+improve-scripts-gcc-versionsh-output-a-bit-when-called-without-args.patch

kbuild things

-libata-check-for-an-support.patch
-scsi-expose-an-to-user-space.patch
-libata-expose-an-to-user-space.patch
-scsi-save-disk-in-scsi_device.patch
-libata-send-event-when-an-received.patch
+libata-check-for-an-support.patch
+scsi-expose-an-support-to-user-space.patch
+libata-expose-an-to-user-space.patch
+libata-send-event-when-an-received.patch

Updated atapi async notification patchset

-ata-ahci-alpm-store-interrupt-value.patch
-ata-ahci-alpm-expose-power-management-policy-option-to-users.patch
-ata-ahci-alpm-enable-link-power-management-for-ata-drivers.patch
-ata-ahci-alpm-enable-link-power-management-for-ata-drivers-fix.patch
-ata-ahci-alpm-enable-aggressive-link-power-management-for-ahci-controllers.patch
+alpm-store-interrupt-value.patch
+alpm-enable-link-power-management-for-ata-drivers.patch
+alpm-enable-aggressive-link-power-management-for-ahci-controllers.patch

Updated ATA Aggressive Link Power Management patches

+libata-add-human-readable-error-value-decoding-v3.patch

ata featurette

+ide-ide-hook-acpi-psx-method-to-ide-power-on-off.patch
+ide-ide-add-cable-detection-for-early-udma66-devices-take-3.patch
+ide-ide-pmac-use-ide-tune-dma-take-2.patch
+ide-ide-pmac-fix-pio-setup-and-enable-autotune.patch
+ide-icside-use-ide-tune-dma.patch
+ide-au1xxx-fix-au1xxx-fix-set-pio-mode.patch
+ide-amd74xx-via82cxxx-check-ide-config-drive-speed-return-value.patch
+ide-cs5535-check-ide-config-drive-speed-return-value.patch
+ide-pdc202xx_new-check-ide-config-drive-speed-return-value.patch
+ide-ide-move-ide-config-drive-speed-to-upper-layers-take-2.patch
+ide-ide-change-master-slave-identify-order.patch
+ide-ide-remove-config-idedma-ivb.patch
+ide-cs5530-add-missing-dma-base-check.patch
+ide-cs5535-add-missing-dma-base-check.patch
+ide-pdc202xx_new-add-missing-dma-base-check.patch
+ide-pdc202xx_old-add-missing-dma-base-check.patch
+ide-sgiioc4-add-missing-dma-base-check.patch
+ide-triflex-add-missing-dma-base-check.patch
+ide-cs5520-fix-dma-base-equal-zero-handling.patch
+ide-sc1200-fix-dma-base-equal-zero-handling.patch
+ide-alim15x3-remove-redundant-m5229_revision-check.patch
+ide-hpt366-always-tune-pio.patch
+ide-ide-st340823a-hpa-workaround-take-3.patch
+ide-sis5513-dma-setup-fixes.patch
+ide-sis5513-always-tune-pio.patch
+ide-aec62xx-always-tune-pio.patch
+ide-slc90e66-always-tune-pio.patch
+ide-ide-cris-always-tune-pio.patch
+ide-cs5530-always-tune-pio.patch
+ide-sc1200-always-tune-pio.patch

IDE tree updates

+ide-arm-hack.patch

Make it compile

+mmc-make-it-build.patch

Hack git-mmc to make it compile

+mmc-fix-section-mismatch-warnings-for-drivers-mmc-host.patch

MMC fix

+e1000e-build-fix.patch

Fix the new e1000 driver in git-netdev-all.

+natsemi-fix-netdev-error-acounting.patch
+uli526x-add-suspend-and-resume-routines.patch

netdev fixes

+fix-several-memory-leaks-in-cr_backlight_probe-take2.patch

backlight fix

+64-bit-ino-support-for-nfs-client.patch

nfs feature work

+git-nfsd-build-fixes.patch
+nfsd-warning-fix.patch

Fix git-nfsd.patch

+pxa2xx-pcmcia-timing-issue-on-ipaq-h5550.patch

pcmcia fix

+gregkh-pci-pci-lets-kill-the-pci-hidden-behind-bridge-message.patch
+gregkh-pci-pci-hotplug-cpqphp_ctrlc-kmalloc-memset-conversion-to-kzalloc.patch
+gregkh-pci-pci-unhide-smbus-on-compaq-deskpro-ep-401963-001-motherboard-with-i810-chipset.patch

PCI tree updates

+mpt-fusion-fix-two-potential-mem-leaks.patch
+fix-a-potential-null-pointer-deref-in-the-aic7xxx-ahc_print_register-function.patch

SCSI fixes

+sysace-hdio_getgeo-has-its-own-method-for-ages.patch

block driver cleanup

-git-unionfs-fixup.patch

Unneeded

+git-unionfs-fix-2.patch

Fix git-unionfs

+gregkh-usb-usb-px2xx_udc-bugfix-missing-check-for-gpio_pullup.patch
+gregkh-usb-usb-fix-bug-with-ehci-cpufreq-patch-on-nvidia-controllers.patch
+gregkh-usb-usb-cdc-acm-fix-sysfs-attribute-registration-bug.patch
+gregkh-usb-usb-visor-add-acer-s10-palm-device-id.patch
+gregkh-usb-usb-serial-garmin_gps-fixes-package-loss-if-used-from-gpsbabel.patch
+gregkh-usb-usb-stall-control-endpoint-when-file-storage-class-request-wvalue-0.patch
+gregkh-usb-usb-typo-usb_safe_padded-usb_serial_safe_padded.patch
+gregkh-usb-usb-u132-hcdc-fix-a-warning-when-config_pm-n.patch
+gregkh-usb-usb-clean-up-duplicate-includes-in-drivers-usb.patch
+gregkh-usb-usblp-implement-the-enospc-convention.patch
+gregkh-usb-usblp-make-use-of-urb_free_buffer.patch
+gregkh-usb-usb-ohci-handles-more-zfmicro-quirks.patch
+gregkh-usb-usb-remove-dead-references-to-safe_serial-config-variables.patch
+gregkh-usb-usb-usb_gadgeth-whitespace-fixes.patch
+gregkh-usb-usb-storage-usbat_check_status-fix-check-after-use.patch
+gregkh-usb-usb-add-urb-ep.patch
+gregkh-usb-usb-add-ep-enable.patch
+gregkh-usb-usb-add-direction-bit-to-urb-transfer_flags.patch
+gregkh-usb-usb-avoid-using-urb-pipe-in-usbcore.patch
+gregkh-usb-usb-address-0-handling-during-device-initialization.patch
+gregkh-usb-usb-avoid-urb-pipe-in-usbfs.patch
+gregkh-usb-usb-avoid-urb-pipe-in-usbmon.patch
+gregkh-usb-usb-cleanup-for-previous-patches.patch
+gregkh-usb-usb-update-spinlock-usage-for-root-hub-urbs.patch
+gregkh-usb-usb-separate-out-endpoint-queue-management-and-dma-mapping-routines.patch
+gregkh-usb-usb-add-drivers-usb-misc-iowarriorc-to-the-makefile.patch
+gregkh-usb-usb-gadget-gadget_is_-dualspeed-otg-predicates-and-cleanup.patch
+gregkh-usb-usb-gadget-ethernet-gadget-cleanups-shrinkage.patch
+gregkh-usb-usb-gadget-gmidi-cleanups.patch
+gregkh-usb-usb-gadget-serial-gadget-cleanups.patch
+gregkh-usb-usb-gadget-file-storage-gadget-cleanups.patch
+gregkh-usb-usb-gadget-gadget-zero-cleanups.patch
+gregkh-usb-usb-usb_get_configuration-obeys-authorization.patch
+gregkh-usb-usb-usb_probe_interface-obeys-authorization.patch
+gregkh-usb-usb-usb_generic_probe-obeys-authorization.patch
+gregkh-usb-usb-split-usb_new_device-for-clarity-and-refactoring.patch
+gregkh-usb-usb-introduce-usb_authorize-deauthorize.patch
+gregkh-usb-usb-hook-up-device-authorization-to-sysfs.patch
+gregkh-usb-usb-document-device-authorization.patch
+gregkh-usb-usb-choose_configuration.patch
+gregkh-usb-usb-usb_release_interface-static.patch

USB tree updates

+usb-enable-hcd-support-on-sh-unconditionally.patch
+usb-r8a66597-hcd-clean-up-error-path.patch

USB updates

-merge-the-sonics-silicon-backplane-subsystem.patch
-merge-the-sonics-silicon-backplane-subsystem-fix.patch
-avoid-ssb-compililation-on-s390.patch
-b44-ssb-fix-irq-routing-bits-on-the-backplane.patch
-merge-the-sonics-silicon-backplane-subsystem-update.patch
-ssb-compile-fix.patch
-watchdog-support-3.patch
-ssb-add-a-driver-for-the-broadcom-ohci-core.patch
-use-mutex-instead-of-semaphore-in-the-host-ap-driver.patch

I dropped the SSB code

+disable-b44-and-bcm43xx.patch

Help git-wireless to compile without the SSB code there

-x86_64-get-mp_bus_to_node-as-early-v2.patch
-x86_64-use-bus-conf-in-nb-conf-fun1-to-get-bus-range-on-node.patch
-try-parent-numa_node-at-first-before-using-default-v2.patch
-net-use-numa_node-in-net_devcice-dev-instead-of-parent.patch
-dma-use-dev_to_node-to-get-node-for-device-in-dma_alloc_pages.patch
+x86_64-get-mp_bus_to_node-as-early-v3.patch
+x86_64-get-mp_bus_to_node-as-early-v3-fix.patch
+x86_64-use-bus-conf-in-nb-conf-fun1-to-get-bus-range-on-node.patch
+try-parent-numa_node-at-first-before-using-default.patch
+net-use-numa_node-in-net_devcice-dev-instead-of-parent.patch
+dma-use-dev_to_node-to-get-node-for-device-in-dma_alloc_pages.patch

These were updated

+optimize-x86-page-faults-like-all-other-achitectures-and-kill-notifier-cruft.patch
+i386-convert-mm_context_t-semaphore-to-a-mutex.patch
+x86_64-remove-sync_arb_ids.patch
+x86_64-clear-io_apic-before-enabing-apic-error-vector.patch

x86 updates

-git-newsetup-fixup.patch

Unneeded

+fix-a-potential-null-pointer-deref-in-xfs-on-failed-mount.patch

XFS fix

+kernel-auditscc-fix-an-off-by-one.patch
+document-linux-memory-policy-v3.patch
+futex_unlock_pi-hurts-my-brain-and-may-cause.patch
+block-hide-the-contents-of-linux-bioh-if-config_block=n.patch
+rtc-periodic-irq-fix.patch
+calgary-fix-mis-handled-pci-topology.patch
+fix-some-x86-x86-64-acpi-cpufreq-driver-issues.patch
+dvb-remove-bogus-bug_on-in-videobuf_dvb_thread.patch
+pci-align-bar-settings-for-legacy-mode-ide.patch
+pci-align-bar-settings-for-legacy-mode-ide-fix.patch

2.6.23 material, but these belong to subssytem trees

+generic-virtual-memmap-support-for-sparsemem-remove-excess-debugging.patch
+generic-virtual-memmap-support-for-sparsemem-simplify-initialisation-code-and-reduce-duplication.patch
+generic-virtual-memmap-support-for-sparsemem-pull-out-the-vmemmap-code-into-its-own-file.patch
+x86_64-sparsemem_vmemmap-2m-page-size-support-ensure-end-of-section-memmap-is-initialised.patch
+ppc64-sparsemem_vmemmap-support-vmemmap-ppc64-convert-vmm_-macros-to-a-real-function.patch

tweak the virtual-memmap patches in -mm.

+slub-direct-pass-through-of-page-size-or-higher-kmalloc.patch
+#hugetlb-allow-extending-ftruncate-on-hugetlbfs.patch: David Gibson had issues wrt reservation
+hugetlb-allow-extending-ftruncate-on-hugetlbfs.patch
+remove-zero_page.patch
+mm-use-lockless-radix-tree-probe.patch
+mm-improve-find_lock_page.patch
+mm-clarify-__add_to_swap_cache-locking.patch
+radix-tree-use-indirect-bit.patch
+ensure-we-count-pages-transitioning-inactive-via-clear_active_flags.patch
+wait-for-page-writeback-when-directly-reclaiming-contiguous-areas.patch
+wait-for-page-writeback-when-directly-reclaiming-contiguous-areas-fix.patch

MM updates

-fs-remove-some-aop_truncated_page-fix.patch

Folded into fs-remove-some-aop_truncated_page.patch

+memoryless-nodes-generic-management-of-nodemasks-for-various-purposes.patch
+memoryless-nodes-introduce-mask-of-nodes-with-memory.patch
+memoryless-nodes-introduce-mask-of-nodes-with-memory-fix.patch
+memoryless-nodes-fix-interleave-behavior-for-memoryless-nodes.patch
+memoryless-nodes-oom-use-n_high_memory-map-instead-of-constructing-one-on-the-fly.patch
+memoryless-nodes-no-need-for-kswapd.patch
+memoryless-nodes-slab-support.patch
+memoryless-nodes-slub-support.patch
+memoryless-nodes-uncached-allocator-updates.patch
+memoryless-nodes-allow-profiling-data-to-fall-back-to-other-nodes.patch
+memoryless-nodes-update-memory-policy-and-page-migration.patch
+memoryless-nodes-add-n_cpu-node-state.patch
+memoryless-nodes-drop-one-memoryless-node-boot-warning.patch
+memoryless-nodes-fix-gfp_thisnode-behavior.patch
+memoryless-nodes-use-n_high_memory-for-cpusets.patch

Fix support for NUMA nodes which have no memory.

+categorize-gfp-flags.patch
+categorize-gfp-flags-fix.patch

MM cleanup

+make-swappiness-safer-to-use.patch

Make /proc/sys/vm/swappiness safer

+maps2-add-proc-pid-pagemap-interface-fix-proc-pid-pagemap-return-length-calculation.patch
+maps2-add-proc-pid-pagemap-interface-fix-proc-pid-pagemap-end-address-calculation.patch
+maps2-add-proc-pid-pagemap-interface-fix-proc-pid-pagemap-header-copy-to-userspace.patch

Fix the fancy memory-reporting patches in -mm.

+ifdef-struct-task_structsecurity.patch

Save some space

+pm_trace-displays-the-wrong-time-from-the-rtc.patch
+freezer-be-more-verbose.patch
+freezer-use-wait-queue-instead-of-busy-looping.patch
+freezer-measure-freezing-time.patch

PM updates

+uml-fix-console-writing-bugs.patch
+uml-console-tidying.patch
+uml-stop-using-libc-asm-pageh.patch
+uml-fix-an-ipv6-libc-vs-kernel-symbol-clash.patch
+uml-fix-nonremovability-of-watchdog.patch
+uml-stop-specially-protecting-kernel-stacks.patch
+uml-stop-saving-process-fp-state.patch
+uml-physmem-code-tidying.patch

UML updates

+printk-add-interfaces-for-external-access-to-the-log-buffer-fix-2.patch

Fix printk-add-interfaces-for-external-access-to-the-log-buffer.patch

+add-all-thread-stats-for-taskstats_cmd_attr_tgid.patch
+pi-futex-set-pf_exiting-without-taking-pi_lock.patch
+do_sigaction-remove-now-unneeded-recalc_sigpending.patch
+deprecate-aout-elf-interpreters.patch
+deprecate-aout-elf-interpreters-fix.patch
+handle-the-multi-threaded-inits-exit-properly.patch
+tweak-proc-ipmi-removal.patch
+ufs-move-non-layout-parts-of-ufs_fsh-to-fs-ufs.patch
+#msleep-with-hrtimers.patch: overflow bug
+#msleep-with-hrtimers.patch
+add-linux-elfcore-compath.patch
+x86_64-use-linux-elfcore-compath.patch
+powerpc-use-linux-elfcore-compath.patch
+avoid-a-small-unlikely-memory-leak-in-proc_read_escd.patch
+wait_task_zombie-remove-unneeded-child-signal-check.patch
+wait_task_zombie-fix-2-3-races-vs-forget_original_parent.patch
+exit_notify-dont-take-tasklist-for-tif_sigpending-re-targeting.patch
+zap_other_threads-dont-optimize-thread_group_empty-case.patch
+do-not-export-usr-include-scsi-in-make-headers_install.patch
+add-mmf_dump_elf_headers.patch
+ext2-ext3-ext4-add-block-bitmap-validation.patch
+ext2-ext3-ext4-add-block-bitmap-validation-fix.patch
+i386-pci_get_device-called-from-interrupt-in-reboot-fixups.patch

misc.

+nfs-remove-congestion_end.patch
+lib-percpu_counter_add.patch
+lib-percpu_counter-variable-batch.patch
+lib-make-percpu_counter_add-take-s64.patch
+lib-percpu_counter_set.patch
+lib-percpu_counter_sum_positive.patch
+lib-percpu_count_sum.patch
+lib-percpu_counter_init-error-handling.patch
+lib-percpu_counter_init_irq.patch
+mm-bdi-init-hooks.patch
+mm-bdi-init-hooks-fix.patch
+mtd-bdi-init-hooks.patch
+mtd-clean-up-the-backing_dev_info-usage.patch
+mtd-give-mtdconcat-devices-their-own-backing_dev_info.patch
+mm-scalable-bdi-statistics-counters.patch
+mm-count-reclaimable-pages-per-bdi.patch
+mm-count-writeback-pages-per-bdi.patch
+mm-expose-bdi-statistics-in-sysfs.patch
+lib-floating-proportions.patch
+lib-floating-proportions-_single.patch
+mm-per-device-dirty-threshold.patch
+mm-dirty-balancing-for-tasks.patch
+debug-sysfs-files-for-the-current-ratio-size-total.patch

Attempt to fix cross-device contention in the dirty-memory limiting code.

+fix-possible-null-deref-on-low-memory-condition-in-capidrvcsend_message.patch
+isdn-guard-against-a-potential-null-pointer-dereference-in-old_capi_manufacturer.patch

ISDN fixes

+fbdev-fix-incorrect-timings-in-some-modedb-entries.patch
+tdfxfb-code-improvements.patch
+tdfxfb-hardware-cursor.patch
+tdfxfb-mtrr-support.patch
+tdfxfb-mtrr-support-fix.patch
+pm2fb-checkpatch-fixes.patch
+pm3fb-checkpatch-fixes.patch
+drivers-video-geode-lxfb_corec-fix-lxfb_setup-warning.patch

fbdev updates

+cpu-hotplug-intel_cacheinfo-fix-cpu-hotplug-error-handling-fix-a-section-mismatch-warning.patch

Fix the CPU hotplug patches in -mm.

+intel-iommu-optimize-sg-map-unmap-calls.patch

Fix the iommu patches in -mm.

+fuse-update-backing_dev_info-congestion-state.patch
+fuse-fix-reserved-request-wake-up.patch
+fuse-add-reference-counting-to-fuse_file.patch
+fuse-truncate-on-spontaneous-size-change.patch
+fuse-fix-page-invalidation.patch
+fuse-set-i_nlink-to-sane-value-after-mount.patch
+fuse-refresh-stale-attributes-in-fuse_permission.patch
+fuse-fix-permission-checking-on-sticky-directories.patch
+fuse-fix-permission-checking-on-sticky-directories-fix.patch
+fuse-cleanup-in-release.patch
+fuse-no-abort-on-interrupt.patch
+fuse-no-enoent-from-fuse-device-read.patch

FUSE updates

+documentation-make-headers_installtxt.patch

Documentation update

+task-containersv11-add-procfs-interface-containers-bdi-init-hooks.patch

Fx the containers patches in -mm.



All 1162 patches:

ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/patch-list



2007-08-09 10:10:32

by Mariusz Kozlowski

[permalink] [raw]
Subject: [usb-storage] schedule_timeout: wrong timeout value c1a95554

Hello,

Happens every time I reattach usb pen drive.

usb 1-2: new high speed USB device using ehci_hcd and address 10
usb 1-2: configuration #1 chosen from 1 choice
scsi6 : SCSI emulation for USB Mass Storage devices
usb 1-2: new device found, idVendor=13fe, idProduct=1a00
usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2: Product: GEIL USB DISK
usb 1-2: Manufacturer:
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
schedule_timeout: wrong timeout value c1a95554
[<c010456a>] show_trace_log_lvl+0x1a/0x30
[<c010508d>] show_trace+0x12/0x14
[<c01051e0>] dump_stack+0x15/0x17
[<c04174d1>] schedule_timeout+0x8c/0xa2
[<c032aeec>] usb_stor_scan_thread+0x100/0x160
[<c0127f2e>] kthread+0x36/0x58
[<c0104233>] kernel_thread_helper+0x7/0x14
=======================
scsi 6:0:0:0: Direct-Access GEIL USB DISK >2.0 PQ: 0 ANSI: 0 CCS
sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
sd 6:0:0:0: [sda] Write Protect is off
sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 6:0:0:0: [sda] Assuming drive cache: write through
sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
sd 6:0:0:0: [sda] Write Protect is off
sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 6:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 6:0:0:0: [sda] Attached SCSI removable disk
sd 6:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete

Regards,

Mariusz

2007-08-09 12:54:29

by Andy Whitcroft

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1 -- spinlock bad magic

Seeing spinlock bad magic BUG's from x86 and x86_64 test boxes,
fsx-linux seems to be tickling it. Adding Peter as prop_norm_single
seems to be his:

x86 (oai5-hs20):

BUG: spinlock bad magic on CPU#1, fsx-linux/25600
lock: c3c15a18, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
[<c01e28bc>] _raw_spin_lock+0x16/0x67
[<c0342428>] _spin_lock_irqsave+0x9/0xd
[<c01dde46>] prop_norm_single+0x27/0x70
[<c0155052>] task_dirty_inc+0x1f/0x48
[<c0155ef0>] set_page_dirty+0x17/0x1b
[<c015560e>] set_page_dirty_balance+0x8/0x35
[<c015dcfd>] __do_fault+0x34c/0x363
[<c01dd79e>] prio_tree_insert+0x55/0x154
[<c015dd57>] do_linear_fault+0x43/0x49
[<c015e095>] handle_mm_fault+0x17d/0x2f2
[<c011c5ab>] do_page_fault+0x214/0x60f
[<c0108985>] sys_mmap2+0x71/0x78
[<c011c397>] do_page_fault+0x0/0x60f
[<c034266a>] error_code+0x72/0x78
[<c0340000>] ioctl_standard_call+0x215/0x29e

x86_64 (bl6-13):

BUG: spinlock bad magic on CPU#1, fsx-linux/19721
lock: ffff8100028cef48, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0

Call Trace:
[<ffffffff803359a6>] _raw_spin_lock+0x22/0xf6
[<ffffffff804e4c13>] _spin_lock_irqsave+0x9/0xe
[<ffffffff803303fe>] prop_norm_single+0x40/0x9a
[<ffffffff8026ac1f>] set_page_dirty+0x8d/0xc9
[<ffffffff8026bc09>] set_page_dirty_balance+0x9/0x39
[<ffffffff80271f14>] __do_fault+0x37a/0x395
[<ffffffff802738d7>] handle_mm_fault+0x342/0x6c3
[<ffffffff804e6ac6>] do_page_fault+0x3e5/0x7ab
[<ffffffff802117d3>] arch_get_unmapped_area+0x184/0x1f9
[<ffffffff804e4c13>] _spin_lock_irqsave+0x9/0xe
[<ffffffff803318cc>] __up_write+0x21/0x10d
[<ffffffff804e500d>] error_exit+0x0/0x84

We also have a third machine which dies when running fs-linux but that
trips a soft-lockup trying to flush the tlb, subsequent stacks also
show prop_norm_single.

x86_64 (elm3b6):

First bug:

BUG: soft lockup - CPU#3 stuck for 11s! [pdflush:272]
CPU 3:
Modules linked in:
Pid: 272, comm: pdflush Not tainted 2.6.23-rc2-mm1-autokern1 #1
RIP: 0010:[<ffffffff8021a9c3>] [<ffffffff8021a9c3>] flush_tlb_others+0x69/0x95
RSP: 0000:ffff810001f15a90 EFLAGS: 00000202
RAX: 0000000000000003 RBX: ffff810001f15ac0 RCX: 0000000000000008
RDX: 00000000000008f3 RSI: 00000000000000f3 RDI: 0000000000000002
RBP: 0000000000000000 R08: ffff810082f05210 R09: ffffffff802e60c1
R10: ffff8100815e6e70 R11: 0000000000000000 R12: ffff8101ffc38080
R13: ffffffff80358b47 R14: ffff810001f15a40 R15: ffff810081d73208
FS: 0000000000000000(0000) GS:ffff810180724280(0000) knlGS:00000000f7f75b80
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 00000000f7e20494 CR3: 00000000029f0000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

Call Trace:
[<ffffffff8021abd0>] flush_tlb_page+0x8f/0x97
[<ffffffff8026daee>] page_mkclean+0x120/0x171
[<ffffffff802e6227>] ext3_ordered_writepage+0x13f/0x16c
[<ffffffff8025ed09>] clear_page_dirty_for_io+0x52/0xba
[<ffffffff8025f002>] write_cache_pages+0x1b2/0x33a
[<ffffffff8022a149>] update_curr+0xd9/0xf8
[<ffffffff8025e9ca>] __writepage+0x0/0x2a
[<ffffffff8025f1a9>] generic_writepages+0x1f/0x25
[<ffffffff8025f1db>] do_writepages+0x2c/0x35
[<ffffffff8029b453>] __writeback_single_inode+0x1c9/0x346
[<ffffffff8023b809>] try_to_del_timer_sync+0x55/0x60
[<ffffffff8023b826>] del_timer_sync+0x12/0x1f
[<ffffffff8022a149>] update_curr+0xd9/0xf8
[<ffffffff8022a446>] dequeue_entity+0x7d/0x92
[<ffffffff8029ba20>] generic_sync_sb_inodes+0x216/0x372
[<ffffffff8029bb99>] sync_sb_inodes+0x1d/0x1f
[<ffffffff8029bdd9>] writeback_inodes+0x83/0xd6
[<ffffffff8025e82b>] wb_kupdate+0xa0/0x113
[<ffffffff8025f658>] pdflush+0x156/0x206
[<ffffffff8025e78b>] wb_kupdate+0x0/0x113
[<ffffffff8025f502>] pdflush+0x0/0x206
[<ffffffff80245660>] kthread+0x44/0x6d
[<ffffffff8020c5e8>] child_rip+0xa/0x12
[<ffffffff8024561c>] kthread+0x0/0x6d
[<ffffffff8020c5de>] child_rip+0x0/0x12

Later:

BUG: soft lockup - CPU#0 stuck for 11s! [syslogd:2167]
CPU 0:
Modules linked in:
Pid: 2167, comm: syslogd Not tainted 2.6.23-rc2-mm1-autokern1 #1
RIP: 0010:[<ffffffff804a7d4f>] [<ffffffff804a7d4f>] _spin_lock_irqsave+0x19/0x29
RSP: 0000:ffff8101819358b8 EFLAGS: 00000286
RAX: 0000000000000287 RBX: ffff8101819358b8 RCX: 0000000000000012
RDX: ffff810181935980 RSI: ffff81018073eba8 RDI: ffff81018073ebc0
RBP: 0000000046badbf6 R08: 000000000001761f R09: 0000000000000064
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff802f56ac R15: ffff8101819358e8
FS: 0000000000000000(0000) GS:ffffffff805c8000(0063) knlGS:00000000f7e39460
CS: 0010 DS: 002b ES: 002b CR0: 000000008005003b
CR2: 00000000f7e2b960 CR3: 000000018197a000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

Call Trace:
[<ffffffff8036497f>] prop_norm_single+0x3e/0x9a
[<ffffffff80364b3e>] prop_fraction_single+0x2d/0x53
[<ffffffff8025e05b>] task_dirties_fraction+0x38/0x50
[<ffffffff8025e093>] task_dirty_limit+0x20/0x63
[<ffffffff8025e00a>] bdi_writeout_fraction+0x4e/0x67
[<ffffffff8025e350>] get_dirty_limits+0x19e/0x1ad
[<ffffffff8022d876>] __wake_up+0x40/0x4c
[<ffffffff8025e429>] balance_dirty_pages_ratelimited_nr+0xca/0x2ac
[<ffffffff80259536>] generic_file_buffered_write+0x1e9/0x619
[<ffffffff8043badc>] skb_dequeue+0x50/0x5b
[<ffffffff80259fad>] __generic_file_aio_write_nolock+0x41e/0x451
[<ffffffff8043d223>] skb_free_datagram+0xc/0xe
[<ffffffff80435784>] sock_recvmsg+0xee/0x107
[<ffffffff8025a044>] generic_file_aio_write+0x64/0xc0
[<ffffffff802e469a>] ext3_file_write+0x1c/0xa2
[<ffffffff802e467e>] ext3_file_write+0x0/0xa2
[<ffffffff80280251>] do_sync_readv_writev+0xe0/0x128
[<ffffffff80245c15>] autoremove_wake_function+0x0/0x37
[<ffffffff80436921>] sys_recvfrom+0xbb/0x11f
[<ffffffff802ac935>] compat_do_readv_writev+0x18a/0x271
[<ffffffff802492dd>] do_gettimeofday+0x3e/0xc8
[<ffffffff802acaee>] compat_sys_writev+0x5f/0x76
[<ffffffff80222d12>] ia32_sysret+0x0/0xa

-apw

2007-08-09 13:05:44

by Andy Whitcroft

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1 -- PPC G5 kernel compile failure

Seeing the following compile error on a G5 mac:

drivers/video/tdfxfb.c: In function 'tdfxfb_setup':
drivers/video/tdfxfb.c:1341: error: 'opt' undeclared (first use in this
function)
drivers/video/tdfxfb.c:1341: error: (Each undeclared identifier is
reported only once
drivers/video/tdfxfb.c:1341: error: for each function it appears in.)

This seems to be the following fragment from tdfxfb-hardware-cursor:

+ } else if (!strcmp(this_opt, "hwcursor")) {
+ hwcursor = simple_strtoul(opt + 9, NULL, 0);

I guess the nieve fix would be s/opt/this_opt, but I am also
suspicious of the +9 here as hwcursor is only 8 long? Now this
seems to take a numeric value and I assume that is via hwcursor=N,
if so then the +9 would make sense _if_ the strcmp was against
"hwcursor=".

Krzysztof?

-apw

2007-08-09 13:24:25

by Michal Piotrowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

Andrew Morton pisze:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/

I am experiencing some problems with 8139too

[ 28.847004] 8139too 0000:02:0d.0: region #0 not a PIO resource, aborting
[ 28.854722] Bad IO access at port 0 ()
[ 28.859459] WARNING: at /home/devel/linux-mm/lib/iomap.c:44 bad_io_access()
[ 28.867415] [<c040536b>] show_trace_log_lvl+0x1a/0x30
[ 28.873568] [<c0405ff3>] show_trace+0x12/0x14
[ 28.879015] [<c0406128>] dump_stack+0x16/0x18
[ 28.884451] [<c052a904>] bad_io_access+0x58/0x5a
[ 28.890129] [<c052a927>] pci_iounmap+0x21/0x2b
[ 28.895635] [<c05b3746>] __rtl8139_cleanup_dev+0x75/0xc6
[ 28.902037] [<c05b42c4>] rtl8139_init_one+0x59b/0xa9f
[ 28.908170] [<c053e344>] pci_device_probe+0x44/0x5f
[ 28.914116] [<c05a7cd0>] driver_probe_device+0xa7/0x19a
[ 28.920402] [<c05a7f1a>] __driver_attach+0xa6/0xa8
[ 28.926236] [<c05a71d3>] bus_for_each_dev+0x43/0x61
[ 28.932139] [<c05a7b51>] driver_attach+0x19/0x1b
[ 28.937776] [<c05a7504>] bus_add_driver+0x7e/0x1a5
[ 28.943567] [<c05a80cf>] driver_register+0x45/0x75
[ 28.949358] [<c053e4a5>] __pci_register_driver+0x56/0x84
[ 28.955678] [<c0819118>] rtl8139_init_module+0x14/0x1c
[ 28.961832] [<c0800521>] kernel_init+0x132/0x306
[ 28.967451] [<c0404fb3>] kernel_thread_helper+0x7/0x14
[ 28.973588] =======================
[ 28.978151] initcall 0xc0819104: rtl8139_init_module+0x0/0x1c() returned 0.
[ 28.986114] initcall 0xc0819104 ran for 161 msecs: rtl8139_init_module+0x0/0x1c()

http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-dmesg
http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config

Regards,
Michal

--
LOG
http://www.stardust.webpages.pl/log/

2007-08-09 13:52:19

by Adrian Bunk

[permalink] [raw]
Subject: 2.6.23-rc2-mm1: e1000e global symbols must be renamed

On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
>...
> - There is a new e1000 driver in git-netdev-all, called e1000e. I'm sure
> the developers would like it tested. Please cc [email protected] on
> any reports.
>...
> Changes since 2.6.23-rc2-mm1:
>...
> git-netdev-all.patch
>...
> git trees
>...

<-- snip -->

...
LD drivers/net/built-in.o
drivers/net/e1000e/built-in.o: In function `e1000_read_mac_addr':
(.text+0x3470): multiple definition of `e1000_read_mac_addr'
drivers/net/e1000/built-in.o:(.text+0xb6cc): first defined here
drivers/net/e1000e/built-in.o: In function `e1000_set_ethtool_ops':
(.text+0x594d): multiple definition of `e1000_set_ethtool_ops'
drivers/net/e1000/built-in.o:(.text+0xc97a): first defined here
...
make[3]: *** [drivers/net/built-in.o] Error 1

<-- snip -->

cu
Adrian

--

"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

2007-08-09 14:15:56

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: no bcm43xx

On Thursday, 9 August 2007 10:51, Andrew Morton wrote:
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
>
> - Added new NFSD development tree as git-nfsd ("J. Bruce Fields"
> <[email protected]>)
>
> - There is a new e1000 driver in git-netdev-all, called e1000e. I'm sure
> the developers would like it tested. Please cc [email protected] on
> any reports.
>
> - I dropped the SSB patches due to various catastrophes and they are being
> redone. But git-wireless.patch had some dependencies upon SSB which were
> plugged with some nasty bandaids. So there are some kconfig warnings whcih
> come out of there. Don't worry about it for now.

This caused the bcm43xx driver to be unselectable. :-(

Greetings,
Rafael

2007-08-09 14:17:48

by Michael Büsch

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: no bcm43xx

On Thursday 09 August 2007 16:24:57 Rafael J. Wysocki wrote:
> On Thursday, 9 August 2007 10:51, Andrew Morton wrote:
> >
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
> >
> > - Added new NFSD development tree as git-nfsd ("J. Bruce Fields"
> > <[email protected]>)
> >
> > - There is a new e1000 driver in git-netdev-all, called e1000e. I'm sure
> > the developers would like it tested. Please cc [email protected] on
> > any reports.
> >
> > - I dropped the SSB patches due to various catastrophes and they are being
> > redone. But git-wireless.patch had some dependencies upon SSB which were
> > plugged with some nasty bandaids. So there are some kconfig warnings whcih
> > come out of there. Don't worry about it for now.
>
> This caused the bcm43xx driver to be unselectable. :-(

That is expected. It will be fixed when we managed to merge all
that stuff properly together. Hopefully next mm.

--
Greetings Michael.

2007-08-09 14:22:54

by Krzysztof Helt

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1 -- PPC G5 kernel compile failure (patch)

On Thu, 9 Aug 2007 14:04:49 +0100
Andy Whitcroft <[email protected]> wrote:

> Seeing the following compile error on a G5 mac:
>
> drivers/video/tdfxfb.c: In function 'tdfxfb_setup':
> drivers/video/tdfxfb.c:1341: error: 'opt' undeclared (first use in this
> function)
> drivers/video/tdfxfb.c:1341: error: (Each undeclared identifier is
> reported only once
> drivers/video/tdfxfb.c:1341: error: for each function it appears in.)
>
> This seems to be the following fragment from tdfxfb-hardware-cursor:
>
> + } else if (!strcmp(this_opt, "hwcursor")) {
> + hwcursor = simple_strtoul(opt + 9, NULL, 0);
>
> I guess the nieve fix would be s/opt/this_opt, but I am also
> suspicious of the +9 here as hwcursor is only 8 long? Now this
> seems to take a numeric value and I assume that is via hwcursor=N,
> if so then the +9 would make sense _if_ the strcmp was against
> "hwcursor=".
>

The patch below fixes all issues you have pointed out. It also fixes
the description of the nomtrr option.

---

From: Krzysztof Helt <[email protected]>

This patch fixes compilation with setup options bug and corrects
description of the nomtrr option.

Signed-off-by: Krzysztof Helt <[email protected]>

---

--- linux-2.6.22.new/drivers/video/tdfxfb.c 2007-08-09 16:11:23.870028259 +0200
+++ linux-2.6.23/drivers/video/tdfxfb.c 2007-08-09 16:15:07.654781024 +0200
@@ -1337,8 +1337,8 @@ static void tdfxfb_setup(char *options)
nopan = 1;
} else if (!strcmp(this_opt, "nowrap")) {
nowrap = 1;
- } else if (!strcmp(this_opt, "hwcursor")) {
- hwcursor = simple_strtoul(opt + 9, NULL, 0);
+ } else if (!strncmp(this_opt, "hwcursor=", 9)) {
+ hwcursor = simple_strtoul(this_opt + 9, NULL, 0);
#ifdef CONFIG_MTRR
} else if (!strncmp(this_opt, "nomtrr", 6)) {
nomtrr = 1;
@@ -1409,7 +1409,7 @@ MODULE_PARM_DESC(hwcursor, "Enable hardw
"(1=enable, 0=disable, default=1)");
#ifdef CONFIG_MTRR
module_param(nomtrr, bool, 0);
-MODULE_PARM_DESC(nomtrr, "Disable MTRR support (0 or 1=disabled) (default=0)");
+MODULE_PARM_DESC(nomtrr, "Disable MTRR support (default: enabled)");
#endif

module_init(tdfxfb_init);

2007-08-09 14:44:17

by Alan Stern

[permalink] [raw]
Subject: Re: [linux-usb-devel] [usb-storage] schedule_timeout: wrong timeout value c1a95554

On Thu, 9 Aug 2007, Mariusz Kozlowski wrote:

> Hello,
>
> Happens every time I reattach usb pen drive.
>
> usb 1-2: new high speed USB device using ehci_hcd and address 10
> usb 1-2: configuration #1 chosen from 1 choice
> scsi6 : SCSI emulation for USB Mass Storage devices
> usb 1-2: new device found, idVendor=13fe, idProduct=1a00
> usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0
> usb 1-2: Product: GEIL USB DISK
> usb 1-2: Manufacturer:
> usb-storage: device found at 10
> usb-storage: waiting for device to settle before scanning
> schedule_timeout: wrong timeout value c1a95554
> [<c010456a>] show_trace_log_lvl+0x1a/0x30
> [<c010508d>] show_trace+0x12/0x14
> [<c01051e0>] dump_stack+0x15/0x17
> [<c04174d1>] schedule_timeout+0x8c/0xa2
> [<c032aeec>] usb_stor_scan_thread+0x100/0x160
> [<c0127f2e>] kthread+0x36/0x58
> [<c0104233>] kernel_thread_helper+0x7/0x14
> =======================
> scsi 6:0:0:0: Direct-Access GEIL USB DISK >2.0 PQ: 0 ANSI: 0 CCS
> sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> sd 6:0:0:0: [sda] Write Protect is off
> sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> sd 6:0:0:0: [sda] Assuming drive cache: write through
> sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> sd 6:0:0:0: [sda] Write Protect is off
> sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> sd 6:0:0:0: [sda] Assuming drive cache: write through
> sda: sda1
> sd 6:0:0:0: [sda] Attached SCSI removable disk
> sd 6:0:0:0: Attached scsi generic sg0 type 0
> usb-storage: device scan complete

This is a known problem. See

http://marc.info/?l=linux-kernel&m=118641424414399&w=2

Rafael, has this been fixed yet?

Alan Stern

2007-08-09 14:58:39

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [linux-usb-devel] [usb-storage] schedule_timeout: wrong timeout value c1a95554

On Thursday, 9 August 2007 16:43, Alan Stern wrote:
> On Thu, 9 Aug 2007, Mariusz Kozlowski wrote:
>
> > Hello,
> >
> > Happens every time I reattach usb pen drive.
> >
> > usb 1-2: new high speed USB device using ehci_hcd and address 10
> > usb 1-2: configuration #1 chosen from 1 choice
> > scsi6 : SCSI emulation for USB Mass Storage devices
> > usb 1-2: new device found, idVendor=13fe, idProduct=1a00
> > usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0
> > usb 1-2: Product: GEIL USB DISK
> > usb 1-2: Manufacturer:
> > usb-storage: device found at 10
> > usb-storage: waiting for device to settle before scanning
> > schedule_timeout: wrong timeout value c1a95554
> > [<c010456a>] show_trace_log_lvl+0x1a/0x30
> > [<c010508d>] show_trace+0x12/0x14
> > [<c01051e0>] dump_stack+0x15/0x17
> > [<c04174d1>] schedule_timeout+0x8c/0xa2
> > [<c032aeec>] usb_stor_scan_thread+0x100/0x160
> > [<c0127f2e>] kthread+0x36/0x58
> > [<c0104233>] kernel_thread_helper+0x7/0x14
> > =======================
> > scsi 6:0:0:0: Direct-Access GEIL USB DISK >2.0 PQ: 0 ANSI: 0 CCS
> > sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> > sd 6:0:0:0: [sda] Write Protect is off
> > sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> > sd 6:0:0:0: [sda] Assuming drive cache: write through
> > sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> > sd 6:0:0:0: [sda] Write Protect is off
> > sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> > sd 6:0:0:0: [sda] Assuming drive cache: write through
> > sda: sda1
> > sd 6:0:0:0: [sda] Attached SCSI removable disk
> > sd 6:0:0:0: Attached scsi generic sg0 type 0
> > usb-storage: device scan complete
>
> This is a known problem. See
>
> http://marc.info/?l=linux-kernel&m=118641424414399&w=2
>
> Rafael, has this been fixed yet?

No, I wasn't aware of it.

I think that something like the appended patch is necessary.

Mariusz, please see if that helps.

Greetings,
Rafael


---
include/linux/freezer.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

Index: linux-2.6.23-rc2/include/linux/freezer.h
===================================================================
--- linux-2.6.23-rc2.orig/include/linux/freezer.h
+++ linux-2.6.23-rc2/include/linux/freezer.h
@@ -134,28 +134,28 @@ static inline void set_freezable(void)

#define wait_event_freezable(wq, condition) \
({ \
- int __ret; \
+ int __retval; \
do { \
- __ret = wait_event_interruptible(wq, \
+ __retval = wait_event_interruptible(wq, \
(condition) || freezing(current)); \
- if (__ret && !freezing(current)) \
+ if (__retval && !freezing(current)) \
break; \
else if (!(condition)) \
- __ret = -ERESTARTSYS; \
+ __retval = -ERESTARTSYS; \
} while (try_to_freeze()); \
- __ret; \
+ __retval; \
})


#define wait_event_freezable_timeout(wq, condition, timeout) \
({ \
- long __ret = timeout; \
+ long __retval = timeout; \
do { \
- __ret = wait_event_interruptible_timeout(wq, \
+ __retval = wait_event_interruptible_timeout(wq, \
(condition) || freezing(current), \
- __ret); \
+ __retval); \
} while (try_to_freeze()); \
- __ret; \
+ __retval; \
})
#else /* !CONFIG_PM_SLEEP */
static inline int frozen(struct task_struct *p) { return 0; }

2007-08-09 15:12:16

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78!

Hello,

Nothing unusual happening, allmodconfig compiling etc.
Not sure why it says kernel was tainted though ... hmmm.

------------[ cut here ]------------
kernel BUG at mm/swap_state.c:78!
invalid opcode: 0000 [#1]
PREEMPT
Modules linked in: orinoco_cs orinoco hermes pl2303 usbserial pcmcia 8250_pci 8250 serial_core yenta_socket rsrc_nonstatic pcmcia_core 8139too
CPU: 0
EIP: 0060:[<c01504b7>] Tainted: P VLI
EFLAGS: 00010246 (2.6.23-rc2-mm1 #1)
EIP is at __add_to_swap_cache+0xc6/0xd7
eax: 40000000 ebx: c11285c0 ecx: 000000d0 edx: 00000283
esi: c11285c0 edi: 00000283 ebp: c1858f90 esp: c1858f84
ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068
Process kprefetchd (pid: 236, ti=c1858000 task=c18d14d0 task.ti=c1858000)
Stack: 00000283 c11285c0 c3d5a3c8 c1858fa0 c01504ea c11285c0 00000000 c1858fcc
c015307c 00000001 00000007 00000002 00000002 00000283 00000000 fffffffc
00000000 c0152d5c c1858fe0 c0127f2e c0127ef8 00000000 00000000 00000000
Call Trace:
[<c010456a>] show_trace_log_lvl+0x1a/0x30
[<c0104629>] show_stack_log_lvl+0xa9/0xd5
[<c010486e>] show_registers+0x219/0x38d
[<c0104ae6>] die+0x104/0x23e
[<c0419bd3>] do_trap+0x83/0xad
[<c0104edf>] do_invalid_op+0x88/0x92
[<c04199b2>] error_code+0x6a/0x70
[<c01504ea>] add_to_swap_cache+0x22/0x58
[<c015307c>] kprefetchd+0x320/0x364
[<c0127f2e>] kthread+0x36/0x58
[<c0104233>] kernel_thread_helper+0x7/0x14
=======================
INFO: lockdep is turned off.
Code: 0f 89 7b 0c 83 05 fc c9 53 c0 01 8b 13 c1 ea 1e 8d 04 12 01 d0 c1 e0 03 29 d0 c1 e0 05 ff 80 b8 c0 53 c0 ff 05 34 1d 68 c0 eb 96 <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 8b 53 0c eb be 55 89 e5 56
EIP: [<c01504b7>] __add_to_swap_cache+0xc6/0xd7 SS:ESP 0068:c1858f84

Regards,

Mariusz

2007-08-09 15:14:59

by Adrian Bunk

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78!

On Thu, Aug 09, 2007 at 05:11:52PM +0200, Mariusz Kozlowski wrote:
>...
> Not sure why it says kernel was tainted though ... hmmm.
>...

What does your syslog say when it was tainted?

> Regards,
>
> Mariusz

cu
Adrian

--

"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

2007-08-09 15:20:24

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: [linux-usb-devel] [usb-storage] schedule_timeout: wrong timeout value c1a95554

> > > Happens every time I reattach usb pen drive.
> > >
> > > usb 1-2: new high speed USB device using ehci_hcd and address 10
> > > usb 1-2: configuration #1 chosen from 1 choice
> > > scsi6 : SCSI emulation for USB Mass Storage devices
> > > usb 1-2: new device found, idVendor=13fe, idProduct=1a00
> > > usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0
> > > usb 1-2: Product: GEIL USB DISK
> > > usb 1-2: Manufacturer:
> > > usb-storage: device found at 10
> > > usb-storage: waiting for device to settle before scanning
> > > schedule_timeout: wrong timeout value c1a95554
> > > [<c010456a>] show_trace_log_lvl+0x1a/0x30
> > > [<c010508d>] show_trace+0x12/0x14
> > > [<c01051e0>] dump_stack+0x15/0x17
> > > [<c04174d1>] schedule_timeout+0x8c/0xa2
> > > [<c032aeec>] usb_stor_scan_thread+0x100/0x160
> > > [<c0127f2e>] kthread+0x36/0x58
> > > [<c0104233>] kernel_thread_helper+0x7/0x14
> > > =======================
> > > scsi 6:0:0:0: Direct-Access GEIL USB DISK >2.0 PQ: 0 ANSI: 0 CCS
> > > sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> > > sd 6:0:0:0: [sda] Write Protect is off
> > > sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> > > sd 6:0:0:0: [sda] Assuming drive cache: write through
> > > sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> > > sd 6:0:0:0: [sda] Write Protect is off
> > > sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> > > sd 6:0:0:0: [sda] Assuming drive cache: write through
> > > sda: sda1
> > > sd 6:0:0:0: [sda] Attached SCSI removable disk
> > > sd 6:0:0:0: Attached scsi generic sg0 type 0
> > > usb-storage: device scan complete
> >
> > This is a known problem. See
> >
> > http://marc.info/?l=linux-kernel&m=118641424414399&w=2
> >
> > Rafael, has this been fixed yet?
>
> No, I wasn't aware of it.
>
> I think that something like the appended patch is necessary.
>
> Mariusz, please see if that helps.

Yes - this patch fixes the bug.

Thanks,

Mariusz



> ---
> include/linux/freezer.h | 18 +++++++++---------
> 1 file changed, 9 insertions(+), 9 deletions(-)
>
> Index: linux-2.6.23-rc2/include/linux/freezer.h
> ===================================================================
> --- linux-2.6.23-rc2.orig/include/linux/freezer.h
> +++ linux-2.6.23-rc2/include/linux/freezer.h
> @@ -134,28 +134,28 @@ static inline void set_freezable(void)
>
> #define wait_event_freezable(wq, condition) \
> ({ \
> - int __ret; \
> + int __retval; \
> do { \
> - __ret = wait_event_interruptible(wq, \
> + __retval = wait_event_interruptible(wq, \
> (condition) || freezing(current)); \
> - if (__ret && !freezing(current)) \
> + if (__retval && !freezing(current)) \
> break; \
> else if (!(condition)) \
> - __ret = -ERESTARTSYS; \
> + __retval = -ERESTARTSYS; \
> } while (try_to_freeze()); \
> - __ret; \
> + __retval; \
> })
>
>
> #define wait_event_freezable_timeout(wq, condition, timeout) \
> ({ \
> - long __ret = timeout; \
> + long __retval = timeout; \
> do { \
> - __ret = wait_event_interruptible_timeout(wq, \
> + __retval = wait_event_interruptible_timeout(wq, \
> (condition) || freezing(current), \
> - __ret); \
> + __retval); \
> } while (try_to_freeze()); \
> - __ret; \
> + __retval; \
> })
> #else /* !CONFIG_PM_SLEEP */
> static inline int frozen(struct task_struct *p) { return 0; }
>

2007-08-09 15:25:27

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78!

> >...
> > Not sure why it says kernel was tainted though ... hmmm.
> >...
>
> What does your syslog say when it was tainted?

Shit. My fault. I'll try to reproduce it on untainted kernel.

Thanks,

Mariusz

2007-08-09 15:37:43

by Michal Piotrowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

Andrew Morton pisze:
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
>

bash_shared_mapping triggered this

[ 874.714700] INFO: trying to register non-static key.
[ 874.719659] the code is fine but needs lockdep annotation.
[ 874.725133] turning off the locking correctness validator.
[ 874.730606] [<c040536b>] show_trace_log_lvl+0x1a/0x30
[ 874.735759] [<c0405ff3>] show_trace+0x12/0x14
[ 874.740218] [<c0406128>] dump_stack+0x16/0x18
[ 874.744679] [<c044b936>] __lock_acquire+0x598/0x125c
[ 874.749745] [<c044c6a1>] lock_acquire+0xa7/0xc1
[ 874.754378] [<c069f753>] _spin_lock_irqsave+0x41/0x6e
[ 874.759529] [<c05259db>] prop_norm_single+0x34/0x8a
[ 874.764508] [<c0473576>] set_page_dirty+0xa1/0x13b
[ 874.769402] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
[ 874.774467] [<c0482d8f>] try_to_unmap+0x8f/0x40d
[ 874.779187] [<c04776fd>] shrink_page_list+0x278/0x750
[ 874.784339] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
[ 874.789749] [<c0477faa>] shrink_zone+0xad/0x10b
[ 874.794383] [<c047866e>] try_to_free_pages+0x178/0x274
[ 874.799620] [<c0472a36>] __alloc_pages+0x169/0x431
[ 874.804514] [<c047501d>] __do_page_cache_readahead+0x141/0x207
[ 874.810443] [<c047545c>] do_page_cache_readahead+0x48/0x5c
[ 874.816027] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
[ 874.820921] [<c047b5c9>] __do_fault+0xb6/0x42d
[ 874.825466] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
[ 874.830533] [<c041cd7b>] do_page_fault+0x334/0x5f9
[ 874.835425] [<c069fe72>] error_code+0x72/0x78
[ 874.839886] =======================
[ 880.621883] BUG: NMI Watchdog detected LOCKUP on CPU1, eip c0529022, registers:
[ 880.629200] Modules linked in: ext2 loop autofs4 af_packet nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink ipt_REJECT iptable_filter ip_tables xt_tcpudp ip6t_REJECT ip6table_filter ip6_tables x_tables firmware_class binfmt_misc fan ipv6 nvram snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer evdev snd soundcore i2c_i801 snd_page_alloc intel_agp agpgart rtc
[ 880.672397] CPU: 1
[ 880.672398] EIP: 0060:[<c0529022>] Not tainted VLI
[ 880.672400] EFLAGS: 00000046 (2.6.23-rc2-mm1 #3)
[ 880.684735] EIP is at delay_tsc+0xe/0x17

l *delay_tsc+0xe
0xc1129022 is in delay_tsc (/home/devel/linux-mm/arch/i386/lib/delay.c:49).
44
45 rdtscl(bclock);
46 do {
47 rep_nop();
48 rdtscl(now);
49 } while ((now-bclock) < loops);
50 }
51
52 /*
53 * Since we calibrate only once at boot, this


[ 880.688646] eax: 393e5d7c ebx: 00000001 ecx: 393e5d04 edx: 0000023f
[ 880.695414] esi: 00000000 edi: cabbf5cc ebp: caf29ae8 esp: caf29ae4
[ 880.702183] ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
[ 880.708002] Process firefox-bin (pid: 2625, ti=caf29000 task=cabbe900 task.ti=caf29000)
[ 880.715805] Stack: 02e6eb94 caf29af0 c0528fdd caf29b28 c05375ac 00000046 00000000 caf29b28
[ 880.724345] 00000046 00000000 a6c999f0 00000001 a6c999f0 00000000 cabbf5e0 cabbf5cc
[ 880.732887] 00000086 caf29b48 c069f76f 00000000 00000002 c05259db cabbf5c0 00008000
[ 880.741425] Call Trace:
[ 880.744073] [<c040536b>] show_trace_log_lvl+0x1a/0x30
[ 880.749233] [<c040542a>] show_stack_log_lvl+0xa9/0xd5
[ 880.754386] [<c0405670>] show_registers+0x21a/0x3ac
[ 880.759365] [<c04061ae>] die_nmi+0x84/0xd7
[ 880.763566] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
[ 880.768803] [<c0406582>] do_nmi+0x8b/0x284
[ 880.773004] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
[ 880.778069] [<c0528fdd>] __delay+0x9/0xb
[ 880.782098] [<c05375ac>] _raw_spin_lock+0xd8/0x18a
[ 880.786991] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
[ 880.792143] [<c05259db>] prop_norm_single+0x34/0x8a
[ 880.797122] [<c0473576>] set_page_dirty+0xa1/0x13b
[ 880.802015] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
[ 880.807079] [<c0482d8f>] try_to_unmap+0x8f/0x40d
[ 880.811798] [<c04776fd>] shrink_page_list+0x278/0x750
[ 880.816950] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
[ 880.822362] [<c0477faa>] shrink_zone+0xad/0x10b
[ 880.826997] [<c047866e>] try_to_free_pages+0x178/0x274
[ 880.832235] [<c0472a36>] __alloc_pages+0x169/0x431
[ 880.837126] [<c047501d>] __do_page_cache_readahead+0x141/0x207
[ 880.843056] [<c047545c>] do_page_cache_readahead+0x48/0x5c
[ 880.848641] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
[ 880.853534] [<c047b5c9>] __do_fault+0xb6/0x42d
[ 880.858081] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
[ 880.863146] [<c041cd7b>] do_page_fault+0x334/0x5f9
[ 880.868037] [<c069fe72>] error_code+0x72/0x78
[ 880.872497] =======================
[ 880.876068] INFO: lockdep is turned off.
[ 880.879983] Code: 8d 0c 1b 01 c9 89 da c1 e2 07 29 ca 01 da 01 d2 f7 e2 8d 42 01 e8 c3 ff ff ff 5b 5d c3 55 89 e5 53 89 c3 0f 31 89 c1 f3 90 0f 31 <29> c8 39 d8 72 f6 5b 5d c3 55 89 e5 53 69 c0 1c 43 00 00 64 8b
[ 880.900092] Kernel panic - not syncing: Aiee, killing interrupt handler!
[ 880.906791] WARNING: at /home/devel/linux-mm/arch/i386/kernel/smp.c:474 native_smp_send_reschedule()
[ 880.915892] [<c040536b>] show_trace_log_lvl+0x1a/0x30
[ 880.921043] [<c0405ff3>] show_trace+0x12/0x14
[ 880.925504] [<c0406128>] dump_stack+0x16/0x18
[ 880.929964] [<c0416093>] native_smp_send_reschedule+0x8b/0x98
[ 880.935808] [<c04203ea>] resched_task+0x81/0x83
[ 880.940440] [<c04203fa>] check_preempt_curr_idle+0xe/0x10
[ 880.945939] [<c0422364>] try_to_wake_up+0x2ca/0x3ec
[ 880.950916] [<c04224ae>] wake_up_process+0xf/0x11
[ 880.955714] [<c04403e5>] hrtimer_wakeup+0x18/0x1c
[ 880.960513] [<c044100e>] hrtimer_interrupt+0x15e/0x1e8
[ 880.965751] [<c0418292>] smp_apic_timer_interrupt+0x57/0x88
[ 880.971420] [<c0404e0f>] apic_timer_interrupt+0x33/0x38
[ 880.976736] [<c042d27b>] do_exit+0x639/0xa04
[ 880.981103] [<c04061e8>] die_nmi+0xbe/0xd7
[ 880.985302] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
[ 880.990533] [<c0406582>] do_nmi+0x8b/0x284
[ 880.994735] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
[ 880.999800] [<c0528fdd>] __delay+0x9/0xb
[ 881.003827] [<c05375ac>] _raw_spin_lock+0xd8/0x18a
[ 881.008712] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
[ 881.013865] [<c05259db>] prop_norm_single+0x34/0x8a
[ 881.018842] [<c0473576>] set_page_dirty+0xa1/0x13b
[ 881.023728] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
[ 881.028793] [<c0482d8f>] try_to_unmap+0x8f/0x40d
[ 881.033511] [<c04776fd>] shrink_page_list+0x278/0x750
[ 881.038664] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
[ 881.044075] [<c0477faa>] shrink_zone+0xad/0x10b
[ 881.048709] [<c047866e>] try_to_free_pages+0x178/0x274
[ 881.053947] [<c0472a36>] __alloc_pages+0x169/0x431
[ 881.058838] [<c047501d>] __do_page_cache_readahead+0x141/0x207
[ 881.064760] [<c047545c>] do_page_cache_readahead+0x48/0x5c
[ 881.070344] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
[ 881.075229] [<c047b5c9>] __do_fault+0xb6/0x42d
[ 881.079774] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
[ 881.084832] [<c041cd7b>] do_page_fault+0x334/0x5f9
[ 881.089724] [<c069fe72>] error_code+0x72/0x78
[ 881.094177] =======================
[ 881.097748] WARNING: at /home/devel/linux-mm/arch/i386/kernel/smp.c:209 send_IPI_mask_bitmask()
[ 881.106417] [<c040536b>] show_trace_log_lvl+0x1a/0x30
[ 881.111569] [<c0405ff3>] show_trace+0x12/0x14
[ 881.116029] [<c0406128>] dump_stack+0x16/0x18
[ 881.120489] [<c041589a>] send_IPI_mask_bitmask+0xf0/0xf5
[ 881.125900] [<c0416063>] native_smp_send_reschedule+0x5b/0x98
[ 881.131743] [<c04203ea>] resched_task+0x81/0x83
[ 881.136367] [<c04203fa>] check_preempt_curr_idle+0xe/0x10
[ 881.141857] [<c0422364>] try_to_wake_up+0x2ca/0x3ec
[ 881.146827] [<c04224ae>] wake_up_process+0xf/0x11
[ 881.151625] [<c04403e5>] hrtimer_wakeup+0x18/0x1c
[ 881.156422] [<c044100e>] hrtimer_interrupt+0x15e/0x1e8
[ 881.161653] [<c0418292>] smp_apic_timer_interrupt+0x57/0x88
[ 881.167322] [<c0404e0f>] apic_timer_interrupt+0x33/0x38
[ 881.172639] [<c042d27b>] do_exit+0x639/0xa04
[ 881.177004] [<c04061e8>] die_nmi+0xbe/0xd7
[ 881.181197] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
[ 881.186434] [<c0406582>] do_nmi+0x8b/0x284
[ 881.190627] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
[ 881.195685] [<c0528fdd>] __delay+0x9/0xb
[ 881.199713] [<c05375ac>] _raw_spin_lock+0xd8/0x18a
[ 881.204605] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
[ 881.209748] [<c05259db>] prop_norm_single+0x34/0x8a
[ 881.214718] [<c0473576>] set_page_dirty+0xa1/0x13b
[ 881.219603] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
[ 881.224668] [<c0482d8f>] try_to_unmap+0x8f/0x40d
[ 881.229389] [<c04776fd>] shrink_page_list+0x278/0x750
[ 881.234539] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
[ 881.239951] [<c0477faa>] shrink_zone+0xad/0x10b
[ 881.244584] [<c047866e>] try_to_free_pages+0x178/0x274
[ 881.249822] [<c0472a36>] __alloc_pages+0x169/0x431
[ 881.254707] [<c047501d>] __do_page_cache_readahead+0x141/0x207
[ 881.260637] [<c047545c>] do_page_cache_readahead+0x48/0x5c
[ 881.266221] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
[ 881.271113] [<c047b5c9>] __do_fault+0xb6/0x42d
[ 881.275652] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
[ 881.280716] [<c041cd7b>] do_page_fault+0x334/0x5f9
[ 881.285601] [<c069fe72>] error_code+0x72/0x78
[ 881.290061] =======================

http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/console.log
http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config

Regards,
Michal

--
LOG
http://www.stardust.webpages.pl/log/

2007-08-09 15:39:13

by Hugh Dickins

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78!

On Thu, 9 Aug 2007, Mariusz Kozlowski wrote:
> Hello,
>
> Nothing unusual happening, allmodconfig compiling etc.
> Not sure why it says kernel was tainted though ... hmmm.
>
> ------------[ cut here ]------------
> kernel BUG at mm/swap_state.c:78!
> invalid opcode: 0000 [#1]
> PREEMPT
> Modules linked in: orinoco_cs orinoco hermes pl2303 usbserial pcmcia 8250_pci 8250 serial_core yenta_socket rsrc_nonstatic pcmcia_core 8139too
> CPU: 0
> EIP: 0060:[<c01504b7>] Tainted: P VLI
> EFLAGS: 00010246 (2.6.23-rc2-mm1 #1)
> EIP is at __add_to_swap_cache+0xc6/0xd7
> eax: 40000000 ebx: c11285c0 ecx: 000000d0 edx: 00000283
> esi: c11285c0 edi: 00000283 ebp: c1858f90 esp: c1858f84
> ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068
> Process kprefetchd (pid: 236, ti=c1858000 task=c18d14d0 task.ti=c1858000)
> Stack: 00000283 c11285c0 c3d5a3c8 c1858fa0 c01504ea c11285c0 00000000 c1858fcc
> c015307c 00000001 00000007 00000002 00000002 00000283 00000000 fffffffc
> 00000000 c0152d5c c1858fe0 c0127f2e c0127ef8 00000000 00000000 00000000
> Call Trace:
> [<c010456a>] show_trace_log_lvl+0x1a/0x30
> [<c0104629>] show_stack_log_lvl+0xa9/0xd5
> [<c010486e>] show_registers+0x219/0x38d
> [<c0104ae6>] die+0x104/0x23e
> [<c0419bd3>] do_trap+0x83/0xad
> [<c0104edf>] do_invalid_op+0x88/0x92
> [<c04199b2>] error_code+0x6a/0x70
> [<c01504ea>] add_to_swap_cache+0x22/0x58
> [<c015307c>] kprefetchd+0x320/0x364
> [<c0127f2e>] kthread+0x36/0x58
> [<c0104233>] kernel_thread_helper+0x7/0x14
> =======================
> INFO: lockdep is turned off.
> Code: 0f 89 7b 0c 83 05 fc c9 53 c0 01 8b 13 c1 ea 1e 8d 04 12 01 d0 c1 e0 03 29 d0 c1 e0 05 ff 80 b8 c0 53 c0 ff 05 34 1d 68 c0 eb 96 <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 8b 53 0c eb be 55 89 e5 56
> EIP: [<c01504b7>] __add_to_swap_cache+0xc6/0xd7 SS:ESP 0068:c1858f84

Don't worry about reproducing untainted, I got the same earlier
and was just preparing and testing the hotfix: here it is...


Nick's mm-clarify-__add_to_swap_cache-locking.patch is fine for mainline,
but soon generates a "kernel BUG at mm/swap_state.c:78!" when it meets
mm-implement-swap-prefetching.patch in 2.6.23-rc2-mm1. We could add a
fix to the latter, but I think it's better to adjust Nick's, so that
it's right for whichever tree it's in: move the responsibility to
SetPageLocked from read_swap_cache_async to add_to_swap_cache.

Signed-off-by: Hugh Dickins <[email protected]>
---

mm/swap_state.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

--- 2.6.23-rc2-mm1/mm/swap_state.c 2007-08-09 13:15:36.000000000 +0100
+++ linux/mm/swap_state.c 2007-08-09 14:40:27.000000000 +0100
@@ -100,15 +100,18 @@ int add_to_swap_cache(struct page *page,
{
int error;

+ BUG_ON(PageLocked(page));
if (!swap_duplicate(entry)) {
INC_CACHE_INFO(noent_race);
return -ENOENT;
}
+ SetPageLocked(page);
error = __add_to_swap_cache(page, entry, GFP_KERNEL);
/*
* Anon pages are already on the LRU, we don't run lru_cache_add here.
*/
if (error) {
+ ClearPageLocked(page);
swap_free(entry);
if (error == -EEXIST)
INC_CACHE_INFO(exist_race);
@@ -345,7 +348,6 @@ struct page *read_swap_cache_async(swp_e
vma, addr);
if (!new_page)
break; /* Out of memory */
- SetPageLocked(new_page);/* could be non-atomic op */
}

/*
@@ -369,9 +371,7 @@ struct page *read_swap_cache_async(swp_e
}
} while (err != -ENOENT && err != -ENOMEM);

- if (new_page) {
- ClearPageLocked(new_page);
+ if (new_page)
page_cache_release(new_page);
- }
return found_page;
}

2007-08-09 16:02:17

by Michal Piotrowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78!

Hugh Dickins pisze:
> On Thu, 9 Aug 2007, Mariusz Kozlowski wrote:
>> Hello,
>>
>> Nothing unusual happening, allmodconfig compiling etc.
>> Not sure why it says kernel was tainted though ... hmmm.
>>
>> ------------[ cut here ]------------
>> kernel BUG at mm/swap_state.c:78!
>> invalid opcode: 0000 [#1]
>> PREEMPT
>> Modules linked in: orinoco_cs orinoco hermes pl2303 usbserial pcmcia 8250_pci 8250 serial_core yenta_socket rsrc_nonstatic pcmcia_core 8139too
>> CPU: 0
>> EIP: 0060:[<c01504b7>] Tainted: P VLI
>> EFLAGS: 00010246 (2.6.23-rc2-mm1 #1)
>> EIP is at __add_to_swap_cache+0xc6/0xd7
>> eax: 40000000 ebx: c11285c0 ecx: 000000d0 edx: 00000283
>> esi: c11285c0 edi: 00000283 ebp: c1858f90 esp: c1858f84
>> ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068
>> Process kprefetchd (pid: 236, ti=c1858000 task=c18d14d0 task.ti=c1858000)
>> Stack: 00000283 c11285c0 c3d5a3c8 c1858fa0 c01504ea c11285c0 00000000 c1858fcc
>> c015307c 00000001 00000007 00000002 00000002 00000283 00000000 fffffffc
>> 00000000 c0152d5c c1858fe0 c0127f2e c0127ef8 00000000 00000000 00000000
>> Call Trace:
>> [<c010456a>] show_trace_log_lvl+0x1a/0x30
>> [<c0104629>] show_stack_log_lvl+0xa9/0xd5
>> [<c010486e>] show_registers+0x219/0x38d
>> [<c0104ae6>] die+0x104/0x23e
>> [<c0419bd3>] do_trap+0x83/0xad
>> [<c0104edf>] do_invalid_op+0x88/0x92
>> [<c04199b2>] error_code+0x6a/0x70
>> [<c01504ea>] add_to_swap_cache+0x22/0x58
>> [<c015307c>] kprefetchd+0x320/0x364
>> [<c0127f2e>] kthread+0x36/0x58
>> [<c0104233>] kernel_thread_helper+0x7/0x14
>> =======================
>> INFO: lockdep is turned off.
>> Code: 0f 89 7b 0c 83 05 fc c9 53 c0 01 8b 13 c1 ea 1e 8d 04 12 01 d0 c1 e0 03 29 d0 c1 e0 05 ff 80 b8 c0 53 c0 ff 05 34 1d 68 c0 eb 96 <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 8b 53 0c eb be 55 89 e5 56
>> EIP: [<c01504b7>] __add_to_swap_cache+0xc6/0xd7 SS:ESP 0068:c1858f84
>

The same issue here.

> Don't worry about reproducing untainted, I got the same earlier
> and was just preparing and testing the hotfix: here it is...
>

Thanks for the patch.

Regards,
Michal

--
LOG
http://www.stardust.webpages.pl/log/

2007-08-09 16:20:18

by Michal Piotrowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

Michal Piotrowski pisze:
> Andrew Morton pisze:
>> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
>>
>
> bash_shared_mapping triggered this
>
> [ 874.714700] INFO: trying to register non-static key.
> [ 874.719659] the code is fine but needs lockdep annotation.
> [ 874.725133] turning off the locking correctness validator.
> [ 874.730606] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> [ 874.735759] [<c0405ff3>] show_trace+0x12/0x14
> [ 874.740218] [<c0406128>] dump_stack+0x16/0x18
> [ 874.744679] [<c044b936>] __lock_acquire+0x598/0x125c
> [ 874.749745] [<c044c6a1>] lock_acquire+0xa7/0xc1
> [ 874.754378] [<c069f753>] _spin_lock_irqsave+0x41/0x6e
> [ 874.759529] [<c05259db>] prop_norm_single+0x34/0x8a
> [ 874.764508] [<c0473576>] set_page_dirty+0xa1/0x13b
> [ 874.769402] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
> [ 874.774467] [<c0482d8f>] try_to_unmap+0x8f/0x40d
> [ 874.779187] [<c04776fd>] shrink_page_list+0x278/0x750
> [ 874.784339] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
> [ 874.789749] [<c0477faa>] shrink_zone+0xad/0x10b
> [ 874.794383] [<c047866e>] try_to_free_pages+0x178/0x274
> [ 874.799620] [<c0472a36>] __alloc_pages+0x169/0x431
> [ 874.804514] [<c047501d>] __do_page_cache_readahead+0x141/0x207
> [ 874.810443] [<c047545c>] do_page_cache_readahead+0x48/0x5c
> [ 874.816027] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
> [ 874.820921] [<c047b5c9>] __do_fault+0xb6/0x42d
> [ 874.825466] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
> [ 874.830533] [<c041cd7b>] do_page_fault+0x334/0x5f9
> [ 874.835425] [<c069fe72>] error_code+0x72/0x78
> [ 874.839886] =======================
> [ 880.621883] BUG: NMI Watchdog detected LOCKUP on CPU1, eip c0529022, registers:
> [ 880.629200] Modules linked in: ext2 loop autofs4 af_packet nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink ipt_REJECT iptable_filter ip_tables xt_tcpudp ip6t_REJECT ip6table_filter ip6_tables x_tables firmware_class binfmt_misc fan ipv6 nvram snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer evdev snd soundcore i2c_i801 snd_page_alloc intel_agp agpgart rtc
> [ 880.672397] CPU: 1
> [ 880.672398] EIP: 0060:[<c0529022>] Not tainted VLI
> [ 880.672400] EFLAGS: 00000046 (2.6.23-rc2-mm1 #3)
> [ 880.684735] EIP is at delay_tsc+0xe/0x17
>
> l *delay_tsc+0xe
> 0xc1129022 is in delay_tsc (/home/devel/linux-mm/arch/i386/lib/delay.c:49).
> 44
> 45 rdtscl(bclock);
> 46 do {
> 47 rep_nop();
> 48 rdtscl(now);
> 49 } while ((now-bclock) < loops);
> 50 }
> 51
> 52 /*
> 53 * Since we calibrate only once at boot, this
>
>
> [ 880.688646] eax: 393e5d7c ebx: 00000001 ecx: 393e5d04 edx: 0000023f
> [ 880.695414] esi: 00000000 edi: cabbf5cc ebp: caf29ae8 esp: caf29ae4
> [ 880.702183] ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
> [ 880.708002] Process firefox-bin (pid: 2625, ti=caf29000 task=cabbe900 task.ti=caf29000)
> [ 880.715805] Stack: 02e6eb94 caf29af0 c0528fdd caf29b28 c05375ac 00000046 00000000 caf29b28
> [ 880.724345] 00000046 00000000 a6c999f0 00000001 a6c999f0 00000000 cabbf5e0 cabbf5cc
> [ 880.732887] 00000086 caf29b48 c069f76f 00000000 00000002 c05259db cabbf5c0 00008000
> [ 880.741425] Call Trace:
> [ 880.744073] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> [ 880.749233] [<c040542a>] show_stack_log_lvl+0xa9/0xd5
> [ 880.754386] [<c0405670>] show_registers+0x21a/0x3ac
> [ 880.759365] [<c04061ae>] die_nmi+0x84/0xd7
> [ 880.763566] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
> [ 880.768803] [<c0406582>] do_nmi+0x8b/0x284
> [ 880.773004] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
> [ 880.778069] [<c0528fdd>] __delay+0x9/0xb
> [ 880.782098] [<c05375ac>] _raw_spin_lock+0xd8/0x18a
> [ 880.786991] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
> [ 880.792143] [<c05259db>] prop_norm_single+0x34/0x8a
> [ 880.797122] [<c0473576>] set_page_dirty+0xa1/0x13b
> [ 880.802015] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
> [ 880.807079] [<c0482d8f>] try_to_unmap+0x8f/0x40d
> [ 880.811798] [<c04776fd>] shrink_page_list+0x278/0x750
> [ 880.816950] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
> [ 880.822362] [<c0477faa>] shrink_zone+0xad/0x10b
> [ 880.826997] [<c047866e>] try_to_free_pages+0x178/0x274
> [ 880.832235] [<c0472a36>] __alloc_pages+0x169/0x431
> [ 880.837126] [<c047501d>] __do_page_cache_readahead+0x141/0x207
> [ 880.843056] [<c047545c>] do_page_cache_readahead+0x48/0x5c
> [ 880.848641] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
> [ 880.853534] [<c047b5c9>] __do_fault+0xb6/0x42d
> [ 880.858081] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
> [ 880.863146] [<c041cd7b>] do_page_fault+0x334/0x5f9
> [ 880.868037] [<c069fe72>] error_code+0x72/0x78
> [ 880.872497] =======================
> [ 880.876068] INFO: lockdep is turned off.
> [ 880.879983] Code: 8d 0c 1b 01 c9 89 da c1 e2 07 29 ca 01 da 01 d2 f7 e2 8d 42 01 e8 c3 ff ff ff 5b 5d c3 55 89 e5 53 89 c3 0f 31 89 c1 f3 90 0f 31 <29> c8 39 d8 72 f6 5b 5d c3 55 89 e5 53 69 c0 1c 43 00 00 64 8b
> [ 880.900092] Kernel panic - not syncing: Aiee, killing interrupt handler!
> [ 880.906791] WARNING: at /home/devel/linux-mm/arch/i386/kernel/smp.c:474 native_smp_send_reschedule()
> [ 880.915892] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> [ 880.921043] [<c0405ff3>] show_trace+0x12/0x14
> [ 880.925504] [<c0406128>] dump_stack+0x16/0x18
> [ 880.929964] [<c0416093>] native_smp_send_reschedule+0x8b/0x98
> [ 880.935808] [<c04203ea>] resched_task+0x81/0x83
> [ 880.940440] [<c04203fa>] check_preempt_curr_idle+0xe/0x10
> [ 880.945939] [<c0422364>] try_to_wake_up+0x2ca/0x3ec
> [ 880.950916] [<c04224ae>] wake_up_process+0xf/0x11
> [ 880.955714] [<c04403e5>] hrtimer_wakeup+0x18/0x1c
> [ 880.960513] [<c044100e>] hrtimer_interrupt+0x15e/0x1e8
> [ 880.965751] [<c0418292>] smp_apic_timer_interrupt+0x57/0x88
> [ 880.971420] [<c0404e0f>] apic_timer_interrupt+0x33/0x38
> [ 880.976736] [<c042d27b>] do_exit+0x639/0xa04
> [ 880.981103] [<c04061e8>] die_nmi+0xbe/0xd7
> [ 880.985302] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
> [ 880.990533] [<c0406582>] do_nmi+0x8b/0x284
> [ 880.994735] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
> [ 880.999800] [<c0528fdd>] __delay+0x9/0xb
> [ 881.003827] [<c05375ac>] _raw_spin_lock+0xd8/0x18a
> [ 881.008712] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
> [ 881.013865] [<c05259db>] prop_norm_single+0x34/0x8a
> [ 881.018842] [<c0473576>] set_page_dirty+0xa1/0x13b
> [ 881.023728] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
> [ 881.028793] [<c0482d8f>] try_to_unmap+0x8f/0x40d
> [ 881.033511] [<c04776fd>] shrink_page_list+0x278/0x750
> [ 881.038664] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
> [ 881.044075] [<c0477faa>] shrink_zone+0xad/0x10b
> [ 881.048709] [<c047866e>] try_to_free_pages+0x178/0x274
> [ 881.053947] [<c0472a36>] __alloc_pages+0x169/0x431
> [ 881.058838] [<c047501d>] __do_page_cache_readahead+0x141/0x207
> [ 881.064760] [<c047545c>] do_page_cache_readahead+0x48/0x5c
> [ 881.070344] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
> [ 881.075229] [<c047b5c9>] __do_fault+0xb6/0x42d
> [ 881.079774] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
> [ 881.084832] [<c041cd7b>] do_page_fault+0x334/0x5f9
> [ 881.089724] [<c069fe72>] error_code+0x72/0x78
> [ 881.094177] =======================
> [ 881.097748] WARNING: at /home/devel/linux-mm/arch/i386/kernel/smp.c:209 send_IPI_mask_bitmask()
> [ 881.106417] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> [ 881.111569] [<c0405ff3>] show_trace+0x12/0x14
> [ 881.116029] [<c0406128>] dump_stack+0x16/0x18
> [ 881.120489] [<c041589a>] send_IPI_mask_bitmask+0xf0/0xf5
> [ 881.125900] [<c0416063>] native_smp_send_reschedule+0x5b/0x98
> [ 881.131743] [<c04203ea>] resched_task+0x81/0x83
> [ 881.136367] [<c04203fa>] check_preempt_curr_idle+0xe/0x10
> [ 881.141857] [<c0422364>] try_to_wake_up+0x2ca/0x3ec
> [ 881.146827] [<c04224ae>] wake_up_process+0xf/0x11
> [ 881.151625] [<c04403e5>] hrtimer_wakeup+0x18/0x1c
> [ 881.156422] [<c044100e>] hrtimer_interrupt+0x15e/0x1e8
> [ 881.161653] [<c0418292>] smp_apic_timer_interrupt+0x57/0x88
> [ 881.167322] [<c0404e0f>] apic_timer_interrupt+0x33/0x38
> [ 881.172639] [<c042d27b>] do_exit+0x639/0xa04
> [ 881.177004] [<c04061e8>] die_nmi+0xbe/0xd7
> [ 881.181197] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
> [ 881.186434] [<c0406582>] do_nmi+0x8b/0x284
> [ 881.190627] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
> [ 881.195685] [<c0528fdd>] __delay+0x9/0xb
> [ 881.199713] [<c05375ac>] _raw_spin_lock+0xd8/0x18a
> [ 881.204605] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
> [ 881.209748] [<c05259db>] prop_norm_single+0x34/0x8a
> [ 881.214718] [<c0473576>] set_page_dirty+0xa1/0x13b
> [ 881.219603] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
> [ 881.224668] [<c0482d8f>] try_to_unmap+0x8f/0x40d
> [ 881.229389] [<c04776fd>] shrink_page_list+0x278/0x750
> [ 881.234539] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
> [ 881.239951] [<c0477faa>] shrink_zone+0xad/0x10b
> [ 881.244584] [<c047866e>] try_to_free_pages+0x178/0x274
> [ 881.249822] [<c0472a36>] __alloc_pages+0x169/0x431
> [ 881.254707] [<c047501d>] __do_page_cache_readahead+0x141/0x207
> [ 881.260637] [<c047545c>] do_page_cache_readahead+0x48/0x5c
> [ 881.266221] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
> [ 881.271113] [<c047b5c9>] __do_fault+0xb6/0x42d
> [ 881.275652] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
> [ 881.280716] [<c041cd7b>] do_page_fault+0x334/0x5f9
> [ 881.285601] [<c069fe72>] error_code+0x72/0x78
> [ 881.290061] =======================
>
> http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/console.log
> http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config

This might be related. The kernel is tainted because I hit
kernel BUG at /home/devel/linux-mm/mm/swap_state.c:78!

[ 2599.530633] BUG: NMI Watchdog detected LOCKUP on CPU0, eip c053759e, registers:
[ 2599.537953] Modules linked in: loop isofs nls_base zlib_inflate autofs4 af_packet nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink ipt_REJECT iptable_filter ip_tables xt_tcpudp ip6t_REJECT ip6table_filter ip6_tables x_tables firmware_class binfmt_misc fan ipv6 nvram snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd soundcore snd_page_alloc evdev i2c_i801 intel_agp agpgart rtc
[ 2599.583078] CPU: 0
[ 2599.583079] EIP: 0060:[<c053759e>] Tainted: G D VLI
[ 2599.583081] EFLAGS: 00200046 (2.6.23-rc2-mm1 #3)
[ 2599.595933] EIP is at _raw_spin_lock+0xca/0x18a
[ 2599.600451] eax: 00000000 ebx: 02821a83 ecx: 047ccfb8 edx: a45a5513
[ 2599.607217] esi: 00000000 edi: c7688ccc ebp: e9c5ce68 esp: e9c5ce38
[ 2599.613986] ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
[ 2599.619805] Process fsx-linux (pid: 15528, ti=e9c5c000 task=c7688000 task.ti=e9c5c000)
[ 2599.627522] Stack: 00200046 00000000 e9c5ce68 00200046 00000000 a6d84f90 00000001 a6d84f90
[ 2599.636021] 00000000 c7688ce0 c7688ccc 00200082 e9c5ce88 c069f76f 00000000 00000002
[ 2599.644526] c05259db c7688cc0 00008000 c0bbdf84 e9c5cea8 c05259db c7688ccc 00008000
[ 2599.653031] Call Trace:
[ 2599.655670] [<c040536b>] show_trace_log_lvl+0x1a/0x30
[ 2599.660821] [<c040542a>] show_stack_log_lvl+0xa9/0xd5
[ 2599.665972] [<c0405670>] show_registers+0x21a/0x3ac
[ 2599.670952] [<c04061ae>] die_nmi+0x84/0xd7
[ 2599.675161] [<c041859f>] nmi_watchdog_tick+0x14d/0x168
[ 2599.680408] [<c0406582>] do_nmi+0x8b/0x284
[ 2599.684637] [<c069ff1b>] nmi_stack_correct+0x26/0x2b
[ 2599.689729] [<c069f76f>] _spin_lock_irqsave+0x5d/0x6e
[ 2599.694915] [<c05259db>] prop_norm_single+0x34/0x8a
[ 2599.699916] [<c0473576>] set_page_dirty+0xa1/0x13b
[ 2599.704825] [<c0474909>] set_page_dirty_balance+0xc/0x75
[ 2599.710249] [<c047b8c8>] __do_fault+0x3b5/0x42d
[ 2599.714892] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
[ 2599.719957] [<c041cd7b>] do_page_fault+0x334/0x5f9
[ 2599.724851] [<c069fe72>] error_code+0x72/0x78
[ 2599.729310] =======================
[ 2599.732879] INFO: lockdep is turned off.
[ 2599.736796] Code: e4 89 45 ec c7 45 f0 00 00 00 00 c7 45 e8 01 00 00 00 8b 75 e4 85 f6 74 34 31 c0 86 07 84 c0 7f 7d 31 db 31 f6 eb 08 31 c0 86 07 <84> c0 7f 6f b8 01 00 00 00 e8 28 1a ff ff 83 c3 01 83 d6 00 8b
[ 2599.757294] Kernel panic - not syncing: Aiee, killing interrupt handler!

http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/console2.log
http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config

Regards,
Michal

--
LOG
http://www.stardust.webpages.pl/log/

2007-08-09 16:33:29

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On Thu, 09 Aug 2007 17:36:57 +0200 Michal Piotrowski <[email protected]> wrote:

> Andrew Morton pisze:
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
> >
>
> bash_shared_mapping triggered this
>
> [ 874.714700] INFO: trying to register non-static key.
> [ 874.719659] the code is fine but needs lockdep annotation.
> [ 874.725133] turning off the locking correctness validator.
> [ 874.730606] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> [ 874.735759] [<c0405ff3>] show_trace+0x12/0x14
> [ 874.740218] [<c0406128>] dump_stack+0x16/0x18
> [ 874.744679] [<c044b936>] __lock_acquire+0x598/0x125c
> [ 874.749745] [<c044c6a1>] lock_acquire+0xa7/0xc1
> [ 874.754378] [<c069f753>] _spin_lock_irqsave+0x41/0x6e
> [ 874.759529] [<c05259db>] prop_norm_single+0x34/0x8a
> [ 874.764508] [<c0473576>] set_page_dirty+0xa1/0x13b
> [ 874.769402] [<c0482bd1>] try_to_unmap_one+0xb8/0x1e7
> [ 874.774467] [<c0482d8f>] try_to_unmap+0x8f/0x40d
> [ 874.779187] [<c04776fd>] shrink_page_list+0x278/0x750
> [ 874.784339] [<c0477ccb>] shrink_inactive_list+0xf6/0x328
> [ 874.789749] [<c0477faa>] shrink_zone+0xad/0x10b
> [ 874.794383] [<c047866e>] try_to_free_pages+0x178/0x274
> [ 874.799620] [<c0472a36>] __alloc_pages+0x169/0x431
> [ 874.804514] [<c047501d>] __do_page_cache_readahead+0x141/0x207
> [ 874.810443] [<c047545c>] do_page_cache_readahead+0x48/0x5c
> [ 874.816027] [<c046f3a3>] filemap_fault+0x2dd/0x4cf
> [ 874.820921] [<c047b5c9>] __do_fault+0xb6/0x42d
> [ 874.825466] [<c047d0d5>] handle_mm_fault+0x1b6/0x750
> [ 874.830533] [<c041cd7b>] do_page_fault+0x334/0x5f9
> [ 874.835425] [<c069fe72>] error_code+0x72/0x78
> [ 874.839886] =======================

I'd assume that the lib/proportions code went and passed a garbage pointer into
spin_lock_irqsave(). Or maybe it has a correct pointer but didn't initialise the
spinlock.

> [ 880.621883] BUG: NMI Watchdog detected LOCKUP on CPU1, eip c0529022, registers:
> [ 880.629200] Modules linked in: ext2 loop autofs4 af_packet nf_conntrack_netbios_ns nf_conntrack_ipv4 xt_state nf_conntrack nfnetlink ipt_REJECT iptable_filter ip_tables xt_tcpudp ip6t_REJECT ip6table_filter ip6_tables x_tables firmware_class binfmt_misc fan ipv6 nvram snd_intel8x0 snd_ac97_codec ac97_bus snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss snd_pcm snd_timer evdev snd soundcore i2c_i801 snd_page_alloc intel_agp agpgart rtc
> [ 880.672397] CPU: 1

This will be a consequence of that.

2007-08-09 17:05:46

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On Thu, 09 Aug 2007 18:19:30 +0200 Michal Piotrowski <[email protected]> wrote:

> This might be related. The kernel is tainted because I hit
> kernel BUG at /home/devel/linux-mm/mm/swap_state.c:78!

umm, possibly. If we went BUG while holding a spinlock then sure,
a future lockup is pretty much inevitable. But the lockdep
uninitialised-lock complaint is a bit of a surprise.

Can you please retest with Hugh's fix applied?

2007-08-09 17:06:47

by Kok, Auke

[permalink] [raw]
Subject: Re: [E1000-devel] 2.6.23-rc2-mm1: e1000e global symbols must be renamed

Adrian Bunk wrote:
> On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
>> ...
>> - There is a new e1000 driver in git-netdev-all, called e1000e. I'm sure
>> the developers would like it tested. Please cc [email protected] on
>> any reports.
>> ...
>> Changes since 2.6.23-rc2-mm1:
>> ...
>> git-netdev-all.patch
>> ...
>> git trees
>> ...
>
> <-- snip -->
>
> ...
> LD drivers/net/built-in.o
> drivers/net/e1000e/built-in.o: In function `e1000_read_mac_addr':
> (.text+0x3470): multiple definition of `e1000_read_mac_addr'
> drivers/net/e1000/built-in.o:(.text+0xb6cc): first defined here
> drivers/net/e1000e/built-in.o: In function `e1000_set_ethtool_ops':
> (.text+0x594d): multiple definition of `e1000_set_ethtool_ops'
> drivers/net/e1000/built-in.o:(.text+0xc97a): first defined here
> ...
> make[3]: *** [drivers/net/built-in.o] Error 1

ack, I'll step on that and make it go away :)

Auke

2007-08-09 17:18:25

by Andy Whitcroft

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1 -- spinlock bad magic

On Thu, Aug 09, 2007 at 01:53:06PM +0100, Andy Whitcroft wrote:
> Seeing spinlock bad magic BUG's from x86 and x86_64 test boxes,
> fsx-linux seems to be tickling it. Adding Peter as prop_norm_single
> seems to be his:

Talking to Peter on IRC he suggested I back out the patch below and
retest on these machines:

mm-dirty-balancing-for-tasks

One machine seems to have hung elsewhere (probabally another bug sigh),
and one has run the fsx-linux tests successfully. So this patch does
seem suspect. I will report back on the other tests when they complete.

-apw

2007-08-09 17:19:20

by Andy Whitcroft

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1 -- PPC G5 kernel compile failure (patch)

On Thu, Aug 09, 2007 at 04:20:06PM +0200, Krzysztof Helt wrote:
> On Thu, 9 Aug 2007 14:04:49 +0100
> Andy Whitcroft <[email protected]> wrote:
>
> > Seeing the following compile error on a G5 mac:
> >
> > drivers/video/tdfxfb.c: In function 'tdfxfb_setup':
> > drivers/video/tdfxfb.c:1341: error: 'opt' undeclared (first use in this
> > function)
> > drivers/video/tdfxfb.c:1341: error: (Each undeclared identifier is
> > reported only once
> > drivers/video/tdfxfb.c:1341: error: for each function it appears in.)
> >
> > This seems to be the following fragment from tdfxfb-hardware-cursor:
> >
> > + } else if (!strcmp(this_opt, "hwcursor")) {
> > + hwcursor = simple_strtoul(opt + 9, NULL, 0);
> >
> > I guess the nieve fix would be s/opt/this_opt, but I am also
> > suspicious of the +9 here as hwcursor is only 8 long? Now this
> > seems to take a numeric value and I assume that is via hwcursor=N,
> > if so then the +9 would make sense _if_ the strcmp was against
> > "hwcursor=".
> >
>
> The patch below fixes all issues you have pointed out. It also fixes
> the description of the nomtrr option.

Will push this through our tests and let you know.

-apw

2007-08-09 18:39:23

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On Thu, 09 Aug 2007 15:23:41 +0200
Michal Piotrowski <[email protected]> wrote:

> Andrew Morton pisze:
> > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
>
> I am experiencing some problems with 8139too
>
> [ 28.847004] 8139too 0000:02:0d.0: region #0 not a PIO resource, aborting
> [ 28.854722] Bad IO access at port 0 ()
> [ 28.859459] WARNING: at /home/devel/linux-mm/lib/iomap.c:44 bad_io_access()
> [ 28.867415] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> [ 28.873568] [<c0405ff3>] show_trace+0x12/0x14
> [ 28.879015] [<c0406128>] dump_stack+0x16/0x18
> [ 28.884451] [<c052a904>] bad_io_access+0x58/0x5a
> [ 28.890129] [<c052a927>] pci_iounmap+0x21/0x2b
> [ 28.895635] [<c05b3746>] __rtl8139_cleanup_dev+0x75/0xc6
> [ 28.902037] [<c05b42c4>] rtl8139_init_one+0x59b/0xa9f
> [ 28.908170] [<c053e344>] pci_device_probe+0x44/0x5f
> [ 28.914116] [<c05a7cd0>] driver_probe_device+0xa7/0x19a
> [ 28.920402] [<c05a7f1a>] __driver_attach+0xa6/0xa8
> [ 28.926236] [<c05a71d3>] bus_for_each_dev+0x43/0x61
> [ 28.932139] [<c05a7b51>] driver_attach+0x19/0x1b
> [ 28.937776] [<c05a7504>] bus_add_driver+0x7e/0x1a5
> [ 28.943567] [<c05a80cf>] driver_register+0x45/0x75
> [ 28.949358] [<c053e4a5>] __pci_register_driver+0x56/0x84
> [ 28.955678] [<c0819118>] rtl8139_init_module+0x14/0x1c
> [ 28.961832] [<c0800521>] kernel_init+0x132/0x306
> [ 28.967451] [<c0404fb3>] kernel_thread_helper+0x7/0x14
> [ 28.973588] =======================
> [ 28.978151] initcall 0xc0819104: rtl8139_init_module+0x0/0x1c() returned 0.
> [ 28.986114] initcall 0xc0819104 ran for 161 msecs: rtl8139_init_module+0x0/0x1c()
>
> http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-dmesg
> http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config
>

Please try reverting 8139too-force-media-setting-fix.patch, then
applying this:


From: Andrew Morton <[email protected]>

Revert git-netdev-all's 9ee6b32a47b9abc565466a9c3b127a5246b452e5

Cc: Michal Piotrowski <[email protected]>
Cc: Jeff Garzik <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

drivers/net/8139too.c | 50 +++++++++++++++++++++++-----------------
1 file changed, 29 insertions(+), 21 deletions(-)

diff -puN drivers/net/8139too.c~revert-8139too-clean-up-i-o-remapping drivers/net/8139too.c
--- a/drivers/net/8139too.c~revert-8139too-clean-up-i-o-remapping
+++ a/drivers/net/8139too.c
@@ -121,15 +121,8 @@


/* enable PIO instead of MMIO, if CONFIG_8139TOO_PIO is selected */
-enum rtl_bar_map_info {
- rtl_pio_bar = 0, /* PCI BAR #0: PIO */
- rtl_mmio_bar = 1, /* PCI BAR #1: MMIO */
-};
-
#ifdef CONFIG_8139TOO_PIO
-static int use_pio = 1;
-#else
-static int use_pio;
+#define USE_IO_OPS 1
#endif

/* define to 1, 2 or 3 to enable copious debugging info */
@@ -620,17 +613,14 @@ MODULE_DESCRIPTION ("RealTek RTL-8139 Fa
MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_VERSION);

-module_param(multicast_filter_limit, int, 0444);
+module_param(multicast_filter_limit, int, 0);
module_param_array(media, int, NULL, 0);
module_param_array(full_duplex, int, NULL, 0);
-module_param(debug, int, 0444);
-module_param(use_pio, int, 0444);
-
+module_param(debug, int, 0);
+MODULE_PARM_DESC (debug, "8139too bitmapped message enable number");
MODULE_PARM_DESC (multicast_filter_limit, "8139too maximum number of filtered multicast addresses");
MODULE_PARM_DESC (media, "8139too: Bits 4+9: force full duplex, bit 5: 100Mbps");
MODULE_PARM_DESC (full_duplex, "8139too: Force full duplex for board(s) (1)");
-MODULE_PARM_DESC (debug, "8139too bitmapped message enable number");
-MODULE_PARM_DESC (use_pio, "Non-zero to enable PIO (rather than MMIO) register mapping");

static int read_eeprom (void __iomem *ioaddr, int location, int addr_len);
static int rtl8139_open (struct net_device *dev);
@@ -718,7 +708,13 @@ static void __rtl8139_cleanup_dev (struc
assert (tp->pci_dev != NULL);
pdev = tp->pci_dev;

- pci_iounmap (pdev, tp->mmio_addr);
+#ifdef USE_IO_OPS
+ if (tp->mmio_addr)
+ ioport_unmap (tp->mmio_addr);
+#else
+ if (tp->mmio_addr)
+ pci_iounmap (pdev, tp->mmio_addr);
+#endif /* USE_IO_OPS */

/* it's ok to call this even if we have no regions to free */
pci_release_regions (pdev);
@@ -794,32 +790,32 @@ static int __devinit rtl8139_init_board
DPRINTK("PIO region size == 0x%02X\n", pio_len);
DPRINTK("MMIO region size == 0x%02lX\n", mmio_len);

+#ifdef USE_IO_OPS
/* make sure PCI base addr 0 is PIO */
if (!(pio_flags & IORESOURCE_IO)) {
dev_err(&pdev->dev, "region #0 not a PIO resource, aborting\n");
rc = -ENODEV;
goto err_out;
}
-
/* check for weird/broken PCI region reporting */
if (pio_len < RTL_MIN_IO_SIZE) {
dev_err(&pdev->dev, "Invalid PCI I/O region size(s), aborting\n");
rc = -ENODEV;
goto err_out;
}
-
+#else
/* make sure PCI base addr 1 is MMIO */
if (!(mmio_flags & IORESOURCE_MEM)) {
dev_err(&pdev->dev, "region #1 not an MMIO resource, aborting\n");
rc = -ENODEV;
goto err_out;
}
-
if (mmio_len < RTL_MIN_IO_SIZE) {
dev_err(&pdev->dev, "Invalid PCI mem region size(s), aborting\n");
rc = -ENODEV;
goto err_out;
}
+#endif

rc = pci_request_regions (pdev, DRV_NAME);
if (rc)
@@ -829,16 +825,28 @@ static int __devinit rtl8139_init_board
/* enable PCI bus-mastering */
pci_set_master (pdev);

- /* iomap MMIO region */
- ioaddr = pci_iomap(pdev, use_pio ? rtl_pio_bar : rtl_mmio_bar, 0);
+#ifdef USE_IO_OPS
+ ioaddr = ioport_map(pio_start, pio_len);
+ if (!ioaddr) {
+ dev_err(&pdev->dev, "cannot map PIO, aborting\n");
+ rc = -EIO;
+ goto err_out;
+ }
+ dev->base_addr = pio_start;
+ tp->mmio_addr = ioaddr;
+ tp->regs_len = pio_len;
+#else
+ /* ioremap MMIO region */
+ ioaddr = pci_iomap(pdev, 1, 0);
if (ioaddr == NULL) {
- dev_err(&pdev->dev, "cannot map I/O regions, aborting\n");
+ dev_err(&pdev->dev, "cannot remap MMIO, aborting\n");
rc = -EIO;
goto err_out;
}
dev->base_addr = (long) ioaddr;
tp->mmio_addr = ioaddr;
tp->regs_len = mmio_len;
+#endif /* USE_IO_OPS */

/* Bring old chips out of low-power mode. */
RTL_W8 (HltClk, 'R');
_

2007-08-09 19:04:49

by Michal Piotrowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On 09/08/07, Andrew Morton <[email protected]> wrote:
> On Thu, 09 Aug 2007 15:23:41 +0200
> Michal Piotrowski <[email protected]> wrote:
>
> > Andrew Morton pisze:
> > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
> >
> > I am experiencing some problems with 8139too
> >
> > [ 28.847004] 8139too 0000:02:0d.0: region #0 not a PIO resource, aborting
> > [ 28.854722] Bad IO access at port 0 ()
> > [ 28.859459] WARNING: at /home/devel/linux-mm/lib/iomap.c:44 bad_io_access()
> > [ 28.867415] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> > [ 28.873568] [<c0405ff3>] show_trace+0x12/0x14
> > [ 28.879015] [<c0406128>] dump_stack+0x16/0x18
> > [ 28.884451] [<c052a904>] bad_io_access+0x58/0x5a
> > [ 28.890129] [<c052a927>] pci_iounmap+0x21/0x2b
> > [ 28.895635] [<c05b3746>] __rtl8139_cleanup_dev+0x75/0xc6
> > [ 28.902037] [<c05b42c4>] rtl8139_init_one+0x59b/0xa9f
> > [ 28.908170] [<c053e344>] pci_device_probe+0x44/0x5f
> > [ 28.914116] [<c05a7cd0>] driver_probe_device+0xa7/0x19a
> > [ 28.920402] [<c05a7f1a>] __driver_attach+0xa6/0xa8
> > [ 28.926236] [<c05a71d3>] bus_for_each_dev+0x43/0x61
> > [ 28.932139] [<c05a7b51>] driver_attach+0x19/0x1b
> > [ 28.937776] [<c05a7504>] bus_add_driver+0x7e/0x1a5
> > [ 28.943567] [<c05a80cf>] driver_register+0x45/0x75
> > [ 28.949358] [<c053e4a5>] __pci_register_driver+0x56/0x84
> > [ 28.955678] [<c0819118>] rtl8139_init_module+0x14/0x1c
> > [ 28.961832] [<c0800521>] kernel_init+0x132/0x306
> > [ 28.967451] [<c0404fb3>] kernel_thread_helper+0x7/0x14
> > [ 28.973588] =======================
> > [ 28.978151] initcall 0xc0819104: rtl8139_init_module+0x0/0x1c() returned 0.
> > [ 28.986114] initcall 0xc0819104 ran for 161 msecs: rtl8139_init_module+0x0/0x1c()
> >
> > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-dmesg
> > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config
> >
>
> Please try reverting 8139too-force-media-setting-fix.patch, then
> applying this:
>
>

Problem fixed, thanks!

Regards,
Michal

--
LOG
http://www.stardust.webpages.pl/log/

2007-08-09 19:06:29

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: [linux-usb-devel] [usb-storage] schedule_timeout: wrong timeout value c1a95554

On Thursday, 9 August 2007 17:20, Mariusz Kozlowski wrote:
> > > > Happens every time I reattach usb pen drive.
> > > >
> > > > usb 1-2: new high speed USB device using ehci_hcd and address 10
> > > > usb 1-2: configuration #1 chosen from 1 choice
> > > > scsi6 : SCSI emulation for USB Mass Storage devices
> > > > usb 1-2: new device found, idVendor=13fe, idProduct=1a00
> > > > usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0
> > > > usb 1-2: Product: GEIL USB DISK
> > > > usb 1-2: Manufacturer:
> > > > usb-storage: device found at 10
> > > > usb-storage: waiting for device to settle before scanning
> > > > schedule_timeout: wrong timeout value c1a95554
> > > > [<c010456a>] show_trace_log_lvl+0x1a/0x30
> > > > [<c010508d>] show_trace+0x12/0x14
> > > > [<c01051e0>] dump_stack+0x15/0x17
> > > > [<c04174d1>] schedule_timeout+0x8c/0xa2
> > > > [<c032aeec>] usb_stor_scan_thread+0x100/0x160
> > > > [<c0127f2e>] kthread+0x36/0x58
> > > > [<c0104233>] kernel_thread_helper+0x7/0x14
> > > > =======================
> > > > scsi 6:0:0:0: Direct-Access GEIL USB DISK >2.0 PQ: 0 ANSI: 0 CCS
> > > > sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> > > > sd 6:0:0:0: [sda] Write Protect is off
> > > > sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> > > > sd 6:0:0:0: [sda] Assuming drive cache: write through
> > > > sd 6:0:0:0: [sda] 1007616 512-byte hardware sectors (516 MB)
> > > > sd 6:0:0:0: [sda] Write Protect is off
> > > > sd 6:0:0:0: [sda] Mode Sense: 23 00 00 00
> > > > sd 6:0:0:0: [sda] Assuming drive cache: write through
> > > > sda: sda1
> > > > sd 6:0:0:0: [sda] Attached SCSI removable disk
> > > > sd 6:0:0:0: Attached scsi generic sg0 type 0
> > > > usb-storage: device scan complete
> > >
> > > This is a known problem. See
> > >
> > > http://marc.info/?l=linux-kernel&m=118641424414399&w=2
> > >
> > > Rafael, has this been fixed yet?
> >
> > No, I wasn't aware of it.
> >
> > I think that something like the appended patch is necessary.
> >
> > Mariusz, please see if that helps.
>
> Yes - this patch fixes the bug.

OK, thanks for the confirmation.

Here it goes again with a changelog etc.

---
From: Rafael J. Wysocki <[email protected]>

Fix a bug in freezer-introduce-freezer-firendly-waiting-macros.patch which
uses a wrong variable name in wait_event_freezable() and
wait_event_freezable_timeout() (this name is also used in
wait_event_interruptible() and wait_event_interruptible_timeout() which are
macros and the names clash).

Signed-off-by: Rafael J. Wysocki <[email protected]>
---
include/linux/freezer.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

Index: linux-2.6.23-rc2/include/linux/freezer.h
===================================================================
--- linux-2.6.23-rc2.orig/include/linux/freezer.h
+++ linux-2.6.23-rc2/include/linux/freezer.h
@@ -134,28 +134,28 @@ static inline void set_freezable(void)

#define wait_event_freezable(wq, condition) \
({ \
- int __ret; \
+ int __retval; \
do { \
- __ret = wait_event_interruptible(wq, \
+ __retval = wait_event_interruptible(wq, \
(condition) || freezing(current)); \
- if (__ret && !freezing(current)) \
+ if (__retval && !freezing(current)) \
break; \
else if (!(condition)) \
- __ret = -ERESTARTSYS; \
+ __retval = -ERESTARTSYS; \
} while (try_to_freeze()); \
- __ret; \
+ __retval; \
})


#define wait_event_freezable_timeout(wq, condition, timeout) \
({ \
- long __ret = timeout; \
+ long __retval = timeout; \
do { \
- __ret = wait_event_interruptible_timeout(wq, \
+ __retval = wait_event_interruptible_timeout(wq, \
(condition) || freezing(current), \
- __ret); \
+ __retval); \
} while (try_to_freeze()); \
- __ret; \
+ __retval; \
})
#else /* !CONFIG_PM_SLEEP */
static inline int frozen(struct task_struct *p) { return 0; }

2007-08-09 19:12:25

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On Thu, 9 Aug 2007 21:04:35 +0200
"Michal Piotrowski" <[email protected]> wrote:

> On 09/08/07, Andrew Morton <[email protected]> wrote:
> > On Thu, 09 Aug 2007 15:23:41 +0200
> > Michal Piotrowski <[email protected]> wrote:
> >
> > > Andrew Morton pisze:
> > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc2/2.6.23-rc2-mm1/
> > >
> > > I am experiencing some problems with 8139too
> > >
> > > [ 28.847004] 8139too 0000:02:0d.0: region #0 not a PIO resource, aborting
> > > [ 28.854722] Bad IO access at port 0 ()
> > > [ 28.859459] WARNING: at /home/devel/linux-mm/lib/iomap.c:44 bad_io_access()
> > > [ 28.867415] [<c040536b>] show_trace_log_lvl+0x1a/0x30
> > > [ 28.873568] [<c0405ff3>] show_trace+0x12/0x14
> > > [ 28.879015] [<c0406128>] dump_stack+0x16/0x18
> > > [ 28.884451] [<c052a904>] bad_io_access+0x58/0x5a
> > > [ 28.890129] [<c052a927>] pci_iounmap+0x21/0x2b
> > > [ 28.895635] [<c05b3746>] __rtl8139_cleanup_dev+0x75/0xc6
> > > [ 28.902037] [<c05b42c4>] rtl8139_init_one+0x59b/0xa9f
> > > [ 28.908170] [<c053e344>] pci_device_probe+0x44/0x5f
> > > [ 28.914116] [<c05a7cd0>] driver_probe_device+0xa7/0x19a
> > > [ 28.920402] [<c05a7f1a>] __driver_attach+0xa6/0xa8
> > > [ 28.926236] [<c05a71d3>] bus_for_each_dev+0x43/0x61
> > > [ 28.932139] [<c05a7b51>] driver_attach+0x19/0x1b
> > > [ 28.937776] [<c05a7504>] bus_add_driver+0x7e/0x1a5
> > > [ 28.943567] [<c05a80cf>] driver_register+0x45/0x75
> > > [ 28.949358] [<c053e4a5>] __pci_register_driver+0x56/0x84
> > > [ 28.955678] [<c0819118>] rtl8139_init_module+0x14/0x1c
> > > [ 28.961832] [<c0800521>] kernel_init+0x132/0x306
> > > [ 28.967451] [<c0404fb3>] kernel_thread_helper+0x7/0x14
> > > [ 28.973588] =======================
> > > [ 28.978151] initcall 0xc0819104: rtl8139_init_module+0x0/0x1c() returned 0.
> > > [ 28.986114] initcall 0xc0819104 ran for 161 msecs: rtl8139_init_module+0x0/0x1c()
> > >
> > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-dmesg
> > > http://www.stardust.webpages.pl/files/tbf/bitis-gabonica/2.6.23-rc2-mm1/mm-config
> > >
> >
> > Please try reverting 8139too-force-media-setting-fix.patch, then
> > applying this:
> >
> >
>
> Problem fixed, thanks!
>

umm, I was hoping to find out which of those two patches was the cuplrit.
Almost surely it was 9ee6b32a47b9abc565466a9c3b127a5246b452e5?

2007-08-09 19:28:32

by Jeff Garzik

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

Andrew Morton wrote:
> umm, I was hoping to find out which of those two patches was the cuplrit.
> Almost surely it was 9ee6b32a47b9abc565466a9c3b127a5246b452e5?


Highly likely it is my patch in #ALL.

Jeff


2007-08-09 20:18:34

by Hugh Dickins

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: silly df numbers on 32bit extN

On Thu, 9 Aug 2007, Andrew Morton wrote:
>
> +lib-make-percpu_counter_add-take-s64.patch

lib-make-percpu_counter_add-take-s64.patch looks sensible, but it doesn't
actually work on 32-bit architectures: several users of percpu_counter_add
are passing -unsignedlong as the amount, which is not promoted to s64 in
the desired way, so "df" on extN filesystems is showing silly numbers.

The hack below (say long instead of s64 or s32) may be good as hotfix for
2.6.23-rc2-mm1, but is probably the worst of solutions. Perhaps take-s64
should be reverted, perhaps there should be a percpu_counter_sub and the
filesystems use that instead of saying -unsignedlong, perhaps they should
use a cast or a long or an s64. I don't know, but here's this for now...

Signed-off-by: Hugh Dickins <[email protected]>
---

include/linux/percpu_counter.h | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)

--- 2.6.23-rc2-mm1/include/linux/percpu_counter.h 2007-08-09 13:15:35.000000000 +0100
+++ linux/include/linux/percpu_counter.h 2007-08-09 20:34:23.000000000 +0100
@@ -37,7 +37,7 @@ void percpu_counter_set(struct percpu_co
void __percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch);
s64 __percpu_counter_sum(struct percpu_counter *fbc);

-static inline void percpu_counter_add(struct percpu_counter *fbc, s64 amount)
+static inline void percpu_counter_add(struct percpu_counter *fbc, long amount)
{
__percpu_counter_add(fbc, amount, FBC_BATCH);
}
@@ -96,11 +96,16 @@ static inline void percpu_counter_set(st
fbc->count = amount;
}

-#define __percpu_counter_add(fbc, amount, batch) \
- percpu_counter_add(fbc, amount)
+static inline void
+__percpu_counter_add(struct percpu_counter *fbc, s64 amount, s32 batch)
+{
+ preempt_disable();
+ fbc->count += amount;
+ preempt_enable();
+}

static inline void
-percpu_counter_add(struct percpu_counter *fbc, s64 amount)
+percpu_counter_add(struct percpu_counter *fbc, long amount)
{
preempt_disable();
fbc->count += amount;

2007-08-09 20:30:44

by Jesper Juhl

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On 09/08/07, Andrew Morton <[email protected]> wrote:
...
> - If there's a patch in here which you think should be in 2.6.23 but I do
> not have it designated in that way, please be sure to let me know.
...

Well, if you want to clean up your patch queue a bit then I have a few
suggestions for some patches of mine that are currently in -mm that
you could push to Linus. They are not really important, so if you'd
rather keep them around in -mm until the next merge window then that's
fine by me, but they should be safe to push and would get cut down on
the number of patches you track a bit :-)


This fix was already merged for the ati side of things, this is an
identical fix for the amd side of things - I see no reason why we
shouldn't get this fix into 2.6.23 as well :

fix-use-after-free--double-free-bug-in-amd_create_gatt_pages--amd_free_gatt_pages.patch


This patch only changes the output of the script when run without
arguments, so as far as building the kernel goes it can't cause any
regressions and it's a clear improvement over what we currently have,
so might as well get it out of your queue and upstream :

improve-scripts-gcc-versionsh-output-a-bit-when-called-without-args.patch


When people use scripts/ver_linux in bugreports we want correct info -
currently we often print wrong info for the binutils version. This
patch doesn't hurt existing working scenarios but does fix a few
broken ones, might as well get that merged, it's a clear fix :

scripts-ver_linux-correct-printing-of-binutils-version.patch


These should all be trivially correct since they just remove duplicate
#include's of the same header into a .c file outside any #ifdef and
similar magic, so they should be quite safe to push. Also, I haven't
seen anything but ACK's in response to them (when I've seen a
response), and a few of my similar patches have already been merged :

powerpc-clean-out-a-bunch-of-duplicate-includes.patch
clean-up-duplicate-includes-in-drivers-input.patch
clean-up-duplicate-includes-in-drivers-net.patch
clean-up-duplicate-includes-in-drivers-atm.patch
clean-up-duplicate-includes-in-net-atm.patch
clean-up-duplicate-includes-in-net-ipv4.patch
clean-up-duplicate-includes-in-net-ipv6.patch
clean-up-duplicate-includes-in-net-sched.patch
clean-up-duplicate-includes-in-net-sunrpc.patch
clean-up-duplicate-includes-in-net-tipc.patch
clean-up-duplicate-includes-in-net-xfrm.patch
clean-up-duplicate-includes-in-include-linux-nfs_fsh.patch
clean-up-duplicate-includes-in-fs-ntfs.patch
clean-up-duplicate-includes-in-drivers-scsi.patch
clean-up-duplicate-includes-in-drivers-block.patch
clean-up-duplicate-includes-in-arch-i386-xen.patch
clean-up-duplicate-includes-in-include-linux-memory_hotplugh.patch
clean-up-duplicate-includes-in-mm.patch
clean-up-duplicate-includes-in-drivers-char.patch
clean-up-duplicate-includes-in-drivers-w1.patch
clean-up-duplicate-includes-in-fs.patch
clean-up-duplicate-includes-in-fs-ecryptfs.patch
clean-up-duplicate-includes-in-kernel.patch
clean-up-duplicate-includes-in-drivers-spi.patch
clean-up-duplicate-includes-in-documentation.patch


--
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

2007-08-09 20:56:48

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: silly df numbers on 32bit extN

On Thu, 9 Aug 2007 21:17:20 +0100 (BST)
Hugh Dickins <[email protected]> wrote:

> On Thu, 9 Aug 2007, Andrew Morton wrote:
> >
> > +lib-make-percpu_counter_add-take-s64.patch
>
> lib-make-percpu_counter_add-take-s64.patch looks sensible, but it doesn't
> actually work on 32-bit architectures: several users of percpu_counter_add
> are passing -unsignedlong as the amount, which is not promoted to s64 in
> the desired way, so "df" on extN filesystems is showing silly numbers.
>
> The hack below (say long instead of s64 or s32) may be good as hotfix for
> 2.6.23-rc2-mm1, but is probably the worst of solutions. Perhaps take-s64
> should be reverted, perhaps there should be a percpu_counter_sub and the
> filesystems use that instead of saying -unsignedlong, perhaps they should
> use a cast or a long or an s64. I don't know, but here's this for now...

Thanks. I think I'll quietly tip the whole patch series overboard and
shoot for a quick rc2-mm2 rather than trying to patch it up in-situ.

I haven't had a chance to review it all in recent months. Vague first
impressions are that it all goes a bit rampant and changes more than it
needs to, but I'll take a closer look at that if Peter can provide us with
the next version (please).

2007-08-09 21:38:44

by Gabriel C

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.23-rc2-mm1
# Thu Aug 9 15:19:34 2007
#
CONFIG_X86_32=y
CONFIG_GENERIC_TIME=y
CONFIG_GENERIC_CMOS_UPDATE=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_NONIRQ_WAKEUP=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_SEMAPHORE_SLEEPERS=y
CONFIG_X86=y
CONFIG_MMU=y
CONFIG_ZONE_DMA=y
CONFIG_QUICKLIST=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_IOMAP=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DMI=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"

#
# General setup
#
CONFIG_EXPERIMENTAL=y
CONFIG_LOCK_KERNEL=y
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_SWAP=y
CONFIG_SWAP_PREFETCH=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
# CONFIG_TASKSTATS is not set
# CONFIG_USER_NS is not set
# CONFIG_AUDIT is not set
CONFIG_IKCONFIG=y
CONFIG_IKCONFIG_PROC=y
CONFIG_LOG_BUF_SHIFT=17
# CONFIG_CONTAINERS is not set
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
# CONFIG_EMBEDDED is not set
CONFIG_UID16=y
CONFIG_SYSCTL_SYSCALL=y
CONFIG_KALLSYMS=y
CONFIG_KALLSYMS_EXTRA_PASS=y
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_ANON_INODES=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_SLUB_DEBUG=y
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_PROC_KPAGEMAP=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_MODVERSIONS=y
# CONFIG_MODULE_SRCVERSION_ALL is not set
CONFIG_KMOD=y
CONFIG_STOP_MACHINE=y
CONFIG_BLOCK=y
CONFIG_LBD=y
CONFIG_BLK_DEV_IO_TRACE=y
CONFIG_LSF=y
CONFIG_BLK_DEV_BSG=y

#
# 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_TICK_ONESHOT=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_SMP=y
CONFIG_X86_PC=y
# CONFIG_X86_ELAN is not set
# CONFIG_X86_VOYAGER is not set
# CONFIG_X86_NUMAQ is not set
# CONFIG_X86_SUMMIT is not set
# CONFIG_X86_BIGSMP is not set
# CONFIG_X86_VISWS is not set
# CONFIG_X86_GENERICARCH is not set
# CONFIG_X86_ES7000 is not set
# CONFIG_PARAVIRT is not set
# CONFIG_M386 is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not set
# CONFIG_M686 is not set
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
CONFIG_MPENTIUM4=y
# CONFIG_MCORE2 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP2 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_X86_GENERIC is not set
CONFIG_X86_CMPXCHG=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_X86_XADD=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
# CONFIG_ARCH_HAS_ILOG2_U32 is not set
# CONFIG_ARCH_HAS_ILOG2_U64 is not set
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_TSC=y
CONFIG_X86_CMOV=y
CONFIG_X86_MINIMUM_CPU_FAMILY=4
# CONFIG_HPET_TIMER is not set
CONFIG_NR_CPUS=8
CONFIG_SCHED_SMT=y
CONFIG_SCHED_MC=y
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set
CONFIG_PREEMPT=y
CONFIG_PREEMPT_BKL=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y
CONFIG_X86_MCE=y
CONFIG_X86_MCE_NONFATAL=y
CONFIG_X86_MCE_P4THERMAL=y
CONFIG_VM86=y
# CONFIG_TOSHIBA is not set
# CONFIG_I8K is not set
CONFIG_X86_REBOOTFIXUPS=y
CONFIG_MICROCODE=m
CONFIG_MICROCODE_OLD_INTERFACE=y
CONFIG_X86_MSR=y
CONFIG_X86_CPUID=y

#
# Firmware Drivers
#
CONFIG_EDD=y
CONFIG_DELL_RBU=m
CONFIG_DCDBAS=m
CONFIG_DMIID=y
CONFIG_NOHIGHMEM=y
# CONFIG_HIGHMEM4G is not set
# CONFIG_HIGHMEM64G is not set
CONFIG_PAGE_OFFSET=0xC0000000
# CONFIG_X86_PAE is not set
CONFIG_ARCH_FLATMEM_ENABLE=y
CONFIG_ARCH_SPARSEMEM_ENABLE=y
CONFIG_ARCH_SELECT_MEMORY_MODEL=y
CONFIG_ARCH_POPULATES_NODE_MAP=y
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_SPARSEMEM_STATIC=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_RESOURCES_64BIT=y
CONFIG_ZONE_DMA_FLAG=1
CONFIG_BOUNCE=y
CONFIG_NR_QUICK=1
CONFIG_VIRT_TO_BUS=y
# CONFIG_MATH_EMULATION is not set
CONFIG_MTRR=y
# CONFIG_EFI is not set
CONFIG_IRQBALANCE=y
CONFIG_SECCOMP=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000
# CONFIG_KEXEC is not set
CONFIG_PHYSICAL_START=0x100000
# CONFIG_RELOCATABLE is not set
CONFIG_PHYSICAL_ALIGN=0x100000
# CONFIG_HOTPLUG_CPU is not set
# CONFIG_COMPAT_VDSO is not set

#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_PM_LEGACY is not set
# CONFIG_PM_DEBUG is not set
CONFIG_SUSPEND_SMP_POSSIBLE=y
# CONFIG_SUSPEND is not set
# CONFIG_HIBERNATION is not set
CONFIG_ACPI=y
# CONFIG_ACPI_PROCFS is not set
# CONFIG_ACPI_AC is not set
# CONFIG_ACPI_BATTERY is not set
# CONFIG_ACPI_BUTTON is not set
# CONFIG_ACPI_VIDEO is not set
# CONFIG_ACPI_FAN is not set
# CONFIG_ACPI_DOCK is not set
# CONFIG_ACPI_PROCESSOR is not set
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_TOSHIBA is not set
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 is not set
# CONFIG_ACPI_SBS is not set

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# CPU idle PM support
#
# CONFIG_CPU_IDLE is not set

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
CONFIG_PCI_GODIRECT=y
# CONFIG_PCI_GOANY is not set
CONFIG_PCI_DIRECT=y
# CONFIG_PCIEPORTBUS is not set
CONFIG_ARCH_SUPPORTS_MSI=y
# CONFIG_PCI_MSI is not set
CONFIG_HT_IRQ=y
CONFIG_ISA_DMA_API=y
CONFIG_ISA=y
# CONFIG_EISA is not set
# CONFIG_MCA is not set
# CONFIG_SCx200 is not set
# CONFIG_PCCARD is not set
CONFIG_HOTPLUG_PCI=m
CONFIG_HOTPLUG_PCI_FAKE=m
# CONFIG_HOTPLUG_PCI_ACPI is not set
# CONFIG_HOTPLUG_PCI_CPCI is not set
CONFIG_HOTPLUG_PCI_SHPC=m

#
# Executable file formats
#
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_MISC=y

#
# Networking
#
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
CONFIG_XFRM_USER=m
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
CONFIG_NET_KEY=m
# CONFIG_NET_KEY_MIGRATE is not set
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_VERBOSE is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y
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=m
CONFIG_INET_XFRM_MODE_TUNNEL=m
CONFIG_INET_XFRM_MODE_BEET=m
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
CONFIG_TCP_CONG_ADVANCED=y
CONFIG_TCP_CONG_BIC=m
CONFIG_TCP_CONG_CUBIC=y
CONFIG_TCP_CONG_WESTWOOD=m
CONFIG_TCP_CONG_HTCP=m
CONFIG_TCP_CONG_HSTCP=m
CONFIG_TCP_CONG_HYBLA=y
CONFIG_TCP_CONG_VEGAS=m
CONFIG_TCP_CONG_SCALABLE=m
CONFIG_TCP_CONG_LP=m
CONFIG_TCP_CONG_VENO=m
CONFIG_TCP_CONG_YEAH=m
CONFIG_TCP_CONG_ILLINOIS=m
# CONFIG_DEFAULT_BIC is not set
CONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_VEGAS is not set
# CONFIG_DEFAULT_WESTWOOD is not set
# CONFIG_DEFAULT_RENO is not set
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
# CONFIG_IP_VS is not set
# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_NETLABEL is not set
CONFIG_NETWORK_SECMARK=y
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set

#
# Core Netfilter Configuration
#
CONFIG_NETFILTER_NETLINK=m
CONFIG_NETFILTER_NETLINK_QUEUE=m
CONFIG_NETFILTER_NETLINK_LOG=m
CONFIG_NF_CONNTRACK_ENABLED=m
CONFIG_NF_CONNTRACK=m
CONFIG_NF_CT_ACCT=y
CONFIG_NF_CONNTRACK_MARK=y
CONFIG_NF_CONNTRACK_SECMARK=y
CONFIG_NF_CONNTRACK_EVENTS=y
CONFIG_NF_CT_PROTO_GRE=m
# CONFIG_NF_CT_PROTO_SCTP is not set
# CONFIG_NF_CT_PROTO_UDPLITE is not set
CONFIG_NF_CONNTRACK_AMANDA=m
CONFIG_NF_CONNTRACK_FTP=m
# CONFIG_NF_CONNTRACK_H323 is not set
CONFIG_NF_CONNTRACK_IRC=m
# CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
CONFIG_NF_CONNTRACK_PPTP=m
CONFIG_NF_CONNTRACK_SANE=m
CONFIG_NF_CONNTRACK_SIP=m
CONFIG_NF_CONNTRACK_TFTP=m
# CONFIG_NF_CT_NETLINK is not set
CONFIG_NETFILTER_XTABLES=m
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
CONFIG_NETFILTER_XT_TARGET_DSCP=m
CONFIG_NETFILTER_XT_TARGET_MARK=m
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
CONFIG_NETFILTER_XT_TARGET_NFLOG=m
CONFIG_NETFILTER_XT_TARGET_NOTRACK=m
CONFIG_NETFILTER_XT_TARGET_TRACE=m
CONFIG_NETFILTER_XT_TARGET_SECMARK=m
CONFIG_NETFILTER_XT_TARGET_CONNSECMARK=m
CONFIG_NETFILTER_XT_TARGET_TCPMSS=m
CONFIG_NETFILTER_XT_MATCH_COMMENT=m
CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m
CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m
CONFIG_NETFILTER_XT_MATCH_CONNMARK=m
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
CONFIG_NETFILTER_XT_MATCH_DCCP=m
CONFIG_NETFILTER_XT_MATCH_DSCP=m
CONFIG_NETFILTER_XT_MATCH_ESP=m
CONFIG_NETFILTER_XT_MATCH_HELPER=m
CONFIG_NETFILTER_XT_MATCH_LENGTH=m
CONFIG_NETFILTER_XT_MATCH_LIMIT=m
CONFIG_NETFILTER_XT_MATCH_MAC=m
CONFIG_NETFILTER_XT_MATCH_MARK=m
CONFIG_NETFILTER_XT_MATCH_POLICY=m
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m
CONFIG_NETFILTER_XT_MATCH_QUOTA=m
CONFIG_NETFILTER_XT_MATCH_REALM=m
# CONFIG_NETFILTER_XT_MATCH_SCTP is not set
CONFIG_NETFILTER_XT_MATCH_STATE=m
CONFIG_NETFILTER_XT_MATCH_STATISTIC=m
CONFIG_NETFILTER_XT_MATCH_STRING=m
CONFIG_NETFILTER_XT_MATCH_TCPMSS=m
CONFIG_NETFILTER_XT_MATCH_U32=m
CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m

#
# IP: Netfilter Configuration
#
CONFIG_NF_CONNTRACK_IPV4=m
CONFIG_NF_CONNTRACK_PROC_COMPAT=y
# CONFIG_IP_NF_QUEUE is not set
CONFIG_IP_NF_IPTABLES=m
CONFIG_IP_NF_MATCH_IPRANGE=m
CONFIG_IP_NF_MATCH_TOS=m
CONFIG_IP_NF_MATCH_RECENT=m
CONFIG_IP_NF_MATCH_ECN=m
CONFIG_IP_NF_MATCH_AH=m
CONFIG_IP_NF_MATCH_TTL=m
CONFIG_IP_NF_MATCH_OWNER=m
CONFIG_IP_NF_MATCH_ADDRTYPE=m
CONFIG_IP_NF_FILTER=m
CONFIG_IP_NF_TARGET_REJECT=m
CONFIG_IP_NF_TARGET_LOG=m
CONFIG_IP_NF_TARGET_ULOG=m
CONFIG_NF_NAT=m
CONFIG_NF_NAT_NEEDED=y
CONFIG_IP_NF_TARGET_MASQUERADE=m
CONFIG_IP_NF_TARGET_REDIRECT=m
CONFIG_IP_NF_TARGET_NETMAP=m
# CONFIG_IP_NF_TARGET_SAME is not set
# CONFIG_NF_NAT_SNMP_BASIC is not set
CONFIG_NF_NAT_PROTO_GRE=m
CONFIG_NF_NAT_FTP=m
CONFIG_NF_NAT_IRC=m
CONFIG_NF_NAT_TFTP=m
CONFIG_NF_NAT_AMANDA=m
CONFIG_NF_NAT_PPTP=m
# CONFIG_NF_NAT_H323 is not set
CONFIG_NF_NAT_SIP=m
CONFIG_IP_NF_MANGLE=m
CONFIG_IP_NF_TARGET_TOS=m
CONFIG_IP_NF_TARGET_ECN=m
CONFIG_IP_NF_TARGET_TTL=m
# CONFIG_IP_NF_TARGET_CLUSTERIP is not set
CONFIG_IP_NF_RAW=m
CONFIG_IP_NF_ARPTABLES=m
CONFIG_IP_NF_ARPFILTER=m
CONFIG_IP_NF_ARP_MANGLE=m
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
CONFIG_LLC=m
# CONFIG_LLC2 is not set
CONFIG_IPX=m
# CONFIG_IPX_INTERN is not set
CONFIG_ATALK=m
CONFIG_DEV_APPLETALK=m
CONFIG_LTPC=m
CONFIG_COPS=m
# CONFIG_COPS_DAYNA is not set
# CONFIG_COPS_TANGENT is not set
CONFIG_IPDDP=m
CONFIG_IPDDP_ENCAP=y
CONFIG_IPDDP_DECAP=y
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_ECONET is not set
CONFIG_WAN_ROUTER=m

#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_FIFO=y

#
# Queueing/Scheduling
#
CONFIG_NET_SCH_CBQ=m
CONFIG_NET_SCH_HTB=m
CONFIG_NET_SCH_HFSC=m
CONFIG_NET_SCH_PRIO=m
CONFIG_NET_SCH_RR=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_CLS_U32_MARK=y
CONFIG_NET_CLS_RSVP=m
# CONFIG_NET_CLS_RSVP6 is not set
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=y
CONFIG_NET_ACT_POLICE=m
CONFIG_NET_ACT_GACT=m
CONFIG_GACT_PROB=y
CONFIG_NET_ACT_MIRRED=m
CONFIG_NET_ACT_IPT=m
CONFIG_NET_ACT_PEDIT=m
# CONFIG_NET_ACT_SIMP is not set
# CONFIG_NET_CLS_POLICE is not set
CONFIG_NET_CLS_IND=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
CONFIG_FIB_RULES=y

#
# Wireless
#
CONFIG_CFG80211=m
# CONFIG_NL80211 is not set
# CONFIG_WIRELESS_EXT is not set
# CONFIG_MAC80211 is not set
# CONFIG_IEEE80211 is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not set

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_SYS_HYPERVISOR is not set
CONFIG_CONNECTOR=m
# CONFIG_MTD is not set
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_SERIAL=m
CONFIG_PARPORT_PC_FIFO=y
CONFIG_PARPORT_PC_SUPERIO=y
# CONFIG_PARPORT_GSC is not set
CONFIG_PARPORT_AX88796=m
CONFIG_PARPORT_1284=y
CONFIG_PARPORT_NOT_PC=y
CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set

#
# Protocols
#
CONFIG_ISAPNP=y
CONFIG_PNPBIOS=y
CONFIG_PNPBIOS_PROC_FS=y
CONFIG_PNPACPI=y
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_FD is not set
# CONFIG_BLK_DEV_XD is not set
CONFIG_PARIDE=m

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

#
# Parallel IDE protocol modules
#
# CONFIG_PARIDE_ATEN is not set
# CONFIG_PARIDE_BPCK is not set
# CONFIG_PARIDE_BPCK6 is not set
# CONFIG_PARIDE_COMM is not set
# CONFIG_PARIDE_DSTR is not set
# CONFIG_PARIDE_FIT2 is not set
# CONFIG_PARIDE_FIT3 is not set
# CONFIG_PARIDE_EPAT is not set
# CONFIG_PARIDE_EPIA is not set
# CONFIG_PARIDE_FRIQ is not set
# CONFIG_PARIDE_FRPW is not set
# CONFIG_PARIDE_KBIC is not set
# CONFIG_PARIDE_KTTI is not set
# CONFIG_PARIDE_ON20 is not set
# CONFIG_PARIDE_ON26 is not set
# CONFIG_BLK_CPQ_DA is not set
# CONFIG_BLK_CPQ_CISS_DA is not set
# CONFIG_BLK_DEV_DAC960 is not set
# CONFIG_BLK_DEV_UMEM is not set
# 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 is not set
# CONFIG_BLK_DEV_UB is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
CONFIG_CDROM_PKTCDVD=m
CONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
# CONFIG_ATA_OVER_ETH is not set
CONFIG_MISC_DEVICES=y
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
CONFIG_EEPROM_93CX6=m
# CONFIG_SGI_IOC4 is not set
# CONFIG_TIFM_CORE is not set
# CONFIG_MSI_LAPTOP is not set
# CONFIG_SONY_LAPTOP is not set
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_IDE is not set

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

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

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
# CONFIG_SCSI_CONSTANTS is not set
# CONFIG_SCSI_LOGGING is not set
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_WAIT_SCAN=m

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=m
CONFIG_SCSI_ISCSI_ATTRS=m
CONFIG_SCSI_SAS_ATTRS=m
CONFIG_SCSI_SAS_LIBSAS=m
CONFIG_SCSI_SAS_ATA=y
# CONFIG_SCSI_SAS_LIBSAS_DEBUG is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# 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=y
CONFIG_AIC7XXX_CMDS_PER_DEVICE=32
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 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_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_HPTIOP is not set
CONFIG_SCSI_BUSLOGIC=y
CONFIG_SCSI_OMIT_FLASHPOINT=y
# 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_PPA is not set
# CONFIG_SCSI_IMM 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_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_SEAGATE 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 is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_ACPI=y
# CONFIG_SATA_AHCI is not set
# CONFIG_SATA_SVW is not set
CONFIG_ATA_PIIX=y
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5535 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
CONFIG_ATA_GENERIC=y
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_ISAPNP is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_LEGACY is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_QDI is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RZ1000 is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
# CONFIG_PATA_WINBOND_VLB is not set
# CONFIG_MD is not set
# CONFIG_FUSION is not set

#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_IEEE1394 is not set
# CONFIG_I2O is not set
# CONFIG_MACINTOSH_DRIVERS is not set
CONFIG_NETDEVICES=y
# CONFIG_NETDEVICES_MULTIQUEUE is not set
CONFIG_IFB=m
CONFIG_DUMMY=m
CONFIG_BONDING=m
# CONFIG_MACVLAN is not set
CONFIG_EQUALIZER=m
CONFIG_TUN=m
# CONFIG_NET_SB1000 is not set
# CONFIG_ARCNET is not set
# CONFIG_PHYLIB is not set
CONFIG_NET_ETHERNET=y
CONFIG_MII=m
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
CONFIG_NET_VENDOR_3COM=y
CONFIG_EL1=m
CONFIG_EL2=m
CONFIG_ELPLUS=m
CONFIG_EL16=m
CONFIG_EL3=m
CONFIG_3C515=m
CONFIG_VORTEX=m
CONFIG_TYPHOON=m
# CONFIG_LANCE is not set
# CONFIG_NET_VENDOR_SMC is not set
# CONFIG_NET_VENDOR_RACAL is not set
# CONFIG_NET_TULIP is not set
# CONFIG_AT1700 is not set
# CONFIG_DEPCA is not set
# CONFIG_HP100 is not set
# CONFIG_NET_ISA is not set
CONFIG_NET_PCI=y
CONFIG_PCNET32=m
# CONFIG_PCNET32_NAPI is not set
# CONFIG_AMD8111_ETH is not set
# CONFIG_ADAPTEC_STARFIRE is not set
# CONFIG_AC3200 is not set
# CONFIG_APRICOT is not set
# CONFIG_FORCEDETH is not set
# CONFIG_CS89x0 is not set
# CONFIG_DGRS is not set
# CONFIG_EEPRO100 is not set
# CONFIG_E100 is not set
# CONFIG_FEALNX is not set
# CONFIG_NATSEMI is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_8139CP is not set
CONFIG_8139TOO=m
# CONFIG_8139TOO_PIO is not set
# CONFIG_8139TOO_TUNE_TWISTER is not set
# CONFIG_8139TOO_8129 is not set
# CONFIG_8139_OLD_RX_RESET is not set
# CONFIG_SIS900 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set
# CONFIG_SC92031 is not set
# CONFIG_NET_POCKET is not set
# CONFIG_NETDEV_1000 is not set
# CONFIG_NETDEV_10000 is not set
# CONFIG_TR is not set

#
# Wireless LAN
#
# CONFIG_WLAN_PRE80211 is not set
# CONFIG_WLAN_80211 is not set

#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET_MII is not set
# CONFIG_USB_USBNET is not set
# CONFIG_WAN is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
CONFIG_PLIP=m
CONFIG_PPP=m
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
# CONFIG_PPP_MPPE is not set
CONFIG_PPPOE=m
# CONFIG_PPPOL2TP is not set
CONFIG_SLIP=m
CONFIG_SLIP_COMPRESSED=y
CONFIG_SLHC=m
CONFIG_SLIP_SMART=y
CONFIG_SLIP_MODE_SLIP6=y
# CONFIG_NET_FC is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_ISDN is not set
# CONFIG_PHONE is not set

#
# Input device support
#
CONFIG_INPUT=y
CONFIG_INPUT_FF_MEMLESS=m
CONFIG_INPUT_POLLDEV=m

#
# 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 is not set
# CONFIG_INPUT_TSDEV is not set
CONFIG_INPUT_EVDEV=m
# CONFIG_INPUT_EVBUG is not set

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
CONFIG_KEYBOARD_ATKBD=y
CONFIG_KEYBOARD_SUNKBD=m
CONFIG_KEYBOARD_LKKBD=m
CONFIG_KEYBOARD_XTKBD=m
CONFIG_KEYBOARD_NEWTON=m
CONFIG_KEYBOARD_STOWAWAY=m
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_PS2_ALPS=y
CONFIG_MOUSE_PS2_LOGIPS2PP=y
CONFIG_MOUSE_PS2_SYNAPTICS=y
CONFIG_MOUSE_PS2_LIFEBOOK=y
CONFIG_MOUSE_PS2_TRACKPOINT=y
# CONFIG_MOUSE_PS2_TOUCHKIT is not set
CONFIG_MOUSE_SERIAL=y
# CONFIG_MOUSE_APPLETOUCH is not set
CONFIG_MOUSE_INPORT=m
# CONFIG_MOUSE_ATIXL is not set
CONFIG_MOUSE_LOGIBM=m
CONFIG_MOUSE_PC110PAD=m
CONFIG_MOUSE_VSXXXAA=m
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
CONFIG_INPUT_MISC=y
CONFIG_INPUT_PCSPKR=m
# CONFIG_INPUT_WISTRON_BTNS is not set
# CONFIG_INPUT_ATLAS_BTNS is not set
# CONFIG_INPUT_ATI_REMOTE is not set
# CONFIG_INPUT_ATI_REMOTE2 is not set
# CONFIG_INPUT_KEYSPAN_REMOTE is not set
# CONFIG_INPUT_POWERMATE is not set
# CONFIG_INPUT_YEALINK is not set
CONFIG_INPUT_UINPUT=m

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

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_SERIAL_NONSTANDARD=y
# CONFIG_COMPUTONE is not set
# CONFIG_ROCKETPORT is not set
# CONFIG_CYCLADES is not set
# CONFIG_DIGIEPCA is not set
# CONFIG_ESPSERIAL is not set
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not set
# CONFIG_MOXA_SMARTIO_NEW is not set
# CONFIG_ISI is not set
# CONFIG_SYNCLINK is not set
# CONFIG_SYNCLINKMP is not set
# CONFIG_SYNCLINK_GT is not set
# CONFIG_N_HDLC is not set
# CONFIG_SPECIALIX is not set
# CONFIG_SX is not set
# CONFIG_RIO is not set
# CONFIG_STALDRV is not set
# CONFIG_NOZOMI is not set

#
# Serial drivers
#
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_SERIAL_8250_PCI=y
CONFIG_SERIAL_8250_PNP=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_FOURPORT=m
CONFIG_SERIAL_8250_ACCENT=m
CONFIG_SERIAL_8250_BOCA=m
CONFIG_SERIAL_8250_EXAR_ST16C554=m
CONFIG_SERIAL_8250_HUB6=m
CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set
CONFIG_SERIAL_8250_RSA=y

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_JSM=m
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
CONFIG_PRINTER=m
CONFIG_LP_CONSOLE=y
CONFIG_PPDEV=m
# CONFIG_TIPAR is not set
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
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 is not set
# CONFIG_ALIM7101_WDT is not set
# CONFIG_SC520_WDT is not set
# CONFIG_EUROTECH_WDT is not set
# CONFIG_IB700_WDT is not set
# CONFIG_IBMASR is not set
# CONFIG_WAFER_WDT is not set
# CONFIG_I6300ESB_WDT is not set
CONFIG_ITCO_WDT=m
CONFIG_ITCO_VENDOR_SUPPORT=y
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not set
# CONFIG_60XX_WDT is not set
# CONFIG_SBC8360_WDT is not set
# CONFIG_CPU5_WDT is not set
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_W83627HF_WDT is not set
# CONFIG_W83697HF_WDT is not set
# CONFIG_W83877F_WDT is not set
# CONFIG_W83977F_WDT is not set
# CONFIG_MACHZ_WDT is not set
# CONFIG_SBC_EPX_C3_WATCHDOG is not set

#
# ISA-based Watchdog Cards
#
# CONFIG_PCWATCHDOG is not set
# CONFIG_MIXCOMWD is not set
# CONFIG_WDT is not set

#
# PCI-based Watchdog Cards
#
# CONFIG_PCIPCWATCHDOG is not set
# CONFIG_WDTPCI is not set

#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not set
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_INTEL=y
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_GEODE is not set
# CONFIG_HW_RANDOM_VIA is not set
# CONFIG_NVRAM is not set
CONFIG_RTC=m
CONFIG_GEN_RTC=m
CONFIG_GEN_RTC_X=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
# CONFIG_APPLICOM is not set
# CONFIG_SONYPI is not set
CONFIG_AGP=m
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=m
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set
# CONFIG_DRM is not set
# CONFIG_MWAVE is not set
# CONFIG_PC8736x_GPIO is not set
# CONFIG_NSC_GPIO is not set
# CONFIG_CS5535_GPIO is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_HPET is not set
CONFIG_HANGCHECK_TIMER=m
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
CONFIG_DEVPORT=y
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
CONFIG_I2C_CHARDEV=y

#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=m
CONFIG_I2C_ALGOPCF=m
CONFIG_I2C_ALGOPCA=m

#
# I2C Hardware Bus support
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
CONFIG_I2C_I801=m
CONFIG_I2C_I810=m
CONFIG_I2C_PIIX4=m
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_PROSAVAGE is not set
# CONFIG_I2C_SAVAGE4 is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_SCx200_ACB is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_TINY_USB is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
# CONFIG_I2C_VOODOO3 is not set
# CONFIG_I2C_PCA_ISA is not set

#
# Miscellaneous I2C Chip support
#
# CONFIG_SENSORS_DS1337 is not set
# CONFIG_SENSORS_DS1374 is not set
# CONFIG_SENSORS_DS1682 is not set
CONFIG_SENSORS_EEPROM=m
# CONFIG_SENSORS_PCF8574 is not set
# CONFIG_SENSORS_PCA9539 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_SENSORS_MAX6875 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CHIP is not set

#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
CONFIG_HWMON=y
CONFIG_HWMON_VID=m
# CONFIG_SENSORS_ABITUGURU is not set
# CONFIG_SENSORS_ABITUGURU3 is not set
CONFIG_SENSORS_AD7418=m
CONFIG_SENSORS_ADM1021=m
CONFIG_SENSORS_ADM1025=m
CONFIG_SENSORS_ADM1026=m
CONFIG_SENSORS_ADM1029=m
CONFIG_SENSORS_ADM1031=m
CONFIG_SENSORS_ADM9240=m
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_ASB100 is not set
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_F71805F is not set
# CONFIG_SENSORS_FSCHER is not set
# CONFIG_SENSORS_FSCPOS is not set
# CONFIG_SENSORS_GL518SM is not set
# CONFIG_SENSORS_GL520SM is not set
# CONFIG_SENSORS_CORETEMP is not set
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_LM63 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_LM87 is not set
# CONFIG_SENSORS_LM90 is not set
# CONFIG_SENSORS_LM92 is not set
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_MAX1619 is not set
# CONFIG_SENSORS_MAX6650 is not set
CONFIG_SENSORS_PC87360=m
CONFIG_SENSORS_PC87427=m
# CONFIG_SENSORS_SIS5595 is not set
# CONFIG_SENSORS_DME1737 is not set
# CONFIG_SENSORS_SMSC47M1 is not set
# CONFIG_SENSORS_SMSC47M192 is not set
# CONFIG_SENSORS_SMSC47B397 is not set
# CONFIG_SENSORS_THMC50 is not set
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set
# CONFIG_SENSORS_W83792D is not set
# CONFIG_SENSORS_W83793 is not set
# CONFIG_SENSORS_W83L785TS is not set
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_SENSORS_APPLESMC is not set
# CONFIG_HWMON_DEBUG_CHIP is not set

#
# Multifunction device drivers
#
# CONFIG_MFD_SM501 is not set

#
# Multimedia devices
#
CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_V4L1=y
CONFIG_VIDEO_V4L1_COMPAT=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_CAPTURE_DRIVERS=y
# CONFIG_VIDEO_ADV_DEBUG is not set
CONFIG_VIDEO_HELPER_CHIPS_AUTO=y
CONFIG_VIDEO_VIVI=m
# CONFIG_VIDEO_BT848 is not set
# CONFIG_VIDEO_PMS is not set
# CONFIG_VIDEO_BWQCAM is not set
# CONFIG_VIDEO_CQCAM is not set
# CONFIG_VIDEO_W9966 is not set
# CONFIG_VIDEO_CPIA is not set
# CONFIG_VIDEO_CPIA2 is not set
# CONFIG_VIDEO_SAA5246A is not set
# CONFIG_VIDEO_SAA5249 is not set
# CONFIG_TUNER_3036 is not set
# CONFIG_TUNER_TEA5761 is not set
# CONFIG_VIDEO_STRADIS is not set
# CONFIG_VIDEO_ZORAN is not set
# CONFIG_VIDEO_SAA7134 is not set
# CONFIG_VIDEO_MXB is not set
# CONFIG_VIDEO_DPC is not set
# CONFIG_VIDEO_HEXIUM_ORION is not set
# CONFIG_VIDEO_HEXIUM_GEMINI is not set
# CONFIG_VIDEO_CX88 is not set
# CONFIG_VIDEO_IVTV is not set
# CONFIG_VIDEO_CAFE_CCIC is not set
CONFIG_V4L_USB_DRIVERS=y
# CONFIG_VIDEO_PVRUSB2 is not set
# CONFIG_VIDEO_EM28XX is not set
# CONFIG_VIDEO_USBVISION is not set
# CONFIG_USB_VICAM is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_KONICAWC is not set
# CONFIG_USB_QUICKCAM_MESSENGER is not set
# CONFIG_USB_ET61X251 is not set
# CONFIG_VIDEO_OVCAMCHIP is not set
# CONFIG_USB_W9968CF is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_SN9C102 is not set
# CONFIG_USB_STV680 is not set
# CONFIG_USB_ZC0301 is not set
# CONFIG_USB_PWC is not set
# CONFIG_USB_ZR364XX is not set
# CONFIG_RADIO_ADAPTERS is not set
# CONFIG_DVB_CORE is not set
CONFIG_VIDEO_BUF=m
# CONFIG_DAB is not set

#
# Graphics support
#
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=y
CONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_PROGEAR is not set

#
# Display device support
#
CONFIG_DISPLAY_SUPPORT=y

#
# Display hardware drivers
#
CONFIG_VGASTATE=y
CONFIG_VIDEO_OUTPUT_CONTROL=m
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
# CONFIG_FB_DDC is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_SYS_FOPS is not set
CONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
CONFIG_FB_VGA16=y
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
# CONFIG_FB_HECUBA is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_CYBLA is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_VIRTUAL is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=64
CONFIG_VIDEO_SELECT=y
CONFIG_MDA_CONSOLE=m
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_LOGO is not set

#
# Sound
#
CONFIG_SOUND=y

#
# Advanced Linux Sound Architecture
#
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_SEQUENCER=m
CONFIG_SND_SEQ_DUMMY=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_RTCTIMER=m
CONFIG_SND_SEQ_RTCTIMER_DEFAULT=y
# CONFIG_SND_DYNAMIC_MINORS is not set
# CONFIG_SND_SUPPORT_OLD_API is not set
# CONFIG_SND_VERBOSE_PROCFS is not set
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set

#
# Generic devices
#
CONFIG_SND_MPU401_UART=m
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_DUMMY=m
CONFIG_SND_VIRMIDI=m
CONFIG_SND_MTPAV=m
CONFIG_SND_MTS64=m
CONFIG_SND_SERIAL_U16550=m
CONFIG_SND_MPU401=m
CONFIG_SND_PORTMAN2X4=m

#
# ISA devices
#
# CONFIG_SND_ADLIB is not set
# CONFIG_SND_AD1816A is not set
# CONFIG_SND_AD1848 is not set
# CONFIG_SND_ALS100 is not set
# CONFIG_SND_AZT2320 is not set
# CONFIG_SND_CMI8330 is not set
# CONFIG_SND_CS4231 is not set
# CONFIG_SND_CS4232 is not set
# CONFIG_SND_CS4236 is not set
# CONFIG_SND_DT019X is not set
# CONFIG_SND_ES968 is not set
# CONFIG_SND_ES1688 is not set
# CONFIG_SND_ES18XX is not set
# CONFIG_SND_GUSCLASSIC is not set
# CONFIG_SND_GUSEXTREME is not set
# CONFIG_SND_GUSMAX is not set
# CONFIG_SND_INTERWAVE is not set
# CONFIG_SND_INTERWAVE_STB is not set
# CONFIG_SND_OPL3SA2 is not set
# CONFIG_SND_OPTI92X_AD1848 is not set
# CONFIG_SND_OPTI92X_CS4231 is not set
# CONFIG_SND_OPTI93X is not set
# CONFIG_SND_MIRO is not set
# CONFIG_SND_SB8 is not set
# CONFIG_SND_SB16 is not set
# CONFIG_SND_SBAWE is not set
# CONFIG_SND_SGALAXY is not set
# CONFIG_SND_SSCAPE is not set
# CONFIG_SND_WAVEFRONT is not set

#
# PCI devices
#
# CONFIG_SND_AD1889 is not set
# CONFIG_SND_ALS300 is not set
# CONFIG_SND_ALS4000 is not set
# CONFIG_SND_ALI5451 is not set
# CONFIG_SND_ATIIXP is not set
# CONFIG_SND_ATIIXP_MODEM is not set
# CONFIG_SND_AU8810 is not set
# CONFIG_SND_AU8820 is not set
# CONFIG_SND_AU8830 is not set
# CONFIG_SND_AZT3328 is not set
# CONFIG_SND_BT87X is not set
# CONFIG_SND_CA0106 is not set
# CONFIG_SND_CMIPCI is not set
# CONFIG_SND_CS4281 is not set
# CONFIG_SND_CS46XX is not set
# CONFIG_SND_CS5530 is not set
# CONFIG_SND_CS5535AUDIO is not set
# CONFIG_SND_DARLA20 is not set
# CONFIG_SND_GINA20 is not set
# CONFIG_SND_LAYLA20 is not set
# CONFIG_SND_DARLA24 is not set
# CONFIG_SND_GINA24 is not set
# CONFIG_SND_LAYLA24 is not set
# CONFIG_SND_MONA is not set
# CONFIG_SND_MIA is not set
# CONFIG_SND_ECHO3G is not set
# CONFIG_SND_INDIGO is not set
# CONFIG_SND_INDIGOIO is not set
# CONFIG_SND_INDIGODJ is not set
# CONFIG_SND_EMU10K1 is not set
# CONFIG_SND_EMU10K1X is not set
# CONFIG_SND_ENS1370 is not set
# CONFIG_SND_ENS1371 is not set
# CONFIG_SND_ES1938 is not set
# CONFIG_SND_ES1968 is not set
# CONFIG_SND_FM801 is not set
# CONFIG_SND_HDA_INTEL is not set
# CONFIG_SND_HDSP is not set
# CONFIG_SND_HDSPM is not set
# CONFIG_SND_ICE1712 is not set
# CONFIG_SND_ICE1724 is not set
CONFIG_SND_INTEL8X0=y
CONFIG_SND_INTEL8X0M=m
# CONFIG_SND_KORG1212 is not set
# CONFIG_SND_MAESTRO3 is not set
# CONFIG_SND_MIXART is not set
# CONFIG_SND_NM256 is not set
# CONFIG_SND_PCXHR is not set
# CONFIG_SND_RIPTIDE is not set
# CONFIG_SND_RME32 is not set
# CONFIG_SND_RME96 is not set
# CONFIG_SND_RME9652 is not set
# CONFIG_SND_SONICVIBES is not set
# CONFIG_SND_TRIDENT is not set
# CONFIG_SND_VIA82XX is not set
# CONFIG_SND_VIA82XX_MODEM is not set
# CONFIG_SND_VX222 is not set
# CONFIG_SND_YMFPCI is not set
CONFIG_SND_AC97_POWER_SAVE=y

#
# USB devices
#
CONFIG_SND_USB_AUDIO=m
CONFIG_SND_USB_USX2Y=m
CONFIG_SND_USB_CAIAQ=m
# CONFIG_SND_USB_CAIAQ_INPUT is not set

#
# System on Chip audio support
#
# CONFIG_SND_SOC is not set

#
# SoC Audio support for SuperH
#

#
# Open Sound System
#
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=y
CONFIG_HID_SUPPORT=y
CONFIG_HID=y
CONFIG_HID_DEBUG=y
# CONFIG_HIDRAW is not set

#
# USB Input Devices
#
CONFIG_USB_HID=m
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
# CONFIG_HID_FF is not set
CONFIG_USB_HIDDEV=y

#
# USB HID Boot Protocol drivers
#
# CONFIG_USB_KBD is not set
# CONFIG_USB_MOUSE is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_DEVICE_CLASS is not set
CONFIG_USB_DYNAMIC_MINORS=y
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_PERSIST is not set
# CONFIG_USB_OTG is not set

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_SPLIT_ISO=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_ISP116X_HCD=m
CONFIG_USB_OHCI_HCD=m
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
# CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=m
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set

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

#
# may also be needed; see USB_STORAGE Help for more information
#
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_KARMA is not set
# CONFIG_USB_LIBUSUAL is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_MON is not set

#
# USB port drivers
#
# CONFIG_USB_USS720 is not set

#
# USB Serial Converter support
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_BERRY_CHARGE is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGET is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_GOTEMP is not set

#
# USB DSL modem support
#

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
# CONFIG_MMC is not set
# CONFIG_NEW_LEDS is not set
# CONFIG_INFINIBAND is not set
CONFIG_EDAC=y

#
# Reporting subsystems
#
# CONFIG_EDAC_DEBUG is not set
CONFIG_EDAC_MM_EDAC=m
# CONFIG_EDAC_AMD76X is not set
CONFIG_EDAC_E7XXX=m
CONFIG_EDAC_E752X=m
CONFIG_EDAC_I82875P=m
CONFIG_EDAC_I82975X=m
CONFIG_EDAC_I3000=m
CONFIG_EDAC_I82860=m
# CONFIG_EDAC_R82600 is not set
CONFIG_EDAC_I5000=m
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
CONFIG_RTC_DRV_DS1307=m
CONFIG_RTC_DRV_DS1672=m
CONFIG_RTC_DRV_MAX6900=m
CONFIG_RTC_DRV_RS5C372=m
CONFIG_RTC_DRV_ISL1208=m
CONFIG_RTC_DRV_X1205=m
CONFIG_RTC_DRV_PCF8563=m
CONFIG_RTC_DRV_PCF8583=m
CONFIG_RTC_DRV_M41T80=m
# CONFIG_RTC_DRV_M41T80_WDT is not set

#
# SPI RTC drivers
#

#
# Platform RTC drivers
#
CONFIG_RTC_DRV_CMOS=y
CONFIG_RTC_DRV_DS1553=m
CONFIG_RTC_DRV_STK17TA8=m
CONFIG_RTC_DRV_DS1742=m
CONFIG_RTC_DRV_M48T86=m
CONFIG_RTC_DRV_M48T59=m
CONFIG_RTC_DRV_V3020=m

#
# on-CPU RTC drivers
#

#
# DMA Engine support
#
# CONFIG_DMA_ENGINE is not set

#
# DMA Clients
#

#
# DMA Devices
#
CONFIG_DCA=m
# CONFIG_AUXDISPLAY is not set
# CONFIG_VIRTUALIZATION is not set

#
# Userspace I/O
#
# CONFIG_UIO is not set

#
# File systems
#
CONFIG_EXT2_FS=m
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_EXT4DEV_FS=m
CONFIG_EXT4DEV_FS_XATTR=y
CONFIG_EXT4DEV_FS_POSIX_ACL=y
CONFIG_EXT4DEV_FS_SECURITY=y
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_JBD2=m
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISER4_FS is not set
# CONFIG_REISERFS_FS 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 is not set
# CONFIG_MINIX_FS is not set
CONFIG_ROMFS_FS=y
CONFIG_INOTIFY=y
CONFIG_INOTIFY_USER=y
CONFIG_QUOTA=y
CONFIG_QFMT_V1=m
CONFIG_QFMT_V2=m
CONFIG_QUOTACTL=y
CONFIG_DNOTIFY=y
CONFIG_AUTOFS_FS=m
CONFIG_AUTOFS4_FS=m
CONFIG_FUSE_FS=m
CONFIG_GENERIC_ACL=y

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_UDF_FS=m
CONFIG_UDF_NLS=y

#
# 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="iso8859-1"
CONFIG_NTFS_FS=m
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
CONFIG_CONFIGFS_FS=m

#
# Layered filesystems
#
CONFIG_ECRYPT_FS=m
# CONFIG_UNION_FS is not set

#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_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 is not set
# CONFIG_EFS_FS is not set
CONFIG_CRAMFS=m
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set

#
# Network File Systems
#
CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=m
CONFIG_NFSD_V2_ACL=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V3_ACL=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=m
CONFIG_LOCKD_V4=y
CONFIG_EXPORTFS=m
CONFIG_NFS_ACL_SUPPORT=m
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=m
CONFIG_SUNRPC_GSS=m
CONFIG_SUNRPC_BIND34=y
CONFIG_RPCSEC_GSS_KRB5=m
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set

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

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

#
# Distributed Lock Manager
#
# CONFIG_DLM is not set
# CONFIG_INSTRUMENTATION is not set

#
# Kernel hacking
#
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_PRINTK_TIME=y
# CONFIG_ENABLE_MUST_CHECK is not set
CONFIG_MAGIC_SYSRQ=y
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_SLUB_DEBUG_ON is not set
CONFIG_DEBUG_BUGVERBOSE=y
# CONFIG_PROFILE_LIKELY is not set
# CONFIG_WANT_EXTRA_DEBUG_INFORMATION is not set
# CONFIG_UNWIND_INFO is not set
CONFIG_EARLY_PRINTK=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_MPPARSE=y
CONFIG_DOUBLEFAULT=y

#
# 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 is not set
CONFIG_CRYPTO=y
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ABLKCIPHER=m
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_MANAGER=y
CONFIG_CRYPTO_HMAC=y
CONFIG_CRYPTO_XCBC=m
CONFIG_CRYPTO_NULL=m
CONFIG_CRYPTO_MD4=m
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_SHA1=m
CONFIG_CRYPTO_SHA256=m
CONFIG_CRYPTO_SHA512=m
CONFIG_CRYPTO_WP512=m
CONFIG_CRYPTO_TGR192=m
CONFIG_CRYPTO_GF128MUL=m
CONFIG_CRYPTO_ECB=m
CONFIG_CRYPTO_CBC=y
CONFIG_CRYPTO_PCBC=m
CONFIG_CRYPTO_LRW=m
CONFIG_CRYPTO_CRYPTD=m
CONFIG_CRYPTO_DES=y
CONFIG_CRYPTO_FCRYPT=m
CONFIG_CRYPTO_BLOWFISH=m
CONFIG_CRYPTO_TWOFISH=m
CONFIG_CRYPTO_TWOFISH_COMMON=m
CONFIG_CRYPTO_TWOFISH_586=m
CONFIG_CRYPTO_SERPENT=m
CONFIG_CRYPTO_AES=m
CONFIG_CRYPTO_AES_586=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_CAMELLIA=m
# CONFIG_CRYPTO_TEST is not set
CONFIG_CRYPTO_HW=y
CONFIG_CRYPTO_DEV_PADLOCK=y
CONFIG_CRYPTO_DEV_PADLOCK_AES=m
CONFIG_CRYPTO_DEV_PADLOCK_SHA=m
CONFIG_CRYPTO_DEV_GEODE=m

#
# Library routines
#
CONFIG_BITREVERSE=y
CONFIG_CRC_CCITT=m
CONFIG_CRC16=m
CONFIG_CRC_ITU_T=m
CONFIG_CRC32=y
CONFIG_CRC7=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
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_X86_SMP=y
CONFIG_X86_HT=y
CONFIG_X86_BIOS_REBOOT=y
CONFIG_X86_TRAMPOLINE=y
CONFIG_KTIME_SCALAR=y


Attachments:
MM.config (50.09 kB)

2007-08-09 22:05:23

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

On Thu, 09 Aug 2007 23:36:04 +0200
Gabriel C <[email protected]> wrote:

>
> ...
>
> > +pci-align-bar-settings-for-legacy-mode-ide.patch
> > +pci-align-bar-settings-for-legacy-mode-ide-fix.patch
> >
> > 2.6.23 material, but these belong to subssytem trees
> >
>
> ...
>
>
> These broke the IDE controller , using libata on my Dell Workstation ..
>
> Reverting both fixes the problem.
>
>
> ..
>
> [ 28.828484] 0000:00:1f.1: cannot adjust BAR0 (not I/O)
> [ 28.828487] 0000:00:1f.1: cannot adjust BAR1 (not I/O)
> [ 28.828489] 0000:00:1f.1: cannot adjust BAR2 (not I/O)
> [ 28.828491] 0000:00:1f.1: cannot adjust BAR3 (not I/O)
> ...
>
> [ 44.564308] ata_piix 0000:00:1f.1: version 2.11
> [ 44.564365] ata_piix 0000:00:1f.1: no available native port
>
> ...
>
> And my CDROM and second ide disc gone.
>
> $ lspci -vvvxxx
>
> ...
>
> 00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 04) (prog-if 80 [Master])
> Subsystem: Dell Unknown device 00d8
> Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
> Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
> Latency: 0
> Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
> Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
> Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
> Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
> Region 4: I/O ports at ffa0 [size=16]
> 00: 86 80 4b 24 05 00 80 02 04 80 01 01 00 00 00 00
> 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 20: a1 ff 00 00 00 00 00 00 00 00 00 00 28 10 d8 00
> 30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 40: 07 e3 03 e3 00 00 00 00 05 00 01 02 00 00 00 00
> 50: 00 00 00 00 50 10 00 00 00 00 00 00 00 00 00 00
> 60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> f0: 00 00 00 00 00 00 00 00 47 0f 00 00 00 00 00 00
>
> ...
>
> config is attched.
>

Great, thanks for working that out. I'll drop them, thereby breaking other
people's stuff. This is rather a disaster.


2007-08-09 22:35:29

by Alan

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

> > [ 28.828484] 0000:00:1f.1: cannot adjust BAR0 (not I/O)
> > [ 28.828487] 0000:00:1f.1: cannot adjust BAR1 (not I/O)
> > [ 28.828489] 0000:00:1f.1: cannot adjust BAR2 (not I/O)
> > [ 28.828491] 0000:00:1f.1: cannot adjust BAR3 (not I/O)

This means it didn't do anything. (wrongly because its checking I/O bits
on a BAR which are ignored according to the spec)

> > Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
> > Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
> > Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
> > Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]

The controller is disabled and when disabled it seems to think its
memory. Valid but interesting.

2007-08-09 23:24:15

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86

Hello,

This probably doesn't have great impact ;) but ...
To reproduce: run torture tests for RCU and then sysrq+q.

SysRq : Show Pending Timers
Timer List Version: v0.3
HRTIMER_MAX_CLOCK_BASES: 2
now at 1764338760370 nsecs

cpu: 0
clock 0:
.index: 0
.resolution: 1 nsecs
.get_time: ktime_get_real
.offset: 1186699025823815427 nsecs
active timers:
clock 1:
.index: 1
.resolution: 1 nsecs
.get_time: ktime_get
.offset: 0 nsecs
active timers:
#0: <3>BUG: sleeping function called from invalid context at kernel/mutex.c:86
in_atomic():1, irqs_disabled():1
INFO: lockdep is turned off.
irq event stamp: 0
hardirqs last enabled at (0): [<00000000>] 0x0
hardirqs last disabled at (0): [<c0117def>] copy_process+0x4a8/0x144c
softirqs last enabled at (0): [<c0117e0d>] copy_process+0x4c6/0x144c
softirqs last disabled at (0): [<00000000>] 0x0
[<c0104869>] show_trace_log_lvl+0x1a/0x30
[<c01053ad>] show_trace+0x12/0x14
[<c0105515>] dump_stack+0x15/0x17
[<c0114da7>] __might_sleep+0xb7/0xc9
[<c0451771>] mutex_lock+0x15/0x1f
[<c0141b75>] lookup_module_symbol_name+0x17/0xc0
[<c014272a>] lookup_symbol_name+0x3f/0x43
[<c013287e>] print_name_offset+0x1f/0x96
[<c01330f7>] timer_list_show+0x802/0xcbd
[<c01335be>] sysrq_timer_list_show+0xc/0xe
[<c02cc4a1>] sysrq_handle_show_timers+0x8/0xa
[<c02cc3ac>] __handle_sysrq+0x7b/0x115
[<c02cc466>] handle_sysrq+0x20/0x24
[<c02c69c1>] kbd_event+0x3a8/0x5c7
[<c0362f8f>] input_pass_event+0x8f/0x91
[<c0363e77>] input_handle_event+0x98/0x38d
[<c0364e6d>] input_event+0x54/0x67
[<c03682c2>] atkbd_interrupt+0x200/0x59e
[<c0360cd0>] serio_interrupt+0x7c/0x80
[<c0361965>] i8042_interrupt+0x17a/0x289
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<df39d7e3>] rcu_read_delay+0x8/0x36 [rcutorture]
[<df39d99a>] rcu_torture_reader+0x6e/0x169 [rcutorture]
[<c012c11e>] kthread+0x36/0x58
[<c010451b>] kernel_thread_helper+0x7/0x1c
=======================
<c4ce1d38>, tick_sched_timer, S:01, tick_nohz_restart_sched_tick, swapper/0
# expires at 1764339000000 nsecs [in 239630 nsecs]
#1: <c4ce1d38>, it_real_fn, S:01, do_setitimer, artsd/7461
# expires at 1764742781512 nsecs [in 404021142 nsecs]
#2: <c4ce1d38>, hrtimer_wakeup, S:01, do_nanosleep, kwrapper/7452
# expires at 1764922105491 nsecs [in 583345121 nsecs]
#3: <c4ce1d38>, it_real_fn, S:01, do_setitimer, syslogd/6719
# expires at 1790027922194 nsecs [in 25689161824 nsecs]
.expires_next : 1764339000000 nsecs
.hres_active : 1
.nr_events : 1422687
.nohz_mode : 2
.idle_tick : 465859000000 nsecs
.tick_stopped : 0
.idle_jiffies : 165857
.idle_calls : 1812679
.idle_sleeps : 1761361
.idle_entrytime : 466865075138 nsecs
.idle_sleeptime : 357976883572 nsecs
.last_jiffies : 166865
.next_jiffies : 166866
.idle_expires : 465951000000 nsecs
jiffies: 1464338


Tick Device: mode: 1
Clock Event Device: pit
max_delta_ns: 27461866
min_delta_ns: 12571
mult: 5124677
shift: 32
mode: 3
next_event: 1764339000000 nsecs
set_next_event: pit_next_event
set_mode: init_pit_timer
event_handler: hrtimer_interrupt

Regards,

Mariusz


Attachments:
(No filename) (3.23 kB)
.config (43.73 kB)
Download all attachments

2007-08-09 23:35:04

by Gabriel C

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1

Alan Cox wrote:
>>> [ 28.828484] 0000:00:1f.1: cannot adjust BAR0 (not I/O)
>>> [ 28.828487] 0000:00:1f.1: cannot adjust BAR1 (not I/O)
>>> [ 28.828489] 0000:00:1f.1: cannot adjust BAR2 (not I/O)
>>> [ 28.828491] 0000:00:1f.1: cannot adjust BAR3 (not I/O)
>
> This means it didn't do anything. (wrongly because its checking I/O bits
> on a BAR which are ignored according to the spec)
>
>>> Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
>>> Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
>>> Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
>>> Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
>
> The controller is disabled and when disabled it seems to think its
> memory. Valid but interesting.
>
>

The box is an Dell Precision WorkStation 530 MT.

Actually I have an ATA-7 disc on the primary EIDE connector ( one port free ) and an oldish CDROM
on the secondary EIDE connector ( one port free ).

http://194.231.229.228/lara/lara.dmesg ( from 2.6.23-rc2-mm1 with the 2 patches reverted )
http://194.231.229.228/lara/lara.lspci ( lspci -vvvvxxxx -nn )
http://194.231.229.228/lara/lara.html ( lshw html output )

If you want me to do/try something let me know.


Gabriel

2007-08-09 23:49:29

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

Hello,

=================================
[ INFO: inconsistent lock state ]
2.6.23-rc2-mm1 #7
---------------------------------
inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
ifconfig/5492 [HC0[0]:SC0[0]:HE1:SE1] takes:
(&tp->lock){+...}, at: [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
{in-hardirq-W} state was registered at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0370d2b>] cpuidle_idle_call+0x74/0x99
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
irq event stamp: 1777
hardirqs last enabled at (1777): [<c0169c04>] kfree+0xee/0x105
hardirqs last disabled at (1776): [<c0169b9d>] kfree+0x87/0x105
softirqs last enabled at (1756): [<c03cb7ab>] dev_deactivate+0x86/0xa5
softirqs last disabled at (1754): [<c045300e>] _spin_lock_bh+0xe/0x47

other info that might help us debug this:
1 lock held by ifconfig/5492:
#0: (rtnl_mutex){--..}, at: [<c0451778>] mutex_lock+0x1c/0x1f

stack backtrace:
[<c0104869>] show_trace_log_lvl+0x1a/0x30
[<c01053ad>] show_trace+0x12/0x14
[<c0105515>] dump_stack+0x15/0x17
[<c0136ed9>] print_usage_bug+0x145/0x14f
[<c0137ce7>] mark_lock+0x61f/0x70c
[<c0138ce0>] __lock_acquire+0x73e/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01480fd>] free_irq+0x11b/0x146
[<de871d59>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bde63>] dev_close+0x57/0x74
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
=======================

Regards,

Mariusz

2007-08-10 00:12:00

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86

On Fri, 10 Aug 2007 01:23:07 +0200
Mariusz Kozlowski <[email protected]> wrote:

> Hello,
>
> This probably doesn't have great impact ;) but ...
> To reproduce: run torture tests for RCU and then sysrq+q.
>
> SysRq : Show Pending Timers
> Timer List Version: v0.3
> HRTIMER_MAX_CLOCK_BASES: 2
> now at 1764338760370 nsecs
>
> cpu: 0
> clock 0:
> .index: 0
> .resolution: 1 nsecs
> .get_time: ktime_get_real
> .offset: 1186699025823815427 nsecs
> active timers:
> clock 1:
> .index: 1
> .resolution: 1 nsecs
> .get_time: ktime_get
> .offset: 0 nsecs
> active timers:
> #0: <3>BUG: sleeping function called from invalid context at kernel/mutex.c:86
> in_atomic():1, irqs_disabled():1
> INFO: lockdep is turned off.
> irq event stamp: 0
> hardirqs last enabled at (0): [<00000000>] 0x0
> hardirqs last disabled at (0): [<c0117def>] copy_process+0x4a8/0x144c
> softirqs last enabled at (0): [<c0117e0d>] copy_process+0x4c6/0x144c
> softirqs last disabled at (0): [<00000000>] 0x0
> [<c0104869>] show_trace_log_lvl+0x1a/0x30
> [<c01053ad>] show_trace+0x12/0x14
> [<c0105515>] dump_stack+0x15/0x17
> [<c0114da7>] __might_sleep+0xb7/0xc9
> [<c0451771>] mutex_lock+0x15/0x1f
> [<c0141b75>] lookup_module_symbol_name+0x17/0xc0
> [<c014272a>] lookup_symbol_name+0x3f/0x43
> [<c013287e>] print_name_offset+0x1f/0x96
> [<c01330f7>] timer_list_show+0x802/0xcbd
> [<c01335be>] sysrq_timer_list_show+0xc/0xe
> [<c02cc4a1>] sysrq_handle_show_timers+0x8/0xa
> [<c02cc3ac>] __handle_sysrq+0x7b/0x115
> [<c02cc466>] handle_sysrq+0x20/0x24
> [<c02c69c1>] kbd_event+0x3a8/0x5c7
> [<c0362f8f>] input_pass_event+0x8f/0x91
> [<c0363e77>] input_handle_event+0x98/0x38d
> [<c0364e6d>] input_event+0x54/0x67
> [<c03682c2>] atkbd_interrupt+0x200/0x59e
> [<c0360cd0>] serio_interrupt+0x7c/0x80
> [<c0361965>] i8042_interrupt+0x17a/0x289
> [<c0147a5d>] handle_IRQ_event+0x28/0x59
> [<c01493ca>] handle_level_irq+0xad/0x10b
> [<c0105a13>] do_IRQ+0x93/0xd0
> [<c010441e>] common_interrupt+0x2e/0x34
> [<df39d7e3>] rcu_read_delay+0x8/0x36 [rcutorture]
> [<df39d99a>] rcu_torture_reader+0x6e/0x169 [rcutorture]
> [<c012c11e>] kthread+0x36/0x58
> [<c010451b>] kernel_thread_helper+0x7/0x1c
> =======================

We seem to have made a mess in there. timer_list_show() ends up calling
lookup_module_symbol_name(), which takes a mutex. However print_symbol()
(which is called at oops time, interrupt time, etc) calls
module_address_lookup(), which is basically the same, only it doesn't take
the mutex.

I guess a quicky fix would be to switch
kernel/time/timer_list.c:print_name_offset() from
lookup_module_symbol_name() to module_address_lookup(). But we'd still
have a mess in there.

(adds ccs, runs away)

2007-08-10 00:30:55

by Nick Piggin

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: kernel BUG at mm/swap_state.c:78!

On Thu, Aug 09, 2007 at 04:37:35PM +0100, Hugh Dickins wrote:
> On Thu, 9 Aug 2007, Mariusz Kozlowski wrote:
> > Hello,
> >
> > Nothing unusual happening, allmodconfig compiling etc.
> > Not sure why it says kernel was tainted though ... hmmm.
> >
> > ------------[ cut here ]------------
> > kernel BUG at mm/swap_state.c:78!
> > invalid opcode: 0000 [#1]
> > PREEMPT
> > Modules linked in: orinoco_cs orinoco hermes pl2303 usbserial pcmcia 8250_pci 8250 serial_core yenta_socket rsrc_nonstatic pcmcia_core 8139too
> > CPU: 0
> > EIP: 0060:[<c01504b7>] Tainted: P VLI
> > EFLAGS: 00010246 (2.6.23-rc2-mm1 #1)
> > EIP is at __add_to_swap_cache+0xc6/0xd7
> > eax: 40000000 ebx: c11285c0 ecx: 000000d0 edx: 00000283
> > esi: c11285c0 edi: 00000283 ebp: c1858f90 esp: c1858f84
> > ds: 007b es: 007b fs: 0000 gs: 0000 ss: 0068
> > Process kprefetchd (pid: 236, ti=c1858000 task=c18d14d0 task.ti=c1858000)
> > Stack: 00000283 c11285c0 c3d5a3c8 c1858fa0 c01504ea c11285c0 00000000 c1858fcc
> > c015307c 00000001 00000007 00000002 00000002 00000283 00000000 fffffffc
> > 00000000 c0152d5c c1858fe0 c0127f2e c0127ef8 00000000 00000000 00000000
> > Call Trace:
> > [<c010456a>] show_trace_log_lvl+0x1a/0x30
> > [<c0104629>] show_stack_log_lvl+0xa9/0xd5
> > [<c010486e>] show_registers+0x219/0x38d
> > [<c0104ae6>] die+0x104/0x23e
> > [<c0419bd3>] do_trap+0x83/0xad
> > [<c0104edf>] do_invalid_op+0x88/0x92
> > [<c04199b2>] error_code+0x6a/0x70
> > [<c01504ea>] add_to_swap_cache+0x22/0x58
> > [<c015307c>] kprefetchd+0x320/0x364
> > [<c0127f2e>] kthread+0x36/0x58
> > [<c0104233>] kernel_thread_helper+0x7/0x14
> > =======================
> > INFO: lockdep is turned off.
> > Code: 0f 89 7b 0c 83 05 fc c9 53 c0 01 8b 13 c1 ea 1e 8d 04 12 01 d0 c1 e0 03 29 d0 c1 e0 05 ff 80 b8 c0 53 c0 ff 05 34 1d 68 c0 eb 96 <0f> 0b eb fe 0f 0b eb fe 0f 0b eb fe 8b 53 0c eb be 55 89 e5 56
> > EIP: [<c01504b7>] __add_to_swap_cache+0xc6/0xd7 SS:ESP 0068:c1858f84
>
> Don't worry about reproducing untainted, I got the same earlier
> and was just preparing and testing the hotfix: here it is...
>
>
> Nick's mm-clarify-__add_to_swap_cache-locking.patch is fine for mainline,
> but soon generates a "kernel BUG at mm/swap_state.c:78!" when it meets
> mm-implement-swap-prefetching.patch in 2.6.23-rc2-mm1. We could add a
> fix to the latter, but I think it's better to adjust Nick's, so that
> it's right for whichever tree it's in: move the responsibility to
> SetPageLocked from read_swap_cache_async to add_to_swap_cache.

Hmm, yeah I like this better, it is more like add_to_page_cache now.
Thanks.

2007-08-10 01:32:16

by Adrian Bunk

[permalink] [raw]
Subject: 2.6.23-rc2-mm1: rcutorture xtime usage

On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.23-rc2-mm1:
>...
> +allow-rcutorture-to-handle-synchronize_sched.patch
>...
> 2.6.23 queue
>...

All drivers were converted to no longer use xtime directly since it
might be quite outdated, but this patch adds a usage of xtime.tv_nsec
as RNG...

cu
Adrian

--

"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

2007-08-10 02:01:16

by Paul E. McKenney

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Fri, Aug 10, 2007 at 03:31:46AM +0200, Adrian Bunk wrote:
> On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
> >...
> > Changes since 2.6.23-rc2-mm1:
> >...
> > +allow-rcutorture-to-handle-synchronize_sched.patch
> >...
> > 2.6.23 queue
> >...
>
> All drivers were converted to no longer use xtime directly since it
> might be quite outdated, but this patch adds a usage of xtime.tv_nsec
> as RNG...

This code doesn't care if the time is outdated, as it is simply
periodically perturbing an RNG, but OK.

So, what interface are we supposed to be using instead? I cannot use
get_random_bytes() due to locking issues. This is not a cryptographically
secure usage, so the perturbation does not need to be extremely high
quality.

On x86, I would just grab the low-order bits of the TSC, but all of the
world is not an x86. ;-)

Thanx, Paul

2007-08-10 02:06:48

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Thu, 9 Aug 2007 19:00:40 -0700 "Paul E. McKenney" <[email protected]> wrote:

> On Fri, Aug 10, 2007 at 03:31:46AM +0200, Adrian Bunk wrote:
> > On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
> > >...
> > > Changes since 2.6.23-rc2-mm1:
> > >...
> > > +allow-rcutorture-to-handle-synchronize_sched.patch
> > >...
> > > 2.6.23 queue
> > >...
> >
> > All drivers were converted to no longer use xtime directly since it
> > might be quite outdated, but this patch adds a usage of xtime.tv_nsec
> > as RNG...
>
> This code doesn't care if the time is outdated, as it is simply
> periodically perturbing an RNG, but OK.
>
> So, what interface are we supposed to be using instead? I cannot use
> get_random_bytes() due to locking issues. This is not a cryptographically
> secure usage, so the perturbation does not need to be extremely high
> quality.
>
> On x86, I would just grab the low-order bits of the TSC, but all of the
> world is not an x86. ;-)
>

One used to use sched_clock() for this, then get frowned at. Now we
have cpu_clock()...

2007-08-10 02:22:51

by Adrian Bunk

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Thu, Aug 09, 2007 at 07:00:40PM -0700, Paul E. McKenney wrote:
> On Fri, Aug 10, 2007 at 03:31:46AM +0200, Adrian Bunk wrote:
> > On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
> > >...
> > > Changes since 2.6.23-rc2-mm1:
> > >...
> > > +allow-rcutorture-to-handle-synchronize_sched.patch
> > >...
> > > 2.6.23 queue
> > >...
> >
> > All drivers were converted to no longer use xtime directly since it
> > might be quite outdated, but this patch adds a usage of xtime.tv_nsec
> > as RNG...
>
> This code doesn't care if the time is outdated, as it is simply
> periodically perturbing an RNG, but OK.
>...

I should have been a bit more concrete:

I have a patch pending to unexport xtime for catching unsafe usages, and
you added an (ab)user.

> Thanx, Paul

cu
Adrian

--

"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

2007-08-10 05:37:01

by Josh Triplett

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86

Andrew Morton wrote:
> On Fri, 10 Aug 2007 01:23:07 +0200
> Mariusz Kozlowski <[email protected]> wrote:
>
>> Hello,
>>
>> This probably doesn't have great impact ;) but ...
>> To reproduce: run torture tests for RCU and then sysrq+q.
>>
>> SysRq : Show Pending Timers
>> Timer List Version: v0.3
>> HRTIMER_MAX_CLOCK_BASES: 2
>> now at 1764338760370 nsecs
>>
>> cpu: 0
>> clock 0:
>> .index: 0
>> .resolution: 1 nsecs
>> .get_time: ktime_get_real
>> .offset: 1186699025823815427 nsecs
>> active timers:
>> clock 1:
>> .index: 1
>> .resolution: 1 nsecs
>> .get_time: ktime_get
>> .offset: 0 nsecs
>> active timers:
>> #0: <3>BUG: sleeping function called from invalid context at kernel/mutex.c:86
>> in_atomic():1, irqs_disabled():1
>> INFO: lockdep is turned off.
>> irq event stamp: 0
>> hardirqs last enabled at (0): [<00000000>] 0x0
>> hardirqs last disabled at (0): [<c0117def>] copy_process+0x4a8/0x144c
>> softirqs last enabled at (0): [<c0117e0d>] copy_process+0x4c6/0x144c
>> softirqs last disabled at (0): [<00000000>] 0x0
>> [<c0104869>] show_trace_log_lvl+0x1a/0x30
>> [<c01053ad>] show_trace+0x12/0x14
>> [<c0105515>] dump_stack+0x15/0x17
>> [<c0114da7>] __might_sleep+0xb7/0xc9
>> [<c0451771>] mutex_lock+0x15/0x1f
>> [<c0141b75>] lookup_module_symbol_name+0x17/0xc0
>> [<c014272a>] lookup_symbol_name+0x3f/0x43
>> [<c013287e>] print_name_offset+0x1f/0x96
>> [<c01330f7>] timer_list_show+0x802/0xcbd
>> [<c01335be>] sysrq_timer_list_show+0xc/0xe
>> [<c02cc4a1>] sysrq_handle_show_timers+0x8/0xa
>> [<c02cc3ac>] __handle_sysrq+0x7b/0x115
>> [<c02cc466>] handle_sysrq+0x20/0x24
>> [<c02c69c1>] kbd_event+0x3a8/0x5c7
>> [<c0362f8f>] input_pass_event+0x8f/0x91
>> [<c0363e77>] input_handle_event+0x98/0x38d
>> [<c0364e6d>] input_event+0x54/0x67
>> [<c03682c2>] atkbd_interrupt+0x200/0x59e
>> [<c0360cd0>] serio_interrupt+0x7c/0x80
>> [<c0361965>] i8042_interrupt+0x17a/0x289
>> [<c0147a5d>] handle_IRQ_event+0x28/0x59
>> [<c01493ca>] handle_level_irq+0xad/0x10b
>> [<c0105a13>] do_IRQ+0x93/0xd0
>> [<c010441e>] common_interrupt+0x2e/0x34
>> [<df39d7e3>] rcu_read_delay+0x8/0x36 [rcutorture]
>> [<df39d99a>] rcu_torture_reader+0x6e/0x169 [rcutorture]
>> [<c012c11e>] kthread+0x36/0x58
>> [<c010451b>] kernel_thread_helper+0x7/0x1c
>> =======================
>
> We seem to have made a mess in there. timer_list_show() ends up calling
> lookup_module_symbol_name(), which takes a mutex. However print_symbol()
> (which is called at oops time, interrupt time, etc) calls
> module_address_lookup(), which is basically the same, only it doesn't take
> the mutex.
>
> I guess a quicky fix would be to switch
> kernel/time/timer_list.c:print_name_offset() from
> lookup_module_symbol_name() to module_address_lookup(). But we'd still
> have a mess in there.
>
> (adds ccs, runs away)

I don't think rcutorture matters for this bug. As far as I can tell, Andrew's
description of this problem will always apply to this particular sysrq: the
keyboard interrupt leads to handle_sysrq, which leads to timer_list_show,
which leads to lookup_module_symbol_name, which acquires a mutex.

- Josh Triplett

2007-08-10 07:06:24

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: irq lock inversion dependency detected

Hello,

And the winner of today is ...



=========================================================
[ INFO: possible irq lock inversion dependency detected ]
2.6.23-rc2-mm1 #7
---------------------------------------------------------
runscript.sh/5843 just changed the state of lock:
(_xmit_ETHER){-+..}, at: [<c03cbe79>] dev_watchdog+0x17/0xcc
but this lock took another, soft-irq-unsafe lock in the past:
(&tp->lock){--..}

and interrupts could create inverse lock ordering between them.


other info that might help us debug this:
no locks held by runscript.sh/5843.

the first lock's dependencies:
-> (_xmit_ETHER){-+..} ops: 21 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045303a>] _spin_lock_bh+0x3a/0x47
[<c03bc936>] dev_set_rx_mode+0x14/0x3b
[<c03bce3f>] dev_change_flags+0x68/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c03cbe79>] dev_watchdog+0x17/0xcc
[<c0122587>] run_timer_softirq+0x14b/0x1a9
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0453922>] error_code+0x6a/0x70
[<ffffffff>] 0xffffffff
hardirq-on-W at:
[<c0138ce0>] __lock_acquire+0x73e/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045303a>] _spin_lock_bh+0x3a/0x47
[<c03bc936>] dev_set_rx_mode+0x14/0x3b
[<c03bce3f>] dev_change_flags+0x68/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<c087aae8>] netdev_xmit_lock_key+0x8/0x1c0
-> (&tp->lock){--..} ops: 44 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de84d6e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01484a2>] request_irq+0xba/0x108
[<de84e5f6>] rtl8139_open+0x2f/0x1e2 [8139too]
[<c03bf09d>] dev_open+0x37/0x76
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
softirq-on-W at:
[<c0138d09>] __lock_acquire+0x767/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de84d6e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01480fd>] free_irq+0x11b/0x146
[<de84ed59>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bde63>] dev_close+0x57/0x74
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
hardirq-on-W at:
[<c0138ce0>] __lock_acquire+0x73e/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de84d6e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01480fd>] free_irq+0x11b/0x146
[<de84ed59>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bde63>] dev_close+0x57/0x74
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<de852390>] __key.20003+0x0/0xffffd291 [8139too]
... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<de84d275>] rtl8139_set_rx_mode+0x1e/0x166 [8139too]
[<c03bc702>] __dev_set_rx_mode+0x24/0x85
[<c03bc948>] dev_set_rx_mode+0x26/0x3b
[<c03bf0c0>] dev_open+0x5a/0x76
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff

-> (&priv->lock){+...} ops: 103 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c04531dc>] _spin_lock_irq+0x3b/0x48
[<ded03256>] orinoco_init+0x8f5/0xbbd [orinoco]
[<c03be46e>] register_netdevice+0x13a/0x3f8
[<c03be75e>] register_netdev+0x32/0x3f
[<ded2d4bb>] orinoco_cs_probe+0x368/0x3df [orinoco_cs]
[<ded378d9>] pcmcia_device_probe+0xc9/0x14c [pcmcia]
[<c02f38bf>] driver_probe_device+0xa6/0x198
[<c02f3b02>] __driver_attach+0xa2/0xa4
[<c02f2d8a>] bus_for_each_dev+0x43/0x61
[<c02f3741>] driver_attach+0x19/0x1b
[<c02f30f9>] bus_add_driver+0x7e/0x1a5
[<c02f3caf>] driver_register+0x45/0x75
[<ded38560>] pcmcia_register_driver+0xdb/0x12f [pcmcia]
[<de84b024>] 0xde84b024
[<c0140357>] sys_init_module+0xc4/0x1622
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<ded03bb4>] orinoco_interrupt+0x3f/0x1219 [orinoco]
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<ded06a99>] orinoco_get_wireless_stats+0xeb/0x140 [orinoco]
[<c042baea>] get_wireless_stats+0x1a/0x21
[<c042c799>] wireless_seq_show+0x20/0x143
[<c0187387>] seq_read+0x1af/0x2b8
[<c01a1ec2>] proc_reg_read+0x57/0x78
[<c016d7f1>] vfs_read+0xaa/0x147
[<c016dc16>] sys_read+0x3d/0x7b
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<ded0a298>] __key.20617+0x0/0xffffc9cd [orinoco]
-> (lweventlist_lock){+...} ops: 8 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c03c80eb>] linkwatch_add_event+0x10/0x31
[<c03c81ca>] linkwatch_fire_event+0x35/0x37
[<c03cbb7a>] netif_carrier_off+0x19/0x20
[<ded023b5>] alloc_orinocodev+0x181/0x19c [orinoco]
[<ded2d170>] orinoco_cs_probe+0x1d/0x3df [orinoco_cs]
[<ded378d9>] pcmcia_device_probe+0xc9/0x14c [pcmcia]
[<c02f38bf>] driver_probe_device+0xa6/0x198
[<c02f3b02>] __driver_attach+0xa2/0xa4
[<c02f2d8a>] bus_for_each_dev+0x43/0x61
[<c02f3741>] driver_attach+0x19/0x1b
[<c02f30f9>] bus_add_driver+0x7e/0x1a5
[<c02f3caf>] driver_register+0x45/0x75
[<ded38560>] pcmcia_register_driver+0xdb/0x12f [pcmcia]
[<de84b024>] 0xde84b024
[<c0140357>] sys_init_module+0xc4/0x1622
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c03c80eb>] linkwatch_add_event+0x10/0x31
[<c03c81ca>] linkwatch_fire_event+0x35/0x37
[<c03cbbaa>] netif_carrier_on+0x29/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0370d2b>] cpuidle_idle_call+0x74/0x99
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
}
... key at: [<c05df370>] lweventlist_lock+0x10/0x20
... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c03c80eb>] linkwatch_add_event+0x10/0x31
[<c03c81ca>] linkwatch_fire_event+0x35/0x37
[<c03cbbaa>] netif_carrier_on+0x29/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0370d2b>] cpuidle_idle_call+0x74/0x99
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff

-> (&cwq->lock){++..} ops: 10212 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c01290d2>] __queue_work+0xf/0x2d
[<c012916f>] queue_work+0x57/0x90
[<c01287e4>] call_usermodehelper_exec+0xce/0xe1
[<c0265745>] kobject_uevent_env+0x34d/0x449
[<c026584b>] kobject_uevent+0xa/0xf
[<c0264f29>] kset_register+0x32/0x38
[<c0264f37>] subsystem_register+0x8/0xa
[<c02f330a>] bus_register+0x65/0x1f3
[<c060de66>] platform_bus_init+0x23/0x38
[<c060debc>] driver_init+0x1c/0x31
[<c05f868d>] kernel_init+0x5d/0x26b
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c01290d2>] __queue_work+0xf/0x2d
[<c012916f>] queue_work+0x57/0x90
[<c0292b4a>] acpi_os_execute+0xae/0xcb
[<c02aa9da>] acpi_ec_gpe_handler+0x4d/0x5e
[<c0298701>] acpi_ev_gpe_dispatch+0x4b/0x115
[<c0298a03>] acpi_ev_gpe_detect+0x9a/0xe1
[<c0297139>] acpi_ev_sci_xrupt_handler+0x15/0x1d
[<c029225e>] acpi_irq+0xe/0x18
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c01290d2>] __queue_work+0xf/0x2d
[<c0129114>] delayed_work_timer_fn+0x24/0x28
[<c0122587>] run_timer_softirq+0x14b/0x1a9
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0451778>] mutex_lock+0x1c/0x1f
[<c01ab52c>] sysfs_addrm_start+0x24/0x8a
[<c01aade2>] sysfs_add_file+0x40/0x93
[<c01ad2f9>] sysfs_create_group+0xa5/0x15c
[<c016aa1d>] sysfs_slab_add+0xae/0x155
[<c016b150>] kmem_cache_create+0xc2/0x1d2
[<c0608b8e>] cfq_init+0x5a/0xc6
[<c05f86c7>] kernel_init+0x97/0x26b
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
}
... key at: [<c0653ae8>] __key.11154+0x0/0x8
-> (&q->lock){++..} ops: 209326 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c04531dc>] _spin_lock_irq+0x3b/0x48
[<c0450505>] wait_for_completion+0x24/0xb5
[<c012c2a1>] kthread_create+0x69/0xa8
[<c0602fcc>] cpu_callback+0x48/0xa3
[<c0603043>] spawn_ksoftirqd+0x1c/0x4e
[<c05f866c>] kernel_init+0x3c/0x26b
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c0113d44>] __wake_up+0x15/0x42
[<c02aa9b3>] acpi_ec_gpe_handler+0x26/0x5e
[<c0298701>] acpi_ev_gpe_dispatch+0x4b/0x115
[<c0298a03>] acpi_ev_gpe_detect+0x9a/0xe1
[<c0297139>] acpi_ev_sci_xrupt_handler+0x15/0x1d
[<c029225e>] acpi_irq+0xe/0x18
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c0113c85>] complete+0x15/0x4b
[<c0129f8e>] wakeme_after_rcu+0xb/0xd
[<c012a0e3>] __rcu_process_callbacks+0x69/0x1cf
[<c012a25b>] rcu_process_callbacks+0x12/0x23
[<c011eef3>] tasklet_action+0x3b/0x7b
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
}
... key at: [<c0653f30>] __key.11659+0x0/0x8
-> (&rq->rq_lock_key){++..} ops: 1722217 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c060264a>] init_idle+0x40/0x6d
[<c06027e0>] sched_init+0x169/0x17c
[<c05f8970>] start_kernel+0xd5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c01157fe>] scheduler_tick+0x20/0x187
[<c0122d01>] update_process_times+0x43/0x62
[<c0133c35>] tick_periodic+0x24/0x75
[<c0133c9e>] tick_handle_periodic+0x18/0x7a
[<c01065ce>] timer_interrupt+0xe/0x15
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c014821a>] setup_irq+0xf2/0x20d
[<c060256f>] time_init_hook+0x19/0x1b
[<c05fbcc8>] hpet_time_init+0xd/0x15
[<c05f8a70>] start_kernel+0x1d5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c01157fe>] scheduler_tick+0x20/0x187
[<c0122d01>] update_process_times+0x43/0x62
[<c0133c35>] tick_periodic+0x24/0x75
[<c0133c9e>] tick_handle_periodic+0x18/0x7a
[<c01065ce>] timer_interrupt+0xe/0x15
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c011b680>] delayed_put_task_struct+0x2e/0x48
[<c012a0e3>] __rcu_process_callbacks+0x69/0x1cf
[<c012a25b>] rcu_process_callbacks+0x12/0x23
[<c011eef3>] tasklet_action+0x3b/0x7b
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c029d74c>] acpi_ex_system_io_space_handler+0x3f/0x45
[<c0296dd2>] acpi_ev_address_space_dispatch+0x12f/0x170
[<c029ab38>] acpi_ex_access_region+0x1a7/0x1b9
[<c029ac5b>] acpi_ex_field_datum_io+0x111/0x198
[<c029afd6>] acpi_ex_write_with_update_rule+0xf7/0x100
[<c029b25b>] acpi_ex_insert_into_field+0x27c/0x289
[<c029998c>] acpi_ex_write_data_to_field+0x207/0x21f
[<c029d9bc>] acpi_ex_store_object_to_node+0x70/0xa5
[<c029db4b>] acpi_ex_store+0xd5/0x216
[<c029baaa>] acpi_ex_opcode_1A_1T_1R+0x3a8/0x504
[<c0294734>] acpi_ds_exec_end_op+0xc1/0x3bd
[<c02a29fc>] acpi_ps_parse_loop+0x539/0x6d9
[<c02a1ebe>] acpi_ps_parse_aml+0x68/0x235
[<c02a30e0>] acpi_ps_execute_method+0x111/0x1b5
[<c02a051f>] acpi_ns_evaluate+0x93/0xe8
[<c02a0190>] acpi_evaluate_object+0x123/0x1bf
[<c0292dfb>] acpi_evaluate_integer+0x71/0xa4
[<c02a8de5>] acpi_bus_get_status+0x31/0x83
[<c02a990b>] acpi_add_single_object+0x1cb/0xab0
[<c02aa2ea>] acpi_bus_scan+0xfa/0x163
[<c060b0c5>] acpi_scan_init+0xcd/0xe9
[<c05f86c7>] kernel_init+0x97/0x26b
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
}
... key at: [<c0631d28>] per_cpu__runqueues+0x468/0x470
... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c0114ecb>] task_rq_lock+0x28/0x40
[<c0115054>] try_to_wake_up+0x18/0x96
[<c01150dd>] default_wake_function+0xb/0xd
[<c011284b>] __wake_up_common+0x39/0x59
[<c0113caa>] complete+0x3a/0x4b
[<c012c107>] kthread+0x1f/0x58
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c0113d44>] __wake_up+0x15/0x42
[<c0128d3b>] insert_work+0x60/0x75
[<c01290e2>] __queue_work+0x1f/0x2d
[<c012916f>] queue_work+0x57/0x90
[<c01287e4>] call_usermodehelper_exec+0xce/0xe1
[<c0265745>] kobject_uevent_env+0x34d/0x449
[<c026584b>] kobject_uevent+0xa/0xf
[<c0264f29>] kset_register+0x32/0x38
[<c0264f37>] subsystem_register+0x8/0xa
[<c02f330a>] bus_register+0x65/0x1f3
[<c060de66>] platform_bus_init+0x23/0x38
[<c060debc>] driver_init+0x1c/0x31
[<c05f868d>] kernel_init+0x5d/0x26b
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c01290d2>] __queue_work+0xf/0x2d
[<c012916f>] queue_work+0x57/0x90
[<c012957f>] queue_delayed_work+0x27/0x48
[<c01295c2>] schedule_delayed_work+0x22/0x26
[<c03c814c>] linkwatch_schedule_work+0x40/0x89
[<c03c81b9>] linkwatch_fire_event+0x24/0x37
[<c03cbbaa>] netif_carrier_on+0x29/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0370d2b>] cpuidle_idle_call+0x74/0x99
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff

-> (base_lock_keys + cpu){++..} ops: 1561679 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c0122ac6>] lock_timer_base+0x41/0x66
[<c0122b88>] __mod_timer+0x3b/0xc5
[<c0122cba>] mod_timer+0x47/0x4b
[<c060d141>] con_init+0x24b/0x27e
[<c060c815>] console_init+0x20/0x2e
[<c05f8a30>] start_kernel+0x195/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c0122ac6>] lock_timer_base+0x41/0x66
[<c0122b17>] del_timer+0x2c/0x62
[<c030312b>] ide_intr+0x72/0x1f0
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c04531dc>] _spin_lock_irq+0x3b/0x48
[<c0122465>] run_timer_softirq+0x29/0x1a9
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c014821a>] setup_irq+0xf2/0x20d
[<c060256f>] time_init_hook+0x19/0x1b
[<c05fbcc8>] hpet_time_init+0xd/0x15
[<c05f8a70>] start_kernel+0x1d5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
}
... key at: [<c0653a96>] base_lock_keys+0x0/0xa
... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c0122ac6>] lock_timer_base+0x41/0x66
[<c0122b88>] __mod_timer+0x3b/0xc5
[<c0122cba>] mod_timer+0x47/0x4b
[<c03cb677>] __netdev_watchdog_up+0x37/0x50
[<c03cbba0>] netif_carrier_on+0x1f/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0370d2b>] cpuidle_idle_call+0x74/0x99
[<c01023e7>] cpu_idle+0x87/0x89
[<c044fa24>] rest_init+0x60/0x62
[<c05f8ad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff

-> (&list->lock#2){.+..} ops: 12 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c03b794b>] skb_queue_tail+0x14/0x33
[<c042beab>] wireless_send_event+0x348/0x369
[<c042c1e9>] ioctl_standard_call+0x1b2/0x34d
[<c042c6de>] wext_handle_ioctl+0x35a/0x3e4
[<c03beff5>] dev_ioctl+0x31e/0x325
[<c03b1dcc>] sock_ioctl+0xb7/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c03b79fc>] skb_dequeue+0x12/0x50
[<c042bb5d>] wireless_nlevent_process+0x2d/0x33
[<c011eef3>] tasklet_action+0x3b/0x7b
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<ded028e3>] orinoco_ioctl_commit+0x8e/0x10c [orinoco]
[<c042bb20>] call_commit_handler+0x2f/0x3f
[<c042c202>] ioctl_standard_call+0x1cb/0x34d
[<c042c6de>] wext_handle_ioctl+0x35a/0x3e4
[<c03beff5>] dev_ioctl+0x31e/0x325
[<c03b1dcc>] sock_ioctl+0xb7/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<c0880b80>] __key.13452+0x0/0x20
... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c03b794b>] skb_queue_tail+0x14/0x33
[<c042beab>] wireless_send_event+0x348/0x369
[<ded03b69>] orinoco_send_wevents+0x9a/0xa6 [orinoco]
[<c0128bf8>] run_workqueue+0x110/0x1f3
[<c0129718>] worker_thread+0x9a/0xf2
[<c012c11e>] kthread+0x36/0x58
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

-> (&rq->rq_lock_key){++..} ops: 1722217 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<c060264a>] init_idle+0x40/0x6d
[<c06027e0>] sched_init+0x169/0x17c
[<c05f8970>] start_kernel+0xd5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c0138eeb>] __lock_acquire+0x949/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c01157fe>] scheduler_tick+0x20/0x187
[<c0122d01>] update_process_times+0x43/0x62
[<c0133c35>] tick_periodic+0x24/0x75
[<c0133c9e>] tick_handle_periodic+0x18/0x7a
[<c01065ce>] timer_interrupt+0xe/0x15
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c014821a>] setup_irq+0xf2/0x20d
[<c060256f>] time_init_hook+0x19/0x1b
[<c05fbcc8>] hpet_time_init+0xd/0x15
[<c05f8a70>] start_kernel+0x1d5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c01157fe>] scheduler_tick+0x20/0x187
[<c0122d01>] update_process_times+0x43/0x62
[<c0133c35>] tick_periodic+0x24/0x75
[<c0133c9e>] tick_handle_periodic+0x18/0x7a
[<c01065ce>] timer_interrupt+0xe/0x15
[<c0147a5d>] handle_IRQ_event+0x28/0x59
[<c01493ca>] handle_level_irq+0xad/0x10b
[<c0105a13>] do_IRQ+0x93/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c011b680>] delayed_put_task_struct+0x2e/0x48
[<c012a0e3>] __rcu_process_callbacks+0x69/0x1cf
[<c012a25b>] rcu_process_callbacks+0x12/0x23
[<c011eef3>] tasklet_action+0x3b/0x7b
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c029d74c>] acpi_ex_system_io_space_handler+0x3f/0x45
[<c0296dd2>] acpi_ev_address_space_dispatch+0x12f/0x170
[<c029ab38>] acpi_ex_access_region+0x1a7/0x1b9
[<c029ac5b>] acpi_ex_field_datum_io+0x111/0x198
[<c029afd6>] acpi_ex_write_with_update_rule+0xf7/0x100
[<c029b25b>] acpi_ex_insert_into_field+0x27c/0x289
[<c029998c>] acpi_ex_write_data_to_field+0x207/0x21f
[<c029d9bc>] acpi_ex_store_object_to_node+0x70/0xa5
[<c029db4b>] acpi_ex_store+0xd5/0x216
[<c029baaa>] acpi_ex_opcode_1A_1T_1R+0x3a8/0x504
[<c0294734>] acpi_ds_exec_end_op+0xc1/0x3bd
[<c02a29fc>] acpi_ps_parse_loop+0x539/0x6d9
[<c02a1ebe>] acpi_ps_parse_aml+0x68/0x235
[<c02a30e0>] acpi_ps_execute_method+0x111/0x1b5
[<c02a051f>] acpi_ns_evaluate+0x93/0xe8
[<c02a0190>] acpi_evaluate_object+0x123/0x1bf
[<c0292dfb>] acpi_evaluate_integer+0x71/0xa4
[<c02a8de5>] acpi_bus_get_status+0x31/0x83
[<c02a990b>] acpi_add_single_object+0x1cb/0xab0
[<c02aa2ea>] acpi_bus_scan+0xfa/0x163
[<c060b0c5>] acpi_scan_init+0xcd/0xe9
[<c05f86c7>] kernel_init+0x97/0x26b
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
}
... key at: [<c0631d28>] per_cpu__runqueues+0x468/0x470
... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c0114ecb>] task_rq_lock+0x28/0x40
[<c0115054>] try_to_wake_up+0x18/0x96
[<c01150fa>] wake_up_process+0xf/0x11
[<c011f71c>] __tasklet_schedule+0x6d/0x6f
[<c042bec7>] wireless_send_event+0x364/0x369
[<ded03b69>] orinoco_send_wevents+0x9a/0xa6 [orinoco]
[<c0128bf8>] run_workqueue+0x110/0x1f3
[<c0129718>] worker_thread+0x9a/0xf2
[<c012c11e>] kthread+0x36/0x58
[<c010451b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

... acquired at:
[<c013963d>] __lock_acquire+0x109b/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c045326f>] _spin_lock_irqsave+0x3e/0x4e
[<ded03598>] orinoco_set_multicast_list+0x1b/0x5f [orinoco]
[<c03bc702>] __dev_set_rx_mode+0x24/0x85
[<c03bc948>] dev_set_rx_mode+0x26/0x3b
[<c03bf0c0>] dev_open+0x5a/0x76
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff


the second lock's dependencies:
-> (&tp->lock){--..} ops: 44 {
initial-use at:
[<c01387b9>] __lock_acquire+0x217/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de84d6e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01484a2>] request_irq+0xba/0x108
[<de84e5f6>] rtl8139_open+0x2f/0x1e2 [8139too]
[<c03bf09d>] dev_open+0x37/0x76
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
softirq-on-W at:
[<c0138d09>] __lock_acquire+0x767/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de84d6e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01480fd>] free_irq+0x11b/0x146
[<de84ed59>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bde63>] dev_close+0x57/0x74
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
hardirq-on-W at:
[<c0138ce0>] __lock_acquire+0x73e/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<de84d6e0>] rtl8139_interrupt+0x27/0x46b [8139too]
[<c01480fd>] free_irq+0x11b/0x146
[<de84ed59>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bde63>] dev_close+0x57/0x74
[<c03bce65>] dev_change_flags+0x8e/0x190
[<c03fd37c>] devinet_ioctl+0x4af/0x652
[<c03fdc62>] inet_ioctl+0x56/0x71
[<c03b1dba>] sock_ioctl+0xa5/0x1d4
[<c0178b42>] do_ioctl+0x22/0x71
[<c0178be6>] vfs_ioctl+0x55/0x29e
[<c0178e62>] sys_ioctl+0x33/0x69
[<c01041aa>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<de852390>] __key.20003+0x0/0xffffd291 [8139too]

stack backtrace:
[<c0104869>] show_trace_log_lvl+0x1a/0x30
[<c01053ad>] show_trace+0x12/0x14
[<c0105515>] dump_stack+0x15/0x17
[<c0136d72>] print_irq_inversion_bug+0x101/0x123
[<c01376c1>] check_usage_forwards+0x3e/0x45
[<c0137877>] mark_lock+0x1af/0x70c
[<c0138c94>] __lock_acquire+0x6f2/0x11ac
[<c01397e7>] lock_acquire+0x99/0xb2
[<c0452ff3>] _spin_lock+0x35/0x42
[<c03cbe79>] dev_watchdog+0x17/0xcc
[<c0122587>] run_timer_softirq+0x14b/0x1a9
[<c011ee12>] __do_softirq+0x5b/0xb2
[<c011eeb6>] do_softirq+0x4d/0x4f
[<c011f19b>] irq_exit+0x48/0x4a
[<c0105a18>] do_IRQ+0x98/0xd0
[<c010441e>] common_interrupt+0x2e/0x34
[<c0453922>] error_code+0x6a/0x70
=======================
Clocksource tsc unstable (delta = 9373003303 ns)



Really no idea who to CC here ;)

Regards,

Mariusz

2007-08-10 07:27:22

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86

> >> This probably doesn't have great impact ;) but ...
> >> To reproduce: run torture tests for RCU and then sysrq+q.
> >>
> >> SysRq : Show Pending Timers
> >> Timer List Version: v0.3
> >> HRTIMER_MAX_CLOCK_BASES: 2
> >> now at 1764338760370 nsecs
> >>
> >> cpu: 0
> >> clock 0:
> >> .index: 0
> >> .resolution: 1 nsecs
> >> .get_time: ktime_get_real
> >> .offset: 1186699025823815427 nsecs
> >> active timers:
> >> clock 1:
> >> .index: 1
> >> .resolution: 1 nsecs
> >> .get_time: ktime_get
> >> .offset: 0 nsecs
> >> active timers:
> >> #0: <3>BUG: sleeping function called from invalid context at kernel/mutex.c:86
> >> in_atomic():1, irqs_disabled():1
> >> INFO: lockdep is turned off.
> >> irq event stamp: 0
> >> hardirqs last enabled at (0): [<00000000>] 0x0
> >> hardirqs last disabled at (0): [<c0117def>] copy_process+0x4a8/0x144c
> >> softirqs last enabled at (0): [<c0117e0d>] copy_process+0x4c6/0x144c
> >> softirqs last disabled at (0): [<00000000>] 0x0
> >> [<c0104869>] show_trace_log_lvl+0x1a/0x30
> >> [<c01053ad>] show_trace+0x12/0x14
> >> [<c0105515>] dump_stack+0x15/0x17
> >> [<c0114da7>] __might_sleep+0xb7/0xc9
> >> [<c0451771>] mutex_lock+0x15/0x1f
> >> [<c0141b75>] lookup_module_symbol_name+0x17/0xc0
> >> [<c014272a>] lookup_symbol_name+0x3f/0x43
> >> [<c013287e>] print_name_offset+0x1f/0x96
> >> [<c01330f7>] timer_list_show+0x802/0xcbd
> >> [<c01335be>] sysrq_timer_list_show+0xc/0xe
> >> [<c02cc4a1>] sysrq_handle_show_timers+0x8/0xa
> >> [<c02cc3ac>] __handle_sysrq+0x7b/0x115
> >> [<c02cc466>] handle_sysrq+0x20/0x24
> >> [<c02c69c1>] kbd_event+0x3a8/0x5c7
> >> [<c0362f8f>] input_pass_event+0x8f/0x91
> >> [<c0363e77>] input_handle_event+0x98/0x38d
> >> [<c0364e6d>] input_event+0x54/0x67
> >> [<c03682c2>] atkbd_interrupt+0x200/0x59e
> >> [<c0360cd0>] serio_interrupt+0x7c/0x80
> >> [<c0361965>] i8042_interrupt+0x17a/0x289
> >> [<c0147a5d>] handle_IRQ_event+0x28/0x59
> >> [<c01493ca>] handle_level_irq+0xad/0x10b
> >> [<c0105a13>] do_IRQ+0x93/0xd0
> >> [<c010441e>] common_interrupt+0x2e/0x34
> >> [<df39d7e3>] rcu_read_delay+0x8/0x36 [rcutorture]
> >> [<df39d99a>] rcu_torture_reader+0x6e/0x169 [rcutorture]
> >> [<c012c11e>] kthread+0x36/0x58
> >> [<c010451b>] kernel_thread_helper+0x7/0x1c
> >> =======================
> >
> > We seem to have made a mess in there. timer_list_show() ends up calling
> > lookup_module_symbol_name(), which takes a mutex. However print_symbol()
> > (which is called at oops time, interrupt time, etc) calls
> > module_address_lookup(), which is basically the same, only it doesn't take
> > the mutex.
> >
> > I guess a quicky fix would be to switch
> > kernel/time/timer_list.c:print_name_offset() from
> > lookup_module_symbol_name() to module_address_lookup(). But we'd still
> > have a mess in there.
> >
> > (adds ccs, runs away)
>
> I don't think rcutorture matters for this bug.

Maybe not but that's the only way I could trigger it (insmod rcutorture and sysrq+q).

Thanks,

Mariusz

2007-08-10 07:40:27

by Ingo Molnar

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86


* Andrew Morton <[email protected]> wrote:

> We seem to have made a mess in there. timer_list_show() ends up
> calling lookup_module_symbol_name(), which takes a mutex. However
> print_symbol() (which is called at oops time, interrupt time, etc)
> calls module_address_lookup(), which is basically the same, only it
> doesn't take the mutex.

hm, current upstream does:

static void print_name_offset(struct seq_file *m, void *sym)
{
char symname[KSYM_NAME_LEN];

if (lookup_symbol_name((unsigned long)sym, symname) < 0)

why was that changed? I think symbol lookups for debug purposes have to
be lockless, fundamentally.

Ingo

2007-08-10 07:55:53

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86

On Fri, 10 Aug 2007 09:40:00 +0200 Ingo Molnar <[email protected]> wrote:

>
> * Andrew Morton <[email protected]> wrote:
>
> > We seem to have made a mess in there. timer_list_show() ends up
> > calling lookup_module_symbol_name(), which takes a mutex. However
> > print_symbol() (which is called at oops time, interrupt time, etc)
> > calls module_address_lookup(), which is basically the same, only it
> > doesn't take the mutex.
>
> hm, current upstream does:
>
> static void print_name_offset(struct seq_file *m, void *sym)
> {
> char symname[KSYM_NAME_LEN];
>
> if (lookup_symbol_name((unsigned long)sym, symname) < 0)
>
> why was that changed?

It wasn't. lookup_symbol_name() calls lookup_module_symbol_name() which
calls mutex_lock().

> I think symbol lookups for debug purposes have to
> be lockless, fundamentally.
>

Sure, especially a sysrq thingy.

It's a bit nasty to just go in there and start walking data structures
without holding the needed lock though.

2007-08-10 13:10:39

by Andy Whitcroft

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1 -- PPC G5 kernel compile failure (patch)

Krzysztof Helt wrote:
> On Thu, 9 Aug 2007 14:04:49 +0100
> Andy Whitcroft <[email protected]> wrote:
>
>> Seeing the following compile error on a G5 mac:
>>
>> drivers/video/tdfxfb.c: In function 'tdfxfb_setup':
>> drivers/video/tdfxfb.c:1341: error: 'opt' undeclared (first use in this
>> function)
>> drivers/video/tdfxfb.c:1341: error: (Each undeclared identifier is
>> reported only once
>> drivers/video/tdfxfb.c:1341: error: for each function it appears in.)
>>
>> This seems to be the following fragment from tdfxfb-hardware-cursor:
>>
>> + } else if (!strcmp(this_opt, "hwcursor")) {
>> + hwcursor = simple_strtoul(opt + 9, NULL, 0);
>>
>> I guess the nieve fix would be s/opt/this_opt, but I am also
>> suspicious of the +9 here as hwcursor is only 8 long? Now this
>> seems to take a numeric value and I assume that is via hwcursor=N,
>> if so then the +9 would make sense _if_ the strcmp was against
>> "hwcursor=".
>>
>
> The patch below fixes all issues you have pointed out. It also fixes
> the description of the nomtrr option.
>
> ---
>
> From: Krzysztof Helt <[email protected]>
>
> This patch fixes compilation with setup options bug and corrects
> description of the nomtrr option.
>
> Signed-off-by: Krzysztof Helt <[email protected]>
>
> ---
>
> --- linux-2.6.22.new/drivers/video/tdfxfb.c 2007-08-09 16:11:23.870028259 +0200
> +++ linux-2.6.23/drivers/video/tdfxfb.c 2007-08-09 16:15:07.654781024 +0200
> @@ -1337,8 +1337,8 @@ static void tdfxfb_setup(char *options)
> nopan = 1;
> } else if (!strcmp(this_opt, "nowrap")) {
> nowrap = 1;
> - } else if (!strcmp(this_opt, "hwcursor")) {
> - hwcursor = simple_strtoul(opt + 9, NULL, 0);
> + } else if (!strncmp(this_opt, "hwcursor=", 9)) {
> + hwcursor = simple_strtoul(this_opt + 9, NULL, 0);
> #ifdef CONFIG_MTRR
> } else if (!strncmp(this_opt, "nomtrr", 6)) {
> nomtrr = 1;
> @@ -1409,7 +1409,7 @@ MODULE_PARM_DESC(hwcursor, "Enable hardw
> "(1=enable, 0=disable, default=1)");
> #ifdef CONFIG_MTRR
> module_param(nomtrr, bool, 0);
> -MODULE_PARM_DESC(nomtrr, "Disable MTRR support (0 or 1=disabled) (default=0)");
> +MODULE_PARM_DESC(nomtrr, "Disable MTRR support (default: enabled)");
> #endif
>
> module_init(tdfxfb_init);

Confirmed that this gets my kernel compiled and the result boots.

Tested-by: Andy Whitcroft <[email protected]>

-apw

2007-08-10 15:12:25

by Paul E. McKenney

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Thu, Aug 09, 2007 at 07:06:23PM -0700, Andrew Morton wrote:
> On Thu, 9 Aug 2007 19:00:40 -0700 "Paul E. McKenney" <[email protected]> wrote:
>
> > On Fri, Aug 10, 2007 at 03:31:46AM +0200, Adrian Bunk wrote:
> > > On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
> > > >...
> > > > Changes since 2.6.23-rc2-mm1:
> > > >...
> > > > +allow-rcutorture-to-handle-synchronize_sched.patch
> > > >...
> > > > 2.6.23 queue
> > > >...
> > >
> > > All drivers were converted to no longer use xtime directly since it
> > > might be quite outdated, but this patch adds a usage of xtime.tv_nsec
> > > as RNG...
> >
> > This code doesn't care if the time is outdated, as it is simply
> > periodically perturbing an RNG, but OK.
> >
> > So, what interface are we supposed to be using instead? I cannot use
> > get_random_bytes() due to locking issues. This is not a cryptographically
> > secure usage, so the perturbation does not need to be extremely high
> > quality.
> >
> > On x86, I would just grab the low-order bits of the TSC, but all of the
> > world is not an x86. ;-)
>
> One used to use sched_clock() for this, then get frowned at. Now we
> have cpu_clock()...

Hmmm... And cpu_clock() is not in 2.6.22, so must appear in some later
release. Which means that the rate of API change in this area is a
bit high, so I should avoid it like the plague. Therefore, I should
look for some other convenient source of entropy.

One convenient source would the per-CPU statistics that rcutorture
maintains. Of course, a given CPU's RNG is nearly in lock-step with
its own statistics, but not with the adjacent CPU's statistics...

I will send a patch.

Thanx, Paul

2007-08-10 17:12:47

by Andrew Morton

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Fri, 10 Aug 2007 08:12:08 -0700 "Paul E. McKenney" <[email protected]> wrote:

> > One used to use sched_clock() for this, then get frowned at. Now we
> > have cpu_clock()...
>
> Hmmm... And cpu_clock() is not in 2.6.22, so must appear in some later
> release. Which means that the rate of API change in this area is a
> bit high, so I should avoid it like the plague.

eh, it's been there for weeks. It is dust-encrusted.

> Therefore, I should
> look for some other convenient source of entropy.
>
> One convenient source would the per-CPU statistics that rcutorture
> maintains. Of course, a given CPU's RNG is nearly in lock-step with
> its own statistics, but not with the adjacent CPU's statistics...
>
> I will send a patch.

Please use cpu_clock(). It ain't going away.

2007-08-10 20:31:29

by Paul E. McKenney

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Fri, Aug 10, 2007 at 10:12:12AM -0700, Andrew Morton wrote:
> On Fri, 10 Aug 2007 08:12:08 -0700 "Paul E. McKenney" <[email protected]> wrote:
>
> > > One used to use sched_clock() for this, then get frowned at. Now we
> > > have cpu_clock()...
> >
> > Hmmm... And cpu_clock() is not in 2.6.22, so must appear in some later
> > release. Which means that the rate of API change in this area is a
> > bit high, so I should avoid it like the plague.
>
> eh, it's been there for weeks. It is dust-encrusted.
>
> > Therefore, I should
> > look for some other convenient source of entropy.
> >
> > One convenient source would the per-CPU statistics that rcutorture
> > maintains. Of course, a given CPU's RNG is nearly in lock-step with
> > its own statistics, but not with the adjacent CPU's statistics...
> >
> > I will send a patch.
>
> Please use cpu_clock(). It ain't going away.

D'accord...

Thanx, Paul

2007-08-11 00:29:59

by Paul E. McKenney

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Fri, Aug 10, 2007 at 01:30:55PM -0700, Paul E. McKenney wrote:
> On Fri, Aug 10, 2007 at 10:12:12AM -0700, Andrew Morton wrote:
> > On Fri, 10 Aug 2007 08:12:08 -0700 "Paul E. McKenney" <[email protected]> wrote:
> >
> > > > One used to use sched_clock() for this, then get frowned at. Now we
> > > > have cpu_clock()...
> > >
> > > Hmmm... And cpu_clock() is not in 2.6.22, so must appear in some later
> > > release. Which means that the rate of API change in this area is a
> > > bit high, so I should avoid it like the plague.
> >
> > eh, it's been there for weeks. It is dust-encrusted.
> >
> > > Therefore, I should
> > > look for some other convenient source of entropy.
> > >
> > > One convenient source would the per-CPU statistics that rcutorture
> > > maintains. Of course, a given CPU's RNG is nearly in lock-step with
> > > its own statistics, but not with the adjacent CPU's statistics...
> > >
> > > I will send a patch.
> >
> > Please use cpu_clock(). It ain't going away.
>
> D'accord...

Errmmm... No joy.

ERROR: "cpu_clock" [kernel/rcutorture.ko] undefined!

Turns out that cpu_clock also ain't exported, and rcutorture.c is
a module. Would adding an EXPORT_SYMBOL_GPL() as in the patch below
be acceptable?

If not, I have a tested patch to rcutorture.c that leverages statistical
counters. Your choice.

Thanx, Paul

Add an EXPORT_SYMBOL_GPL() for cpu_clock() and make rcutorture.c use it.
Compiles, but not yet tested.

Signed-off-by: Paul E. McKenney <[email protected]>
---

rcutorture.c | 8 ++------
sched.c | 2 ++
2 files changed, 4 insertions(+), 6 deletions(-)

diff -urpNa -X dontdiff linux-2.6.23-rc2/kernel/rcutorture.c linux-2.6.23-rc2-rcutorturesched/kernel/rcutorture.c
--- linux-2.6.23-rc2/kernel/rcutorture.c 2007-08-03 19:49:55.000000000 -0700
+++ linux-2.6.23-rc2-rcutorturesched/kernel/rcutorture.c 2007-08-10 17:15:22.000000000 -0700
@@ -42,7 +42,6 @@
#include <linux/notifier.h>
#include <linux/freezer.h>
#include <linux/cpu.h>
-#include <linux/random.h>
#include <linux/delay.h>
#include <linux/byteorder/swabb.h>
#include <linux/stat.h>
@@ -166,16 +165,13 @@ struct rcu_random_state {

/*
* Crude but fast random-number generator. Uses a linear congruential
- * generator, with occasional help from get_random_bytes().
+ * generator, with occasional help from cpu_clock().
*/
static unsigned long
rcu_random(struct rcu_random_state *rrsp)
{
- long refresh;
-
if (--rrsp->rrs_count < 0) {
- get_random_bytes(&refresh, sizeof(refresh));
- rrsp->rrs_state += refresh;
+ rrsp->rrs_state += (unsigned long)cpu_clock(smp_processor_id());
rrsp->rrs_count = RCU_RANDOM_REFRESH;
}
rrsp->rrs_state = rrsp->rrs_state * RCU_RANDOM_MULT + RCU_RANDOM_ADD;
diff -urpNa -X dontdiff linux-2.6.23-rc2/kernel/sched.c linux-2.6.23-rc2-rcutorturesched/kernel/sched.c
--- linux-2.6.23-rc2/kernel/sched.c 2007-08-03 19:49:55.000000000 -0700
+++ linux-2.6.23-rc2-rcutorturesched/kernel/sched.c 2007-08-10 17:22:57.000000000 -0700
@@ -394,6 +394,8 @@ unsigned long long cpu_clock(int cpu)
return now;
}

+EXPORT_SYMBOL_GPL(cpu_clock);
+
#ifdef CONFIG_FAIR_GROUP_SCHED
/* Change a task's ->cfs_rq if it moves across CPUs */
static inline void set_task_cfs_rq(struct task_struct *p)

2007-08-11 04:47:23

by Paul E. McKenney

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Fri, Aug 10, 2007 at 05:29:49PM -0700, Paul E. McKenney wrote:
>
> Errmmm... No joy.
>
> ERROR: "cpu_clock" [kernel/rcutorture.ko] undefined!
>
> Turns out that cpu_clock also ain't exported, and rcutorture.c is
> a module. Would adding an EXPORT_SYMBOL_GPL() as in the patch below
> be acceptable?

Except that the old xtime symbol was EXPORT_SYMBOL() rather than my
proposed EXPORT_SYMBOL_GPL() for the equivalent new cpu_clock().

Sigh!!! I will leave this one for others to sort out.

Andrew, please consider this patch withdrawn and apply the version that
does not rely on time for entropy. Please let me know if you would like
me to resend it.

Thanx, Paul

> If not, I have a tested patch to rcutorture.c that leverages statistical
> counters. Your choice.
>
> Thanx, Paul
>
> Add an EXPORT_SYMBOL_GPL() for cpu_clock() and make rcutorture.c use it.
> Compiles, but not yet tested.
>
> Signed-off-by: Paul E. McKenney <[email protected]>
> ---
>
> rcutorture.c | 8 ++------
> sched.c | 2 ++
> 2 files changed, 4 insertions(+), 6 deletions(-)
>
> diff -urpNa -X dontdiff linux-2.6.23-rc2/kernel/rcutorture.c linux-2.6.23-rc2-rcutorturesched/kernel/rcutorture.c
> --- linux-2.6.23-rc2/kernel/rcutorture.c 2007-08-03 19:49:55.000000000 -0700
> +++ linux-2.6.23-rc2-rcutorturesched/kernel/rcutorture.c 2007-08-10 17:15:22.000000000 -0700
> @@ -42,7 +42,6 @@
> #include <linux/notifier.h>
> #include <linux/freezer.h>
> #include <linux/cpu.h>
> -#include <linux/random.h>
> #include <linux/delay.h>
> #include <linux/byteorder/swabb.h>
> #include <linux/stat.h>
> @@ -166,16 +165,13 @@ struct rcu_random_state {
>
> /*
> * Crude but fast random-number generator. Uses a linear congruential
> - * generator, with occasional help from get_random_bytes().
> + * generator, with occasional help from cpu_clock().
> */
> static unsigned long
> rcu_random(struct rcu_random_state *rrsp)
> {
> - long refresh;
> -
> if (--rrsp->rrs_count < 0) {
> - get_random_bytes(&refresh, sizeof(refresh));
> - rrsp->rrs_state += refresh;
> + rrsp->rrs_state += (unsigned long)cpu_clock(smp_processor_id());
> rrsp->rrs_count = RCU_RANDOM_REFRESH;
> }
> rrsp->rrs_state = rrsp->rrs_state * RCU_RANDOM_MULT + RCU_RANDOM_ADD;
> diff -urpNa -X dontdiff linux-2.6.23-rc2/kernel/sched.c linux-2.6.23-rc2-rcutorturesched/kernel/sched.c
> --- linux-2.6.23-rc2/kernel/sched.c 2007-08-03 19:49:55.000000000 -0700
> +++ linux-2.6.23-rc2-rcutorturesched/kernel/sched.c 2007-08-10 17:22:57.000000000 -0700
> @@ -394,6 +394,8 @@ unsigned long long cpu_clock(int cpu)
> return now;
> }
>
> +EXPORT_SYMBOL_GPL(cpu_clock);
> +
> #ifdef CONFIG_FAIR_GROUP_SCHED
> /* Change a task's ->cfs_rq if it moves across CPUs */
> static inline void set_task_cfs_rq(struct task_struct *p)

2007-08-11 07:24:39

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: sleeping function called from invalid context at kernel/mutex.c:86

On Fri, Aug 10, 2007 at 12:55:17AM -0700, Andrew Morton wrote:
> On Fri, 10 Aug 2007 09:40:00 +0200 Ingo Molnar <[email protected]> wrote:
>
> >
> > * Andrew Morton <[email protected]> wrote:
> >
> > > We seem to have made a mess in there. timer_list_show() ends up
> > > calling lookup_module_symbol_name(), which takes a mutex. However
> > > print_symbol() (which is called at oops time, interrupt time, etc)
> > > calls module_address_lookup(), which is basically the same, only it
> > > doesn't take the mutex.
> >
> > hm, current upstream does:
> >
> > static void print_name_offset(struct seq_file *m, void *sym)
> > {
> > char symname[KSYM_NAME_LEN];
> >
> > if (lookup_symbol_name((unsigned long)sym, symname) < 0)
> >
> > why was that changed?
>
> It wasn't.

Oh no, it was! commit 9d65cb4a1718a072898c7a57a3bc61b2dc4bcd4d

Fix race between cat /proc/*/wchan and rmmod et al

kallsyms_lookup() can go iterating over modules list unprotected which is OK
for emergency situations (oops), but not OK for regular stuff like
/proc/*/wchan.

> lookup_symbol_name() calls lookup_module_symbol_name() which
> calls mutex_lock().
>
> > I think symbol lookups for debug purposes have to
> > be lockless, fundamentally.
> >
>
> Sure, especially a sysrq thingy.

I imagine user running powertop which IIRC trolls /proc/timer_list and
doing rmmod following powertop instructions.

> It's a bit nasty to just go in there and start walking data structures
> without holding the needed lock though.

Yep.

2007-08-11 18:09:44

by Ingo Molnar

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage


* Paul E. McKenney <[email protected]> wrote:

> Add an EXPORT_SYMBOL_GPL() for cpu_clock() and make rcutorture.c use it.
> Compiles, but not yet tested.
>
> Signed-off-by: Paul E. McKenney <[email protected]>

> --- linux-2.6.23-rc2/kernel/sched.c 2007-08-03 19:49:55.000000000 -0700
> +++ linux-2.6.23-rc2-rcutorturesched/kernel/sched.c 2007-08-10 17:22:57.000000000 -0700
> @@ -394,6 +394,8 @@ unsigned long long cpu_clock(int cpu)
> return now;
> }
>
> +EXPORT_SYMBOL_GPL(cpu_clock);

sure enough,

Acked-by: Ingo Molnar <[email protected]>

Ingo

2007-08-11 19:39:50

by Paul E. McKenney

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: rcutorture xtime usage

On Sat, Aug 11, 2007 at 08:09:09PM +0200, Ingo Molnar wrote:
>
> * Paul E. McKenney <[email protected]> wrote:
>
> > Add an EXPORT_SYMBOL_GPL() for cpu_clock() and make rcutorture.c use it.
> > Compiles, but not yet tested.
> >
> > Signed-off-by: Paul E. McKenney <[email protected]>
>
> > --- linux-2.6.23-rc2/kernel/sched.c 2007-08-03 19:49:55.000000000 -0700
> > +++ linux-2.6.23-rc2-rcutorturesched/kernel/sched.c 2007-08-10 17:22:57.000000000 -0700
> > @@ -394,6 +394,8 @@ unsigned long long cpu_clock(int cpu)
> > return now;
> > }
> >
> > +EXPORT_SYMBOL_GPL(cpu_clock);
>
> sure enough,
>
> Acked-by: Ingo Molnar <[email protected]>

Thank you!

Just for the record, given that the xtime API that it replaces
was EXPORT_SYMBOL(), I would have not objection to this also being
EXPORT_SYMBOL(). That said, I know of no specific reason for it being
other than EXPORT_SYMBOL_GPL().

Thanx, Paul

2007-08-14 21:32:41

by Adrian Bunk

[permalink] [raw]
Subject: [-mm patch] make fs/nfsd/nfs4callback.c:do_probe_callback() static

On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.23-rc2-mm1:
>...
> git-nfsd.patch
>...
> git trees
>...


do_probe_callback() can become static.

Signed-off-by: Adrian Bunk <[email protected]>

---
8177c6f652deb91fcb43c8ca86f7703a61468ba9
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index afdf66b..c17a520 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -369,7 +369,7 @@ nfsd4_lookupcred(struct nfs4_client *clp, int taskflags)
/* Reference counting, callback cleanup, etc., all look racy as heck.
* And why is cb_set an atomic? */

-int do_probe_callback(void *data)
+static int do_probe_callback(void *data)
{
struct nfs4_client *clp = data;
struct nfs4_callback *cb = &clp->cl_callback;

2007-08-14 21:33:25

by Adrian Bunk

[permalink] [raw]
Subject: [-mm patch] make drivers/ata/libata-scsi.c:ata_scsi_link_pm_policy() static

On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.23-rc2-mm1:
>...
> +alpm-enable-link-power-management-for-ata-drivers.patch
>...
> Updated ATA Aggressive Link Power Management patches
>...


ata_scsi_link_pm_policy() can become static.

Signed-off-by: Adrian Bunk <[email protected]>

---
91a4450d6bf353600316328f0a95299e8bb17ee0
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index ce631eb..1db065c 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -121,7 +121,7 @@ static const struct {
{ MEDIUM_POWER, "medium_power" },
};

-const char *ata_scsi_link_pm_policy(enum link_pm policy)
+static const char *ata_scsi_link_pm_policy(enum link_pm policy)
{
int i;
char *name = NULL;

2007-08-14 21:34:47

by Adrian Bunk

[permalink] [raw]
Subject: [-mm patch] unexport ide_acpi_set_state

On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.23-rc2-mm1:
>...
> +ide-ide-hook-acpi-psx-method-to-ide-power-on-off.patch
>...
> IDE tree updates
>...

This patch removes the unused EXPORT_SYMBOL_GPL(ide_acpi_set_state)

Signed-off-by: Adrian Bunk <[email protected]>

---

83b4e185ad61709d63cb44516b46a343d221d9f9
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c
index 6bff81a..1d5f682 100644
--- a/drivers/ide/ide-acpi.c
+++ b/drivers/ide/ide-acpi.c
@@ -649,7 +649,6 @@ void ide_acpi_set_state(ide_hwif_t *hwif, int on)
if (!on)
acpi_bus_set_power(hwif->acpidata->obj_handle, ACPI_STATE_D3);
}
-EXPORT_SYMBOL_GPL(ide_acpi_set_state);

/**
* ide_acpi_init - initialize the ACPI link for an IDE interface

2007-08-14 21:35:34

by Adrian Bunk

[permalink] [raw]
Subject: [-mm patch] drivers/mtd/mtdbdi.c is no longer an own module

mtdbdi.c is now in the same module as mtdcore.c

Signed-off-by: Adrian Bunk <[email protected]>

---

BTW: I'd even suggest merging mtdbdi.c into mtdcore.c since it only
contains these 3 small structs.

drivers/mtd/mtdbdi.c | 4 ----
1 file changed, 4 deletions(-)

12a09e985ee2fe258cecfef9b811f9202ec87c67
diff --git a/drivers/mtd/mtdbdi.c b/drivers/mtd/mtdbdi.c
index f9f8eef..ae2c06c 100644
--- a/drivers/mtd/mtdbdi.c
+++ b/drivers/mtd/mtdbdi.c
@@ -22,7 +22,6 @@
struct backing_dev_info mtd_bdi_unmappable = {
.capabilities = BDI_CAP_MAP_COPY,
};
-EXPORT_SYMBOL_GPL(mtd_bdi_unmappable);

/*
* backing device capabilities for R/O mappable devices (such as ROM)
@@ -33,7 +32,6 @@ struct backing_dev_info mtd_bdi_ro_mappable = {
.capabilities = (BDI_CAP_MAP_COPY | BDI_CAP_MAP_DIRECT |
BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP),
};
-EXPORT_SYMBOL_GPL(mtd_bdi_ro_mappable);

/*
* backing device capabilities for writable mappable devices (such as RAM)
@@ -45,6 +43,4 @@ struct backing_dev_info mtd_bdi_rw_mappable = {
BDI_CAP_EXEC_MAP | BDI_CAP_READ_MAP |
BDI_CAP_WRITE_MAP),
};
-EXPORT_SYMBOL_GPL(mtd_bdi_rw_mappable);

-MODULE_LICENSE("GPL v2");

2007-08-14 22:17:23

by J. Bruce Fields

[permalink] [raw]
Subject: Re: [-mm patch] make fs/nfsd/nfs4callback.c:do_probe_callback() static

On Tue, Aug 14, 2007 at 11:22:58PM +0200, Adrian Bunk wrote:
> On Thu, Aug 09, 2007 at 01:51:06AM -0700, Andrew Morton wrote:
> >...
> > Changes since 2.6.23-rc2-mm1:
> >...
> > git-nfsd.patch
> >...
> > git trees
> >...
>
>
> do_probe_callback() can become static.

Oops, thanks; applied.--b.

>
> Signed-off-by: Adrian Bunk <[email protected]>
>
> ---
> 8177c6f652deb91fcb43c8ca86f7703a61468ba9
> diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
> index afdf66b..c17a520 100644
> --- a/fs/nfsd/nfs4callback.c
> +++ b/fs/nfsd/nfs4callback.c
> @@ -369,7 +369,7 @@ nfsd4_lookupcred(struct nfs4_client *clp, int taskflags)
> /* Reference counting, callback cleanup, etc., all look racy as heck.
> * And why is cb_set an atomic? */
>
> -int do_probe_callback(void *data)
> +static int do_probe_callback(void *data)
> {
> struct nfs4_client *clp = data;
> struct nfs4_callback *cb = &clp->cl_callback;
>

2007-08-22 13:34:21

by Jarek Poplawski

[permalink] [raw]
Subject: [PATCH 2.6.23-rc3-mm1] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

On 10-08-2007 01:49, Mariusz Kozlowski wrote:
> Hello,
>
> =================================
> [ INFO: inconsistent lock state ]
> 2.6.23-rc2-mm1 #7
> ---------------------------------
> inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
> ifconfig/5492 [HC0[0]:SC0[0]:HE1:SE1] takes:
> (&tp->lock){+...}, at: [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> {in-hardirq-W} state was registered at:
> [<c0138eeb>] __lock_acquire+0x949/0x11ac
> [<c01397e7>] lock_acquire+0x99/0xb2
> [<c0452ff3>] _spin_lock+0x35/0x42
> [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> [<c0147a5d>] handle_IRQ_event+0x28/0x59
> [<c01493ca>] handle_level_irq+0xad/0x10b
> [<c0105a13>] do_IRQ+0x93/0xd0
> [<c010441e>] common_interrupt+0x2e/0x34
...
> other info that might help us debug this:
> 1 lock held by ifconfig/5492:
> #0: (rtnl_mutex){--..}, at: [<c0451778>] mutex_lock+0x1c/0x1f
>
> stack backtrace:
...
> [<c0452ff3>] _spin_lock+0x35/0x42
> [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> [<c01480fd>] free_irq+0x11b/0x146
> [<de871d59>] rtl8139_close+0x8a/0x14a [8139too]
> [<c03bde63>] dev_close+0x57/0x74
...

It looks like this was possible after David's fix, which really
enabled running of the handler in free_irq, but before Andrew's patch
disabling local irqs for this time.

So, this bug should be fixed, but IMHO similar problem is possible in
request_irq. And, I think, this is not only about lockdep complaining,
but real lockup possibility, because any locks in such a handler are
taken in another, not expected for them context, and could be
vulnerable (especially with softirqs, but probably hardirqs as well).

Reported-by: Mariusz Kozlowski <[email protected]>
Signed-off-by: Jarek Poplawski <[email protected]>

---

diff -Nurp 2.6.23-rc3-mm1-/kernel/irq/manage.c 2.6.23-rc3-mm1/kernel/irq/manage.c
--- 2.6.23-rc3-mm1-/kernel/irq/manage.c 2007-08-22 13:58:58.000000000 +0200
+++ 2.6.23-rc3-mm1/kernel/irq/manage.c 2007-08-22 14:12:21.000000000 +0200
@@ -546,14 +546,11 @@ int request_irq(unsigned int irq, irq_ha
* We do this before actually registering it, to make sure that
* a 'real' IRQ doesn't run in parallel with our fake
*/
- if (irqflags & IRQF_DISABLED) {
- unsigned long flags;
+ unsigned long flags;

- local_irq_save(flags);
- handler(irq, dev_id);
- local_irq_restore(flags);
- } else
- handler(irq, dev_id);
+ local_irq_save(flags);
+ handler(irq, dev_id);
+ local_irq_restore(flags);
}
#endif

2007-08-23 08:43:40

by Jarek Poplawski

[permalink] [raw]
Subject: [PATCH (take 2)] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

Andrew Morton pointed out that my changelog was unusable. Sorry!
Here is a second try with the changelog and kernel version changed.

Regards,
Jarek P.

------------>(take 2)

Subject: request_irq() - fix DEBUG_SHIRQ handling

Mariusz Kozlowski reported lockdep's warning:

> =================================
> [ INFO: inconsistent lock state ]
> 2.6.23-rc2-mm1 #7
> ---------------------------------
> inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
> ifconfig/5492 [HC0[0]:SC0[0]:HE1:SE1] takes:
> (&tp->lock){+...}, at: [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> {in-hardirq-W} state was registered at:
> [<c0138eeb>] __lock_acquire+0x949/0x11ac
> [<c01397e7>] lock_acquire+0x99/0xb2
> [<c0452ff3>] _spin_lock+0x35/0x42
> [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> [<c0147a5d>] handle_IRQ_event+0x28/0x59
> [<c01493ca>] handle_level_irq+0xad/0x10b
> [<c0105a13>] do_IRQ+0x93/0xd0
> [<c010441e>] common_interrupt+0x2e/0x34
...
> other info that might help us debug this:
> 1 lock held by ifconfig/5492:
> #0: (rtnl_mutex){--..}, at: [<c0451778>] mutex_lock+0x1c/0x1f
>
> stack backtrace:
...
> [<c0452ff3>] _spin_lock+0x35/0x42
> [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> [<c01480fd>] free_irq+0x11b/0x146
> [<de871d59>] rtl8139_close+0x8a/0x14a [8139too]
> [<c03bde63>] dev_close+0x57/0x74
...

This shows that a driver's irq handler was running both in hard interrupt
and process contexts with irqs enabled. The latter was done during
free_irq() call and was possible only with CONFIG_DEBUG_SHIRQ enabled.
This was fixed by another patch.

But similar problem is possible with request_irq(): any locks taken from
irq handler could be vulnerable - especially with soft interrupts. This
patch fixes it by disabling local interrupts during handler's run. (It
seems, disabling softirqs should be enough, but it needs more checking
on possible races or other special cases).

This patch is recommended to all stable versions since 2.6.21, too.

Reported-by: Mariusz Kozlowski <[email protected]>
Signed-off-by: Jarek Poplawski <[email protected]>

---

diff -Nurp 2.6.23-rc3-git6-/kernel/irq/manage.c 2.6.23-rc3-git6/kernel/irq/manage.c
--- 2.6.23-rc3-git6-/kernel/irq/manage.c 2007-08-23 10:11:35.000000000 +0200
+++ 2.6.23-rc3-git6/kernel/irq/manage.c 2007-08-23 10:16:29.000000000 +0200
@@ -555,14 +555,11 @@ int request_irq(unsigned int irq, irq_ha
* We do this before actually registering it, to make sure that
* a 'real' IRQ doesn't run in parallel with our fake
*/
- if (irqflags & IRQF_DISABLED) {
- unsigned long flags;
+ unsigned long flags;

- local_irq_save(flags);
- handler(irq, dev_id);
- local_irq_restore(flags);
- } else
- handler(irq, dev_id);
+ local_irq_save(flags);
+ handler(irq, dev_id);
+ local_irq_restore(flags);
}
#endif

2007-08-24 05:45:51

by Jarek Poplawski

[permalink] [raw]
Subject: Re: [PATCH (take 2)] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

On Thu, Aug 23, 2007 at 10:44:30AM +0200, Jarek Poplawski wrote:
> Andrew Morton pointed out that my changelog was unusable. Sorry!
> Here is a second try with the changelog and kernel version changed.
...
> ------------>(take 2)
>
> Subject: request_irq() - fix DEBUG_SHIRQ handling
...
> Signed-off-by: Jarek Poplawski <[email protected]>
>
> ---
>
> diff -Nurp 2.6.23-rc3-git6-/kernel/irq/manage.c 2.6.23-rc3-git6/kernel/irq/manage.c
> --- 2.6.23-rc3-git6-/kernel/irq/manage.c 2007-08-23 10:11:35.000000000 +0200
> +++ 2.6.23-rc3-git6/kernel/irq/manage.c 2007-08-23 10:16:29.000000000 +0200

So, this time I f-ed the diff part: it's not exactly against 2.6.23-rc-git6.
But, it's Andrew to blame: he should've known that some old & slow chips
can't do science and poetry at the same time. Sorry (for him)!

Anyway, beside an offset, should be OK...

Regards,
Jarek P.

2007-08-24 08:26:26

by Jarek Poplawski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: irq lock inversion dependency detected

On 10-08-2007 09:06, Mariusz Kozlowski wrote:
> Hello,
>
> And the winner of today is ...
>
>
>
> =========================================================
> [ INFO: possible irq lock inversion dependency detected ]
> 2.6.23-rc2-mm1 #7
> ---------------------------------------------------------
> runscript.sh/5843 just changed the state of lock:
> (_xmit_ETHER){-+..}, at: [<c03cbe79>] dev_watchdog+0x17/0xcc
> but this lock took another, soft-irq-unsafe lock in the past:
> (&tp->lock){--..}
>
> and interrupts could create inverse lock ordering between them.
...
> Really no idea who to CC here ;)

IMHO, this should be fixed by last changes to free_irq & request_irq.
(Seems to be possible only with CONFIG_DEBUG_SHIRQ?) Otherwise I can
be CC-ed - my pleasure!

Cheers,
Jarek P.

2007-08-24 08:49:33

by Jarek Poplawski

[permalink] [raw]
Subject: Re: 2.6.23-rc2-mm1: irq lock inversion dependency detected

On Fri, Aug 24, 2007 at 10:27:25AM +0200, Jarek Poplawski wrote:
> On 10-08-2007 09:06, Mariusz Kozlowski wrote:
...
> > =========================================================
> > [ INFO: possible irq lock inversion dependency detected ]
> > 2.6.23-rc2-mm1 #7
> > ---------------------------------------------------------
> > runscript.sh/5843 just changed the state of lock:
> > (_xmit_ETHER){-+..}, at: [<c03cbe79>] dev_watchdog+0x17/0xcc
> > but this lock took another, soft-irq-unsafe lock in the past:
> > (&tp->lock){--..}
> >
> > and interrupts could create inverse lock ordering between them.
> ...
> > Really no idea who to CC here ;)
>
> IMHO, this should be fixed by last changes to free_irq & request_irq.
> (Seems to be possible only with CONFIG_DEBUG_SHIRQ?) Otherwise I can
> be CC-ed - my pleasure!

OOPS! But, since it's about inversion - not state - there should be no
connection... Anyway if this returns currently (and if _SHIRQ only) I'm
interested.

Jarek P.

2007-08-25 09:43:45

by Mariusz Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 2.6.23-rc3-mm1] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

> > =================================
> > [ INFO: inconsistent lock state ]
> > 2.6.23-rc2-mm1 #7
> > ---------------------------------
> > inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
> > ifconfig/5492 [HC0[0]:SC0[0]:HE1:SE1] takes:
> > (&tp->lock){+...}, at: [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> > {in-hardirq-W} state was registered at:
> > [<c0138eeb>] __lock_acquire+0x949/0x11ac
> > [<c01397e7>] lock_acquire+0x99/0xb2
> > [<c0452ff3>] _spin_lock+0x35/0x42
> > [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> > [<c0147a5d>] handle_IRQ_event+0x28/0x59
> > [<c01493ca>] handle_level_irq+0xad/0x10b
> > [<c0105a13>] do_IRQ+0x93/0xd0
> > [<c010441e>] common_interrupt+0x2e/0x34
> ...
> > other info that might help us debug this:
> > 1 lock held by ifconfig/5492:
> > #0: (rtnl_mutex){--..}, at: [<c0451778>] mutex_lock+0x1c/0x1f
> >
> > stack backtrace:
> ...
> > [<c0452ff3>] _spin_lock+0x35/0x42
> > [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
> > [<c01480fd>] free_irq+0x11b/0x146
> > [<de871d59>] rtl8139_close+0x8a/0x14a [8139too]
> > [<c03bde63>] dev_close+0x57/0x74
> ...
>
> It looks like this was possible after David's fix, which really
> enabled running of the handler in free_irq, but before Andrew's patch
> disabling local irqs for this time.
>
> So, this bug should be fixed, but IMHO similar problem is possible in
> request_irq. And, I think, this is not only about lockdep complaining,
> but real lockup possibility, because any locks in such a handler are
> taken in another, not expected for them context, and could be
> vulnerable (especially with softirqs, but probably hardirqs as well).
>
> Reported-by: Mariusz Kozlowski <[email protected]>
> Signed-off-by: Jarek Poplawski <[email protected]>
>
> ---
>
> diff -Nurp 2.6.23-rc3-mm1-/kernel/irq/manage.c 2.6.23-rc3-mm1/kernel/irq/manage.c
> --- 2.6.23-rc3-mm1-/kernel/irq/manage.c 2007-08-22 13:58:58.000000000 +0200
> +++ 2.6.23-rc3-mm1/kernel/irq/manage.c 2007-08-22 14:12:21.000000000 +0200
> @@ -546,14 +546,11 @@ int request_irq(unsigned int irq, irq_ha
> * We do this before actually registering it, to make sure that
> * a 'real' IRQ doesn't run in parallel with our fake
> */
> - if (irqflags & IRQF_DISABLED) {
> - unsigned long flags;
> + unsigned long flags;
>
> - local_irq_save(flags);
> - handler(irq, dev_id);
> - local_irq_restore(flags);
> - } else
> - handler(irq, dev_id);
> + local_irq_save(flags);
> + handler(irq, dev_id);
> + local_irq_restore(flags);
> }
> #endif

I tested your patch and it still happens. Dmesg info from patched kernel attached.
I coulnd't reproduce that on 2.6.23-rc3-mm1 - but on 2.6.23-rc2-mm2 it is easily
reproducible.

If you need more info, test some patches, etc. - just mail me.

Pozdrawiam,

Mariusz


=========================================================
[ INFO: possible irq lock inversion dependency detected ]
2.6.23-rc2-mm2 #2
---------------------------------------------------------
runscript.sh/5065 just changed the state of lock:
(_xmit_ETHER){-+..}, at: [<c03cb659>] dev_watchdog+0x17/0xcc
but this lock took another, soft-irq-unsafe lock in the past:
(&tp->lock){--..}

and interrupts could create inverse lock ordering between them.


other info that might help us debug this:
1 lock held by runscript.sh/5065:
#0: (&mm->mmap_sem){----}, at: [<c0454569>] do_page_fault+0x159/0x6f0

the first lock's dependencies:
-> (_xmit_ETHER){-+..} ops: 21 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c045281a>] _spin_lock_bh+0x3a/0x47
[<c03bc096>] dev_set_rx_mode+0x14/0x3b
[<c03bc59f>] dev_change_flags+0x68/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c03cb659>] dev_watchdog+0x17/0xcc
[<c01224b7>] run_timer_softirq+0x14b/0x1a9
[<c011ecc2>] __do_softirq+0x5b/0xb2
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c014b039>] find_lock_page+0x9b/0xa5
[<c014d680>] filemap_fault+0x188/0x4d9
[<c015760d>] __do_fault+0xb7/0x444
[<c0159164>] handle_mm_fault+0x18a/0x6fc
[<c0454864>] do_page_fault+0x454/0x6f0
[<c0453102>] error_code+0x6a/0x70
[<ffffffff>] 0xffffffff
hardirq-on-W at:
[<c01393d0>] __lock_acquire+0x73e/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c045281a>] _spin_lock_bh+0x3a/0x47
[<c03bc096>] dev_set_rx_mode+0x14/0x3b
[<c03bc59f>] dev_change_flags+0x68/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<c087e9e8>] netdev_xmit_lock_key+0x8/0x1c0
-> (&tp->lock){--..} ops: 44 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<de8706e2>] rtl8139_interrupt+0x27/0x469 [8139too]
[<c0148bae>] request_irq+0xd6/0xf8
[<de87152d>] rtl8139_open+0x2f/0x1e2 [8139too]
[<c03be7fd>] dev_open+0x37/0x76
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
softirq-on-W at:
[<c01393f9>] __lock_acquire+0x767/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<de8706e2>] rtl8139_interrupt+0x27/0x469 [8139too]
[<c01487ed>] free_irq+0x11b/0x146
[<de871c90>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bd5c3>] dev_close+0x57/0x74
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
hardirq-on-W at:
[<c01393d0>] __lock_acquire+0x73e/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<de8706e2>] rtl8139_interrupt+0x27/0x469 [8139too]
[<c01487ed>] free_irq+0x11b/0x146
[<de871c90>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bd5c3>] dev_close+0x57/0x74
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<de875190>] __key.19796+0x0/0xffffd3c9 [8139too]
... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<de870275>] rtl8139_set_rx_mode+0x1e/0x166 [8139too]
[<c03bbe62>] __dev_set_rx_mode+0x24/0x85
[<c03bc0a8>] dev_set_rx_mode+0x26/0x3b
[<c03be820>] dev_open+0x5a/0x76
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff

-> (&priv->lock){++..} ops: 103 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04529bc>] _spin_lock_irq+0x3b/0x48
[<ded03256>] orinoco_init+0x8f5/0xbbd [orinoco]
[<c03bdbce>] register_netdevice+0x13a/0x3f8
[<c03bdebe>] register_netdev+0x32/0x3f
[<ded2c4bb>] orinoco_cs_probe+0x368/0x3df [orinoco_cs]
[<ded378d9>] pcmcia_device_probe+0xc9/0x14c [pcmcia]
[<c02f323f>] driver_probe_device+0xa6/0x198
[<c02f3482>] __driver_attach+0xa2/0xa4
[<c02f270a>] bus_for_each_dev+0x43/0x61
[<c02f30c1>] driver_attach+0x19/0x1b
[<c02f2a79>] bus_add_driver+0x7e/0x1a5
[<c02f362f>] driver_register+0x45/0x75
[<ded38560>] pcmcia_register_driver+0xdb/0x12f [pcmcia]
[<de87c024>] 0xde87c024
[<c0140a47>] sys_init_module+0xc4/0x1622
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<ded03bb4>] orinoco_interrupt+0x3f/0x1219 [orinoco]
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<ded06a99>] orinoco_get_wireless_stats+0xeb/0x140 [orinoco]
[<c042b2aa>] get_wireless_stats+0x1a/0x21
[<c042bf59>] wireless_seq_show+0x20/0x143
[<c0187347>] seq_read+0x1af/0x2b8
[<c01a1ec2>] proc_reg_read+0x57/0x78
[<c016d771>] vfs_read+0xaa/0x147
[<c016db96>] sys_read+0x3d/0x7b
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<ded03bb4>] orinoco_interrupt+0x3f/0x1219 [orinoco]
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<ded06a99>] orinoco_get_wireless_stats+0xeb/0x140 [orinoco]
[<c042b2aa>] get_wireless_stats+0x1a/0x21
[<c042bf59>] wireless_seq_show+0x20/0x143
[<c0187347>] seq_read+0x1af/0x2b8
[<c01a1ec2>] proc_reg_read+0x57/0x78
[<c016d771>] vfs_read+0xaa/0x147
[<c016db96>] sys_read+0x3d/0x7b
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<ded0a298>] __key.20430+0x0/0xffffc9cd [orinoco]
-> (lweventlist_lock){+...} ops: 8 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c03c78cb>] linkwatch_add_event+0x10/0x31
[<c03c79aa>] linkwatch_fire_event+0x35/0x37
[<c03cb35a>] netif_carrier_off+0x19/0x20
[<ded023b5>] alloc_orinocodev+0x181/0x19c [orinoco]
[<ded2c170>] orinoco_cs_probe+0x1d/0x3df [orinoco_cs]
[<ded378d9>] pcmcia_device_probe+0xc9/0x14c [pcmcia]
[<c02f323f>] driver_probe_device+0xa6/0x198
[<c02f3482>] __driver_attach+0xa2/0xa4
[<c02f270a>] bus_for_each_dev+0x43/0x61
[<c02f30c1>] driver_attach+0x19/0x1b
[<c02f2a79>] bus_add_driver+0x7e/0x1a5
[<c02f362f>] driver_register+0x45/0x75
[<ded38560>] pcmcia_register_driver+0xdb/0x12f [pcmcia]
[<de87c024>] 0xde87c024
[<c0140a47>] sys_init_module+0xc4/0x1622
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c03c78cb>] linkwatch_add_event+0x10/0x31
[<c03c79aa>] linkwatch_fire_event+0x35/0x37
[<c03cb38a>] netif_carrier_on+0x29/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c03706bb>] cpuidle_idle_call+0x74/0x99
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
}
... key at: [<c05e4990>] lweventlist_lock+0x10/0x20
... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c03c78cb>] linkwatch_add_event+0x10/0x31
[<c03c79aa>] linkwatch_fire_event+0x35/0x37
[<c03cb38a>] netif_carrier_on+0x29/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c03706bb>] cpuidle_idle_call+0x74/0x99
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff

-> (&cwq->lock){++..} ops: 4755 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0129002>] __queue_work+0xf/0x2d
[<c012909f>] queue_work+0x57/0x90
[<c0128714>] call_usermodehelper_exec+0xce/0xe1
[<c0265375>] kobject_uevent_env+0x34d/0x449
[<c026547b>] kobject_uevent+0xa/0xf
[<c0264b59>] kset_register+0x32/0x38
[<c0264b67>] subsystem_register+0x8/0xa
[<c02f2c8a>] bus_register+0x65/0x1f3
[<c0611db6>] platform_bus_init+0x23/0x38
[<c0611e0c>] driver_init+0x1c/0x31
[<c05fc68d>] kernel_init+0x5d/0x26b
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0129002>] __queue_work+0xf/0x2d
[<c012909f>] queue_work+0x57/0x90
[<c029238a>] acpi_os_execute+0xae/0xcb
[<c02aa216>] acpi_ec_gpe_handler+0x4d/0x5e
[<c0297f41>] acpi_ev_gpe_dispatch+0x4b/0x115
[<c0298243>] acpi_ev_gpe_detect+0x9a/0xe1
[<c0296979>] acpi_ev_sci_xrupt_handler+0x15/0x1d
[<c0291a9e>] acpi_irq+0xe/0x18
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0129002>] __queue_work+0xf/0x2d
[<c0129044>] delayed_work_timer_fn+0x24/0x28
[<c01224b7>] run_timer_softirq+0x14b/0x1a9
[<c011ecc2>] __do_softirq+0x5b/0xb2
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c0452cac>] _spin_unlock+0x16/0x4d
[<c02638ce>] _atomic_dec_and_lock+0x2e/0x50
[<c017e962>] dput+0x36/0x101
[<c0176080>] __link_path_walk+0x8de/0xe06
[<c0176603>] link_path_walk+0x5b/0xe0
[<c01766a0>] path_walk+0x18/0x1a
[<c01768b2>] do_path_lookup+0x8f/0x21c
[<c017757a>] __path_lookup_intent_open+0x44/0x99
[<c0177658>] path_lookup_open+0x21/0x27
[<c0171056>] open_exec+0x27/0xac
[<c0172776>] do_execve+0x34/0x181
[<c0102752>] sys_execve+0x48/0x98
[<c0104256>] syscall_call+0x7/0xb
[<ffffffff>] 0xffffffff
}
... key at: [<c0657ae8>] __key.11148+0x0/0x8
-> (&q->lock){++..} ops: 69175 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04529bc>] _spin_lock_irq+0x3b/0x48
[<c044fce5>] wait_for_completion+0x24/0xb5
[<c012c1d1>] kthread_create+0x69/0xa8
[<c0606fcc>] cpu_callback+0x48/0xa3
[<c0607043>] spawn_ksoftirqd+0x1c/0x4e
[<c05fc66c>] kernel_init+0x3c/0x26b
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0113d3b>] __wake_up+0x15/0x42
[<c02aa1ef>] acpi_ec_gpe_handler+0x26/0x5e
[<c0297f41>] acpi_ev_gpe_dispatch+0x4b/0x115
[<c0298243>] acpi_ev_gpe_detect+0x9a/0xe1
[<c0296979>] acpi_ev_sci_xrupt_handler+0x15/0x1d
[<c0291a9e>] acpi_irq+0xe/0x18
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0113c7c>] complete+0x15/0x4b
[<c0129ebe>] wakeme_after_rcu+0xb/0xd
[<c012a013>] __rcu_process_callbacks+0x69/0x1cf
[<c012a18b>] rcu_process_callbacks+0x12/0x23
[<c011eda3>] tasklet_action+0x3b/0x7b
[<c011ecc2>] __do_softirq+0x5b/0xb2
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
}
... key at: [<c0657f30>] __key.11466+0x0/0x8
-> (&rq->rq_lock_key){++..} ops: 212030 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c060664a>] init_idle+0x40/0x6d
[<c06067e0>] sched_init+0x169/0x17c
[<c05fc970>] start_kernel+0xd5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c01157f3>] scheduler_tick+0x20/0x192
[<c0122c31>] update_process_times+0x43/0x62
[<c0134325>] tick_periodic+0x24/0x75
[<c013438e>] tick_handle_periodic+0x18/0x7a
[<c01064ae>] timer_interrupt+0xe/0x15
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c014890a>] setup_irq+0xf2/0x20d
[<c060656f>] time_init_hook+0x19/0x1b
[<c05ffcc8>] hpet_time_init+0xd/0x15
[<c05fca70>] start_kernel+0x1d5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c01157f3>] scheduler_tick+0x20/0x192
[<c0122c31>] update_process_times+0x43/0x62
[<c0134325>] tick_periodic+0x24/0x75
[<c013438e>] tick_handle_periodic+0x18/0x7a
[<c01064ae>] timer_interrupt+0xe/0x15
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c029cf88>] acpi_ex_system_io_space_handler+0x3f/0x45
[<c0296612>] acpi_ev_address_space_dispatch+0x12f/0x170
[<c029a374>] acpi_ex_access_region+0x1a7/0x1b9
[<c029a497>] acpi_ex_field_datum_io+0x111/0x198
[<c029a812>] acpi_ex_write_with_update_rule+0xf7/0x100
[<c029aa97>] acpi_ex_insert_into_field+0x27c/0x289
[<c02991cc>] acpi_ex_write_data_to_field+0x207/0x21f
[<c029d1f8>] acpi_ex_store_object_to_node+0x70/0xa5
[<c029d387>] acpi_ex_store+0xd5/0x216
[<c029b2e6>] acpi_ex_opcode_1A_1T_1R+0x3a8/0x504
[<c0293f74>] acpi_ds_exec_end_op+0xc1/0x3bd
[<c02a2238>] acpi_ps_parse_loop+0x539/0x6d9
[<c02a16fa>] acpi_ps_parse_aml+0x68/0x235
[<c02a291c>] acpi_ps_execute_method+0x111/0x1b5
[<c029fd5b>] acpi_ns_evaluate+0x93/0xe8
[<c02a509c>] acpi_ut_evaluate_object+0x55/0x15f
[<c02a521f>] acpi_ut_execute_STA+0x1d/0x49
[<c029f7e7>] acpi_ns_get_device_callback+0x5a/0x11c
[<c02a0e74>] acpi_ns_walk_namespace+0xf0/0x10c
[<c029f711>] acpi_get_devices+0x47/0x5d
[<c06100a6>] pnpacpi_init+0x5e/0x8b
[<c05fc6c7>] kernel_init+0x97/0x26b
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
}
... key at: [<c0635d28>] per_cpu__runqueues+0x468/0x470
... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c0114ec2>] task_rq_lock+0x28/0x40
[<c011504c>] try_to_wake_up+0x18/0x92
[<c01150d1>] default_wake_function+0xb/0xd
[<c011284b>] __wake_up_common+0x39/0x59
[<c0113ca1>] complete+0x3a/0x4b
[<c012c037>] kthread+0x1f/0x58
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0113d3b>] __wake_up+0x15/0x42
[<c0128c6b>] insert_work+0x60/0x75
[<c0129012>] __queue_work+0x1f/0x2d
[<c012909f>] queue_work+0x57/0x90
[<c0128714>] call_usermodehelper_exec+0xce/0xe1
[<c0265375>] kobject_uevent_env+0x34d/0x449
[<c026547b>] kobject_uevent+0xa/0xf
[<c0264b59>] kset_register+0x32/0x38
[<c0264b67>] subsystem_register+0x8/0xa
[<c02f2c8a>] bus_register+0x65/0x1f3
[<c0611db6>] platform_bus_init+0x23/0x38
[<c0611e0c>] driver_init+0x1c/0x31
[<c05fc68d>] kernel_init+0x5d/0x26b
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c0129002>] __queue_work+0xf/0x2d
[<c012909f>] queue_work+0x57/0x90
[<c01294af>] queue_delayed_work+0x27/0x48
[<c01294f2>] schedule_delayed_work+0x22/0x26
[<c03c792c>] linkwatch_schedule_work+0x40/0x89
[<c03c7999>] linkwatch_fire_event+0x24/0x37
[<c03cb38a>] netif_carrier_on+0x29/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c03706bb>] cpuidle_idle_call+0x74/0x99
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff

-> (base_lock_keys + cpu){++..} ops: 85554 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c01229f6>] lock_timer_base+0x41/0x66
[<c0122ab8>] __mod_timer+0x3b/0xc5
[<c0122bea>] mod_timer+0x47/0x4b
[<c0611091>] con_init+0x24b/0x27e
[<c061075a>] console_init+0x20/0x2e
[<c05fca30>] start_kernel+0x195/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c01229f6>] lock_timer_base+0x41/0x66
[<c0122a47>] del_timer+0x2c/0x62
[<c0302a7b>] ide_intr+0x72/0x1f0
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04529bc>] _spin_lock_irq+0x3b/0x48
[<c0122395>] run_timer_softirq+0x29/0x1a9
[<c011ecc2>] __do_softirq+0x5b/0xb2
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c014890a>] setup_irq+0xf2/0x20d
[<c060656f>] time_init_hook+0x19/0x1b
[<c05ffcc8>] hpet_time_init+0xd/0x15
[<c05fca70>] start_kernel+0x1d5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
}
... key at: [<c0657a96>] base_lock_keys+0x0/0xa
... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c01229f6>] lock_timer_base+0x41/0x66
[<c0122ab8>] __mod_timer+0x3b/0xc5
[<c0122bea>] mod_timer+0x47/0x4b
[<c03cae57>] __netdev_watchdog_up+0x37/0x50
[<c03cb380>] netif_carrier_on+0x1f/0x2b
[<ded04bdc>] orinoco_interrupt+0x1067/0x1219 [orinoco]
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c03706bb>] cpuidle_idle_call+0x74/0x99
[<c01025e4>] cpu_idle+0x87/0x89
[<c044f204>] rest_init+0x60/0x62
[<c05fcad5>] start_kernel+0x23a/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff

-> (&list->lock#2){.+..} ops: 12 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c03b70ab>] skb_queue_tail+0x14/0x33
[<c042b66b>] wireless_send_event+0x348/0x369
[<c042b9a9>] ioctl_standard_call+0x1b2/0x34d
[<c042be9e>] wext_handle_ioctl+0x35a/0x3e4
[<c03be755>] dev_ioctl+0x31e/0x325
[<c03b152c>] sock_ioctl+0xb7/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c03b715c>] skb_dequeue+0x12/0x50
[<c042b31d>] wireless_nlevent_process+0x2d/0x33
[<c011eda3>] tasklet_action+0x3b/0x7b
[<c011ecc2>] __do_softirq+0x5b/0xb2
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<ded028e3>] orinoco_ioctl_commit+0x8e/0x10c [orinoco]
[<c042b2e0>] call_commit_handler+0x2f/0x3f
[<c042b9c2>] ioctl_standard_call+0x1cb/0x34d
[<c042be9e>] wext_handle_ioctl+0x35a/0x3e4
[<c03be755>] dev_ioctl+0x31e/0x325
[<c03b152c>] sock_ioctl+0xb7/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<c0884a80>] __key.13323+0x0/0x20
... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c03b70ab>] skb_queue_tail+0x14/0x33
[<c042b66b>] wireless_send_event+0x348/0x369
[<ded03b69>] orinoco_send_wevents+0x9a/0xa6 [orinoco]
[<c0128b28>] run_workqueue+0x110/0x1f3
[<c0129648>] worker_thread+0x9a/0xf2
[<c012c04e>] kthread+0x36/0x58
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

-> (&rq->rq_lock_key){++..} ops: 212030 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<c060664a>] init_idle+0x40/0x6d
[<c06067e0>] sched_init+0x169/0x17c
[<c05fc970>] start_kernel+0xd5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-hardirq-W at:
[<c01395db>] __lock_acquire+0x949/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c01157f3>] scheduler_tick+0x20/0x192
[<c0122c31>] update_process_times+0x43/0x62
[<c0134325>] tick_periodic+0x24/0x75
[<c013438e>] tick_handle_periodic+0x18/0x7a
[<c01064ae>] timer_interrupt+0xe/0x15
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c014890a>] setup_irq+0xf2/0x20d
[<c060656f>] time_init_hook+0x19/0x1b
[<c05ffcc8>] hpet_time_init+0xd/0x15
[<c05fca70>] start_kernel+0x1d5/0x2c5
[<00000000>] 0x0
[<ffffffff>] 0xffffffff
in-softirq-W at:
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c01157f3>] scheduler_tick+0x20/0x192
[<c0122c31>] update_process_times+0x43/0x62
[<c0134325>] tick_periodic+0x24/0x75
[<c013438e>] tick_handle_periodic+0x18/0x7a
[<c01064ae>] timer_interrupt+0xe/0x15
[<c014814d>] handle_IRQ_event+0x28/0x59
[<c0149a0a>] handle_level_irq+0xad/0x10b
[<c01058f3>] do_IRQ+0x93/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c029cf88>] acpi_ex_system_io_space_handler+0x3f/0x45
[<c0296612>] acpi_ev_address_space_dispatch+0x12f/0x170
[<c029a374>] acpi_ex_access_region+0x1a7/0x1b9
[<c029a497>] acpi_ex_field_datum_io+0x111/0x198
[<c029a812>] acpi_ex_write_with_update_rule+0xf7/0x100
[<c029aa97>] acpi_ex_insert_into_field+0x27c/0x289
[<c02991cc>] acpi_ex_write_data_to_field+0x207/0x21f
[<c029d1f8>] acpi_ex_store_object_to_node+0x70/0xa5
[<c029d387>] acpi_ex_store+0xd5/0x216
[<c029b2e6>] acpi_ex_opcode_1A_1T_1R+0x3a8/0x504
[<c0293f74>] acpi_ds_exec_end_op+0xc1/0x3bd
[<c02a2238>] acpi_ps_parse_loop+0x539/0x6d9
[<c02a16fa>] acpi_ps_parse_aml+0x68/0x235
[<c02a291c>] acpi_ps_execute_method+0x111/0x1b5
[<c029fd5b>] acpi_ns_evaluate+0x93/0xe8
[<c02a509c>] acpi_ut_evaluate_object+0x55/0x15f
[<c02a521f>] acpi_ut_execute_STA+0x1d/0x49
[<c029f7e7>] acpi_ns_get_device_callback+0x5a/0x11c
[<c02a0e74>] acpi_ns_walk_namespace+0xf0/0x10c
[<c029f711>] acpi_get_devices+0x47/0x5d
[<c06100a6>] pnpacpi_init+0x5e/0x8b
[<c05fc6c7>] kernel_init+0x97/0x26b
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff
}
... key at: [<c0635d28>] per_cpu__runqueues+0x468/0x470
... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c0114ec2>] task_rq_lock+0x28/0x40
[<c011504c>] try_to_wake_up+0x18/0x92
[<c01150ee>] wake_up_process+0xf/0x11
[<c011f5cc>] __tasklet_schedule+0x6d/0x6f
[<c042b687>] wireless_send_event+0x364/0x369
[<ded03b69>] orinoco_send_wevents+0x9a/0xa6 [orinoco]
[<c0128b28>] run_workqueue+0x110/0x1f3
[<c0129648>] worker_thread+0x9a/0xf2
[<c012c04e>] kthread+0x36/0x58
[<c010454b>] kernel_thread_helper+0x7/0x1c
[<ffffffff>] 0xffffffff

... acquired at:
[<c0139d2d>] __lock_acquire+0x109b/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c0452a4f>] _spin_lock_irqsave+0x3e/0x4e
[<ded03598>] orinoco_set_multicast_list+0x1b/0x5f [orinoco]
[<c03bbe62>] __dev_set_rx_mode+0x24/0x85
[<c03bc0a8>] dev_set_rx_mode+0x26/0x3b
[<c03be820>] dev_open+0x5a/0x76
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff


the second lock's dependencies:
-> (&tp->lock){--..} ops: 44 {
initial-use at:
[<c0138ea9>] __lock_acquire+0x217/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<de8706e2>] rtl8139_interrupt+0x27/0x469 [8139too]
[<c0148bae>] request_irq+0xd6/0xf8
[<de87152d>] rtl8139_open+0x2f/0x1e2 [8139too]
[<c03be7fd>] dev_open+0x37/0x76
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
softirq-on-W at:
[<c01393f9>] __lock_acquire+0x767/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<de8706e2>] rtl8139_interrupt+0x27/0x469 [8139too]
[<c01487ed>] free_irq+0x11b/0x146
[<de871c90>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bd5c3>] dev_close+0x57/0x74
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
hardirq-on-W at:
[<c01393d0>] __lock_acquire+0x73e/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<de8706e2>] rtl8139_interrupt+0x27/0x469 [8139too]
[<c01487ed>] free_irq+0x11b/0x146
[<de871c90>] rtl8139_close+0x8a/0x14a [8139too]
[<c03bd5c3>] dev_close+0x57/0x74
[<c03bc5c5>] dev_change_flags+0x8e/0x190
[<c03fcb4c>] devinet_ioctl+0x4af/0x652
[<c03fd432>] inet_ioctl+0x56/0x71
[<c03b151a>] sock_ioctl+0xa5/0x1d4
[<c0178a42>] do_ioctl+0x22/0x71
[<c0178ae6>] vfs_ioctl+0x55/0x29e
[<c0178d62>] sys_ioctl+0x33/0x69
[<c01041da>] sysenter_past_esp+0x5f/0x99
[<ffffffff>] 0xffffffff
}
... key at: [<de875190>] __key.19796+0x0/0xffffd3c9 [8139too]

stack backtrace:
[<c0104899>] show_trace_log_lvl+0x1a/0x30
[<c0105296>] show_trace+0x12/0x14
[<c01053fe>] dump_stack+0x15/0x17
[<c0137462>] print_irq_inversion_bug+0x101/0x123
[<c0137db1>] check_usage_forwards+0x3e/0x45
[<c0137f67>] mark_lock+0x1af/0x70c
[<c0139384>] __lock_acquire+0x6f2/0x11ac
[<c0139ed7>] lock_acquire+0x99/0xb2
[<c04527d3>] _spin_lock+0x35/0x42
[<c03cb659>] dev_watchdog+0x17/0xcc
[<c01224b7>] run_timer_softirq+0x14b/0x1a9
[<c011ecc2>] __do_softirq+0x5b/0xb2
[<c011ed66>] do_softirq+0x4d/0x4f
[<c011f04b>] irq_exit+0x48/0x4a
[<c01058f8>] do_IRQ+0x98/0xd0
[<c010444e>] common_interrupt+0x2e/0x34
[<c014b039>] find_lock_page+0x9b/0xa5
[<c014d680>] filemap_fault+0x188/0x4d9
[<c015760d>] __do_fault+0xb7/0x444
[<c0159164>] handle_mm_fault+0x18a/0x6fc
[<c0454864>] do_page_fault+0x454/0x6f0
[<c0453102>] error_code+0x6a/0x70
=======================
Clocksource tsc unstable (delta = 9373021754 ns)

2007-08-27 05:53:24

by Jarek Poplawski

[permalink] [raw]
Subject: Re: [PATCH 2.6.23-rc3-mm1] request_irq fix DEBUG_SHIRQ handling Re: 2.6.23-rc2-mm1: rtl8139 inconsistent lock state

On Sat, Aug 25, 2007 at 11:43:08AM +0200, Mariusz Kozlowski wrote:
> > > =================================
> > > [ INFO: inconsistent lock state ]
> > > 2.6.23-rc2-mm1 #7
> > > ---------------------------------
> > > inconsistent {in-hardirq-W} -> {hardirq-on-W} usage.
> > > ifconfig/5492 [HC0[0]:SC0[0]:HE1:SE1] takes:
> > > (&tp->lock){+...}, at: [<de8706e0>] rtl8139_interrupt+0x27/0x46b [8139too]
...
> I tested your patch and it still happens. Dmesg info from patched kernel attached.
> I coulnd't reproduce that on 2.6.23-rc3-mm1 - but on 2.6.23-rc2-mm2 it is easily
> reproducible.
>
> If you need more info, test some patches, etc. - just mail me.
>
...
> =========================================================
> [ INFO: possible irq lock inversion dependency detected ]
> 2.6.23-rc2-mm2 #2
> ---------------------------------------------------------
> runscript.sh/5065 just changed the state of lock:
> (_xmit_ETHER){-+..}, at: [<c03cb659>] dev_watchdog+0x17/0xcc
> but this lock took another, soft-irq-unsafe lock in the past:
> (&tp->lock){--..}
>
> and interrupts could create inverse lock ordering between them.

It's OK! These're 2 different warnings. As a matter of fact, my patch
wasn't supposed to fix any of them, but something similar to the first
one, which was possible, but for some reason wasn't reported by
lockdep.

The first warning was fixed by Andrew Morton's patch to free_irq(),
so it shouldn't happen in -rc3-mm. The second warning could have been
fixed too, I don't know, but since it's quite long, I would prefer to
think about it only if it still happens in current -mm's.

Thanks,
Jarek P.