06 Nov, 2013

2 commits

  • In order to enable lockdep on seqcount/seqlock structures, we
    must explicitly initialize any locks.

    The u64_stats_sync structure, uses a seqcount, and thus we need
    to introduce a u64_stats_init() function and use it to initialize
    the structure.

    This unfortunately adds a lot of fairly trivial initialization code
    to a number of drivers. But the benefit of ensuring correctness makes
    this worth while.

    Because these changes are required for lockdep to be enabled, and the
    changes are quite trivial, I've not yet split this patch out into 30-some
    separate patches, as I figured it would be better to get the various
    maintainers thoughts on how to best merge this change along with
    the seqcount lockdep enablement.

    Feedback would be appreciated!

    Signed-off-by: John Stultz
    Acked-by: Julian Anastasov
    Signed-off-by: Peter Zijlstra
    Cc: Alexey Kuznetsov
    Cc: "David S. Miller"
    Cc: Eric Dumazet
    Cc: Hideaki YOSHIFUJI
    Cc: James Morris
    Cc: Jesse Gross
    Cc: Mathieu Desnoyers
    Cc: "Michael S. Tsirkin"
    Cc: Mirko Lindner
    Cc: Patrick McHardy
    Cc: Roger Luethi
    Cc: Rusty Russell
    Cc: Simon Horman
    Cc: Stephen Hemminger
    Cc: Steven Rostedt
    Cc: Thomas Petazzoni
    Cc: Wensong Zhang
    Cc: netdev@vger.kernel.org
    Link: http://lkml.kernel.org/r/1381186321-4906-2-git-send-email-john.stultz@linaro.org
    Signed-off-by: Ingo Molnar

    John Stultz
     
  • Conflicts:
    kernel/Makefile

    There are conflicts in kernel/Makefile due to file moving in the
    scheduler tree - resolve them.

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     

02 Nov, 2013

15 commits

  • Pull USB fixes from Greg KH:
    "Here is a set of patches that revert all of the changes done to the
    pl2303 USB serial driver in the 3.12-rc timeframe, as it turns out
    they break some devices that work just fine on 3.11. As it's not a
    good idea to break working systems, drop them all and they will be
    reworked for future kernel versions such that there is no breakage.

    I've also included a MAINTAINERS update for the USB serial subsystem
    and a new device id for the ftdi_sio driver as well"

    * tag 'usb-3.12-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
    USB: serial: ftdi_sio: add id for Z3X Box device
    USB: Maintainers change for usb serial drivers
    Revert "USB: pl2303: restrict the divisor based baud rate encoding method to the "HX" chip type"
    Revert "usb: pl2303: fix+improve the divsor based baud rate encoding method"
    Revert "usb: pl2303: do not round to the next nearest standard baud rate for the divisor based baud rate encoding method"
    Revert "usb: pl2303: remove 500000 baud from the list of standard baud rates"
    Revert "usb: pl2303: move the two baud rate encoding methods to separate functions"
    Revert "usb: pl2303: increase the allowed baud rate range for the divisor based encoding method"
    Revert "usb: pl2303: also use the divisor based baud rate encoding method for baud rates < 115200 with HX chips"
    Revert "usb: pl2303: add two comments concerning the supported baud rates with HX chips"
    Revert "pl2303: simplify the else-if contruct for type_1 chips in pl2303_startup()"
    Revert "pl2303: improve the chip type information output on startup"
    Revert "pl2303: improve the chip type detection/distinction"
    Revert "USB: pl2303: distinguish between original and cloned HX chips"

    Linus Torvalds
     
  • Pull clock subsystem fixes from Mike Turquette.

    * tag 'clk-fixes-for-linus' of git://git.linaro.org/people/mturquette/linux:
    clk: fixup argument order when setting VCO parameters
    clk: socfpga: Fix incorrect sdmmc clock name
    clk: armada-370: fix tclk frequencies
    clk: nomadik: set all timers to use 2.4 MHz TIMCLK

    Linus Torvalds
     
  • Custom VID/PID for Z3X Box device, popular tool for cellphone flashing.

    Signed-off-by: Alexey E. Kramarenko
    Signed-off-by: Greg Kroah-Hartman

    Алексей Крамаренко
     
  • This reverts commit b8bdad608213caffa081a97d2e937e5fe08c4046.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit 57ce61aad748ceaa08c859da04043ad7dae7c15e.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • … divisor based baud rate encoding method"

    This reverts commit 75417d9f99f89ab241de69d7db15af5842b488c4.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Cc: Frank Schäfer <fschaefer.oss@googlemail.com>
    Acked-by: Johan Hovold <jhovold@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    Greg Kroah-Hartman
     
  • This reverts commit b9208c721ce736125fe58d398319513a27850fd8.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit e917ba01d69ad705a4cd6a6c77538f55d84f5907.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit b5c16c6a031c52cc4b7dda6c3de46462fbc92eab.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • …ud rates < 115200 with HX chips"

    This reverts commit 61fa8d694b8547894b57ea0d99d0120a58f6ebf8.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com>
    Cc: Frank Schäfer <fschaefer.oss@googlemail.com>
    Acked-by: Johan Hovold <jhovold@gmail.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    Greg Kroah-Hartman
     
  • This reverts commit c23bda365dfbf56aa4d6d4a97f83136c36050e01.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit 73b583af597542329e6adae44524da6f27afed62.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit a77a8c23e4db9fb1f776147eda0d85117359c700.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit 034d1527adebd302115c87ef343497a889638275.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This reverts commit 7d26a78f62ff4fb08bc5ba740a8af4aa7ac67da4.

    Revert all of the pl2303 changes that went into 3.12-rc1 and -rc2 as
    they cause regressions on some versions of the chip. This will all be
    revisited for later kernel versions when we can figure out how to handle
    this in a way that does not break working devices.

    Reported-by: Mika Westerberg
    Cc: Frank Schäfer
    Acked-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

