Skip to contentSkip to conversation

Linux 3.12.3

DISCUSSION Greg KH 1 participant 2 messages Dec 4, 2013 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 3.12.3 kernel.

All users of the 3.12 kernel series must upgrade.

The updated 3.12.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.12.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/sysctl/kernel.txt               |   25 ++-
 Makefile                                      |    2 
 arch/arm/boot/dts/bcm2835.dtsi                |    4 
 arch/arm/boot/dts/cros5250-common.dtsi        |   12 +
 arch/arm/kernel/entry-armv.S                  |    1 
 arch/arm/mach-at91/Makefile                   |    2 
 arch/arm/mach-at91/at91sam9260.c              |    2 
 arch/arm/mach-at91/at91sam9261.c              |    2 
 arch/arm/mach-at91/at91sam9263.c              |    3 
 arch/arm/mach-at91/at91sam9g45.c              |    3 
 arch/arm/mach-at91/at91sam9n12.c              |    6 
 arch/arm/mach-at91/at91sam9rl.c               |    3 
 arch/arm/mach-at91/at91sam9x5.c               |    6 
 arch/arm/mach-at91/generic.h                  |    2 
 arch/arm/mach-at91/include/mach/at91sam9n12.h |    5 
 arch/arm/mach-at91/include/mach/at91sam9x5.h  |    5 
 arch/arm/mach-at91/include/mach/sama5d3.h     |    5 
 arch/arm/mach-at91/sama5d3.c                  |    6 
 arch/arm/mach-at91/sysirq_mask.c              |   71 +++++++++++
 arch/arm/mach-imx/clk-imx6q.c                 |    2 
 arch/arm/mach-integrator/integrator_cp.c      |    3 
 arch/arm/mach-omap2/irq.c                     |    2 
 arch/arm/mach-omap2/omap_device.c             |   13 +-
 arch/arm/mach-sa1100/assabet.c                |    3 
 arch/arm/mm/extable.c                         |    7 -
 arch/arm64/include/asm/pgtable.h              |   31 ++--
 arch/avr32/boot/u-boot/head.S                 |   35 ++++-
 arch/avr32/kernel/entry-avr32b.S              |    3 
 arch/avr32/kernel/head.S                      |   20 ---
 arch/parisc/include/asm/socket.h              |   11 +
 arch/parisc/include/uapi/asm/socket.h         |   11 -
 arch/powerpc/kernel/signal_32.c               |   16 +-
 arch/powerpc/kernel/signal_64.c               |    6 
 arch/s390/lib/uaccess_pt.c                    |    3 
 arch/sh/boards/mach-ecovec24/setup.c          |    1 
 block/blk-core.c                              |    4 
 crypto/asymmetric_keys/x509_public_key.c      |   38 -----
 drivers/acpi/pci_root.c                       |    3 
 drivers/acpi/scan.c                           |    2 
 drivers/ata/ahci.c                            |    6 
 drivers/ata/libahci.c                         |   16 ++
 drivers/ata/libata-core.c                     |    1 
 drivers/ata/libata-transport.c                |   16 +-
 drivers/base/dd.c                             |    2 
 drivers/block/loop.c                          |   19 +-
 drivers/block/xen-blkback/blkback.c           |    3 
 drivers/cpufreq/highbank-cpufreq.c            |    3 
 drivers/dma/ioat/dma_v3.c                     |   48 ++-----
 drivers/edac/highbank_l2_edac.c               |   18 +-
 drivers/edac/highbank_mc_edac.c               |   18 +-
 drivers/gpio/gpio-msm-v2.c                    |    2 
 drivers/gpio/gpio-mvebu.c                     |    2 
 drivers/gpio/gpio-pl061.c                     |   10 -
 drivers/gpio/gpio-rcar.c                      |    2 
 drivers/gpio/gpio-twl4030.c                   |    5 
 drivers/gpu/drm/i915/intel_ddi.c              |   20 +++
 drivers/gpu/drm/i915/intel_display.c          |    4 
 drivers/gpu/drm/i915/intel_dvo.c              |   16 +-
 drivers/gpu/drm/i915/intel_uncore.c           |   26 ++--
 drivers/gpu/drm/nouveau/nouveau_gem.c         |    3 
 drivers/gpu/drm/qxl/qxl_fb.c                  |    2 
 drivers/gpu/drm/qxl/qxl_release.c             |    1 
 drivers/gpu/drm/radeon/atombios_crtc.c        |    2 
 drivers/gpu/drm/radeon/atombios_i2c.c         |    6 
 drivers/gpu/drm/radeon/radeon_asic.c          |    4 
 drivers/gpu/drm/radeon/radeon_gart.c          |    2 
 drivers/gpu/drm/radeon/radeon_legacy_crtc.c   |   28 ++++
 drivers/gpu/drm/radeon/radeon_uvd.c           |    4 
 drivers/gpu/drm/radeon/sid.h                  |    2 
 drivers/gpu/drm/radeon/trinity_dpm.c          |    6 
 drivers/gpu/drm/ttm/ttm_bo.c                  |   32 +++--
 drivers/gpu/drm/ttm/ttm_bo_util.c             |   30 ++--
 drivers/gpu/drm/vmwgfx/vmwgfx_resource.c      |   42 +++++-
 drivers/hid/Kconfig                           |   11 +
 drivers/hid/hid-apple.c                       |   22 +++
 drivers/hid/hid-axff.c                        |    3 
 drivers/hid/hid-core.c                        |   18 +-
 drivers/hid/hid-holtek-mouse.c                |    4 
 drivers/hid/hid-ids.h                         |   16 ++
 drivers/hid/hid-lg.c                          |   80 ++++++++++++
 drivers/hid/hid-lg2ff.c                       |    2 
 drivers/hid/hid-lg4ff.c                       |   40 +++++-
 drivers/hid/hid-multitouch.c                  |   33 ++++-
 drivers/hid/hid-roccat-common.c               |   12 -
 drivers/hid/hid-roccat-kovaplus.c             |    4 
 drivers/hid/hid-sensor-hub.c                  |   13 +-
 drivers/hid/hid-wiimote-modules.c             |    4 
 drivers/hid/uhid.c                            |    2 
 drivers/hid/usbhid/hid-quirks.c               |    2 
 drivers/i2c/busses/i2c-wmt.c                  |    1 
 drivers/i2c/muxes/i2c-mux-gpio.c              |    8 -
 drivers/iio/accel/kxsd9.c                     |    7 -
 drivers/infiniband/hw/ipath/ipath_user_sdma.c |    7 -
 drivers/infiniband/hw/qib/qib_iba7322.c       |   11 -
 drivers/infiniband/hw/qib/qib_user_sdma.c     |    6 
 drivers/infiniband/ulp/isert/ib_isert.c       |   36 +++--
 drivers/infiniband/ulp/srp/ib_srp.c           |   20 +--
 drivers/input/evdev.c                         |   16 +-
 drivers/input/mouse/alps.c                    |    1 
 drivers/input/mouse/cypress_ps2.c             |   19 --
 drivers/input/serio/i8042-x86ia64io.h         |    2 
 drivers/input/touchscreen/usbtouchscreen.c    |    4 
 drivers/md/bcache/btree.c                     |   11 +
 drivers/md/dm-cache-target.c                  |   54 ++++++--
 drivers/md/dm-mpath.c                         |   18 ++
 drivers/md/dm-table.c                         |   18 ++
 drivers/md/md.c                               |    3 
 drivers/md/persistent-data/dm-array.c         |    5 
 drivers/md/raid5.c                            |    6 
 drivers/media/dvb-frontends/af9013.c          |   14 +-
 drivers/media/dvb-frontends/af9033.c          |   23 +++
 drivers/media/dvb-frontends/bcm3510.c         |   15 ++
 drivers/media/dvb-frontends/cxd2820r_core.c   |   21 ++-
 drivers/media/dvb-frontends/itd1000.c         |   13 +-
 drivers/media/dvb-frontends/mt312.c           |   10 +
 drivers/media/dvb-frontends/nxt200x.c         |   11 +
 drivers/media/dvb-frontends/rtl2830.c         |   14 +-
 drivers/media/dvb-frontends/rtl2832.c         |   14 +-
 drivers/media/dvb-frontends/s5h1420.c         |   11 +
 drivers/media/dvb-frontends/stb0899_drv.c     |   12 +
 drivers/media/dvb-frontends/stb6100.c         |   11 +
 drivers/media/dvb-frontends/stv0367.c         |   13 +-
 drivers/media/dvb-frontends/stv090x.c         |   12 +
 drivers/media/dvb-frontends/stv6110.c         |   12 +
 drivers/media/dvb-frontends/stv6110x.c        |   13 +-
 drivers/media/dvb-frontends/tda10071.c        |   25 +++
 drivers/media/dvb-frontends/tda18271c2dd.c    |   14 +-
 drivers/media/dvb-frontends/zl10039.c         |   12 +
 drivers/media/pci/cx18/cx18-driver.c          |   20 +--
 drivers/media/pci/cx23885/cimax2.c            |   13 +-
 drivers/media/pci/ttpci/av7110_hw.c           |   19 ++
 drivers/media/tuners/e4000.c                  |   25 +++
 drivers/media/tuners/fc2580.c                 |   25 +++
 drivers/media/tuners/tda18212.c               |   25 +++
 drivers/media/tuners/tda18218.c               |   23 +++
 drivers/media/tuners/tuner-xc2028.c           |    8 +
 drivers/media/usb/dvb-usb-v2/af9015.c         |    3 
 drivers/media/usb/dvb-usb-v2/af9035.c         |   29 ++++
 drivers/media/usb/dvb-usb-v2/mxl111sf.c       |   10 +
 drivers/media/usb/dvb-usb/cxusb.c             |   41 +++++-
 drivers/media/usb/dvb-usb/dibusb-common.c     |   10 +
 drivers/media/usb/dvb-usb/dw2102.c            |   90 ++++++++++++--
 drivers/media/v4l2-core/v4l2-async.c          |   30 ++++
 drivers/mfd/lpc_ich.c                         |   13 ++
 drivers/mfd/rts5249.c                         |   48 +++++++
 drivers/mmc/host/atmel-mci.c                  |   21 ++-
 drivers/mtd/devices/m25p80.c                  |   20 +--
 drivers/mtd/nand/atmel_nand.c                 |    1 
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c        |   18 +-
 drivers/mtd/nand/nand_base.c                  |   15 ++
 drivers/net/wireless/ath/ath5k/base.c         |    6 
 drivers/net/wireless/mwifiex/sdio.c           |    3 
 drivers/net/wireless/mwifiex/uap_txrx.c       |   29 ++++
 drivers/net/wireless/prism54/islpci_dev.c     |    7 -
 drivers/net/wireless/rt2x00/rt2400pci.c       |    2 
 drivers/net/wireless/rtlwifi/base.c           |   93 ++++++--------
 drivers/net/wireless/rtlwifi/rtl8188ee/hw.c   |    1 
 drivers/net/wireless/rtlwifi/rtl8192cu/mac.c  |    6 
 drivers/net/wireless/rtlwifi/rtl8192cu/trx.c  |    8 -
 drivers/net/wireless/rtlwifi/rtl8192de/trx.c  |    2 
 drivers/net/wireless/rtlwifi/rtl8192se/rf.c   |    2 
 drivers/net/wireless/rtlwifi/rtl8192se/trx.c  |    2 
 drivers/net/wireless/rtlwifi/wifi.h           |    6 
 drivers/pci/pcie/portdrv_pci.c                |    1 
 drivers/pinctrl/mvebu/pinctrl-dove.c          |    2 
 drivers/platform/x86/sony-laptop.c            |   27 ----
 drivers/regulator/pfuze100-regulator.c        |   12 +
 drivers/regulator/ti-abb-regulator.c          |    2 
 drivers/s390/net/qeth_core_main.c             |    6 
 drivers/staging/lustre/lustre/ptlrpc/pinger.c |    4 
 drivers/staging/media/lirc/lirc_zilog.c       |   12 +
 drivers/staging/rtl8188eu/core/rtw_ap.c       |    3 
 drivers/staging/tidspbridge/Kconfig           |    2 
 drivers/staging/vt6656/baseband.c             |   11 +
 drivers/staging/vt6656/rndis.h                |    2 
 drivers/staging/zram/zram_drv.c               |   19 ++
 drivers/staging/zsmalloc/zsmalloc-main.c      |   17 ++
 drivers/target/iscsi/iscsi_target_auth.c      |    5 
 drivers/target/iscsi/iscsi_target_configfs.c  |    5 
 drivers/target/iscsi/iscsi_target_device.c    |    6 
 drivers/target/iscsi/iscsi_target_nego.c      |    2 
 drivers/target/target_core_transport.c        |    2 
 drivers/tty/n_tty.c                           |   14 +-
 drivers/tty/tty_io.c                          |    1 
 drivers/video/backlight/atmel-pwm-bl.c        |   10 -
 drivers/video/console/sticore.c               |  166 ++++++++++++++++----------
 drivers/video/sticore.h                       |   62 +++++++--
 drivers/video/stifb.c                         |   10 -
 fs/cifs/cifsglob.h                            |    2 
 fs/cifs/cifssmb.c                             |    8 -
 fs/cifs/inode.c                               |   23 ++-
 fs/cifs/readdir.c                             |   40 +-----
 fs/cifs/smb1ops.c                             |   21 +++
 fs/cifs/smb2inode.c                           |   16 +-
 fs/cifs/smb2proto.h                           |    2 
 fs/devpts/inode.c                             |    1 
 fs/ext4/xattr.c                               |    1 
 fs/gfs2/inode.c                               |    5 
 fs/namei.c                                    |    1 
 include/acpi/acpi_bus.h                       |    1 
 include/linux/mfd/rtsx_pci.h                  |   53 ++++++++
 include/linux/msg.h                           |    6 
 include/linux/mtd/map.h                       |    4 
 include/linux/rbtree.h                        |   16 +-
 include/trace/ftrace.h                        |    5 
 ipc/msgutil.c                                 |   20 +--
 ipc/util.h                                    |    4 
 kernel/audit.c                                |   27 +++-
 kernel/cgroup.c                               |   35 ++++-
 kernel/cpuset.c                               |    8 -
 kernel/irq/manage.c                           |    2 
 kernel/power/snapshot.c                       |    9 +
 kernel/power/user.c                           |    1 
 kernel/time/alarmtimer.c                      |    4 
 kernel/trace/ftrace.c                         |   64 +++++-----
 kernel/workqueue.c                            |   24 +++
 lib/vsprintf.c                                |   33 ++++-
 mm/mmap.c                                     |   10 -
 mm/zswap.c                                    |   22 ++-
 net/wireless/scan.c                           |    4 
 security/selinux/netlabel.c                   |    6 
 sound/pci/hda/hda_generic.c                   |   79 +++++++++---
 sound/pci/hda/patch_realtek.c                 |   11 +
 sound/soc/blackfin/bf5xx-i2s.c                |    1 
 sound/soc/codecs/ak4642.c                     |    2 
 sound/soc/codecs/arizona.c                    |    4 
 sound/soc/codecs/cs42l52.h                    |    2 
 sound/soc/codecs/wm5110.c                     |   43 ++++++
 sound/soc/codecs/wm8962.c                     |    2 
 sound/soc/codecs/wm_adsp.c                    |    5 
 sound/soc/fsl/imx-pcm-fiq.c                   |   29 ++--
 tools/perf/ui/hist.c                          |    2 
 tools/perf/util/color.c                       |   11 +
 tools/perf/util/color.h                       |    2 
 tools/perf/util/event.c                       |    6 
 235 files changed, 2425 insertions(+), 898 deletions(-)

Aaron Lu (1):
PM / hibernate: Avoid overflow in hibernate_preallocate_memory()

Akira Takeuchi (1):
mm: ensure get_unmapped_area() returns higher address than mmap_min_addr

Alex Deucher (4):
drm/radeon/si: fix define for MC_SEQ_TRAIN_WAKEUP_CNTL drm/radeon: don't share PPLLs on DCE4.1
drm/radeon: adjust TN dpm parameters for stability (v2) drm/radeon/vm: don't attempt to update ptes if ib allocation fails

Anders F. U. Kiær (1):
HID: add support for LEETGION Hellion Gaming Mouse

Andreas Bießmann (2):
avr32: setup crt for early panic()
avr32: fix out-of-range jump in large kernels

Avinash Patil (1):
mwifiex: correct packet length for packets from SDIO interface

Bart Van Assche (2):
IB/srp: Avoid offlining operational SCSI devices IB/srp: Report receive errors correctly

Ben Skeggs (1):
drm/nouveau: when bailing out of a pushbuf ioctl, do not remove previous fence

Brian Austin (1):
ASoC: cs42l52: Correct MIC CTL mask

Brian Norris (2):
mtd: nand: hack ONFI for non-power-of-2 dimensions
mtd: m25p80: fix allocation size

Catalin Marinas (1):
arm64: Move PTE_PROT_NONE higher up

Charles Keepax (1):
ASoC: wm5110: Add post SYSCLK register patch for rev D chip

Christian König (2):
drm/radeon: activate UVD clocks before sending the destroy msg drm/radeon: fix UVD destroy IB size

Dan Carpenter (3):
gpio: mvebu: make mvchip->irqbase signed for error handling
gpio: msm: make msm_gpio.summary_irq signed for error handling
gpio: rcar: NULL dereference on error in probe()

Dan Williams (3):
ioatdma: fix sed pool selection
ioatdma: fix selection of 16 vs 8 source path
prism54: set netdev type to "wlan"

Daniel Stone (1):
Input: evdev - fall back to vmalloc for client event buffer

Daniel Vetter (4):
drm/i915/dvo: call ->mode_set callback only when the port is running drm/i915: flush cursors harder
drm/i915: restore the early forcewake cleanup
drm/i915: Replicate BIOS eDP bpp clamping hack for hsw

Dave Airlie (2):
qxl: avoid an oops in the deferred io code. drm/qxl: fix memory leak in release list handling

Dave Jiang (1):
ioatdma: Fix bug in selftest after removal of DMA_MEMSET.

David Herrmann (2):
HID: wiimote: fix inverted pro-controller axes
HID: uhid: fix leak for 64/32 UHID_CREATE

David Howells (1):
X.509: Remove certificate date checks

Dmitry Torokhov (1):
Revert "Input: ALPS - add support for model found on Dell XT2"

Don Zickus (1):
perf tools: Synthesize anon MMAP records again

Doug Anderson (1):
ARM: dts: Add max77686 RTC interrupt to cros5250-common

Elias Vanderstuyft (1):
HID: logitech - lg2ff: Add IDs for Formula Vibration Feedback Wheel

Eric Seppanen (2):
iscsi-target: fix extract_param to handle buffer length corner case
iscsi-target: chap auth shouldn't match username with trailing garbage

Felipe Pena (1):
rtlwifi: rtl8192se: Fix wrong assignment

Felix Fietkau (1):
ath5k: fix regression in tx status processing

Forest Bond (3):
HID: don't ignore eGalax/D-Wav/EETI HIDs
Input: usbtouchscreen: ignore eGalax/D-Wav/EETI HIDs
HID: hid-multitouch: add support for SiS panels

Frank Zago (1):
iio:accel:kxsd9 fix missing mutex unlock

Greg Kroah-Hartman (2):
Staging: tidspbridge: disable driver
Linux 3.12.3

Gwendal Grignou (1):
libata: Fix display of sata speed

Heiko Carstens (1):
s390/uaccess: add missing page table walk range check

Helge Deller (2):
parisc: sticon - unbreak on 64bit kernel
parisc: break out SOCK_NONBLOCK define to own asm header file

Huang Shijie (2):
mtd: gpmi: fix kernel BUG due to racing DMA operations
mtd: gpmi: fix the NULL pointer

Ilija Hadzic (1):
devpts: plug the memory leak in kill_sb

Ionut Nicu (2):
i2c: mux: gpio: use reg value for i2c_add_mux_adapter
i2c: mux: gpio: use gpio_set_value_cansleep()

Jakob Bornecrantz (1):
drm/ttm: Handle in-memory region copies

James Ralston (2):
ahci: Add Device IDs for Intel Wildcat Point-LP
mfd: lpc_ich: Add Device IDs for Intel Wildcat Point-LP PCH

Jan Kara (3):
rbtree: fix rbtree_postorder_for_each_entry_safe() iterator IB/ipath: Convert ipath_user_sdma_pin_pages() to use get_user_pages_fast() IB/qib: Convert qib_user_sdma_pin_pages() to use get_user_pages_fast()

Jeff Layton (2):
audit: add child record before the create to handle case where create fails
audit: log the audit_names record type

Jerome Glisse (2):
radeon/i2c: do not count reg index in number of i2c byte we are writing.
radeon: workaround pinning failure on low ram gpu

Jiada Wang (1):
ARM: i.MX6q: fix the wrong parent of can_root clock

Joe Thornber (2):
dm array: fix bug in growing array
dm cache: fix a race condition between queuing new migrations and quiescing for a shutdown

Johan Hovold (4):
ARM: at91: fix hanged boot due to early rtc-interrupt
ARM: at91: fix hanged boot due to early rtt-interrupt
backlight: atmel-pwm-bl: fix gpio polarity in remove
backlight: atmel-pwm-bl: fix reported brightness

Johannes Berg (1):
cfg80211: fix scheduled scan pointer access

Jonathan Austin (1):
ARM: integrator_cp: Set LCD{0,1} enable lines when turning on CLCD

Joseph Salisbury (1):
Input: cypress_ps2 - do not consider data bad if palm is detected

