11 May, 2010

10 commits

  • It will be used in suspend code and serves as an easy wrap around
    copy_from_user. Similar to simple_read_from_buffer, it takes care
    of transfers with proper lengths depending on available and count
    parameters and advances ppos appropriately.

    Signed-off-by: Jiri Slaby
    Signed-off-by: Rafael J. Wysocki

    Jiri Slaby
     
  • Opening and closing /dev/snapshot causes the kernel to carry out
    some hibernate preparations that should be documented.

    [rjw: Added the changelog.]

    Signed-off-by: Pavel Machek
    Signed-off-by: Rafael J. Wysocki

    Pavel Machek
     
  • Add a few sysfs files relating to runtime power management for
    advanced debug purposes:

    runtime_enabled: is runtime PM enabled for this device? States
    are "enabled", "disabled", "forbidden" or a combination
    of the latter two.

    runtime_status: what state is the device in currently? E.g., it
    reports "suspended" for runtime-suspended devices, and
    "active" for active devices. NOTE: if runtime_enabled
    returns "disabled", the value of this file may not
    reflect its physical state.

    runtime_usage: the runtime PM usage count of a device

    runtime_active_kids: the runtime PM children usage count of a device, or
    0 if the ignore_children flag is set.

    Also, CONFIG_PM_SLEEP_ADVANCED_DEBUG is not defined in any Kconfig
    file, so replace it with CONFIG_PM_ADVANCED_DEBUG.

    Signed-off-by: Dominik Brodowski
    Acked-by: Alan Stern
    Signed-off-by: Rafael J. Wysocki

    Dominik Brodowski
     
  • Improve the device power management document after it's been
    updated by the previous patch.

    Signed-off-by: Alan Stern
    Signed-off-by: Rafael J. Wysocki

    Alan Stern
     
  • The device PM document, Documentation/power/devices.txt, is badly
    outdated and requires total rework to fit the current design of the
    PM framework. Make it more up to date.

    Signed-off-by: Rafael J. Wysocki
    Reviewed-by: Randy Dunlap

    Rafael J. Wysocki
     
  • This patch (as1361) changes the runtime PM interface slightly; it
    allows suspend requests to be scheduled while the runtime_suspend
    method is running. If the method succeeds then the scheduled request
    is cancelled, whereas if the method fails then an idle notification is
    sent only if no request was scheduled.

    Being able to schedule suspend requests from within a runtime_suspend
    method is useful for drivers that need to test for idleness and
    suspend the device all while holding a single spinlock, or for drivers
    that want to check for idleness by polling.

    Signed-off-by: Alan Stern
    Signed-off-by: Rafael J. Wysocki

    Alan Stern
     
  • Also change couple of stubs implemented as macros in !CONFIG_PM case
    in statinc inline functions to provide proper typechecking of
    arguments regardless of config.

    Signed-off-by: Dmitry Torokhov
    Signed-off-by: Rafael J. Wysocki

    Dmitry Torokhov
     
  • * 'fix/hda' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
    ALSA: Revert "ALSA: hda/realtek: quirk for D945GCLF2 mainboard"
    ALSA: hda - add support for Lenovo ThinkPad X100e in conexant codec
    ALSA: hda - fix DG45ID SPDIF output

    Linus Torvalds
     
  • After commit 1f36f774b2 ("Switch !O_CREAT case to use of do_last()") in
    2.6.34-rc1 autofs direct mounts stopped working. This is caused by
    current->link_count being 0 when ->follow_link() is called from
    do_filp_open().

    I can't work out why this hasn't been seen before Als patch series.

    This patch removes the autofs dependence on current->link_count.

    Signed-off-by: Ian Kent
    Cc: Al Viro
    Signed-off-by: Linus Torvalds

    Ian Kent
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    HID: fix suspend crash by moving initializations earlier
    HID: sony: fix sony_set_operational_bt
    HID: ntrig: Remove unused macro, TripleTap and QuadTap
    HID: ntrig: TipSwitch for single touch mode touch.
    HID: hidraw: fix numbered reports
    HID: wacom: remove annoying non-error printk
    HID: ntrig: Emit TOUCH with DOUBLETAP for single touch
    HID: add support for cymotion master solar keyboard
    HID: ntrig: explain firmware quirk
    HID: fix N-trig touch panel with recent firmware

    Linus Torvalds
     

10 May, 2010

