Skip to contentSkip to conversation

Linux 3.13.6

DISCUSSION Greg KH 1 participant 2 messages Mar 7, 2014 Stable branch

lore
Share & tools
lore

Greg KH

author maintainer
#0 lore raw

I'm announcing the release of the 3.13.6 kernel.

All users of the 3.13 kernel series must upgrade.

The updated 3.13.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.13.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

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

 Makefile                                        |    2 
 arch/arm/include/asm/cacheflush.h               |    1 
 arch/arm/include/asm/pgtable-3level.h           |   15 -
 arch/arm/include/asm/spinlock.h                 |   15 -
 arch/arm/mach-imx/Makefile                      |    2 
 arch/arm/mach-imx/common.h                      |    4 
 arch/arm/mach-omap2/gpmc.c                      |    4 
 arch/arm/mach-tegra/tegra.c                     |   10 +
 arch/arm/mm/dma-mapping.c                       |    2 
 arch/arm/mm/mm.h                                |    1 
 arch/arm/mm/mmu.c                               |    7 
 arch/arm/mm/proc-v6.S                           |    3 
 arch/arm/mm/proc-v7.S                           |    2 
 arch/arm64/kernel/stacktrace.c                  |    6 
 arch/avr32/Makefile                             |    2 
 arch/avr32/boards/mimc200/fram.c                |    1 
 arch/powerpc/include/asm/compat.h               |    5 
 arch/powerpc/include/asm/opal.h                 |    4 
 arch/powerpc/include/asm/ptrace.h               |   16 +
 arch/powerpc/kernel/crash_dump.c                |    8 
 arch/powerpc/kernel/misc_32.S                   |    5 
 arch/powerpc/kernel/signal_64.c                 |    4 
 arch/powerpc/platforms/powernv/eeh-ioda.c       |   29 ---
 arch/powerpc/platforms/powernv/opal-xscom.c     |   21 +-
 arch/powerpc/platforms/pseries/hotplug-cpu.c    |   22 +-
 arch/x86/kernel/cpu/perf_event.c                |    3 
 arch/x86/kernel/pci-dma.c                       |    4 
 arch/x86/kvm/vmx.c                              |    2 
 arch/x86/kvm/x86.c                              |    2 
 arch/xtensa/include/asm/traps.h                 |   44 +++-
 arch/xtensa/kernel/entry.S                      |   72 ++++++-
 drivers/acpi/pci_irq.c                          |    1 
 drivers/acpi/processor_throttling.c             |   69 +++----
 drivers/acpi/video.c                            |    8 
 drivers/ata/ahci.c                              |   14 +
 drivers/ata/libata-pmp.c                        |    7 
 drivers/ata/sata_sil.c                          |    1 
 drivers/base/firmware_class.c                   |    1 
 drivers/cpufreq/intel_pstate.c                  |    2 
 drivers/cpufreq/powernow-k8.c                   |   10 -
 drivers/dma/ioat/dma.c                          |   52 ++++-
 drivers/dma/ioat/dma.h                          |    1 
 drivers/dma/ioat/dma_v2.c                       |   11 -
 drivers/dma/ioat/dma_v3.c                       |    3 
 drivers/dma/ste_dma40.c                         |    4 
 drivers/edac/i7300_edac.c                       |   38 ++--
 drivers/edac/i7core_edac.c                      |    9 
 drivers/gpu/drm/i915/intel_display.c            |   14 +
 drivers/gpu/drm/i915/intel_dp.c                 |   19 +-
 drivers/gpu/drm/i915/intel_ringbuffer.c         |   21 ++
 drivers/gpu/drm/i915/intel_ringbuffer.h         |    1 
 drivers/gpu/drm/nouveau/core/engine/disp/nv50.c |    2 
 drivers/gpu/drm/nouveau/core/subdev/fb/nv1a.c   |    2 
 drivers/gpu/drm/nouveau/nouveau_drm.c           |    3 
 drivers/gpu/drm/radeon/atombios_crtc.c          |   29 ++-
 drivers/gpu/drm/radeon/dce6_afmt.c              |    2 
 drivers/gpu/drm/radeon/evergreen.c              |    2 
 drivers/gpu/drm/radeon/ni_dpm.c                 |    2 
 drivers/gpu/drm/radeon/radeon.h                 |    4 
 drivers/gpu/drm/radeon/radeon_atpx_handler.c    |    3 
 drivers/gpu/drm/radeon/radeon_kms.c             |    6 
 drivers/gpu/drm/radeon/radeon_ring.c            |    2 
 drivers/gpu/drm/radeon/radeon_semaphore.c       |   19 +-
 drivers/gpu/drm/radeon/radeon_uvd.c             |    2 
 drivers/gpu/drm/radeon/rv770.c                  |    2 
 drivers/hwmon/max1668.c                         |    2 
 drivers/iio/gyro/Kconfig                        |    2 
 drivers/iio/gyro/st_gyro.h                      |    1 
 drivers/iio/gyro/st_gyro_core.c                 |    9 
 drivers/iio/gyro/st_gyro_i2c.c                  |    1 
 drivers/iio/gyro/st_gyro_spi.c                  |    1 
 drivers/input/misc/arizona-haptics.c            |   11 -
 drivers/iommu/arm-smmu.c                        |  101 ++++++-----
 drivers/irqchip/irq-metag-ext.c                 |    2 
 drivers/irqchip/irq-metag.c                     |    2 
 drivers/irqchip/irq-orion.c                     |   22 ++
 drivers/md/dm-cache-target.c                    |    2 
 drivers/md/dm-mpath.c                           |    7 
 drivers/md/dm-thin-metadata.c                   |   17 +
 drivers/md/dm-thin-metadata.h                   |    2 
 drivers/md/dm-thin.c                            |    8 
 drivers/mfd/da9055-i2c.c                        |   12 +
 drivers/misc/mei/client.c                       |    4 
 drivers/mtd/nand/omap2.c                        |   61 ++++--
 drivers/net/bonding/bond_3ad.c                  |    6 
 drivers/net/bonding/bond_3ad.h                  |    1 
 drivers/net/can/dev.c                           |   15 -
 drivers/net/can/janz-ican3.c                    |   18 -
 drivers/net/can/usb/kvaser_usb.c                |    2 
 drivers/net/can/vcan.c                          |    9 
 drivers/net/ethernet/broadcom/tg3.c             |    4 
 drivers/net/ethernet/marvell/mvneta.c           |  217 ++++++++++++------------
 drivers/net/hyperv/netvsc_drv.c                 |   53 ++++-
 drivers/net/usb/asix_devices.c                  |    3 
 drivers/net/usb/ax88179_178a.c                  |    4 
 drivers/net/usb/gl620a.c                        |    4 
 drivers/net/usb/mcs7830.c                       |    5 
 drivers/net/usb/net1080.c                       |    4 
 drivers/net/usb/qmi_wwan.c                      |    9 
 drivers/net/usb/rndis_host.c                    |    4 
 drivers/net/usb/smsc75xx.c                      |    4 
 drivers/net/usb/smsc95xx.c                      |    4 
 drivers/net/usb/usbnet.c                        |   25 +-
 drivers/net/wireless/rtl818x/rtl8187/rtl8187.h  |   10 -
 drivers/net/wireless/rtlwifi/ps.c               |    2 
 drivers/net/wireless/rtlwifi/rtl8192ce/hw.c     |   18 +
 drivers/pci/host/pci-mvebu.c                    |   11 -
 drivers/pci/pci.c                               |   10 +
 drivers/regulator/da9063-regulator.c            |    4 
 drivers/scsi/qla2xxx/qla_target.c               |    3 
 drivers/staging/android/binder.c                |    3 
 drivers/staging/iio/adc/mxs-lradc.c             |    1 
 drivers/staging/rtl8188eu/os_dep/usb_intf.c     |    1 
 drivers/usb/chipidea/udc.c                      |    4 
 drivers/usb/gadget/bcm63xx_udc.c                |   58 +++---
 drivers/usb/host/ehci-hcd.c                     |   13 +
 drivers/usb/host/ehci-hub.c                     |   26 ++
 drivers/usb/serial/ftdi_sio.c                   |    2 
 drivers/usb/serial/ftdi_sio_ids.h               |    6 
 drivers/usb/serial/option.c                     |    3 
 drivers/vhost/net.c                             |   41 ++--
 fs/attr.c                                       |    5 
 fs/btrfs/inode.c                                |    8 
 fs/cifs/file.c                                  |   37 +++-
 fs/cifs/smb2glob.h                              |    3 
 fs/cifs/smb2ops.c                               |   14 -
 fs/cifs/smb2pdu.c                               |    4 
 fs/ext4/ext4.h                                  |    2 
 fs/ext4/extents.c                               |    1 
 fs/ext4/inode.c                                 |    4 
 fs/ext4/ioctl.c                                 |    3 
 fs/ext4/resize.c                                |   34 ++-
 fs/ext4/super.c                                 |   20 +-
 fs/fs-writeback.c                               |   33 +--
 fs/jbd2/transaction.c                           |    6 
 fs/nfs/inode.c                                  |   14 +
 fs/nfs/internal.h                               |    9 
 fs/nfs/nfs4state.c                              |    5 
 fs/quota/dquot.c                                |   14 +
 fs/sync.c                                       |   15 -
 fs/xfs/xfs_super.c                              |    2 
 include/linux/can/skb.h                         |   38 ++++
 include/linux/export.h                          |    1 
 include/linux/ipc_namespace.h                   |    2 
 include/linux/netdevice.h                       |    7 
 include/linux/skbuff.h                          |   18 +
 include/linux/writeback.h                       |    2 
 include/trace/events/writeback.h                |    6 
 ipc/mq_sysctl.c                                 |   18 +
 ipc/mqueue.c                                    |    6 
 kernel/cgroup.c                                 |   32 +--
 kernel/events/core.c                            |   12 -
 kernel/workqueue.c                              |    7 
 mm/huge_memory.c                                |    9 
 mm/memory.c                                     |   14 -
 net/9p/trans_virtio.c                           |    5 
 net/batman-adv/bat_iv_ogm.c                     |   30 ++-
 net/batman-adv/hard-interface.c                 |   22 +-
 net/batman-adv/originator.c                     |   36 +++
 net/batman-adv/originator.h                     |    4 
 net/batman-adv/routing.c                        |    4 
 net/batman-adv/send.c                           |    9 
 net/batman-adv/translation-table.c              |   23 +-
 net/bridge/br_device.c                          |   51 +++--
 net/can/af_can.c                                |    3 
 net/can/bcm.c                                   |    4 
 net/core/dev.c                                  |   22 +-
 net/core/fib_rules.c                            |    7 
 net/core/netpoll.c                              |    4 
 net/core/skbuff.c                               |   25 ++
 net/core/sock.c                                 |    6 
 net/ieee802154/6lowpan.c                        |   20 ++
 net/ipv4/devinet.c                              |    3 
 net/ipv4/ip_forward.c                           |   71 +++++++
 net/ipv4/route.c                                |    4 
 net/ipv4/tcp_output.c                           |   13 +
 net/ipv6/addrconf.c                             |    2 
 net/ipv6/ip6_output.c                           |   17 +
 net/sched/sch_tbf.c                             |   13 -
 net/sctp/socket.c                               |   41 +++-
 net/sunrpc/auth_gss/auth_gss.c                  |   13 +
 net/sunrpc/xprtsock.c                           |    6 
 security/selinux/ss/policydb.c                  |    8 
 sound/pci/hda/patch_ca0132.c                    |   68 -------
 sound/pci/hda/patch_realtek.c                   |    2 
 sound/pci/hda/patch_sigmatel.c                  |   33 +++
 sound/soc/codecs/da732x.c                       |   12 +
 sound/soc/codecs/da9055.c                       |   11 -
 sound/soc/codecs/max98090.c                     |   20 +-
 sound/soc/codecs/rt5640.c                       |    1 
 sound/soc/codecs/sta32x.c                       |   76 ++++----
 sound/soc/codecs/wm8770.c                       |    4 
 sound/soc/codecs/wm8958-dsp2.c                  |    2 
 sound/soc/fsl/imx-mc13783.c                     |    1 
 sound/soc/fsl/imx-sgtl5000.c                    |   10 -
 sound/soc/fsl/imx-wm8962.c                      |   11 -
 sound/soc/txx9/txx9aclc-ac97.c                  |    8 
 sound/usb/mixer_maps.c                          |    9 
 tools/perf/builtin-trace.c                      |   22 ++
 199 files changed, 1791 insertions(+), 928 deletions(-)

Adam Thomson (1):
ASoC: da9055: Fix device registration of PMIC and CODEC devices

Alan Stern (1):
USB: EHCI: add delay during suspend to prevent erroneous wakeups

Aleksander Morgado (1):
USB: serial: option: blacklist interface 4 for Cinterion PHS8 and PXS8

Alex Deucher (5):
drm/radeon/ni: fix typo in dpm sq ramping setup drm/radeon: fix display tiling setup on SI drm/radeon: fix audio disable on dce6+ drm/radeon: print the supported atpx function mask drm/radeon: disable pll sharing for DP on DCE4.1

Alexander Shiyan (1):
ASoC: txx9aclc_ac97: Fix kernel crash on probe

Andrew Honig (1):

      kvm: x86: fix emulator buffer overflow (CVE-2014-0049)

Andrew Lunn (2):
PCI: mvebu: Use Device ID and revision from underlying endpoint
irqchip: orion: Fix getting generic chip pointer.

Andy Adamson (1):
NFS fix error return in nfs4_select_rw_stateid

Antonio Quartulli (9):
batman-adv: fix soft-interface MTU computation
batman-adv: fix TT-TVLV parsing on OGM reception
batman-adv: release vlan object after checking the CRC
batman-adv: properly check pskb_may_pull return value
batman-adv: avoid potential race condition when adding a new neighbour
batman-adv: fix TT CRC computation by ensuring byte order
batman-adv: free skb on TVLV parsing success
batman-adv: avoid double free when orig_node initialization fails
batman-adv: fix potential kernel paging error for unicast transmissions

Arnaldo Carvalho de Melo (1):

      perf trace: Fix ioctl 'request' beautifier build problems on !(i386 || x86_64) arches

Arve Hjønnevåg (1):
staging: binder: Fix death notifications

Ben Hutchings (1):
perf trace: Add fallback definition of EFD_SEMAPHORE

Benjamin Herrenschmidt (2):
powerpc/powernv: Fix opal_xscom_{read,write} prototype powerpc/powernv: Fix indirect XSCOM unmangling

Bjorn Helgaas (1):
PCI: Enable INTx if BIOS left them disabled

Bjørn Mork (1):
net: qmi_wwan: add Netgear Aircard 340U

Chao Bi (1):
mei: set client's read_cb to NULL when flow control fails

Charles Keepax (1):
Input - arizona-haptics: Fix double lock of dapm_mutex

Chen Gang (1):

      avr32: Makefile: add '-D__linux__' flag for gcc-4.4.7 use

Christian König (2):
drm/radeon: fix CP semaphores on CIK
drm/radeon: fix missing bo reservation

Christoffer Dall (1):
ARM: 7950/1: mm: Fix stage-2 device memory attributes

Christoph Hellwig (1):
fs: fix iversion handling

Clemens Ladisch (1):
ALSA: usb-audio: work around KEF X300A firmware bug

Cong Wang (1):
bridge: fix netconsole setup over bridge

Dan Carpenter (1):
jbd2: fix use after free in jbd2_journal_start_reserved()

Dan Williams (1):
ioat: fix tasklet tear down

Daniel Borkmann (1):
net: sctp: fix sctp_connectx abi for ia32 emulation/compat mode

Davidlohr Bueso (1):
ipc,mqueue: remove limits for the amount of system-wide queues

Denis CIOCCA (1):
iio:gyro: bug on L3GD20H gyroscope support

Denis V. Lunev (1):
ata: enable quirk from jmicron JMB350 for JMB394

Dirk Brandewie (1):
intel_pstate: Use LFM bus ratio as min ratio/P state

Dr. Greg Wettstein (1):
qla2xxx: Fix kernel panic on selective retransmission request

Duan Jiong (1):
ipv4: fix counter in_slow_tot

Dylan Reid (1):
ASoC: max98090: sync regcache on entering STANDBY

Emil Goode (2):
net: asix: add missing flag to struct driver_info
usbnet: remove generic hard_header_len check