Josh Wu (1):
mtd: atmel_nand: fix bug driver will in a dead lock if no nand detected

KOSAKI Motohiro (1):
alarmtimer: return EINVAL instead of ENOTSUPP if rtcdev doesn't exist

KaiChung Cheng (1):
HID: multicouh: add PID VID to support 1 new Wistron optical touch device

Kailang Yang (2):
ALSA: hda/realtek - Set pcbeep amp for ALC668
ALSA: hda/realtek - Add support of ALC231 codec

Kent Overstreet (1):
bcache: Fix dirty_data accounting

Kuninori Morimoto (1):
sh: ecovec: fixup compile error on sdhi

Larry Finger (6):
staging: r8188eu: Fix AP mode
rtlwifi: rtl8188ee: Fix smatch warning in rtl8188ee/hw.c
rtlwifi: rtl8192cu: Fix more pointer arithmetic errors
rtlwifi: rtl8192de: Fix incorrect signal strength for unassociated AP
rtlwifi: rtl8192se: Fix incorrect signal strength for unassociated AP
rtlwifi: rtl8192cu: Fix incorrect signal strength for unassociated AP

Linus Walleij (1):
gpio: pl061: move irqdomain initialization

Ludovic Desroches (1):
mmc: atmel-mci: abort transfer on timeout error

Luosong (1):
HID: multitouch: Fix GeneralTouch products and add more PIDs

Malcolm Priestley (1):
staging: vt6656: [BUG] Fix for TX USB resets from vendors driver.

Marc Zyngier (1):
ARM: 7876/1: clear Thumb-2 IT state on exception handling

Mark Cave-Ayland (1):
rtlwifi: Fix endian error in extracting packet type

Mark Langsdorf (1):
cpufreq: highbank-cpufreq: Enable Midway/ECX-2000

Markus Pargmann (1):
ARM: OMAP2+: irq, AM33XX add missing register check

Mathias Krause (3):
ipc, msg: fix message length check for negative values
audit: use nlmsg_len() to get message payload length
audit: fix info leak in AUDIT_GET requests

Mattia Dongili (1):
sony-laptop: do not scribble keyboard backlight registers on resume

Mauro Carvalho Chehab (19):
media: mxl111sf: Don't use dynamic static allocation
media: af9035: Don't use dynamic static allocation
media: af9015: Don't use dynamic static allocation
media: dw2102: Don't use dynamic static allocation
media: dibusb-common: Don't use dynamic static allocation
media: cxusb: Don't use dynamic static allocation
media: av7110_hw: Don't use dynamic static allocation
media: cimax2: Don't use dynamic static allocation
media: cx18: struct i2c_client is too big for stack
media: lirc_zilog: Don't use dynamic static allocation
media: v4l2-async: Don't use dynamic static allocation
media: tuner-xc2028: Don't use dynamic static allocation
media: tuners: Don't use dynamic static allocation
media: stv090x: Don't use dynamic static allocation
media: stv0367: Don't use dynamic static allocation
media: stb0899_drv: Don't use dynamic static allocation
media: dvb-frontends: Don't use dynamic static allocation
media: dvb-frontends: Don't use dynamic static allocation
media: s5h1420: Don't use dynamic static allocation

Michael Hudson-Doyle (1):
perf tools: Remove cast of non-variadic function to variadic

Michael Neuling (1):
powerpc/signals: Improved mark VSX not saved with small contexts fix

Mike Marciniszyn (1):
IB/qib: Fix txselect regression

Mikulas Patocka (4):
loop: fix crash if blk_alloc_queue fails
loop: fix crash when using unassigned loop device
dm: allocate buffer for messages with small number of arguments using GFP_NOIO
blk-core: Fix memory corruption if blkcg_init_queue fails

Nanno Langstraat (1):
HID: apple: option to swap the 'Option' ("Alt") and 'Command' ("Flag") keys.

Nariman Poushin (1):
ASoC: wm_adsp: Interpret ADSP memory region lengths as 32 bit words

NeilBrown (2):
md: fix calculation of stacking limits on level change.
md: test mddev->flags more safely in md_check_recovery.

Nicholas Bellinger (3):
iscsi-target: Fix mutex_trylock usage in iscsit_increment_maxcmdsn
target: Fix delayed Task Aborted Status (TAS) handling bug
ib_isert: Avoid duplicate iscsit_increment_maxcmdsn call

Nicolin Chen (1):
ASoC: wm8962: Turn on regcache_cache_only before disabling regulator

Nishanth Menon (2):
ARM: OMAP2+: omap_device: maintain sane runtime pm status around suspend/resume
regulator: ti-abb: Fix operator precedence typo

Olav Haugan (1):
staging: zsmalloc: Ensure handle is never 0 on success

Oskar Schirmer (1):
ASoC: fsl: imx-pcm-fiq: omit fiq counter to avoid harm in unbalanced situations

Paul Moore (1):
selinux: correct locking in selinux_netlbl_socket_connect)

Pavel Shilovsky (1):
CIFS: Fix symbolic links usage

Peng Tao (1):
staging/lustre/ptlrpc: fix ptlrpc_stop_pinger logic

Peter Hurley (4):
n_tty: Fix 4096-byte canonical reads
n_tty: Fix echo overrun tail computation
tty: Reset hupped state on open
n_tty: Ensure reader restarts worker for next reader

Peter Zijlstra (1):
cpuset: Fix memory allocator deadlock

Phil Edworthy (1):
ASoC: ak4642: prevent un-necessary changes to SG_SL1

Rafael J. Wysocki (2):
PM / runtime: Use pm_runtime_put_sync() in __device_release_driver() PM / Hibernate: Do not crash kernel in free_basic_memory_bitmaps()

Rashika Kheria (1):
Staging: zram: Fix memory leak by refcount mismatch

Richard Fitzgerald (1):
ASoC: arizona: Set FLL to free-run before disabling

Robert Richter (1):
edac, highbank: Fix interrupt setup of mem and l2 controller

Rodolfo Giometti (1):
mmc: atmel-mci: fix oops in atmci_tasklet_func

Roel Kluin (2):
pinctrl: dove: unset twsi option3 for gconfig as well
tty: incorrect test of echo_buf() result for ECHO_OP_START

Russell King (1):
ARM: sa11x0/assabet: ensure CS2 is configured appropriately

Ryan Mallon (1):
vsprintf: check real user/group id for %pK

Samir Benmendil (1):
ahci: add Marvell 9230 to the AHCI PCI device list

Samuel Li (1):
drm/radeon: hook up backlight functions for CI and KV family.

Shan Hai (1):
drivers/libata: Set max sector to 65535 for Slimtype DVD A DS8A9SH drive

Shiva Krishna Merla (1):
dm mpath: fix race condition between multipath_dtr and pg_init_done

Simon Wood (3):
HID:hid-lg4ff: Scale autocentering force properly on Logitech wheel HID:hid-lg4ff: Switch autocentering off when strength is set to zero.
HID: lg: fix ReportDescriptor for Logitech Formula Vibration

Srinivas Pandruvada (1):
HID: hid-sensor-hub: fix report size

Stanislaw Gruszka (1):
rt2400pci: fix RSSI read

Stefan Achatz (3):
HID: roccat: add new device return value
HID: roccat: fix Coverity CID 141438
HID: roccat: add missing special driver declarations

Stephen Warren (1):
ARM: bcm2835: add missing #xxx-cells to I2C nodes

Steve French (1):
setfacl removes part of ACL when setting POSIX ACLs to Samba

Steven Rostedt (Red Hat) (2):
ftrace: Fix function graph with loading of modules
tracing: Allow events to have NULL strings

Steven Whitehouse (1):
GFS2: Fix ref count bug relating to atomic_open

Takashi Iwai (5):
ASoC: blackfin: Fix missing break
ALSA: hda - Fix hp-mic mode without VREF bits
ALSA: hda - Create Headhpone Mic Jack Mode when really needed
ALSA: hda - Initialize missing bass speaker pin for ASUS AIO ET2700
ALSA: hda - Check leaf nodes to find aamix amps

Tejun Heo (3):
workqueue: fix ordered workqueues in NUMA setups
cgroup: use a dedicated workqueue for cgroup destruction
cgroup: fix cgroup_subsys_state leak for seq_files

Theodore Ts'o (1):
ext4: avoid bh leak in retry path of ext4_expand_extra_isize_ea()

Thomas Hellstrom (3):
drm/vmwgfx: Resource evict fixes drm/ttm: Fix memory type compatibility check drm/ttm: Fix ttm_bo_move_memcpy

Thomas Pfaff (1):
genirq: Set the irq thread policy without checking CAP_SYS_NICE

Tim Harvey (1):
regulator: pfuze100: allow misprogrammed ID

Tom Gundersen (1):
Input: i8042 - add PNP modaliases

Tony Lindgren (1):
gpio: twl4030: Fix regression for twl gpio output

Toshi Kani (1):
ACPI / hotplug: Fix conflicted PCI bridge notify handlers

Tristan Rice (1):
HID: enable Mayflash USB Gamecube Adapter

Tyler Hicks (1):
audit: printk USER_AVC messages when audit isn't enabled

Ujjal Roy (1):
mwifiex: fix wrong eth_hdr usage for bridged packets in AP mode

Ursula Braun (1):
qeth: avoid buffer overflow in snmp ioctl

Vegard Nossum (1):
xen/blkback: fix reference counting

Vu Pham (2):
IB/srp: Remove target from list before freeing Scsi_Host structure
iser-target: Avoid using FRMR for single dma entry requests

Wang Haitao (1):
mtd: map: fixed bug in 64-bit systems

Wei WANG (1):
mfd: rtsx: Modify rts5249_optimize_phy

Wei Yongjun (1):
i2c: wmt: add missing clk_disable_unprepare() on error

Weijie Yang (1):
mm/zswap: bugfix: memory leak when invalidate and reclaim occur concurrently

Yinghai Lu (1):
PCI: Remove duplicate pci_disable_device() from pcie_portdrv_remove()

majianpeng (2):
raid5: Use slow_path to release stripe when mddev->thread is null md/raid5: Before freeing old multi-thread worker, it should flush them.

xiangliang yu (1):
ahci: disabled FBS prior to issuing software reset

author maintainer
#1 lore raw
Documentation/sysctl/kernel.txt +18 -7
index 9d4c1d18..fb78e60a 100644
@@ -290,13 +290,24 @@ Default value is "/sbin/hotplug".
 kptr_restrict:
 
 This toggle indicates whether restrictions are placed on
-exposing kernel addresses via /proc and other interfaces.  When
-kptr_restrict is set to (0), there are no restrictions.  When
-kptr_restrict is set to (1), the default, kernel pointers
-printed using the %pK format specifier will be replaced with 0's
-unless the user has CAP_SYSLOG.  When kptr_restrict is set to
-(2), kernel pointers printed using %pK will be replaced with 0's
-regardless of privileges.
+exposing kernel addresses via /proc and other interfaces.
+
+When kptr_restrict is set to (0), the default, there are no restrictions.
+
+When kptr_restrict is set to (1), kernel pointers printed using the %pK
+format specifier will be replaced with 0's unless the user has CAP_SYSLOG
+and effective user and group ids are equal to the real ids. This is
+because %pK checks are done at read() time rather than open() time, so
+if permissions are elevated between the open() and the read() (e.g via
+a setuid binary) then %pK will not leak kernel pointers to unprivileged
+users. Note, this is a temporary solution only. The correct long-term
+solution is to do the permission checks at open() time. Consider removing
+world read permissions from files that use %pK, and using dmesg_restrict
+to protect against uses of %pK in dmesg(8) if leaking kernel pointer
+values to unprivileged users is a concern.
+
+When kptr_restrict is set to (2), kernel pointers printed using
+%pK will be replaced with 0's regardless of privileges.
 
 ==============================================================
 
Makefile +1 -1
index e6e72b62..b28bc57d 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 12
-SUBLEVEL = 2
+SUBLEVEL = 3
 EXTRAVERSION =
 NAME = One Giant Leap for Frogkind
 
arch/arm/boot/dts/bcm2835.dtsi +4 -0
index 1e12aeff..aa537ed1 100644
@@ -85,6 +85,8 @@
 			reg = <0x7e205000 0x1000>;
 			interrupts = <2 21>;
 			clocks = <&clk_i2c>;
+			#address-cells = <1>;
+			#size-cells = <0>;
 			status = "disabled";
 		};
 
@@ -93,6 +95,8 @@
 			reg = <0x7e804000 0x1000>;
 			interrupts = <2 21>;
 			clocks = <&clk_i2c>;
+			#address-cells = <1>;
+			#size-cells = <0>;
 			status = "disabled";
 		};
 
arch/arm/boot/dts/cros5250-common.dtsi +12 -0
index dc259e8b..9b186ac0 100644
@@ -27,6 +27,13 @@
 		i2c2_bus: i2c2-bus {
 			samsung,pin-pud = <0>;
 		};
+
+		max77686_irq: max77686-irq {
+			samsung,pins = "gpx3-2";
+			samsung,pin-function = <0>;
+			samsung,pin-pud = <0>;
+			samsung,pin-drv = <0>;
+		};
 	};
 
 	i2c@12C60000 {
@@ -35,6 +42,11 @@
 
 		max77686@09 {
 			compatible = "maxim,max77686";
+			interrupt-parent = <&gpx3>;
+			interrupts = <2 0>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&max77686_irq>;
+			wakeup-source;
 			reg = <0x09>;
 
 			voltage-regulators {
arch/arm/kernel/entry-armv.S +1 -0
index 9cbe70c8..ec3e5cf4 100644
@@ -192,6 +192,7 @@ __dabt_svc:
 	svc_entry
 	mov	r2, sp
 	dabt_helper
+ THUMB(	ldr	r5, [sp, #S_PSR]	)	@ potentially updated CPSR
 	svc_exit r5				@ return from exception
  UNWIND(.fnend		)
 ENDPROC(__dabt_svc)
arch/arm/mach-at91/Makefile +1 -1
index 3b0a9538..e0fda04e 100644
@@ -2,7 +2,7 @@
 # Makefile for the linux kernel.
 #
 
-obj-y		:= irq.o gpio.o setup.o
+obj-y		:= irq.o gpio.o setup.o sysirq_mask.o
 obj-m		:=
 obj-n		:=
 obj-		:=
arch/arm/mach-at91/at91sam9260.c +2 -0
index 5de6074b..ae10d14d 100644
@@ -349,6 +349,8 @@ static void __init at91sam9260_initialize(void)
 	arm_pm_idle = at91sam9_idle;
 	arm_pm_restart = at91sam9_alt_restart;
 
+	at91_sysirq_mask_rtt(AT91SAM9260_BASE_RTT);
+
 	/* Register GPIO subsystem */
 	at91_gpio_init(at91sam9260_gpio, 3);
 }
arch/arm/mach-at91/at91sam9261.c +2 -0
index 0e079324..e761e74a 100644
@@ -291,6 +291,8 @@ static void __init at91sam9261_initialize(void)
 	arm_pm_idle = at91sam9_idle;
 	arm_pm_restart = at91sam9_alt_restart;
 
+	at91_sysirq_mask_rtt(AT91SAM9261_BASE_RTT);
+
 	/* Register GPIO subsystem */
 	at91_gpio_init(at91sam9261_gpio, 3);
 }
arch/arm/mach-at91/at91sam9263.c +3 -0
index 6ce7d185..e6fed625 100644
@@ -328,6 +328,9 @@ static void __init at91sam9263_initialize(void)
 	arm_pm_idle = at91sam9_idle;
 	arm_pm_restart = at91sam9_alt_restart;
 
+	at91_sysirq_mask_rtt(AT91SAM9263_BASE_RTT0);
+	at91_sysirq_mask_rtt(AT91SAM9263_BASE_RTT1);
+
 	/* Register GPIO subsystem */
 	at91_gpio_init(at91sam9263_gpio, 5);
 }
arch/arm/mach-at91/at91sam9g45.c +3 -0
index 474ee04d..9f7a97c8 100644
@@ -377,6 +377,9 @@ static void __init at91sam9g45_initialize(void)
 	arm_pm_idle = at91sam9_idle;
 	arm_pm_restart = at91sam9g45_restart;
 
+	at91_sysirq_mask_rtc(AT91SAM9G45_BASE_RTC);
+	at91_sysirq_mask_rtt(AT91SAM9G45_BASE_RTT);
+
 	/* Register GPIO subsystem */
 	at91_gpio_init(at91sam9g45_gpio, 5);
 }
arch/arm/mach-at91/at91sam9n12.c +6 -0
index c7d670d1..4d6001c3 100644
@@ -223,7 +223,13 @@ static void __init at91sam9n12_map_io(void)
 	at91_init_sram(0, AT91SAM9N12_SRAM_BASE, AT91SAM9N12_SRAM_SIZE);
 }
 
+static void __init at91sam9n12_initialize(void)
+{
+	at91_sysirq_mask_rtc(AT91SAM9N12_BASE_RTC);
+}
+
 AT91_SOC_START(at91sam9n12)
 	.map_io = at91sam9n12_map_io,
 	.register_clocks = at91sam9n12_register_clocks,
+	.init = at91sam9n12_initialize,
 AT91_SOC_END
arch/arm/mach-at91/at91sam9rl.c +3 -0
index d4ec0d9a..301e1728 100644
@@ -294,6 +294,9 @@ static void __init at91sam9rl_initialize(void)
 	arm_pm_idle = at91sam9_idle;
 	arm_pm_restart = at91sam9_alt_restart;
 
+	at91_sysirq_mask_rtc(AT91SAM9RL_BASE_RTC);
+	at91_sysirq_mask_rtt(AT91SAM9RL_BASE_RTT);
+
 	/* Register GPIO subsystem */
 	at91_gpio_init(at91sam9rl_gpio, 4);
 }
arch/arm/mach-at91/at91sam9x5.c +6 -0
index 916e5a14..e8a2e075 100644
@@ -322,6 +322,11 @@ static void __init at91sam9x5_map_io(void)
 	at91_init_sram(0, AT91SAM9X5_SRAM_BASE, AT91SAM9X5_SRAM_SIZE);
 }
 
+static void __init at91sam9x5_initialize(void)
+{
+	at91_sysirq_mask_rtc(AT91SAM9X5_BASE_RTC);
+}
+
 /* --------------------------------------------------------------------
  *  Interrupt initialization
  * -------------------------------------------------------------------- */
@@ -329,4 +334,5 @@ static void __init at91sam9x5_map_io(void)
 AT91_SOC_START(at91sam9x5)
 	.map_io = at91sam9x5_map_io,
 	.register_clocks = at91sam9x5_register_clocks,
+	.init = at91sam9x5_initialize,
 AT91_SOC_END
arch/arm/mach-at91/generic.h +2 -0
index dc6e2f5f..26dee3ce 100644
@@ -34,6 +34,8 @@ extern int  __init at91_aic_of_init(struct device_node *node,
 				    struct device_node *parent);
 extern int  __init at91_aic5_of_init(struct device_node *node,
 				    struct device_node *parent);
+extern void __init at91_sysirq_mask_rtc(u32 rtc_base);
+extern void __init at91_sysirq_mask_rtt(u32 rtt_base);
 
 
  /* Timer */
arch/arm/mach-at91/include/mach/at91sam9n12.h +5 -0
index d374b87c..0151bcf6 100644
@@ -49,6 +49,11 @@
 #define AT91SAM9N12_BASE_USART3	0xf8028000
 
 /*
+ * System Peripherals
+ */
+#define AT91SAM9N12_BASE_RTC	0xfffffeb0
+
+/*
  * Internal Memory.
  */
 #define AT91SAM9N12_SRAM_BASE	0x00300000	/* Internal SRAM base address */
arch/arm/mach-at91/include/mach/at91sam9x5.h +5 -0
index c75ee19b..2fc76c49 100644
@@ -55,6 +55,11 @@
 #define AT91SAM9X5_BASE_USART2	0xf8024000
 
 /*
+ * System Peripherals
+ */
+#define AT91SAM9X5_BASE_RTC	0xfffffeb0
+
+/*
  * Internal Memory.
  */
 #define AT91SAM9X5_SRAM_BASE	0x00300000	/* Internal SRAM base address */
arch/arm/mach-at91/include/mach/sama5d3.h +5 -0
index 31096a8a..25613d8c 100644
@@ -73,6 +73,11 @@
 #define SAMA5D3_BASE_USART3	0xf8024000
 
 /*
+ * System Peripherals
+ */
+#define SAMA5D3_BASE_RTC	0xfffffeb0
+
+/*
  * Internal Memory
  */
 #define SAMA5D3_SRAM_BASE	0x00300000	/* Internal SRAM base address */
arch/arm/mach-at91/sama5d3.c +6 -0
index 40127971..3ea86428 100644
@@ -371,7 +371,13 @@ static void __init sama5d3_map_io(void)
 	at91_init_sram(0, SAMA5D3_SRAM_BASE, SAMA5D3_SRAM_SIZE);
 }
 
+static void __init sama5d3_initialize(void)
+{
+	at91_sysirq_mask_rtc(SAMA5D3_BASE_RTC);
+}
+
 AT91_SOC_START(sama5d3)
 	.map_io = sama5d3_map_io,
 	.register_clocks = sama5d3_register_clocks,
+	.init = sama5d3_initialize,
 AT91_SOC_END
arch/arm/mach-at91/sysirq_mask.c new file +71 -0

71 lines not on this page · raw message

