05 Feb, 2009

3 commits


28 Jan, 2009

5 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
     
  • Schedule a vblank signal, kill the process, and we'll go walking over freed
    memory. Given that no open-source userland exists using this, nor have I
    ever heard of a consumer, just let this code die.

    Signed-off-by: Eric Anholt
    Requested-by: Linus Torvalds
    Acked-by: Dave Airlie
    Signed-off-by: Linus Torvalds

    Eric Anholt
     
  • * 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

21 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-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
    m68k,m68knommu: merge header files

    Resolve trivial conflict in arch/m68knommu/include/asm/Kbuild

    Linus Torvalds
     
  • * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/i915: Fix cursor physical address choice to match the 2D driver.
    drm: stash AGP include under the do-we-have-AGP ifdef
    drm: don't whine about not reading EDID data
    drm/i915: hook up LVDS DPMS property
    drm/i915: remove unnecessary debug output in KMS init
    i915: fix freeing path for gem phys objects.
    drm: create mode_config idr lock
    drm: fix leak of device mappings since multi-master changes.

    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
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (29 commits)
    xen: unitialised return value in xenbus_write_transaction
    x86: fix section mismatch warning
    x86: unmask CPUID levels on Intel CPUs, fix
    x86: work around PAGE_KERNEL_WC not getting WC in iomap_atomic_prot_pfn.
    x86: use standard PIT frequency
    xen: handle highmem pages correctly when shrinking a domain
    x86, mm: fix pte_free()
    xen: actually release memory when shrinking domain
    x86: unmask CPUID levels on Intel CPUs
    x86: add MSR_IA32_MISC_ENABLE bits to <asm/msr-index.h>
    x86: fix PTE corruption issue while mapping RAM using /dev/mem
    x86: mtrr fix debug boot parameter
    x86: fix page attribute corruption with cpa()
    Revert "x86: signal: change type of paramter for sys_rt_sigreturn()"
    x86: use early clobbers in usercopy*.c
    x86: remove kernel_physical_mapping_init() from init section
    fix: crash: IP: __bitmap_intersects+0x48/0x73
    cpufreq: use work_on_cpu in acpi-cpufreq.c for drv_read and drv_write
    work_on_cpu: Use our own workqueue.
    work_on_cpu: don't try to get_online_cpus() in work_on_cpu.
    ...

    Linus Torvalds
     

26 Jan, 2009

1 commit


24 Jan, 2009

1 commit


23 Jan, 2009

2 commits


22 Jan, 2009

4 commits

  • Thomas Gleixner
     
  • Impact: Fix debugobjects warning

    debugobject enabled kernels spit out a warning in hpet code due to a
    workqueue which is initialized on stack.

    Add INIT_WORK_ON_STACK() which calls init_timer_on_stack() and use it
    in hpet.

    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     
  • Create a separate mode_config IDR lock for simplicity. The core DRM
    config structures (connector, mode, etc. lists) are still protected by
    the mode_config mutex, but the CRTC IDR (used for the various identifier
    IDs) is now protected by the mode_config idr_mutex. Simplifies the
    locking a bit and removes a warning.

    All objects are protected by the config mutex, we may in the future,
    split the object further to have reference counts.

    Signed-off-by: Jesse Barnes
    Signed-off-by: Dave Airlie

    Jesse Barnes
     
  • Improve usbnet's devdbg to always type-check diagnostic arguments,
    like dev_dbg (device.h). This makes no change to the resulting size of
    usbnet modules.

    This patch also removes an #ifdef DEBUG directive from rndis_wlan so
    it's devdbg statements are always type-checked at compile time.

    Signed-off-by: Steve Glendinning
    Signed-off-by: David Brownell
    Signed-off-by: David S. Miller

    Steve Glendinning
     

21 Jan, 2009

3 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
     
  • David S. Miller