5 commits

  • This reverts commit 7aee67466536bbf8bb44a95712c848a61c5a0acd.

    As it doesn't seem to be universally valid for all mainboard revisions of
    the D945GCLF2 and breaks snd-hda-intel/ snd-hda-codec-realtek on the Intel
    Corporation "D945GCLF2" (LF94510J.86A.0229.2009.0729.0209) mainboard.

    00:1b.0 Audio device [0403]: Intel Corporation N10/ICH 7 Family High Definition Audio Controller [8086:27d8] (rev 01)

    Signed-off-by: Stefan Lippers-Hollmann
    Cc: [2.6.33]
    Signed-off-by: Takashi Iwai

    Stefan Lippers-Hollmann
     
  • Ideapad quirks working for my ThinkPad X100e (microphone is not tested).

    Signed-off-by: Andrej Gelenberg
    Signed-off-by: Takashi Iwai

    Andrej Gelenberg
     
  • Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
    [SCSI] Retry commands with UNIT_ATTENTION sense codes to fix ext3/ext4 I/O error
    [SCSI] Enable retries for SYNCRONIZE_CACHE commands to fix I/O error
    [SCSI] scsi_debug: virtual_gb ignores sector_size
    [SCSI] libiscsi: regression: fix header digest errors
    [SCSI] fix locking around blk_abort_request()
    [SCSI] advansys: fix narrow board error path

    Linus Torvalds
     
  • commit 672917dcc78 ("cpuidle: menu governor: reduce latency on exit")
    added an optimization, where the analysis on the past idle period moved
    from the end of idle, to the beginning of the new idle.

    Unfortunately, this optimization had a bug where it zeroed one key
    variable for new use, that is needed for the analysis. The fix is
    simple, zero the variable after doing the work from the previous idle.

    During the audit of the code that found this issue, another issue was
    also found; the ->measured_us data structure member is never set, a
    local variable is always used instead.

    Signed-off-by: Arjan van de Ven
    Cc: Corrado Zoccolo
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

08 May, 2010

10 commits

  • Although the usbhid driver allocates its usbhid structure in the probe
    routine, several critical fields in that structure don't get
    initialized until usbhid_start(). However if report descriptor
    parsing fails then usbhid_start() is never called. This leads to
    problems during system suspend -- the system will freeze.

    This patch (as1378) fixes the bug by moving the initialization
    statements up into usbhid_probe().

    Signed-off-by: Alan Stern
    Reported-by: Bruno Prémont
    Tested-By: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Alan Stern
     
  • * 'for-linus' of git://neil.brown.name/md:
    md: restore ability of spare drives to spin down.
    md/raid6: Fix raid-6 read-error correction in degraded state

    Linus Torvalds
     
  • * 'urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6:
    pcmcia: fix compilation after 16bit state locking changes
    pcmcia: order userspace suspend and resume requests
    pcmcia: avoid pccard_validate_cis failure in resume callpath

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    blk-cgroup: Fix an RCU warning in blkiocg_create()
    blk-cgroup: Fix RCU correctness warning in cfq_init_queue()
    drbd: don't expose failed local READ to upper layers

    Linus Torvalds
     
  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/ttm: Remove the ttm_bo_block_reservation() function.
    drm/ttm: Remove some leftover debug messages.
    drm/radeon: async event synchronization for drmWaitVblank

    Linus Torvalds
     
  • Move initialization of the virtio framework before the initialization of
    mtd, so that block2mtd can be used on virtio-based block devices.

    Addresses https://bugzilla.kernel.org/show_bug.cgi?id=15644

    Signed-off-by: Stijn Tintel
    Signed-off-by: Rusty Russell
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds

    Stijn Tintel
     
  • * 'bugfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    NFS: Fix RCU issues in the NFSv4 delegation code
    NFSv4: Fix the locking in nfs_inode_reclaim_delegation()

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6:
    ACPI: sleep: init_set_sci_en_on_resume for Dell Studio 155x
    ACPI: fix acpi_hest_firmware_first_pci() caused oops
    sbshc: acpi_device_class "smbus_host_controller" too long
    power_meter: acpi_device_class "power_meter_resource" too long
    acpi_pad: "processor_aggregator" name too long
    PNP: don't check for conflicts with bridge windows
    ACPI: DMI init_set_sci_en_on_resume for multiple Lenovo ThinkPads
    PNPACPI: compute Address Space length rather than using _LEN
    ACPI: silence kmemcheck false positive

    Linus Torvalds
     
  • * 'v4l_for_2.6.34' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6:
    V4L/DVB: pxa_camera: move fifo reset direct before dma start
    V4L/DVB: video: testing unsigned for less than 0
    V4L/DVB: mx1-camera: compile fix
    V4L/DVB: budget: Oops: "BUG: unable to handle kernel NULL pointer dereference"
    V4L/DVB: ngene: Workaround for stuck DiSEqC pin
    V4L/DVB: saa7146: fix regression of the av7110/budget-av driver
    V4L/DVB: v4l: fix config dependencies: mxb and saa7191 are V4L2 drivers, not V4L1
    V4L/DVB: feature-removal: announce videotext.h removal
    V4L/DVB: V4L - vpfe capture - fix for kernel crash
    V4L/DVB: gspca: make usb id 0461:0815 get handled by the right driver
    V4L/DVB: gspca - stv06xx: Remove the 046d:08da from the stv06xx driver
    V4L/DVB: gspca - sn9c20x: Correct onstack wait_queue_head declaration
    V4L/DVB: saa7146: fix up bytesperline if it is an impossible value
    V4L/DVB: V4L: vpfe_capture - free ccdc_lock when memory allocation fails
    V4L/DVB: V4L - Makfile:Removed duplicate entry of davinci
    V4L/DVB: omap24xxcam: potential buffer overflow

    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:
    rcu: create rcu_my_thread_group_empty() wrapper
    memcg: css_id() must be called under rcu_read_lock()
    cgroup: Check task_lock in task_subsys_state()
    sched: Fix an RCU warning in print_task()
    cgroup: Fix an RCU warning in alloc_css_id()
    cgroup: Fix an RCU warning in cgroup_path()
    KEYS: Fix an RCU warning in the reading of user keys
    KEYS: Fix an RCU warning

    Linus Torvalds
     