arch/arm/mach-imx/clk-imx6q.c +1 -1
index 9181a241..ef85ac49 100644
@@ -428,7 +428,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node)
 	clk[asrc_podf]        = imx_clk_divider("asrc_podf",        "asrc_pred",         base + 0x30, 9,  3);
 	clk[spdif_pred]       = imx_clk_divider("spdif_pred",       "spdif_sel",         base + 0x30, 25, 3);
 	clk[spdif_podf]       = imx_clk_divider("spdif_podf",       "spdif_pred",        base + 0x30, 22, 3);
-	clk[can_root]         = imx_clk_divider("can_root",         "pll3_usb_otg",      base + 0x20, 2,  6);
+	clk[can_root]         = imx_clk_divider("can_root",         "pll3_60m",          base + 0x20, 2,  6);
 	clk[ecspi_root]       = imx_clk_divider("ecspi_root",       "pll3_60m",          base + 0x38, 19, 6);
 	clk[gpu2d_core_podf]  = imx_clk_divider("gpu2d_core_podf",  "gpu2d_core_sel",    base + 0x18, 23, 3);
 	clk[gpu3d_core_podf]  = imx_clk_divider("gpu3d_core_podf",  "gpu3d_core_sel",    base + 0x18, 26, 3);
arch/arm/mach-integrator/integrator_cp.c +2 -1
index 8c60fcb0..2f4c9248 100644
@@ -199,7 +199,8 @@ static struct mmci_platform_data mmc_data = {
 static void cp_clcd_enable(struct clcd_fb *fb)
 {
 	struct fb_var_screeninfo *var = &fb->fb.var;
-	u32 val = CM_CTRL_STATIC1 | CM_CTRL_STATIC2;
+	u32 val = CM_CTRL_STATIC1 | CM_CTRL_STATIC2
+			| CM_CTRL_LCDEN0 | CM_CTRL_LCDEN1;
 
 	if (var->bits_per_pixel <= 8 ||
 	    (var->bits_per_pixel == 16 && var->green.length == 5))
arch/arm/mach-omap2/irq.c +1 -1
index 3926f370..e022a869 100644
@@ -233,7 +233,7 @@ static inline void omap_intc_handle_irq(void __iomem *base_addr, struct pt_regs
 			goto out;
 
 		irqnr = readl_relaxed(base_addr + 0xd8);
-#ifdef CONFIG_SOC_TI81XX
+#if IS_ENABLED(CONFIG_SOC_TI81XX) || IS_ENABLED(CONFIG_SOC_AM33XX)
 		if (irqnr)
 			goto out;
 		irqnr = readl_relaxed(base_addr + 0xf8);
arch/arm/mach-omap2/omap_device.c +11 -2
index b69dd9ab..53f07358 100644
@@ -621,6 +621,7 @@ static int _od_suspend_noirq(struct device *dev)
 
 	if (!ret && !pm_runtime_status_suspended(dev)) {
 		if (pm_generic_runtime_suspend(dev) == 0) {
+			pm_runtime_set_suspended(dev);
 			omap_device_idle(pdev);
 			od->flags |= OMAP_DEVICE_SUSPENDED;
 		}
@@ -634,10 +635,18 @@ static int _od_resume_noirq(struct device *dev)
 	struct platform_device *pdev = to_platform_device(dev);
 	struct omap_device *od = to_omap_device(pdev);
 
-	if ((od->flags & OMAP_DEVICE_SUSPENDED) &&
-	    !pm_runtime_status_suspended(dev)) {
+	if (od->flags & OMAP_DEVICE_SUSPENDED) {
 		od->flags &= ~OMAP_DEVICE_SUSPENDED;
 		omap_device_enable(pdev);
+		/*
+		 * XXX: we run before core runtime pm has resumed itself. At
+		 * this point in time, we just restore the runtime pm state and
+		 * considering symmetric operations in resume, we donot expect
+		 * to fail. If we failed, something changed in core runtime_pm
+		 * framework OR some device driver messed things up, hence, WARN
+		 */
+		WARN(pm_runtime_set_active(dev),
+		     "Could not set %s runtime state active\n", dev_name(dev));
 		pm_generic_runtime_resume(dev);
 	}
 
arch/arm/mach-sa1100/assabet.c +3 -0
index e838ba27..c9808c68 100644
@@ -512,6 +512,9 @@ static void __init assabet_map_io(void)
 	 * Its called GPCLKR0 in my SA1110 manual.
 	 */
 	Ser1SDCR0 |= SDCR0_SUS;
+	MSC1 = (MSC1 & ~0xffff) |
+		MSC_NonBrst | MSC_32BitStMem |
+		MSC_RdAcc(2) | MSC_WrAcc(2) | MSC_Rec(0);
 
 	if (!machine_has_neponset())
 		sa1100_register_uart_fns(&assabet_port_fns);
arch/arm/mm/extable.c +6 -1
index 9d285626..312e15e6 100644
@@ -9,8 +9,13 @@ int fixup_exception(struct pt_regs *regs)
 	const struct exception_table_entry *fixup;
 
 	fixup = search_exception_tables(instruction_pointer(regs));
-	if (fixup)
+	if (fixup) {
 		regs->ARM_pc = fixup->fixup;
+#ifdef CONFIG_THUMB2_KERNEL
+		/* Clear the IT state to avoid nasty surprises in the fixup */
+		regs->ARM_cpsr &= ~PSR_IT_MASK;
+#endif
+	}
 
 	return fixup != NULL;
 }
arch/arm64/include/asm/pgtable.h +17 -14
index f0bebc5e..0b27b657 100644
@@ -25,10 +25,11 @@
  * Software defined PTE bits definition.
  */
 #define PTE_VALID		(_AT(pteval_t, 1) << 0)
-#define PTE_PROT_NONE		(_AT(pteval_t, 1) << 2)	/* only when !PTE_VALID */
-#define PTE_FILE		(_AT(pteval_t, 1) << 3)	/* only when !pte_present() */
+#define PTE_FILE		(_AT(pteval_t, 1) << 2)	/* only when !pte_present() */
 #define PTE_DIRTY		(_AT(pteval_t, 1) << 55)
 #define PTE_SPECIAL		(_AT(pteval_t, 1) << 56)
+				/* bit 57 for PMD_SECT_SPLITTING */
+#define PTE_PROT_NONE		(_AT(pteval_t, 1) << 58) /* only when !PTE_VALID */
 
 /*
  * VMALLOC and SPARSEMEM_VMEMMAP ranges.
@@ -357,18 +358,20 @@ extern pgd_t idmap_pg_dir[PTRS_PER_PGD];
 
 /*
  * Encode and decode a swap entry:
- *	bits 0, 2:	present (must both be zero)
- *	bit  3:		PTE_FILE
- *	bits 4-8:	swap type
- *	bits 9-63:	swap offset
+ *	bits 0-1:	present (must be zero)
+ *	bit  2:		PTE_FILE
+ *	bits 3-8:	swap type
+ *	bits 9-57:	swap offset
  */
-#define __SWP_TYPE_SHIFT	4
+#define __SWP_TYPE_SHIFT	3
 #define __SWP_TYPE_BITS		6
+#define __SWP_OFFSET_BITS	49
 #define __SWP_TYPE_MASK		((1 << __SWP_TYPE_BITS) - 1)
 #define __SWP_OFFSET_SHIFT	(__SWP_TYPE_BITS + __SWP_TYPE_SHIFT)
+#define __SWP_OFFSET_MASK	((1UL << __SWP_OFFSET_BITS) - 1)
 
 #define __swp_type(x)		(((x).val >> __SWP_TYPE_SHIFT) & __SWP_TYPE_MASK)
-#define __swp_offset(x)		((x).val >> __SWP_OFFSET_SHIFT)
+#define __swp_offset(x)		(((x).val >> __SWP_OFFSET_SHIFT) & __SWP_OFFSET_MASK)
 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << __SWP_TYPE_SHIFT) | ((offset) << __SWP_OFFSET_SHIFT) })
 
 #define __pte_to_swp_entry(pte)	((swp_entry_t) { pte_val(pte) })
@@ -382,15 +385,15 @@ extern pgd_t idmap_pg_dir[PTRS_PER_PGD];
 
 /*
  * Encode and decode a file entry:
- *	bits 0, 2:	present (must both be zero)
- *	bit  3:		PTE_FILE
- *	bits 4-63:	file offset / PAGE_SIZE
+ *	bits 0-1:	present (must be zero)
+ *	bit  2:		PTE_FILE
+ *	bits 3-57:	file offset / PAGE_SIZE
  */
 #define pte_file(pte)		(pte_val(pte) & PTE_FILE)
-#define pte_to_pgoff(x)		(pte_val(x) >> 4)
-#define pgoff_to_pte(x)		__pte(((x) << 4) | PTE_FILE)
+#define pte_to_pgoff(x)		(pte_val(x) >> 3)
+#define pgoff_to_pte(x)		__pte(((x) << 3) | PTE_FILE)
 
-#define PTE_FILE_MAX_BITS	60
+#define PTE_FILE_MAX_BITS	55
 
 extern int kern_addr_valid(unsigned long addr);
 
arch/avr32/boot/u-boot/head.S +29 -6
index 4488fa27..2ffc298f 100644
@@ -8,6 +8,8 @@
  * published by the Free Software Foundation.
  */
 #include <asm/setup.h>
+#include <asm/thread_info.h>
+#include <asm/sysreg.h>
 
 	/*
 	 * The kernel is loaded where we want it to be and all caches
@@ -20,11 +22,6 @@
 	.section .init.text,"ax"
 	.global _start
 _start:
-	/* Check if the boot loader actually provided a tag table */
-	lddpc	r0, magic_number
-	cp.w	r12, r0
-	brne	no_tag_table
-
 	/* Initialize .bss */
 	lddpc	r2, bss_start_addr
 	lddpc   r3, end_addr
@@ -34,6 +31,25 @@ _start:
 	cp      r2, r3
 	brlo    1b
 
+	/* Initialize status register */
+	lddpc	r0, init_sr
+	mtsr	SYSREG_SR, r0
+
+	/* Set initial stack pointer */
+	lddpc	sp, stack_addr
+	sub	sp, -THREAD_SIZE
+
+#ifdef CONFIG_FRAME_POINTER
+	/* Mark last stack frame */
+	mov	lr, 0
+	mov	r7, 0
+#endif
+
+	/* Check if the boot loader actually provided a tag table */
+	lddpc	r0, magic_number
+	cp.w	r12, r0
+	brne	no_tag_table
+
 	/*
 	 * Save the tag table address for later use. This must be done
 	 * _after_ .bss has been initialized...
@@ -53,8 +69,15 @@ bss_start_addr:
 	.long   __bss_start
 end_addr:
 	.long   _end
+init_sr:
+	.long	0x007f0000	/* Supervisor mode, everything masked */
+stack_addr:
+	.long	init_thread_union
+panic_addr:
+	.long	panic
 
 no_tag_table:
 	sub	r12, pc, (. - 2f)
-	bral	panic
+	/* branch to panic() which can be far away with that construct */
+	lddpc	pc, panic_addr
 2:	.asciz	"Boot loader didn't provide correct magic number\n"
arch/avr32/kernel/entry-avr32b.S +2 -1
index 9899d3cc..7301f480 100644
@@ -401,9 +401,10 @@ handle_critical:
 	/* We should never get here... */
 bad_return:
 	sub	r12, pc, (. - 1f)
-	bral	panic
+	lddpc	pc, 2f
 	.align	2
 1:	.asciz	"Return from critical exception!"
+2:	.long	panic
 
 	.align	1
 do_bus_error_write:
arch/avr32/kernel/head.S +0 -20
index 6163bd0a..59eae6df 100644
@@ -10,33 +10,13 @@
 #include <linux/linkage.h>
 
 #include <asm/page.h>
-#include <asm/thread_info.h>
-#include <asm/sysreg.h>
 
 	.section .init.text,"ax"
 	.global kernel_entry
 kernel_entry:
-	/* Initialize status register */
-	lddpc   r0, init_sr
-	mtsr	SYSREG_SR, r0
-
-	/* Set initial stack pointer */
-	lddpc   sp, stack_addr
-	sub	sp, -THREAD_SIZE
-
-#ifdef CONFIG_FRAME_POINTER
-	/* Mark last stack frame */
-	mov	lr, 0
-	mov	r7, 0
-#endif
-
 	/* Start the show */
 	lddpc   pc, kernel_start_addr
 
 	.align  2
-init_sr:
-	.long   0x007f0000	/* Supervisor mode, everything masked */
-stack_addr:
-	.long   init_thread_union
 kernel_start_addr:
 	.long   start_kernel
arch/parisc/include/asm/socket.h new file +11 -0
new file mode 100644
index 00000000..748016cb
@@ -0,0 +1,11 @@
+#ifndef _ASM_SOCKET_H
+#define _ASM_SOCKET_H
+
+#include <uapi/asm/socket.h>
+
+/* O_NONBLOCK clashes with the bits used for socket types.  Therefore we
+ * have to define SOCK_NONBLOCK to a different value here.
+ */
+#define SOCK_NONBLOCK	0x40000000
+
+#endif /* _ASM_SOCKET_H */
arch/parisc/include/uapi/asm/socket.h +3 -8
index 71700e63..9f2174f4 100644
@@ -1,5 +1,5 @@
-#ifndef _ASM_SOCKET_H
-#define _ASM_SOCKET_H
+#ifndef _UAPI_ASM_SOCKET_H
+#define _UAPI_ASM_SOCKET_H
 
 #include <asm/sockios.h>
 
@@ -75,9 +75,4 @@
 
 #define SO_BUSY_POLL		0x4027
 
-/* O_NONBLOCK clashes with the bits used for socket types.  Therefore we
- * have to define SOCK_NONBLOCK to a different value here.
- */
-#define SOCK_NONBLOCK   0x40000000
-
-#endif /* _ASM_SOCKET_H */
+#endif /* _UAPI_ASM_SOCKET_H */
arch/powerpc/kernel/signal_32.c +7 -9
index 36d49e6b..fea2dba1 100644
@@ -445,6 +445,12 @@ static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame,
 #endif /* CONFIG_ALTIVEC */
 	if (copy_fpr_to_user(&frame->mc_fregs, current))
 		return 1;
+
+	/*
+	 * Clear the MSR VSX bit to indicate there is no valid state attached
+	 * to this context, except in the specific case below where we set it.
+	 */
+	msr &= ~MSR_VSX;
 #ifdef CONFIG_VSX
 	/*
 	 * Copy VSR 0-31 upper half from thread_struct to local
@@ -457,15 +463,7 @@ static int save_user_regs(struct pt_regs *regs, struct mcontext __user *frame,
 		if (copy_vsx_to_user(&frame->mc_vsregs, current))
 			return 1;
 		msr |= MSR_VSX;
-	} else if (!ctx_has_vsx_region)
-		/*
-		 * With a small context structure we can't hold the VSX
-		 * registers, hence clear the MSR value to indicate the state
-		 * was not saved.
-		 */
-		msr &= ~MSR_VSX;
-
-
+	}
 #endif /* CONFIG_VSX */
 #ifdef CONFIG_SPE
 	/* save spe registers */
arch/powerpc/kernel/signal_64.c +6 -0
index f93ec283..1e7ba881 100644
@@ -121,6 +121,12 @@ static long setup_sigcontext(struct sigcontext __user *sc, struct pt_regs *regs,
 	flush_fp_to_thread(current);
 	/* copy fpr regs and fpscr */
 	err |= copy_fpr_to_user(&sc->fp_regs, current);
+
+	/*
+	 * Clear the MSR VSX bit to indicate there is no valid state attached
+	 * to this context, except in the specific case below where we set it.
+	 */
+	msr &= ~MSR_VSX;
 #ifdef CONFIG_VSX
 	/*
 	 * Copy VSX low doubleword to local buffer for formatting,
arch/s390/lib/uaccess_pt.c +3 -0
index 1694d738..26588fdc 100644
@@ -78,11 +78,14 @@ static size_t copy_in_kernel(size_t count, void __user *to,
  * contains the (negative) exception code.
  */
 #ifdef CONFIG_64BIT
+
 static unsigned long follow_table(struct mm_struct *mm,
 				  unsigned long address, int write)
 {
 	unsigned long *table = (unsigned long *)__pa(mm->pgd);
 
+	if (unlikely(address > mm->context.asce_limit - 1))
+		return -0x38UL;
 	switch (mm->context.asce_bits & _ASCE_TYPE_MASK) {
 	case _ASCE_TYPE_REGION1:
 		table = table + ((address >> 53) & 0x7ff);
arch/sh/boards/mach-ecovec24/setup.c +1 -0
index 1fa8be40..122f737a 100644
@@ -15,6 +15,7 @@
 #include <linux/mmc/sh_mmcif.h>
 #include <linux/mmc/sh_mobile_sdhi.h>
 #include <linux/mtd/physmap.h>
+#include <linux/mfd/tmio.h>
 #include <linux/gpio.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
block/blk-core.c +3 -1
index 5e00b5a5..0c611d89 100644
@@ -645,10 +645,12 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id)
 	__set_bit(QUEUE_FLAG_BYPASS, &q->queue_flags);
 
 	if (blkcg_init_queue(q))
-		goto fail_id;
+		goto fail_bdi;
 
 	return q;
 
+fail_bdi:
+	bdi_destroy(&q->backing_dev_info);
 fail_id:
 	ida_simple_remove(&blk_queue_ida, q->id);
 fail_q:
crypto/asymmetric_keys/x509_public_key.c +0 -38
index 06007f0e..52222a2f 100644
@@ -106,7 +106,6 @@ error_no_sig:
 static int x509_key_preparse(struct key_preparsed_payload *prep)
 {
 	struct x509_certificate *cert;
-	struct tm now;
 	size_t srlen, sulen;
 	char *desc = NULL;
 	int ret;
@@ -137,43 +136,6 @@ static int x509_key_preparse(struct key_preparsed_payload *prep)
 		goto error_free_cert;
 	}
 
-	time_to_tm(CURRENT_TIME.tv_sec, 0, &now);
-	pr_devel("Now: %04ld-%02d-%02d %02d:%02d:%02d\n",
-		 now.tm_year + 1900, now.tm_mon + 1, now.tm_mday,
-		 now.tm_hour, now.tm_min,  now.tm_sec);
-	if (now.tm_year < cert->valid_from.tm_year ||
-	    (now.tm_year == cert->valid_from.tm_year &&
-	     (now.tm_mon < cert->valid_from.tm_mon ||
-	      (now.tm_mon == cert->valid_from.tm_mon &&
-	       (now.tm_mday < cert->valid_from.tm_mday ||
-		(now.tm_mday == cert->valid_from.tm_mday &&
-		 (now.tm_hour < cert->valid_from.tm_hour ||
-		  (now.tm_hour == cert->valid_from.tm_hour &&
-		   (now.tm_min < cert->valid_from.tm_min ||
-		    (now.tm_min == cert->valid_from.tm_min &&
-		     (now.tm_sec < cert->valid_from.tm_sec
-		      ))))))))))) {
-		pr_warn("Cert %s is not yet valid\n", cert->fingerprint);
-		ret = -EKEYREJECTED;
-		goto error_free_cert;
-	}
-	if (now.tm_year > cert->valid_to.tm_year ||
-	    (now.tm_year == cert->valid_to.tm_year &&
-	     (now.tm_mon > cert->valid_to.tm_mon ||
-	      (now.tm_mon == cert->valid_to.tm_mon &&
-	       (now.tm_mday > cert->valid_to.tm_mday ||
-		(now.tm_mday == cert->valid_to.tm_mday &&
-		 (now.tm_hour > cert->valid_to.tm_hour ||
-		  (now.tm_hour == cert->valid_to.tm_hour &&
-		   (now.tm_min > cert->valid_to.tm_min ||
-		    (now.tm_min == cert->valid_to.tm_min &&
-		     (now.tm_sec > cert->valid_to.tm_sec
-		      ))))))))))) {
-		pr_warn("Cert %s has expired\n", cert->fingerprint);
-		ret = -EKEYEXPIRED;
-		goto error_free_cert;
-	}
-
 	cert->pub->algo = x509_public_key_algorithms[cert->pkey_algo];
 	cert->pub->id_type = PKEY_ID_X509;
 
drivers/acpi/pci_root.c +3 -0
index d7e53ea5..79de26ed 100644
@@ -63,6 +63,9 @@ static struct acpi_scan_handler pci_root_handler = {
 	.ids = root_device_ids,
 	.attach = acpi_pci_root_add,
 	.detach = acpi_pci_root_remove,
+	.hotplug = {
+		.ignore = true,
+	},
 };
 
 static DEFINE_MUTEX(osc_lock);
drivers/acpi/scan.c +1 -1
index 3601738e..d047771c 100644
@@ -1812,7 +1812,7 @@ static void acpi_scan_init_hotplug(acpi_handle handle, int type)
 	 */
 	list_for_each_entry(hwid, &pnp.ids, list) {
 		handler = acpi_scan_match_handler(hwid->id, NULL);
-		if (handler) {
+		if (handler && !handler->hotplug.ignore) {
 			acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY,
 					acpi_hotplug_notify_cb, handler);
 			break;
drivers/ata/ahci.c +6 -0
index 8e28f923..14f1e950 100644
@@ -292,6 +292,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0x8d66), board_ahci }, /* Wellsburg RAID */
 	{ PCI_VDEVICE(INTEL, 0x8d6e), board_ahci }, /* Wellsburg RAID */
 	{ PCI_VDEVICE(INTEL, 0x23a3), board_ahci }, /* Coleto Creek AHCI */
+	{ PCI_VDEVICE(INTEL, 0x9c83), board_ahci }, /* Wildcat Point-LP AHCI */
+	{ PCI_VDEVICE(INTEL, 0x9c85), board_ahci }, /* Wildcat Point-LP RAID */
+	{ PCI_VDEVICE(INTEL, 0x9c87), board_ahci }, /* Wildcat Point-LP RAID */
+	{ PCI_VDEVICE(INTEL, 0x9c8f), board_ahci }, /* Wildcat Point-LP RAID */
 
 	/* JMicron 360/1/3/5/6, match class to avoid IDE function */
 	{ PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, PCI_ANY_ID, PCI_ANY_ID,
@@ -431,6 +435,8 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	  .driver_data = board_ahci_yes_fbs },			/* 88se9172 on some Gigabyte */
 	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x91a3),
 	  .driver_data = board_ahci_yes_fbs },