Emil Velikov (1):
drm/nouveau/fb: use correct ram oclass for nv1a hardware

Eric Dumazet (2):
6lowpan: fix lockdep splats
net: use __GFP_NORETRY for high order allocations

Eric Paris (1):
SELinux: bigendian problems with filename trans rules

Eric Whitney (1):
ext4: fix xfstest generic/299 block validity failures

Florian Fainelli (1):
usb: gadget: bcm63xx_udc: fix build failure on DMA channel code

Florian Westphal (3):
net: add and use skb_gso_transport_seglen()
net: core: introduce netif_skb_dev_features
net: ip, ipv6: handle gso skbs in forwarding path

Gavin Shan (1):
powerpc/powernv: Rework EEH reset

Geert Uytterhoeven (1):
ipv4: Fix runtime WARNING in rtmsg_ifa()

Greg Kroah-Hartman (1):

      Linux 3.13.6

Guenter Roeck (1):
hwmon: (max1668) Fix writing the minimum temperature

Haiyang Zhang (1):
hyperv: Fix the carrier status setting

Hannes Reinecke (1):
dm mpath: fix stalls when handling invalid ioctls

Hans de Goede (1):
ACPI / video: Filter the _BCL table for duplicate brightness values

Hsin-Yu Chao (2):
ALSA: hda/ca0132 - setup/cleanup streams
ALSA: hda/ca0132 - Fix recording from mode id 0x8

Hui Wang (2):
ALSA: hda - add headset mic detect quirks for two Dell laptops
ALSA: hda - Enable front audio jacks on one HP desktop model

Ilia Mirkin (2):
drm/nouveau: set irq_enabled manually
drm/nv50/disp: use correct register to determine DP display bpp

James Hogan (1):
irq-metag*: stop set_affinity vectoring to offline cpus

Jan Kara (2):
Revert "writeback: do not sync data dirtied after sync start"
quota: Fix race between dqput() and dquot_scan_active()

Jani Nikula (2):
drm/i915/dp: increase native aux defer retry timeout drm/i915/dp: add native aux defer retry limit

Jarkko Nikula (1):
ASoC: rt5640: Add ACPI ID for Intel Baytrail

Jean Delvare (2):
i7core_edac: Fix PCI device reference count
i7300_edac: Fix device reference count

Jeff Layton (1):
cifs: ensure that uncached writes handle unmapped areas correctly

Jerome Glisse (1):
drm/radeon: free uvd ring on unload

Jiri Bohac (1):
bonding: 802.3ad: make aggregator_identifier bond-private

Joerg Dorchain (1):
USB: ftdi_sio: add Cressi Leonardo PID

Johannes Berg (1):
export: declare ksymtab symbols

John Ogness (1):
tcp: tsq: fix nonagle handling

Juergen Beisert (1):
staging:iio:adc:MXS:LRADC: fix touchscreen statemachine

Kevin Hao (1):
powerpc: Set the correct ksp_limit on ppc32 when switching to irq stack

Kirill A. Shutemov (1):
mm, thp: fix infinite loop on memcg OOM

Lai Jiangshan (1):
workqueue: ensure @task is valid across kthread_stop()

Lan Tianyu (1):
ACPI / processor: Rework processor throttling with work_on_cpu()

Lars-Peter Clausen (2):
ASoC: sta32x: Fix cache sync
ASoC: wm8958-dsp: Fix firmware block loading

Laurent Dufour (1):
powerpc/crashdump : Fix page frame number check in copy_oldmem_page

Levente Kurusa (1):
ahci: disable NCQ on Samsung pci-e SSDs on macbooks

Linus Walleij (1):
dma: ste_dma40: don't dereference free:d descriptor

Maciej Żenczykowski (1):
net: fix 'ip rule' iif/oif device rename

Manu Gupta (1):
staging: r8188eu: Add new device ID

Marek Szyprowski (2):
ARM: dma-mapping: fix GFP_ATOMIC macro usage
x86: dma-mapping: fix GFP_ATOMIC macro usage

Mark Brown (1):
ASoC: da732x: Mark DC offset control registers volatile

Matthieu CASTET (1):
usb: chipidea: need to mask when writting endptflush and endptprime

Max Filippov (2):
xtensa: save current register frame in fast_syscall_spill_registers_fixup
xtensa: introduce spill_registers_kernel macro

Michael S. Tsirkin (1):
vhost: fix ref cnt checking deadlock

Mike Snitzer (3):
dm cache: move hook_info into common portion of per_bio_data structure dm thin: avoid metadata commit if a pool's thin devices haven't changed dm thin: fix the error path for the thin device constructor

Nicolas Dichtel (1):
gre: add link local route when local addr is any

Nithin Sujir (1):
tg3: Fix deadlock in tg3_change_mtu()

Oliver Hartkopp (1):
can: add destructor for self generated skbs

Olivier Langlois (2):
rtlwifi: Fix incorrect return from rtl_ps_enable_nic()
rtlwifi: rtl8192ce: Fix too long disable of IRQs

Olivier Sobrie (1):
can: kvaser_usb: check number of channels returned by HW

Olof Johansson (1):
ARM64: unwind: Fix PC calculation

Paolo Bonzini (1):
kvm, vmx: Really fix lazy FPU on nested guest

Paul Gortmaker (1):
avr32: fix missing module.h causing build failure in mimc200/fram.c

Paul Mackerras (1):
powerpc: Increase stack redzone for 64-bit userspace to 512 bytes

Pavel Shilovsky (1):
CIFS: Fix too big maxBuf size for SMB3 mounts

Pekon Gupta (5):
ARM: OMAP2+: gpmc: fix: DT NAND child nodes not probed when MTD_NAND is built as module
ARM: OMAP2+: gpmc: fix: DT ONENAND child nodes not probed when MTD_ONENAND is built as module
mtd: nand: omap: fix ecclayout to be in sync with u-boot NAND driver
mtd: nand: omap: fix ecclayout->oobfree->offset
mtd: nand: omap: fix ecclayout->oobfree->length

Peter Zijlstra (2):
perf/x86: Fix event scheduling
perf: Fix hotplug splat

Richard Yao (1):
9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers

Sabrina Dubroca (1):
netpoll: fix netconsole IPv6 setup

Sebastian Capella (1):
PM / hibernate: Fix restore hang in freeze_processes()

Sebastian Hesselbarth (3):
irqchip: orion: clear bridge cause register on init
irqchip: orion: use handle_edge_irq on bridge irqs
irqchip: orion: clear stale interrupts in irq_startup

Shawn Guo (2):
ARM: imx6: build pm-imx6q.c independently of CONFIG_PM
ASoC: fsl: fix pm support of machine drivers

Simon Wunderlich (1):
batman-adv: fix potential orig_node reference leak

Srivatsa S. Bhat (1):
cpufreq: powernow-k8: Initialize per-cpu data-structures properly

Stanislaw Gruszka (2):
rtl8187: fix regression on MIPS without coherent DMA
usb: ehci: fix deadlock when threadirqs option is used

Stephen Warren (1):
ARM: tegra: only run PL310 init on systems with one

Steve Twiss (1):
regulator: da9063: Bug fix when setting max voltage on LDOs 5-11

Takashi Iwai (4):
ASoC: wm8770: Fix wrong number of enum items
ASoC: sta32x: Fix wrong enum for limiter2 release rate
ASoC: sta32x: Fix array access overflow
ALSA: hda - Add a fixup for HP Folio 13 mute LED

Tejun Heo (5):
cgroup: fix error return value in cgroup_mount()
cgroup: fix error return from cgroup_create()
cgroup: fix locking in cgroup_cfts_commit()
cgroup: update cgroup_enable_task_cg_lists() to grab siglock
sata_sil: apply MOD15WRITE quirk to TOSHIBA MK2561GSYN

Theodore Ts'o (4):
ext4: don't try to modify s_flags if the the file system is read-only
ext4: fix online resize with very large inode tables
ext4: fix online resize with a non-standard blocks per group setting
ext4: don't leave i_crtime.tv_sec uninitialized

Tomasz Nowicki (1):
ACPI / PCI: Fix memory leak in acpi_pci_irq_enable()

Tony Breeds (1):
powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly

Trond Myklebust (3):
NFS: Do not set NFS_INO_INVALID_LABEL unless server supports labeled NFS
SUNRPC: Fix races in xs_nospace()
SUNRPC: Ensure that gss_auth isn't freed before its upcall messages

Ville Syrjälä (2):
drm/i915: Add intel_ring_cachline_align()
drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVB

Vinayak Kale (1):
ARM: 7957/1: add DSB after icache flush in __flush_icache_all()

Will Deacon (5):
ARM: 7953/1: mm: ensure TLB invalidation is complete before enabling MMU
ARM: 7955/1: spinlock: ensure we have a compiler barrier before sev iommu/arm-smmu: really fix page table locking iommu/arm-smmu: fix table flushing during initial allocations iommu/arm-smmu: set CBARn.BPSHCFG to NSH for s1-s2-bypass contexts

Yifan Zhang (1):
iommu/arm-smmu: fix pud/pmd entry fill sequence

Zheng Liu (1):
ext4: fix error paths in swap_inode_boot_loader()

willy tarreau (5):
net: mvneta: increase the 64-bit rx/tx stats out of the hot path
net: mvneta: use per_cpu stats to fix an SMP lock up
net: mvneta: do not schedule in mvneta_tx_timeout
net: mvneta: add missing bit descriptions for interrupt masks and causes
net: mvneta: replace Tx timer with a real interrupt

author maintainer
#1 lore raw
Makefile +1 -1
index a03bbf9f5bc7..dfe5fecc544c 100644
@@ -1,6 +1,6 @@
 VERSION = 3
 PATCHLEVEL = 13
-SUBLEVEL = 5
+SUBLEVEL = 6
 EXTRAVERSION =
 NAME = One Giant Leap for Frogkind
 
arch/arm/include/asm/cacheflush.h +1 -0
index ee753f1749cd..ab91ebb82973 100644
@@ -212,6 +212,7 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *,
 static inline void __flush_icache_all(void)
 {
 	__flush_icache_preferred();
+	dsb();
 }
 
 /*
arch/arm/include/asm/pgtable-3level.h +9 -6
index 4f9503908dca..1d1567303cfa 100644
@@ -120,13 +120,16 @@
 /*
  * 2nd stage PTE definitions for LPAE.
  */
-#define L_PTE_S2_MT_UNCACHED	 (_AT(pteval_t, 0x5) << 2) /* MemAttr[3:0] */
-#define L_PTE_S2_MT_WRITETHROUGH (_AT(pteval_t, 0xa) << 2) /* MemAttr[3:0] */
-#define L_PTE_S2_MT_WRITEBACK	 (_AT(pteval_t, 0xf) << 2) /* MemAttr[3:0] */
-#define L_PTE_S2_RDONLY		 (_AT(pteval_t, 1) << 6)   /* HAP[1]   */
-#define L_PTE_S2_RDWR		 (_AT(pteval_t, 3) << 6)   /* HAP[2:1] */
+#define L_PTE_S2_MT_UNCACHED		(_AT(pteval_t, 0x0) << 2) /* strongly ordered */
+#define L_PTE_S2_MT_WRITETHROUGH	(_AT(pteval_t, 0xa) << 2) /* normal inner write-through */
+#define L_PTE_S2_MT_WRITEBACK		(_AT(pteval_t, 0xf) << 2) /* normal inner write-back */
+#define L_PTE_S2_MT_DEV_SHARED		(_AT(pteval_t, 0x1) << 2) /* device */
+#define L_PTE_S2_MT_MASK		(_AT(pteval_t, 0xf) << 2)
 
-#define L_PMD_S2_RDWR		 (_AT(pmdval_t, 3) << 6)   /* HAP[2:1] */
+#define L_PTE_S2_RDONLY			(_AT(pteval_t, 1) << 6)   /* HAP[1]   */
+#define L_PTE_S2_RDWR			(_AT(pteval_t, 3) << 6)   /* HAP[2:1] */
+
+#define L_PMD_S2_RDWR			(_AT(pmdval_t, 3) << 6)   /* HAP[2:1] */
 
 /*
  * Hyp-mode PL2 PTE definitions for LPAE.
arch/arm/include/asm/spinlock.h +3 -12
index ef3c6072aa45..ac4bfae26702 100644
@@ -37,18 +37,9 @@
 
 static inline void dsb_sev(void)
 {
-#if __LINUX_ARM_ARCH__ >= 7
-	__asm__ __volatile__ (
-		"dsb ishst\n"
-		SEV
-	);
-#else
-	__asm__ __volatile__ (
-		"mcr p15, 0, %0, c7, c10, 4\n"
-		SEV
-		: : "r" (0)
-	);
-#endif
+
+	dsb(ishst);
+	__asm__(SEV);
 }
 
 /*
arch/arm/mach-imx/Makefile +0 -2
index 1789e2b31903..934170115d7a 100644
@@ -100,11 +100,9 @@ obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
 obj-$(CONFIG_SOC_IMX6Q) += clk-imx6q.o mach-imx6q.o
 obj-$(CONFIG_SOC_IMX6SL) += clk-imx6sl.o mach-imx6sl.o
 
-ifeq ($(CONFIG_PM),y)
 obj-$(CONFIG_SOC_IMX6Q) += pm-imx6q.o headsmp.o
 # i.MX6SL reuses i.MX6Q code
 obj-$(CONFIG_SOC_IMX6SL) += pm-imx6q.o headsmp.o
-endif
 
 # i.MX5 based machines
 obj-$(CONFIG_MACH_MX51_BABBAGE) += mach-mx51_babbage.o
arch/arm/mach-imx/common.h +1 -3
index 24a7899e36a8..ff9f7db09e39 100644
@@ -143,13 +143,11 @@ void imx6q_set_chicken_bit(void);
 void imx_cpu_die(unsigned int cpu);
 int imx_cpu_kill(unsigned int cpu);
 
-#ifdef CONFIG_PM
 void imx6q_pm_init(void);
 void imx6q_pm_set_ccm_base(void __iomem *base);
+#ifdef CONFIG_PM
 void imx5_pm_init(void);
 #else
-static inline void imx6q_pm_init(void) {}
-static inline void imx6q_pm_set_ccm_base(void __iomem *base) {}
 static inline void imx5_pm_init(void) {}
 #endif
 
arch/arm/mach-omap2/gpmc.c +2 -2
index d24926e6340f..ab43755364f5 100644
@@ -1339,7 +1339,7 @@ static void __maybe_unused gpmc_read_timings_dt(struct device_node *np,
 		of_property_read_bool(np, "gpmc,time-para-granularity");
 }
 
-#ifdef CONFIG_MTD_NAND
+#if IS_ENABLED(CONFIG_MTD_NAND)
 
 static const char * const nand_xfer_types[] = {
 	[NAND_OMAP_PREFETCH_POLLED]		= "prefetch-polled",
@@ -1429,7 +1429,7 @@ static int gpmc_probe_nand_child(struct platform_device *pdev,
 }
 #endif
 
-#ifdef CONFIG_MTD_ONENAND
+#if IS_ENABLED(CONFIG_MTD_ONENAND)
 static int gpmc_probe_onenand_child(struct platform_device *pdev,
 				 struct device_node *child)
 {
arch/arm/mach-tegra/tegra.c +10 -0
index 73368176c6e8..03266695316d 100644
@@ -74,10 +74,20 @@ u32 tegra_uart_config[4] = {
 static void __init tegra_init_cache(void)
 {
 #ifdef CONFIG_CACHE_L2X0
+	static const struct of_device_id pl310_ids[] __initconst = {
+		{ .compatible = "arm,pl310-cache",  },
+		{}
+	};
+
+	struct device_node *np;
 	int ret;
 	void __iomem *p = IO_ADDRESS(TEGRA_ARM_PERIF_BASE) + 0x3000;
 	u32 aux_ctrl, cache_type;
 
+	np = of_find_matching_node(NULL, pl310_ids);
+	if (!np)
+		return;
+
 	cache_type = readl(p + L2X0_CACHE_TYPE);
 	aux_ctrl = (cache_type & 0x700) << (17-8);
 	aux_ctrl |= 0x7C400001;
arch/arm/mm/dma-mapping.c +1 -1
index f61a5707823a..5fe4d72705d8 100644
@@ -1358,7 +1358,7 @@ static void *arm_iommu_alloc_attrs(struct device *dev, size_t size,
 	*handle = DMA_ERROR_CODE;
 	size = PAGE_ALIGN(size);
 
-	if (gfp & GFP_ATOMIC)
+	if (!(gfp & __GFP_WAIT))
 		return __iommu_alloc_atomic(dev, size, handle);
 
 	/*
arch/arm/mm/mm.h +1 -0
index d5a982d15a88..7ea641b7aa7d 100644
@@ -38,6 +38,7 @@ static inline pmd_t *pmd_off_k(unsigned long virt)
 
 struct mem_type {
 	pteval_t prot_pte;
+	pteval_t prot_pte_s2;
 	pmdval_t prot_l1;
 	pmdval_t prot_sect;
 	unsigned int domain;
arch/arm/mm/mmu.c +6 -1
index 580ef2de82d7..911d4336e18d 100644
@@ -231,12 +231,16 @@ __setup("noalign", noalign_setup);
 #endif /* ifdef CONFIG_CPU_CP15 / else */
 
 #define PROT_PTE_DEVICE		L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN
+#define PROT_PTE_S2_DEVICE	PROT_PTE_DEVICE
 #define PROT_SECT_DEVICE	PMD_TYPE_SECT|PMD_SECT_AP_WRITE
 
 static struct mem_type mem_types[] = {
 	[MT_DEVICE] = {		  /* Strongly ordered / ARMv6 shared device */
 		.prot_pte	= PROT_PTE_DEVICE | L_PTE_MT_DEV_SHARED |
 				  L_PTE_SHARED,
+		.prot_pte_s2	= s2_policy(PROT_PTE_S2_DEVICE) |
+				  s2_policy(L_PTE_S2_MT_DEV_SHARED) |
+				  L_PTE_SHARED,
 		.prot_l1	= PMD_TYPE_TABLE,
 		.prot_sect	= PROT_SECT_DEVICE | PMD_SECT_S,
 		.domain		= DOMAIN_IO,
@@ -458,7 +462,8 @@ static void __init build_mem_type_table(void)
 	cp = &cache_policies[cachepolicy];
 	vecs_pgprot = kern_pgprot = user_pgprot = cp->pte;
 	s2_pgprot = cp->pte_s2;
-	hyp_device_pgprot = s2_device_pgprot = mem_types[MT_DEVICE].prot_pte;
+	hyp_device_pgprot = mem_types[MT_DEVICE].prot_pte;
+	s2_device_pgprot = mem_types[MT_DEVICE].prot_pte_s2;
 
 	/*
 	 * ARMv6 and above have extended page tables.
arch/arm/mm/proc-v6.S +2 -1
index 45dc29f85d56..32b3558321c4 100644
@@ -208,7 +208,6 @@ __v6_setup:
 	mcr	p15, 0, r0, c7, c14, 0		@ clean+invalidate D cache
 	mcr	p15, 0, r0, c7, c5, 0		@ invalidate I cache
 	mcr	p15, 0, r0, c7, c15, 0		@ clean+invalidate cache
-	mcr	p15, 0, r0, c7, c10, 4		@ drain write buffer
 #ifdef CONFIG_MMU
 	mcr	p15, 0, r0, c8, c7, 0		@ invalidate I + D TLBs
 	mcr	p15, 0, r0, c2, c0, 2		@ TTB control register
@@ -218,6 +217,8 @@ __v6_setup:
 	ALT_UP(orr	r8, r8, #TTB_FLAGS_UP)
 	mcr	p15, 0, r8, c2, c0, 1		@ load TTB1
 #endif /* CONFIG_MMU */
+	mcr	p15, 0, r0, c7, c10, 4		@ drain write buffer and
+						@ complete invalidations
 	adr	r5, v6_crval
 	ldmia	r5, {r5, r6}
  ARM_BE8(orr	r6, r6, #1 << 25)		@ big-endian page tables
arch/arm/mm/proc-v7.S +1 -1
index bd1781979a39..74f6033e76dd 100644
@@ -351,7 +351,6 @@ __v7_setup:
 
 4:	mov	r10, #0
 	mcr	p15, 0, r10, c7, c5, 0		@ I+BTB cache invalidate
-	dsb
 #ifdef CONFIG_MMU
 	mcr	p15, 0, r10, c8, c7, 0		@ invalidate I + D TLBs
 	v7_ttb_setup r10, r4, r8, r5		@ TTBCR, TTBRx setup
@@ -360,6 +359,7 @@ __v7_setup:
 	mcr	p15, 0, r5, c10, c2, 0		@ write PRRR
 	mcr	p15, 0, r6, c10, c2, 1		@ write NMRR
 #endif
+	dsb					@ Complete invalidations
 #ifndef CONFIG_ARM_THUMBEE
 	mrc	p15, 0, r0, c0, c1, 0		@ read ID_PFR0 for ThumbEE
 	and	r0, r0, #(0xf << 12)		@ ThumbEE enabled field
arch/arm64/kernel/stacktrace.c +5 -1
index d25459ff57fc..048334bb2651 100644
@@ -48,7 +48,11 @@ int unwind_frame(struct stackframe *frame)
 
 	frame->sp = fp + 0x10;
 	frame->fp = *(unsigned long *)(fp);
-	frame->pc = *(unsigned long *)(fp + 8);
+	/*
+	 * -4 here because we care about the PC at time of bl,
+	 * not where the return will go.
+	 */
+	frame->pc = *(unsigned long *)(fp + 8) - 4;
 
 	return 0;
 }
arch/avr32/Makefile +1 -1
index 22fb66590dcd..dba48a5d5bb9 100644
@@ -11,7 +11,7 @@ all: uImage vmlinux.elf
 
 KBUILD_DEFCONFIG	:= atstk1002_defconfig
 
-KBUILD_CFLAGS	+= -pipe -fno-builtin -mno-pic
+KBUILD_CFLAGS	+= -pipe -fno-builtin -mno-pic -D__linux__
 KBUILD_AFLAGS	+= -mrelax -mno-pic
 KBUILD_CFLAGS_MODULE += -mno-relax
 LDFLAGS_vmlinux	+= --relax
arch/avr32/boards/mimc200/fram.c +1 -0
index 9764a1a1073e..c1466a872b9c 100644
@@ -11,6 +11,7 @@
 #define FRAM_VERSION	"1.0"
 
 #include <linux/miscdevice.h>
+#include <linux/module.h>
 #include <linux/proc_fs.h>
 #include <linux/mm.h>
 #include <linux/io.h>
arch/powerpc/include/asm/compat.h +3 -2
index 84fdf6857c31..a613d2c82fd9 100644
@@ -200,10 +200,11 @@ static inline void __user *arch_compat_alloc_user_space(long len)
 
 	/*
 	 * We can't access below the stack pointer in the 32bit ABI and
-	 * can access 288 bytes in the 64bit ABI
+	 * can access 288 bytes in the 64bit big-endian ABI,
+	 * or 512 bytes with the new ELFv2 little-endian ABI.
 	 */
 	if (!is_32bit_task())
-		usp -= 288;
+		usp -= USER_REDZONE_SIZE;
 
 	return (void __user *) (usp - len);
 }
arch/powerpc/include/asm/opal.h +2 -2
index 7bdcf340016c..0394e91557f0 100644
@@ -720,8 +720,8 @@ int64_t opal_pci_next_error(uint64_t phb_id, uint64_t *first_frozen_pe,
 int64_t opal_pci_poll(uint64_t phb_id);
 int64_t opal_return_cpu(void);
 
-int64_t opal_xscom_read(uint32_t gcid, uint32_t pcb_addr, __be64 *val);
-int64_t opal_xscom_write(uint32_t gcid, uint32_t pcb_addr, uint64_t val);
+int64_t opal_xscom_read(uint32_t gcid, uint64_t pcb_addr, __be64 *val);
+int64_t opal_xscom_write(uint32_t gcid, uint64_t pcb_addr, uint64_t val);
 
 int64_t opal_lpc_write(uint32_t chip_id, enum OpalLPCAddressType addr_type,
 		       uint32_t addr, uint32_t data, uint32_t sz);
arch/powerpc/include/asm/ptrace.h +15 -1
index becc08e6a65c..279b80f3bb29 100644
@@ -28,11 +28,23 @@
 
 #ifdef __powerpc64__
 
+/*
+ * Size of redzone that userspace is allowed to use below the stack
+ * pointer.  This is 288 in the 64-bit big-endian ELF ABI, and 512 in
+ * the new ELFv2 little-endian ABI, so we allow the larger amount.
+ *
+ * For kernel code we allow a 288-byte redzone, in order to conserve
+ * kernel stack space; gcc currently only uses 288 bytes, and will
+ * hopefully allow explicit control of the redzone size in future.
+ */
+#define USER_REDZONE_SIZE	512
+#define KERNEL_REDZONE_SIZE	288
+
 #define STACK_FRAME_OVERHEAD	112	/* size of minimum stack frame */
 #define STACK_FRAME_LR_SAVE	2	/* Location of LR in stack frame */
 #define STACK_FRAME_REGS_MARKER	ASM_CONST(0x7265677368657265)
 #define STACK_INT_FRAME_SIZE	(sizeof(struct pt_regs) + \
-					STACK_FRAME_OVERHEAD + 288)
+				 STACK_FRAME_OVERHEAD + KERNEL_REDZONE_SIZE)
 #define STACK_FRAME_MARKER	12
 
 /* Size of dummy stack frame allocated when calling signal handler. */
@@ -41,6 +53,8 @@
 
 #else /* __powerpc64__ */
 
+#define USER_REDZONE_SIZE	0
+#define KERNEL_REDZONE_SIZE	0
 #define STACK_FRAME_OVERHEAD	16	/* size of minimum stack frame */
 #define STACK_FRAME_LR_SAVE	1	/* Location of LR in stack frame */
 #define STACK_FRAME_REGS_MARKER	ASM_CONST(0x72656773)
arch/powerpc/kernel/crash_dump.c +5 -3
index 11c1d069d920..7a13f378ca2c 100644
@@ -98,17 +98,19 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
 			size_t csize, unsigned long offset, int userbuf)
 {
 	void  *vaddr;
+	phys_addr_t paddr;
 
 	if (!csize)
 		return 0;
 
 	csize = min_t(size_t, csize, PAGE_SIZE);
+	paddr = pfn << PAGE_SHIFT;
 
-	if ((min_low_pfn < pfn) && (pfn < max_pfn)) {
-		vaddr = __va(pfn << PAGE_SHIFT);
+	if (memblock_is_region_memory(paddr, csize)) {
+		vaddr = __va(paddr);
 		csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf);
 	} else {
-		vaddr = __ioremap(pfn << PAGE_SHIFT, PAGE_SIZE, 0);
+		vaddr = __ioremap(paddr, PAGE_SIZE, 0);
 		csize = copy_oldmem_vaddr(vaddr, buf, csize, offset, userbuf);
 		iounmap(vaddr);
 	}
arch/powerpc/kernel/misc_32.S +4 -1
index e47d268727a4..7025c30a139a 100644
@@ -57,11 +57,14 @@ _GLOBAL(call_do_softirq)
 	mtlr	r0
 	blr
 
+/*
+ * void call_do_irq(struct pt_regs *regs, struct thread_info *irqtp);
+ */
 _GLOBAL(call_do_irq)
 	mflr	r0
 	stw	r0,4(r1)
 	lwz	r10,THREAD+KSP_LIMIT(r2)
-	addi	r11,r3,THREAD_INFO_GAP
+	addi	r11,r4,THREAD_INFO_GAP
 	stwu	r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r4)
 	mr	r1,r4
 	stw	r10,8(r1)
arch/powerpc/kernel/signal_64.c +2 -2
index 42991045349f..448245f410b5 100644
@@ -65,8 +65,8 @@ struct rt_sigframe {
 	struct siginfo __user *pinfo;
 	void __user *puc;
 	struct siginfo info;
-	/* 64 bit ABI allows for 288 bytes below sp before decrementing it. */
-	char abigap[288];
+	/* New 64 bit little-endian ABI allows redzone of 512 bytes below sp */
+	char abigap[USER_REDZONE_SIZE];
 } __attribute__ ((aligned (16)));
 
 static const char fmt32[] = KERN_INFO \
arch/powerpc/platforms/powernv/eeh-ioda.c +4 -25
index d7ddcee7feb8..9fd23ce4a04a 100644
@@ -490,8 +490,7 @@ static int ioda_eeh_bridge_reset(struct pci_controller *hose,
 static int ioda_eeh_reset(struct eeh_pe *pe, int option)
 {
 	struct pci_controller *hose = pe->phb;
-	struct eeh_dev *edev;
-	struct pci_dev *dev;
+	struct pci_bus *bus;
 	int ret;
 
 	/*
@@ -520,31 +519,11 @@ static int ioda_eeh_reset(struct eeh_pe *pe, int option)
 	if (pe->type & EEH_PE_PHB) {
 		ret = ioda_eeh_phb_reset(hose, option);
 	} else {
-		if (pe->type & EEH_PE_DEVICE) {
-			/*
-			 * If it's device PE, we didn't refer to the parent
-			 * PCI bus yet. So we have to figure it out indirectly.
-			 */
-			edev = list_first_entry(&pe->edevs,
-					struct eeh_dev, list);
-			dev = eeh_dev_to_pci_dev(edev);
-			dev = dev->bus->self;
-		} else {
-			/*
-			 * If it's bus PE, the parent PCI bus is already there
-			 * and just pick it up.
-			 */
-			dev = pe->bus->self;
-		}
-
-		/*
-		 * Do reset based on the fact that the direct upstream bridge
-		 * is root bridge (port) or not.
-		 */
-		if (dev->bus->number == 0)
+		bus = eeh_pe_bus_get(pe);
+		if (pci_is_root_bus(bus))
 			ret = ioda_eeh_root_reset(hose, option);
 		else
-			ret = ioda_eeh_bridge_reset(hose, dev, option);
+			ret = ioda_eeh_bridge_reset(hose, bus->self, option);
 	}
 
 	return ret;
arch/powerpc/platforms/powernv/opal-xscom.c +12 -9
index 4fbf276ac99e..4cd2ea6c0dbe 100644
@@ -71,11 +71,11 @@ static int opal_xscom_err_xlate(int64_t rc)
 	}
 }
 
-static u64 opal_scom_unmangle(u64 reg)
+static u64 opal_scom_unmangle(u64 addr)
 {
 	/*
 	 * XSCOM indirect addresses have the top bit set. Additionally
-	 * the reset of the top 3 nibbles is always 0.
+	 * the rest of the top 3 nibbles is always 0.
 	 *
 	 * Because the debugfs interface uses signed offsets and shifts
 	 * the address left by 3, we basically cannot use the top 4 bits
@@ -86,10 +86,13 @@ static u64 opal_scom_unmangle(u64 reg)
 	 * conversion here. To leave room for further xscom address
 	 * expansion, we only clear out the top byte
 	 *
+	 * For in-kernel use, we also support the real indirect bit, so
+	 * we test for any of the top 5 bits
+	 *
 	 */
-	if (reg & (1ull << 59))
-		reg = (reg & ~(0xffull << 56)) | (1ull << 63);
-	return reg;
+	if (addr & (0x1full << 59))
+		addr = (addr & ~(0xffull << 56)) | (1ull << 63);
+	return addr;
 }
 
 static int opal_scom_read(scom_map_t map, u64 reg, u64 *value)
@@ -98,8 +101,8 @@ static int opal_scom_read(scom_map_t map, u64 reg, u64 *value)
 	int64_t rc;
 	__be64 v;
 
-	reg = opal_scom_unmangle(reg);
-	rc = opal_xscom_read(m->chip, m->addr + reg, (__be64 *)__pa(&v));
+	reg = opal_scom_unmangle(m->addr + reg);
+	rc = opal_xscom_read(m->chip, reg, (__be64 *)__pa(&v));
 	*value = be64_to_cpu(v);
 	return opal_xscom_err_xlate(rc);
 }
@@ -109,8 +112,8 @@ static int opal_scom_write(scom_map_t map, u64 reg, u64 value)
 	struct opal_scom_map *m = map;
 	int64_t rc;
 
-	reg = opal_scom_unmangle(reg);
-	rc = opal_xscom_write(m->chip, m->addr + reg, value);
+	reg = opal_scom_unmangle(m->addr + reg);
+	rc = opal_xscom_write(m->chip, reg, value);
 	return opal_xscom_err_xlate(rc);
 }
 