01 Nov, 2013

4 commits

  • Resolve cherry-picking conflicts:

    Conflicts:
    mm/huge_memory.c
    mm/memory.c
    mm/mprotect.c

    See this upstream merge commit for more details:

    52469b4fcd4f Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

    Signed-off-by: Ingo Molnar

    Ingo Molnar
     
  • The last i915 drm update brought with it this annoying warning

    drivers/gpu/drm/i915/intel_crt.c: In function ‘intel_crt_get_config’:
    drivers/gpu/drm/i915/intel_crt.c:110:21: warning: unused variable ‘dev’ [-Wunused-variable]
    struct drm_device *dev = encoder->base.dev;
    ^

    introduced by commit 7195a50b5c7e ("drm/i915: Add HSW CRT output readout
    support").

    Remove the offending pointless variable.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Pull input updates from Dmitry Torokhov:
    "A bit later than I would want, but the changes are very minor - a few
    new device IDs for new hardware in existing drivers, fix for battery
    in Wacom devices not be considered system battery and cause emergency
    hibernations, and a couple of other bug fixes"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: ALPS - add support for model found on Dell XT2
    Input: wacom - add support for ISDv4 0x10E sensor
    Input: wacom - add support for ISDv4 0x10F sensor
    Input: wacom - export battery scope
    Input: cm109 - convert high volume dev_err() to dev_err_ratelimited()
    Input: move name/timer init to input_alloc_dev()
    Input: i8042 - i8042_flush fix for a full 8042 buffer
    Input: pxa27x_keypad - fix NULL pointer dereference

    Linus Torvalds
     
  • Pull ACPI and power management fixes from Rafael J Wysocki:
    "Last-minute ACPI and power management fixes for 3.12

    - Revert epoll and select commits related to the freezer, introduced
    during the 3.11 cycle, that cause mysterious user space breakage to
    occur during resume from suspend to RAM for multiple users of
    32-bit x86 systems. Material for 3.11.y stable kernels.

    - Revert a recent ACPI-based PCI hotplug (ACPIPHP) commit that was
    part of boot problem fixes for one machine, but turns out to cause
    issues with hotplug on Thunderbolt chains with multiple devices.
    It also turns out to be unnecessary after another fix in the same
    area that went in later. From Mika Westerberg"

    * tag 'pm+acpi-3.12-late' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    Revert "ACPI / hotplug / PCI: Avoid doing too much for spurious notifies"
    Revert "select: use freezable blocking call"
    Revert "epoll: use freezable blocking call"

    Linus Torvalds
     

31 Oct, 2013

9 commits


30 Oct, 2013

4 commits

  • Commit 2dc4128 (ACPI / hotplug / PCI: Avoid doing too much for
    spurious notifies) changed the enable_slot() to check return value of
    pci_scan_slot() and if it is zero return early from the function. It
    means that there were no new devices in this particular slot.

    However, if a device appeared deeper in the hierarchy the code now
    ignores it causing things like Thunderbolt chaining fail to recognize
    new devices.

    The problem with Alex Williamson's machine was solved with commit
    a47d8c8 (ACPI / hotplug / PCI: Avoid parent bus rescans on spurious
    device checks) and hence we should be able to restore the original
    functionality that we always rescan on bus check notification.

    On a device check notification we still check what acpiphp_rescan_slot()
    returns and on zero bail out early.

    Fixes: 2dc41281b1d1 (ACPI / hotplug / PCI: Avoid doing too much for spurious notifies)
    Signed-off-by: Mika Westerberg
    Tested-by: Alex Williamson
    Signed-off-by: Rafael J. Wysocki

    Mika Westerberg
     
  • DRM_IOCTL_VERSION is a reliable way to get the driver-name and version
    information. It's not related to the interface-version (SET_VERSION ioctl)
    so we can safely enable it on render-nodes.

    Note that gbm uses udev-BUSID to load the correct mesa driver. However,
    the VERSION ioctl should be the more reliable way to do this (in case we
    add new DRM-bus drivers which have no BUSID or similar).

    Signed-off-by: David Herrmann
    Reviewed-by: Daniel Vetter
    Signed-off-by: Dave Airlie

    David Herrmann
     
  • …rm-intel into drm-fixes

    Regression and warn fixes for i915.

    * tag 'drm-intel-fixes-2013-10-29' of git://people.freedesktop.org/~danvet/drm-intel:
    drm/i915: Fix the PPT fdi lane bifurcate state handling on ivb
    drm/i915: No LVDS hardware on Intel D410PT and D425KT
    drm/i915/dp: workaround BIOS eDP bpp clamping issue
    drm/i915: Add HSW CRT output readout support
    drm/i915: Add support for pipe_bpp readout

    Dave Airlie
     
  • Nico Golde reports a few straggling uses of [io_]remap_pfn_range() that
    really should use the vm_iomap_memory() helper. This trivially converts
    two of them to the helper, and comments about why the third one really
    needs to continue to use remap_pfn_range(), and adds the missing size
    check.

    Reported-by: Nico Golde
    Cc: stable@kernel.org
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org.

    Linus Torvalds
     

29 Oct, 2013

5 commits

  • Originally I've thought that this is leftover hw state dirt from the
    BIOS. But after way too much helpless flailing around on my part I've
    noticed that the actual bug is when we change the state of an already
    active pipe.

    For example when we change the fdi lines from 2 to 3 without switching
    off outputs in-between we'll never see the crucial on->off transition
    in the ->modeset_global_resources hook the current logic relies on.

    Patch version 2 got this right by instead also checking whether the
    pipe is indeed active. But that in turn broke things when pipes have
    been turned off through dpms since the bifurcate enabling is done in
    the ->crtc_mode_set callback.

    To address this issues discussed with Ville in the patch review move
    the setting of the bifurcate bit into the ->crtc_enable hook. That way
    we won't wreak havoc with this state when userspace puts all other
    outputs into dpms off state. This also moves us forward with our
    overall goal to unify the modeset and dpms on paths (which we need to
    have to allow runtime pm in the dpms off state).

    Unfortunately this requires us to move the bifurcate helpers around a
    bit.

    Also update the commit message, I've misanalyzed the bug rather badly.

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70507
    Tested-by: Jan-Michael Brummer
    Cc: stable@vger.kernel.org
    Cc: Ville Syrjälä
    Reviewed-by: Ville Syrjälä
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     
  • Pull SCSI fixes from James Bottomley:
    "This is a set of four patches that revert functionality introduced in
    the merge window to sg. The locking changes turned out to introduce
    this bug:

    [ 205.372901] [ BUG: lock held when returning to user space! ]
    [...]
    [ 205.373285] #0: (&sdp->o_sem){.+.+..}, at: [] sg_open+0x3a0/0x4d0

    The fix is large, so at this late stage we'd like to revert the
    functionality and start again in the next merge window"

    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
    [SCSI] Revert "sg: use rwsem to solve race during exclusive open"
    [SCSI] Revert "sg: no need sg_open_exclusive_lock"
    [SCSI] Revert "sg: checking sdp->detached isn't protected when open"
    [SCSI] Revert "sg: push file descriptor list locking down to per-device locking"

    Linus Torvalds
     
  • The Intel D410PT(LW) and D425KT Mini-ITX desktop boards both show up as
    having LVDS but the hardware is not populated. This patch adds them to
    the list of such systems. Patch is against 3.11.4

    v2: Patch revised to match the D425KT exactly as the D425KTW does have
    LVDS. According to Intel's documentation, the D410PTL and D410PLTW
    don't.

    Signed-off-by: Rob Pearce
    Cc: stable@vger.kernel.org
    [danvet: Pimp commit message to my liking and add cc: stable.]
    Signed-off-by: Daniel Vetter

    Rob Pearce
     
  • This isn't a real fix to the problem, but rather a stopgap measure while
    trying to find a proper solution.

    There are several laptops out there that fail to light up the eDP panel
    in UEFI boot mode. They seem to be mostly IVB machines, including but
    apparently not limited to Dell XPS 13, Asus TX300, Asus UX31A, Asus
    UX32VD, Acer Aspire S7. They seem to work in CSM or legacy boot.

    The difference between UEFI and CSM is that the BIOS provides a
    different VBT to the kernel. The UEFI VBT typically specifies 18 bpp and
    1.62 GHz link for eDP, while CSM VBT has 24 bpp and 2.7 GHz link. We end
    up clamping to 18 bpp in UEFI mode, which we can fit in the 1.62 Ghz
    link, and for reasons yet unknown fail to light up the panel.

    Dithering from 24 to 18 bpp itself seems to work; if we use 18 bpp with
    2.7 GHz link, the eDP panel lights up. So essentially this is a link
    speed issue, and *not* a bpp clamping issue.

    The bug raised its head since
    commit 657445fe8660100ad174600ebfa61536392b7624
    Author: Daniel Vetter
    Date: Sat May 4 10:09:18 2013 +0200

    Revert "drm/i915: revert eDP bpp clamping code changes"

    which started clamping bpp *before* computing the link requirements, and
    thus affecting the required bandwidth. Clamping after the computations
    kept the link at 2.7 GHz.

    Even though the BIOS tells us to use 18 bpp through the VBT, it happily
    boots up at 24 bpp and 2.7 GHz itself! Use this information to
    selectively ignore the VBT provided value.

    We can't ignore the VBT eDP bpp altogether, as there are other laptops
    that do require the clamping to be used due to EDID reporting higher bpp
    than the panel can support.

    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=59841
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67950
    Tested-by: Ulf Winkelvos
    Tested-by: jkp
    CC: stable@vger.kernel.org
    Signed-off-by: Jani Nikula
    Signed-off-by: Daniel Vetter

    Jani Nikula
     
  • Call intel_ddi_get_config() to get the pipe_bpp settings from
    DDI.

    The sync polarity settings from DDI are irrelevant for CRT
    output, so override them with data from the ADPA register.

    Note: This is already merged in drm-intel-next-queued as

    commit 6801c18c0a43386bb44712cbc028a7e05adb9f0d
    Author: Ville Syrjälä
    Date: Tue Sep 24 14:24:05 2013 +0300

    drm/i915: Add HSW CRT output readout support

    but is required for the following edp bpp bugfix.

    v2: Extract intel_crt_get_flags()

    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=69691
    Tested-by: Qingshuai Tian
    Signed-off-by: Ville Syrjälä
    Cc: stable@vger.kernel.org
    Signed-off-by: Daniel Vetter

    Ville Syrjälä
     

28 Oct, 2013

1 commit

  • On CTG+ read out the pipe bpp setting from hardware and fill it into
    pipe config. Also check it appropriately.

    v2: Don't do the pipe_bpp extraction inside the PCH only code block on
    ILK+.
    Avoid the PIPECONF read as we already have read it for the
    PIPECONF_EANBLE check.

    Note: This is already in drm-intel-next-queued as
    commit 42571aefafb1d330ef84eb29418832f72e7dfb4c
    Author: Ville Syrjälä
    Date: Fri Sep 6 23:29:00 2013 +0300

    drm/i915: Add support for pipe_bpp readout

    but is needed for the following bugfix.

    Signed-off-by: Ville Syrjälä
    Reviewed-by: Jani Nikula
    Cc: stable@vger.kernel.org
    Signed-off-by: Daniel Vetter

    Ville Syrjälä