+	{ PCI_DEVICE(PCI_VENDOR_ID_MARVELL_EXT, 0x9230),
+	  .driver_data = board_ahci_yes_fbs },
 
 	/* Promise */
 	{ PCI_VDEVICE(PROMISE, 0x3f20), board_ahci },	/* PDC42819 */
drivers/ata/libahci.c +16 -0
index aaac4fb0..cfb74470 100644
@@ -1275,9 +1275,11 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
 {
 	struct ata_port *ap = link->ap;
 	struct ahci_host_priv *hpriv = ap->host->private_data;
+	struct ahci_port_priv *pp = ap->private_data;
 	const char *reason = NULL;
 	unsigned long now, msecs;
 	struct ata_taskfile tf;
+	bool fbs_disabled = false;
 	int rc;
 
 	DPRINTK("ENTER\n");
@@ -1287,6 +1289,16 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
 	if (rc && rc != -EOPNOTSUPP)
 		ata_link_warn(link, "failed to reset engine (errno=%d)\n", rc);
 
+	/*
+	 * According to AHCI-1.2 9.3.9: if FBS is enable, software shall
+	 * clear PxFBS.EN to '0' prior to issuing software reset to devices
+	 * that is attached to port multiplier.
+	 */
+	if (!ata_is_host_link(link) && pp->fbs_enabled) {
+		ahci_disable_fbs(ap);
+		fbs_disabled = true;
+	}
+
 	ata_tf_init(link->device, &tf);
 
 	/* issue the first D2H Register FIS */
@@ -1327,6 +1339,10 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class,
 	} else
 		*class = ahci_dev_classify(ap);
 
+	/* re-enable FBS if disabled before */
+	if (fbs_disabled)
+		ahci_enable_fbs(ap);
+
 	DPRINTK("EXIT, class=%u\n", *class);
 	return 0;
 
drivers/ata/libata-core.c +1 -0
index 83b1a9fb..81a94a39 100644
@@ -4126,6 +4126,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = {
 	{ "TORiSAN DVD-ROM DRD-N216", NULL,	ATA_HORKAGE_MAX_SEC_128 },
 	{ "QUANTUM DAT    DAT72-000", NULL,	ATA_HORKAGE_ATAPI_MOD16_DMA },
 	{ "Slimtype DVD A  DS8A8SH", NULL,	ATA_HORKAGE_MAX_SEC_LBA48 },
+	{ "Slimtype DVD A  DS8A9SH", NULL,	ATA_HORKAGE_MAX_SEC_LBA48 },
 
 	/* Devices we expect to fail diagnostics */
 
drivers/ata/libata-transport.c +8 -8
index 150a917f..e37413228 100644
@@ -321,25 +321,25 @@ int ata_tport_add(struct device *parent,
 /*
  * ATA link attributes
  */
+static int noop(int x) { return x; }
 
-
-#define ata_link_show_linkspeed(field)					\
+#define ata_link_show_linkspeed(field, format)			        \
 static ssize_t								\
 show_ata_link_##field(struct device *dev,				\
 		      struct device_attribute *attr, char *buf)		\
 {									\
 	struct ata_link *link = transport_class_to_link(dev);		\
 									\
-	return sprintf(buf,"%s\n", sata_spd_string(fls(link->field)));	\
+	return sprintf(buf, "%s\n", sata_spd_string(format(link->field))); \
 }
 
-#define ata_link_linkspeed_attr(field)					\
-	ata_link_show_linkspeed(field)					\
+#define ata_link_linkspeed_attr(field, format)				\
+	ata_link_show_linkspeed(field, format)				\
 static DEVICE_ATTR(field, S_IRUGO, show_ata_link_##field, NULL)
 
-ata_link_linkspeed_attr(hw_sata_spd_limit);
-ata_link_linkspeed_attr(sata_spd_limit);
-ata_link_linkspeed_attr(sata_spd);
+ata_link_linkspeed_attr(hw_sata_spd_limit, fls);
+ata_link_linkspeed_attr(sata_spd_limit, fls);
+ata_link_linkspeed_attr(sata_spd, noop);
 
 
 static DECLARE_TRANSPORT_CLASS(ata_link_class,
drivers/base/dd.c +1 -1
index 35fa3689..06051767 100644
@@ -499,7 +499,7 @@ static void __device_release_driver(struct device *dev)
 						     BUS_NOTIFY_UNBIND_DRIVER,
 						     dev);
 
-		pm_runtime_put(dev);
+		pm_runtime_put_sync(dev);
 
 		if (dev->bus && dev->bus->remove)
 			dev->bus->remove(dev);
drivers/block/loop.c +11 -8
index 2f036ca4..c8dac730 100644
@@ -894,13 +894,6 @@ static int loop_set_fd(struct loop_device *lo, fmode_t mode,
 
 	bio_list_init(&lo->lo_bio_list);
 
-	/*
-	 * set queue make_request_fn, and add limits based on lower level
-	 * device
-	 */
-	blk_queue_make_request(lo->lo_queue, loop_make_request);
-	lo->lo_queue->queuedata = lo;
-
 	if (!(lo_flags & LO_FLAGS_READ_ONLY) && file->f_op->fsync)
 		blk_queue_flush(lo->lo_queue, REQ_FLUSH);
 
@@ -1618,6 +1611,8 @@ static int loop_add(struct loop_device **l, int i)
 	if (!lo)
 		goto out;
 
+	lo->lo_state = Lo_unbound;
+
 	/* allocate id, if @id >= 0, we're requesting that specific id */
 	if (i >= 0) {
 		err = idr_alloc(&loop_index_idr, lo, i, i + 1, GFP_KERNEL);
@@ -1633,7 +1628,13 @@ static int loop_add(struct loop_device **l, int i)
 	err = -ENOMEM;
 	lo->lo_queue = blk_alloc_queue(GFP_KERNEL);
 	if (!lo->lo_queue)
-		goto out_free_dev;
+		goto out_free_idr;
+
+	/*
+	 * set queue make_request_fn
+	 */
+	blk_queue_make_request(lo->lo_queue, loop_make_request);
+	lo->lo_queue->queuedata = lo;
 
 	disk = lo->lo_disk = alloc_disk(1 << part_shift);
 	if (!disk)
@@ -1678,6 +1679,8 @@ static int loop_add(struct loop_device **l, int i)
 
 out_free_queue:
 	blk_cleanup_queue(lo->lo_queue);
+out_free_idr:
+	idr_remove(&loop_index_idr, i);
 out_free_dev:
 	kfree(lo);
 out:
drivers/block/xen-blkback/blkback.c +2 -1
index bf4b9d28..6620b73d 100644
@@ -887,6 +887,8 @@ static int dispatch_discard_io(struct xen_blkif *blkif,
 	unsigned long secure;
 	struct phys_req preq;
 
+	xen_blkif_get(blkif);
+
 	preq.sector_number = req->u.discard.sector_number;
 	preq.nr_sects      = req->u.discard.nr_sectors;
 
@@ -899,7 +901,6 @@ static int dispatch_discard_io(struct xen_blkif *blkif,
 	}
 	blkif->st_ds_req++;
 
-	xen_blkif_get(blkif);
 	secure = (blkif->vbd.discard_secure &&
 		 (req->u.discard.flag & BLKIF_DISCARD_SECURE)) ?
 		 BLKDEV_DISCARD_SECURE : 0;
drivers/cpufreq/highbank-cpufreq.c +2 -1
index 794123fc..bf8902a0 100644
@@ -66,7 +66,8 @@ static int hb_cpufreq_driver_init(void)
 	struct device_node *np;
 	int ret;
 
-	if (!of_machine_is_compatible("calxeda,highbank"))
+	if ((!of_machine_is_compatible("calxeda,highbank")) &&
+		(!of_machine_is_compatible("calxeda,ecx-2000")))
 		return -ENODEV;
 
 	cpu_dev = get_cpu_device(0);
drivers/dma/ioat/dma_v3.c +18 -30

137 lines not on this page · raw message

drivers/edac/highbank_l2_edac.c +10 -8
index c2bd8c6a..10d3d298 100644
@@ -90,28 +90,30 @@ static int highbank_l2_err_probe(struct platform_device *pdev)
 		goto err;
 	}
 
+	dci->mod_name = dev_name(&pdev->dev);
+	dci->dev_name = dev_name(&pdev->dev);
+
+	if (edac_device_add_device(dci))
+		goto err;
+
 	drvdata->db_irq = platform_get_irq(pdev, 0);
 	res = devm_request_irq(&pdev->dev, drvdata->db_irq,
 			       highbank_l2_err_handler,
 			       0, dev_name(&pdev->dev), dci);
 	if (res < 0)
-		goto err;
+		goto err2;
 
 	drvdata->sb_irq = platform_get_irq(pdev, 1);
 	res = devm_request_irq(&pdev->dev, drvdata->sb_irq,
 			       highbank_l2_err_handler,
 			       0, dev_name(&pdev->dev), dci);
 	if (res < 0)
-		goto err;
-
-	dci->mod_name = dev_name(&pdev->dev);
-	dci->dev_name = dev_name(&pdev->dev);
-
-	if (edac_device_add_device(dci))
-		goto err;
+		goto err2;
 
 	devres_close_group(&pdev->dev, NULL);
 	return 0;
+err2:
+	edac_device_del_device(&pdev->dev);
 err:
 	devres_release_group(&pdev->dev, NULL);
 	edac_device_free_ctl_info(dci);
drivers/edac/highbank_mc_edac.c +10 -8
index 4695dd2d..7a783075 100644
@@ -189,14 +189,6 @@ static int highbank_mc_probe(struct platform_device *pdev)
 		goto err;
 	}
 
-	irq = platform_get_irq(pdev, 0);
-	res = devm_request_irq(&pdev->dev, irq, highbank_mc_err_handler,
-			       0, dev_name(&pdev->dev), mci);
-	if (res < 0) {
-		dev_err(&pdev->dev, "Unable to request irq %d\n", irq);
-		goto err;
-	}
-
 	mci->mtype_cap = MEM_FLAG_DDR3;
 	mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED;
 	mci->edac_cap = EDAC_FLAG_SECDED;
@@ -217,10 +209,20 @@ static int highbank_mc_probe(struct platform_device *pdev)
 	if (res < 0)
 		goto err;
 
+	irq = platform_get_irq(pdev, 0);
+	res = devm_request_irq(&pdev->dev, irq, highbank_mc_err_handler,
+			       0, dev_name(&pdev->dev), mci);
+	if (res < 0) {
+		dev_err(&pdev->dev, "Unable to request irq %d\n", irq);
+		goto err2;
+	}
+
 	highbank_mc_create_debugfs_nodes(mci);
 
 	devres_close_group(&pdev->dev, NULL);
 	return 0;
+err2:
+	edac_mc_del_mc(&pdev->dev);
 err:
 	devres_release_group(&pdev->dev, NULL);
 	edac_mc_free(mci);
drivers/gpio/gpio-msm-v2.c +1 -1
index f7a0cc4d..7b373009 100644
@@ -102,7 +102,7 @@ struct msm_gpio_dev {
 	DECLARE_BITMAP(wake_irqs, MAX_NR_GPIO);
 	DECLARE_BITMAP(dual_edge_irqs, MAX_NR_GPIO);
 	struct irq_domain *domain;
-	unsigned int summary_irq;
+	int summary_irq;
 	void __iomem *msm_tlmm_base;
 };
 
drivers/gpio/gpio-mvebu.c +1 -1
index 3c3321f9..db312904 100644
@@ -79,7 +79,7 @@ struct mvebu_gpio_chip {
 	spinlock_t	   lock;
 	void __iomem	  *membase;
 	void __iomem	  *percpu_membase;
-	unsigned int       irqbase;
+	int		   irqbase;
 	struct irq_domain *domain;
 	int                soc_variant;
 };
drivers/gpio/gpio-pl061.c +5 -5
index 4274e2e7..e925ca2e 100644
@@ -286,11 +286,6 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
 	if (!chip->base)
 		return -ENOMEM;
 
-	chip->domain = irq_domain_add_simple(adev->dev.of_node, PL061_GPIO_NR,
-					     irq_base, &pl061_domain_ops, chip);
-	if (!chip->domain)
-		return -ENODEV;
-
 	spin_lock_init(&chip->lock);
 
 	chip->gc.request = pl061_gpio_request;
@@ -320,6 +315,11 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
 	irq_set_chained_handler(irq, pl061_irq_handler);
 	irq_set_handler_data(irq, chip);
 
+	chip->domain = irq_domain_add_simple(adev->dev.of_node, PL061_GPIO_NR,
+					     irq_base, &pl061_domain_ops, chip);
+	if (!chip->domain)
+		return -ENODEV;
+
 	for (i = 0; i < PL061_GPIO_NR; i++) {
 		if (pdata) {
 			if (pdata->directions & (1 << i))
drivers/gpio/gpio-rcar.c +1 -1
index 6038966a..8f64b670 100644
@@ -380,7 +380,7 @@ static int gpio_rcar_probe(struct platform_device *pdev)
 	if (!p->irq_domain) {
 		ret = -ENXIO;
 		dev_err(&pdev->dev, "cannot initialize irq domain\n");
-		goto err1;
+		goto err0;
 	}
 
 	if (devm_request_irq(&pdev->dev, irq->start,
drivers/gpio/gpio-twl4030.c +3 -2
index d8e4f6ef..db2de1a2 100644
@@ -354,17 +354,18 @@ static void twl_set(struct gpio_chip *chip, unsigned offset, int value)
 static int twl_direction_out(struct gpio_chip *chip, unsigned offset, int value)
 {
 	struct gpio_twl4030_priv *priv = to_gpio_twl4030(chip);
+	int ret = -EINVAL;
 
 	mutex_lock(&priv->mutex);
 	if (offset < TWL4030_GPIO_MAX)
-		twl4030_set_gpio_dataout(offset, value);
+		ret = twl4030_set_gpio_direction(offset, 0);
 
 	priv->direction |= BIT(offset);
 	mutex_unlock(&priv->mutex);
 
 	twl_set(chip, offset, value);
 
-	return 0;
+	return ret;
 }
 
 static int twl_to_irq(struct gpio_chip *chip, unsigned offset)
drivers/gpu/drm/i915/intel_ddi.c +20 -0
index b53fff84..a069b5e2 100644
@@ -1285,6 +1285,26 @@ void intel_ddi_get_config(struct intel_encoder *encoder,
 	default:
 		break;
 	}
+
+	if (encoder->type == INTEL_OUTPUT_EDP && dev_priv->vbt.edp_bpp &&
+	    pipe_config->pipe_bpp > dev_priv->vbt.edp_bpp) {
+		/*
+		 * This is a big fat ugly hack.
+		 *
+		 * Some machines in UEFI boot mode provide us a VBT that has 18
+		 * bpp and 1.62 GHz link bandwidth for eDP, which for reasons
+		 * unknown we fail to light up. Yet the same BIOS boots up with
+		 * 24 bpp and 2.7 GHz link. Use the same bpp as the BIOS uses as
+		 * max, not what it tells us to use.
+		 *
+		 * Note: This will still be broken if the eDP panel is not lit
+		 * up by the BIOS, and thus we can't get the mode at module
+		 * load.
+		 */
+		DRM_DEBUG_KMS("pipe has %d bpp for eDP panel, overriding BIOS-provided max %d bpp\n",
+			      pipe_config->pipe_bpp, dev_priv->vbt.edp_bpp);
+		dev_priv->vbt.edp_bpp = pipe_config->pipe_bpp;
+	}
 }
 
 static void intel_ddi_destroy(struct drm_encoder *encoder)
drivers/gpu/drm/i915/intel_display.c +4 -0
index d78d33f9..333aa1bc 100644
@@ -6770,7 +6770,9 @@ static void i9xx_update_cursor(struct drm_crtc *crtc, u32 base)
 		intel_crtc->cursor_visible = visible;
 	}
 	/* and commit changes on next vblank */
+	POSTING_READ(CURCNTR(pipe));
 	I915_WRITE(CURBASE(pipe), base);
+	POSTING_READ(CURBASE(pipe));
 }
 
 static void ivb_update_cursor(struct drm_crtc *crtc, u32 base)
@@ -6799,7 +6801,9 @@ static void ivb_update_cursor(struct drm_crtc *crtc, u32 base)
 		intel_crtc->cursor_visible = visible;
 	}
 	/* and commit changes on next vblank */
+	POSTING_READ(CURCNTR_IVB(pipe));
 	I915_WRITE(CURBASE_IVB(pipe), base);
+	POSTING_READ(CURBASE_IVB(pipe));
 }
 
 /* If no-part of the cursor is visible on the framebuffer, then the GPU may hang... */
drivers/gpu/drm/i915/intel_dvo.c +12 -4
index 7fa7df54..922cacc1 100644
@@ -171,11 +171,16 @@ static void intel_enable_dvo(struct intel_encoder *encoder)
 {
 	struct drm_i915_private *dev_priv = encoder->base.dev->dev_private;
 	struct intel_dvo *intel_dvo = enc_to_dvo(encoder);
+	struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc);
 	u32 dvo_reg = intel_dvo->dev.dvo_reg;
 	u32 temp = I915_READ(dvo_reg);
 
 	I915_WRITE(dvo_reg, temp | DVO_ENABLE);
 	I915_READ(dvo_reg);
+	intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev,
+					 &crtc->config.requested_mode,
+					 &crtc->config.adjusted_mode);
+
 	intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, true);
 }
 
@@ -184,6 +189,7 @@ static void intel_dvo_dpms(struct drm_connector *connector, int mode)
 {
 	struct intel_dvo *intel_dvo = intel_attached_dvo(connector);
 	struct drm_crtc *crtc;
+	struct intel_crtc_config *config;
 
 	/* dvo supports only 2 dpms states. */
 	if (mode != DRM_MODE_DPMS_ON)
@@ -204,10 +210,16 @@ static void intel_dvo_dpms(struct drm_connector *connector, int mode)
 	/* We call connector dpms manually below in case pipe dpms doesn't
 	 * change due to cloning. */
 	if (mode == DRM_MODE_DPMS_ON) {
+		config = &to_intel_crtc(crtc)->config;
+
 		intel_dvo->base.connectors_active = true;
 
 		intel_crtc_update_dpms(crtc);
 
+		intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev,
+						 &config->requested_mode,
+						 &config->adjusted_mode);
+
 		intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, true);
 	} else {
 		intel_dvo->dev.dev_ops->dpms(&intel_dvo->dev, false);
@@ -299,10 +311,6 @@ static void intel_dvo_mode_set(struct intel_encoder *encoder)
 		break;
 	}
 
-	intel_dvo->dev.dev_ops->mode_set(&intel_dvo->dev,
-					 &crtc->config.requested_mode,
-					 adjusted_mode);
-
 	/* Save the data order, since I don't know what it should be set to. */
 	dvo_val = I915_READ(dvo_reg) &
 		  (DVO_PRESERVE_MASK | DVO_DATA_ORDER_GBRG);
drivers/gpu/drm/i915/intel_uncore.c +14 -12
index 8649f1c3..ee7d6491 100644
@@ -204,6 +204,19 @@ static void vlv_force_wake_put(struct drm_i915_private *dev_priv)
 	gen6_gt_check_fifodbg(dev_priv);
 }
 
+static void intel_uncore_forcewake_reset(struct drm_device *dev)
+{
+	struct drm_i915_private *dev_priv = dev->dev_private;
+
+	if (IS_VALLEYVIEW(dev)) {
+		vlv_force_wake_reset(dev_priv);
+	} else if (INTEL_INFO(dev)->gen >= 6) {
+		__gen6_gt_force_wake_reset(dev_priv);
+		if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev))
+			__gen6_gt_force_wake_mt_reset(dev_priv);
+	}
+}
+
 void intel_uncore_early_sanitize(struct drm_device *dev)
 {
 	struct drm_i915_private *dev_priv = dev->dev_private;
@@ -259,19 +272,8 @@ void intel_uncore_init(struct drm_device *dev)
 		dev_priv->uncore.funcs.force_wake_put =
 			__gen6_gt_force_wake_put;
 	}
-}
 
-static void intel_uncore_forcewake_reset(struct drm_device *dev)
-{
-	struct drm_i915_private *dev_priv = dev->dev_private;
-
-	if (IS_VALLEYVIEW(dev)) {
-		vlv_force_wake_reset(dev_priv);
-	} else if (INTEL_INFO(dev)->gen >= 6) {
-		__gen6_gt_force_wake_reset(dev_priv);
-		if (IS_IVYBRIDGE(dev) || IS_HASWELL(dev))
-			__gen6_gt_force_wake_mt_reset(dev_priv);
-	}
+	intel_uncore_forcewake_reset(dev);
 }
 
 void intel_uncore_sanitize(struct drm_device *dev)
drivers/gpu/drm/nouveau/nouveau_gem.c +2 -1
index f32b7123..d2dfdf76 100644
@@ -317,7 +317,8 @@ validate_fini_list(struct list_head *list, struct nouveau_fence *fence,
 	list_for_each_safe(entry, tmp, list) {
 		nvbo = list_entry(entry, struct nouveau_bo, entry);
 
-		nouveau_bo_fence(nvbo, fence);
+		if (likely(fence))
+			nouveau_bo_fence(nvbo, fence);
 
 		if (unlikely(nvbo->validate_mapped)) {
 			ttm_bo_kunmap(&nvbo->kmap);
drivers/gpu/drm/qxl/qxl_fb.c +1 -1
index 88722f23..f437b30c 100644
@@ -108,7 +108,7 @@ static void qxl_fb_dirty_flush(struct fb_info *info)
 	u32 x1, x2, y1, y2;
 
 	/* TODO: hard coding 32 bpp */
-	int stride = qfbdev->qfb.base.pitches[0] * 4;
+	int stride = qfbdev->qfb.base.pitches[0];
 
 	x1 = qfbdev->dirty.x1;
 	x2 = qfbdev->dirty.x2;
drivers/gpu/drm/qxl/qxl_release.c +1 -0
index 0109a964..821ab7b9 100644
@@ -92,6 +92,7 @@ qxl_release_free(struct qxl_device *qdev,
 						- DRM_FILE_OFFSET);
 		qxl_fence_remove_release(&bo->fence, release->id);
 		qxl_bo_unref(&bo);
+		kfree(entry);
 	}
 	spin_lock(&qdev->release_idr_lock);
 	idr_remove(&qdev->release_idr, release->id);
drivers/gpu/drm/radeon/atombios_crtc.c +1 -1
index bf87f6d4..86d9ee08 100644
@@ -1753,7 +1753,7 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc)
 				if (pll != ATOM_PPLL_INVALID)
 					return pll;
 			}
-		} else {
+		} else if (!ASIC_IS_DCE41(rdev)) { /* Don't share PLLs on DCE4.1 chips */
 			/* use the same PPLL for all monitors with the same clock */
 			pll = radeon_get_shared_nondp_ppll(crtc);
 			if (pll != ATOM_PPLL_INVALID)
drivers/gpu/drm/radeon/atombios_i2c.c +4 -2
index deaf98cd..0652ee0a 100644
@@ -56,8 +56,10 @@ static int radeon_process_i2c_ch(struct radeon_i2c_chan *chan,
 			return -EINVAL;
 		}
 		args.ucRegIndex = buf[0];
-		if (num > 1)
-			memcpy(&out, &buf[1], num - 1);
+		if (num > 1) {
+			num--;
+			memcpy(&out, &buf[1], num);
+		}
 		args.lpI2CDataOut = cpu_to_le16(out);
 	} else {
 		if (num > ATOM_MAX_HW_I2C_READ) {
drivers/gpu/drm/radeon/radeon_asic.c +4 -0
index 8f7e0453..5720e66d 100644
@@ -2019,6 +2019,8 @@ static struct radeon_asic ci_asic = {
 		.bandwidth_update = &dce8_bandwidth_update,
 		.get_vblank_counter = &evergreen_get_vblank_counter,
 		.wait_for_vblank = &dce4_wait_for_vblank,
+		.set_backlight_level = &atombios_set_backlight_level,
+		.get_backlight_level = &atombios_get_backlight_level,
 		.hdmi_enable = &evergreen_hdmi_enable,
 		.hdmi_setmode = &evergreen_hdmi_setmode,
 	},
@@ -2119,6 +2121,8 @@ static struct radeon_asic kv_asic = {
 		.bandwidth_update = &dce8_bandwidth_update,
 		.get_vblank_counter = &evergreen_get_vblank_counter,
 		.wait_for_vblank = &dce4_wait_for_vblank,
+		.set_backlight_level = &atombios_set_backlight_level,
+		.get_backlight_level = &atombios_get_backlight_level,
 		.hdmi_enable = &evergreen_hdmi_enable,
 		.hdmi_setmode = &evergreen_hdmi_setmode,
 	},
drivers/gpu/drm/radeon/radeon_gart.c +2 -0
index b990b1a2..3b1de72b 100644
@@ -1156,6 +1156,8 @@ int radeon_vm_bo_update_pte(struct radeon_device *rdev,
 		return -ENOMEM;
 
 	r = radeon_ib_get(rdev, ridx, &ib, NULL, ndw * 4);
+	if (r)
+		return r;
 	ib.length_dw = 0;
 
 	r = radeon_vm_update_pdes(rdev, vm, &ib, bo_va->soffset, bo_va->eoffset);
drivers/gpu/drm/radeon/radeon_legacy_crtc.c +28 -0
index 7cb178a3..bc73021d 100644
@@ -422,6 +422,7 @@ int radeon_crtc_do_set_base(struct drm_crtc *crtc,
 	/* Pin framebuffer & get tilling informations */
 	obj = radeon_fb->obj;
 	rbo = gem_to_radeon_bo(obj);
+retry:
 	r = radeon_bo_reserve(rbo, false);
 	if (unlikely(r != 0))
 		return r;
@@ -430,6 +431,33 @@ int radeon_crtc_do_set_base(struct drm_crtc *crtc,
 				     &base);
 	if (unlikely(r != 0)) {
 		radeon_bo_unreserve(rbo);
+
+		/* On old GPU like RN50 with little vram pining can fails because
+		 * current fb is taking all space needed. So instead of unpining
+		 * the old buffer after pining the new one, first unpin old one
+		 * and then retry pining new one.
+		 *
+		 * As only master can set mode only master can pin and it is
+		 * unlikely the master client will race with itself especialy
+		 * on those old gpu with single crtc.
+		 *
+		 * We don't shutdown the display controller because new buffer
+		 * will end up in same spot.
+		 */
+		if (!atomic && fb && fb != crtc->fb) {
+			struct radeon_bo *old_rbo;
+			unsigned long nsize, osize;
+
+			old_rbo = gem_to_radeon_bo(to_radeon_framebuffer(fb)->obj);
+			osize = radeon_bo_size(old_rbo);
+			nsize = radeon_bo_size(rbo);
+			if (nsize <= osize && !radeon_bo_reserve(old_rbo, false)) {
+				radeon_bo_unpin(old_rbo);
+				radeon_bo_unreserve(old_rbo);
+				fb = NULL;
+				goto retry;
+			}
+		}
 		return -EINVAL;
 	}
 	radeon_bo_get_tiling_flags(rbo, &tiling_flags, NULL);
drivers/gpu/drm/radeon/radeon_uvd.c +3 -1
index 308eff5b..ab0a1724 100644
@@ -240,6 +240,8 @@ void radeon_uvd_free_handles(struct radeon_device *rdev, struct drm_file *filp)
 		if (handle != 0 && rdev->uvd.filp[i] == filp) {
 			struct radeon_fence *fence;
 
+			radeon_uvd_note_usage(rdev);
+
 			r = radeon_uvd_get_destroy_msg(rdev,
 				R600_RING_TYPE_UVD_INDEX, handle, &fence);
 			if (r) {
@@ -620,7 +622,7 @@ static int radeon_uvd_send_msg(struct radeon_device *rdev,
 	if (r) 
 		goto err;
 
-	r = radeon_ib_get(rdev, ring, &ib, NULL, 16);
+	r = radeon_ib_get(rdev, ring, &ib, NULL, 64);
 	if (r)
 		goto err;
 
drivers/gpu/drm/radeon/sid.h +1 -1
index 7e2e0ea6..6e23019c 100644
@@ -478,7 +478,7 @@
 #define		STATE3_MASK				(0x1f << 15)
 #define		STATE3_SHIFT				15
 
-#define	MC_SEQ_TRAIN_WAKEUP_CNTL			0x2808
+#define	MC_SEQ_TRAIN_WAKEUP_CNTL			0x28e8
 #define		TRAIN_DONE_D0      			(1 << 30)
 #define		TRAIN_DONE_D1      			(1 << 31)
 
drivers/gpu/drm/radeon/trinity_dpm.c +3 -3
index 9364129b..d700698a 100644
@@ -1873,9 +1873,9 @@ int trinity_dpm_init(struct radeon_device *rdev)
 	pi->enable_sclk_ds = true;
 	pi->enable_gfx_power_gating = true;
 	pi->enable_gfx_clock_gating = true;
-	pi->enable_mg_clock_gating = true;
-	pi->enable_gfx_dynamic_mgpg = true; /* ??? */
-	pi->override_dynamic_mgpg = true;
+	pi->enable_mg_clock_gating = false;
+	pi->enable_gfx_dynamic_mgpg = false;
+	pi->override_dynamic_mgpg = false;
 	pi->enable_auto_thermal_throttling = true;
 	pi->voltage_drop_in_dce = false; /* need to restructure dpm/modeset interaction */
 	pi->uvd_dpm = true; /* ??? */
drivers/gpu/drm/ttm/ttm_bo.c +20 -12
index f1a857ec..72980532 100644
@@ -986,24 +986,32 @@ out_unlock:
 	return ret;
 }
 
-static int ttm_bo_mem_compat(struct ttm_placement *placement,
-			     struct ttm_mem_reg *mem)
+static bool ttm_bo_mem_compat(struct ttm_placement *placement,
+			      struct ttm_mem_reg *mem,
+			      uint32_t *new_flags)
 {
 	int i;
 
 	if (mem->mm_node && placement->lpfn != 0 &&
 	    (mem->start < placement->fpfn ||
 	     mem->start + mem->num_pages > placement->lpfn))
-		return -1;
+		return false;
 
 	for (i = 0; i < placement->num_placement; i++) {
-		if ((placement->placement[i] & mem->placement &
-			TTM_PL_MASK_CACHING) &&
-			(placement->placement[i] & mem->placement &
-			TTM_PL_MASK_MEM))
-			return i;
+		*new_flags = placement->placement[i];
+		if ((*new_flags & mem->placement & TTM_PL_MASK_CACHING) &&
+		    (*new_flags & mem->placement & TTM_PL_MASK_MEM))
+			return true;
+	}
+
+	for (i = 0; i < placement->num_busy_placement; i++) {
+		*new_flags = placement->busy_placement[i];
+		if ((*new_flags & mem->placement & TTM_PL_MASK_CACHING) &&
+		    (*new_flags & mem->placement & TTM_PL_MASK_MEM))
+			return true;
 	}
-	return -1;
+
+	return false;
 }
 
 int ttm_bo_validate(struct ttm_buffer_object *bo,
@@ -1012,6 +1020,7 @@ int ttm_bo_validate(struct ttm_buffer_object *bo,
 			bool no_wait_gpu)
 {
 	int ret;
+	uint32_t new_flags;
 
 	lockdep_assert_held(&bo->resv->lock.base);
 	/* Check that range is valid */
@@ -1022,8 +1031,7 @@ int ttm_bo_validate(struct ttm_buffer_object *bo,
 	/*
 	 * Check whether we need to move buffer.
 	 */
-	ret = ttm_bo_mem_compat(placement, &bo->mem);
-	if (ret < 0) {
+	if (!ttm_bo_mem_compat(placement, &bo->mem, &new_flags)) {
 		ret = ttm_bo_move_buffer(bo, placement, interruptible,
 					 no_wait_gpu);
 		if (ret)
@@ -1033,7 +1041,7 @@ int ttm_bo_validate(struct ttm_buffer_object *bo,
 		 * Use the access and other non-mapping-related flag bits from
 		 * the compatible memory placement flags to the active flags
 		 */
-		ttm_flag_masked(&bo->mem.placement, placement->placement[ret],
+		ttm_flag_masked(&bo->mem.placement, new_flags,
 				~TTM_PL_MASK_MEMTYPE);
 	}
 	/*
drivers/gpu/drm/ttm/ttm_bo_util.c +19 -11
index 7cc904d3..4834c463 100644
@@ -343,19 +343,25 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
 	if (ret)
 		goto out;
 
+	/*
+	 * Single TTM move. NOP.
+	 */
 	if (old_iomap == NULL && new_iomap == NULL)
 		goto out2;
+
+	/*
+	 * Move nonexistent data. NOP.
+	 */
 	if (old_iomap == NULL && ttm == NULL)
 		goto out2;
 
-	if (ttm->state == tt_unpopulated) {
+	/*
+	 * TTM might be null for moves within the same region.
+	 */
+	if (ttm && ttm->state == tt_unpopulated) {
 		ret = ttm->bdev->driver->ttm_tt_populate(ttm);
-		if (ret) {
-			/* if we fail here don't nuke the mm node
-			 * as the bo still owns it */
-			old_copy.mm_node = NULL;
+		if (ret)
 			goto out1;
-		}
 	}
 
 	add = 0;
@@ -381,11 +387,8 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
 						   prot);
 		} else
 			ret = ttm_copy_io_page(new_iomap, old_iomap, page);
-		if (ret) {
-			/* failing here, means keep old copy as-is */
-			old_copy.mm_node = NULL;
+		if (ret)
 			goto out1;
-		}
 	}
 	mb();
 out2:
@@ -403,7 +406,12 @@ out1:
 	ttm_mem_reg_iounmap(bdev, old_mem, new_iomap);
 out:
 	ttm_mem_reg_iounmap(bdev, &old_copy, old_iomap);
-	ttm_bo_mem_put(bo, &old_copy);
+
+	/*
+	 * On error, keep the mm node!
+	 */
+	if (!ret)
+		ttm_bo_mem_put(bo, &old_copy);
 	return ret;
 }
 EXPORT_SYMBOL(ttm_bo_move_memcpy);
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +36 -6

97 lines not on this page · raw message

drivers/hid/Kconfig +8 -3
index c91d5471..1fc15699 100644
@@ -242,6 +242,7 @@ config HID_HOLTEK
 	  - Tracer Sniper TRM-503 / NOVA Gaming Slider X200 /
 	    Zalman ZM-GM1
 	  - SHARKOON DarkGlider Gaming mouse
+	  - LEETGION Hellion Gaming Mouse
 
 config HOLTEK_FF
 	bool "Holtek On Line Grip force feedback support"
@@ -369,12 +370,14 @@ config LOGITECH_FF
 	  force feedback.
 
 config LOGIRUMBLEPAD2_FF
-	bool "Logitech RumblePad/Rumblepad 2 force feedback support"
+	bool "Logitech force feedback support (variant 2)"
 	depends on HID_LOGITECH
 	select INPUT_FF_MEMLESS
 	help
-	  Say Y here if you want to enable force feedback support for Logitech
-	  RumblePad and Rumblepad 2 devices.
+	  Say Y here if you want to enable force feedback support for:
+	  - Logitech RumblePad
+	  - Logitech Rumblepad 2
+	  - Logitech Formula Vibration Feedback Wheel
 
 config LOGIG940_FF
 	bool "Logitech Flight System G940 force feedback support"
@@ -453,9 +456,11 @@ config HID_MULTITOUCH
 	  - Pixcir dual touch panels
 	  - Quanta panels
 	  - eGalax dual-touch panels, including the Joojoo and Wetab tablets
+	  - SiS multitouch panels
 	  - Stantum multitouch panels
 	  - Touch International Panels
 	  - Unitec Panels
+	  - Wistron optical touch panels
 	  - XAT optical touch panels
 	  - Xiroku optical touch panels
 	  - Zytronic touch panels
drivers/hid/hid-apple.c +22 -0
index 881cf7b4..3b219b95 100644
@@ -46,6 +46,12 @@ module_param(iso_layout, uint, 0644);
 MODULE_PARM_DESC(iso_layout, "Enable/Disable hardcoded ISO-layout of the keyboard. "
 		"(0 = disabled, [1] = enabled)");
 
+static unsigned int swap_opt_cmd = 0;
+module_param(swap_opt_cmd, uint, 0644);
+MODULE_PARM_DESC(swap_opt_cmd, "Swap the Option (\"Alt\") and Command (\"Flag\") keys. "
+		"(For people who want to keep Windows PC keyboard muscle memory. "
+		"[0] = as-is, Mac layout. 1 = swapped, Windows layout.)");
+
 struct apple_sc {
 	unsigned long quirks;
 	unsigned int fn_on;
@@ -150,6 +156,14 @@ static const struct apple_key_translation apple_iso_keyboard[] = {
 	{ }
 };
 
+static const struct apple_key_translation swapped_option_cmd_keys[] = {
+	{ KEY_LEFTALT,	KEY_LEFTMETA },
+	{ KEY_LEFTMETA,	KEY_LEFTALT },
+	{ KEY_RIGHTALT,	KEY_RIGHTMETA },
+	{ KEY_RIGHTMETA,KEY_RIGHTALT },
+	{ }
+};
+
 static const struct apple_key_translation *apple_find_translation(
 		const struct apple_key_translation *table, u16 from)
 {
@@ -242,6 +256,14 @@ static int hidinput_apple_event(struct hid_device *hid, struct input_dev *input,
 		}
 	}
 
+	if (swap_opt_cmd) {
+		trans = apple_find_translation(swapped_option_cmd_keys, usage->code);
+		if (trans) {
+			input_event(input, usage->type, trans->to, value);
+			return 1;
+		}
+	}
+
 	return 0;
 }
 
drivers/hid/hid-axff.c +2 -1
index 64ab94a5..a594e478 100644
@@ -95,7 +95,7 @@ static int axff_init(struct hid_device *hid)
 		}
 	}
 
-	if (field_count < 4) {
+	if (field_count < 4 && hid->product != 0xf705) {
 		hid_err(hid, "not enough fields in the report: %d\n",
 			field_count);
 		return -ENODEV;
@@ -180,6 +180,7 @@ static void ax_remove(struct hid_device *hdev)
 
 static const struct hid_device_id ax_devices[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0x0802), },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0xf705), },
 	{ }
 };
 MODULE_DEVICE_TABLE(hid, ax_devices);
drivers/hid/hid-core.c +8 -10
index e80da623..c08b5c14 100644
@@ -1605,6 +1605,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_X5_005D) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_RP_649) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0x0802) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ACRUX, 0xf705) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MIGHTYMOUSE) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICMOUSE) },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGICTRACKPAD) },
@@ -1716,6 +1717,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A072) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT, USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HUION, USB_DEVICE_ID_HUION_580) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_JESS2, USB_DEVICE_ID_JESS2_COLOR_RUMBLE_PAD) },
@@ -1754,6 +1756,7 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_FLIGHT_SYSTEM_G940) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_VIBRATION_WHEEL) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFP_WHEEL) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_DFGT_WHEEL) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_G25_WHEEL) },
@@ -1801,12 +1804,14 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_PETALYNX, USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_PRIMAX, USB_DEVICE_ID_PRIMAX_KEYBOARD) },
 #if IS_ENABLED(CONFIG_HID_ROCCAT)
-	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_ARVO) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_ISKU) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_ISKUFX) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONEPLUS) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONEPURE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONEPURE_OPTICAL) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KONEXTD) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_KOVAPLUS) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_LUA) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_ROCCAT, USB_DEVICE_ID_ROCCAT_PYRA_WIRED) },
@@ -1816,6 +1821,8 @@ static const struct hid_device_id hid_have_special_driver[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_PS1000) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_IR_REMOTE) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SAMSUNG, USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SIS2_TOUCH, USB_DEVICE_ID_SIS9200_TOUCH) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_SIS2_TOUCH, USB_DEVICE_ID_SIS817_TOUCH) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SKYCABLE, USB_DEVICE_ID_SKYCABLE_WIRELESS_PRESENTER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_BUZZ_CONTROLLER) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_WIRELESS_BUZZ_CONTROLLER) },
@@ -2376,15 +2383,6 @@ bool hid_ignore(struct hid_device *hdev)
 				hdev->type == HID_TYPE_USBNONE)
 			return true;
 		break;
-	case USB_VENDOR_ID_DWAV:
-		/* These are handled by usbtouchscreen. hdev->type is probably
-		 * HID_TYPE_USBNONE, but we say !HID_TYPE_USBMOUSE to match
-		 * usbtouchscreen. */
-		if ((hdev->product == USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER ||
-		     hdev->product == USB_DEVICE_ID_DWAV_TOUCHCONTROLLER) &&
-		    hdev->type != HID_TYPE_USBMOUSE)
-			return true;
-		break;
 	case USB_VENDOR_ID_VELLEMAN:
 		/* These are not HID devices.  They are handled by comedi. */
 		if ((hdev->product >= USB_DEVICE_ID_VELLEMAN_K8055_FIRST &&
drivers/hid/hid-holtek-mouse.c +4 -0
index e696566c..0caa676d 100644
@@ -28,6 +28,7 @@
  * - USB ID 04d9:a04a, sold as Tracer Sniper TRM-503, NOVA Gaming Slider X200
  *   and Zalman ZM-GM1
  * - USB ID 04d9:a081, sold as SHARKOON DarkGlider Gaming mouse
+ * - USB ID 04d9:a072, sold as LEETGION Hellion Gaming Mouse
  */
 
 static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc,
@@ -40,6 +41,7 @@ static __u8 *holtek_mouse_report_fixup(struct hid_device *hdev, __u8 *rdesc,
 		 * 0x2fff, so they don't exceed HID_MAX_USAGES */
 		switch (hdev->product) {
 		case USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067:
+		case USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A072:
 			if (*rsize >= 122 && rdesc[115] == 0xff && rdesc[116] == 0x7f
 					&& rdesc[120] == 0xff && rdesc[121] == 0x7f) {
 				hid_info(hdev, "Fixing up report descriptor\n");
@@ -66,6 +68,8 @@ static const struct hid_device_id holtek_mouse_devices[] = {
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT,
 			USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A) },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT,
+			USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A072) },
+	{ HID_USB_DEVICE(USB_VENDOR_ID_HOLTEK_ALT,
 			USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081) },
 	{ }
 };
drivers/hid/hid-ids.h +15 -1
index f0296a50..9480b425 100644
@@ -332,6 +332,11 @@
 #define USB_VENDOR_ID_GENERAL_TOUCH	0x0dfc
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN7_TWOFINGERS 0x0003
 #define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PWT_TENFINGERS 0x0100
+#define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0101 0x0101
+#define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0102 0x0102
+#define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0106 0x0106
+#define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A 0x010a
+#define USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100 0xe100
 
 #define USB_VENDOR_ID_GLAB		0x06c2
 #define USB_DEVICE_ID_4_PHIDGETSERVO_30	0x0038
@@ -448,8 +453,9 @@
 
 #define USB_VENDOR_ID_HOLTEK_ALT		0x04d9
 #define USB_DEVICE_ID_HOLTEK_ALT_KEYBOARD	0xa055
-#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067	0xa067
 #define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A04A	0xa04a
+#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A067	0xa067
+#define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A072	0xa072
 #define USB_DEVICE_ID_HOLTEK_ALT_MOUSE_A081	0xa081
 
 #define USB_VENDOR_ID_IMATION		0x0718
@@ -571,6 +577,7 @@
 #define USB_DEVICE_ID_DINOVO_EDGE	0xc714
 #define USB_DEVICE_ID_DINOVO_MINI	0xc71f
 #define USB_DEVICE_ID_LOGITECH_MOMO_WHEEL2	0xca03
+#define USB_DEVICE_ID_LOGITECH_VIBRATION_WHEEL	0xca04
 
 #define USB_VENDOR_ID_LUMIO		0x202e
 #define USB_DEVICE_ID_CRYSTALTOUCH	0x0006
@@ -745,6 +752,10 @@
 #define USB_VENDOR_ID_SIGMATEL		0x066F
 #define USB_DEVICE_ID_SIGMATEL_STMP3780	0x3780
 
+#define USB_VENDOR_ID_SIS2_TOUCH	0x0457
+#define USB_DEVICE_ID_SIS9200_TOUCH	0x9200
+#define USB_DEVICE_ID_SIS817_TOUCH	0x0817
+
 #define USB_VENDOR_ID_SKYCABLE			0x1223
 #define	USB_DEVICE_ID_SKYCABLE_WIRELESS_PRESENTER	0x3F07
 
@@ -888,6 +899,9 @@
 #define USB_DEVICE_ID_SUPER_DUAL_BOX_PRO 0x8802
 #define USB_DEVICE_ID_SUPER_JOY_BOX_5_PRO 0x8804
 
+#define USB_VENDOR_ID_WISTRON		0x0fb8
+#define USB_DEVICE_ID_WISTRON_OPTICAL_TOUCH		0x1109
+
 #define USB_VENDOR_ID_X_TENSIONS               0x1ae7
 #define USB_DEVICE_ID_SPEEDLINK_VAD_CEZANNE    0x9001
 
drivers/hid/hid-lg.c +80 -0

110 lines not on this page · raw message

drivers/hid/hid-lg2ff.c +1 -1
index 1a42eaa6..0e3fb1a7 100644
@@ -95,7 +95,7 @@ int lg2ff_init(struct hid_device *hid)
 
 	hid_hw_request(hid, report, HID_REQ_SET_REPORT);
 
-	hid_info(hid, "Force feedback for Logitech RumblePad/Rumblepad 2 by Anssi Hannula <[email protected]>\n");
+	hid_info(hid, "Force feedback for Logitech variant 2 rumble devices by Anssi Hannula <[email protected]>\n");
 
 	return 0;
 }
drivers/hid/hid-lg4ff.c +37 -3
index 8782fe1a..49f6cc0f 100644
@@ -218,12 +218,46 @@ static void hid_lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitud
 	struct list_head *report_list = &hid->report_enum[HID_OUTPUT_REPORT].report_list;
 	struct hid_report *report = list_entry(report_list->next, struct hid_report, list);
 	__s32 *value = report->field[0]->value;
+	__u32 expand_a, expand_b;
+
+	/* De-activate Auto-Center */
+	if (magnitude == 0) {
+		value[0] = 0xf5;
+		value[1] = 0x00;
+		value[2] = 0x00;
+		value[3] = 0x00;
+		value[4] = 0x00;
+		value[5] = 0x00;
+		value[6] = 0x00;
+
+		hid_hw_request(hid, report, HID_REQ_SET_REPORT);
+		return;
+	}
+
+	if (magnitude <= 0xaaaa) {
+		expand_a = 0x0c * magnitude;
+		expand_b = 0x80 * magnitude;
+	} else {
+		expand_a = (0x0c * 0xaaaa) + 0x06 * (magnitude - 0xaaaa);
+		expand_b = (0x80 * 0xaaaa) + 0xff * (magnitude - 0xaaaa);
+	}
 
 	value[0] = 0xfe;
 	value[1] = 0x0d;
-	value[2] = magnitude >> 13;
-	value[3] = magnitude >> 13;
-	value[4] = magnitude >> 8;
+	value[2] = expand_a / 0xaaaa;
+	value[3] = expand_a / 0xaaaa;
+	value[4] = expand_b / 0xaaaa;
+	value[5] = 0x00;
+	value[6] = 0x00;
+
+	hid_hw_request(hid, report, HID_REQ_SET_REPORT);
+
+	/* Activate Auto-Center */
+	value[0] = 0x14;
+	value[1] = 0x00;
+	value[2] = 0x00;
+	value[3] = 0x00;
+	value[4] = 0x00;
 	value[5] = 0x00;
 	value[6] = 0x00;
 
drivers/hid/hid-multitouch.c +31 -2
index 5e5fe1b8..d83b1e8b 100644
@@ -250,12 +250,12 @@ static struct mt_class mt_classes[] = {
 	{ .name	= MT_CLS_GENERALTOUCH_TWOFINGERS,
 		.quirks	= MT_QUIRK_NOT_SEEN_MEANS_UP |
 			MT_QUIRK_VALID_IS_INRANGE |
-			MT_QUIRK_SLOT_IS_CONTACTNUMBER,
+			MT_QUIRK_SLOT_IS_CONTACTID,
 		.maxcontacts = 2
 	},
 	{ .name	= MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
 		.quirks	= MT_QUIRK_NOT_SEEN_MEANS_UP |
-			MT_QUIRK_SLOT_IS_CONTACTNUMBER
+			MT_QUIRK_SLOT_IS_CONTACTID
 	},
 
 	{ .name = MT_CLS_FLATFROG,
@@ -1173,6 +1173,21 @@ static const struct hid_device_id mt_devices[] = {
 	{ .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
 		MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
 			USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PWT_TENFINGERS) },
+	{ .driver_data = MT_CLS_GENERALTOUCH_TWOFINGERS,
+		MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
+			USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0101) },
+	{ .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
+		MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
+			USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0102) },
+	{ .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
+		MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
+			USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_0106) },
+	{ .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
+		MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
+			USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_010A) },
+	{ .driver_data = MT_CLS_GENERALTOUCH_PWT_TENFINGERS,
+		MT_USB_DEVICE(USB_VENDOR_ID_GENERAL_TOUCH,
+			USB_DEVICE_ID_GENERAL_TOUCH_WIN8_PIT_E100) },
 
 	/* Gametel game controller */
 	{ .driver_data = MT_CLS_NSMU,
@@ -1284,6 +1299,14 @@ static const struct hid_device_id mt_devices[] = {
 		MT_USB_DEVICE(USB_VENDOR_ID_QUANTA,
 			USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008) },
 
+	/* SiS panels */
+	{ .driver_data = MT_CLS_DEFAULT,
+		HID_USB_DEVICE(USB_VENDOR_ID_SIS2_TOUCH,
+		USB_DEVICE_ID_SIS9200_TOUCH) },
+	{ .driver_data = MT_CLS_DEFAULT,
+		HID_USB_DEVICE(USB_VENDOR_ID_SIS2_TOUCH,
+		USB_DEVICE_ID_SIS817_TOUCH) },
+
 	/* Stantum panels */
 	{ .driver_data = MT_CLS_CONFIDENCE,
 		MT_USB_DEVICE(USB_VENDOR_ID_STANTUM,
@@ -1312,6 +1335,12 @@ static const struct hid_device_id mt_devices[] = {
 	{ .driver_data = MT_CLS_NSMU,
 		MT_USB_DEVICE(USB_VENDOR_ID_UNITEC,
 			USB_DEVICE_ID_UNITEC_USB_TOUCH_0A19) },
+
+	/* Wistron panels */
+	{ .driver_data = MT_CLS_NSMU,
+		MT_USB_DEVICE(USB_VENDOR_ID_WISTRON,
+			USB_DEVICE_ID_WISTRON_OPTICAL_TOUCH) },
+
 	/* XAT */
 	{ .driver_data = MT_CLS_NSMU,
 		MT_USB_DEVICE(USB_VENDOR_ID_XAT,
drivers/hid/hid-roccat-common.c +6 -6
index 74f70403..e8408999 100644
@@ -65,10 +65,11 @@ int roccat_common2_send(struct usb_device *usb_dev, uint report_id,
 EXPORT_SYMBOL_GPL(roccat_common2_send);
 
 enum roccat_common2_control_states {
-	ROCCAT_COMMON_CONTROL_STATUS_OVERLOAD = 0,
+	ROCCAT_COMMON_CONTROL_STATUS_CRITICAL = 0,
 	ROCCAT_COMMON_CONTROL_STATUS_OK = 1,
 	ROCCAT_COMMON_CONTROL_STATUS_INVALID = 2,
-	ROCCAT_COMMON_CONTROL_STATUS_WAIT = 3,
+	ROCCAT_COMMON_CONTROL_STATUS_BUSY = 3,
+	ROCCAT_COMMON_CONTROL_STATUS_CRITICAL_NEW = 4,
 };
 
 static int roccat_common2_receive_control_status(struct usb_device *usb_dev)
@@ -88,13 +89,12 @@ static int roccat_common2_receive_control_status(struct usb_device *usb_dev)
 		switch (control.value) {
 		case ROCCAT_COMMON_CONTROL_STATUS_OK:
 			return 0;
-		case ROCCAT_COMMON_CONTROL_STATUS_WAIT:
+		case ROCCAT_COMMON_CONTROL_STATUS_BUSY:
 			msleep(500);
 			continue;
 		case ROCCAT_COMMON_CONTROL_STATUS_INVALID:
-
-		case ROCCAT_COMMON_CONTROL_STATUS_OVERLOAD:
-			/* seems to be critical - replug necessary */
+		case ROCCAT_COMMON_CONTROL_STATUS_CRITICAL:
+		case ROCCAT_COMMON_CONTROL_STATUS_CRITICAL_NEW:
 			return -EINVAL;
 		default:
 			dev_err(&usb_dev->dev,
drivers/hid/hid-roccat-kovaplus.c +4 -0
index 0c8e1ef0..96604771 100644
@@ -554,9 +554,13 @@ static void kovaplus_keep_values_up_to_date(struct kovaplus_device *kovaplus,
 		break;
 	case KOVAPLUS_MOUSE_REPORT_BUTTON_TYPE_CPI:
 		kovaplus->actual_cpi = kovaplus_convert_event_cpi(button_report->data1);
+		break;
 	case KOVAPLUS_MOUSE_REPORT_BUTTON_TYPE_SENSITIVITY:
 		kovaplus->actual_x_sensitivity = button_report->data1;
 		kovaplus->actual_y_sensitivity = button_report->data2;
+		break;
+	default:
+		break;
 	}
 }
 
drivers/hid/hid-sensor-hub.c +8 -5
index 10e15810..9e4cdca5 100644
@@ -326,7 +326,8 @@ int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
 				field->logical == attr_usage_id) {
 				sensor_hub_fill_attr_info(info, i, report->id,
 					field->unit, field->unit_exponent,
-					field->report_size);
+					field->report_size *
+							field->report_count);
 				ret = 0;
 			} else {
 				for (j = 0; j < field->maxusage; ++j) {
@@ -338,7 +339,8 @@ int sensor_hub_input_get_attribute_info(struct hid_sensor_hub_device *hsdev,
 							i, report->id,
 							field->unit,
 							field->unit_exponent,
-							field->report_size);
+							field->report_size *
+							field->report_count);
 						ret = 0;
 						break;
 					}
@@ -425,9 +427,10 @@ static int sensor_hub_raw_event(struct hid_device *hdev,
 		hid_dbg(hdev, "%d collection_index:%x hid:%x sz:%x\n",
 				i, report->field[i]->usage->collection_index,
 				report->field[i]->usage->hid,
-				report->field[i]->report_size/8);
-
-		sz = report->field[i]->report_size/8;
+				(report->field[i]->report_size *
+					report->field[i]->report_count)/8);
+		sz = (report->field[i]->report_size *
+					report->field[i]->report_count)/8;
 		if (pdata->pending.status && pdata->pending.attr_usage_id ==
 				report->field[i]->usage->hid) {
 			hid_dbg(hdev, "data was pending ...\n");
drivers/hid/hid-wiimote-modules.c +2 -2
index 71adf9e6..e30567af 100644
@@ -1656,9 +1656,9 @@ static void wiimod_pro_in_ext(struct wiimote_data *wdata, const __u8 *ext)
 	ry = (ext[6] & 0xff) | ((ext[7] & 0x0f) << 8);
 
 	input_report_abs(wdata->extension.input, ABS_X, lx - 0x800);
-	input_report_abs(wdata->extension.input, ABS_Y, ly - 0x800);
+	input_report_abs(wdata->extension.input, ABS_Y, 0x800 - ly);
 	input_report_abs(wdata->extension.input, ABS_RX, rx - 0x800);
-	input_report_abs(wdata->extension.input, ABS_RY, ry - 0x800);
+	input_report_abs(wdata->extension.input, ABS_RY, 0x800 - ry);
 
 	input_report_key(wdata->extension.input,
 			 wiimod_pro_map[WIIMOD_PRO_KEY_RIGHT],
drivers/hid/uhid.c +1 -1
index 93b00d76..cedc6da9 100644
@@ -287,7 +287,7 @@ static int uhid_event_from_user(const char __user *buffer, size_t len,
 			 */
 			struct uhid_create_req_compat *compat;
 
-			compat = kmalloc(sizeof(*compat), GFP_KERNEL);
+			compat = kzalloc(sizeof(*compat), GFP_KERNEL);
 			if (!compat)
 				return -ENOMEM;
 
drivers/hid/usbhid/hid-quirks.c +2 -0
index 3fca3be0..0db9a672 100644
@@ -84,6 +84,8 @@ static const struct hid_blacklist {
 	{ USB_VENDOR_ID_REALTEK, USB_DEVICE_ID_REALTEK_READER, HID_QUIRK_NO_INIT_REPORTS },
 	{ USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_SIGMATEL, USB_DEVICE_ID_SIGMATEL_STMP3780, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_SIS2_TOUCH, USB_DEVICE_ID_SIS9200_TOUCH, HID_QUIRK_NOGET },
+	{ USB_VENDOR_ID_SIS2_TOUCH, USB_DEVICE_ID_SIS817_TOUCH, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_SUN, USB_DEVICE_ID_RARITAN_KVM_DONGLE, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_SYMBOL, USB_DEVICE_ID_SYMBOL_SCANNER_1, HID_QUIRK_NOGET },
 	{ USB_VENDOR_ID_SYMBOL, USB_DEVICE_ID_SYMBOL_SCANNER_2, HID_QUIRK_NOGET },
drivers/i2c/busses/i2c-wmt.c +1 -0
index c65da3d9..4bf9507c 100644
@@ -349,6 +349,7 @@ static int wmt_i2c_reset_hardware(struct wmt_i2c_dev *i2c_dev)
 	err = clk_set_rate(i2c_dev->clk, 20000000);
 	if (err) {
 		dev_err(i2c_dev->dev, "failed to set clock = 20Mhz\n");
+		clk_disable_unprepare(i2c_dev->clk);
 		return err;
 	}
 
drivers/i2c/muxes/i2c-mux-gpio.c +4 -4
index a764da77..f821facb 100644
@@ -30,15 +30,15 @@ static void i2c_mux_gpio_set(const struct gpiomux *mux, unsigned val)
 	int i;
 
 	for (i = 0; i < mux->data.n_gpios; i++)
-		gpio_set_value(mux->gpio_base + mux->data.gpios[i],
-			       val & (1 << i));
+		gpio_set_value_cansleep(mux->gpio_base + mux->data.gpios[i],
+					val & (1 << i));
 }
 
 static int i2c_mux_gpio_select(struct i2c_adapter *adap, void *data, u32 chan)
 {
 	struct gpiomux *mux = data;
 
-	i2c_mux_gpio_set(mux, mux->data.values[chan]);
+	i2c_mux_gpio_set(mux, chan);
 
 	return 0;
 }
@@ -228,7 +228,7 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev)
 		unsigned int class = mux->data.classes ? mux->data.classes[i] : 0;
 
 		mux->adap[i] = i2c_add_mux_adapter(parent, &pdev->dev, mux, nr,
-						   i, class,
+						   mux->data.values[i], class,
 						   i2c_mux_gpio_select, deselect);
 		if (!mux->adap[i]) {
 			ret = -ENODEV;
drivers/iio/accel/kxsd9.c +4 -3
index 709c1325..34277153 100644
@@ -112,9 +112,10 @@ static int kxsd9_read(struct iio_dev *indio_dev, u8 address)
 	mutex_lock(&st->buf_lock);
 	st->tx[0] = KXSD9_READ(address);
 	ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers));
-	if (ret)
-		return ret;
-	return (((u16)(st->rx[0])) << 8) | (st->rx[1] & 0xF0);
+	if (!ret)
+		ret = (((u16)(st->rx[0])) << 8) | (st->rx[1] & 0xF0);
+	mutex_unlock(&st->buf_lock);
+	return ret;
 }
 
 static IIO_CONST_ATTR(accel_scale_available,
drivers/infiniband/hw/ipath/ipath_user_sdma.c +1 -6
index f5cb13b2..cc04b7ba 100644
@@ -280,9 +280,7 @@ static int ipath_user_sdma_pin_pages(const struct ipath_devdata *dd,
 	int j;
 	int ret;
 
-	ret = get_user_pages(current, current->mm, addr,
-			     npages, 0, 1, pages, NULL);
-
+	ret = get_user_pages_fast(addr, npages, 0, pages);
 	if (ret != npages) {
 		int i;
 
@@ -811,10 +809,7 @@ int ipath_user_sdma_writev(struct ipath_devdata *dd,
 	while (dim) {
 		const int mxp = 8;
 
-		down_write(&current->mm->mmap_sem);
 		ret = ipath_user_sdma_queue_pkts(dd, pq, &list, iov, dim, mxp);
-		up_write(&current->mm->mmap_sem);
-
 		if (ret <= 0)
 			goto done_unlock;
 		else {
drivers/infiniband/hw/qib/qib_iba7322.c +5 -6
index 016e7429..5bfc02f4 100644
@@ -6190,21 +6190,20 @@ static int setup_txselect(const char *str, struct kernel_param *kp)
 {
 	struct qib_devdata *dd;
 	unsigned long val;
-	int ret;
-
+	char *n;
 	if (strlen(str) >= MAX_ATTEN_LEN) {
 		pr_info("txselect_values string too long\n");
 		return -ENOSPC;
 	}
-	ret = kstrtoul(str, 0, &val);
-	if (ret || val >= (TXDDS_TABLE_SZ + TXDDS_EXTRA_SZ +
+	val = simple_strtoul(str, &n, 0);
+	if (n == str || val >= (TXDDS_TABLE_SZ + TXDDS_EXTRA_SZ +
 				TXDDS_MFG_SZ)) {
 		pr_info("txselect_values must start with a number < %d\n",
 			TXDDS_TABLE_SZ + TXDDS_EXTRA_SZ + TXDDS_MFG_SZ);
-		return ret ? ret : -EINVAL;
+		return -EINVAL;
 	}
-
 	strcpy(txselect_list, str);
+
 	list_for_each_entry(dd, &qib_dev_list, list)
 		if (dd->deviceid == PCI_DEVICE_ID_QLOGIC_IB_7322)
 			set_no_qsfp_atten(dd, 1);
drivers/infiniband/hw/qib/qib_user_sdma.c +1 -5
index d0a0ea0c..165aee2c 100644
@@ -594,8 +594,7 @@ static int qib_user_sdma_pin_pages(const struct qib_devdata *dd,
 		else
 			j = npages;
 
-		ret = get_user_pages(current, current->mm, addr,
-			     j, 0, 1, pages, NULL);
+		ret = get_user_pages_fast(addr, j, 0, pages);
 		if (ret != j) {
 			i = 0;
 			j = ret;
@@ -1294,11 +1293,8 @@ int qib_user_sdma_writev(struct qib_ctxtdata *rcd,
 		int mxp = 8;
 		int ndesc = 0;
 
-		down_write(&current->mm->mmap_sem);
 		ret = qib_user_sdma_queue_pkts(dd, ppd, pq,
 				iov, dim, &list, &mxp, &ndesc);
-		up_write(&current->mm->mmap_sem);
-
 		if (ret < 0)
 			goto done_unlock;
 		else {
drivers/infiniband/ulp/isert/ib_isert.c +20 -16
index 6df23502..db5d0a31 100644
@@ -1991,8 +1991,6 @@ isert_map_rdma(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
 
 	if (wr->iser_ib_op == ISER_IB_RDMA_WRITE) {
 		data_left = se_cmd->data_length;
-		iscsit_increment_maxcmdsn(cmd, conn->sess);
-		cmd->stat_sn = conn->stat_sn++;
 	} else {
 		sg_off = cmd->write_data_done / PAGE_SIZE;
 		data_left = se_cmd->data_length - cmd->write_data_done;
@@ -2204,8 +2202,6 @@ isert_reg_rdma_frwr(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
 
 	if (wr->iser_ib_op == ISER_IB_RDMA_WRITE) {
 		data_left = se_cmd->data_length;
-		iscsit_increment_maxcmdsn(cmd, conn->sess);
-		cmd->stat_sn = conn->stat_sn++;
 	} else {
 		sg_off = cmd->write_data_done / PAGE_SIZE;
 		data_left = se_cmd->data_length - cmd->write_data_done;
@@ -2259,18 +2255,26 @@ isert_reg_rdma_frwr(struct iscsi_conn *conn, struct iscsi_cmd *cmd,
 	data_len = min(data_left, rdma_write_max);
 	wr->cur_rdma_length = data_len;
 
-	spin_lock_irqsave(&isert_conn->conn_lock, flags);
-	fr_desc = list_first_entry(&isert_conn->conn_frwr_pool,
-				   struct fast_reg_descriptor, list);
-	list_del(&fr_desc->list);
-	spin_unlock_irqrestore(&isert_conn->conn_lock, flags);
-	wr->fr_desc = fr_desc;
+	/* if there is a single dma entry, dma mr is sufficient */
+	if (count == 1) {
+		ib_sge->addr = ib_sg_dma_address(ib_dev, &sg_start[0]);
+		ib_sge->length = ib_sg_dma_len(ib_dev, &sg_start[0]);
+		ib_sge->lkey = isert_conn->conn_mr->lkey;
+		wr->fr_desc = NULL;
+	} else {
+		spin_lock_irqsave(&isert_conn->conn_lock, flags);
+		fr_desc = list_first_entry(&isert_conn->conn_frwr_pool,
+					   struct fast_reg_descriptor, list);
+		list_del(&fr_desc->list);
+		spin_unlock_irqrestore(&isert_conn->conn_lock, flags);
+		wr->fr_desc = fr_desc;
 
-	ret = isert_fast_reg_mr(fr_desc, isert_cmd, isert_conn,
-			  ib_sge, offset, data_len);
-	if (ret) {
-		list_add_tail(&fr_desc->list, &isert_conn->conn_frwr_pool);
-		goto unmap_sg;
+		ret = isert_fast_reg_mr(fr_desc, isert_cmd, isert_conn,
+				  ib_sge, offset, data_len);
+		if (ret) {
+			list_add_tail(&fr_desc->list, &isert_conn->conn_frwr_pool);
+			goto unmap_sg;
+		}
 	}
 
 	return 0;
@@ -2306,7 +2310,7 @@ isert_put_datain(struct iscsi_conn *conn, struct iscsi_cmd *cmd)
 	 * Build isert_conn->tx_desc for iSCSI response PDU and attach
 	 */
 	isert_create_send_desc(isert_conn, isert_cmd, &isert_cmd->tx_desc);
-	iscsit_build_rsp_pdu(cmd, conn, false, (struct iscsi_scsi_rsp *)
+	iscsit_build_rsp_pdu(cmd, conn, true, (struct iscsi_scsi_rsp *)
 			     &isert_cmd->tx_desc.iscsi_header);
 	isert_init_tx_hdrs(isert_conn, &isert_cmd->tx_desc);
 	isert_init_send_wr(isert_cmd, &isert_cmd->tx_desc.send_wr);
drivers/infiniband/ulp/srp/ib_srp.c +10 -10
index f93baf82..17b58f4f 100644
@@ -534,6 +534,11 @@ static void srp_remove_target(struct srp_target_port *target)
 	ib_destroy_cm_id(target->cm_id);
 	srp_free_target_ib(target);
 	srp_free_req_data(target);
+
+	spin_lock(&target->srp_host->target_lock);
+	list_del(&target->list);
+	spin_unlock(&target->srp_host->target_lock);
+
 	scsi_host_put(target->scsi_host);
 }
 
@@ -545,10 +550,6 @@ static void srp_remove_work(struct work_struct *work)
 	WARN_ON_ONCE(target->state != SRP_TARGET_REMOVED);
 
 	srp_remove_target(target);
-
-	spin_lock(&target->srp_host->target_lock);
-	list_del(&target->list);
-	spin_unlock(&target->srp_host->target_lock);
 }
 
 static void srp_rport_delete(struct srp_rport *rport)
@@ -1302,14 +1303,13 @@ static void srp_handle_recv(struct srp_target_port *target, struct ib_wc *wc)
 			     PFX "Recv failed with error code %d\n", res);
 }
 
-static void srp_handle_qp_err(enum ib_wc_status wc_status,
-			      enum ib_wc_opcode wc_opcode,
+static void srp_handle_qp_err(enum ib_wc_status wc_status, bool send_err,
 			      struct srp_target_port *target)
 {
 	if (target->connected && !target->qp_in_error) {
 		shost_printk(KERN_ERR, target->scsi_host,
 			     PFX "failed %s status %d\n",
-			     wc_opcode & IB_WC_RECV ? "receive" : "send",
+			     send_err ? "send" : "receive",
 			     wc_status);
 	}
 	target->qp_in_error = true;
@@ -1325,7 +1325,7 @@ static void srp_recv_completion(struct ib_cq *cq, void *target_ptr)
 		if (likely(wc.status == IB_WC_SUCCESS)) {
 			srp_handle_recv(target, &wc);
 		} else {
-			srp_handle_qp_err(wc.status, wc.opcode, target);
+			srp_handle_qp_err(wc.status, false, target);
 		}
 	}
 }
@@ -1341,7 +1341,7 @@ static void srp_send_completion(struct ib_cq *cq, void *target_ptr)
 			iu = (struct srp_iu *) (uintptr_t) wc.wr_id;
 			list_add(&iu->list, &target->free_tx);
 		} else {
-			srp_handle_qp_err(wc.status, wc.opcode, target);
+			srp_handle_qp_err(wc.status, true, target);
 		}
 	}
 }
@@ -1751,7 +1751,7 @@ static int srp_abort(struct scsi_cmnd *scmnd)
 	shost_printk(KERN_ERR, target->scsi_host, "SRP abort called\n");
 
 	if (!req || !srp_claim_req(target, req, scmnd))
-		return FAILED;
+		return SUCCESS;
 	if (srp_send_tsk_mgmt(target, req->index, scmnd->device->lun,
 			      SRP_TSK_ABORT_TASK) == 0)
 		ret = SUCCESS;
drivers/input/evdev.c +12 -4
index b6ded17b..a06e1255 100644
@@ -18,6 +18,8 @@
 #include <linux/poll.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
+#include <linux/vmalloc.h>
+#include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/input/mt.h>
@@ -369,7 +371,11 @@ static int evdev_release(struct inode *inode, struct file *file)
 	mutex_unlock(&evdev->mutex);
 
 	evdev_detach_client(evdev, client);
-	kfree(client);
+
+	if (is_vmalloc_addr(client))
+		vfree(client);
+	else
+		kfree(client);
 
 	evdev_close_device(evdev);
 
@@ -389,12 +395,14 @@ static int evdev_open(struct inode *inode, struct file *file)
 {
 	struct evdev *evdev = container_of(inode->i_cdev, struct evdev, cdev);
 	unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev);
+	unsigned int size = sizeof(struct evdev_client) +
+					bufsize * sizeof(struct input_event);
 	struct evdev_client *client;
 	int error;
 
-	client = kzalloc(sizeof(struct evdev_client) +
-				bufsize * sizeof(struct input_event),
-			 GFP_KERNEL);
+	client = kzalloc(size, GFP_KERNEL | __GFP_NOWARN);
+	if (!client)
+		client = vzalloc(size);
 	if (!client)
 		return -ENOMEM;
 
drivers/input/mouse/alps.c +0 -1
index 83658472..7c5d72a6 100644
@@ -103,7 +103,6 @@ static const struct alps_model_info alps_model_data[] = {
 	/* Dell Latitude E5500, E6400, E6500, Precision M4400 */
 	{ { 0x62, 0x02, 0x14 }, 0x00, ALPS_PROTO_V2, 0xcf, 0xcf,
 		ALPS_PASS | ALPS_DUALPOINT | ALPS_PS2_INTERLEAVED },
-	{ { 0x73, 0x00, 0x14 }, 0x00, ALPS_PROTO_V2, 0xcf, 0xcf, ALPS_DUALPOINT },		/* Dell XT2 */
 	{ { 0x73, 0x02, 0x50 }, 0x00, ALPS_PROTO_V2, 0xcf, 0xcf, ALPS_FOUR_BUTTONS },		/* Dell Vostro 1400 */
 	{ { 0x52, 0x01, 0x14 }, 0x00, ALPS_PROTO_V2, 0xff, 0xff,
 		ALPS_PASS | ALPS_DUALPOINT | ALPS_PS2_INTERLEAVED },				/* Toshiba Tecra A11-11L */
drivers/input/mouse/cypress_ps2.c +3 -16
index f51765ff..888a81a7 100644
@@ -439,7 +439,7 @@ static int cypress_get_finger_count(unsigned char header_byte)
 			case 2: return 5;
 			default:
 				/* Invalid contact (e.g. palm). Ignore it. */
-				return -1;
+				return 0;
 		}
 	}
 
@@ -452,17 +452,10 @@ static int cypress_parse_packet(struct psmouse *psmouse,
 {
 	unsigned char *packet = psmouse->packet;
 	unsigned char header_byte = packet[0];
-	int contact_cnt;
 
 	memset(report_data, 0, sizeof(struct cytp_report_data));
 
-	contact_cnt = cypress_get_finger_count(header_byte);
-
-	if (contact_cnt < 0) /* e.g. palm detect */
-		return -EINVAL;
-
-	report_data->contact_cnt = contact_cnt;
-
+	report_data->contact_cnt = cypress_get_finger_count(header_byte);
 	report_data->tap = (header_byte & ABS_MULTIFINGER_TAP) ? 1 : 0;
 
 	if (report_data->contact_cnt == 1) {
@@ -535,11 +528,9 @@ static void cypress_process_packet(struct psmouse *psmouse, bool zero_pkt)
 	int slots[CYTP_MAX_MT_SLOTS];
 	int n;
 
-	if (cypress_parse_packet(psmouse, cytp, &report_data))
-		return;
+	cypress_parse_packet(psmouse, cytp, &report_data);
 
 	n = report_data.contact_cnt;
-
 	if (n > CYTP_MAX_MT_SLOTS)
 		n = CYTP_MAX_MT_SLOTS;
 
@@ -605,10 +596,6 @@ static psmouse_ret_t cypress_validate_byte(struct psmouse *psmouse)
 		return PSMOUSE_BAD_DATA;
 
 	contact_cnt = cypress_get_finger_count(packet[0]);
-
-	if (contact_cnt < 0)
-		return PSMOUSE_BAD_DATA;
-
 	if (cytp->mode & CYTP_BIT_ABS_NO_PRESSURE)
 		cypress_set_packet_size(psmouse, contact_cnt == 2 ? 7 : 4);
 	else
drivers/input/serio/i8042-x86ia64io.h +2 -0
index 5f306f79..0ec9abbe 100644
@@ -765,6 +765,7 @@ static struct pnp_device_id pnp_kbd_devids[] = {
 	{ .id = "CPQA0D7", .driver_data = 0 },
 	{ .id = "", },
 };
+MODULE_DEVICE_TABLE(pnp, pnp_kbd_devids);
 
 static struct pnp_driver i8042_pnp_kbd_driver = {
 	.name           = "i8042 kbd",
@@ -786,6 +787,7 @@ static struct pnp_device_id pnp_aux_devids[] = {
 	{ .id = "SYN0801", .driver_data = 0 },
 	{ .id = "", },
 };
+MODULE_DEVICE_TABLE(pnp, pnp_aux_devids);
 
 static struct pnp_driver i8042_pnp_aux_driver = {
 	.name           = "i8042 aux",
drivers/input/touchscreen/usbtouchscreen.c +1 -3
index 721fdb35..ae4b6b90 100644
@@ -146,12 +146,10 @@ enum {
 
 #define USB_DEVICE_HID_CLASS(vend, prod) \
 	.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS \
-		| USB_DEVICE_ID_MATCH_INT_PROTOCOL \
 		| USB_DEVICE_ID_MATCH_DEVICE, \
 	.idVendor = (vend), \
 	.idProduct = (prod), \
-	.bInterfaceClass = USB_INTERFACE_CLASS_HID, \
-	.bInterfaceProtocol = USB_INTERFACE_PROTOCOL_MOUSE
+	.bInterfaceClass = USB_INTERFACE_CLASS_HID
 
 static const struct usb_device_id usbtouch_devices[] = {
 #ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
drivers/md/bcache/btree.c +7 -4
index f42fc7ed..d1734d9d 100644
@@ -1742,6 +1742,9 @@ static bool fix_overlapping_extents(struct btree *b,
 		if (bkey_cmp(insert, k) < 0) {
 			bch_cut_front(insert, k);
 		} else {
+			if (bkey_cmp(&START_KEY(insert), &START_KEY(k)) > 0)
+				old_offset = KEY_START(insert);
+
 			if (bkey_written(b, k) &&
 			    bkey_cmp(&START_KEY(insert), &START_KEY(k)) <= 0) {
 				/*
@@ -1803,6 +1806,10 @@ static bool btree_insert_key(struct btree *b, struct btree_op *op,
 		if (fix_overlapping_extents(b, k, &iter, op))
 			return false;
 
+		if (KEY_DIRTY(k))
+			bcache_dev_sectors_dirty_add(b->c, KEY_INODE(k),
+						     KEY_START(k), KEY_SIZE(k));
+
 		while (m != end(i) &&
 		       bkey_cmp(k, &START_KEY(m)) > 0)
 			prev = m, m = bkey_next(m);
@@ -1831,10 +1838,6 @@ static bool btree_insert_key(struct btree *b, struct btree_op *op,
 insert:	shift_keys(b, m, k);
 copy:	bkey_copy(m, k);
 merged:
-	if (KEY_DIRTY(k))
-		bcache_dev_sectors_dirty_add(b->c, KEY_INODE(k),
-					     KEY_START(k), KEY_SIZE(k));
-
 	bch_check_keys(b, "%u for %s", status, op_type(op));
 
 	if (b->level && !KEY_OFFSET(k))
drivers/md/dm-cache-target.c +40 -14

116 lines not on this page · raw message

drivers/md/dm-mpath.c +15 -3
index de570a55..799e479d 100644
@@ -87,6 +87,7 @@ struct multipath {
 	unsigned queue_if_no_path:1;	/* Queue I/O if last path fails? */
 	unsigned saved_queue_if_no_path:1; /* Saved state during suspension */
 	unsigned retain_attached_hw_handler:1; /* If there's already a hw_handler present, don't change it. */
+	unsigned pg_init_disabled:1;	/* pg_init is not currently allowed */
 
 	unsigned pg_init_retries;	/* Number of times to retry pg_init */
 	unsigned pg_init_count;		/* Number of times pg_init called */
@@ -497,7 +498,8 @@ static void process_queued_ios(struct work_struct *work)
 	    (!pgpath && !m->queue_if_no_path))
 		must_queue = 0;
 
-	if (m->pg_init_required && !m->pg_init_in_progress && pgpath)
+	if (m->pg_init_required && !m->pg_init_in_progress && pgpath &&
+	    !m->pg_init_disabled)
 		__pg_init_all_paths(m);
 
 	spin_unlock_irqrestore(&m->lock, flags);
@@ -942,10 +944,20 @@ static void multipath_wait_for_pg_init_completion(struct multipath *m)
 
 static void flush_multipath_work(struct multipath *m)
 {
+	unsigned long flags;
+
+	spin_lock_irqsave(&m->lock, flags);
+	m->pg_init_disabled = 1;
+	spin_unlock_irqrestore(&m->lock, flags);
+
 	flush_workqueue(kmpath_handlerd);
 	multipath_wait_for_pg_init_completion(m);
 	flush_workqueue(kmultipathd);
 	flush_work(&m->trigger_event);
+
+	spin_lock_irqsave(&m->lock, flags);
+	m->pg_init_disabled = 0;
+	spin_unlock_irqrestore(&m->lock, flags);
 }
 
 static void multipath_dtr(struct dm_target *ti)
@@ -1164,7 +1176,7 @@ static int pg_init_limit_reached(struct multipath *m, struct pgpath *pgpath)
 
 	spin_lock_irqsave(&m->lock, flags);
 
-	if (m->pg_init_count <= m->pg_init_retries)
+	if (m->pg_init_count <= m->pg_init_retries && !m->pg_init_disabled)
 		m->pg_init_required = 1;
 	else
 		limit_reached = 1;
@@ -1714,7 +1726,7 @@ out:
  *---------------------------------------------------------------*/
 static struct target_type multipath_target = {
 	.name = "multipath",
-	.version = {1, 5, 1},
+	.version = {1, 6, 0},
 	.module = THIS_MODULE,
 	.ctr = multipath_ctr,
 	.dtr = multipath_dtr,
drivers/md/dm-table.c +16 -2
index 8f878353..41d907b5 100644
@@ -545,14 +545,28 @@ static int adjoin(struct dm_table *table, struct dm_target *ti)
 
 /*
  * Used to dynamically allocate the arg array.
+ *
+ * We do first allocation with GFP_NOIO because dm-mpath and dm-thin must
+ * process messages even if some device is suspended. These messages have a
+ * small fixed number of arguments.
+ *
+ * On the other hand, dm-switch needs to process bulk data using messages and
+ * excessive use of GFP_NOIO could cause trouble.
  */
 static char **realloc_argv(unsigned *array_size, char **old_argv)
 {
 	char **argv;
 	unsigned new_size;
+	gfp_t gfp;
 
-	new_size = *array_size ? *array_size * 2 : 64;
-	argv = kmalloc(new_size * sizeof(*argv), GFP_KERNEL);
+	if (*array_size) {
+		new_size = *array_size * 2;
+		gfp = GFP_KERNEL;
+	} else {
+		new_size = 8;
+		gfp = GFP_NOIO;
+	}
+	argv = kmalloc(new_size * sizeof(*argv), gfp);
 	if (argv) {
 		memcpy(argv, old_argv, *array_size * sizeof(*argv));
 		*array_size = new_size;
drivers/md/md.c +2 -1
index 561a65f8..ba46d974 100644
@@ -3620,6 +3620,7 @@ level_store(struct mddev *mddev, const char *buf, size_t len)
 		mddev->in_sync = 1;
 		del_timer_sync(&mddev->safemode_timer);
 	}
+	blk_set_stacking_limits(&mddev->queue->limits);
 	pers->run(mddev);
 	set_bit(MD_CHANGE_DEVS, &mddev->flags);
 	mddev_resume(mddev);
@@ -7791,7 +7792,7 @@ void md_check_recovery(struct mddev *mddev)
 	if (mddev->ro && !test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))
 		return;
 	if ( ! (
-		(mddev->flags & ~ (1<<MD_CHANGE_PENDING)) ||
+		(mddev->flags & MD_UPDATE_SB_FLAGS & ~ (1<<MD_CHANGE_PENDING)) ||
 		test_bit(MD_RECOVERY_NEEDED, &mddev->recovery) ||
 		test_bit(MD_RECOVERY_DONE, &mddev->recovery) ||
 		(mddev->external == 0 && mddev->safemode == 1) ||
drivers/md/persistent-data/dm-array.c +4 -1
index 172147eb..af96e24e 100644
@@ -509,15 +509,18 @@ static int grow_add_tail_block(struct resize *resize)
 static int grow_needs_more_blocks(struct resize *resize)
 {
 	int r;
+	unsigned old_nr_blocks = resize->old_nr_full_blocks;
 
 	if (resize->old_nr_entries_in_last_block > 0) {
+		old_nr_blocks++;
+
 		r = grow_extend_tail_block(resize, resize->max_entries);
 		if (r)
 			return r;
 	}
 
 	r = insert_full_ablocks(resize->info, resize->size_of_block,
-				resize->old_nr_full_blocks,
+				old_nr_blocks,
 				resize->new_nr_full_blocks,
 				resize->max_entries, resize->value,
 				&resize->root);
drivers/md/raid5.c +5 -1
index f8b90684..e4109f61 100644
@@ -340,7 +340,8 @@ static void release_stripe(struct stripe_head *sh)
 	unsigned long flags;
 	bool wakeup;
 
-	if (test_and_set_bit(STRIPE_ON_RELEASE_LIST, &sh->state))
+	if (unlikely(!conf->mddev->thread) ||
+		test_and_set_bit(STRIPE_ON_RELEASE_LIST, &sh->state))
 		goto slow_path;
 	wakeup = llist_add(&sh->release_list, &conf->released_stripes);
 	if (wakeup)
@@ -5239,6 +5240,9 @@ raid5_store_group_thread_cnt(struct mddev *mddev, const char *page, size_t len)
 	old_groups = conf->worker_groups;
 	old_group_cnt = conf->worker_cnt_per_group;
 
+	if (old_groups)
+		flush_workqueue(raid5_wq);
+
 	conf->worker_groups = NULL;
 	err = alloc_thread_groups(conf, new);
 	if (err) {
drivers/media/dvb-frontends/af9013.c +12 -2
index a204f282..fb504f1e 100644
@@ -24,6 +24,9 @@
 
 #include "af9013_priv.h"
 
+/* Max transfer size done by I2C transfer functions */
+#define MAX_XFER_SIZE  64
+
 struct af9013_state {
 	struct i2c_adapter *i2c;
 	struct dvb_frontend fe;
@@ -50,16 +53,23 @@ static int af9013_wr_regs_i2c(struct af9013_state *priv, u8 mbox, u16 reg,
 	const u8 *val, int len)
 {
 	int ret;
-	u8 buf[3+len];
+	u8 buf[MAX_XFER_SIZE];
 	struct i2c_msg msg[1] = {
 		{
 			.addr = priv->config.i2c_addr,
 			.flags = 0,
-			.len = sizeof(buf),
+			.len = 3 + len,
 			.buf = buf,
 		}
 	};
 
+	if (3 + len > sizeof(buf)) {
+		dev_warn(&priv->i2c->dev,
+			 "%s: i2c wr reg=%04x: len=%d is too big!\n",
+			 KBUILD_MODNAME, reg, len);
+		return -EINVAL;
+	}
+
 	buf[0] = (reg >> 8) & 0xff;
 	buf[1] = (reg >> 0) & 0xff;
 	buf[2] = mbox;
drivers/media/dvb-frontends/af9033.c +20 -3
index a777b4b9..30ee5905 100644
@@ -21,6 +21,9 @@
 
 #include "af9033_priv.h"
 
+/* Max transfer size done by I2C transfer functions */
+#define MAX_XFER_SIZE  64
+
 struct af9033_state {
 	struct i2c_adapter *i2c;
 	struct dvb_frontend fe;
@@ -40,16 +43,23 @@ static int af9033_wr_regs(struct af9033_state *state, u32 reg, const u8 *val,
 		int len)
 {
 	int ret;
-	u8 buf[3 + len];
+	u8 buf[MAX_XFER_SIZE];
 	struct i2c_msg msg[1] = {
 		{
 			.addr = state->cfg.i2c_addr,
 			.flags = 0,
-			.len = sizeof(buf),
+			.len = 3 + len,
 			.buf = buf,
 		}
 	};
 
+	if (3 + len > sizeof(buf)) {
+		dev_warn(&state->i2c->dev,
+			 "%s: i2c wr reg=%04x: len=%d is too big!\n",
+			 KBUILD_MODNAME, reg, len);
+		return -EINVAL;
+	}
+
 	buf[0] = (reg >> 16) & 0xff;
 	buf[1] = (reg >>  8) & 0xff;
 	buf[2] = (reg >>  0) & 0xff;
@@ -161,7 +171,14 @@ static int af9033_wr_reg_val_tab(struct af9033_state *state,
 		const struct reg_val *tab, int tab_len)
 {
 	int ret, i, j;
-	u8 buf[tab_len];
+	u8 buf[MAX_XFER_SIZE];
+
+	if (tab_len > sizeof(buf)) {
+		dev_warn(&state->i2c->dev,
+			 "%s: i2c wr len=%d is too big!\n",
+			 KBUILD_MODNAME, tab_len);
+		return -EINVAL;
+	}
 
 	dev_dbg(&state->i2c->dev, "%s: tab_len=%d\n", __func__, tab_len);
 
drivers/media/dvb-frontends/bcm3510.c +14 -1
index 1b77909c..39a29dd2 100644
@@ -44,6 +44,9 @@
 #include "bcm3510.h"
 #include "bcm3510_priv.h"
 
+/* Max transfer size done by bcm3510_do_hab_cmd() function */
+#define MAX_XFER_SIZE	128
+
 struct bcm3510_state {
 
 	struct i2c_adapter* i2c;
@@ -201,9 +204,19 @@ static int bcm3510_hab_send_request(struct bcm3510_state *st, u8 *buf, int len)
 
 static int bcm3510_do_hab_cmd(struct bcm3510_state *st, u8 cmd, u8 msgid, u8 *obuf, u8 olen, u8 *ibuf, u8 ilen)
 {
-	u8 ob[olen+2],ib[ilen+2];
+	u8 ob[MAX_XFER_SIZE], ib[MAX_XFER_SIZE];
 	int ret = 0;
 
+	if (ilen + 2 > sizeof(ib)) {
+		deb_hab("do_hab_cmd: ilen=%d is too big!\n", ilen);
+		return -EINVAL;
+	}
+
+	if (olen + 2 > sizeof(ob)) {
+		deb_hab("do_hab_cmd: olen=%d is too big!\n", olen);
+		return -EINVAL;
+	}
+
 	ob[0] = cmd;
 	ob[1] = msgid;
 	memcpy(&ob[2],obuf,olen);
drivers/media/dvb-frontends/cxd2820r_core.c +19 -2
index 7ca5c69d..51447a04 100644
@@ -21,12 +21,15 @@
 
 #include "cxd2820r_priv.h"
 
+/* Max transfer size done by I2C transfer functions */
+#define MAX_XFER_SIZE  64
+
 /* write multiple registers */
 static int cxd2820r_wr_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg,
 	u8 *val, int len)
 {
 	int ret;
-	u8 buf[len+1];
+	u8 buf[MAX_XFER_SIZE];
 	struct i2c_msg msg[1] = {
 		{
 			.addr = i2c,
@@ -36,6 +39,13 @@ static int cxd2820r_wr_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg,
 		}
 	};
 
+	if (1 + len > sizeof(buf)) {
+		dev_warn(&priv->i2c->dev,
+			 "%s: i2c wr reg=%04x: len=%d is too big!\n",
+			 KBUILD_MODNAME, reg, len);
+		return -EINVAL;
+	}
+
 	buf[0] = reg;
 	memcpy(&buf[1], val, len);
 
@@ -55,7 +65,7 @@ static int cxd2820r_rd_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg,
 	u8 *val, int len)
 {
 	int ret;
-	u8 buf[len];
+	u8 buf[MAX_XFER_SIZE];
 	struct i2c_msg msg[2] = {
 		{
 			.addr = i2c,
@@ -70,6 +80,13 @@ static int cxd2820r_rd_regs_i2c(struct cxd2820r_priv *priv, u8 i2c, u8 reg,
 		}
 	};
 
+	if (len > sizeof(buf)) {
+		dev_warn(&priv->i2c->dev,
+			 "%s: i2c wr reg=%04x: len=%d is too big!\n",
+			 KBUILD_MODNAME, reg, len);
+		return -EINVAL;
+	}
+
 	ret = i2c_transfer(priv->i2c, msg, 2);
 	if (ret == 2) {
 		memcpy(val, buf, len);
drivers/media/dvb-frontends/itd1000.c +12 -1
index c1c3400b..cadcae4c 100644
@@ -31,6 +31,9 @@
 #include "itd1000.h"
 #include "itd1000_priv.h"
 
+/* Max transfer size done by I2C transfer functions */
+#define MAX_XFER_SIZE  64
+
 static int debug;
 module_param(debug, int, 0644);
 MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off).");
@@ -52,10 +55,18 @@ MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off).");
 /* don't write more than one byte with flexcop behind */
 static int itd1000_write_regs(struct itd1000_state *state, u8 reg, u8 v[], u8 len)
 {
-	u8 buf[1+len];
+	u8 buf[MAX_XFER_SIZE];
 	struct i2c_msg msg = {
 		.addr = state->cfg->i2c_address, .flags = 0, .buf = buf, .len = len+1
 	};
+
+	if (1 + len > sizeof(buf)) {
+		printk(KERN_WARNING
+		       "itd1000: i2c wr reg=%04x: len=%d is too big!\n",
+		       reg, len);
+		return -EINVAL;
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/mt312.c +9 -1
index ec388c1d..a74ac0dd 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/nxt200x.c +10 -1
index 8e288940..fbca9856 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/rtl2830.c +12 -2
index 362d26d1..7efb796c 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/rtl2832.c +12 -2
index facb8484..b8dd0a13 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/s5h1420.c +9 -2
index e2fec9eb..93eeaf71 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/stb0899_drv.c +11 -1
index 3dd5714e..07cd5ea7 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/stb6100.c +10 -1
index 45f9523f..cea175d1 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/stv0367.c +12 -1
index 7b6dba3c..45877273 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/stv090x.c +11 -1
index 56d470ad..23e872f8 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/stv6110.c +11 -1
index 20b5fa92..b1425830 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/stv6110x.c +12 -1
index f36cab12..e66154e5 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/tda10071.c +21 -4
index e79749cf..8ad3a57c 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/tda18271c2dd.c +12 -2
index d281f77d..2c54586a 100644

Lines of this file are not shown. View the raw message.

drivers/media/dvb-frontends/zl10039.c +11 -1
index eff9c5fd..91b6b2e9 100644

Lines of this file are not shown. View the raw message.

drivers/media/pci/cx18/cx18-driver.c +12 -8
index 004d8ace..6386ced9 100644

Lines of this file are not shown. View the raw message.

drivers/media/pci/cx23885/cimax2.c +12 -1
index 73448491..16fa7ea4 100644

Lines of this file are not shown. View the raw message.

drivers/media/pci/ttpci/av7110_hw.c +17 -2
index f1cbfe52..6299d5da 100644

Lines of this file are not shown. View the raw message.

drivers/media/tuners/e4000.c +21 -4
index 6c96e489..72971a8d 100644

Lines of this file are not shown. View the raw message.

drivers/media/tuners/fc2580.c +21 -4
index 81f38aae..3aecaf46 100644

Lines of this file are not shown. View the raw message.

drivers/media/tuners/tda18212.c +21 -4
index e4a84ee2..abe256e1 100644

Lines of this file are not shown. View the raw message.

drivers/media/tuners/tda18218.c +20 -3
index 2d31aeb6..9300e936 100644

Lines of this file are not shown. View the raw message.

drivers/media/tuners/tuner-xc2028.c +7 -1
index 878d2c4d..9771cd83 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/dvb-usb-v2/af9015.c +2 -1
index d556042c..da47d239 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/dvb-usb-v2/af9035.c +26 -3
index 1ea17dc2..c8fcd784 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/dvb-usb-v2/mxl111sf.c +9 -1
index e97964ef..2627553f 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/dvb-usb/cxusb.c +37 -4

41 lines not on this page · raw message

drivers/media/usb/dvb-usb/dibusb-common.c +9 -1
index c2dded92..6d68af0c 100644

Lines of this file are not shown. View the raw message.

drivers/media/usb/dvb-usb/dw2102.c +80 -10

90 lines not on this page · raw message

drivers/media/v4l2-core/v4l2-async.c +27 -3
index c85d69da..85a6a341 100644

Lines of this file are not shown. View the raw message.

drivers/mfd/lpc_ich.c +13 -0
index 9483bc84..e775bfbc 100644

Lines of this file are not shown. View the raw message.

drivers/mfd/rts5249.c +46 -2

48 lines not on this page · raw message

drivers/mmc/host/atmel-mci.c +15 -6
index 69e438ee..92c18779 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/devices/m25p80.c +7 -13
index 6bc9618a..f111f04f 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/nand/atmel_nand.c +0 -1
index 060feeaf..9be07922 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/nand/gpmi-nand/gpmi-nand.c +9 -9
index a9830ff8..a9260178 100644

Lines of this file are not shown. View the raw message.

drivers/mtd/nand/nand_base.c +13 -2
index d340b2f1..d92d94bb 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath/ath5k/base.c +3 -3
index 48161ede..69f58b07 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/mwifiex/sdio.c +3 -0
index 1576104e..9bf88987 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/mwifiex/uap_txrx.c +26 -3
index 1cfe5a73..92f76d65 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/prism54/islpci_dev.c +5 -2
index 5970ff6f..d498b02f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rt2x00/rt2400pci.c +1 -1
index 3d53a09d..38ed9a3e 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/base.c +41 -52

93 lines not on this page · raw message

drivers/net/wireless/rtlwifi/rtl8188ee/hw.c +1 -0
index b68cae30..e06971be 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +3 -3
index da4f5871..2c68c138 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/rtl8192cu/trx.c +4 -4
index 5a060e53..5c52a8ac 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/rtl8192de/trx.c +1 -1
index b8ec718a..542394c8 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/rtl8192se/rf.c +1 -1
index 5061f1db..92d38ab3 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/rtl8192se/trx.c +1 -1
index c7095118..7d0f2e20 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/rtlwifi/wifi.h +1 -5
index 70325874..ad9c37a4 100644

Lines of this file are not shown. View the raw message.

drivers/pci/pcie/portdrv_pci.c +0 -1
index 696caed5..ce8acc71 100644

Lines of this file are not shown. View the raw message.

drivers/pinctrl/mvebu/pinctrl-dove.c +1 -1
index 29f7e4fc..360b9b23 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/sony-laptop.c +0 -27
index 13ec195f..3484dd29 100644

Lines of this file are not shown. View the raw message.

drivers/regulator/pfuze100-regulator.c +9 -3
index ba67b2c4..032df379 100644

Lines of this file are not shown. View the raw message.

drivers/regulator/ti-abb-regulator.c +1 -1
index 20c271d4..b993ec57 100644

Lines of this file are not shown. View the raw message.

drivers/s390/net/qeth_core_main.c +5 -1
index 0a328d0d..bd8c09e7 100644

Lines of this file are not shown. View the raw message.

drivers/staging/lustre/lustre/ptlrpc/pinger.c +2 -2
index 5dec771d..4d340f4a 100644

Lines of this file are not shown. View the raw message.

drivers/staging/media/lirc/lirc_zilog.c +11 -1
index 11d5338b..0feeaadf 100644

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8188eu/core/rtw_ap.c +3 -0
index 2c73823d..2a13a41f 100644

Lines of this file are not shown. View the raw message.

drivers/staging/tidspbridge/Kconfig +1 -1
index 165b918b..1b6d581c 100644

Lines of this file are not shown. View the raw message.

drivers/staging/vt6656/baseband.c +11 -0
index 1e8b8412..4aa5ef54 100644

Lines of this file are not shown. View the raw message.

drivers/staging/vt6656/rndis.h +2 -0
index 5e073062..5cf5e732 100644

Lines of this file are not shown. View the raw message.

drivers/staging/zram/zram_drv.c +14 -5
index 012ba15e..e06ec439 100644

Lines of this file are not shown. View the raw message.

drivers/staging/zsmalloc/zsmalloc-main.c +13 -4
index 1a67537d..3b950e5a 100644

Lines of this file are not shown. View the raw message.

drivers/target/iscsi/iscsi_target_auth.c +4 -1
index 7505fddc..3e801885 100644

Lines of this file are not shown. View the raw message.

drivers/target/iscsi/iscsi_target_configfs.c +5 -0
index fd145259..8a1bd1af 100644

Lines of this file are not shown. View the raw message.

drivers/target/iscsi/iscsi_target_device.c +1 -5
index 6c7a5104..7087c736 100644

Lines of this file are not shown. View the raw message.

drivers/target/iscsi/iscsi_target_nego.c +1 -1
index ef6d836a..a972145d 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_transport.c +2 -0
index 81e945ee..0b0009b5 100644

Lines of this file are not shown. View the raw message.

drivers/tty/n_tty.c +9 -5
index 7a744b69..ff582933 100644

Lines of this file are not shown. View the raw message.

drivers/tty/tty_io.c +1 -0
index 3a1a01af..c74a00ad 100644

Lines of this file are not shown. View the raw message.

drivers/video/backlight/atmel-pwm-bl.c +6 -4
index f7447f70..d18da911 100644

Lines of this file are not shown. View the raw message.

drivers/video/console/sticore.c +103 -63

166 lines not on this page · raw message

drivers/video/sticore.h +50 -12

62 lines not on this page · raw message

drivers/video/stifb.c +5 -5
index 876648e1..019a1fee 100644

Lines of this file are not shown. View the raw message.

fs/cifs/cifsglob.h +1 -1
index 52b6f6c2..c8e03f8d 100644

Lines of this file are not shown. View the raw message.

fs/cifs/cifssmb.c +5 -3
index ccd31ab8..5f1f3285 100644

Lines of this file are not shown. View the raw message.

fs/cifs/inode.c +13 -10
index 867b7cdc..36f9ebb9 100644

Lines of this file are not shown. View the raw message.

fs/cifs/readdir.c +8 -32
index 53a75f3d..5940ecab 100644

Lines of this file are not shown. View the raw message.

fs/cifs/smb1ops.c +20 -1
index 8233b174..e50554b7 100644

Lines of this file are not shown. View the raw message.

fs/cifs/smb2inode.c +12 -4
index 78ff88c4..84c012a6 100644

Lines of this file are not shown. View the raw message.

fs/cifs/smb2proto.h +1 -1
index e3fb4801..7db5db0e 100644

Lines of this file are not shown. View the raw message.

fs/devpts/inode.c +1 -0
index 073d30b9..a726b9f2 100644

Lines of this file are not shown. View the raw message.

fs/ext4/xattr.c +1 -0
index 03e9bebb..1423c481 100644

Lines of this file are not shown. View the raw message.

fs/gfs2/inode.c +4 -1
index 968d4c56..12987666 100644

Lines of this file are not shown. View the raw message.

fs/namei.c +1 -0
index caa28051..23ac50f4 100644

Lines of this file are not shown. View the raw message.

include/acpi/acpi_bus.h +1 -0
index d9019821..26115778 100644

Lines of this file are not shown. View the raw message.

include/linux/mfd/rtsx_pci.h +53 -0

53 lines not on this page · raw message

include/linux/msg.h +3 -3
index 391af8d1..e21f9d44 100644

Lines of this file are not shown. View the raw message.

include/linux/mtd/map.h +2 -2
index 4b02512e..5f487d77 100644

Lines of this file are not shown. View the raw message.

include/linux/rbtree.h +9 -7
index aa870a4d..57e75ae9 100644

Lines of this file are not shown. View the raw message.

include/trace/ftrace.h +3 -2
index 5c7ab17c..712ea360 100644

Lines of this file are not shown. View the raw message.

ipc/msgutil.c +10 -10
index 491e71f2..7e709597 100644

Lines of this file are not shown. View the raw message.

ipc/util.h +2 -2
index f2f5036f..59d78aa9 100644

Lines of this file are not shown. View the raw message.

kernel/audit.c +24 -3
index 7b0e23a7..7ddfd8a0 100644

Lines of this file are not shown. View the raw message.

kernel/cgroup.c +31 -4
index 8bd9cfdc..5c9127dc 100644

Lines of this file are not shown. View the raw message.

kernel/cpuset.c +6 -2
index 6bf981e1..4772034b 100644

Lines of this file are not shown. View the raw message.

kernel/irq/manage.c +1 -1
index 514bcfd8..3e59f951 100644

Lines of this file are not shown. View the raw message.

kernel/power/snapshot.c +7 -2
index 98c3b34a..b38109e2 100644

Lines of this file are not shown. View the raw message.

kernel/power/user.c +1 -0
index 957f0616..ffc931c3 100644

Lines of this file are not shown. View the raw message.

kernel/time/alarmtimer.c +2 -2
index eec50fce..88c9c65a 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ftrace.c +35 -29

64 lines not on this page · raw message

kernel/workqueue.c +22 -2
index 987293d0..93c26528 100644

Lines of this file are not shown. View the raw message.

lib/vsprintf.c +30 -3
index 26559bdb..d76555c4 100644

Lines of this file are not shown. View the raw message.

mm/mmap.c +5 -5
index 9d548512..362e5f13 100644

Lines of this file are not shown. View the raw message.

mm/zswap.c +14 -8
index d93510c6..6b862518 100644

Lines of this file are not shown. View the raw message.

net/wireless/scan.c +2 -2
index eeb71480..d4397eba 100644

Lines of this file are not shown. View the raw message.

security/selinux/netlabel.c +2 -4
index da4b8b23..6235d052 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_generic.c +58 -21

79 lines not on this page · raw message

sound/pci/hda/patch_realtek.c +11 -0
index 2f39631f..f0f54829 100644

Lines of this file are not shown. View the raw message.

sound/soc/blackfin/bf5xx-i2s.c +1 -0
index 9a174fc4..39d77483 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/ak4642.c +1 -1
index 2d037870..687565d0 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/arizona.c +4 -0
index 657808ba..f38ed4d2 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/cs42l52.h +1 -1
index 4277012c..a935d738 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/wm5110.c +42 -1

43 lines not on this page · raw message

sound/soc/codecs/wm8962.c +2 -0
index 11d80f3b..871f8518 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/wm_adsp.c +5 -0
index b38f3506..60b6b593 100644

Lines of this file are not shown. View the raw message.

sound/soc/fsl/imx-pcm-fiq.c +17 -12
index 34043c55..2fc872b2 100644

Lines of this file are not shown. View the raw message.

tools/perf/ui/hist.c +1 -1
index 0a193281..78f4c92e 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/color.c +9 -2
index 11e46da1..66e44a50 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/color.h +1 -1
index dea082b7..fced3840 100644

Lines of this file are not shown. View the raw message.

tools/perf/util/event.c +4 -2
index 49096ea5..1ae1b082 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.