arch/powerpc/platforms/pseries/hotplug-cpu.c +11 -11
index 82789e79e539..0ea99e3d4815 100644
@@ -35,12 +35,7 @@
 #include "offline_states.h"
 
 /* This version can't take the spinlock, because it never returns */
-static struct rtas_args rtas_stop_self_args = {
-	.token = RTAS_UNKNOWN_SERVICE,
-	.nargs = 0,
-	.nret = 1,
-	.rets = &rtas_stop_self_args.args[0],
-};
+static int rtas_stop_self_token = RTAS_UNKNOWN_SERVICE;
 
 static DEFINE_PER_CPU(enum cpu_state_vals, preferred_offline_state) =
 							CPU_STATE_OFFLINE;
@@ -93,15 +88,20 @@ void set_default_offline_state(int cpu)
 
 static void rtas_stop_self(void)
 {
-	struct rtas_args *args = &rtas_stop_self_args;
+	struct rtas_args args = {
+		.token = cpu_to_be32(rtas_stop_self_token),
+		.nargs = 0,
+		.nret = 1,
+		.rets = &args.args[0],
+	};
 
 	local_irq_disable();
 
-	BUG_ON(args->token == RTAS_UNKNOWN_SERVICE);
+	BUG_ON(rtas_stop_self_token == RTAS_UNKNOWN_SERVICE);
 
 	printk("cpu %u (hwid %u) Ready to die...\n",
 	       smp_processor_id(), hard_smp_processor_id());
-	enter_rtas(__pa(args));
+	enter_rtas(__pa(&args));
 
 	panic("Alas, I survived.\n");
 }
@@ -392,10 +392,10 @@ static int __init pseries_cpu_hotplug_init(void)
 		}
 	}
 
-	rtas_stop_self_args.token = rtas_token("stop-self");
+	rtas_stop_self_token = rtas_token("stop-self");
 	qcss_tok = rtas_token("query-cpu-stopped-state");
 
