28 Jan, 2009

4 commits

  • Commit d7b1956fed33d30c4815e848fd7a143722916868 ("DMI: Introduce
    dmi_first_match to make the interface more flexible") introduced compile
    errors like the following when !CONFIG_DMI

    drivers/ata/sata_sil.c: In function 'sil_broken_system_poweroff':
    drivers/ata/sata_sil.c:713: error: implicit declaration of function 'dmi_first_match'
    drivers/ata/sata_sil.c:713: warning: initialization makes pointer from integer without a cast

    We just need a dummy version of dmi_first_match() to fix this all up.

    Signed-off-by: Kumar Gala
    Signed-off-by: Linus Torvalds

    Kumar Gala
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (36 commits)
    USB: Driver for Freescale QUICC Engine USB Host Controller
    USB: option: add QUANTA HSDPA Data Card device ids
    USB: storage: Add another unusual_dev for off-by-one bug
    USB: unusual_dev: usb-storage needs to ignore a device
    USB: GADGET: fix !x & y
    USB: new id for ti_usb_3410_5052 driver
    USB: cdc-acm: Add another conexant modem to the quirks
    USB: 'option' driver - onda device MT503HS has wrong id
    USB: Remove ZTE modem from unusual_devices
    USB: storage: support of Dane-Elec MediaTouch USB device
    USB: usbmon: Implement compat_ioctl
    USB: add kernel-doc for wusb_dev in struct usb_device
    USB: ftdi_sio driver support of bar code scanner from Diebold
    USB: ftdi_sio: added Alti-2 VID and Neptune 3 PID
    USB: cp2101 device
    USB: usblp.c: add USBLP_QUIRK_BIDIR to Brother HL-1440
    USB: remove vernier labpro from ldusb
    USB: CDC-ACM quirk for MTK GPS
    USB: cdc-acm: support some gps data loggers
    USB: composite: Fix bug: low byte of w_index is the usb interface number not the whole 2 bytes of w_index
    ...

    Linus Torvalds
     
  • Reported by Randy Dunlap from a warning on the v2.6.29 merge window.

    Signed-off-by: Inaky Perez-Gonzalez
    Cc: David Vrabel
    Cc: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Inaky Perez-Gonzalez
     
  • gcc 3.4.6 doesn't like MODULE_DEVICE_TABLE(dmi, x) expansion enough to
    error out. Shut it up in a most simple way.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

27 Jan, 2009

18 commits

  • * 'hibern_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    SATA PIIX: Blacklist system that spins off disks during ACPI power off
    SATA Sil: Blacklist system that spins off disks during ACPI power off
    SATA AHCI: Blacklist system that spins off disks during ACPI power off
    SATA: Blacklisting of systems that spin off disks during ACPI power off
    DMI: Introduce dmi_first_match to make the interface more flexible
    Hibernation: Introduce system_entering_hibernation

    Linus Torvalds
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    pata-rb532-cf: remove set_irq_type from finish_io
    [libata] pata_via: support VX855, future chips whose IDE controller use 0x0571
    sata_mv: no longer experimental (v2)
    sata_mv: msi masking fix (v2)
    sata_mv: Properly initialize main irq mask
    sata_mv: remove bogus nsect restriction
    sata_mv: don't read hc_irq_cause
    sata_mv: fix 8-port timeouts on 508x/6081 chips
    sata_nv: fix MCP5x reset
    sata_nv: rename nv_nf2_hardreset()
    libata: set NODEV_HINT for 0x7f status
    libata-sff: fix incorrect EH message

    Linus Torvalds
     
  • Introduce new libata flags ATA_FLAG_NO_POWEROFF_SPINDOWN and
    ATA_FLAG_NO_HIBERNATE_SPINDOWN that, if set, will prevent disks from
    being spun off during system power off and hibernation, respectively
    (to handle the hibernation case we need the new system state
    SYSTEM_HIBERNATE_ENTER that can be checked against by libata, in
    analogy with SYSTEM_POWER_OFF).

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Jeff Garzik

    Rafael J. Wysocki
     
  • Some notebooks from HP have the problem that their BIOSes attempt to
    spin down hard drives before entering ACPI system states S4 and S5.
    This leads to a yo-yo effect during system power-off shutdown and the
    last phase of hibernation when the disk is first spun down by the
    kernel and then almost immediately turned on and off by the BIOS.
    This, in turn, may result in shortening the disk's life times.

    To prevent this from happening we can blacklist the affected systems
    using DMI information. However, only the on-board controlles should
    be blacklisted and their PCI slot numbers can be used for this
    purpose. Unfortunately the existing interface for checking DMI
    information of the system is not very convenient for this purpose,
    because to use it, we would have to define special callback functions
    or create a separate struct dmi_system_id table for each blacklisted
    system.

    To overcome this difficulty introduce a new function
    dmi_first_match() returning a pointer to the first entry in an array
    of struct dmi_system_id elements that matches the system DMI
    information. Then, we can use this pointer to access the entry's
    .driver_data field containing the additional information, such as
    the PCI slot number, allowing us to do the desired blacklisting.

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Jeff Garzik

    Rafael J. Wysocki
     
  • Introduce boolean function system_entering_hibernation() returning
    'true' during the last phase of hibernation, in which devices are
    being put into low power states and the sleep state (for example,
    ACPI S4) is finally entered.

    Some device drivers need such a function to check if the system is
    in the final phase of hibernation. In particular, some SATA drivers
    are going to use it for blacklisting systems in which the disks
    should not be spun down during the last phase of hibernation (the
    BIOS will do that anyway).

    Signed-off-by: Rafael J. Wysocki
    Signed-off-by: Jeff Garzik

    Rafael J. Wysocki
     
  • Introduced by 8adb711f3668b034e7b956fac951ed08b53e0d55 ("debugfs:
    introduce stub for debugfs_create_size_t() when DEBUG_FS=n") and due to
    a simple missing "static inline".

    Reported-and-tested-by: Jeff Chua
    Acked-by: Greg KH
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    i2c: Warn on deprecated binding model use
    eeprom: More consistent symbol names
    eeprom: Move 93cx6 eeprom driver to /drivers/misc/eeprom
    spi: Move at25 (for SPI eeproms) to /drivers/misc/eeprom
    i2c: Move old eeprom driver to /drivers/misc/eeprom
    i2c: Move at24 to drivers/misc/eeprom
    i2c: Quilt tree has moved
    i2c: Delete many unused adapter IDs
    i2c: Delete 10 unused driver IDs

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (92 commits)
    gianfar: Revive VLAN support
    vlan: Export symbols as non GPL symbols.
    bnx2x: tx_has_work should not wait for FW
    netxen: reduce memory footprint
    netxen: fix vlan tso/checksum offload
    net: Fix linux/if_frad.h's suitability for userspace.
    net: Move config NET_NS to from net/Kconfig to init/Kconfig
    isdn: Fix missing ifdef in isdn_ppp
    networking: document "nc" in addition to "netcat" in netconsole.txt
    e1000e: workaround hw errata
    af_key: initialize xfrm encap_oa
    virtio_net: Fix MAX_PACKET_LEN to support 802.1Q VLANs
    lcs: fix compilation for !CONFIG_IP_MULTICAST
    rtl8187: Add termination packet to prevent stall
    iwlwifi: fix rs_get_rate WARN_ON()
    p54usb: fix packet loss with first generation devices
    sctp: Fix another socket race during accept/peeloff
    sctp: Properly timestamp outgoing data chunks for rtx purposes
    sctp: Correctly start rtx timer on new packet transmissions.
    sctp: Fix crc32c calculations on big-endian arhes.
    ...

    Linus Torvalds
     
  • The userspace interfaces are protected by CONFIG_* ifdefs
    and that of course can't work.

    Reported by Jaswinder Singh Rajput.

    Signed-off-by: Krzysztof Hałasa
    Signed-off-by: David S. Miller

    Krzysztof Hałasa
     
  • Let the kernel developers know that i2c_attach_client() and
    i2c_detach_client() are deprecated and should no longer be used.
    Drivers using these should be converted to the standard device
    driver binding model (probe and remove methods.)

    Signed-off-by: Jean Delvare
    Acked-by: Ben Dooks

    Jean Delvare
     
  • Signed-off-by: Jean Delvare

    Jean Delvare
     
  • Signed-off-by: Jean Delvare

    Jean Delvare
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-quota-2.6:
    ocfs2: Remove ocfs2_dquot_initialize() and ocfs2_dquot_drop()
    quota: Improve locking

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    klist.c: bit 0 in pointer can't be used as flag
    debugfs: introduce stub for debugfs_create_size_t() when DEBUG_FS=n
    sysfs: fix problems with binary files
    PNP: fix broken pnp lowercasing for acpi module aliases
    driver core: Convert '/' to '!' in dev_set_name()

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci-2.6:
    PCI hotplug: fix lock imbalance in pciehp
    PCI PM: Restore standard config registers of all devices early
    PCI/MSI: bugfix/utilize for msi_capability_init()

    Linus Torvalds
     
  • * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx:
    i.MX31: framebuffer driver
    i.MX31: Image Processing Unit DMA and IRQ drivers
    dmaengine: add async_tx_clear_ack() macro
    dmaengine: dma_issue_pending_all == nop when CONFIG_DMA_ENGINE=n
    dmaengine: kill some dubious WARN_ONCEs
    fsldma: print correct IRQ on mpc83xx
    fsldma: check for NO_IRQ in fsl_dma_chan_remove()
    dmatest: Use custom map/unmap for destination buffer
    fsldma: use a valid 'device' for dma_pool_create
    dmaengine: fix dependency chaining

    Linus Torvalds
     
  • …/git/tip/linux-2.6-tip

    * 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    debugobjects: add and use INIT_WORK_ON_STACK
    rcu: remove duplicate CONFIG_RCU_CPU_STALL_DETECTOR
    relay: fix lock imbalance in relay_late_setup_files
    oprofile: fix uninitialized use of struct op_entry
    rcu: move Kconfig menu
    softlock: fix false panic which can occur if softlockup_thresh is reduced
    rcu: add __cpuinit to rcu_init_percpu_data()

    Linus Torvalds
     
  • …el/git/tip/linux-2.6-tip

    * 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    hrtimers: fix inconsistent lock state on resume in hres_timers_resume
    time-sched.c: tick_nohz_update_jiffies should be static
    locking, hpet: annotate false positive warning
    kernel/fork.c: unused variable 'ret'
    itimers: remove the per-cpu-ish-ness

    Linus Torvalds
     

26 Jan, 2009

1 commit


22 Jan, 2009

3 commits


21 Jan, 2009

2 commits

  • The commit a1ed5b0cffe4b16a93a6a3390e8cee0fbef94f86
    (klist: don't iterate over deleted entries) introduces use of the
    low bit in a pointer to indicate if the knode is dead or not,
    assuming that this bit is always free.

    This is not true for all architectures, CRIS for example may align data
    on byte borders.

    The result is a bunch of warnings on bootup, devices not being
    added correctly etc, reported by Hinko Kocevar :

    ------------[ cut here ]------------
    WARNING: at lib/klist.c:62 ()
    Modules linked in:

    Stack from c1fe1cf0:
    c01cc7f4 c1fe1d11 c000eb4e c000e4de 00000000 00000000 c1f4f78f c1f50c2d
    c01d008c c1fdd1a0 c1fdd1a0 c1fe1d38 c0192954 c1fe0000 00000000 c1fe1dc0
    00000002 7fffffff c1fe1da8 c0192d50 c1fe1dc0 00000002 7fffffff c1ff9fcc
    Call Trace: [] [] [] [] [] [] []
    [] [] [] [] [] [] [] []
    [] [] [] [] [] [] [] []
    [] [] [] [] [] [] [] []
    [] [] ---[ end trace 4eaa2a86a8e2da22 ]---
    ------------[ cut here ]------------
    Repeat ad nauseam.

    Wed, Jan 14, 2009 at 12:11:32AM +0100, Bastien ROUCARIES wrote:
    > Perhaps using a pointerhackalign trick on this structure where
    > #define pointerhackalign(x) __attribute__ ((aligned (x)))
    > and declare
    > struct klist_node {
    > ...
    > } pointerhackalign(2);
    >
    > Because __attribute__ ((aligned (x))) could only increase alignment
    > it will safe to do that and serve as documentation purpose :)

    That works, but we need to do it not for the struct klist_node,
    but for the struct we insert into the void * in klist_node,
    which is struct klist.

    Reported-by: Hinko Kocevar
    Signed-off-by: Jesper Nilsson
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Jesper Nilsson
     
  • Toralf Förster reported a build failure in
    the WiMAX stack when CONFIG_DEBUG_FS=n

    http://linuxwimax.org/pipermail/wimax/2009-January/000449.html

    This is due to debugfs_create_size_t() missing an stub that returns
    -ENODEV when the DEBUGFS subsystem is not configured in (like the rest
    of the debugfs API).

    This patch adds said stub.

    Reported-by: Toralf Förster
    Signed-off-by: Inaky Perez-Gonzalez
    Signed-off-by: Greg Kroah-Hartman

    Inaky Perez-Gonzalez
     

20 Jan, 2009

2 commits


17 Jan, 2009

3 commits

  • There is a problem in our handling of suspend-resume of PCI devices that
    many of them have their standard config registers restored with
    interrupts enabled and they are put into the full power state with
    interrupts enabled as well. This may lead to the following scenario:
    * an interrupt vector is shared between two or more devices
    * one device is resumed earlier and generates an interrupt
    * the interrupt handler of another device tries to handle it and
    attempts to access the device the config space of which hasn't been
    restored yet and/or which still is in a low power state
    * the system crashes as a result

    To prevent this from happening we should restore the standard
    configuration registers of all devices with interrupts disabled and we
    should put them into the D0 power state right after that.
    Unfortunately, this cannot be done using the existing
    pci_set_power_state(), because it can sleep. Also, to do it we have to
    make sure that the config spaces of all devices were actually saved
    during suspend.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Linus Torvalds
    Signed-off-by: Jesse Barnes

    Rafael J. Wysocki
     
  • We implement dqget() and dqput() that need neither dqonoff_mutex nor dqptr_sem.
    Then move dqget() and dqput() calls so that they are not called from under
    dqptr_sem. This is important because filesystem callbacks aren't called from
    under dqptr_sem which used to cause *lots* of problems with lock ranking
    (and with OCFS2 they became close to unsolvable).

    The patch also removes two functions which were introduced solely because OCFS2
    needed them to cope with the old locking scheme. As time showed, they were not
    enough for OCFS2 anyway and it would be unnecessary work to adapt them to the
    new locking scheme in which they aren't needed. As a result OCFS2 needs the
    following patch to compile properly with quotas. Sorry to any bisecters which
    hit this in advance.

    Signed-off-by: Jan Kara

    Jan Kara
     
  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    sata_fsl: Return non-zero on error in probe()
    drivers/ata/pata_ali.c: s/isa_bridge/ali_isa_bridge/ to fix alpha build
    libata: New driver for OCTEON SOC Compact Flash interface (v7).
    libata: Add another column to the ata_timing table.
    sata_via: Add VT8261 support
    pata_atiixp: update port enabledness test handling
    [libata] get-identity ioctl: Fix use of invalid memory pointer

    Linus Torvalds
     

16 Jan, 2009

7 commits

  • The forthcoming OCTEON SOC Compact Flash driver needs an additional
    timing value that was not available in the ata_timing table. I add a
    new column for dmack_hold time. The values were obtained from the
    Compact Flash specification Rev 4.1.

    Signed-off-by: David Daney
    Signed-off-by: Jeff Garzik

    David Daney
     
  • for SAS drivers.

    Caught by Ke Wei (and team?) at Marvell.

    Also, move the ata_scsi_ioctl export to libata-scsi.c, as that seems to be the
    general trend.

    Acked-by: James Bottomley
    Signed-off-by: Jeff Garzik

    Jeff Garzik
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (95 commits)
    b44: GFP_DMA skb should not escape from driver
    korina: do not use IRQF_SHARED with IRQF_DISABLED
    korina: do not stop queue here
    korina: fix handling tx_chain_tail
    korina: do tx at the right position
    korina: do schedule napi after testing for it
    korina: rework korina_rx() for use with napi
    korina: disable napi on close and restart
    korina: reset resource buffer size to 1536
    korina: fix usage of driver_data
    bnx2x: First slow path interrupt race
    bnx2x: MTU Filter
    bnx2x: Indirection table initialization index
    bnx2x: Missing brackets
    bnx2x: Fixing the doorbell size
    bnx2x: Endianness issues
    bnx2x: VLAN tagged packets without VLAN offload
    bnx2x: Protecting the link change indication
    bnx2x: Flow control updated before reporting the link
    bnx2x: Missing mask when calculating flow control
    ...

    Linus Torvalds
     
  • Impact: fix 15 make headers_check warnings:

    include of is preferred over

    Signed-off-by: Jaswinder Singh Rajput
    Cc: Ingo Molnar
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jaswinder Singh Rajput
     
  • Use the standard magic.h for btrfs and squashfs.

    Signed-off-by: Qinghuang Feng
    Cc: Phillip Lougher
    Cc: Chris Mason
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Qinghuang Feng
     
  • Fix __request_region() parameter kernel-doc notation and parameter name:

    Warning(linux-2.6.28-git10//kernel/resource.c:627): No description found for parameter 'flags'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix jbd header file kernel-doc notation:

    Warning(linux-2.6.28-git13//include/linux/jbd.h:823): No description found for parameter 'j_average_commit_time'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap