1. 20 Mar, 2014 15 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpuidle' · f71a822f
      Rafael J. Wysocki authored
      * pm-cpuidle:
        cpuidle: delay enabling interrupts until all coupled CPUs leave idle
        cpuidle: poll state can measure residency
        cpuidle: Move perf multiplier calculation out of the selection loop
        cpuidle: Do not substract exit latency from assumed sleep length
        cpuidle: Ensure menu coefficients stay within domain
        cpuidle: Use actual state latency in menu governor
        cpuidle: rename expected_us to next_timer_us in menu governor
      f71a822f
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-runtime' and 'pm-sleep' · 36cc86e8
      Rafael J. Wysocki authored
      * pm-runtime:
        PM / Runtime: Update runtime_idle() documentation for return value meaning
      
      * pm-sleep:
        PM / sleep: Correct whitespace errors in <linux/pm.h>
        PM: Add missing "freeze" state
        PM / Hibernate: Spelling s/anonymouns/anonymous/
        PM / Runtime: Add missing "it" in comment
        PM / suspend: Remove unnecessary !!
        PCI / PM: Resume runtime-suspended devices later during system suspend
        ACPI / PM: Resume runtime-suspended devices later during system suspend
        PM / sleep: Set pm_generic functions to NULL for !CONFIG_PM_SLEEP
        PM: fix typo in comment
        PM / hibernate: use name_to_dev_t to parse resume
        PM / wakeup: Include appropriate header file in kernel/power/wakelock.c
        PM / sleep: Move prototype declaration to header file kernel/power/power.h
        PM / sleep: Asynchronous threads for suspend_late
        PM / sleep: Asynchronous threads for suspend_noirq
        PM / sleep: Asynchronous threads for resume_early
        PM / sleep: Asynchronous threads for resume_noirq
        PM / sleep: Two flags for async suspend_noirq and suspend_late
      36cc86e8
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-qos', 'pm-domains' and 'pm-drivers' · 165f5fd0
      Rafael J. Wysocki authored
      * pm-qos:
        PM / QoS: Add type to dev_pm_qos_add_ancestor_request() arguments
        ACPI / LPSS: Support for device latency tolerance PM QoS
        ACPI / scan: Add bind/unbind callbacks to struct acpi_scan_handler
        PM / QoS: Introcuce latency tolerance device PM QoS type
        PM / QoS: Add no_constraints_value field to struct pm_qos_constraints
        PM / QoS: Rename device resume latency QoS items
      
      * pm-domains:
        PM / domains: Turn latency warning into debug message
      
      * pm-drivers:
        PM: Add pm_runtime_suspend|resume_force functions
        PM / runtime: Fetch runtime PM callbacks using a macro
      165f5fd0
    • Rafael J. Wysocki's avatar
      Merge branches 'misc' and 'powercap' · cb97def8
      Rafael J. Wysocki authored
      * misc:
        MAINTAINERS: Reorder maintainer addresses for PM and ACPI
      
      * powercap:
        powercap / intel_rapl: spell out SoC names
        powercap / intel_rapl: relax sanity check on energy counters
      cb97def8
    • Rafael J. Wysocki's avatar
      Merge branch 'acpica' · 6ac4a2ab
      Rafael J. Wysocki authored
      * acpica: (29 commits)
        ACPICA: Revert "Headers: Deploy #pragma pack (push) and (pop)."
        ACPICA: Update version to 20140214.
        ACPICA: Prevent infinite loops when traversing corrupted lists.
        ACPICA: Debugger: Add missing objects; Traverse linked lists
        ACPICA: Add text: ACPICA policy for new _OSI strings. No functional change.
        ACPICA: Update for _PRP predefined name.
        ACPICA: Cleanup/improve global variable declarations.
        ACPICA: Comment update - no functional change.
        ACPICA: Do not abort _PRT repair on a single subpackage failure.
        ACPICA: Harden _PRT repair code; check for minimum package length.
        ACPICA: Restore code that repairs NULL package elements in return values.
        ACPICA: Properly handle NULL entries in _PRT return packages.
        ACPICA: Update conditional compilation flags for resource dump functions.
        ACPICA: Predefined names: Add support for the _PRP method.
        ACPICA: Headers: Deploy #pragma pack (push) and (pop).
        ACPICA: Add boot option to disable auto return object repair
        ACPICA: acpidump: Remove integer types translation protection.
        ACPICA: acpidump: Add sparse declarators support.
        ACPICA: Add "Windows 2013" string to _OSI support.
        ACPICA: Update version to 20140114.
        ...
      6ac4a2ab
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-battery' and 'acpi-video' · 94a81cac
      Rafael J. Wysocki authored
      * acpi-battery:
        ACPI / AC: recheck adapter status upon battery status changes
        ACPI / battery: call ACPI notifier chain in acpi_battery_notify
        ACPI / battery: move some ACPI_BATTERY_* definitions to header
      
      * acpi-video:
        video / output: Drop display output class support
        fujitsu-laptop: Drop unneeded include
        acer-wmi: Stop selecting VIDEO_OUTPUT_CONTROL
        ACPI / gpu / drm: Stop selecting VIDEO_OUTPUT_CONTROL
        ACPI / video: fix ACPI_VIDEO dependencies
      94a81cac
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-cleanup', 'acpi-thermal', 'acpi-pci', 'acpi-lpss' and 'acpi-button' · e25c5abf
      Rafael J. Wysocki authored
      * acpi-cleanup:
        ACPI: Remove duplicate definitions of PREFIX
        ACPI / tables: Replace printk with pr_*
      
      * acpi-thermal:
        ACPI / thermal: make acpi_thermal_check asynchronous on resume
      
      * acpi-pci:
        ACPI / PCI: Do not call ISA-specific code if ISA is not supported
      
      * acpi-lpss:
        ACPI / LPSS: Add Intel BayTrail ACPI mode PWM
      
      * acpi-button:
        ACPI / button: Add ACPI Button event via netlink routine
      e25c5abf
    • Geert Uytterhoeven's avatar
      PM / sleep: Correct whitespace errors in <linux/pm.h> · 33fe0ad9
      Geert Uytterhoeven authored
      rjw> Why exactly are they errors?
      Geert> checkpatch.pl says: "WARNING: please, no space before tabs",
             Vim (with "let c_space_errors=1") shows them in red.
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      33fe0ad9
    • Rafael J. Wysocki's avatar
      MAINTAINERS: Reorder maintainer addresses for PM and ACPI · 7fb06082
      Rafael J. Wysocki authored
      For a few subsystems I am the person who actually applies patches
      and people don't CC me on patch submissions, because my address is
      not the first one in the given MAINTAINERS item.
      
      Reorder PM and ACPI maintainer addresses in MAINTAINERS to make
      the probability of that a bit smaller.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@rjwysocki.net>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      7fb06082
    • Geert Uytterhoeven's avatar
      PM / Runtime: Update runtime_idle() documentation for return value meaning · 651665db
      Geert Uytterhoeven authored
      As of commit 45f0a85c ('PM / Runtime: Rework the "runtime idle"
      helper routine'), the return value of ->runtime_idle() is no longer
      ignored by the PM core, but used to decide whether to suspend the
      device or not.
      
      Update the documentation to match the code.
      Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
      Acked-by: default avatarPavel Machek <pavel@ucw.cz>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      651665db
    • Jean Delvare's avatar
      video / output: Drop display output class support · f167a64e
      Jean Delvare authored
      It was only ever used by the ACPI video driver, and that only use case
      vanished over 3 years ago (see commit 677bd810, "ACPI video: remove
      output switching control".) So this is dead code and I guess we can
      remove it now.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      f167a64e
    • Jean Delvare's avatar
      fujitsu-laptop: Drop unneeded include · 782dd91c
      Jean Delvare authored
      The fujitsu-laptop driver includes <linux/video_output.h> but doesn't
      call any of its functions. Drop the unneeded include to avoid
      unnecessary driver rebuilds.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Acked-by: default avatarJonathan Woithe <jwoithe@just42.net>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      782dd91c
    • Jean Delvare's avatar
      acer-wmi: Stop selecting VIDEO_OUTPUT_CONTROL · 1c71a1b8
      Jean Delvare authored
      ACPI_VIDEO no longer depends on VIDEO_OUTPUT_CONTROL, so drivers which
      want to select ACPI_VIDEO no longer have to select
      VIDEO_OUTPUT_CONTROL.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Acked-by: default avatar"Lee, Chun-Yi" <jlee@suse.com>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1c71a1b8
    • Jean Delvare's avatar
      ACPI / gpu / drm: Stop selecting VIDEO_OUTPUT_CONTROL · a386c006
      Jean Delvare authored
      ACPI_VIDEO no longer depends on VIDEO_OUTPUT_CONTROL, so drivers which
      want to select ACPI_VIDEO no longer have to select
      VIDEO_OUTPUT_CONTROL.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Acked-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      a386c006
    • Jean Delvare's avatar
      ACPI / video: fix ACPI_VIDEO dependencies · 9f380fc5
      Jean Delvare authored
      ACPI_VIDEO stopped depending on VIDEO_OUTPUT_CONTROL over 3 years ago
      (see commit 677bd810, "ACPI video: remove output switching control".)
      So it's about time to remove the Kconfig dependency between these two
      options.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      9f380fc5
  2. 19 Mar, 2014 5 commits
  3. 18 Mar, 2014 9 commits
  4. 17 Mar, 2014 6 commits
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-fan' · c730d30c
      Rafael J. Wysocki authored
      * acpi-fan:
        ACPI / fan: do nothing in suspend and poweroff callback
      c730d30c
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-ost' · 2eb06097
      Rafael J. Wysocki authored
      * acpi-ost:
        ACPI: Drop acpi_evaluate_hotplug_ost() and ACPI_HOTPLUG_OST
        ACPI: use device name LNXSYBUS.xx for ACPI \_SB and \_TZ objects
        ACPI / processor: use acpi_evaluate_ost() to replace open-coded version
        ACPI / PAD / xen: use acpi_evaluate_ost() to replace open-coded version
        ACPI / PAD: use acpi_evaluate_ost() to replace open-coded version
        ACPI: rename acpi_evaluate_hotplug_ost() to acpi_evaluate_ost()
      2eb06097
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-config' · 75c44edd
      Rafael J. Wysocki authored
      * acpi-config:
        ACPI: Remove Kconfig symbol ACPI_PROCFS
        ACPI / APEI: Remove X86 redundant dependency for APEI GHES.
        ACPI: introduce CONFIG_ACPI_REDUCED_HARDWARE_ONLY
      75c44edd
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-hotplug' · 6621c5a6
      Rafael J. Wysocki authored
      * acpi-hotplug:
        ACPI / hotplug: Rework deferred execution of acpi_device_hotplug()
        ACPI / dock: Update copyright notice
        ACPI / dock: Drop remove_dock_dependent_devices()
        ACPI / dock: Drop struct acpi_dock_ops and all code related to it
        ACPI / ATA: Add hotplug contexts to ACPI companions of SATA devices
        ACPI / dock: Add .uevent() callback to struct acpi_hotplug_context
        ACPI / dock: Use callback pointers from devices' ACPI hotplug contexts
        ACPI / dock: Use ACPI device object pointers instead of ACPI handles
        ACPI / hotplug: Add .fixup() callback to struct acpi_hotplug_context
        ACPI / hotplug / PCI: Do not clear event callback pointer for docks
        ACPI / dock: Associate dock platform devices with ACPI device objects
        ACPI / dock: Pass ACPI device pointer to acpi_device_is_battery()
        ACPI / dock: Dispatch dock notifications from the global notify handler
      6621c5a6
    • Rafael J. Wysocki's avatar
      Merge branch 'acpi-pci-hotplug' · d983f933
      Rafael J. Wysocki authored
      * acpi-pci-hotplug: (23 commits)
        ACPI / hotplug / PCI: Use pci_device_is_present()
        ACPI / hotplug / PCI: Add ACPIPHP contexts to devices handled by PCIeHP
        ACPI / hotplug / PCI: Rename register_slot() to acpiphp_add_context()
        ACPI / hotplug / PCI: Execute _EJ0 under the ACPI scan lock
        ACPI / hotplug / PCI: Rework acpiphp_check_host_bridge()
        ACPI / hotplug / PCI: Hotplug notifications from acpi_bus_notify()
        ACPI / hotplug / PCI: Simplify acpi_install_hotplug_notify_handler()
        ACPI / hotplug / PCI: Rework the handling of eject requests
        ACPI / hotplug / PCI: Consolidate ACPIPHP with ACPI core hotplug
        ACPI / hotplug / PCI: Define hotplug context lock in the core
        ACPI / hotplug: Fix potential race in acpi_bus_notify()
        ACPICA: Introduce acpi_get_data_full() and rework acpi_get_data()
        ACPI / hotplug / PCI: Do not pass ACPI handle to hotplug_event()
        ACPI / hotplug / PCI: Use acpi_handle_debug() in hotplug_event()
        ACPI / hotplug / PCI: Simplify hotplug_event()
        ACPI / hotplug / PCI: Drop crit_sect locking
        ACPI / hotplug / PCI: Drop acpiphp_bus_add()
        ACPI / hotplug / PCI: Store acpi_device pointer in acpiphp_context
        ACPI / hotplug / PCI: Rework acpiphp_no_hotplug()
        ACPI / hotplug / PCI: Drop acpiphp_bus_trim()
        ...
      d983f933
    • Linus Torvalds's avatar
      Linux 3.14-rc7 · dcb99fd9
      Linus Torvalds authored
      dcb99fd9
  5. 16 Mar, 2014 3 commits
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 59bf6c3c
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Three small fixes"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/clock: Prevent tracing recursion in sched_clock_cpu()
        stop_machine: Fix^2 race between stop_two_cpus() and stop_cpus()
        sched/deadline: Deny unprivileged users to set/change SCHED_DEADLINE policy
      59bf6c3c
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b44eeb4d
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Misc smaller fixes"
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86: Fix leak in uncore_type_init failure paths
        perf machine: Use map as success in ip__resolve_ams
        perf symbols: Fix crash in elf_section_by_name
        perf trace: Decode architecture-specific signal numbers
      b44eeb4d
    • Michael Kerrisk's avatar
      ipc: Fix 2 bugs in msgrcv() MSG_COPY implementation · 4f87dac3
      Michael Kerrisk authored
      While testing and documenting the msgrcv() MSG_COPY flag that Stanislav
      Kinsbursky added in commit 4a674f34 ("ipc: introduce message queue
      copy feature" => kernel 3.8), I discovered a couple of bugs in the
      implementation.  The two bugs concern MSG_COPY interactions with other
      msgrcv() flags, namely:
      
       (A) MSG_COPY + MSG_EXCEPT
       (B) MSG_COPY + !IPC_NOWAIT
      
      The bugs are distinct (and the fix for the first one is obvious),
      however my fix for both is a single-line patch, which is why I'm
      combining them in a single mail, rather than writing two mails+patches.
      
       ===== (A) MSG_COPY + MSG_EXCEPT =====
      
      With the addition of the MSG_COPY flag, there are now two msgrcv()
      flags--MSG_COPY and MSG_EXCEPT--that modify the meaning of the 'msgtyp'
      argument in unrelated ways.  Specifying both in the same call is a
      logical error that is currently permitted, with the effect that MSG_COPY
      has priority and MSG_EXCEPT is ignored.  The call should give an error
      if both flags are specified.  The patch below implements that behavior.
      
       ===== (B) (B) MSG_COPY + !IPC_NOWAIT =====
      
      The test code that was submitted in commit 3a665531 ("selftests: IPC
      message queue copy feature test") shows MSG_COPY being used in
      conjunction with IPC_NOWAIT.  In other words, if there is no message at
      the position 'msgtyp'.  return immediately with the error in ENOMSG.
      
      What was not (fully) tested is the behavior if MSG_COPY is specified
      *without* IPC_NOWAIT, and there is an odd behavior.  If the queue
      contains less than 'msgtyp' messages, then the call blocks until the
      next message is written to the queue.  At that point, the msgrcv() call
      returns a copy of the newly added message, regardless of whether that
      message is at the ordinal position 'msgtyp'.  This is clearly bogus, and
      problematic for applications that might want to make use of the MSG_COPY
      flag.
      
      I considered the following possible solutions to this problem:
      
       (1) Force the call to block until a message *does* appear at the
           position 'msgtyp'.
      
       (2) If the MSG_COPY flag is specified, the kernel should implicitly add
           IPC_NOWAIT, so that the call fails with ENOMSG for this case.
      
       (3) If the MSG_COPY flag is specified, but IPC_NOWAIT is not, generate
           an error (probably, EINVAL is the right one).
      
      I do not know if any application would really want to have the
      functionality of solution (1), especially since an application can
      determine in advance the number of messages in the queue using msgctl()
      IPC_STAT.  Obviously, this solution would be the most work to implement.
      
      Solution (2) would have the effect of silently fixing any applications
      that tried to employ broken behavior.  However, it would mean that if we
      later decided to implement solution (1), then user-space could not
      easily detect what the kernel supports (but, since I'm somewhat doubtful
      that solution (1) is needed, I'm not sure that this is much of a
      problem).
      
      Solution (3) would have the effect of informing broken applications that
      they are doing something broken.  The downside is that this would cause
      a ABI breakage for any applications that are currently employing the
      broken behavior.  However:
      
      a) Those applications are almost certainly not getting the results they
         expect.
      b) Possibly, those applications don't even exist, because MSG_COPY is
         currently hidden behind CONFIG_CHECKPOINT_RESTORE.
      
      The upside of solution (3) is that if we later decided to implement
      solution (1), user-space could determine what the kernel supports, via
      the error return.
      
      In my view, solution (3) is mildly preferable to solution (2), and
      solution (1) could still be done later if anyone really cares.  The
      patch below implements solution (3).
      
      PS.  For anyone out there still listening, it's the usual story:
      documenting an API (and the thinking about, and the testing of the API,
      that documentation entails) is the one of the single best ways of
      finding bugs in the API, as I've learned from a lot of experience.  Best
      to do that documentation before releasing the API.
      Signed-off-by: default avatarMichael Kerrisk <mtk.manpages@gmail.com>
      Acked-by: default avatarStanislav Kinsbursky <skinsbursky@parallels.com>
      Cc: Stanislav Kinsbursky <skinsbursky@parallels.com>
      Cc: stable@vger.kernel.org
      Cc: Serge Hallyn <serge.hallyn@canonical.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Pavel Emelyanov <xemul@parallels.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4f87dac3
  6. 15 Mar, 2014 2 commits