-	if (rtas_stop_self_args.token == RTAS_UNKNOWN_SERVICE ||
+	if (rtas_stop_self_token == RTAS_UNKNOWN_SERVICE ||
 			qcss_tok == RTAS_UNKNOWN_SERVICE) {
 		printk(KERN_INFO "CPU Hotplug not supported by firmware "
 				"- disabling.\n");
arch/x86/kernel/cpu/perf_event.c +3 -0
index 8e132931614d..db6cdbe047b5 100644
@@ -1192,6 +1192,9 @@ static void x86_pmu_del(struct perf_event *event, int flags)
 	for (i = 0; i < cpuc->n_events; i++) {
 		if (event == cpuc->event_list[i]) {
 
+			if (i >= cpuc->n_events - cpuc->n_added)
+				--cpuc->n_added;
+
 			if (x86_pmu.put_event_constraints)
 				x86_pmu.put_event_constraints(cpuc, event);
 
arch/x86/kernel/pci-dma.c +3 -1
index 872079a67e4d..f7d0672481fd 100644
@@ -100,8 +100,10 @@ void *dma_generic_alloc_coherent(struct device *dev, size_t size,
 	flag |= __GFP_ZERO;
 again:
 	page = NULL;
-	if (!(flag & GFP_ATOMIC))
+	/* CMA can be used only in the context which permits sleeping */
+	if (flag & __GFP_WAIT)
 		page = dma_alloc_from_contiguous(dev, count, get_order(size));
+	/* fallback */
 	if (!page)
 		page = alloc_pages_node(dev_to_node(dev), flag, get_order(size));
 	if (!page)
arch/x86/kvm/vmx.c +1 -1
index da7837e1349d..dcc4de3ee57a 100644
@@ -6644,7 +6644,7 @@ static bool nested_vmx_exit_handled(struct kvm_vcpu *vcpu)
 		else if (is_page_fault(intr_info))
 			return enable_ept;
 		else if (is_no_device(intr_info) &&
-			 !(nested_read_cr0(vmcs12) & X86_CR0_TS))
+			 !(vmcs12->guest_cr0 & X86_CR0_TS))
 			return 0;
 		return vmcs12->exception_bitmap &
 				(1u << (intr_info & INTR_INFO_VECTOR_MASK));
arch/x86/kvm/x86.c +1 -1
index d89d51b3abf6..4e33b8508252 100644
@@ -6163,7 +6163,7 @@ static int complete_emulated_mmio(struct kvm_vcpu *vcpu)
 		frag->len -= len;
 	}
 
-	if (vcpu->mmio_cur_fragment == vcpu->mmio_nr_fragments) {
+	if (vcpu->mmio_cur_fragment >= vcpu->mmio_nr_fragments) {
 		vcpu->mmio_needed = 0;
 
 		/* FIXME: return into emulator if single-stepping.  */
arch/xtensa/include/asm/traps.h +28 -16

53 lines not on this page · raw message

arch/xtensa/kernel/entry.S +60 -12

123 lines not on this page · raw message

drivers/acpi/pci_irq.c +1 -0
index 41c5e1b799ef..f658e0948703 100644
@@ -432,6 +432,7 @@ int acpi_pci_irq_enable(struct pci_dev *dev)
 				 pin_name(pin));
 		}
 
+		kfree(entry);
 		return 0;
 	}
 
drivers/acpi/processor_throttling.c +32 -37

136 lines not on this page · raw message

drivers/acpi/video.c +7 -1
index 995e91bcb97b..7fe3aee5389a 100644
@@ -686,6 +686,7 @@ acpi_video_init_brightness(struct acpi_video_device *device)
 	union acpi_object *o;
 	struct acpi_video_device_brightness *br = NULL;
 	int result = -EINVAL;
+	u32 value;
 
 	if (!ACPI_SUCCESS(acpi_video_device_lcd_query_levels(device, &obj))) {
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Could not query available "
@@ -716,7 +717,12 @@ acpi_video_init_brightness(struct acpi_video_device *device)
 			printk(KERN_ERR PREFIX "Invalid data\n");
 			continue;
 		}
-		br->levels[count] = (u32) o->integer.value;
+		value = (u32) o->integer.value;
+		/* Skip duplicate entries */
+		if (count > 2 && br->levels[count - 1] == value)
+			continue;
+
+		br->levels[count] = value;
 
 		if (br->levels[count] > max_level)
 			max_level = br->levels[count];
drivers/ata/ahci.c +14 -0
index e3a92a6da39a..2ecf42ff1051 100644
@@ -61,6 +61,7 @@ enum board_ids {
 	/* board IDs by feature in alphabetical order */
 	board_ahci,
 	board_ahci_ign_iferr,
+	board_ahci_noncq,
 	board_ahci_nosntf,
 	board_ahci_yes_fbs,
 
@@ -119,6 +120,13 @@ static const struct ata_port_info ahci_port_info[] = {
 		.udma_mask	= ATA_UDMA6,
 		.port_ops	= &ahci_ops,
 	},
+	[board_ahci_noncq] = {
+		AHCI_HFLAGS	(AHCI_HFLAG_NO_NCQ),
+		.flags		= AHCI_FLAG_COMMON,
+		.pio_mask	= ATA_PIO4,
+		.udma_mask	= ATA_UDMA6,
+		.port_ops	= &ahci_ops,
+	},
 	[board_ahci_nosntf] = {
 		AHCI_HFLAGS	(AHCI_HFLAG_NO_SNTF),
 		.flags		= AHCI_FLAG_COMMON,
@@ -450,6 +458,12 @@ static const struct pci_device_id ahci_pci_tbl[] = {
 	{ PCI_VDEVICE(ASMEDIA, 0x0611), board_ahci },	/* ASM1061 */
 	{ PCI_VDEVICE(ASMEDIA, 0x0612), board_ahci },	/* ASM1062 */
 
+	/*
+	 * Samsung SSDs found on some macbooks.  NCQ times out.
+	 * https://bugzilla.kernel.org/show_bug.cgi?id=60731
+	 */
+	{ PCI_VDEVICE(SAMSUNG, 0x1600), board_ahci_noncq },
+
 	/* Enmotus */
 	{ PCI_DEVICE(0x1c44, 0x8000), board_ahci },
 
drivers/ata/libata-pmp.c +5 -2
index 20fd337a5731..7ccc084bf1df 100644
@@ -447,8 +447,11 @@ static void sata_pmp_quirks(struct ata_port *ap)
 		 * otherwise.  Don't try hard to recover it.
 		 */
 		ap->pmp_link[ap->nr_pmp_links - 1].flags |= ATA_LFLAG_NO_RETRY;
-	} else if (vendor == 0x197b && devid == 0x2352) {
-		/* chip found in Thermaltake BlackX Duet, jmicron JMB350? */
+	} else if (vendor == 0x197b && (devid == 0x2352 || devid == 0x0325)) {
+		/*
+		 * 0x2352: found in Thermaltake BlackX Duet, jmicron JMB350?
+		 * 0x0325: jmicron JMB394.
+		 */
 		ata_for_each_link(link, ap, EDGE) {
 			/* SRST breaks detection and disks get misclassified
 			 * LPM disabled to avoid potential problems
drivers/ata/sata_sil.c +1 -0
index d67fc351343c..b7695e804635 100644
@@ -157,6 +157,7 @@ static const struct sil_drivelist {
 	{ "ST380011ASL",	SIL_QUIRK_MOD15WRITE },
 	{ "ST3120022ASL",	SIL_QUIRK_MOD15WRITE },
 	{ "ST3160021ASL",	SIL_QUIRK_MOD15WRITE },
+	{ "TOSHIBA MK2561GSYN",	SIL_QUIRK_MOD15WRITE },
 	{ "Maxtor 4D060H3",	SIL_QUIRK_UDMA5MAX },
 	{ }
 };
drivers/base/firmware_class.c +1 -0
index eb8fb94ae2c5..e2b51f872b97 100644
@@ -1541,6 +1541,7 @@ static int fw_pm_notify(struct notifier_block *notify_block,
 	switch (mode) {
 	case PM_HIBERNATION_PREPARE:
 	case PM_SUSPEND_PREPARE:
+	case PM_RESTORE_PREPARE:
 		kill_requests_without_uevent();
 		device_cache_fw_images();
 		break;
drivers/cpufreq/intel_pstate.c +1 -1
index d51f17ed691e..aa366ece2d4b 100644
@@ -348,7 +348,7 @@ static int byt_get_min_pstate(void)
 {
 	u64 value;
 	rdmsrl(BYT_RATIOS, value);
-	return value & 0xFF;
+	return (value >> 8) & 0xFF;
 }
 
 static int byt_get_max_pstate(void)
drivers/cpufreq/powernow-k8.c +7 -3
index 0023c7d40a51..88c4360b8e5b 100644
@@ -1081,7 +1081,7 @@ static int powernowk8_cpu_init(struct cpufreq_policy *pol)
 {
 	struct powernow_k8_data *data;
 	struct init_on_cpu init_on_cpu;
-	int rc;
+	int rc, cpu;
 
 	smp_call_function_single(pol->cpu, check_supported_cpu, &rc, 1);
 	if (rc)
@@ -1145,7 +1145,9 @@ static int powernowk8_cpu_init(struct cpufreq_policy *pol)
 	pr_debug("cpu_init done, current fid 0x%x, vid 0x%x\n",
 		 data->currfid, data->currvid);
 
-	per_cpu(powernow_data, pol->cpu) = data;
+	/* Point all the CPUs in this policy to the same data */
+	for_each_cpu(cpu, pol->cpus)
+		per_cpu(powernow_data, cpu) = data;
 
 	return 0;
 
@@ -1160,6 +1162,7 @@ err_out:
 static int powernowk8_cpu_exit(struct cpufreq_policy *pol)
 {
 	struct powernow_k8_data *data = per_cpu(powernow_data, pol->cpu);
+	int cpu;
 
 	if (!data)
 		return -EINVAL;
@@ -1170,7 +1173,8 @@ static int powernowk8_cpu_exit(struct cpufreq_policy *pol)
 
 	kfree(data->powernow_table);
 	kfree(data);
-	per_cpu(powernow_data, pol->cpu) = NULL;
+	for_each_cpu(cpu, pol->cpus)
+		per_cpu(powernow_data, cpu) = NULL;
 
 	return 0;
 }
drivers/dma/ioat/dma.c +45 -7

96 lines not on this page · raw message

drivers/dma/ioat/dma.h +1 -0
index 11fb877ddca9..e982f00a9843 100644
@@ -356,6 +356,7 @@ bool ioat_cleanup_preamble(struct ioat_chan_common *chan,
 void ioat_kobject_add(struct ioatdma_device *device, struct kobj_type *type);
 void ioat_kobject_del(struct ioatdma_device *device);
 int ioat_dma_setup_interrupts(struct ioatdma_device *device);
+void ioat_stop(struct ioat_chan_common *chan);
 extern const struct sysfs_ops ioat_sysfs_ops;
 extern struct ioat_sysfs_entry ioat_version_attr;
 extern struct ioat_sysfs_entry ioat_cap_attr;
drivers/dma/ioat/dma_v2.c +5 -6
index 5d3affe7e976..8d1058085eeb 100644
@@ -190,8 +190,11 @@ static void ioat2_cleanup(struct ioat2_dma_chan *ioat)
 void ioat2_cleanup_event(unsigned long data)
 {
 	struct ioat2_dma_chan *ioat = to_ioat2_chan((void *) data);
+	struct ioat_chan_common *chan = &ioat->base;
 
 	ioat2_cleanup(ioat);
+	if (!test_bit(IOAT_RUN, &chan->state))
+		return;
 	writew(IOAT_CHANCTRL_RUN, ioat->base.reg_base + IOAT_CHANCTRL_OFFSET);
 }
 
@@ -553,10 +556,10 @@ int ioat2_alloc_chan_resources(struct dma_chan *c)
 	ioat->issued = 0;
 	ioat->tail = 0;
 	ioat->alloc_order = order;
+	set_bit(IOAT_RUN, &chan->state);
 	spin_unlock_bh(&ioat->prep_lock);
 	spin_unlock_bh(&chan->cleanup_lock);
 
-	tasklet_enable(&chan->cleanup_task);
 	ioat2_start_null_desc(ioat);
 
 	/* check that we got off the ground */
@@ -566,7 +569,6 @@ int ioat2_alloc_chan_resources(struct dma_chan *c)
 	} while (i++ < 20 && !is_ioat_active(status) && !is_ioat_idle(status));
 
 	if (is_ioat_active(status) || is_ioat_idle(status)) {
-		set_bit(IOAT_RUN, &chan->state);
 		return 1 << ioat->alloc_order;
 	} else {
 		u32 chanerr = readl(chan->reg_base + IOAT_CHANERR_OFFSET);
@@ -809,11 +811,8 @@ void ioat2_free_chan_resources(struct dma_chan *c)
 	if (!ioat->ring)
 		return;
 
-	tasklet_disable(&chan->cleanup_task);
-	del_timer_sync(&chan->timer);
-	device->cleanup_fn((unsigned long) c);
+	ioat_stop(chan);
 	device->reset_hw(chan);
-	clear_bit(IOAT_RUN, &chan->state);
 
 	spin_lock_bh(&chan->cleanup_lock);
 	spin_lock_bh(&ioat->prep_lock);
drivers/dma/ioat/dma_v3.c +3 -0
index 820817e97e62..b9b38a1cf92f 100644
@@ -464,8 +464,11 @@ static void ioat3_cleanup(struct ioat2_dma_chan *ioat)
 static void ioat3_cleanup_event(unsigned long data)
 {
 	struct ioat2_dma_chan *ioat = to_ioat2_chan((void *) data);
+	struct ioat_chan_common *chan = &ioat->base;
 
 	ioat3_cleanup(ioat);
+	if (!test_bit(IOAT_RUN, &chan->state))
+		return;
 	writew(IOAT_CHANCTRL_RUN, ioat->base.reg_base + IOAT_CHANCTRL_OFFSET);
 }
 
drivers/dma/ste_dma40.c +3 -1
index b8c031b7de4e..b940340bddf3 100644
@@ -1641,6 +1641,7 @@ static void dma_tasklet(unsigned long data)
 	struct d40_chan *d40c = (struct d40_chan *) data;
 	struct d40_desc *d40d;
 	unsigned long flags;
+	bool callback_active;
 	dma_async_tx_callback callback;
 	void *callback_param;
 
@@ -1668,6 +1669,7 @@ static void dma_tasklet(unsigned long data)
 	}
 
 	/* Callback to client */
+	callback_active = !!(d40d->txd.flags & DMA_PREP_INTERRUPT);
 	callback = d40d->txd.callback;
 	callback_param = d40d->txd.callback_param;
 
@@ -1690,7 +1692,7 @@ static void dma_tasklet(unsigned long data)
 
 	spin_unlock_irqrestore(&d40c->lock, flags);
 
-	if (callback && (d40d->txd.flags & DMA_PREP_INTERRUPT))
+	if (callback_active && callback)
 		callback(callback_param);
 
 	return;
drivers/edac/i7300_edac.c +20 -18
index 9004c64b169e..841eee387478 100644
@@ -943,33 +943,35 @@ static int i7300_get_devices(struct mem_ctl_info *mci)
 
 	/* Attempt to 'get' the MCH register we want */
 	pdev = NULL;
-	while (!pvt->pci_dev_16_1_fsb_addr_map ||
-	       !pvt->pci_dev_16_2_fsb_err_regs) {
-		pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
-				      PCI_DEVICE_ID_INTEL_I7300_MCH_ERR, pdev);
-		if (!pdev) {
-			/* End of list, leave */
-			i7300_printk(KERN_ERR,
-				"'system address,Process Bus' "
-				"device not found:"
-				"vendor 0x%x device 0x%x ERR funcs "
-				"(broken BIOS?)\n",
-				PCI_VENDOR_ID_INTEL,
-				PCI_DEVICE_ID_INTEL_I7300_MCH_ERR);
-			goto error;
-		}
-
+	while ((pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
+				      PCI_DEVICE_ID_INTEL_I7300_MCH_ERR,
+				      pdev))) {
 		/* Store device 16 funcs 1 and 2 */
 		switch (PCI_FUNC(pdev->devfn)) {
 		case 1:
-			pvt->pci_dev_16_1_fsb_addr_map = pdev;
+			if (!pvt->pci_dev_16_1_fsb_addr_map)
+				pvt->pci_dev_16_1_fsb_addr_map =
+							pci_dev_get(pdev);
 			break;
 		case 2:
-			pvt->pci_dev_16_2_fsb_err_regs = pdev;
+			if (!pvt->pci_dev_16_2_fsb_err_regs)
+				pvt->pci_dev_16_2_fsb_err_regs =
+							pci_dev_get(pdev);
 			break;
 		}
 	}
 
+	if (!pvt->pci_dev_16_1_fsb_addr_map ||
+	    !pvt->pci_dev_16_2_fsb_err_regs) {
+		/* At least one device was not found */
+		i7300_printk(KERN_ERR,
+			"'system address,Process Bus' device not found:"
+			"vendor 0x%x device 0x%x ERR funcs (broken BIOS?)\n",
+			PCI_VENDOR_ID_INTEL,
+			PCI_DEVICE_ID_INTEL_I7300_MCH_ERR);
+		goto error;
+	}
+
 	edac_dbg(1, "System Address, processor bus- PCI Bus ID: %s  %x:%x\n",
 		 pci_name(pvt->pci_dev_16_0_fsb_ctlr),
 		 pvt->pci_dev_16_0_fsb_ctlr->vendor,
drivers/edac/i7core_edac.c +7 -2
index 80a963d64e58..c67fb4d707d3 100644
@@ -1334,14 +1334,19 @@ static int i7core_get_onedevice(struct pci_dev **prev,
 	 * is at addr 8086:2c40, instead of 8086:2c41. So, we need
 	 * to probe for the alternate address in case of failure
 	 */
-	if (dev_descr->dev_id == PCI_DEVICE_ID_INTEL_I7_NONCORE && !pdev)
+	if (dev_descr->dev_id == PCI_DEVICE_ID_INTEL_I7_NONCORE && !pdev) {
+		pci_dev_get(*prev);	/* pci_get_device will put it */
 		pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
 				      PCI_DEVICE_ID_INTEL_I7_NONCORE_ALT, *prev);
+	}
 
-	if (dev_descr->dev_id == PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE && !pdev)
+	if (dev_descr->dev_id == PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE &&
+	    !pdev) {
+		pci_dev_get(*prev);	/* pci_get_device will put it */
 		pdev = pci_get_device(PCI_VENDOR_ID_INTEL,
 				      PCI_DEVICE_ID_INTEL_LYNNFIELD_NONCORE_ALT,
 				      *prev);
+	}
 
 	if (!pdev) {
 		if (*prev) {
drivers/gpu/drm/i915/intel_display.c +14 -0
index 2bde35d34eb9..3c5ff7aa0b08 100644
@@ -8335,6 +8335,20 @@ static int intel_gen7_queue_flip(struct drm_device *dev,
 	if (ring->id == RCS)
 		len += 6;
 
+	/*
+	 * BSpec MI_DISPLAY_FLIP for IVB:
+	 * "The full packet must be contained within the same cache line."
+	 *
+	 * Currently the LRI+SRM+MI_DISPLAY_FLIP all fit within the same
+	 * cacheline, if we ever start emitting more commands before
+	 * the MI_DISPLAY_FLIP we may need to first emit everything else,
+	 * then do the cacheline alignment, and finally emit the
+	 * MI_DISPLAY_FLIP.
+	 */
+	ret = intel_ring_cacheline_align(ring);
+	if (ret)
+		goto err_unpin;
+
 	ret = intel_ring_begin(ring, len);
 	if (ret)
 		goto err_unpin;
drivers/gpu/drm/i915/intel_dp.c +13 -6
index 2e38546aed15..3e1b348de244 100644
@@ -537,6 +537,7 @@ intel_dp_aux_native_write(struct intel_dp *intel_dp,
 	uint8_t	msg[20];
 	int msg_bytes;
 	uint8_t	ack;
+	int retry;
 
 	if (WARN_ON(send_bytes > 16))
 		return -E2BIG;
@@ -548,18 +549,20 @@ intel_dp_aux_native_write(struct intel_dp *intel_dp,
 	msg[3] = send_bytes - 1;
 	memcpy(&msg[4], send, send_bytes);
 	msg_bytes = send_bytes + 4;
-	for (;;) {
+	for (retry = 0; retry < 7; retry++) {
 		ret = intel_dp_aux_ch(intel_dp, msg, msg_bytes, &ack, 1);
 		if (ret < 0)
 			return ret;
 		if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_ACK)
-			break;
+			return send_bytes;
 		else if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_DEFER)
-			udelay(100);
+			usleep_range(400, 500);
 		else
 			return -EIO;
 	}
-	return send_bytes;
+
+	DRM_ERROR("too many retries, giving up\n");
+	return -EIO;
 }
 
 /* Write a single byte to the aux channel in native mode */
@@ -581,6 +584,7 @@ intel_dp_aux_native_read(struct intel_dp *intel_dp,
 	int reply_bytes;
 	uint8_t ack;
 	int ret;
+	int retry;
 
 	if (WARN_ON(recv_bytes > 19))
 		return -E2BIG;
@@ -594,7 +598,7 @@ intel_dp_aux_native_read(struct intel_dp *intel_dp,
 	msg_bytes = 4;
 	reply_bytes = recv_bytes + 1;
 
-	for (;;) {
+	for (retry = 0; retry < 7; retry++) {
 		ret = intel_dp_aux_ch(intel_dp, msg, msg_bytes,
 				      reply, reply_bytes);
 		if (ret == 0)
@@ -607,10 +611,13 @@ intel_dp_aux_native_read(struct intel_dp *intel_dp,
 			return ret - 1;
 		}
 		else if ((ack & AUX_NATIVE_REPLY_MASK) == AUX_NATIVE_REPLY_DEFER)
-			udelay(100);
+			usleep_range(400, 500);
 		else
 			return -EIO;
 	}
+
+	DRM_ERROR("too many retries, giving up\n");
+	return -EIO;
 }
 
 static int
drivers/gpu/drm/i915/intel_ringbuffer.c +21 -0
index c7f33971a35b..53f545823217 100644
@@ -1655,6 +1655,27 @@ int intel_ring_begin(struct intel_ring_buffer *ring,
 	return 0;
 }
 
+/* Align the ring tail to a cacheline boundary */
+int intel_ring_cacheline_align(struct intel_ring_buffer *ring)
+{
+	int num_dwords = (64 - (ring->tail & 63)) / sizeof(uint32_t);
+	int ret;
+
+	if (num_dwords == 0)
+		return 0;
+
+	ret = intel_ring_begin(ring, num_dwords);
+	if (ret)
+		return ret;
+
+	while (num_dwords--)
+		intel_ring_emit(ring, MI_NOOP);
+
+	intel_ring_advance(ring);
+
+	return 0;
+}
+
 void intel_ring_init_seqno(struct intel_ring_buffer *ring, u32 seqno)
 {
 	struct drm_i915_private *dev_priv = ring->dev->dev_private;
drivers/gpu/drm/i915/intel_ringbuffer.h +1 -0
index 71a73f4fe252..0b243ce33714 100644
@@ -233,6 +233,7 @@ intel_write_status_page(struct intel_ring_buffer *ring,
 void intel_cleanup_ring_buffer(struct intel_ring_buffer *ring);
 
 int __must_check intel_ring_begin(struct intel_ring_buffer *ring, int n);
+int __must_check intel_ring_cacheline_align(struct intel_ring_buffer *ring);
 static inline void intel_ring_emit(struct intel_ring_buffer *ring,
 				   u32 data)
 {
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c +1 -1
index c168ae3eaa97..355e9fdedc5f 100644
@@ -1112,7 +1112,7 @@ nv50_disp_intr_unk20_2(struct nv50_disp_priv *priv, int head)
 	if (conf != ~0) {
 		if (outp.location == 0 && outp.type == DCB_OUTPUT_DP) {
 			u32 soff = (ffs(outp.or) - 1) * 0x08;
-			u32 ctrl = nv_rd32(priv, 0x610798 + soff);
+			u32 ctrl = nv_rd32(priv, 0x610794 + soff);
 			u32 datarate;
 
 			switch ((ctrl & 0x000f0000) >> 16) {
drivers/gpu/drm/nouveau/core/subdev/fb/nv1a.c +1 -1
index 9159a5ccee93..265d1253624a 100644
@@ -36,7 +36,7 @@ nv1a_fb_oclass = &(struct nv04_fb_impl) {
 		.fini = _nouveau_fb_fini,
 	},
 	.base.memtype = nv04_fb_memtype_valid,
-	.base.ram = &nv10_ram_oclass,
+	.base.ram = &nv1a_ram_oclass,
 	.tile.regions = 8,
 	.tile.init = nv10_fb_tile_init,
 	.tile.fini = nv10_fb_tile_fini,
drivers/gpu/drm/nouveau/nouveau_drm.c +3 -0
index 98a22e6e27a1..743103317470 100644
@@ -376,6 +376,8 @@ nouveau_drm_load(struct drm_device *dev, unsigned long flags)
 	if (ret)
 		goto fail_device;
 
+	dev->irq_enabled = true;
+
 	/* workaround an odd issue on nvc1 by disabling the device's
 	 * nosnoop capability.  hopefully won't cause issues until a
 	 * better fix is found - assuming there is one...
@@ -475,6 +477,7 @@ nouveau_drm_remove(struct pci_dev *pdev)
 	struct nouveau_drm *drm = nouveau_drm(dev);
 	struct nouveau_object *device;
 
+	dev->irq_enabled = false;
 	device = drm->client.base.device;
 	drm_put_dev(dev);
 
drivers/gpu/drm/radeon/atombios_crtc.c +22 -7
index 358d14a9ed30..153aa4922f73 100644
@@ -1169,7 +1169,7 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc,
 		evergreen_tiling_fields(tiling_flags, &bankw, &bankh, &mtaspect, &tile_split);
 
 		/* Set NUM_BANKS. */
-		if (rdev->family >= CHIP_BONAIRE) {
+		if (rdev->family >= CHIP_TAHITI) {
 			unsigned tileb, index, num_banks, tile_split_bytes;
 
 			/* Calculate the macrotile mode index. */
@@ -1187,13 +1187,14 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc,
 				return -EINVAL;
 			}
 
-			num_banks = (rdev->config.cik.macrotile_mode_array[index] >> 6) & 0x3;
+			if (rdev->family >= CHIP_BONAIRE)
+				num_banks = (rdev->config.cik.macrotile_mode_array[index] >> 6) & 0x3;
+			else
+				num_banks = (rdev->config.si.tile_mode_array[index] >> 20) & 0x3;
 			fb_format |= EVERGREEN_GRPH_NUM_BANKS(num_banks);
 		} else {
-			/* SI and older. */
-			if (rdev->family >= CHIP_TAHITI)
-				tmp = rdev->config.si.tile_config;
-			else if (rdev->family >= CHIP_CAYMAN)
+			/* NI and older. */
+			if (rdev->family >= CHIP_CAYMAN)
 				tmp = rdev->config.cayman.tile_config;
 			else
 				tmp = rdev->config.evergreen.tile_config;
@@ -1766,6 +1767,20 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc)
 			return ATOM_PPLL1;
 		DRM_ERROR("unable to allocate a PPLL\n");
 		return ATOM_PPLL_INVALID;
+	} else if (ASIC_IS_DCE41(rdev)) {
+		/* Don't share PLLs on DCE4.1 chips */
+		if (ENCODER_MODE_IS_DP(atombios_get_encoder_mode(radeon_crtc->encoder))) {
+			if (rdev->clock.dp_extclk)
+				/* skip PPLL programming if using ext clock */
+				return ATOM_PPLL_INVALID;
+		}
+		pll_in_use = radeon_get_pll_use_mask(crtc);
+		if (!(pll_in_use & (1 << ATOM_PPLL1)))
+			return ATOM_PPLL1;
+		if (!(pll_in_use & (1 << ATOM_PPLL2)))
+			return ATOM_PPLL2;
+		DRM_ERROR("unable to allocate a PPLL\n");
+		return ATOM_PPLL_INVALID;
 	} else if (ASIC_IS_DCE4(rdev)) {
 		/* in DP mode, the DP ref clock can come from PPLL, DCPLL, or ext clock,
 		 * depending on the asic:
@@ -1793,7 +1808,7 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc)
 				if (pll != ATOM_PPLL_INVALID)
 					return pll;
 			}
-		} else if (!ASIC_IS_DCE41(rdev)) { /* Don't share PLLs on DCE4.1 chips */
+		} else {
 			/* 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/dce6_afmt.c +1 -1
index 713a5d359901..36e8f1084621 100644
@@ -283,7 +283,7 @@ static void dce6_audio_enable(struct radeon_device *rdev,
 			      bool enable)
 {
 	WREG32_ENDPOINT(pin->offset, AZ_F0_CODEC_PIN_CONTROL_HOTPLUG_CONTROL,
-			AUDIO_ENABLED);
+			enable ? AUDIO_ENABLED : 0);
 	DRM_INFO("%s audio %d support\n", enable ? "Enabling" : "Disabling", pin->id);
 }
 
drivers/gpu/drm/radeon/evergreen.c +1 -1
index 95ffe2a36a59..01ea414af02e 100644
@@ -5418,9 +5418,9 @@ void evergreen_fini(struct radeon_device *rdev)
 	radeon_wb_fini(rdev);
 	radeon_ib_pool_fini(rdev);
 	radeon_irq_kms_fini(rdev);
-	evergreen_pcie_gart_fini(rdev);
 	uvd_v1_0_fini(rdev);
 	radeon_uvd_fini(rdev);
+	evergreen_pcie_gart_fini(rdev);
 	r600_vram_scratch_fini(rdev);
 	radeon_gem_fini(rdev);
 	radeon_fence_driver_fini(rdev);
drivers/gpu/drm/radeon/ni_dpm.c +1 -1
index 49c4d48f54d6..1ee58a3f218a 100644
@@ -2586,7 +2586,7 @@ static int ni_populate_sq_ramping_values(struct radeon_device *rdev,
 	if (NISLANDS_DPM2_SQ_RAMP_STI_SIZE > (STI_SIZE_MASK >> STI_SIZE_SHIFT))
 		enable_sq_ramping = false;
 
-	if (NISLANDS_DPM2_SQ_RAMP_LTI_RATIO <= (LTI_RATIO_MASK >> LTI_RATIO_SHIFT))
+	if (NISLANDS_DPM2_SQ_RAMP_LTI_RATIO > (LTI_RATIO_MASK >> LTI_RATIO_SHIFT))
 		enable_sq_ramping = false;
 
 	for (i = 0; i < state->performance_level_count; i++) {
drivers/gpu/drm/radeon/radeon.h +3 -1
index 45e1f447bc79..d307cc29c824 100644
@@ -134,6 +134,9 @@ extern int radeon_runtime_pm;
 /* R600+ */
 #define R600_RING_TYPE_UVD_INDEX	5
 
+/* number of hw syncs before falling back on blocking */
+#define RADEON_NUM_SYNCS			4
+
 /* hardcode those limit for now */
 #define RADEON_VA_IB_OFFSET			(1 << 20)
 #define RADEON_VA_RESERVED_SIZE			(8 << 20)
@@ -544,7 +547,6 @@ int radeon_mode_dumb_mmap(struct drm_file *filp,
 /*
  * Semaphores.
  */
-/* everything here is constant */
 struct radeon_semaphore {
 	struct radeon_sa_bo		*sa_bo;
 	signed				waiters;
drivers/gpu/drm/radeon/radeon_atpx_handler.c +2 -1
index 485848f889f5..fa9a9c02751e 100644
@@ -219,7 +219,8 @@ static int radeon_atpx_verify_interface(struct radeon_atpx *atpx)
 	memcpy(&output, info->buffer.pointer, size);
 
 	/* TODO: check version? */
-	printk("ATPX version %u\n", output.version);
+	printk("ATPX version %u, functions 0x%08x\n",
+	       output.version, output.function_bits);
 
 	radeon_atpx_parse_functions(&atpx->functions, output.function_bits);
 
drivers/gpu/drm/radeon/radeon_kms.c +6 -0
index 21d593c0ecaf..99f7d9f7232c 100644
@@ -530,6 +530,10 @@ int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
 
 		radeon_vm_init(rdev, &fpriv->vm);
 
+		r = radeon_bo_reserve(rdev->ring_tmp_bo.bo, false);
+		if (r)
+			return r;
+
 		/* map the ib pool buffer read only into
 		 * virtual address space */
 		bo_va = radeon_vm_bo_add(rdev, &fpriv->vm,
@@ -537,6 +541,8 @@ int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
 		r = radeon_vm_bo_set_addr(rdev, bo_va, RADEON_VA_IB_OFFSET,
 					  RADEON_VM_PAGE_READABLE |
 					  RADEON_VM_PAGE_SNOOPED);
+
+		radeon_bo_unreserve(rdev->ring_tmp_bo.bo);
 		if (r) {
 			radeon_vm_fini(rdev, &fpriv->vm);
 			kfree(fpriv);
drivers/gpu/drm/radeon/radeon_ring.c +1 -1
index 9214403ae173..39a5d8ebbd94 100644
@@ -139,7 +139,7 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib,
 	}
 
 	/* 64 dwords should be enough for fence too */
-	r = radeon_ring_lock(rdev, ring, 64 + RADEON_NUM_RINGS * 8);
+	r = radeon_ring_lock(rdev, ring, 64 + RADEON_NUM_SYNCS * 8);
 	if (r) {
 		dev_err(rdev->dev, "scheduling IB failed (%d).\n", r);
 		return r;
drivers/gpu/drm/radeon/radeon_semaphore.c +16 -3
index 2b42aa1914f2..9006b32d5eed 100644
@@ -34,14 +34,15 @@
 int radeon_semaphore_create(struct radeon_device *rdev,
 			    struct radeon_semaphore **semaphore)
 {
+	uint32_t *cpu_addr;
 	int i, r;
 
 	*semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL);
 	if (*semaphore == NULL) {
 		return -ENOMEM;
 	}
-	r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo,
-			     &(*semaphore)->sa_bo, 8, 8, true);
+	r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo, &(*semaphore)->sa_bo,
+			     8 * RADEON_NUM_SYNCS, 8, true);
 	if (r) {
 		kfree(*semaphore);
 		*semaphore = NULL;
@@ -49,7 +50,10 @@ int radeon_semaphore_create(struct radeon_device *rdev,
 	}
 	(*semaphore)->waiters = 0;
 	(*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo);
-	*((uint64_t*)radeon_sa_bo_cpu_addr((*semaphore)->sa_bo)) = 0;
+
+	cpu_addr = radeon_sa_bo_cpu_addr((*semaphore)->sa_bo);
+	for (i = 0; i < RADEON_NUM_SYNCS; ++i)
+		cpu_addr[i] = 0;
 
 	for (i = 0; i < RADEON_NUM_RINGS; ++i)
 		(*semaphore)->sync_to[i] = NULL;
@@ -125,6 +129,7 @@ int radeon_semaphore_sync_rings(struct radeon_device *rdev,
 				struct radeon_semaphore *semaphore,
 				int ring)
 {
+	unsigned count = 0;
 	int i, r;
 
         for (i = 0; i < RADEON_NUM_RINGS; ++i) {
@@ -140,6 +145,12 @@ int radeon_semaphore_sync_rings(struct radeon_device *rdev,
 			return -EINVAL;
 		}
 
+		if (++count > RADEON_NUM_SYNCS) {
+			/* not enough room, wait manually */
+			radeon_fence_wait_locked(fence);
+			continue;
+		}
+
 		/* allocate enough space for sync command */
 		r = radeon_ring_alloc(rdev, &rdev->ring[i], 16);
 		if (r) {
@@ -164,6 +175,8 @@ int radeon_semaphore_sync_rings(struct radeon_device *rdev,
 
 		radeon_ring_commit(rdev, &rdev->ring[i]);
 		radeon_fence_note_sync(fence, ring);
+
+		semaphore->gpu_addr += 8;
 	}
 
 	return 0;
drivers/gpu/drm/radeon/radeon_uvd.c +2 -0
index 3d288a71978c..60a004429da8 100644
@@ -171,6 +171,8 @@ void radeon_uvd_fini(struct radeon_device *rdev)
 
 	radeon_bo_unref(&rdev->uvd.vcpu_bo);
 
+	radeon_ring_fini(rdev, &rdev->ring[R600_RING_TYPE_UVD_INDEX]);
+
 	release_firmware(rdev->uvd_fw);
 }
 
drivers/gpu/drm/radeon/rv770.c +1 -1
index 9f5846743c9e..99dd9d8fcf72 100644
@@ -1921,9 +1921,9 @@ void rv770_fini(struct radeon_device *rdev)
 	radeon_wb_fini(rdev);
 	radeon_ib_pool_fini(rdev);
 	radeon_irq_kms_fini(rdev);
-	rv770_pcie_gart_fini(rdev);
 	uvd_v1_0_fini(rdev);
 	radeon_uvd_fini(rdev);
+	rv770_pcie_gart_fini(rdev);
 	r600_vram_scratch_fini(rdev);
 	radeon_gem_fini(rdev);
 	radeon_fence_driver_fini(rdev);
drivers/hwmon/max1668.c +1 -1
index a7626358c95d..029b65e6c589 100644
@@ -243,7 +243,7 @@ static ssize_t set_temp_min(struct device *dev,
 	data->temp_min[index] = clamp_val(temp/1000, -128, 127);
 	if (i2c_smbus_write_byte_data(client,
 					MAX1668_REG_LIML_WR(index),
-					data->temp_max[index]))
+					data->temp_min[index]))
 		count = -EIO;
 	mutex_unlock(&data->update_lock);
 
drivers/iio/gyro/Kconfig +1 -1
index 41c64a43bcab..ac2d69e34c8c 100644
@@ -70,7 +70,7 @@ config IIO_ST_GYRO_3AXIS
 	select IIO_TRIGGERED_BUFFER if (IIO_BUFFER)
 	help
 	  Say yes here to build support for STMicroelectronics gyroscopes:
-	  L3G4200D, LSM330DL, L3GD20, L3GD20H, LSM330DLC, L3G4IS, LSM330.
+	  L3G4200D, LSM330DL, L3GD20, LSM330DLC, L3G4IS, LSM330.
 
 	  This driver can also be built as a module. If so, these modules
 	  will be created:
drivers/iio/gyro/st_gyro.h +0 -1
index f8f2bf84a5a2..c197360c450b 100644
@@ -19,7 +19,6 @@
 #define LSM330DL_GYRO_DEV_NAME		"lsm330dl_gyro"
 #define LSM330DLC_GYRO_DEV_NAME		"lsm330dlc_gyro"
 #define L3GD20_GYRO_DEV_NAME		"l3gd20"
-#define L3GD20H_GYRO_DEV_NAME		"l3gd20h"
 #define L3G4IS_GYRO_DEV_NAME		"l3g4is_ui"
 #define LSM330_GYRO_DEV_NAME		"lsm330_gyro"
 
drivers/iio/gyro/st_gyro_core.c +4 -5
index d53d91adfb55..a8e174a47bc4 100644
@@ -167,11 +167,10 @@ static const struct st_sensors st_gyro_sensors[] = {
 		.wai = ST_GYRO_2_WAI_EXP,
 		.sensors_supported = {
 			[0] = L3GD20_GYRO_DEV_NAME,
-			[1] = L3GD20H_GYRO_DEV_NAME,
-			[2] = LSM330D_GYRO_DEV_NAME,
-			[3] = LSM330DLC_GYRO_DEV_NAME,
-			[4] = L3G4IS_GYRO_DEV_NAME,
-			[5] = LSM330_GYRO_DEV_NAME,
+			[1] = LSM330D_GYRO_DEV_NAME,
+			[2] = LSM330DLC_GYRO_DEV_NAME,
+			[3] = L3G4IS_GYRO_DEV_NAME,
+			[4] = LSM330_GYRO_DEV_NAME,
 		},
 		.ch = (struct iio_chan_spec *)st_gyro_16bit_channels,
 		.odr = {
drivers/iio/gyro/st_gyro_i2c.c +0 -1
index 16b8b8d70bf1..23c12f361b05 100644
@@ -55,7 +55,6 @@ static const struct i2c_device_id st_gyro_id_table[] = {
 	{ LSM330DL_GYRO_DEV_NAME },
 	{ LSM330DLC_GYRO_DEV_NAME },
 	{ L3GD20_GYRO_DEV_NAME },
-	{ L3GD20H_GYRO_DEV_NAME },
 	{ L3G4IS_GYRO_DEV_NAME },
 	{ LSM330_GYRO_DEV_NAME },
 	{},
drivers/iio/gyro/st_gyro_spi.c +0 -1
index 94763e25caf9..b4ad3be26687 100644
@@ -54,7 +54,6 @@ static const struct spi_device_id st_gyro_id_table[] = {
 	{ LSM330DL_GYRO_DEV_NAME },
 	{ LSM330DLC_GYRO_DEV_NAME },
 	{ L3GD20_GYRO_DEV_NAME },
-	{ L3GD20H_GYRO_DEV_NAME },
 	{ L3G4IS_GYRO_DEV_NAME },
 	{ LSM330_GYRO_DEV_NAME },
 	{},
drivers/input/misc/arizona-haptics.c +4 -7
index 7a04f54ef961..e7e12a5f5c2d 100644
@@ -77,16 +77,14 @@ static void arizona_haptics_work(struct work_struct *work)
 			return;
 		}
 
+		mutex_unlock(dapm_mutex);
+
 		ret = snd_soc_dapm_sync(arizona->dapm);
 		if (ret != 0) {
 			dev_err(arizona->dev, "Failed to sync DAPM: %d\n",
 				ret);
-			mutex_unlock(dapm_mutex);
 			return;
 		}
-
-		mutex_unlock(dapm_mutex);
-
 	} else {
 		/* This disable sequence will be a noop if already enabled */
 		mutex_lock_nested(dapm_mutex, SND_SOC_DAPM_CLASS_RUNTIME);
@@ -99,16 +97,15 @@ static void arizona_haptics_work(struct work_struct *work)
 			return;
 		}
 
+		mutex_unlock(dapm_mutex);
+
 		ret = snd_soc_dapm_sync(arizona->dapm);
 		if (ret != 0) {
 			dev_err(arizona->dev, "Failed to sync DAPM: %d\n",
 				ret);
-			mutex_unlock(dapm_mutex);
 			return;
 		}
 
-		mutex_unlock(dapm_mutex);
-
 		ret = regmap_update_bits(arizona->regmap,
 					 ARIZONA_HAPTICS_CONTROL_1,
 					 ARIZONA_HAP_CTRL_MASK,
drivers/iommu/arm-smmu.c +59 -42

217 lines not on this page · raw message

drivers/irqchip/irq-metag-ext.c +1 -1
index 92c41ab4dbfd..2cb474ad8809 100644
@@ -515,7 +515,7 @@ static int meta_intc_set_affinity(struct irq_data *data,
 	 * one cpu (the interrupt code doesn't support it), so we just
 	 * pick the first cpu we find in 'cpumask'.
 	 */
-	cpu = cpumask_any(cpumask);
+	cpu = cpumask_any_and(cpumask, cpu_online_mask);
 	thread = cpu_2_hwthread_id[cpu];
 
 	metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR2(thread)), vec_addr);
drivers/irqchip/irq-metag.c +1 -1
index 8e94d7a3b20d..c16c186d97d3 100644
@@ -201,7 +201,7 @@ static int metag_internal_irq_set_affinity(struct irq_data *data,
 	 * one cpu (the interrupt code doesn't support it), so we just
 	 * pick the first cpu we find in 'cpumask'.
 	 */
-	cpu = cpumask_any(cpumask);
+	cpu = cpumask_any_and(cpumask, cpu_online_mask);
 	thread = cpu_2_hwthread_id[cpu];
 
 	metag_out32(TBI_TRIG_VEC(TBID_SIGNUM_TR1(thread)),
drivers/irqchip/irq-orion.c +19 -3
index e51d40031884..8e41be62812e 100644
@@ -111,7 +111,8 @@ IRQCHIP_DECLARE(orion_intc, "marvell,orion-intc", orion_irq_init);
 static void orion_bridge_irq_handler(unsigned int irq, struct irq_desc *desc)
 {
 	struct irq_domain *d = irq_get_handler_data(irq);
-	struct irq_chip_generic *gc = irq_get_domain_generic_chip(d, irq);
+
+	struct irq_chip_generic *gc = irq_get_domain_generic_chip(d, 0);
 	u32 stat = readl_relaxed(gc->reg_base + ORION_BRIDGE_IRQ_CAUSE) &
 		   gc->mask_cache;
 
@@ -123,6 +124,19 @@ static void orion_bridge_irq_handler(unsigned int irq, struct irq_desc *desc)
 	}
 }
 
+/*
+ * Bridge IRQ_CAUSE is asserted regardless of IRQ_MASK register.
+ * To avoid interrupt events on stale irqs, we clear them before unmask.
+ */
+static unsigned int orion_bridge_irq_startup(struct irq_data *d)
+{
+	struct irq_chip_type *ct = irq_data_get_chip_type(d);
+
+	ct->chip.irq_ack(d);
+	ct->chip.irq_unmask(d);
+	return 0;
+}
+
 static int __init orion_bridge_irq_init(struct device_node *np,
 					struct device_node *parent)
 {
@@ -143,7 +157,7 @@ static int __init orion_bridge_irq_init(struct device_node *np,
 	}
 
 	ret = irq_alloc_domain_generic_chips(domain, nrirqs, 1, np->name,
-			     handle_level_irq, clr, 0, IRQ_GC_INIT_MASK_CACHE);
+			     handle_edge_irq, clr, 0, IRQ_GC_INIT_MASK_CACHE);
 	if (ret) {
 		pr_err("%s: unable to alloc irq domain gc\n", np->name);
 		return ret;
@@ -176,12 +190,14 @@ static int __init orion_bridge_irq_init(struct device_node *np,
 
 	gc->chip_types[0].regs.ack = ORION_BRIDGE_IRQ_CAUSE;
 	gc->chip_types[0].regs.mask = ORION_BRIDGE_IRQ_MASK;
+	gc->chip_types[0].chip.irq_startup = orion_bridge_irq_startup;
 	gc->chip_types[0].chip.irq_ack = irq_gc_ack_clr_bit;
 	gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit;
 	gc->chip_types[0].chip.irq_unmask = irq_gc_mask_set_bit;
 
-	/* mask all interrupts */
+	/* mask and clear all interrupts */
 	writel(0, gc->reg_base + ORION_BRIDGE_IRQ_MASK);
+	writel(0, gc->reg_base + ORION_BRIDGE_IRQ_CAUSE);
 
 	irq_set_handler_data(irq, domain);
 	irq_set_chained_handler(irq, orion_bridge_irq_handler);
drivers/md/dm-cache-target.c +1 -1
index 1b1469ebe5cb..c32821ff4de7 100644
@@ -283,6 +283,7 @@ struct per_bio_data {
 	bool tick:1;
 	unsigned req_nr:2;
 	struct dm_deferred_entry *all_io_entry;
+	struct dm_hook_info hook_info;
 
 	/*
 	 * writethrough fields.  These MUST remain at the end of this
@@ -291,7 +292,6 @@ struct per_bio_data {
 	 */
 	struct cache *cache;
 	dm_cblock_t cblock;
-	struct dm_hook_info hook_info;
 	struct dm_bio_details bio_details;
 };
 
drivers/md/dm-mpath.c +5 -2
index 6eb9dc9ef8f3..422a9fdeb53e 100644
@@ -1626,8 +1626,11 @@ static int multipath_ioctl(struct dm_target *ti, unsigned int cmd,
 	/*
 	 * Only pass ioctls through if the device sizes match exactly.
 	 */
-	if (!r && ti->len != i_size_read(bdev->bd_inode) >> SECTOR_SHIFT)
-		r = scsi_verify_blk_ioctl(NULL, cmd);
+	if (!bdev || ti->len != i_size_read(bdev->bd_inode) >> SECTOR_SHIFT) {
+		int err = scsi_verify_blk_ioctl(NULL, cmd);
+		if (err)
+			r = err;
+	}
 
 	if (r == -ENOTCONN && !fatal_signal_pending(current))
 		queue_work(kmultipathd, &m->process_queued_ios);
drivers/md/dm-thin-metadata.c +17 -0
index 7da347665552..3bb4506582a9 100644
@@ -1489,6 +1489,23 @@ bool dm_thin_changed_this_transaction(struct dm_thin_device *td)
 	return r;
 }
 
+bool dm_pool_changed_this_transaction(struct dm_pool_metadata *pmd)
+{
+	bool r = false;
+	struct dm_thin_device *td, *tmp;
+
+	down_read(&pmd->root_lock);
+	list_for_each_entry_safe(td, tmp, &pmd->thin_devices, list) {
+		if (td->changed) {
+			r = td->changed;
+			break;
+		}
+	}
+	up_read(&pmd->root_lock);
+
+	return r;
+}
+
 bool dm_thin_aborted_changes(struct dm_thin_device *td)
 {
 	bool r;
drivers/md/dm-thin-metadata.h +2 -0
index 2edf5dbac76a..c6d123bb768a 100644
@@ -161,6 +161,8 @@ int dm_thin_remove_block(struct dm_thin_device *td, dm_block_t block);
  */
 bool dm_thin_changed_this_transaction(struct dm_thin_device *td);
 
+bool dm_pool_changed_this_transaction(struct dm_pool_metadata *pmd);
+
 bool dm_thin_aborted_changes(struct dm_thin_device *td);
 
 int dm_thin_get_highest_mapped_block(struct dm_thin_device *td,
drivers/md/dm-thin.c +6 -2
index bc0c97d7921e..e9587101b04f 100644
@@ -1354,7 +1354,8 @@ static void process_deferred_bios(struct pool *pool)
 	bio_list_init(&pool->deferred_flush_bios);
 	spin_unlock_irqrestore(&pool->lock, flags);
 
-	if (bio_list_empty(&bios) && !need_commit_due_to_time(pool))
+	if (bio_list_empty(&bios) &&
+	    !(dm_pool_changed_this_transaction(pool->pmd) && need_commit_due_to_time(pool)))
 		return;
 
 	if (commit(pool)) {
@@ -2847,6 +2848,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
 
 	if (get_pool_mode(tc->pool) == PM_FAIL) {
 		ti->error = "Couldn't open thin device, Pool is in fail mode";
+		r = -EINVAL;
 		goto bad_thin_open;
 	}
 
@@ -2858,7 +2860,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
 
 	r = dm_set_target_max_io_len(ti, tc->pool->sectors_per_block);
 	if (r)
-		goto bad_thin_open;
+		goto bad_target_max_io_len;
 
 	ti->num_flush_bios = 1;
 	ti->flush_supported = true;
@@ -2879,6 +2881,8 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
 
 	return 0;
 
+bad_target_max_io_len:
+	dm_pool_close_thin_device(tc->td);
 bad_thin_open:
 	__pool_dec(tc->pool);
 bad_pool_lookup:
drivers/mfd/da9055-i2c.c +10 -2
index 13af7e50021e..8103e4362132 100644
@@ -53,17 +53,25 @@ static int da9055_i2c_remove(struct i2c_client *i2c)
 	return 0;
 }
 
+/*
+ * DO NOT change the device Ids. The naming is intentionally specific as both
+ * the PMIC and CODEC parts of this chip are instantiated separately as I2C
+ * devices (both have configurable I2C addresses, and are to all intents and
+ * purposes separate). As a result there are specific DA9055 ids for PMIC
+ * and CODEC, which must be different to operate together.
+ */
 static struct i2c_device_id da9055_i2c_id[] = {
-	{"da9055", 0},
+	{"da9055-pmic", 0},
 	{ }
 };
+MODULE_DEVICE_TABLE(i2c, da9055_i2c_id);
 
 static struct i2c_driver da9055_i2c_driver = {
 	.probe = da9055_i2c_probe,
 	.remove = da9055_i2c_remove,
 	.id_table = da9055_i2c_id,
 	.driver = {
-		.name = "da9055",
+		.name = "da9055-pmic",
 		.owner = THIS_MODULE,
 	},
 };
drivers/misc/mei/client.c +3 -1
index 28f53fe9f7cb..c856d79409d1 100644
@@ -667,7 +667,6 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length)
 		goto err;
 
 	cb->fop_type = MEI_FOP_READ;
-	cl->read_cb = cb;
 	if (dev->hbuf_is_ready) {
 		dev->hbuf_is_ready = false;
 		if (mei_hbm_cl_flow_control_req(dev, cl)) {
@@ -679,6 +678,9 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length)
 	} else {
 		list_add_tail(&cb->list, &dev->ctrl_wr_list.list);
 	}
+
+	cl->read_cb = cb;
+
 	return rets;
 err:
 	mei_io_cb_free(cb);
drivers/mtd/nand/omap2.c +40 -21

104 lines not on this page · raw message

drivers/net/bonding/bond_3ad.c +2 -4
index 4ced59436558..dcf2ee871e47 100644
@@ -1806,8 +1806,6 @@ void bond_3ad_initiate_agg_selection(struct bonding *bond, int timeout)
 	BOND_AD_INFO(bond).agg_select_timer = timeout;
 }
 
-static u16 aggregator_identifier;
-
 /**
  * bond_3ad_initialize - initialize a bond's 802.3ad parameters and structures
  * @bond: bonding struct to work on
@@ -1821,7 +1819,7 @@ void bond_3ad_initialize(struct bonding *bond, u16 tick_resolution)
 	if (MAC_ADDRESS_COMPARE(&(BOND_AD_INFO(bond).system.sys_mac_addr),
 				bond->dev->dev_addr)) {
 
-		aggregator_identifier = 0;
+		BOND_AD_INFO(bond).aggregator_identifier = 0;
 
 		BOND_AD_INFO(bond).system.sys_priority = 0xFFFF;
 		BOND_AD_INFO(bond).system.sys_mac_addr = *((struct mac_addr *)bond->dev->dev_addr);
@@ -1892,7 +1890,7 @@ int bond_3ad_bind_slave(struct slave *slave)
 		ad_initialize_agg(aggregator);
 
 		aggregator->aggregator_mac_address = *((struct mac_addr *)bond->dev->dev_addr);
-		aggregator->aggregator_identifier = (++aggregator_identifier);
+		aggregator->aggregator_identifier = ++BOND_AD_INFO(bond).aggregator_identifier;
 		aggregator->slave = slave;
 		aggregator->is_active = 0;
 		aggregator->num_of_ports = 0;
drivers/net/bonding/bond_3ad.h +1 -0
index 5d91ad0cc041..1f081c89753f 100644
@@ -253,6 +253,7 @@ struct ad_system {
 struct ad_bond_info {
 	struct ad_system system;	    /* 802.3ad system structure */
 	u32 agg_select_timer;	    // Timer to select aggregator after all adapter's hand shakes
+	u16 aggregator_identifier;
 };
 
 struct ad_slave_info {
drivers/net/can/dev.c +3 -12
index bda1888cae9a..bafd28e804ef 100644
@@ -324,19 +324,10 @@ void can_put_echo_skb(struct sk_buff *skb, struct net_device *dev,
 	}
 
 	if (!priv->echo_skb[idx]) {
-		struct sock *srcsk = skb->sk;
 
-		if (atomic_read(&skb->users) != 1) {
-			struct sk_buff *old_skb = skb;
-
-			skb = skb_clone(old_skb, GFP_ATOMIC);
-			kfree_skb(old_skb);
-			if (!skb)
-				return;
-		} else
-			skb_orphan(skb);
-
-		skb->sk = srcsk;
+		skb = can_create_echo_skb(skb);
+		if (!skb)
+			return;
 
 		/* make settings for echo to reduce code in irq context */
 		skb->protocol = htons(ETH_P_CAN);
drivers/net/can/janz-ican3.c +4 -14
index ab5909a7bae9..6d9bbba5f097 100644
@@ -19,6 +19,7 @@
 #include <linux/netdevice.h>
 #include <linux/can.h>
 #include <linux/can/dev.h>
+#include <linux/can/skb.h>
 #include <linux/can/error.h>
 
 #include <linux/mfd/janz.h>
@@ -1134,20 +1135,9 @@ static void ican3_handle_message(struct ican3_dev *mod, struct ican3_msg *msg)
  */
 static void ican3_put_echo_skb(struct ican3_dev *mod, struct sk_buff *skb)
 {
-	struct sock *srcsk = skb->sk;
-
-	if (atomic_read(&skb->users) != 1) {
-		struct sk_buff *old_skb = skb;
-
-		skb = skb_clone(old_skb, GFP_ATOMIC);
-		kfree_skb(old_skb);
-		if (!skb)
-			return;
-	} else {
-		skb_orphan(skb);
-	}
-
-	skb->sk = srcsk;
+	skb = can_create_echo_skb(skb);
+	if (!skb)
+		return;
 
 	/* save this skb for tx interrupt echo handling */
 	skb_queue_tail(&mod->echoq, skb);
drivers/net/can/usb/kvaser_usb.c +2 -0
index 4b2d5ed62b11..cc3df8aebb87 100644
@@ -474,6 +474,8 @@ static int kvaser_usb_get_card_info(struct kvaser_usb *dev)
 		return err;
 
 	dev->nchannels = msg.u.cardinfo.nchannels;
+	if (dev->nchannels > MAX_NET_DEVICES)
+		return -EINVAL;
 
 	return 0;
 }
drivers/net/can/vcan.c +4 -5
index 0a2a5ee79a17..4e94057ef5cf 100644
@@ -46,6 +46,7 @@
 #include <linux/if_ether.h>
 #include <linux/can.h>
 #include <linux/can/dev.h>
+#include <linux/can/skb.h>
 #include <linux/slab.h>
 #include <net/rtnetlink.h>
 
@@ -109,25 +110,23 @@ static netdev_tx_t vcan_tx(struct sk_buff *skb, struct net_device *dev)
 			stats->rx_packets++;
 			stats->rx_bytes += cfd->len;
 		}
-		kfree_skb(skb);
+		consume_skb(skb);
 		return NETDEV_TX_OK;
 	}
 
 	/* perform standard echo handling for CAN network interfaces */
 
 	if (loop) {
-		struct sock *srcsk = skb->sk;
 
-		skb = skb_share_check(skb, GFP_ATOMIC);
+		skb = can_create_echo_skb(skb);
 		if (!skb)
 			return NETDEV_TX_OK;
 
 		/* receive with packet counting */
-		skb->sk = srcsk;
 		vcan_rx(skb, dev);
 	} else {
 		/* no looped packets => no counting */
-		kfree_skb(skb);
+		consume_skb(skb);
 	}
 	return NETDEV_TX_OK;
 }
drivers/net/ethernet/broadcom/tg3.c +2 -2
index 15a66e4b1f57..c9c935c15f74 100644
@@ -13965,12 +13965,12 @@ static int tg3_change_mtu(struct net_device *dev, int new_mtu)
 
 	tg3_netif_stop(tp);
 
+	tg3_set_mtu(dev, tp, new_mtu);
+
 	tg3_full_lock(tp, 1);
 
 	tg3_halt(tp, RESET_KIND_SHUTDOWN, 1);
 
-	tg3_set_mtu(dev, tp, new_mtu);
-
 	/* Reset PHY, otherwise the read DMA engine will be in a mode that
 	 * breaks all requests to 256 bytes.
 	 */
drivers/net/ethernet/marvell/mvneta.c +116 -101

396 lines not on this page · raw message

drivers/net/hyperv/netvsc_drv.c +38 -15

113 lines not on this page · raw message

drivers/net/usb/asix_devices.c +2 -1
index 386a3df53678..20643833f0e6 100644
@@ -918,7 +918,8 @@ static const struct driver_info ax88178_info = {
 	.status = asix_status,
 	.link_reset = ax88178_link_reset,
 	.reset = ax88178_reset,
-	.flags = FLAG_ETHER | FLAG_FRAMING_AX | FLAG_LINK_INTR,
+	.flags = FLAG_ETHER | FLAG_FRAMING_AX | FLAG_LINK_INTR |
+		 FLAG_MULTI_PACKET,
 	.rx_fixup = asix_rx_fixup_common,
 	.tx_fixup = asix_tx_fixup,
 };
drivers/net/usb/ax88179_178a.c +4 -0
index 8e8d0fcd4979..7056b9df4163 100644
@@ -1119,6 +1119,10 @@ static int ax88179_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 	u16 hdr_off;
 	u32 *pkt_hdr;
 
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	skb_trim(skb, skb->len - 4);
 	memcpy(&rx_hdr, skb_tail_pointer(skb), 4);
 	le32_to_cpus(&rx_hdr);
drivers/net/usb/gl620a.c +4 -0
index a7e3f4e55bf3..82ab61d62804 100644
@@ -86,6 +86,10 @@ static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 	u32			size;
 	u32			count;
 
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	header = (struct gl_header *) skb->data;
 
 	// get the packet count of the received skb
drivers/net/usb/mcs7830.c +3 -2
index f54637828574..8dd48b5c7b6a 100644
@@ -528,8 +528,9 @@ static int mcs7830_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 {
 	u8 status;
 
-	if (skb->len == 0) {
-		dev_err(&dev->udev->dev, "unexpected empty rx frame\n");
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len) {
+		dev_err(&dev->udev->dev, "unexpected tiny rx frame\n");
 		return 0;
 	}
 
drivers/net/usb/net1080.c +4 -0
index 93e0716a118c..7f4a3a41c4f8 100644
@@ -366,6 +366,10 @@ static int net1080_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 	struct nc_trailer	*trailer;
 	u16			hdr_len, packet_len;
 
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	if (!(skb->len & 0x01)) {
 		netdev_dbg(dev->net, "rx framesize %d range %d..%d mtu %d\n",
 			   skb->len, dev->net->hard_header_len, dev->hard_mtu,
drivers/net/usb/qmi_wwan.c +5 -4
index 23bdd5b9274d..33e07127cae9 100644
@@ -80,10 +80,10 @@ static int qmi_wwan_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 {
 	__be16 proto;
 
-	/* usbnet rx_complete guarantees that skb->len is at least
-	 * hard_header_len, so we can inspect the dest address without
-	 * checking skb->len
-	 */
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	switch (skb->data[0] & 0xf0) {
 	case 0x40:
 		proto = htons(ETH_P_IP);
@@ -723,6 +723,7 @@ static const struct usb_device_id products[] = {
 	{QMI_FIXED_INTF(0x1199, 0x68a2, 8)},	/* Sierra Wireless MC7710 in QMI mode */
 	{QMI_FIXED_INTF(0x1199, 0x68a2, 19)},	/* Sierra Wireless MC7710 in QMI mode */
 	{QMI_FIXED_INTF(0x1199, 0x901c, 8)},    /* Sierra Wireless EM7700 */
+	{QMI_FIXED_INTF(0x1199, 0x9051, 8)},	/* Netgear AirCard 340U */
 	{QMI_FIXED_INTF(0x1bbb, 0x011e, 4)},	/* Telekom Speedstick LTE II (Alcatel One Touch L100V LTE) */
 	{QMI_FIXED_INTF(0x2357, 0x0201, 4)},	/* TP-LINK HSUPA Modem MA180 */
 	{QMI_FIXED_INTF(0x2357, 0x9000, 4)},	/* TP-LINK MA260 */
drivers/net/usb/rndis_host.c +4 -0
index cc49aac70224..691fca4e4c2d 100644
@@ -494,6 +494,10 @@ EXPORT_SYMBOL_GPL(rndis_unbind);
  */
 int rndis_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 {
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	/* peripheral may have batched packets to us... */
 	while (likely(skb->len)) {
 		struct rndis_data_hdr	*hdr = (void *)skb->data;
drivers/net/usb/smsc75xx.c +4 -0
index 66ebbacf066f..12afae0451e6 100644
@@ -2108,6 +2108,10 @@ static void smsc75xx_rx_csum_offload(struct usbnet *dev, struct sk_buff *skb,
 
 static int smsc75xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 {
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	while (skb->len > 0) {
 		u32 rx_cmd_a, rx_cmd_b, align_count, size;
 		struct sk_buff *ax_skb;
drivers/net/usb/smsc95xx.c +4 -0
index 3f38ba868f61..9375b8c6410b 100644
@@ -1725,6 +1725,10 @@ static void smsc95xx_rx_csum_offload(struct sk_buff *skb)
 
 static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
 {
+	/* This check is no longer done by usbnet */
+	if (skb->len < dev->net->hard_header_len)
+		return 0;
+
 	while (skb->len > 0) {
 		u32 header, align_count;
 		struct sk_buff *ax_skb;
drivers/net/usb/usbnet.c +10 -15
index aba04f561760..a91fa49b81c3 100644
@@ -543,17 +543,19 @@ static inline void rx_process (struct usbnet *dev, struct sk_buff *skb)
 	}
 	// else network stack removes extra byte if we forced a short packet
 
-	if (skb->len) {
-		/* all data was already cloned from skb inside the driver */
-		if (dev->driver_info->flags & FLAG_MULTI_PACKET)
-			dev_kfree_skb_any(skb);
-		else
-			usbnet_skb_return(dev, skb);
+	/* all data was already cloned from skb inside the driver */
+	if (dev->driver_info->flags & FLAG_MULTI_PACKET)
+		goto done;
+
+	if (skb->len < ETH_HLEN) {
+		dev->net->stats.rx_errors++;
+		dev->net->stats.rx_length_errors++;
+		netif_dbg(dev, rx_err, dev->net, "rx length %d\n", skb->len);
+	} else {
+		usbnet_skb_return(dev, skb);
 		return;
 	}
 
-	netif_dbg(dev, rx_err, dev->net, "drop\n");
-	dev->net->stats.rx_errors++;
 done:
 	skb_queue_tail(&dev->done, skb);
 }
@@ -575,13 +577,6 @@ static void rx_complete (struct urb *urb)
 	switch (urb_status) {
 	/* success */
 	case 0:
-		if (skb->len < dev->net->hard_header_len) {
-			state = rx_cleanup;
-			dev->net->stats.rx_errors++;
-			dev->net->stats.rx_length_errors++;
-			netif_dbg(dev, rx_err, dev->net,
-				  "rx length %d\n", skb->len);
-		}
 		break;
 
 	/* stalls need manual reset. this is rare ... except that
drivers/net/wireless/rtl818x/rtl8187/rtl8187.h +8 -2
index 56aee067f324..a6ad79f61bf9 100644
@@ -15,6 +15,8 @@
 #ifndef RTL8187_H
 #define RTL8187_H
 
+#include <linux/cache.h>
+
 #include "rtl818x.h"
 #include "leds.h"
 
@@ -139,7 +141,10 @@ struct rtl8187_priv {
 	u8 aifsn[4];
 	u8 rfkill_mask;
 	struct {
-		__le64 buf;
+		union {
+			__le64 buf;
+			u8 dummy1[L1_CACHE_BYTES];
+		} ____cacheline_aligned;
 		struct sk_buff_head queue;
 	} b_tx_status; /* This queue is used by both -b and non-b devices */
 	struct mutex io_mutex;
@@ -147,7 +152,8 @@ struct rtl8187_priv {
 		u8 bits8;
 		__le16 bits16;
 		__le32 bits32;
-	} *io_dmabuf;
+		u8 dummy2[L1_CACHE_BYTES];
+	} *io_dmabuf ____cacheline_aligned;
 	bool rfkill_off;
 	u16 seqno;
 };
drivers/net/wireless/rtlwifi/ps.c +1 -1
index 0d81f766fd0f..a56e9b3c96c2 100644
@@ -48,7 +48,7 @@ bool rtl_ps_enable_nic(struct ieee80211_hw *hw)
 
 	/*<2> Enable Adapter */
 	if (rtlpriv->cfg->ops->hw_init(hw))
-		return 1;
+		return false;
 	RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC);
 
 	/*<3> Enable Interrupt */
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c +16 -2
index a82b30a1996c..2eb0b38384dd 100644
@@ -937,14 +937,26 @@ int rtl92ce_hw_init(struct ieee80211_hw *hw)
 	bool is92c;
 	int err;
 	u8 tmp_u1b;
+	unsigned long flags;
 
 	rtlpci->being_init_adapter = true;
+
+	/* Since this function can take a very long time (up to 350 ms)
+	 * and can be called with irqs disabled, reenable the irqs
+	 * to let the other devices continue being serviced.
+	 *
+	 * It is safe doing so since our own interrupts will only be enabled
+	 * in a subsequent step.
+	 */
+	local_save_flags(flags);
+	local_irq_enable();
+
 	rtlpriv->intf_ops->disable_aspm(hw);
 	rtstatus = _rtl92ce_init_mac(hw);
 	if (!rtstatus) {
 		RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, "Init MAC failed\n");
 		err = 1;
-		return err;
+		goto exit;
 	}
 
 	err = rtl92c_download_fw(hw);
@@ -952,7 +964,7 @@ int rtl92ce_hw_init(struct ieee80211_hw *hw)
 		RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING,
 			 "Failed to download FW. Init HW without FW now..\n");
 		err = 1;
-		return err;
+		goto exit;
[… more lines in the raw message]

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

drivers/pci/host/pci-mvebu.c +2 -9
index 2aa7b77c7c88..e9b7c2c862fd 100644

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

drivers/pci/pci.c +10 -0
index 07369f32e8bb..bde33336debc 100644

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

drivers/regulator/da9063-regulator.c +3 -1
index 56727eb745df..91e99a2c8dc1 100644

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

drivers/scsi/qla2xxx/qla_target.c +2 -1
index 38a1257e76e1..358c1769b15b 100644

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

drivers/staging/android/binder.c +1 -2
index eaec1dab7fe4..1432d956769c 100644

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

drivers/staging/iio/adc/mxs-lradc.c +1 -0
index e2dd7830b320..558a76ce90e6 100644

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

drivers/staging/rtl8188eu/os_dep/usb_intf.c +1 -0
index 09eb2780e5bc..615f58c37bbe 100644

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

drivers/usb/chipidea/udc.c +2 -2
index 5875c2a8daf1..27ff8727e29e 100644

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

drivers/usb/gadget/bcm63xx_udc.c +32 -26

58 lines not on this page · raw message

drivers/usb/host/ehci-hcd.c +10 -3
index e8ba4c44223a..4dfd6fbad2be 100644

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

drivers/usb/host/ehci-hub.c +22 -4
index 835fc0844a66..1bb85bee2625 100644

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

drivers/usb/serial/ftdi_sio.c +2 -0
index 9f4d432d00b8..2d7d12ff3cb9 100644

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

drivers/usb/serial/ftdi_sio_ids.h +6 -0
index 1e2d369df86e..e599fbfcde5f 100644

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

drivers/usb/serial/option.c +2 -1
index 216d20affba8..68fc9fe65936 100644

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

drivers/vhost/net.c +20 -21

41 lines not on this page · raw message

fs/attr.c +0 -5
index 267968d94673..5d4e59d56e85 100644

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

fs/btrfs/inode.c +6 -2
index 41f0a037246f..f4a870ad359b 100644

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

fs/cifs/file.c +34 -3
index 5a5a87240fe2..a1c9ead109a8 100644

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

fs/cifs/smb2glob.h +3 -0
index c38350851b08..bc0bb9c34f72 100644

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

fs/cifs/smb2ops.c +4 -10
index 757da3e54d3d..192f51a12cf1 100644

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

fs/cifs/smb2pdu.c +3 -1
index 2013234b73ad..787e1718e1a3 100644

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

fs/ext4/ext4.h +2 -0
index ece55565b9cd..d3a534fdc5ff 100644

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

fs/ext4/extents.c +1 -0
index 3384dc4bed40..02dd709b74c2 100644

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

fs/ext4/inode.c +4 -0
index 61d49ff22c81..31fa964742bc 100644

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

fs/ext4/ioctl.c +2 -1
index 60589b60e9b0..4a5fe555870e 100644

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

fs/ext4/resize.c +21 -13
index c5adbb318a90..f3b84cd9de56 100644

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

fs/ext4/super.c +13 -7
index 1f7784de05b6..710fed2377d4 100644

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

fs/fs-writeback.c +11 -22
index e0259a163f98..d754e3cf99a8 100644

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

fs/jbd2/transaction.c +4 -2
index 8360674c85bc..60bb365f54a5 100644

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

fs/nfs/inode.c +10 -4
index 00ad1c2b217d..5d94c02dfa03 100644

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

fs/nfs/internal.h +9 -0
index 8b5cc04a8611..fafdddac8271 100644

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

fs/nfs/nfs4state.c +4 -1
index 059c01b67a71..b3b8aeac2bdb 100644

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

fs/quota/dquot.c +11 -3
index 831d49a4111f..cfc8dcc16043 100644

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

fs/sync.c +6 -9
index f15537452231..6c0ca3b75758 100644

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

fs/xfs/xfs_super.c +1 -1
index f317488263dd..d971f4932b5d 100644

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

include/linux/can/skb.h +38 -0
index 2f0543f7510c..f9bbbb472663 100644

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

include/linux/export.h +1 -0
index 3f2793d51899..96e45ea463e7 100644

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

include/linux/ipc_namespace.h +0 -2
index f6c82de12541..d6ad91f26038 100644

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

include/linux/netdevice.h +6 -1
index ce2a1f5f9a1e..2177a6b76ecd 100644

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

include/linux/skbuff.h +18 -0
index 6f69b3f914fb..37cb67968c32 100644

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

include/linux/writeback.h +1 -1
index fc0e4320aa6d..021b8a319b9e 100644

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

include/trace/events/writeback.h +3 -3
index c7bbbe794e65..464ea82e10db 100644

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

ipc/mq_sysctl.c +12 -6
index 383d638340b8..5bb8bfe67149 100644

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

ipc/mqueue.c +3 -3
index 95827ce2f3c7..b8d4aed45b8c 100644

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

kernel/cgroup.c +17 -15
index bc1dcabe9217..271acd834913 100644

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

kernel/events/core.c +6 -6
index f5744010a8d2..6ed11633301b 100644

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

kernel/workqueue.c +7 -0
index b010eac595d2..a8381cf47db0 100644

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

mm/huge_memory.c +6 -3
index 5d80c53b87cb..5c320aad047c 100644

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

mm/memory.c +3 -11
index 6768ce9e57d2..dda27b9ce15b 100644

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

net/9p/trans_virtio.c +4 -1
index 9c5a1aa34d12..3c6c6377783e 100644

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

net/batman-adv/bat_iv_ogm.c +20 -10
index b9c8a6eedf45..f7270b9e25c7 100644

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

net/batman-adv/hard-interface.c +14 -8
index 57c2a19dcb5c..6c96b79aac84 100644

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

net/batman-adv/originator.c +36 -0
index 8ab14340d10f..04092219f7d1 100644

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

net/batman-adv/originator.h +4 -0
index 6f77d808a916..c2f4556f28df 100644

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

net/batman-adv/routing.c +3 -1
index 46278bfb8fdb..d1e8a147f381 100644

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

net/batman-adv/send.c +7 -2
index fba4dcfcfac2..81b1dbe79b70 100644

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

net/batman-adv/translation-table.c +17 -6
index ff625fedbc5e..d8b02e08928c 100644

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

net/bridge/br_device.c +28 -23

51 lines not on this page · raw message

net/can/af_can.c +2 -1
index d249874a366d..a27f8aad9e99 100644

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

net/can/bcm.c +2 -2
index 46f20bfafc0e..b57452a65fb9 100644

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

net/core/dev.c +12 -10
index 0ce469e5ec80..616eccf1497c 100644

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

net/core/fib_rules.c +7 -0
index f409e0bd35c0..185c341fafbd 100644

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

net/core/netpoll.c +3 -1
index 19fe9c717ced..81975f27e24a 100644

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

net/core/skbuff.c +25 -0
index 0b5149c5bc4a..deffb3776f93 100644

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

net/core/sock.c +4 -2
index 5393b4b719d7..fbc5cfbc2580 100644

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

net/ieee802154/6lowpan.c +20 -0
index a2d2456a557a..50a4131adffc 100644

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

net/ipv4/devinet.c +2 -1
index a1b5bcbd04ae..f4b34d8f92fe 100644

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

net/ipv4/ip_forward.c +69 -2

71 lines not on this page · raw message

net/ipv4/route.c +2 -2
index f8da28278014..e611651f4eaa 100644

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

net/ipv4/tcp_output.c +11 -2
index 7820f3a7dd70..a86fd64a7a14 100644

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

net/ipv6/addrconf.c +2 -0
index 4b6b720971b9..9c05d77a20d4 100644

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

net/ipv6/ip6_output.c +15 -2
index e6f931997996..2e5667d557fe 100644

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

net/sched/sch_tbf.c +3 -10
index 887e672f9d7d..758c3560abb8 100644

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

net/sctp/socket.c +32 -9

41 lines not on this page · raw message

net/sunrpc/auth_gss/auth_gss.c +11 -2
index 42fdfc634e56..a642fd616d3a 100644

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

net/sunrpc/xprtsock.c +5 -1
index dd9d295813cf..cad4a95e7484 100644

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

security/selinux/ss/policydb.c +4 -4
index c8985db63880..ee53ddca587b 100644

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

sound/pci/hda/patch_ca0132.c +7 -61

68 lines not on this page · raw message

sound/pci/hda/patch_realtek.c +2 -0
index c3eac77cf1f9..77e7c2ecc0a4 100644

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

sound/pci/hda/patch_sigmatel.c +33 -0
index 088a5afbd1b9..0f28aa2134dc 100644

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

sound/soc/codecs/da732x.c +12 -0
index dc0284dc9e6f..76fdf0a598bc 100644

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

sound/soc/codecs/da9055.c +9 -2
index fc9802d1281d..620f80467bc8 100644

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

sound/soc/codecs/max98090.c +10 -10
index 0569a4c3ae00..5f728808eed4 100644

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

sound/soc/codecs/rt5640.c +1 -0
index a3fb41179636..886924934aa5 100644

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

sound/soc/codecs/sta32x.c +38 -38

76 lines not on this page · raw message

sound/soc/codecs/wm8770.c +2 -2
index 89a18d82f303..5bce21013485 100644

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

sound/soc/codecs/wm8958-dsp2.c +1 -1
index b7488f190d2b..d4248e00160e 100644

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

sound/soc/fsl/imx-mc13783.c +0 -1
index 79cee782dbbf..a2fd7321b5a9 100644

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

sound/soc/fsl/imx-sgtl5000.c +6 -4
index f2beae78969f..1cb22dd034eb 100644

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

sound/soc/fsl/imx-wm8962.c +7 -4
index 3fd76bc391de..3a3d17ce6ba4 100644

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

sound/soc/txx9/txx9aclc-ac97.c +5 -3
index e0305a148568..9edd68db9f48 100644

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

sound/usb/mixer_maps.c +9 -0
index cc2dd1f0decb..0339d464791a 100644

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

tools/perf/builtin-trace.c +22 -0
index 8be17fc462ba..aaeee081a70d 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.