07 May, 2010

15 commits

  • Some time ago we stopped the clean/active metadata updates
    from being written to a 'spare' device in most cases so that
    it could spin down and say spun down. Device failure/removal
    etc are still recorded on spares.

    However commit 51d5668cb2e3fd1827a55 broke this 50% of the time,
    depending on whether the event count is even or odd.
    The change log entry said:

    This means that the alignment between 'odd/even' and
    'clean/dirty' might take a little longer to attain,

    how ever the code makes no attempt to create that alignment, so it
    could take arbitrarily long.

    So when we find that clean/dirty is not aligned with odd/even,
    force a second metadata-update immediately. There are already cases
    where a second metadata-update is needed immediately (e.g. when a
    device fails during the metadata update). We just piggy-back on that.

    Reported-by: Joe Bryant
    Signed-off-by: NeilBrown
    Cc: stable@kernel.org

    NeilBrown
     
  • Fix: Raid-6 was not trying to correct a read-error when in
    singly-degraded state and was instead dropping one more device, going to
    doubly-degraded state. This patch fixes this behaviour.

    Tested-by: Janos Haar
    Signed-off-by: Gabriele A. Trombetti
    Reported-by: Janos Haar
    Signed-off-by: NeilBrown
    Cc: stable@kernel.org

    Gabriele A. Trombetti
     
  • This reverts part of commit 52dc438606d1e, in order to fix a regression:
    broken SPDIF output on Intel DG45FC motherboard (IDT 92HD73E1X5 codec).

    --- DG45FC-IDT-codec-2.6.32 (SPDIF OK)
    +++ DG45FC-IDT-codec-2.6.33 (SPDIF broken)

    Node 0x22 [Pin Complex] wcaps 0x400301: Stereo Digital
    Pincap 0x00000010: OUT
    - Pin Default 0x40f000f0: [N/A] Other at Ext N/A
    - Conn = Unknown, Color = Unknown
    - DefAssociation = 0xf, Sequence = 0x0
    - Pin-ctls: 0x00:
    + Pin Default 0x014510a0: [Jack] SPDIF Out at Ext Rear
    + Conn = Optical, Color = Black
    + DefAssociation = 0xa, Sequence = 0x0
    + Pin-ctls: 0x40: OUT
    Connection: 3
    0x25* 0x20 0x21
    Node 0x23 [Pin Complex] wcaps 0x400301: Stereo Digital
    Pincap 0x00000010: OUT
    - Pin Default 0x01451140: [Jack] SPDIF Out at Ext Rear
    + Pin Default 0x074510b0: [Jack] SPDIF Out at Ext Rear Panel
    Conn = Optical, Color = Black
    - DefAssociation = 0x4, Sequence = 0x0
    - Misc = NO_PRESENCE
    - Pin-ctls: 0x40: OUT
    + DefAssociation = 0xb, Sequence = 0x0
    + Pin-ctls: 0x00:
    Connection: 3
    0x26* 0x20 0x21

    Cc:
    Cc: Alexey Fisher
    Tested-by: David Härdeman
    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     
  • with CONFIG_PROVE_RCU=y, a warning can be triggered:

    # mount -t cgroup -o blkio xxx /mnt
    # mkdir /mnt/subgroup

    ...
    kernel/cgroup.c:4442 invoked rcu_dereference_check() without protection!
    ...

    To fix this, we avoid caling css_depth() here, which is a bit simpler
    than the original code.

    Signed-off-by: Li Zefan
    Acked-by: Vivek Goyal
    Signed-off-by: Jens Axboe

    Li Zefan
     
  • …5903' and 'misc-2.6.34' into release

    Len Brown
     
  • It's unused and buggy in its current form, since it can place a bo
    in the reserved state without removing it from lru lists.

    Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Thomas Hellstrom
     
  • Signed-off-by: Thomas Hellstrom
    Signed-off-by: Dave Airlie

    Thomas Hellstrom
     
  • Bring radeon up to speed with the async event synchronization for
    drmWaitVblank. See c9a9c5e02aedc1a2815877b0268f886d2640b771 for
    more information. Without this patch event never get delivered
    to userspace client.

    Signed-off-by: Jerome Glisse
    Signed-off-by: Dave Airlie

    Jerome Glisse
     
  • Move the fifo reset from pxa_camera_start_capture to pxa_camera_irq direct
    before the dma start after an end of frame interrupt to prevent images from
    shifting because of old data at the begin of the frame.

    Signed-off-by: Stefan Herbrechtsmeier
    Acked-by: Robert Jarzmik
    Tested-by: Antonio Ospite
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Stefan Herbrechtsmeier
     
  • soc_mbus_bytes_per_line() returns -EINVAL on error but we store it in an
    unsigned int so the test for less than zero doesn't work. I think it
    always returns "small" positive values so we can just cast it to int
    here.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Dan Carpenter
     
  • This fixes a regression of

    7d58289 (mx1: prefix SOC specific defines with MX1_ and deprecate old names)

    Signed-off-by: Uwe Kleine-König
    Acked-by: Sascha Hauer
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Uwe Kleine-König
     
  • Never call dvb_frontend_detach if we failed to attach a frontend. This fixes
    the following oops, which will be triggered by a missing stv090x module:

    [ 8.172997] DVB: registering new adapter (TT-Budget S2-1600 PCI)
    [ 8.209018] adapter has MAC addr = 00:d0:5c:cc:a7:29
    [ 8.328665] Intel ICH 0000:00:1f.5: PCI INT B -> GSI 17 (level, low) -> IRQ 17
    [ 8.328753] Intel ICH 0000:00:1f.5: setting latency timer to 64
    [ 8.562047] DVB: Unable to find symbol stv090x_attach()
    [ 8.562117] BUG: unable to handle kernel NULL pointer dereference at 000000ac
    [ 8.562239] IP: [] dvb_frontend_detach+0x4/0x67 [dvb_core]

    Ref http://bugs.debian.org/575207

    Signed-off-by: Bjørn Mork
    Cc: stable@kernel.org
    Signed-off-by: Mauro Carvalho Chehab

    Bjørn Mork
     
  • Send one DiSEqC byte to make sure that the pin is set to low level.

    Signed-off-by: Oliver Endriss
    Reviewed-by: Manu Abraham
    Signed-off-by: Mauro Carvalho Chehab

    Oliver Endriss
     
  • An earlier regression fix for the mxb driver (V4L/DVB: saa7146_vv: fix
    regression where v4l2_device was registered too late) caused a new
    regression in the av7110 driver.

    Reverted the old fix and fixed the problem in the mxb driver instead.
    Tested on mxb and budget-av cards.

    The real problem is that the saa7146 framework has separate probe()
    and attach() driver callbacks which should be rolled into one. This
    is now done for the mxb driver, but others should do the same. Lack
    of hardware makes this hard to do, though. I hope to get hold of some
    hexium cards and then I can try to improve the framework to prevent
    this from happening again.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • v4l: fix config dependencies: mxb and saa7191 are V4L2 drivers, not V4L1

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil