10 Mar, 2010

13 commits

  • hw_perf_enable() would disable events that were not yet enabled.

    This causes problems with code that assumes that ->enable/->disable calls
    are balanced (like the LBR code does).

    What happens is that we disable newly added counters that match their
    previous assignment, even though they are not yet programmed on the
    hardware.

    Avoid this by only doing the first pass over the existing events.

    Signed-off-by: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Make sure n_added is properly accounted so that we can rely on the value
    to reflect the number of added counters. This is needed if its going to
    be used for more than a boolean check.

    Signed-off-by: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Calling ioctl(PERF_EVENT_IOC_DISABLE) on a thottled counter would result
    in a double disable, cure this by using x86_pmu_{start,stop} for
    throttle/unthrottle and teach x86_pmu_stop() to check ->active_mask.

    Signed-off-by: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • pmu::start should undo pmu::stop, make it so.

    Signed-off-by: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • There is no concurrency on these variables, so don't use LOCK'ed ops.

    As to the intel_pmu_handle_irq() status bit clean, nobody uses that so
    remove it all together.

    Signed-off-by: Peter Zijlstra
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Pass the full perf_event into the x86_pmu functions so that those may
    make use of more than the hw_perf_event, and while doing this, remove the
    superfluous second argument.

    Signed-off-by: Peter Zijlstra
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • The second and third argument to x86_perf_event_update() are superfluous
    since they are simple expressions of the first argument. Hence remove
    them.

    Signed-off-by: Peter Zijlstra
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • The second and third argument to x86_perf_event_set_period() are
    superfluous since they are simple expressions of the first argument.
    Hence remove them.

    Signed-off-by: Peter Zijlstra
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Explicitly use intel_pmu_{disable,enable}_all() in intel_pmu_handle_irq()
    to avoid the NMI race conditions in perf_{disable,enable}

    Signed-off-by: Peter Zijlstra
    Cc: Arnaldo Carvalho de Melo
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Currently we always call hw_perf_disable(), even if its already disabled,
    this seems superflous, esp. since it cannot be made NMI safe (see further
    patches).

    Signed-off-by: Peter Zijlstra
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Remove the hw_perf_event_*() hotplug hooks in favour of per PMU hotplug
    notifiers. This has the advantage of reducing the static weak interface
    as well as exposing all hotplug actions to the PMU.

    Use this to fix x86 hotplug usage where we did things in ONLINE which
    should have been done in UP_PREPARE or STARTING.

    Signed-off-by: Peter Zijlstra
    Cc: Paul Mundt
    Cc: paulus@samba.org
    Cc: eranian@google.com
    Cc: robert.richter@amd.com
    Cc: fweisbec@gmail.com
    Cc: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • This makes it easier to extend perf_sample_data and fixes a bug on arm
    and sparc, which failed to set ->raw to NULL, which can cause crashes
    when combined with PERF_SAMPLE_RAW.

    It also optimizes PowerPC and tracepoint, because the struct
    initialization is forced to zero out the whole structure.

    Signed-off-by: Peter Zijlstra
    Acked-by: Jean Pihet
    Reviewed-by: Frederic Weisbecker
    Acked-by: David S. Miller
    Cc: Jamie Iles
    Cc: Paul Mackerras
    Cc: Stephane Eranian
    Cc: stable@kernel.org
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Peter Zijlstra
     
  • Conflicts:
    tools/perf/util/probe-event.c

    Merge reason: Pick up -rc1 and resolve the conflict as well.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

09 Mar, 2010

3 commits

  • Acked-by: Peter Zijlstra
    Acked-by: Paul Mackerras
    Acked-by: Arnaldo Carvalho de Melo
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (62 commits)
    msi-laptop: depends on RFKILL
    msi-laptop: Detect 3G device exists by standard ec command
    msi-laptop: Add resume method for set the SCM load again
    msi-laptop: Support some MSI 3G netbook that is need load SCM
    msi-laptop: Add threeg sysfs file for support query 3G state by standard 66/62 ec command
    msi-laptop: Support standard ec 66/62 command on MSI notebook and nebook
    Driver core: create lock/unlock functions for struct device
    sysfs: fix for thinko with sysfs_bin_attr_init()
    sysfs: Kill unused sysfs_sb variable.
    sysfs: Pass super_block to sysfs_get_inode
    driver core: Use sysfs_rename_link in device_rename
    sysfs: Implement sysfs_rename_link
    sysfs: Pack sysfs_dirent more tightly.
    sysfs: Serialize updates to the vfs inode
    sysfs: windfarm: init sysfs attributes
    sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on module dynamic attributes
    sysfs: Document sysfs_attr_init and sysfs_bin_attr_init
    sysfs: Use sysfs_attr_init and sysfs_bin_attr_init on dynamic attributes
    sysfs: Use one lockdep class per sysfs attribute.
    sysfs: Only take active references on attributes.
    ...

    Linus Torvalds
     

