19 Apr, 2015

8 commits


14 Apr, 2015

4 commits

  • MSR_TURBO_RATIO_LIMIT has grown into a set of three registers.
    Add the documented names for them, in preparation
    for deleting the previous ad-hoc names:

    +#define MSR_TURBO_RATIO_LIMIT 0x000001ad
    +#define MSR_TURBO_RATIO_LIMIT1 0x000001ae
    +#define MSR_TURBO_RATIO_LIMIT2 0x000001af

    Signed-off-by: Len Brown
    Cc: x86@kernel.org

    Len Brown
     
  • syntax only.

    The cool kids are now using the phrase "base frequency",
    where in the past we used "max non-turbo frequency" or "TSC frequency".

    This distinction becomes important when a processor has a TSC
    that runs at a different speed than the "base frequency".

    Signed-off-by: Len Brown

    Len Brown
     
  • cosmetic only.

    order the decoding of MSR_PERF_LIMIT_REASONS bits
    from MSB to LSB -- which you notice when more than 1 bit is set
    and you are, say, comparing the output to the documentation...

    Signed-off-by: Len Brown

    Len Brown
     
  • Casual turbostat users generally just want to know MHz.
    So by default, just print enough information to make sense of MHz.

    All the other configuration data and columns for C-states and temperature etc,
    are printed with the --debug option.

    Signed-off-by: Len Brown

    Len Brown
     

13 Apr, 2015

3 commits


12 Apr, 2015