08 Mar, 2010

24 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
    [WATCHDOG] i6300esb.c: change platform_driver to pci_driver
    [WATCHDOG] i6300esb: fix unlock register with
    [WATCHDOG] drivers/watchdog/wdt.c:wdt_ioctl(): make `ident' non-static
    [WATCHDOG] change reboot_notifier to platform-shutdown method.
    [WATCHDOG] watchdog_info constify
    [WATCHDOG] gef_wdt: Author corrections following split of GE Fanuc joint venture
    [WATCHDOG] iTCO_wdt: clean up probe(), modify err msg
    [WATCHDOG] ep93xx: watchdog timer driver for TS-72xx SBCs cleanup
    [WATCHDOG] support for max63xx watchdog timer chips
    [WATCHDOG] ep93xx: added platform side support for TS-72xx WDT driver
    [WATCHDOG] ep93xx: implemented watchdog timer driver for TS-72xx SBCs

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (26 commits)
    ALSA: hdmi - show debug message on changing audio infoframe
    ALSA: hdmi - merge common code for intelhdmi and nvhdmi
    ALSA: hda - Add ASRock mobo to MSI blacklist
    ALSA: hda: uninitialized variable fix
    ALSA: hda: Use LPIB for a Biostar Microtech board
    ALSA: usb/audio.h: Fix field order
    ALSA: fix jazz16 compile (udelay)
    ALSA: hda: Use LPIB for Dell Latitude 131L
    ALSA: hda - Build hda_eld into snd-hda-codec module
    ALSA: hda - Support NVIDIA MCP89 and GT21x hdmi audio
    ALSA: hda - Support max codecs to 8 for nvidia hda controller
    ALSA: riptide: clean up while loop
    ALSA: usbaudio - remove debug "SAMPLE BYTES" printk line
    ALSA: timer - pass real event in snd_timer_notify1() to instance callback
    ALSA: oxygen: change || to &&
    ALSA: opti92x: use PnP data to select Master Control port
    ASoC: fix ak4104 register array access
    ASoC: soc_pcm_open: Add missing bailout tag
    ALSA: usbaudio: Fix wrong bitrate for Creative Creative VF0470 Live Cam
    ALSA: ua101: removing debugging code
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] smsgiucv_app: deliver z/VM CP special messages (SMSG) as uevents
    [S390] smsgiucv: declare char pointers as "const"
    [S390] dasd: automatic recognition of read-only devices
    [S390] remove unused qdio flags in zfcp and qeth
    [S390] Cleanup xtime usage
    [S390] qdio: add missing bracket
    [S390] cio: fix init_count in case of recognition after steal lock
    [S390] dasd: security and PSF update patch for EMC CKD ioctl
    [S390] hvc_iucv: allocate memory buffers for IUCV in zone DMA
    [S390] uaccess: make sure copy_from_user_overflow is builtin

    Linus Torvalds
     
  • Remove the EXPERIMENTAL flag from FS-Cache so that Ubuntu can make use of the
    facility.

    Signed-off-by: Christian Kujau
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    Christian Kujau
     
  • Since the intel 6300esb platform uses a dedicated PCI ID for
    it's watchdog timer (00:1d.4), it's better and easier to have
    this as a pci_driver.

    Signed-off-by: Wim Van Sebroeck

    Wim Van Sebroeck
     
  • The smsgiucv_app driver registers a callback with the smsgiucv driver
    to receive z/VM CP special messages (SMSG) starting with "APP".

    When the callback is called for special messages, the driver creates
    an uevent for the received message. The uevent consists of additional
    environment data containing the message prefix ("APP"), message sender,
    and message content.

    udev rules can be used to trigger application specific actions through
    matching the content or sender of the special message.

    Signed-off-by: Hendrik Brueckner
    Signed-off-by: Martin Schwidefsky

    Hendrik Brueckner
     
  • Declare the smsgiucv prefix char pointer as "const" and use
    use const char pointers in callback functions.

    Signed-off-by: Hendrik Brueckner
    Signed-off-by: Martin Schwidefsky

    Hendrik Brueckner
     
  • In z/VM it is possible to attach a device as read-only. To prevent
    unintentional write requests and subsequent I/O errors, we can detect
    this configuration using the z/VM DIAG 210 interface and set the
    respective linux block device to read-only as well.

    Signed-off-by: Stefan Weinhuber
    Signed-off-by: Martin Schwidefsky

    Stefan Weinhuber
     
  • zfcp and qeth are setting flags for the qdio-layer, but these flags
    are not used in qdio. Patch removes the flag definitions from qdio
    and their settings in zfcp and qeth.

    Cc: Jan Glauber
    Cc: Christof Schmitt
    Signed-off-by: Ursula Braun
    Signed-off-by: Martin Schwidefsky

    Ursula Braun
     
  • This replaces direct xtime usage in the s390 arch with timekeeping accessors,
    so we can further clean up the timekeeping core.

    Cc: Thomas Gleixner
    Signed-off-by: John Stultz
    Signed-off-by: Martin Schwidefsky

    John Stultz
     
  • Add a missing bracket to only log the outbound handler event in the
    appropriate case.

    Signed-off-by: Ursula Braun
    Signed-off-by: Jan Glauber
    Signed-off-by: Martin Schwidefsky

    Ursula Braun
     
  • After we try to steal a lock on a ccw device in boxed state,
    we have to restart device recognition and potentially reprobing.

    In this case ccw_device_init_count was erroneously decreased
    twice. This patch fixes the issue.

    Signed-off-by: Sebastian Ott
    Signed-off-by: Martin Schwidefsky

    Sebastian Ott
     
  • Remove the PSF order/suborder check from the Symmetrix CKD dasd ioctl.
    In exchange restrict the ioctl to CAP_SYS_ADMIN and CAP_SYS_RAWIO.

    Signed-off-by: Nigel Hislop
    Signed-off-by: Martin Schwidefsky

    Nigel Hislop
     
  • The device driver must allocate memory for IUCV buffers with GFP_DMA,
    because IUCV cannot address memory above 2GB (31bit addresses only).

    Because the IUCV ignores the higher bits of the address, sending and
    receiving IUCV data with this driver might cause memory corruptions.

    Signed-off-by: Hendrik Brueckner
    Signed-off-by: Martin Schwidefsky

    Hendrik Brueckner
     
  • If there is no in kernel image caller modules will suffer:

    ERROR: "copy_from_user_overflow" [net/core/pktgen.ko] undefined!
    ERROR: "copy_from_user_overflow" [net/can/can-raw.ko] undefined!
    ERROR: "copy_from_user_overflow" [fs/cifs/cifs.ko] undefined!

    Signed-off-by: Heiko Carstens
    Signed-off-by: Martin Schwidefsky

    Heiko Carstens
     
  • Before you can read or write from the i6300esb memeory mapped registers,
    you need to unlock these. This is done by writing the magic numbers 0x80
    and 0x86 to the reload register. The size of the reload register is 32bit
    though.

    Also binary 11 is hex 0x03 and not 0x11.

    Signed-off-by: Wim Van Sebroeck

    Wim Van Sebroeck
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • Takashi Iwai
     
  • Also change printk level for the two others.

    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     
  • Create patch_hdmi.c to hold common code from intelhdmi and nvhdmi.

    For now the patch_hdmi.c file is simply included by patch_intelhdmi.c
    and patch_nvhdmi.c, and does not represent a real codec.

    There are no behavior changes to intelhdmi. However nvhdmi made several
    changes when copying code out of intelhdmi, which are all reverted in
    this patch. Wei Ni confirmed that the reverted code actually works fine.

    Tested-by: Wei Ni
    Signed-off-by: Wu Fengguang
    Signed-off-by: Takashi Iwai

    Wu Fengguang
     
  • msi-laptop uses rfkill*() interfaces so it should depend on RFKILL.

    msi-laptop.c:(.text+0x1fcd1b): undefined reference to `rfkill_alloc'
    msi-laptop.c:(.text+0x1fcd76): undefined reference to `rfkill_register'
    msi-laptop.c:(.text+0x1fcdc8): undefined reference to `rfkill_destroy'
    msi-laptop.c:(.text+0x1fcdd9): undefined reference to `rfkill_unregister'

    This repairs "msi-laptop: Detect 3G device exists by standard ec command",
    which is in some gregkh tree.

    Signed-off-by: Randy Dunlap
    Cc: Lennart Poettering
    Cc: Lee, Chun-Yi
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Detect 3G device exists by standard ec command. Driver will not create the threeg sysfs
    file and threeg rfkill interface if there have no internal 3G device in MSI notebook/netbook.

    Signed-off-by: Lee, Chun-Yi
    Cc: Lennart Poettering
    Signed-off-by: Greg Kroah-Hartman

    Lee, Chun-Yi
     
  • Implement the resume method for set the load SCM flag after system reusme.
    Without this patch, the wifi function key on SCM model will back to BIOS
    control mode then confuse with the userland software control.
    e.g. MSI N034

    Signed-off-by: Lee, Chun-Yi
    Cc: Lennart Poettering
    Signed-off-by: Greg Kroah-Hartman

    Lee, Chun-Yi