6 commits

  • Pull last-minute ASoC fix from Mark Brown:
    "This patch backs out a change that came in during the merge window
    which selects a configuration for GPIO4 on pcm512x CODECs that may not
    be suitable for all systems using the device. Changes for v4.1 will
    make this properly configurable but for now it's safest to revert to
    the v3.19 behaviour and leave the pin configuration alone.

    Sorry for sending this direct at the last minute but due to the GPIO
    misuse it'd be really good to get it in the release and I'd not
    realised it hadn't been sent yet - between some travel, a job change
    and other non-urgent fixes coming in I'd lost track of the urgency.

    It's been in -next for several weeks now, is isolated to the driver
    and fairly clear to inspection"

    * tag 'asoc-fix-v4.0-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound:
    ASoC: pcm512x: Remove hardcoding of pll-lock to GPIO4

    Linus Torvalds
     
  • Currently GPIO4 is hardcoded to output the pll-lock signal.
    Unfortunately this is after the pll-out GPIO is configured which
    is selectable in the device tree. Therefore it is not possible to
    use GPIO4 for pll-out. Therefore this patch removes the
    configuration of GPIO4.

    Signed-off-by: Howard Mitchell
    Signed-off-by: Mark Brown

    Howard Mitchell
     
  • This reverts commit ecc19d17868be9c9f8f00ed928791533c420f3e0.

    It added a new warning to try to encourage driver writers to set the
    device capabities properly, but drivers haven't been updated and in the
    meantime it just generaters a scary message that users cannot actually
    do anything about.

    Warnings like these are appropriate if you actually expect to fix the
    code that causes them. They are not appropriate for releases.

    Requested-by: Peter Hurley
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Jan Engelhardt reports a strange oops with an invalid ->sense_buffer
    pointer in scsi_init_cmd_errh() with the blk-mq code.

    The sense_buffer pointer should have been initialized by the call to
    scsi_init_request() from blk_mq_init_rq_map(), but there seems to be
    some non-repeatable memory corruptor.

    This patch makes sure we initialize the whole struct request allocation
    (and the associated 'struct scsi_cmnd' for the SCSI case) to zero, by
    using __GFP_ZERO in the allocation. The old code initialized a couple
    of individual fields, leaving the rest undefined (although many of them
    are then initialized in later phases, like blk_mq_rq_ctx_init() etc.

    It's not entirely clear why this matters, but it's the rigth thing to do
    regardless, and with 4.0 imminent this is the defensive "let's just make
    sure everything is initialized properly" patch.

    Tested-by: Jan Engelhardt
    Acked-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Pull dmaengine fix from Vinod Koul:
    "I have one more fix to fix the boot warning on cppi driver due to
    missing capabilities"

    * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
    dmaengine: cppi41: add missing bitfields

    Linus Torvalds
     
  • Pull late ipmi fixes from Corey Minyard:
    "Some annoying issues in the IPMI driver that would be good to have
    fixed before 4.0 is released.

    These got reported or discovered late, but they will avoid some
    situations that would cause lots of log spam and in one case a
    deadlock"

    * tag 'for-linus-4.0-1' of git://git.code.sf.net/p/openipmi/linux-ipmi:
    ipmi_ssif: Use interruptible completion for waiting in the thread
    ipmi/powernv: Fix minor locking bug
    ipmi: Handle BMCs that don't allow clearing the rcv irq bit

    Linus Torvalds
     

11 Apr, 2015

9 commits

  • Add missing directions, residue_granularity,
    srd_addr_widths and dst_addr_widths bitfields.

    Without those we will see a kernel WARN()
    when loading musb on am335x devices.

    Signed-off-by: Felipe Balbi
    Signed-off-by: Vinod Koul

    Felipe Balbi
     
  • The code was using an normal completion, but that caused stuck
    task errors after a while. Use an interruptible one to avoid that.

    Signed-off-by: Corey Minyard

    Corey Minyard
     
  • If ipmi_powernv_recv(...) is called without a current message it
    prints a warning and returns. However it fails to release the message
    lock causing the system to dead lock during any subsequent IPMI
    operations.

    This error path should never normally be taken unless there are bugs
    elsewhere in the system.

    Signed-off-by: Alistair Popple
    Signed-off-by: Corey Minyard

    Alistair Popple
     
  • Some BMCs don't let you clear the receive irq bit in the global
    enables. This is kind of silly, but they give an error if you
    try to clear it. Compensate for this by detecting the situation
    and working around it.

    Signed-off-by: Corey Minyard
    Tested-by: Thomas D
    Reviewed-by: Thomas D

    Corey Minyard
     
  • Pull SCSI fixes from James Bottomley:
    "This is our remaining set of three fixes for 4.0: two oops fixes(one
    for cable pulls triggering oopses and the other be2iscsi specific) and
    one warn on in sysfs on multipath devices using enclosures"

    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    Defer processing of REQ_PREEMPT requests for blocked devices
    be2iscsi: Fix kernel panic when device initialization fails
    enclosure: fix WARN_ON removing an adapter in multi-path devices

    Linus Torvalds
     
  • Pull SCSI target fixes from Nicholas Bellinger:
    "Just a few small fixes:

    Two from Andy, the first addresses a v4.0 target specific regression
    to a user visible configfs attribute, and the second adds a set of
    missing brackets around IPv6 discovery portal information within
    iscsi-target.

    And one from Mike that fixes an OOPs regression in traditional
    iscsi-target when an iovec allocation fails, that has been present
    since v3.10.y code. (CC'd to stable)"

    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    iscsi target: fix oops when adding reject pdu
    iscsi-target: TargetAddress in SendTargets should bracket ipv6 addresses
    target: Allow userspace to write 1 to attrib/emulate_fua_write

    Linus Torvalds
     
  • This fixes a oops due to a double list add when adding a reject PDU for
    iscsit_allocate_iovecs allocation failures. The cmd has already been
    added to the conn_cmd_list in iscsit_setup_scsi_cmd, so this has us call
    iscsit_reject_cmd.

    Note that for ERL0 the reject PDU is not actually sent, so this patch
    is not completely tested. Just verified we do not oops. The problem is the
    add reject functions return -1 which is returned all the way up to
    iscsi_target_rx_thread which for ERL0 will drop the connection.

    Signed-off-by: Mike Christie
    Cc: # v3.10+
    Signed-off-by: Nicholas Bellinger

    Mike Christie
     
  • Pull sound fixes from Takashi Iwai:
    "Here are fixes gathered for 4.0-final; one FireFire endian fix, two
    USB-audio quirks, and three HD-audio quirks.

    All relatively small and device-specific fixes, should be pretty safe
    to apply"

    * tag 'sound-4.0' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: usb - Creative USB X-Fi Pro SB1095 volume knob support
    ALSA: hda - Fix headphone pin config for Lifebook T731
    ALSA: bebob: fix to processing in big-endian machine for sending cue
    ALSA: hda/realtek - Make more stable to get pin sense for ALC283
    ALSA: usb-audio: don't try to get Benchmark DAC1 sample rate
    ALSA: hda/realtek - Support Dell headset mode for ALC256

    Linus Torvalds
     
  • Pull arch/nios2 fixes from Ley Foon Tan:
    "There are 3 arch/nios2 fixes for 4.0 final:

    - fix cache coherency issue when debugging with gdb

    - move restart_block to struct task_struct (aligned with other
    architectures)

    - fix for missing registers defines for ptrace"

    * tag 'nios2-fixes-v4.0-final' of git://git.rocketboards.org/linux-socfpga-next:
    nios2: fix cache coherency issue when debug with gdb
    nios2: add missing ptrace registers defines
    nios2: signal: Move restart_block to struct task_struct

    Linus Torvalds
     

10 Apr, 2015

4 commits

  • Remove the end address checking for flushda function. We need to flush
    each address line for flushda instruction, from start to end address.
    This is because flushda instruction only flush the cache if tag and line
    fields are matched.

    Change to use ldwio instruction (bypass cache) to load the instruction
    that causing trap. Our interest is the actual instruction that executed
    by the processor, this should be uncached.
    Note, EA address might be an userspace cached address.

    Signed-off-by: Ley Foon Tan

    Ley Foon Tan
     
  • Pull power management and ACPI fixes from Rafael Wysocki:
    "These are stable-candidate fixes of some recently reported issues in
    the cpufreq core, cpuidle core, the ACPI cpuidle driver and the
    hibernate core.

    Specifics:

    - Revert a 3.17 hibernate commit that was supposed to fix an issue
    related to e820 reserved regions, but broke resume from hibernation
    on Lenovo x230 (Rafael J Wysocki).

    - Prevent the ACPI cpuidle driver from overwriting the name and
    description of the C0 state set by the core when the list of
    C-states changes (Thomas Schlichter).

    - Remove the no longer needed state_count field from struct
    cpuidle_device which prevents the list of C-states shown by the
    sysfs interface from becoming incorrect when the current number of
    them is different from the number of C-states on boot (Bartlomiej
    Zolnierkiewicz).

    - The cpufreq core updates the policy object of the only online CPU
    during system resume to make it reflect the current hardware state,
    but it always assumes that CPU to be CPU0 which need not be the
    case, so fix the code to avoid that assumption (Viresh Kumar)"

    * tag 'pm+acpi-4.0-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    Revert "PM / hibernate: avoid unsafe pages in e820 reserved regions"
    cpuidle: ACPI: do not overwrite name and description of C0
    cpuidle: remove state_count field from struct cpuidle_device
    cpufreq: Schedule work for the first-online CPU on resume

    Linus Torvalds
     
  • * pm-sleep:
    Revert "PM / hibernate: avoid unsafe pages in e820 reserved regions"

    * pm-cpufreq:
    cpufreq: Schedule work for the first-online CPU on resume

    * pm-cpuidle:
    cpuidle: ACPI: do not overwrite name and description of C0
    cpuidle: remove state_count field from struct cpuidle_device

    Rafael J. Wysocki
     
  • Pull PCI fixes from Bjorn Helgaas:
    "Here are some fixes for v4.0. I apologize for how late they are. We
    were hoping for some better fixes, but couldn't get them polished in
    time. These fix:

    - a Xen domU oops with PCI passthrough devices
    - a sparc T5 boot failure
    - a STM SPEAr13xx crash (use after initdata freed)
    - a cpcihp hotplug driver thinko
    - an AER thinko that printed stack junk

    Details:

    Enumeration
    - Don't look for ACPI hotplug parameters if ACPI is disabled (Bjorn Helgaas)

    Resource management
    - Revert "sparc/PCI: Clip bridge windows to fit in upstream windows" (Bjorn Helgaas)

    AER
    - Avoid info leak in __print_tlp_header() (Rasmus Villemoes)

    PCI device hotplug
    - Add missing curly braces in cpci_configure_slot() (Dan Carpenter)

    ST Microelectronics SPEAr13xx host bridge driver
    - Drop __initdata from spear13xx_pcie_driver (Matwey V. Kornilov)

    * tag 'pci-v4.0-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
    Revert "sparc/PCI: Clip bridge windows to fit in upstream windows"
    PCI: Don't look for ACPI hotplug parameters if ACPI is disabled
    PCI: cpcihp: Add missing curly braces in cpci_configure_slot()
    PCI/AER: Avoid info leak in __print_tlp_header()
    PCI: spear: Drop __initdata from spear13xx_pcie_driver

    Linus Torvalds
     

09 Apr, 2015

6 commits