Linux 4.5.3
Greg KH
maintainerI'm announcing the release of the 4.5.3 kernel.
All users of the 4.5 kernel series must upgrade.
The updated 4.5.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.5.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/boot/dts/am33xx.dtsi | 2 arch/arm/boot/dts/am4372.dtsi | 4 arch/arm/boot/dts/am43x-epos-evm.dts | 5 arch/arm/boot/dts/armada-375.dtsi | 2 arch/arm/boot/dts/armada-385-linksys.dtsi | 2 arch/arm/boot/dts/pxa3xx.dtsi | 2 arch/arm/mach-exynos/Kconfig | 1 arch/arm/mach-omap2/cpuidle34xx.c | 69 +++++++++ arch/arm/mach-omap2/io.c | 1 arch/arm/mach-omap2/omap_hwmod.c | 8 - arch/arm/mach-prima2/Kconfig | 1 arch/powerpc/include/uapi/asm/cputable.h | 1 arch/powerpc/kernel/prom.c | 26 ++- arch/s390/include/asm/pci.h | 3 arch/x86/crypto/sha-mb/sha1_mb.c | 4 arch/x86/include/asm/hugetlb.h | 1 arch/x86/kernel/apic/vector.c | 3 arch/x86/kernel/cpu/mcheck/mce-genpool.c | 4 arch/x86/kvm/x86.c | 10 - arch/x86/mm/kmmio.c | 88 +++++++---- block/partition-generic.c | 13 + crypto/rsa-pkcs1pad.c | 12 - drivers/acpi/acpica/nsinit.c | 2 drivers/acpi/acpica/tbxfload.c | 14 + drivers/acpi/acpica/utxfinit.c | 25 +-- drivers/base/power/domain.c | 2 drivers/base/power/opp/core.c | 10 + drivers/block/loop.c | 6 drivers/block/paride/pd.c | 4 drivers/block/paride/pt.c | 4 drivers/bus/imx-weim.c | 2 drivers/bus/uniphier-system-bus.c | 2 drivers/char/tpm/tpm2-cmd.c | 22 +- drivers/cpufreq/intel_pstate.c | 5 drivers/crypto/ccp/ccp-crypto-aes-cmac.c | 3 drivers/crypto/ccp/ccp-crypto-sha.c | 3 drivers/crypto/talitos.c | 87 +++++++---- drivers/dma/dw/core.c | 34 ++-- drivers/dma/edma.c | 38 ----- drivers/dma/hsu/hsu.c | 9 - drivers/dma/hsu/hsu.h | 3 drivers/dma/omap-dma.c | 22 ++ drivers/dma/pxa_dma.c | 39 +++-- drivers/edac/i7core_edac.c | 2 drivers/edac/sb_edac.c | 32 +++- drivers/extcon/extcon-max77843.c | 2 drivers/firmware/efi/arm-init.c | 18 ++ drivers/firmware/efi/efi.c | 1 drivers/firmware/efi/vars.c | 37 +++- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 8 - drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 - drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 6 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 5 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | 1 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 2 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c | 2 drivers/gpu/drm/drm_dp_mst_topology.c | 29 +++ drivers/gpu/drm/i915/intel_csr.c | 3 drivers/gpu/drm/i915/intel_display.c | 2 drivers/gpu/drm/i915/intel_dp_mst.c | 8 - drivers/gpu/drm/i915/intel_lrc.c | 6 drivers/gpu/drm/i915/intel_pm.c | 33 +++- drivers/gpu/drm/i915/intel_ringbuffer.c | 42 ++++- drivers/gpu/drm/i915/intel_uncore.c | 6 drivers/gpu/drm/nouveau/nvkm/core/ramht.c | 6 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c | 2 drivers/gpu/drm/qxl/qxl_display.c | 13 + drivers/gpu/drm/qxl/qxl_drv.h | 2 drivers/gpu/drm/radeon/evergreen.c | 154 ++++++++++++++++++++ drivers/gpu/drm/radeon/evergreen_reg.h | 46 ++++++ drivers/gpu/drm/radeon/radeon_atpx_handler.c | 8 - drivers/gpu/drm/radeon/radeon_connectors.c | 7 drivers/gpu/drm/radeon/radeon_device.c | 8 - drivers/gpu/drm/radeon/radeon_ttm.c | 2 drivers/gpu/drm/radeon/si_dpm.c | 1 drivers/gpu/drm/ttm/ttm_bo.c | 17 -- drivers/hwtracing/stm/Kconfig | 1 drivers/i2c/busses/i2c-cpm.c | 4 drivers/i2c/busses/i2c-exynos5.c | 24 ++- drivers/infiniband/core/cache.c | 3 drivers/infiniband/core/ucm.c | 4 drivers/infiniband/core/ucma.c | 3 drivers/infiniband/core/uverbs_main.c | 5 drivers/infiniband/hw/mlx5/main.c | 2 drivers/infiniband/hw/qib/qib_file_ops.c | 5 drivers/input/misc/pmic8xxx-pwrkey.c | 7 drivers/input/tablet/gtco.c | 10 + drivers/iommu/amd_iommu.c | 87 ++++++++++- drivers/iommu/dma-iommu.c | 4 drivers/irqchip/irq-mxs.c | 2 drivers/irqchip/irq-sunxi-nmi.c | 4 drivers/md/dm-cache-metadata.c | 64 +++++--- drivers/media/usb/usbvision/usbvision-video.c | 7 drivers/media/v4l2-core/videobuf2-core.c | 20 ++ drivers/media/v4l2-core/videobuf2-memops.c | 2 drivers/media/v4l2-core/videobuf2-v4l2.c | 20 +- drivers/misc/Kconfig | 2 drivers/misc/ad525x_dpot.c | 2 drivers/misc/cxl/irq.c | 1 drivers/misc/mic/scif/scif_rma.c | 7 drivers/mmc/card/block.c | 18 -- drivers/mmc/host/Kconfig | 1 drivers/mmc/host/sdhci-acpi.c | 81 ++++++++++ drivers/mtd/nand/brcmnand/brcmnand.c | 34 ++++ drivers/mtd/nand/nand_base.c | 10 - drivers/mtd/nand/pxa3xx_nand.c | 2 drivers/mtd/spi-nor/spi-nor.c | 46 ------ drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 drivers/net/wireless/intel/iwlwifi/pcie/trans.c | 4 drivers/net/wireless/marvell/mwifiex/sta_event.c | 10 - drivers/net/wireless/marvell/mwifiex/wmm.c | 6 drivers/ntb/hw/amd/ntb_hw_amd.c | 30 ---- drivers/ntb/test/ntb_perf.c | 21 +- drivers/pci/host/pci-imx6.c | 20 +- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 9 - drivers/pinctrl/pinctrl-single.c | 6 drivers/platform/x86/toshiba_acpi.c | 2 drivers/pwm/pwm-brcmstb.c | 4 drivers/regulator/s5m8767.c | 13 + drivers/rtc/rtc-ds1685.c | 8 - drivers/rtc/rtc-hym8563.c | 2 drivers/rtc/rtc-max77686.c | 2 drivers/rtc/rtc-rx8025.c | 1 drivers/rtc/rtc-vr41xx.c | 13 - drivers/scsi/device_handler/Kconfig | 8 - drivers/scsi/megaraid/megaraid_sas_base.c | 3 drivers/spi/spi-rockchip.c | 7 drivers/staging/rdma/hfi1/TODO | 2 drivers/staging/rdma/hfi1/file_ops.c | 6 drivers/thermal/rockchip_thermal.c | 11 - drivers/usb/core/hcd-pci.c | 9 + drivers/usb/gadget/function/f_fs.c | 5 drivers/usb/host/xhci-mem.c | 6 drivers/usb/host/xhci-pci.c | 5 drivers/usb/host/xhci-plat.c | 13 + drivers/usb/host/xhci-plat.h | 2 drivers/usb/host/xhci-ring.c | 3 drivers/usb/host/xhci.c | 24 ++- drivers/usb/host/xhci.h | 2 drivers/usb/usbip/usbip_common.c | 11 + drivers/video/fbdev/Kconfig | 1 drivers/video/fbdev/amba-clcd.c | 15 +- drivers/video/fbdev/da8xx-fb.c | 7 fs/btrfs/disk-io.c | 2 fs/btrfs/tests/btrfs-tests.c | 6 fs/btrfs/tests/free-space-tree-tests.c | 1 fs/debugfs/inode.c | 2 fs/ext4/crypto.c | 4 fs/ext4/inode.c | 6 fs/f2fs/crypto_policy.c | 3 fs/f2fs/data.c | 13 - fs/f2fs/dir.c | 8 + fs/f2fs/file.c | 6 fs/f2fs/namei.c | 12 - fs/f2fs/super.c | 165 ++++++++++++---------- fs/proc/task_mmu.c | 33 ++++ include/asm-generic/futex.h | 8 - include/drm/drm_cache.h | 2 include/keys/trusted-type.h | 2 include/linux/cgroup-defs.h | 1 include/linux/cpuset.h | 6 include/linux/mlx5/device.h | 11 + include/linux/mm.h | 4 include/linux/platform_data/mmp_dma.h | 1 include/media/videobuf2-core.h | 8 + include/rdma/ib.h | 16 ++ include/sound/hda_i915.h | 5 include/uapi/linux/v4l2-dv-timings.h | 30 ++-- kernel/cgroup.c | 7 kernel/cpuset.c | 4 kernel/events/core.c | 15 +- kernel/futex.c | 27 +++ kernel/locking/mcs_spinlock.h | 8 - kernel/sched/core.c | 35 +--- kernel/workqueue.c | 29 +++ lib/assoc_array.c | 4 lib/lz4/lz4defs.h | 21 +- lib/mpi/mpicoder.c | 39 ++--- mm/huge_memory.c | 6 mm/memcontrol.c | 37 ++-- mm/memory.c | 40 +++++ mm/migrate.c | 8 - mm/slub.c | 22 +- mm/vmscan.c | 2 net/netlink/af_netlink.c | 2 net/sunrpc/cache.c | 6 net/wireless/nl80211.c | 2 scripts/kconfig/confdata.c | 12 - security/keys/trusted.c | 11 - sound/hda/hdac_i915.c | 62 ++++++-- sound/pci/hda/hda_generic.c | 6 sound/pci/hda/hda_intel.c | 59 ------- sound/pci/hda/patch_cirrus.c | 14 + sound/pci/hda/patch_hdmi.c | 1 sound/pci/hda/patch_realtek.c | 2 sound/pci/pcxhr/pcxhr_core.c | 1 sound/soc/codecs/rt5640.c | 2 sound/soc/codecs/rt5640.h | 36 ++-- sound/soc/codecs/ssm4567.c | 5 sound/soc/samsung/s3c-i2s-v2.c | 2 sound/soc/samsung/s3c-i2s-v2.h | 2 sound/soc/soc-dapm.c | 7 tools/perf/Documentation/perf-stat.txt | 8 + tools/perf/ui/browsers/hists.c | 85 ++++++----- tools/perf/util/event.c | 2 tools/perf/util/evlist.c | 4 tools/perf/util/evsel.h | 6 tools/perf/util/intel-pt.c | 2 virt/kvm/arm/arch_timer.c | 49 +++++- 213 files changed, 1994 insertions(+), 952 deletions(-)
Adrian Hunter (2):
perf intel-pt: Fix segfault tracing transactions
mmc: sdhci-acpi: Reduce Baytrail eMMC/SD/SDIO hangs
Ahmed Samy (1):
dm cache metadata: fix cmd_read_lock() acquiring write lock
Akash Goel (1):
drm/i915: Fixup the free space logic in ring_prepare
Al Viro (1):
unbreak allmodconfig KCONFIG_ALLCONFIG=...
Alex Deucher (6):
Revert "drm/radeon: disable runtime pm on PX laptops without dGPU power control" Revert "drm/amdgpu: disable runtime pm on PX laptops without dGPU power control" drm/amdgpu: use defines for CRTCs and AMFT blocks
drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
drm/radeon: add a quirk for a XFX R9 270X
drm/radeon: fix initial connector audio value
Alexander Kochetkov (1):
rtc: hym8563: fix invalid year calculation
Alexander Shishkin (1):
perf/core: Don't leak event in the syscall error path
Alexandre Belloni (1):
rtc: rx8025: remove rv8803 id
Allen Hubbe (1):
NTB: Remove _addr functions from ntb_hw_amd
Andres Freund (1):
perf hists: Fix determination of a callchain node's childlessness
Andy Shevchenko (3):
dmaengine: dw: fix master selection
dmaengine: hsu: correct use of channel status register
dmaengine: hsu: correct residue calculation of active descriptor
Anton Blanchard (3):
powerpc: scan_features() updates incorrect bits for REAL_LE
powerpc: Update cpu_user_features2 in scan_features()
powerpc: Update TM user feature bits in scan_features()
Ard Biesheuvel (2):
efi/arm64: Don't apply MEMBLOCK_NOMAP to UEFI memory map mapping
efi: Expose non-blocking set_variable() wrapper to efivars
Arnaldo Carvalho de Melo (1):
perf evlist: Reference count the cpu and thread maps at set_maps()
Arnd Bergmann (10):
xen kconfig: don't "select INPUT_XEN_KBDDEV_FRONTEND"
ASoC: s3c24xx: use const snd_soc_component_driver pointer
regulator: s5m8767: fix get_register() error handling
paride: make 'verbose' parameter an 'int' again
scsi_dh: force modular build if SCSI is a module
ntb: perf test: fix address space confusion
ARM: prima2: always enable reset controller
ARM: EXYNOS: select THERMAL_OF
megaraid_sas: add missing curly braces in ioctl handler stm class: Select CONFIG_SRCU
Azael Avalos (1):
toshiba_acpi: Fix regression caused by hotkey enabling value
Bastien Nocera (1):
ALSA: hda/realtek - Add ALC3234 headset mode for Optiplex 9020m
Ben Hutchings (1):
misc/bmp085: Enable building as a module
Ben Skeggs (1):
drm/nouveau/gr/gf100: select a stream master to fixup tfb offset queries
Borislav Petkov (1):
perf stat: Document --detailed option
Caesar Wang (1):
thermal: rockchip: fix a impossible condition caused by the warning
Chao Yu (2):
f2fs crypto: handle unexpected lack of encryption keys
f2fs crypto: make sure the encryption info is initialized on opendir(2)
Chris Phlipot (1):
perf tools: Fix perf script python database export crash
Chris Wilson (1):
drm/i915: Force ringbuffers to not be at offset 0
Conrad Kostecki (1):
ALSA: hda - Add dock support for ThinkPad X260
Cyrille Pitchen (1):
mtd: spi-nor: remove micron_quad_enable()
Dan Carpenter (4):
drm/amdkfd: uninitialized variable in dbgdev_wave_control_set_registers()
misc: mic/scif: fix wrap around tests
rtc: ds1685: passing bogus values to irq_restore
extcon: max77843: Use correct size for reading the interrupt register
David Matlack (1):
kvm: x86: do not leak guest xcr0 into host interrupt handlers
Davidlohr Bueso (1):
futex: Acknowledge a new waiter in counter before plist
Dmitry Ivanov (2):
nl80211: check netlink protocol in socket release notification
netlink: don't send NETLINK_URELEASE for unbound sockets
Doug Ledford (1):
IB/core: Fix oops in ib_cache_gid_set_default_gid
Emmanuel Grumbach (1):
iwlwifi: pcie: lower the debug level for RSA semaphore access
Eryu Guan (1):
ext4: fix NULL pointer dereference in ext4_mark_inode_dirty()
Ezequiel García (1):
mtd: nand: Drop mtd.owner requirement in nand_scan
Fabio Estevam (2):
Revert "PCI: imx6: Add support for active-low reset GPIO"
bus: imx-weim: Take the 'status' property value into account
Flora Cui (1):
drm/ttm: fix kref count mess in ttm_bo_move_to_lru_tail
Florian Fainelli (1):
mtd: brcmnand: Fix v7.1 register offsets
Franklin S Cooper Jr (2):
ARM: dts: am33xx: Fix GPMC dma properties
ARM: dts: am437x: Fix GPMC dma properties
Geert Uytterhoeven (1):
rtc: vr41xx: Wire up alarm_irq_enable
Gerald Schaefer (1):
numa: fix /proc/<pid>/numa_maps for THP
Greg Kroah-Hartman (1):
Linux 4.5.3
Grigori Goronzy (1):
drm/amdgpu: fix regression on CIK (v2)
Hans Verkuil (1):
v4l2-dv-timings.h: fix polarity for 4k formats
Horia Geant? (1):
crypto: talitos - fix AEAD tcrypt tests
Huacai Chen (1):
drm: Loongson-3 doesn't fully support wc memory
Huibin Hong (1):
spi/rockchip: Make sure spi clk is on in rockchip_spi_set_cs
Ignat Korchagin (1):
USB: usbip: fix potential out-of-bounds write
Ilia Mirkin (1):
drm/nouveau/core: use vzalloc for allocating ramht
Jaegeuk Kim (5):
f2fs crypto: fix corrupted symlink in encrypted case
f2fs: cover large section in sanity check of super ext4/fscrypto: avoid RCU lookup in d_revalidate
f2fs: do f2fs_balance_fs when block is allocated
f2fs: don't need to call set_page_dirty for io error
Jan Beulich (1):
x86/mm/xen: Suppress hugetlbfs in PV guests
Jarkko Sakkinen (2):
tpm: fix checks for policy digest existence in tpm2_seal_trusted()
tpm: fix: set continueSession attribute for the unseal operation
Jason Gunthorpe (1):
IB/security: Restrict use of the write() interface
Javier Martinez Canillas (1):
i2c: exynos5: Fix possible ABBA deadlock by keeping I2C clock prepared
Jerome Marchand (1):
assoc_array: don't call compare_object() on a node
Jesper Dangaard Brouer (1):
slub: clean up code for kmem cgroup support to kmem_cache_free_bulk
Jiri Kosina (1):
btrfs: cleaner_kthread() doesn't need explicit freeze
Joerg Roedel (1):
iommu/amd: Fix checking of pci dma aliases
John Keeping (1):
drm/qxl: fix cursor position with non-zero hotspot
Jon Hunter (1):
PM / Domains: Fix removal of a subdomain
Jonas Eymann (1):
crypto: talitos - fix crash in talitos_cra_init()
Jérôme Glisse (1):
drm/radeon: forbid mapping of userptr bo through radeon device file
Karol Herbst (1):
x86/mm/kmmio: Fix mmiotrace for hugepages
Keerthy (1):
pinctrl: single: Fix pcs_parse_bits_in_pinctrl_entry to use __ffs than ffs
Keith Busch (1):
x86/apic: Handle zero vector gracefully in clear_vector_irq()
Kinglong Mee (1):
btrfs: fix memory leak of fs_info in block group cache
Konstantin Khlebnikov (1):
mm/huge_memory: replace VM_NO_THP VM_BUG_ON with actual VMA check
Krzysztof Kozlowski (1):
rtc: max77686: Properly handle regmap_irq_get_virq() error code
Kunihiko Hayashi (1):
bus: uniphier-system-bus: fix condition of overlap check
Lars-Peter Clausen (2):
usb: gadget: f_fs: Fix use-after-free
ASoC: ssm4567: Reset device before regcache_sync()
Laszlo Ersek (1):
efi: Fix out-of-bounds read in variable_matches()
Linus Walleij (1):
video: ARM CLCD: runtime check for Versatile
Lior Amsalem (1):
ARM: dts: armada-375: use armada-370-sata for SATA
Lokesh Vutla (2):
ARM: dts: AM43x-epos: Fix clk parent for synctimer
ARM: OMAP2+: hwmod: Fix updating of sysconfig register
Lu Baolu (1):
usb: xhci: fix wild pointers in xhci_mem_cleanup
Lu, Han (1):
ALSA: hda - add PCI ID for Intel Broxton-T
Lv Zheng (1):
ACPICA / Interpreter: Fix a regression triggered because of wrong Linux ECDT support
Lyude (2):
drm/i915: Fix race condition in intel_dp_destroy_mst_connector() drm/dp/mst: Restore primary hub guid on resume
Marc Zyngier (1):
KVM: arm/arm64: Handle forward time correction gracefully
Marcin Ślusarz (1):
perf tools: handle spaces in file names obtained from /proc/pid/maps
Mark Brown (1):
ASoC: dapm: Make sure we have a card when displaying component widgets
Mat Martineau (1):
drm/i915/skl: Fix DMC load on Skylake J0 and K0
Mathias Nyman (2):
xhci: resume USB 3 roothub first
xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers
Matti Gottlieb (1):
iwlwifi: mvm: fix memory leak in paging
Michael Ellerman (1):
i2c: cpm: Fix build break due to incompatible pointer types
Michael Hennerich (1):
drivers/misc/ad525x_dpot: AD5274 fix RDAC read back errors
Michael Neuling (1):
cxl: Keep IRQ mappings on context teardown
Michal Marek (1):
lib/mpi: Endianness fix
Mika Kuoppala (1):
drm/i915/skl: Fix spurious gpu hang with gt3/gt4 revs
Mike Snitzer (1):
dm cache metadata: fix READ_LOCK macros and cleanup WRITE_LOCK macros
Minchan Kim (2):
mm: vmscan: reclaim highmem zone if buffer_heads is over limit mm/hwpoison: fix wrong num_poisoned_pages accounting
Ming Lei (2):
block: partition: initialize percpuref before sending out KOBJ_ADD
block: loop: fix filesystem corruption in case of aio/dio
Namhyung Kim (2):
perf hists browser: Only offer symbol scripting when a symbol is under the cursor perf hists browser: Fix dump to show correct callchain style
NeilBrown (1):
sunrpc/cache: drop reference when sunrpc_cache_pipe_upcall() detects a race
Nishanth Menon (1):
ARM: OMAP2: Fix up interconnect barrier initialization for DRA7
Pali Rohár (1):
ARM: OMAP3: Add cpuidle parameters table for omap3430
Patrick Uiterwijk (1):
ARM: mvebu: Correct unit address for linksys
Peter Griffin (1):
usb: host: xhci-plat: Make enum xhci_plat_type start at a non zero value
Peter Ujfalusi (2):
dmaengine: omap-dma: Fix polled channel completion detection and handling
dmaengine: edma: Remove dynamic TPTC power management feature
Peter Zijlstra (3):
sched/cgroup: Fix/cleanup cgroup teardown/init locking/mcs: Fix mcs_spin_lock() ordering perf/core: Fix time tracking bug with multiplexing
Rafal Redzimski (1):
usb: xhci: applying XHCI_PME_STUCK_QUIRK to Intel BXT B0 host
Rex Zhu (1):
drm/amdgpu: when suspending, if uvd/vce was running. need to cancel delay work.
Ricardo Ribalda Delgado (2):
vb2-memops: Fix over allocation of frame vectors
media: vb2: Fix regression on poll() for RW mode
Robert Dobrowolski (1):
usb: hcd: out of bounds access in for_each_companion
Robert Jarzmik (4):
dmaengine: pxa_dma: fix the maximum requestor line
mtd: nand: pxa3xx_nand: fix dmaengine initialization
ARM: dts: pxa: fix dma engine node to pxa3xx-nand
dmaengine: mmp-pdma: add number of requestors
Robin Murphy (1):
iommu/dma: Restore scatterlist offsets correctly
Romain Perier (1):
asm-generic/futex: Re-enable preemption in futex_atomic_cmpxchg_inatomic()
Roman Pen (1):
workqueue: fix ghost PENDING flag while doing MQ IO
Rui Salvaterra (1):
lib: lz4: fixed zram with lz4 on big endian machines
Sagi Grimberg (1):
IB/mlx5: Expose correct max_sge_rd limit
Sakari Ailus (2):
videobuf2-core: Check user space planes array in dqbuf
videobuf2-v4l2: Verify planes array in buffer dequeueing
Sebastian Andrzej Siewior (1):
futex: Handle unlock_pi race gracefully
Sebastian Ott (1):
s390/pci: add extra padding to function measurement block
Seth Forshee (1):
debugfs: Make automount point inodes permanently empty
Shawn Lin (1):
f2fs: slightly reorganize read_raw_super_block
Sonny Jiang (1):
amdgpu/uvd: add uvd fw version for amdgpu
Srinivas Pandruvada (1):
cpufreq: intel_pstate: Fix processing for turbo activation ratio
Stephen Boyd (1):
Input: pmic8xxx-pwrkey - fix algorithm for converting trigger delay
Steve Capper (1):
mm: exclude HugeTLB pages from THP page_mapped() logic
Sugar Zhang (1):
ASoC: rt5640: Correct the digital interface data select
Sushaanth Srirangapathi (1):
fbdev: da8xx-fb: fix videomodes of lcd panels
Tadeusz Struk (1):
crypto: rsa-pkcs1pad - fix dst len
Takashi Iwai (4):
ALSA: hda - Don't trust the reported actual power state
ALSA: hda - Keep powering up ADCs on Cirrus codecs
ALSA: pcxhr: Fix missing mutex unlock
ALSA: hda - Update BCLK also at hotplug for i915 HSW/BDW
Tejun Heo (2):
cgroup, cpuset: replace cpuset_post_attach_flush() with cgroup_subsys->post_attach callback
memcg: relocate charge moving from ->attach to ->post_attachTero Kristo (1):
ARM: dts: am43xx: fix edma memcpy channel allocation
Tom Lendacky (1):
crypto: ccp - Prevent information leakage on export
Tony Luck (4):
x86/mce: Avoid using object after free in genpool
x86 EDAC, sb_edac.c: Repair damage introduced when "fixing" channel address x86 EDAC, sb_edac.c: Take account of channel hashing when needed
EDAC: i7core, sb_edac: Don't return NOTIFY_BAD from mce_decoder callback
Ulf Hansson (1):
mmc: block: Use the mmc host device index as the mmcblk device index
Ville Syrjälä (6):
drm/i915: Pass the correct encoder to intel_ddi_clk_select() with MST drm/i915: Cleanup phys status page too
drm/i915: Use the active wm config for merging on ILK-BDW drm/i915: Start WM computation from scratch on ILK-BDW drm/i915: skl_update_scaler() wants a rotation bitmask instead of bit number drm/i915: Use fw_domains_put_with_fifo() on HSW
Viresh Kumar (1):
PM / OPP: Initialize u_volt_min/max to a valid value
Vitaly Prosyak (1):
drm/radeon: fix vertical bars appear on monitor (v2)
Vladimir Zapolskiy (3):
pwm: brcmstb: Fix check of devm_ioremap_resource() return code irqchip/sunxi-nmi: Fix error check of of_io_request_and_map() irqchip/mxs: Fix error check of of_io_request_and_map()
Vladis Dronov (2):
usbvision: revert commit 588afcc1
Input: gtco - fix crash on detecting device without endpoints
Xiaodong Liu (1):
crypto: sha1-mb - use corrcet pointer while completing jobs
Yingjoe Chen (1):
pinctrl: mediatek: correct debounce time unit in mtk_gpio_set_debounce
Yoshihiro Shimoda (2):
usb: host: xhci: add a new quirk XHCI_NO_64BIT_SUPPORT
usb: host: xhci-plat: fix cannot work if R-Car Gen2/3 run on above 4GB phys
chunfan chen (1):
mwifiex: fix IBSS data path issue.
[email protected] (2):
drm/dp/mst: Validate port in drm_dp_payload_send_msg() drm/dp/mst: Get validated port ref in drm_dp_update_payload_part1()
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 5 -SUBLEVEL = 2 +SUBLEVEL = 3 EXTRAVERSION = NAME = Blurry Fish Butt
arch/arm/boot/dts/am33xx.dtsi +1 -1
@@ -860,7 +860,7 @@ ti,no-idle-on-init; reg = <0x50000000 0x2000>; interrupts = <100>; - dmas = <&edma 52>; + dmas = <&edma 52 0>; dma-names = "rxtx"; gpmc,num-cs = <7>; gpmc,num-waitpins = <2>;
arch/arm/boot/dts/am4372.dtsi +2 -2
@@ -207,7 +207,7 @@ ti,tptcs = <&edma_tptc0 7>, <&edma_tptc1 5>, <&edma_tptc2 0>; - ti,edma-memcpy-channels = <32 33>; + ti,edma-memcpy-channels = <58 59>; }; edma_tptc0: tptc@49800000 {
@@ -884,7 +884,7 @@ gpmc: gpmc@50000000 { compatible = "ti,am3352-gpmc"; ti,hwmods = "gpmc"; - dmas = <&edma 52>; + dmas = <&edma 52 0>; dma-names = "rxtx"; clocks = <&l3s_gclk>; clock-names = "fck";
arch/arm/boot/dts/am43x-epos-evm.dts +5 -0
@@ -792,3 +792,8 @@ tx-num-evt = <32>; rx-num-evt = <32>; }; + +&synctimer_32kclk { + assigned-clocks = <&mux_synctimer32k_ck>; + assigned-clock-parents = <&clkdiv32k_ick>; +};
arch/arm/boot/dts/armada-375.dtsi +1 -1
@@ -529,7 +529,7 @@ }; sata@a0000 { - compatible = "marvell,orion-sata"; + compatible = "marvell,armada-370-sata"; reg = <0xa0000 0x5000>; interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; clocks = <&gateclk 14>, <&gateclk 20>;
arch/arm/boot/dts/armada-385-linksys.dtsi +1 -1
@@ -117,7 +117,7 @@ }; /* USB part of the eSATA/USB 2.0 port */ - usb@50000 { + usb@58000 { status = "okay"; };
arch/arm/boot/dts/pxa3xx.dtsi +1 -1
@@ -30,7 +30,7 @@ reg = <0x43100000 90>; interrupts = <45>; clocks = <&clks CLK_NAND>; - dmas = <&pdma 97>; + dmas = <&pdma 97 3>; dma-names = "data"; #address-cells = <1>; #size-cells = <1>;
arch/arm/mach-exynos/Kconfig +1 -0
@@ -27,6 +27,7 @@ menuconfig ARCH_EXYNOS select S5P_DEV_MFC select SRAM select THERMAL + select THERMAL_OF select MFD_SYSCON select CLKSRC_EXYNOS_MCT select POWER_RESET
arch/arm/mach-omap2/cpuidle34xx.c +68 -1
85 lines not on this page · raw message
arch/arm/mach-omap2/io.c +1 -0
@@ -368,6 +368,7 @@ void __init omap5_map_io(void)void __init dra7xx_map_io (void ) {iotable_init (dra7xx_io_desc,ARRAY_SIZE (dra7xx_io_desc)); +omap_barriers_init (); }#endif /*
arch/arm/mach-omap2/omap_hwmod.c +4 -4
@@ -1416,9 +1416,7 @@ static void _enable_sysc(struct omap_hwmod *oh) (sf & SYSC_HAS_CLOCKACTIVITY))_set_clockactivity (oh, oh->class->sysc->clockact, &v); -/* If the cached value is the same as the new value, skip the write */ -if (oh->_sysc_cache != v) -_write_sysconfig (v, oh); +_write_sysconfig (v, oh);/* * Set the autoidle bit only after setting the smartidle bit
@@ -1481,7 +1479,9 @@ static void _idle_sysc(struct omap_hwmod *oh)_set_master_standbymode (oh, idlemode, &v); } -_write_sysconfig (v, oh); +/* If the cached value is the same as the new value, skip the write */ +if (oh->_sysc_cache != v) +_write_sysconfig (v, oh); }/**
arch/arm/mach-prima2/Kconfig +1 -0
@@ -2,6 +2,7 @@ menuconfig ARCH_SIRF bool "CSR SiRF" depends on ARCH_MULTI_V7 select ARCH_HAS_RESET_CONTROLLER + select RESET_CONTROLLER select ARCH_REQUIRE_GPIOLIB select GENERIC_IRQ_CHIP select NO_IOPORT_MAP
arch/powerpc/include/uapi/asm/cputable.h +1 -0
@@ -31,6 +31,7 @@#define PPC_FEATURE_PSERIES_PERFMON_COMPAT \ 0x00000040 +/* Reserved - do not use 0x00000004 */ #define PPC_FEATURE_TRUE_LE 0x00000002#define PPC_FEATURE_PPC_LE 0x00000001
arch/powerpc/kernel/prom.c +15 -11
@@ -148,23 +148,25 @@ static struct ibm_pa_feature {unsigned long cpu_features;/* CPU_FTR_xxx bit */ unsigned long mmu_features;/* MMU_FTR_xxx bit */ unsigned int cpu_user_ftrs;/* PPC_FEATURE_xxx bit */ +unsigned int cpu_user_ftrs2;/* PPC_FEATURE2_xxx bit */ unsigned char pabyte;/* byte number in ibm,pa-features */ unsigned char pabit;/* bit number (big-endian) */ unsigned char invert;/* if 1, pa bit set => clear feature */ } ibm_pa_features[] __initdata = { - {0, 0, PPC_FEATURE_HAS_MMU, 0, 0, 0}, - {0, 0, PPC_FEATURE_HAS_FPU, 0, 1, 0}, - {CPU_FTR_CTRL, 0, 0, 0, 3, 0}, - {CPU_FTR_NOEXECUTE, 0, 0, 0, 6, 0}, - {CPU_FTR_NODSISRALIGN, 0, 0, 1, 1, 1}, - {0, MMU_FTR_CI_LARGE_PAGE, 0, 1, 2, 0}, - {CPU_FTR_REAL_LE, PPC_FEATURE_TRUE_LE, 5, 0, 0}, + {0, 0, PPC_FEATURE_HAS_MMU, 0, 0, 0, 0}, + {0, 0, PPC_FEATURE_HAS_FPU, 0, 0, 1, 0}, + {CPU_FTR_CTRL, 0, 0, 0, 0, 3, 0}, + {CPU_FTR_NOEXECUTE, 0, 0, 0, 0, 6, 0}, + {CPU_FTR_NODSISRALIGN, 0, 0, 0, 1, 1, 1}, + {0, MMU_FTR_CI_LARGE_PAGE, 0, 0, 1, 2, 0}, + {CPU_FTR_REAL_LE, 0, PPC_FEATURE_TRUE_LE, 0, 5, 0, 0}, /* - * If the kernel doesn't support TM (ie. CONFIG_PPC_TRANSACTIONAL_MEM=n), - * we don't want to turn on CPU_FTR_TM here, so we use CPU_FTR_TM_COMP - * which is 0 if the kernel doesn't support TM. + * If the kernel doesn't support TM (ie CONFIG_PPC_TRANSACTIONAL_MEM=n), + * we don't want to turn on TM here, so we use the *_COMP versions + * which are 0 if the kernel doesn't support TM. */ - {CPU_FTR_TM_COMP, 0, 0, 22, 0, 0}, + {CPU_FTR_TM_COMP, 0, 0, + PPC_FEATURE2_HTM_COMP|PPC_FEATURE2_HTM_NOSC_COMP, 22, 0, 0}, }; static void __init scan_features(unsigned long node, const unsigned char *ftrs,
@@ -195,10 +197,12 @@ static void __init scan_features(unsigned long node, const unsigned char *ftrs,if (bit ^ fp->invert) { cur_cpu_spec->cpu_features |= fp->cpu_features; cur_cpu_spec->cpu_user_features |= fp->cpu_user_ftrs; + cur_cpu_spec->cpu_user_features2 |= fp->cpu_user_ftrs2; cur_cpu_spec->mmu_features |= fp->mmu_features; }else { cur_cpu_spec->cpu_features &= ~fp->cpu_features; cur_cpu_spec->cpu_user_features &= ~fp->cpu_user_ftrs; + cur_cpu_spec->cpu_user_features2 &= ~fp->cpu_user_ftrs2; cur_cpu_spec->mmu_features &= ~fp->mmu_features; } }
arch/s390/include/asm/pci.h +2 -1
@@ -45,7 +45,8 @@ struct zpci_fmb {u64 rpcit_ops;u64 dma_rbytes;u64 dma_wbytes; -} __packed__aligned(64) ; +u64 pad[2 ]; +} __packed__aligned(128) ;enum zpci_state {ZPCI_FN_STATE_RESERVED ,
arch/x86/crypto/sha-mb/sha1_mb.c +2 -2
@@ -453,10 +453,10 @@ static int sha_complete_job(struct mcryptd_hash_request_ctx *rctx, req =cast_mcryptd_ctx_to_req (req_ctx);if (irqs_disabled ()) - rctx->complete (&req->base, ret); + req_ctx->complete (&req->base, ret);else {local_bh_disable (); - rctx->complete (&req->base, ret); + req_ctx->complete (&req->base, ret);local_bh_enable (); } }
arch/x86/include/asm/hugetlb.h +1 -0
@@ -4,6 +4,7 @@#include <asm/page.h> #include <asm-generic/hugetlb.h> +#define hugepages_supported () cpu_has_pse static inline int is_hugepage_only_range(struct mm_struct *mm, unsigned long addr,
arch/x86/kernel/apic/vector.c +2 -1
@@ -256,7 +256,8 @@ static void clear_irq_vector(int irq, struct apic_chip_data *data)struct irq_desc *desc;int cpu, vector; -BUG_ON (!data->cfg.vector); +if (!data->cfg.vector) +return ; vector = data->cfg.vector;for_each_cpu_and (cpu, data->domain, cpu_online_mask)
arch/x86/kernel/cpu/mcheck/mce-genpool.c +2 -2
@@ -29,7 +29,7 @@ static char gen_pool_buf[MCE_POOLSZ];void mce_gen_pool_process (void ) {struct llist_node *head; -struct mce_evt_llist *node; +struct mce_evt_llist *node, *tmp;struct mce *mce; head =llist_del_all (&mce_event_llist);
@@ -37,7 +37,7 @@ void mce_gen_pool_process(void)return ; head =llist_reverse_order (head); -llist_for_each_entry (node, head, llnode) { +llist_for_each_entry_safe (node, tmp, head, llnode) { mce = &node->mce;atomic_notifier_call_chain (&x86_mce_decoder_chain,0 , mce);gen_pool_free (mce_evt_pool, (unsigned long )node,sizeof (*node));
arch/x86/kvm/x86.c +4 -6
@@ -697,7 +697,6 @@ static int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr)if ((xcr0 &XFEATURE_MASK_AVX512 ) !=XFEATURE_MASK_AVX512 )return 1 ; } -kvm_put_guest_xcr0 (vcpu); vcpu->arch.xcr0 = xcr0;if ((xcr0 ^ old_xcr0) &XFEATURE_MASK_EXTEND )
@@ -6569,8 +6568,6 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) kvm_x86_ops->prepare_guest_switch (vcpu);if (vcpu->fpu_active)kvm_load_guest_fpu (vcpu); -kvm_load_guest_xcr0 (vcpu); - vcpu->mode =IN_GUEST_MODE ;srcu_read_unlock (&vcpu->kvm->srcu, vcpu->srcu_idx);
@@ -6593,6 +6590,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) goto cancel_injection; } +kvm_load_guest_xcr0 (vcpu); +if (req_immediate_exit)smp_send_reschedule (vcpu->cpu);
@@ -6642,6 +6641,8 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu) vcpu->mode =OUTSIDE_GUEST_MODE ;smp_wmb (); +kvm_put_guest_xcr0 (vcpu); +/* Interrupt is enabled by handle_external_intr() */ kvm_x86_ops->handle_external_intr (vcpu);
@@ -7289,7 +7290,6 @@ void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)* and assume host would use all available bits. * Guest xcr0 would be loaded later. */ -kvm_put_guest_xcr0 (vcpu); vcpu->guest_fpu_loaded =1 ;__kernel_fpu_begin ();__copy_kernel_to_fpregs (&vcpu->arch.guest_fpu.state);
@@ -7298,8 +7298,6 @@ void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)void kvm_put_guest_fpu (struct kvm_vcpu *vcpu) { -kvm_put_guest_xcr0 (vcpu); -if (!vcpu->guest_fpu_loaded) { vcpu->fpu_counter =0 ;return ;
arch/x86/mm/kmmio.c +59 -29
222 lines not on this page · raw message
block/partition-generic.c +10 -3
@@ -350,15 +350,20 @@ struct hd_struct *add_partition(struct gendisk *disk, int partno, goto out_del; } + err =hd_ref_init (p); +if (err) { +if (flags &ADDPART_FLAG_WHOLEDISK ) + goto out_remove_file; + goto out_del; + } +/* everything is up and running, commence */ rcu_assign_pointer (ptbl->part[partno], p);/* suppress uevent if the disk suppresses it */ if (!dev_get_uevent_suppress (ddev))kobject_uevent (&pdev->kobj,KOBJ_ADD ); - -if (!hd_ref_init (p)) -return p; +return p; out_free_info:free_part_info (p);
@@ -367,6 +372,8 @@ out_free_stats: out_free:kfree (p);return ERR_PTR (err); +out_remove_file: +device_remove_file (pdev, &dev_attr_whole_disk); out_del:kobject_put (p->holder_dir);device_del (pdev);
crypto/rsa-pkcs1pad.c +6 -6
@@ -310,16 +310,16 @@ static int pkcs1pad_decrypt(struct akcipher_request *req) req_ctx->child_req.src = req->src; req_ctx->child_req.src_len = req->src_len; req_ctx->child_req.dst = req_ctx->out_sg; - req_ctx->child_req.dst_len = ctx->key_size -1 ; + req_ctx->child_req.dst_len = ctx->key_size ; - req_ctx->out_buf =kmalloc (ctx->key_size -1 , + req_ctx->out_buf =kmalloc (ctx->key_size, (req->base.flags &CRYPTO_TFM_REQ_MAY_SLEEP ) ?GFP_KERNEL :GFP_ATOMIC );if (!req_ctx->out_buf)return -ENOMEM ;pkcs1pad_sg_set_buf (req_ctx->out_sg, req_ctx->out_buf, - ctx->key_size -1 ,NULL ); + ctx->key_size,NULL );akcipher_request_set_tfm (&req_ctx->child_req, ctx->child); akcipher_request_set_callback(&req_ctx->child_req, req->base.flags,
@@ -491,16 +491,16 @@ static int pkcs1pad_verify(struct akcipher_request *req) req_ctx->child_req.src = req->src; req_ctx->child_req.src_len = req->src_len; req_ctx->child_req.dst = req_ctx->out_sg; - req_ctx->child_req.dst_len = ctx->key_size -1 ; + req_ctx->child_req.dst_len = ctx->key_size; - req_ctx->out_buf =kmalloc (ctx->key_size -1 , + req_ctx->out_buf =kmalloc (ctx->key_size, (req->base.flags &CRYPTO_TFM_REQ_MAY_SLEEP ) ?GFP_KERNEL :GFP_ATOMIC );if (!req_ctx->out_buf)return -ENOMEM ;pkcs1pad_sg_set_buf (req_ctx->out_sg, req_ctx->out_buf, - ctx->key_size -1 ,NULL ); + ctx->key_size,NULL );akcipher_request_set_tfm (&req_ctx->child_req, ctx->child); akcipher_request_set_callback(&req_ctx->child_req, req->base.flags,
drivers/acpi/acpica/nsinit.c +2 -0
@@ -83,6 +83,8 @@ acpi_status acpi_ns_initialize_objects(void)ACPI_FUNCTION_TRACE (ns_initialize_objects); +ACPI_DEBUG_PRINT ((ACPI_DB_EXEC , +"[Init] Completing Initialization of ACPI Objects\n" ));ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH ,"**** Starting initialization of namespace objects ****\n" )); ACPI_DEBUG_PRINT_RAW((ACPI_DB_INIT,
drivers/acpi/acpica/tbxfload.c +14 -0
@@ -83,6 +83,20 @@ acpi_status __init acpi_load_tables(void) "While loading namespace from ACPI tables")); } +if (!acpi_gbl_group_module_level_code) { +/* +* Initialize the objects that remain uninitialized. This +* runs the executable AML that may be part of the +* declaration of these objects: +* operation_regions, buffer_fields, Buffers, and Packages. +*/ + status =acpi_ns_initialize_objects (); +if (ACPI_FAILURE (status)) { +return_ACPI_STATUS (status); + } + } + + acpi_gbl_reg_methods_enabled = TRUE;return_ACPI_STATUS (status); }
drivers/acpi/acpica/utxfinit.c +11 -14
@@ -267,7 +267,6 @@ acpi_status __init acpi_initialize_objects(u32 flags)* initialized, even if they contain executable AML (see the call to * acpi_ns_initialize_objects below). */ - acpi_gbl_reg_methods_enabled = TRUE;if (!(flags &ACPI_NO_ADDRESS_SPACE_INIT )) {ACPI_DEBUG_PRINT ((ACPI_DB_EXEC ,"[Init] Executing _REG OpRegion methods\n" ));
@@ -299,20 +298,18 @@ acpi_status __init acpi_initialize_objects(u32 flags)*/ if (acpi_gbl_group_module_level_code) {acpi_ns_exec_module_code_list (); - } -/* -* Initialize the objects that remain uninitialized. This runs the -* executable AML that may be part of the declaration of these objects: -* operation_regions, buffer_fields, Buffers, and Packages. -*/ -if (!(flags &ACPI_NO_OBJECT_INIT )) { -ACPI_DEBUG_PRINT ((ACPI_DB_EXEC , -"[Init] Completing Initialization of ACPI Objects\n" )); - - status =acpi_ns_initialize_objects (); -if (ACPI_FAILURE (status)) { -return_ACPI_STATUS (status); +/* +* Initialize the objects that remain uninitialized. This +* runs the executable AML that may be part of the +* declaration of these objects: +* operation_regions, buffer_fields, Buffers, and Packages. +*/ +if (!(flags &ACPI_NO_OBJECT_INIT )) { + status =acpi_ns_initialize_objects (); +if (ACPI_FAILURE (status)) { +return_ACPI_STATUS (status); + } } }
drivers/base/power/domain.c +1 -1
@@ -1378,7 +1378,7 @@ int pm_genpd_remove_subdomain(struct generic_pm_domain *genpd,mutex_lock (&subdomain->lock);mutex_lock_nested (&genpd->lock,SINGLE_DEPTH_NESTING ); -if (!list_empty (&subdomain->slave_links) || subdomain->device_count) { +if (!list_empty (&subdomain->master_links) || subdomain->device_count) {pr_warn ("%s: unable to remove subdomain %s\n" , genpd->name, subdomain->name); ret = -EBUSY ;
drivers/base/power/opp/core.c +8 -2
@@ -844,8 +844,14 @@ static int opp_parse_supplies(struct dev_pm_opp *opp, struct device *dev, } opp->u_volt = microvolt[0 ]; - opp->u_volt_min = microvolt[1 ]; - opp->u_volt_max = microvolt[2 ]; + +if (count ==1 ) { + opp->u_volt_min = opp->u_volt; + opp->u_volt_max = opp->u_volt; + }else { + opp->u_volt_min = microvolt[1 ]; + opp->u_volt_max = microvolt[2 ]; + }/* Search for "opp-microamp-<name>" */ prop =NULL ;
drivers/block/loop.c +6 -0
@@ -488,6 +488,12 @@ static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd, bvec =__bvec_iter_bvec (bio->bi_io_vec, bio->bi_iter);iov_iter_bvec (&iter,ITER_BVEC | rw, bvec,bio_segments (bio),blk_rq_bytes (cmd->rq)); +/* +* This bio may be started from the middle of the 'bvec' +* because of bio splitting, so offset from the bvec must +* be passed to iov iterator +*/ + iter.iov_offset = bio->bi_iter.bi_bvec_done; cmd->iocb.ki_pos = pos; cmd->iocb.ki_filp = file;
drivers/block/paride/pd.c +2 -2
@@ -126,7 +126,7 @@*/ #include <linux/types.h> -static bool verbose =0 ; +static int verbose =0 ;static int major =PD_MAJOR ;static char *name =PD_NAME ;static int cluster =64 ;
@@ -161,7 +161,7 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_GEO, D_SBY, D_DLY, D_SLV};static DEFINE_MUTEX (pd_mutex);static DEFINE_SPINLOCK (pd_lock); -module_param (verbose, bool,0 ); +module_param (verbose, int,0 );module_param (major, int,0 );module_param (name, charp,0 );module_param (cluster, int,0 );
drivers/block/paride/pt.c +2 -2
@@ -117,7 +117,7 @@*/ -static bool verbose =0 ; +static int verbose =0 ;static int major =PT_MAJOR ;static char *name =PT_NAME ;static int disable =0 ;
@@ -152,7 +152,7 @@ static int (*drives[4])[6] = {&drive0, &drive1, &drive2, &drive3};#include <asm/uaccess.h> -module_param (verbose, bool,0 ); +module_param (verbose, int,0 );module_param (major, int,0 );module_param (name, charp,0 );module_param_array (drive0, int,NULL ,0 );
drivers/bus/imx-weim.c +1 -1
@@ -150,7 +150,7 @@ static int __init weim_parse_dt(struct platform_device *pdev,return ret; } -for_each_child_of_node (pdev->dev.of_node, child) { +for_each_available_child_of_node (pdev->dev.of_node, child) {if (!child->name)continue ;
drivers/bus/uniphier-system-bus.c +1 -1
@@ -108,7 +108,7 @@ static int uniphier_system_bus_check_overlap(for (i =0 ; i <ARRAY_SIZE (priv->bank); i++) {for (j = i +1 ; j <ARRAY_SIZE (priv->bank); j++) { -if (priv->bank[i].end > priv->bank[j].base || +if (priv->bank[i].end > priv->bank[j].base && priv->bank[i].base < priv->bank[j].end) { dev_err(priv->dev, "region overlap between bank%d and bank%d\n",
drivers/char/tpm/tpm2-cmd.c +11 -11
@@ -20,7 +20,11 @@#include <keys/trusted-type.h> enum tpm2_object_attributes { -TPM2_ATTR_USER_WITH_AUTH =BIT (6 ), +TPM2_OA_USER_WITH_AUTH =BIT (6 ), +}; + +enum tpm2_session_attributes { +TPM2_SA_CONTINUE_SESSION =BIT (0 ), };struct tpm2_startup_in {
@@ -478,22 +482,18 @@ int tpm2_seal_trusted(struct tpm_chip *chip,tpm_buf_append_u8 (&buf, payload->migratable);/* public */ -if (options->policydigest) -tpm_buf_append_u16 (&buf,14 + options->digest_len); -else -tpm_buf_append_u16 (&buf,14 ); - +tpm_buf_append_u16 (&buf,14 + options->policydigest_len);tpm_buf_append_u16 (&buf,TPM2_ALG_KEYEDHASH );tpm_buf_append_u16 (&buf, hash);/* policy */ -if (options->policydigest) { +if (options->policydigest_len) {tpm_buf_append_u32 (&buf,0 ); -tpm_buf_append_u16 (&buf, options->digest_len); +tpm_buf_append_u16 (&buf, options->policydigest_len);tpm_buf_append (&buf, options->policydigest, - options->digest_len); + options->policydigest_len); }else { -tpm_buf_append_u32 (&buf,TPM2_ATTR_USER_WITH_AUTH ); +tpm_buf_append_u32 (&buf,TPM2_OA_USER_WITH_AUTH );tpm_buf_append_u16 (&buf,0 ); }
@@ -631,7 +631,7 @@ static int tpm2_unseal(struct tpm_chip *chip, options->policyhandle ? options->policyhandle :TPM2_RS_PW ,NULL /* nonce */ ,0 , -0 /* session_attributes */ , +TPM2_SA_CONTINUE_SESSION , options->blobauth/* hmac */ , TPM_DIGEST_SIZE);
drivers/cpufreq/intel_pstate.c +5 -0
@@ -673,6 +673,11 @@ static int core_get_max_pstate(void)if (err) goto skip_tar; +/* For level 1 and 2, bits[23:16] contain the ratio */ +if (tdp_ctrl) + tdp_ratio >>=16 ; + + tdp_ratio &=0xff ;/* ratios are only 8 bits long */ if (tdp_ratio -1 == tar) { max_pstate = tar;pr_debug ("max_pstate=TAC %x\n" , max_pstate);
drivers/crypto/ccp/ccp-crypto-aes-cmac.c +3 -0
@@ -225,6 +225,9 @@ static int ccp_aes_cmac_export(struct ahash_request *req, void *out)struct ccp_aes_cmac_req_ctx *rctx =ahash_request_ctx (req);struct ccp_aes_cmac_exp_ctx state; +/* Don't let anything leak to 'out' */ +memset (&state,0 ,sizeof (state)); + state.null_msg = rctx->null_msg;memcpy (state.iv, rctx->iv,sizeof (state.iv)); state.buf_count = rctx->buf_count;
drivers/crypto/ccp/ccp-crypto-sha.c +3 -0
@@ -212,6 +212,9 @@ static int ccp_sha_export(struct ahash_request *req, void *out)struct ccp_sha_req_ctx *rctx =ahash_request_ctx (req);struct ccp_sha_exp_ctx state; +/* Don't let anything leak to 'out' */ +memset (&state,0 ,sizeof (state)); + state.type = rctx->type; state.msg_bits = rctx->msg_bits; state.first = rctx->first;
drivers/crypto/talitos.c +57 -30
153 lines not on this page · raw message
drivers/dma/dw/core.c +19 -15
@@ -130,26 +130,14 @@ static void dwc_desc_put(struct dw_dma_chan *dwc, struct dw_desc *desc)static void dwc_initialize (struct dw_dma_chan *dwc) {struct dw_dma *dw =to_dw_dma (dwc->chan.device); -struct dw_dma_slave *dws = dwc->chan.private;u32 cfghi =DWC_CFGH_FIFO_MODE ;u32 cfglo =DWC_CFGL_CH_PRIOR (dwc->priority);if (dwc->initialized == true)return ; -if (dws) { -/* -* We need controller-specific data to set up slave -* transfers. -*/ -BUG_ON (!dws->dma_dev || dws->dma_dev != dw->dma.dev); - - cfghi |=DWC_CFGH_DST_PER (dws->dst_id); - cfghi |=DWC_CFGH_SRC_PER (dws->src_id); - }else { - cfghi |=DWC_CFGH_DST_PER (dwc->dst_id); - cfghi |=DWC_CFGH_SRC_PER (dwc->src_id); - } + cfghi |=DWC_CFGH_DST_PER (dwc->dst_id); + cfghi |=DWC_CFGH_SRC_PER (dwc->src_id);channel_writel (dwc,CFG_LO , cfglo);channel_writel (dwc,CFG_HI , cfghi);
@@ -941,7 +929,7 @@ bool dw_dma_filter(struct dma_chan *chan, void *param)struct dw_dma_chan *dwc =to_dw_dma_chan (chan);struct dw_dma_slave *dws = param; -if (!dws || dws->dma_dev != chan->device->dev) +if (dws->dma_dev != chan->device->dev)return false;/* We have to copy data since dws can be temporary storage */
@@ -1165,6 +1153,14 @@ static int dwc_alloc_chan_resources(struct dma_chan *chan)* doesn't mean what you think it means), and status writeback. */ +/* +* We need controller-specific data to set up slave transfers. +*/ +if (chan->private && !dw_dma_filter (chan, chan->private)) { +dev_warn (chan2dev (chan),"Wrong controller-specific data\n" ); +return -EINVAL ; + } +/* Enable controller here if needed */ if (!dw->in_use)dw_dma_on (dw);
@@ -1226,6 +1222,14 @@ static void dwc_free_chan_resources(struct dma_chan *chan)spin_lock_irqsave (&dwc->lock, flags);list_splice_init (&dwc->free_list, &list); dwc->descs_allocated =0 ; + +/* Clear custom channel configuration */ + dwc->src_id =0 ; + dwc->dst_id =0 ; + + dwc->src_master =0 ; + dwc->dst_master =0 ; + dwc->initialized = false;/* Disable interrupts */
drivers/dma/edma.c +3 -35
@@ -1563,32 +1563,6 @@ static irqreturn_t dma_ccerr_handler(int irq, void *data)return IRQ_HANDLED ; } -static void edma_tc_set_pm_state (struct edma_tc *tc,bool enable) -{ -struct platform_device *tc_pdev; -int ret; - -if (!IS_ENABLED (CONFIG_OF ) || !tc) -return ; - - tc_pdev =of_find_device_by_node (tc->node); -if (!tc_pdev) { -pr_err ("%s: TPTC device is not found\n" , __func__); -return ; - } -if (!pm_runtime_enabled (&tc_pdev->dev)) -pm_runtime_enable (&tc_pdev->dev); - -if (enable) - ret =pm_runtime_get_sync (&tc_pdev->dev); -else - ret =pm_runtime_put_sync (&tc_pdev->dev); - -if (ret <0 ) -pr_err ("%s: pm_runtime_%s_sync() failed for %s\n" , __func__, - enable ?"get" :"put" ,dev_name (&tc_pdev->dev)); -} -/* Alloc channel resources */ static int edma_alloc_chan_resources (struct dma_chan *chan) {
@@ -1625,8 +1599,6 @@ static int edma_alloc_chan_resources(struct dma_chan *chan)EDMA_CHAN_SLOT (echan->ch_num), chan->chan_id, echan->hw_triggered ? "HW" : "SW"); -edma_tc_set_pm_state (echan->tc, true); -return 0 ; err_slot:
@@ -1663,7 +1635,6 @@ static void edma_free_chan_resources(struct dma_chan *chan) echan->alloced = false; } -edma_tc_set_pm_state (echan->tc, false); echan->tc =NULL ; echan->hw_triggered = false;
@@ -2408,10 +2379,8 @@ static int edma_pm_suspend(struct device *dev)int i;for (i =0 ; i < ecc->num_channels; i++) { -if (echan[i].alloced) { +if (echan[i].alloced)edma_setup_interrupt (&echan[i], false); -edma_tc_set_pm_state (echan[i].tc, false); - } }return 0 ;
@@ -2441,8 +2410,6 @@ static int edma_pm_resume(struct device *dev)/* Set up channel -> slot mapping for the entry slot */ edma_set_chmap (&echan[i], echan[i].slot[0 ]); - -edma_tc_set_pm_state (echan[i].tc, true); } }
@@ -2466,7 +2433,8 @@ static struct platform_driver edma_driver = {static int edma_tptc_probe (struct platform_device *pdev) { -return 0 ; +pm_runtime_enable (&pdev->dev); +return pm_runtime_get_sync (&pdev->dev); }static struct platform_driver edma_tptc_driver = {
drivers/dma/hsu/hsu.c +6 -3
@@ -135,7 +135,7 @@ static u32 hsu_dma_chan_get_sr(struct hsu_dma_chan *hsuc) sr =hsu_chan_readl (hsuc,HSU_CH_SR );spin_unlock_irqrestore (&hsuc->vchan.lock, flags); -return sr; +return sr & ~(HSU_CH_SR_DESCE_ANY |HSU_CH_SR_CDESC_ANY ); }irqreturn_t hsu_dma_irq (struct hsu_dma_chip *chip,unsigned short nr)
@@ -254,10 +254,13 @@ static void hsu_dma_issue_pending(struct dma_chan *chan)static size_t hsu_dma_active_desc_size (struct hsu_dma_chan *hsuc) {struct hsu_dma_desc *desc = hsuc->desc; -size_t bytes = desc->length; +size_t bytes =0 ;int i; - i = desc->active %HSU_DMA_CHAN_NR_DESC ; +for (i = desc->active; i < desc->nents; i++) + bytes += desc->sg[i].len; + + i =HSU_DMA_CHAN_NR_DESC -1 ;do { bytes +=hsu_chan_readl (hsuc,HSU_CH_DxTSR (i)); }while (--i >=0 );
drivers/dma/hsu/hsu.h +3 -0
@@ -41,6 +41,9 @@#define HSU_CH_SR_DESCTO (x) BIT(8 + (x))#define HSU_CH_SR_DESCTO_ANY (BIT(11) | BIT(10) | BIT(9) | BIT(8))#define HSU_CH_SR_CHE BIT(15) +#define HSU_CH_SR_DESCE (x) BIT(16 + (x)) +#define HSU_CH_SR_DESCE_ANY (BIT(19) | BIT(18) | BIT(17) | BIT(16)) +#define HSU_CH_SR_CDESC_ANY (BIT(31) | BIT(30))/* Bits in HSU_CH_CR */ #define HSU_CH_CR_CHA BIT(0)
drivers/dma/omap-dma.c +16 -6
@@ -48,6 +48,7 @@ struct omap_chan {unsigned dma_sig;bool cyclic;bool paused; +bool running;int dma_ch;struct omap_desc *desc;
@@ -294,6 +295,8 @@ static void omap_dma_start(struct omap_chan *c, struct omap_desc *d)/* Enable channel */ omap_dma_chan_write (c,CCR , d->ccr |CCR_ENABLE ); + + c->running = true; }static void omap_dma_stop (struct omap_chan *c)
@@ -355,6 +358,8 @@ static void omap_dma_stop(struct omap_chan *c)omap_dma_chan_write (c,CLNK_CTRL , val); } + + c->running = false; } static void omap_dma_start_sg(struct omap_chan *c, struct omap_desc *d,
@@ -673,15 +678,20 @@ static enum dma_status omap_dma_tx_status(struct dma_chan *chan,struct omap_chan *c =to_omap_dma_chan (chan);struct virt_dma_desc *vd;enum dma_status ret; -uint32_t ccr;unsigned long flags; - ccr =omap_dma_chan_read (c,CCR ); -/* The channel is no longer active, handle the completion right away */ -if (!(ccr &CCR_ENABLE )) -omap_dma_callback (c->dma_ch,0 , c); - ret =dma_cookie_status (chan, cookie, txstate); + +if (!c->paused && c->running) { +uint32_t ccr =omap_dma_chan_read (c,CCR ); +/* +* The channel is no longer active, set the return value +* accordingly +*/ +if (!(ccr &CCR_ENABLE )) + ret =DMA_COMPLETE ; + } +if (ret ==DMA_COMPLETE || !txstate)return ret;
drivers/dma/pxa_dma.c +28 -11
@@ -122,6 +122,7 @@ struct pxad_chan {struct pxad_device {struct dma_device slave;int nr_chans; +int nr_requestors;void __iomem *base;struct pxad_phy *phys;spinlock_t phy_lock;/* Phy association */
@@ -473,7 +474,7 @@ static void pxad_free_phy(struct pxad_chan *chan)return ;/* clear the channel mapping in DRCMR */ -if (chan->drcmr <=DRCMR_CHLNUM ) { +if (chan->drcmr <= pdev->nr_requestors) { reg =pxad_drcmr (chan->drcmr);writel_relaxed (0 , chan->phy->base + reg); }
@@ -509,6 +510,7 @@ static bool is_running_chan_misaligned(struct pxad_chan *chan)static void phy_enable (struct pxad_phy *phy,bool misaligned) { +struct pxad_device *pdev;u32 reg, dalgn;if (!phy->vchan)
@@ -518,7 +520,8 @@ static void phy_enable(struct pxad_phy *phy, bool misaligned)"%s(); phy=%p(%d) misaligned=%d\n" , __func__, phy, phy->idx, misaligned); -if (phy->vchan->drcmr <=DRCMR_CHLNUM ) { + pdev =to_pxad_dev (phy->vchan->vc.chan.device); +if (phy->vchan->drcmr <= pdev->nr_requestors) { reg =pxad_drcmr (phy->vchan->drcmr);writel_relaxed (DRCMR_MAPVLD | phy->idx, phy->base + reg); }
@@ -914,6 +917,7 @@ static void pxad_get_config(struct pxad_chan *chan, {u32 maxburst =0 , dev_addr =0 ;enum dma_slave_buswidth width =DMA_SLAVE_BUSWIDTH_UNDEFINED ; +struct pxad_device *pdev =to_pxad_dev (chan->vc.chan.device); *dcmd =0 ;if (dir ==DMA_DEV_TO_MEM ) {
@@ -922,7 +926,7 @@ static void pxad_get_config(struct pxad_chan *chan, dev_addr = chan->cfg.src_addr; *dev_src = dev_addr; *dcmd |=PXA_DCMD_INCTRGADDR ; -if (chan->drcmr <=DRCMR_CHLNUM ) +if (chan->drcmr <= pdev->nr_requestors) *dcmd |=PXA_DCMD_FLOWSRC ; }if (dir ==DMA_MEM_TO_DEV ) {
@@ -931,7 +935,7 @@ static void pxad_get_config(struct pxad_chan *chan, dev_addr = chan->cfg.dst_addr; *dev_dst = dev_addr; *dcmd |=PXA_DCMD_INCSRCADDR ; -if (chan->drcmr <=DRCMR_CHLNUM ) +if (chan->drcmr <= pdev->nr_requestors) *dcmd |=PXA_DCMD_FLOWTRG ; }if (dir ==DMA_MEM_TO_MEM )
@@ -1341,13 +1345,15 @@ static struct dma_chan *pxad_dma_xlate(struct of_phandle_args *dma_spec,static int pxad_init_dmadev (struct platform_device *op,struct pxad_device *pdev, -unsigned int nr_phy_chans) +unsigned int nr_phy_chans, +unsigned int nr_requestors) {int ret;unsigned int i;struct pxad_chan *c; pdev->nr_chans = nr_phy_chans; + pdev->nr_requestors = nr_requestors;INIT_LIST_HEAD (&pdev->slave.channels); pdev->slave.device_alloc_chan_resources = pxad_alloc_chan_resources; pdev->slave.device_free_chan_resources = pxad_free_chan_resources;
@@ -1382,7 +1388,7 @@ static int pxad_probe(struct platform_device *op)const struct of_device_id *of_id;struct mmp_dma_platdata *pdata =dev_get_platdata (&op->dev);struct resource *iores; -int ret, dma_channels =0 ; +int ret, dma_channels =0 , nb_requestors =0 ;const enum dma_slave_buswidth widths =DMA_SLAVE_BUSWIDTH_1_BYTE |DMA_SLAVE_BUSWIDTH_2_BYTES |DMA_SLAVE_BUSWIDTH_4_BYTES ;
@@ -1399,13 +1405,23 @@ static int pxad_probe(struct platform_device *op)return PTR_ERR (pdev->base); of_id =of_match_device (pxad_dt_ids, &op->dev); -if (of_id) +if (of_id) {of_property_read_u32 (op->dev.of_node,"#dma-channels" , &dma_channels); -else if (pdata && pdata->dma_channels) + ret =of_property_read_u32 (op->dev.of_node,"#dma-requests" , + &nb_requestors); +if (ret) { +dev_warn (pdev->slave.dev, +"#dma-requests set to default 32 as missing in OF: %d" , + ret); + nb_requestors =32 ; + }; + }else if (pdata && pdata->dma_channels) { dma_channels = pdata->dma_channels; -else + nb_requestors = pdata->nb_requestors; + }else { dma_channels =32 ;/* default 32 channel */ + }dma_cap_set (DMA_SLAVE , pdev->slave.cap_mask);dma_cap_set (DMA_MEMCPY , pdev->slave.cap_mask);
@@ -1423,7 +1439,7 @@ static int pxad_probe(struct platform_device *op) pdev->slave.descriptor_reuse = true; pdev->slave.dev = &op->dev; - ret =pxad_init_dmadev (op, pdev, dma_channels); + ret =pxad_init_dmadev (op, pdev, dma_channels, nb_requestors);if (ret) {dev_err (pdev->slave.dev,"unable to register\n" );return ret;
@@ -1442,7 +1458,8 @@ static int pxad_probe(struct platform_device *op)platform_set_drvdata (op, pdev);pxad_init_debugfs (pdev); -dev_info (pdev->slave.dev,"initialized %d channels\n" , dma_channels); +dev_info (pdev->slave.dev,"initialized %d channels on %d requestors\n" , + dma_channels, nb_requestors);return 0 ; }
drivers/edac/i7core_edac.c +1 -1
@@ -1866,7 +1866,7 @@ static int i7core_mce_check_error(struct notifier_block *nb, unsigned long val, i7_dev =get_i7core_dev (mce->socketid);if (!i7_dev) -return NOTIFY_BAD ; +return NOTIFY_DONE ; mci = i7_dev->mci; pvt = mci->pvt_info;
drivers/edac/sb_edac.c +27 -5
@@ -362,6 +362,7 @@ struct sbridge_pvt {/* Memory type detection */ bool is_mirrored, is_lockstep, is_close_pg; +bool is_chan_hash;/* Fifo double buffers */ struct mce mce_entry[MCE_LOG_LEN ];
@@ -1060,6 +1061,20 @@ static inline u8 sad_pkg_ha(u8 pkg)return (pkg >>2 ) &0x1 ; } +static int haswell_chan_hash (int idx,u64 addr) +{ +int i; + +/* +* XOR even bits from 12:26 to bit0 of idx, +* odd bits from 13:27 to bit1 +*/ +for (i =12 ; i <28 ; i +=2 ) + idx ^= (addr >> i) &3 ; + +return idx; +} +/**************************************************************************** Memory check routines ****************************************************************************/
@@ -1616,6 +1631,10 @@ static int get_dimm_config(struct mem_ctl_info *mci) KNL_MAX_CHANNELS :NUM_CHANNELS ;u64 knl_mc_sizes[KNL_MAX_CHANNELS ]; +if (pvt->info.type ==HASWELL || pvt->info.type ==BROADWELL ) { +pci_read_config_dword (pvt->pci_ha0,HASWELL_HASYSDEFEATURE2 , ®); + pvt->is_chan_hash =GET_BITFIELD (reg,21 ,21 ); + }if (pvt->info.type ==HASWELL || pvt->info.type ==BROADWELL || pvt->info.type ==KNIGHTS_LANDING )pci_read_config_dword (pvt->pci_sad1,SAD_TARGET , ®);
@@ -2118,12 +2137,15 @@ static int get_memory_error_data(struct mem_ctl_info *mci, } ch_way =TAD_CH (reg) +1 ; - sck_way =1 <<TAD_SOCK (reg); + sck_way =TAD_SOCK (reg);if (ch_way ==3 ) idx = addr >>6 ; -else +else { idx = (addr >> (6 + sck_way + shiftup)) &0x3 ; +if (pvt->is_chan_hash) + idx =haswell_chan_hash (idx, addr); + } idx = idx % ch_way;/*
@@ -2157,7 +2179,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci,switch (ch_way) {case 2 :case 4 : - sck_xch =1 << sck_way * (ch_way >>1 ); + sck_xch = (1 << sck_way) * (ch_way >>1 );break ;default :sprintf (msg,"Invalid mirror set. Can't decode addr" );
@@ -2193,7 +2215,7 @@ static int get_memory_error_data(struct mem_ctl_info *mci, ch_addr = addr - offset; ch_addr >>= (6 + shiftup); - ch_addr /= ch_way * sck_way; + ch_addr /= sck_xch; ch_addr <<= (6 + shiftup); ch_addr |= addr & ((1 << (6 + shiftup)) -1 );
@@ -3146,7 +3168,7 @@ static int sbridge_mce_check_error(struct notifier_block *nb, unsigned long val, mci =get_mci_for_node_id (mce->socketid);if (!mci) -return NOTIFY_BAD ; +return NOTIFY_DONE ; pvt = mci->pvt_info;/*
drivers/extcon/extcon-max77843.c +1 -1
@@ -803,7 +803,7 @@ static int max77843_muic_probe(struct platform_device *pdev)/* Clear IRQ bits before request IRQs */ ret =regmap_bulk_read (max77843->regmap_muic,MAX77843_MUIC_REG_INT1 , info->status, -MAX77843_MUIC_IRQ_NUM ); +MAX77843_MUIC_STATUS_NUM );if (ret) {dev_err (&pdev->dev,"Failed to Clear IRQ bits\n" ); goto err_muic_irq;
drivers/firmware/efi/arm-init.c +15 -3
@@ -203,7 +203,19 @@ void __init efi_init(void)reserve_regions ();early_memunmap (memmap.map, params.mmap_size); -memblock_mark_nomap (params.mmap &PAGE_MASK , -PAGE_ALIGN (params.mmap_size + - (params.mmap & ~PAGE_MASK ))); + +if (IS_ENABLED (CONFIG_ARM )) { +/* +* ARM currently does not allow ioremap_cache() to be called on +* memory regions that are covered by struct page. So remove the +* UEFI memory map from the linear mapping. +*/ +memblock_mark_nomap (params.mmap &PAGE_MASK , +PAGE_ALIGN (params.mmap_size + + (params.mmap & ~PAGE_MASK ))); + }else { +memblock_reserve (params.mmap &PAGE_MASK , +PAGE_ALIGN (params.mmap_size + + (params.mmap & ~PAGE_MASK ))); + } }
drivers/firmware/efi/efi.c +1 -0
@@ -182,6 +182,7 @@ static int generic_ops_register(void) { generic_ops.get_variable = efi.get_variable; generic_ops.set_variable = efi.set_variable; + generic_ops.set_variable_nonblocking = efi.set_variable_nonblocking; generic_ops.get_next_variable = efi.get_next_variable; generic_ops.query_variable_store = efi_query_variable_store;
drivers/firmware/efi/vars.c +26 -11
@@ -202,29 +202,44 @@ static const struct variable_validate variable_validate[] = { { NULL_GUID, "", NULL }, }; +/* +* Check if @var_name matches the pattern given in @match_name. +* +* @var_name: an array of @len non-NUL characters. +* @match_name: a NUL-terminated pattern string, optionally ending in "*". A +* final "*" character matches any trailing characters @var_name, +* including the case when there are none left in @var_name. +* @match: on output, the number of non-wildcard characters in @match_name +* that @var_name matches, regardless of the return value. +* @return: whether @var_name fully matches @match_name. +*/ static bool variable_matches (const char *var_name,size_t len,const char *match_name,int *match) {for (*match =0 ; ; (*match)++) {char c = match_name[*match]; -char u = var_name[*match]; -/* Wildcard in the matching name means we've matched */ -if (c =='*' ) +switch (c) { +case '*' : +/* Wildcard in @match_name means we've matched. */ return true; -/* Case sensitive match */ -if (!c && *match == len) -return true; +case '\0' : +/* @match_name has ended. Has @var_name too? */ +return (*match == len); -if (c != u) +default : +/* +* We've reached a non-wildcard char in @match_name. +* Continue only if there's an identical character in +* @var_name. +*/ +if (*match < len && c == var_name[*match]) +continue ;return false; - -if (!c) -return true; + } } -return true; }bool
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -0
@@ -1619,6 +1619,7 @@ struct amdgpu_uvd {struct amdgpu_bo *vcpu_bo;void *cpu_addr;uint64_t gpu_addr; +unsigned fw_version;atomic_t handles[AMDGPU_MAX_UVD_HANDLES ];struct drm_file *filp[AMDGPU_MAX_UVD_HANDLES ];struct delayed_work idle_work;
drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +4 -4
@@ -63,10 +63,6 @@ bool amdgpu_has_atpx(void) {return amdgpu_atpx_priv.atpx_detected; } -bool amdgpu_has_atpx_dgpu_power_cntl (void ) { -return amdgpu_atpx_priv.atpx.functions.power_cntl; -} -/** * amdgpu_atpx_call - call an ATPX method *
@@ -146,6 +142,10 @@ static void amdgpu_atpx_parse_functions(struct amdgpu_atpx_functions *f, u32 mas*/ static int amdgpu_atpx_validate (struct amdgpu_atpx *atpx) { +/* make sure required functions are enabled */ +/* dGPU power control is required */ + atpx->functions.power_cntl = true; +if (atpx->functions.px_params) {union acpi_object *info;struct atpx_px_params output;
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -7
@@ -62,12 +62,6 @@ static const char *amdgpu_asic_name[] = { "LAST", }; -#if defined(CONFIG_VGA_SWITCHEROO ) -bool amdgpu_has_atpx_dgpu_power_cntl (void ); -#else -static inline bool amdgpu_has_atpx_dgpu_power_cntl (void ) {return false; } -#endif -bool amdgpu_device_is_px (struct drm_device *dev) {struct amdgpu_device *adev = dev->dev_private;
@@ -1517,7 +1511,7 @@ int amdgpu_device_init(struct amdgpu_device *adev,if (amdgpu_runtime_pm ==1 ) runtime = true; -if (amdgpu_device_is_px (ddev) &&amdgpu_has_atpx_dgpu_power_cntl ()) +if (amdgpu_device_is_px (ddev)) runtime = true;vga_switcheroo_register_client (adev->pdev, &amdgpu_switcheroo_ops, runtime);if (runtime)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +1 -1
@@ -303,7 +303,7 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file fw_info.feature = adev->vce.fb_version;break ;case AMDGPU_INFO_FW_UVD : - fw_info.ver =0 ; + fw_info.ver = adev->uvd.fw_version; fw_info.feature =0 ;break ;case AMDGPU_INFO_FW_GMC :
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +3 -3
@@ -53,7 +53,7 @@ struct amdgpu_hpd;#define AMDGPU_MAX_HPD_PINS 6#define AMDGPU_MAX_CRTCS 6 -#define AMDGPU_MAX_AFMT_BLOCKS 7 +#define AMDGPU_MAX_AFMT_BLOCKS 9enum amdgpu_rmx_type {RMX_OFF ,
@@ -309,8 +309,8 @@ struct amdgpu_mode_info {struct atom_context *atom_context;struct card_info *atom_card_info;bool mode_config_initialized; -struct amdgpu_crtc *crtcs[6 ]; -struct amdgpu_afmt *afmt[7 ]; +struct amdgpu_crtc *crtcs[AMDGPU_MAX_CRTCS ]; +struct amdgpu_afmt *afmt[AMDGPU_MAX_AFMT_BLOCKS ];/* DVI-I properties */ struct drm_property *coherent_mode_property;/* DAC enable load detect */
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +5 -0
@@ -156,6 +156,9 @@ int amdgpu_uvd_sw_init(struct amdgpu_device *adev)DRM_INFO ("Found UVD firmware Version: %hu.%hu Family ID: %hu\n" , version_major, version_minor, family_id); + adev->uvd.fw_version = ((version_major <<24 ) | (version_minor <<16 ) | + (family_id <<8 )); + bo_size =AMDGPU_GPU_PAGE_ALIGN (le32_to_cpu (hdr->ucode_size_bytes) +8 ) +AMDGPU_UVD_STACK_SIZE +AMDGPU_UVD_HEAP_SIZE ; r = amdgpu_bo_create(adev, bo_size, PAGE_SIZE, true,
@@ -273,6 +276,8 @@ int amdgpu_uvd_resume(struct amdgpu_device *adev)memcpy (adev->uvd.cpu_addr, (adev->uvd.fw->data) + offset, (adev->uvd.fw->size) - offset); +cancel_delayed_work_sync (&adev->uvd.idle_work); + size =amdgpu_bo_size (adev->uvd.vcpu_bo); size -=le32_to_cpu (hdr->ucode_size_bytes); ptr = adev->uvd.cpu_addr;
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +1 -0
@@ -220,6 +220,7 @@ int amdgpu_vce_suspend(struct amdgpu_device *adev)if (i ==AMDGPU_MAX_VCE_HANDLES )return 0 ; +cancel_delayed_work_sync (&adev->vce.idle_work);/* TODO: suspending running encoding sessions isn't supported */ return -EINVAL ; }
drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c +1 -1
@@ -3628,7 +3628,7 @@ static void gfx_v7_0_ring_emit_vm_flush(struct amdgpu_ring *ring, unsigned vm_id, uint64_t pd_addr) { int usepfp = (ring->type == AMDGPU_RING_TYPE_GFX); -uint32_t seq = ring->fence_drv.sync_seq; +uint32_t seq = ring->fence_drv.sync_seq[ring->idx];uint64_t addr = ring->fence_drv.gpu_addr;amdgpu_ring_write (ring,PACKET3 (PACKET3_WAIT_REG_MEM ,5 ));
drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c +1 -1
@@ -513,7 +513,7 @@ static int dbgdev_wave_control_set_registers(union SQ_CMD_BITS *in_reg_sq_cmd, union GRBM_GFX_INDEX_BITS *in_reg_gfx_index) { - int status; + int status = 0;union SQ_CMD_BITS reg_sq_cmd;union GRBM_GFX_INDEX_BITS reg_gfx_index;struct HsaDbgWaveMsgAMDGen2 *pMsg;
drivers/gpu/drm/drm_dp_mst_topology.c +28 -1
@@ -1672,13 +1672,19 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,u8 sinks[DRM_DP_MAX_SDP_STREAMS ];int i; + port =drm_dp_get_validated_port_ref (mgr, port); +if (!port) +return -EINVAL ; + port_num = port->port_num; mstb =drm_dp_get_validated_mstb_ref (mgr, port->parent);if (!mstb) { mstb =drm_dp_get_last_connected_port_and_mstb (mgr, port->parent, &port_num); -if (!mstb) +if (!mstb) { +drm_dp_put_port (port);return -EINVAL ; + } } txmsg =kzalloc (sizeof (*txmsg),GFP_KERNEL );
@@ -1707,6 +1713,7 @@ static int drm_dp_payload_send_msg(struct drm_dp_mst_topology_mgr *mgr,kfree (txmsg); fail_put:drm_dp_put_mst_branch_device (mstb); +drm_dp_put_port (port);return ret; }
@@ -1789,6 +1796,11 @@ int drm_dp_update_payload_part1(struct drm_dp_mst_topology_mgr *mgr) req_payload.start_slot = cur_slots;if (mgr->proposed_vcpis[i]) { port = container_of(mgr->proposed_vcpis[i], struct drm_dp_mst_port, vcpi); + port =drm_dp_get_validated_port_ref (mgr, port); +if (!port) { +mutex_unlock (&mgr->payload_lock); +return -EINVAL ; + } req_payload.num_slots = mgr->proposed_vcpis[i]->num_slots; req_payload.vcpi = mgr->proposed_vcpis[i]->vcpi; }else {
@@ -1816,6 +1828,9 @@ int drm_dp_update_payload_part1(struct drm_dp_mst_topology_mgr *mgr) mgr->payloads[i].payload_state = req_payload.payload_state; } cur_slots += req_payload.num_slots; + +if (port) +drm_dp_put_port (port); }for (i =0 ; i < mgr->max_payloads; i++) {
@@ -2121,6 +2136,8 @@ int drm_dp_mst_topology_mgr_resume(struct drm_dp_mst_topology_mgr *mgr)if (mgr->mst_primary) {int sret; +u8 guid[16 ]; + sret =drm_dp_dpcd_read (mgr->aux,DP_DPCD_REV , mgr->dpcd,DP_RECEIVER_CAP_SIZE );if (sret !=DP_RECEIVER_CAP_SIZE ) {DRM_DEBUG_KMS ("dpcd read failed - undocked during suspend?\n" );
@@ -2135,6 +2152,16 @@ int drm_dp_mst_topology_mgr_resume(struct drm_dp_mst_topology_mgr *mgr) ret =-1 ; goto out_unlock; } + +/* Some hubs forget their guids after they resume */ + sret =drm_dp_dpcd_read (mgr->aux,DP_GUID , guid,16 ); +if (sret !=16 ) { +DRM_DEBUG_KMS ("dpcd read failed - undocked during suspend?\n" ); + ret =-1 ; + goto out_unlock; + } +drm_dp_check_mstb_guid (mgr->mst_primary, guid); + ret =0 ; }else ret =-1 ;
drivers/gpu/drm/i915/intel_csr.c +2 -1
@@ -177,7 +177,8 @@ static const struct stepping_info kbl_stepping_info[] = {static const struct stepping_info skl_stepping_info[] = { {'A' ,'0' }, {'B' ,'0' }, {'C' ,'0' }, {'D' ,'0' }, {'E' ,'0' }, {'F' ,'0' }, - {'G' ,'0' }, {'H' ,'0' }, {'I' ,'0' } + {'G' ,'0' }, {'H' ,'0' }, {'I' ,'0' }, + {'J' ,'0' }, {'K' ,'0' } };static const struct stepping_info bxt_stepping_info[] = {
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -4455,7 +4455,7 @@ int skl_update_scaler_crtc(struct intel_crtc_state *state) intel_crtc->base.base.id, intel_crtc->pipe, SKL_CRTC_INDEX);return skl_update_scaler (state, !state->base.active,SKL_CRTC_INDEX , - &state->scaler_state.scaler_id,DRM_ROTATE_0 , + &state->scaler_state.scaler_id,BIT (DRM_ROTATE_0 ), state->pipe_src_w, state->pipe_src_h, adjusted_mode->crtc_hdisplay, adjusted_mode->crtc_vdisplay); }
drivers/gpu/drm/i915/intel_dp_mst.c +3 -5
@@ -184,7 +184,7 @@ static void intel_mst_pre_enable_dp(struct intel_encoder *encoder) intel_mst->port = found->port;if (intel_dp->active_mst_links ==0 ) { -intel_ddi_clk_select (encoder, intel_crtc->config); +intel_ddi_clk_select (&intel_dig_port->base, intel_crtc->config);intel_dp_set_link_params (intel_dp, intel_crtc->config);
@@ -499,6 +499,8 @@ static void intel_dp_destroy_mst_connector(struct drm_dp_mst_topology_mgr *mgr,struct intel_connector *intel_connector =to_intel_connector (connector);struct drm_device *dev = connector->dev; + intel_connector->unregister (intel_connector); +/* need to nuke the connector */ drm_modeset_lock_all (dev);if (connector->state->crtc) {
@@ -512,11 +514,7 @@ static void intel_dp_destroy_mst_connector(struct drm_dp_mst_topology_mgr *mgr,WARN (ret,"Disabling mst crtc failed with %i\n" , ret); } -drm_modeset_unlock_all (dev); - intel_connector->unregister (intel_connector); - -drm_modeset_lock_all (dev);intel_connector_remove_from_fbdev (intel_connector);drm_connector_cleanup (connector);drm_modeset_unlock_all (dev);
drivers/gpu/drm/i915/intel_lrc.c +3 -3
@@ -781,11 +781,11 @@ static int logical_ring_prepare(struct drm_i915_gem_request *req, int bytes)if (unlikely (total_bytes > remain_usable)) {/* * The base request will fit but the reserved space -* falls off the end. So only need to to wait for the -* reserved size after flushing out the remainder. +* falls off the end. So don't need an immediate wrap +* and only need to effectively wait for the reserved +* size space from the start of ringbuffer. */ wait_bytes = remain_actual + ringbuf->reserved_size; - need_wrap = true; }else if (total_bytes > ringbuf->space) {/* No wrapping required, just waiting. */ wait_bytes = total_bytes;
drivers/gpu/drm/i915/intel_pm.c +27 -6
@@ -2281,6 +2281,7 @@ static int ilk_compute_pipe_wm(struct intel_crtc *intel_crtc,return PTR_ERR (cstate); pipe_wm = &cstate->wm.optimal.ilk; +memset (pipe_wm,0 ,sizeof (*pipe_wm));for_each_intel_plane_on_crtc (dev, intel_crtc, intel_plane) { ps = drm_atomic_get_plane_state(state,
@@ -3606,23 +3607,43 @@ static void skl_update_wm(struct drm_crtc *crtc) dev_priv->wm.skl_hw = *results; } +static void ilk_compute_wm_config (struct drm_device *dev, +struct intel_wm_config *config) +{ +struct intel_crtc *crtc; + +/* Compute the currently _active_ config */ +for_each_intel_crtc (dev, crtc) { +const struct intel_pipe_wm *wm = &crtc->wm.active.ilk; + +if (!wm->pipe_enabled) +continue ; + + config->sprites_enabled |= wm->sprites_enabled; + config->sprites_scaled |= wm->sprites_scaled; + config->num_pipes_active++; + } +} +static void ilk_program_watermarks (struct drm_i915_private *dev_priv) {struct drm_device *dev = dev_priv->dev;struct intel_pipe_wm lp_wm_1_2 = {}, lp_wm_5_6 = {}, *best_lp_wm;struct ilk_wm_maximums max; -struct intel_wm_config *config = &dev_priv->wm.config; +struct intel_wm_config config = {};struct ilk_wm_values results = {};enum intel_ddb_partitioning partitioning; -ilk_compute_wm_maximums (dev,1 , config,INTEL_DDB_PART_1_2 , &max); -ilk_wm_merge (dev, config, &max, &lp_wm_1_2); +ilk_compute_wm_config (dev, &config); + +ilk_compute_wm_maximums (dev,1 , &config,INTEL_DDB_PART_1_2 , &max); +ilk_wm_merge (dev, &config, &max, &lp_wm_1_2);/* 5/6 split only in single pipe config on IVB+ */ if (INTEL_INFO (dev)->gen >=7 && - config->num_pipes_active ==1 && config->sprites_enabled) { -ilk_compute_wm_maximums (dev,1 , config,INTEL_DDB_PART_5_6 , &max); -ilk_wm_merge (dev, config, &max, &lp_wm_5_6); + config.num_pipes_active ==1 && config.sprites_enabled) { +ilk_compute_wm_maximums (dev,1 , &config,INTEL_DDB_PART_5_6 , &max); +ilk_wm_merge (dev, &config, &max, &lp_wm_5_6); best_lp_wm =ilk_find_best_result (dev, &lp_wm_1_2, &lp_wm_5_6); }else {
drivers/gpu/drm/i915/intel_ringbuffer.c +31 -11
102 lines not on this page · raw message
drivers/gpu/drm/i915/intel_uncore.c +5 -1
@@ -1155,7 +1155,11 @@ static void intel_uncore_fw_domains_init(struct drm_device *dev) }else if (IS_HASWELL (dev) ||IS_BROADWELL (dev)) { dev_priv->uncore.funcs.force_wake_get = fw_domains_get_with_thread_status; - dev_priv->uncore.funcs.force_wake_put = fw_domains_put; +if (IS_HASWELL (dev)) + dev_priv->uncore.funcs.force_wake_put = + fw_domains_put_with_fifo; +else + dev_priv->uncore.funcs.force_wake_put = fw_domains_put;fw_domain_init (dev_priv,FW_DOMAIN_ID_RENDER ,FORCEWAKE_MT ,FORCEWAKE_ACK_HSW ); }else if (IS_IVYBRIDGE (dev)) {
drivers/gpu/drm/nouveau/nvkm/core/ramht.c +3 -3
@@ -131,7 +131,7 @@ nvkm_ramht_del(struct nvkm_ramht **pramht)struct nvkm_ramht *ramht = *pramht;if (ramht) {nvkm_gpuobj_del (&ramht->gpuobj); -kfree (*pramht); +vfree (*pramht); *pramht =NULL ; } }
@@ -143,8 +143,8 @@ nvkm_ramht_new(struct nvkm_device *device, u32 size, u32 align,struct nvkm_ramht *ramht;int ret, i; -if (!(ramht = *pramht =kzalloc (sizeof (*ramht) + (size >>3 ) * -sizeof (*ramht->data),GFP_KERNEL ))) +if (!(ramht = *pramht =vzalloc (sizeof (*ramht) + + (size >>3 ) *sizeof (*ramht->data))))return -ENOMEM ; ramht->device = device;
drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c +2 -0
@@ -1807,6 +1807,8 @@ gf100_gr_init(struct gf100_gr *gr)gf100_gr_mmio (gr, gr->func->mmio); +nvkm_mask (device,TPC_UNIT (0 ,0 ,0x05c ),0x00000001 ,0x00000001 ); +memcpy (tpcnr, gr->tpc_nr,sizeof (gr->tpc_nr));for (i =0 , gpc =-1 ; i < gr->tpc_total; i++) { do {
drivers/gpu/drm/qxl/qxl_display.c +9 -4
@@ -375,10 +375,15 @@ static int qxl_crtc_cursor_set2(struct drm_crtc *crtc,qxl_bo_kunmap (user_bo); + qcrtc->cur_x += qcrtc->hot_spot_x - hot_x; + qcrtc->cur_y += qcrtc->hot_spot_y - hot_y; + qcrtc->hot_spot_x = hot_x; + qcrtc->hot_spot_y = hot_y; + cmd = (struct qxl_cursor_cmd *)qxl_release_map (qdev, release); cmd->type =QXL_CURSOR_SET ; - cmd->u.set.position.x = qcrtc->cur_x; - cmd->u.set.position.y = qcrtc->cur_y; + cmd->u.set.position.x = qcrtc->cur_x + qcrtc->hot_spot_x; + cmd->u.set.position.y = qcrtc->cur_y + qcrtc->hot_spot_y; cmd->u.set.shape =qxl_bo_physical_address (qdev, cursor_bo,0 );
@@ -441,8 +446,8 @@ static int qxl_crtc_cursor_move(struct drm_crtc *crtc, cmd = (struct qxl_cursor_cmd *)qxl_release_map (qdev, release); cmd->type =QXL_CURSOR_MOVE ; - cmd->u.position.x = qcrtc->cur_x; - cmd->u.position.y = qcrtc->cur_y; + cmd->u.position.x = qcrtc->cur_x + qcrtc->hot_spot_x; + cmd->u.position.y = qcrtc->cur_y + qcrtc->hot_spot_y;qxl_release_unmap (qdev, release, &cmd->release_info);qxl_push_cursor_ring_release (qdev, release,QXL_CMD_CURSOR , false);
drivers/gpu/drm/qxl/qxl_drv.h +2 -0
@@ -135,6 +135,8 @@ struct qxl_crtc {int index;int cur_x;int cur_y; +int hot_spot_x; +int hot_spot_y; };struct qxl_output {
drivers/gpu/drm/radeon/evergreen.c +153 -1
170 lines not on this page · raw message
drivers/gpu/drm/radeon/evergreen_reg.h +46 -0
58 lines not on this page · raw message
drivers/gpu/drm/radeon/radeon_atpx_handler.c +4 -4
@@ -62,10 +62,6 @@ bool radeon_has_atpx(void) {return radeon_atpx_priv.atpx_detected; } -bool radeon_has_atpx_dgpu_power_cntl (void ) { -return radeon_atpx_priv.atpx.functions.power_cntl; -} -/** * radeon_atpx_call - call an ATPX method *
@@ -145,6 +141,10 @@ static void radeon_atpx_parse_functions(struct radeon_atpx_functions *f, u32 mas*/ static int radeon_atpx_validate (struct radeon_atpx *atpx) { +/* make sure required functions are enabled */ +/* dGPU power control is required */ + atpx->functions.power_cntl = true; +if (atpx->functions.px_params) {union acpi_object *info;struct atpx_px_params output;
drivers/gpu/drm/radeon/radeon_connectors.c +6 -1
@@ -1996,10 +1996,12 @@ radeon_add_atom_connector(struct drm_device *dev, rdev->mode_info.dither_property, RADEON_FMT_DITHER_DISABLE); -if (radeon_audio !=0 ) +if (radeon_audio !=0 ) {drm_object_attach_property (&radeon_connector->base.base, rdev->mode_info.audio_property,RADEON_AUDIO_AUTO ); + radeon_connector->audio =RADEON_AUDIO_AUTO ; + }if (ASIC_IS_DCE5 (rdev)) drm_object_attach_property(&radeon_connector->base.base, rdev->mode_info.output_csc_property,
@@ -2124,6 +2126,7 @@ radeon_add_atom_connector(struct drm_device *dev,drm_object_attach_property (&radeon_connector->base.base, rdev->mode_info.audio_property,RADEON_AUDIO_AUTO ); + radeon_connector->audio =RADEON_AUDIO_AUTO ; }if (connector_type ==DRM_MODE_CONNECTOR_DVII ) { radeon_connector->dac_load_detect = true;
@@ -2179,6 +2182,7 @@ radeon_add_atom_connector(struct drm_device *dev,drm_object_attach_property (&radeon_connector->base.base, rdev->mode_info.audio_property,RADEON_AUDIO_AUTO ); + radeon_connector->audio =RADEON_AUDIO_AUTO ; }if (ASIC_IS_DCE5 (rdev)) drm_object_attach_property(&radeon_connector->base.base,
@@ -2231,6 +2235,7 @@ radeon_add_atom_connector(struct drm_device *dev,drm_object_attach_property (&radeon_connector->base.base, rdev->mode_info.audio_property,RADEON_AUDIO_AUTO ); + radeon_connector->audio =RADEON_AUDIO_AUTO ; }if (ASIC_IS_DCE5 (rdev)) drm_object_attach_property(&radeon_connector->base.base,
drivers/gpu/drm/radeon/radeon_device.c +1 -7
@@ -103,12 +103,6 @@ static const char radeon_family_name[][16] = { "LAST", }; -#if defined(CONFIG_VGA_SWITCHEROO ) -bool radeon_has_atpx_dgpu_power_cntl (void ); -#else -static inline bool radeon_has_atpx_dgpu_power_cntl (void ) {return false; } -#endif -#define RADEON_PX_QUIRK_DISABLE_PX (1 << 0)#define RADEON_PX_QUIRK_LONG_WAKEUP (1 << 1)
@@ -1439,7 +1433,7 @@ int radeon_device_init(struct radeon_device *rdev,* ignore it */ vga_client_register (rdev->pdev, rdev,NULL , radeon_vga_set_decode); -if ((rdev->flags &RADEON_IS_PX ) &&radeon_has_atpx_dgpu_power_cntl ()) +if (rdev->flags &RADEON_IS_PX ) runtime = true;vga_switcheroo_register_client (rdev->pdev, &radeon_switcheroo_ops, runtime);if (runtime)
drivers/gpu/drm/radeon/radeon_ttm.c +2 -0
@@ -235,6 +235,8 @@ static int radeon_verify_access(struct ttm_buffer_object *bo, struct file *filp) { struct radeon_bo *rbo = container_of(bo, struct radeon_bo, tbo); +if (radeon_ttm_tt_has_userptr (bo->ttm)) +return -EPERM ;return drm_vma_node_verify_access (&rbo->gem_base.vma_node, filp); }
drivers/gpu/drm/radeon/si_dpm.c +1 -0
@@ -2931,6 +2931,7 @@ static struct si_dpm_quirk si_dpm_quirk_list[] = { { PCI_VENDOR_ID_ATI, 0x6811, 0x1462, 0x2015, 0, 120000 }, { PCI_VENDOR_ID_ATI, 0x6811, 0x1043, 0x2015, 0, 120000 }, { PCI_VENDOR_ID_ATI, 0x6811, 0x148c, 0x2015, 0, 120000 }, + { PCI_VENDOR_ID_ATI, 0x6810, 0x1682, 0x9275, 0, 120000 }, { 0, 0, 0, 0 }, };
drivers/gpu/drm/ttm/ttm_bo.c +4 -13
@@ -230,22 +230,13 @@ EXPORT_SYMBOL(ttm_bo_del_sub_from_lru);void ttm_bo_move_to_lru_tail (struct ttm_buffer_object *bo) { -struct ttm_bo_device *bdev = bo->bdev; -struct ttm_mem_type_manager *man; +int put_count =0 ;lockdep_assert_held (&bo->resv->lock.base); -if (bo->mem.placement &TTM_PL_FLAG_NO_EVICT ) { -list_del_init (&bo->swap); -list_del_init (&bo->lru); - - }else { -if (bo->ttm && !(bo->ttm->page_flags &TTM_PAGE_FLAG_SG )) -list_move_tail (&bo->swap, &bo->glob->swap_lru); - - man = &bdev->man[bo->mem.mem_type]; -list_move_tail (&bo->lru, &man->lru); - } + put_count =ttm_bo_del_from_lru (bo); +ttm_bo_list_ref_sub (bo, put_count, true); +ttm_bo_add_to_lru (bo); }EXPORT_SYMBOL (ttm_bo_move_to_lru_tail);
drivers/hwtracing/stm/Kconfig +1 -0
@@ -1,6 +1,7 @@ config STM tristate "System Trace Module devices" select CONFIGFS_FS + select SRCU help A System Trace Module (STM) is a device exporting data in System Trace Protocol (STP) format as defined by MIPI STP standards.
drivers/i2c/busses/i2c-cpm.c +2 -2
@@ -116,8 +116,8 @@ struct cpm_i2c {cbd_t __iomem *rbase;u_char *txbuf[CPM_MAXBD ];u_char *rxbuf[CPM_MAXBD ]; -u32 txdma[CPM_MAXBD ]; -u32 rxdma[CPM_MAXBD ]; +dma_addr_t txdma[CPM_MAXBD ]; +dma_addr_t rxdma[CPM_MAXBD ]; };static irqreturn_t cpm_i2c_interrupt (int irq,void *dev_id)
drivers/i2c/busses/i2c-exynos5.c +19 -5
@@ -671,7 +671,9 @@ static int exynos5_i2c_xfer(struct i2c_adapter *adap,return -EIO ; } -clk_prepare_enable (i2c->clk); + ret =clk_enable (i2c->clk); +if (ret) +return ret;for (i =0 ; i < num; i++, msgs++) { stop = (i == num -1 );
@@ -695,7 +697,7 @@ static int exynos5_i2c_xfer(struct i2c_adapter *adap, } out: -clk_disable_unprepare (i2c->clk); +clk_disable (i2c->clk);return ret; }
@@ -747,7 +749,9 @@ static int exynos5_i2c_probe(struct platform_device *pdev)return -ENOENT ; } -clk_prepare_enable (i2c->clk); + ret =clk_prepare_enable (i2c->clk); +if (ret) +return ret; mem =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); i2c->regs =devm_ioremap_resource (&pdev->dev, mem);
@@ -799,6 +803,10 @@ static int exynos5_i2c_probe(struct platform_device *pdev)platform_set_drvdata (pdev, i2c); +clk_disable (i2c->clk); + +return 0 ; + err_clk:clk_disable_unprepare (i2c->clk);return ret;
@@ -810,6 +818,8 @@ static int exynos5_i2c_remove(struct platform_device *pdev)i2c_del_adapter (&i2c->adap); +clk_unprepare (i2c->clk); +return 0 ; }
@@ -821,6 +831,8 @@ static int exynos5_i2c_suspend_noirq(struct device *dev) i2c->suspended =1 ; +clk_unprepare (i2c->clk); +return 0 ; }
@@ -830,7 +842,9 @@ static int exynos5_i2c_resume_noirq(struct device *dev)struct exynos5_i2c *i2c =platform_get_drvdata (pdev);int ret =0 ; -clk_prepare_enable (i2c->clk); + ret =clk_prepare_enable (i2c->clk); +if (ret) +return ret; ret =exynos5_hsi2c_clock_setup (i2c);if (ret) {
@@ -839,7 +853,7 @@ static int exynos5_i2c_resume_noirq(struct device *dev) }exynos5_i2c_init (i2c); -clk_disable_unprepare (i2c->clk); +clk_disable (i2c->clk); i2c->suspended =0 ;return 0 ;
drivers/infiniband/core/cache.c +2 -1
@@ -691,7 +691,8 @@ void ib_cache_gid_set_default_gid(struct ib_device *ib_dev, u8 port, NULL);/* Coudn't find default GID location */ -WARN_ON (ix <0 ); +if (WARN_ON (ix <0 )) + goto release; zattr_type.gid_type = gid_type;
drivers/infiniband/core/ucm.c +4 -0
@@ -48,6 +48,7 @@#include <asm/uaccess.h> +#include <rdma/ib.h> #include <rdma/ib_cm.h> #include <rdma/ib_user_cm.h> #include <rdma/ib_marshall.h>
@@ -1103,6 +1104,9 @@ static ssize_t ib_ucm_write(struct file *filp, const char __user *buf,struct ib_ucm_cmd_hdr hdr;ssize_t result; +if (WARN_ON_ONCE (!ib_safe_file_access (filp))) +return -EACCES ; +if (len <sizeof (hdr))return -EINVAL ;
drivers/infiniband/core/ucma.c +3 -0
@@ -1574,6 +1574,9 @@ static ssize_t ucma_write(struct file *filp, const char __user *buf,struct rdma_ucm_cmd_hdr hdr;ssize_t ret; +if (WARN_ON_ONCE (!ib_safe_file_access (filp))) +return -EACCES ; +if (len <sizeof (hdr))return -EINVAL ;
drivers/infiniband/core/uverbs_main.c +5 -0
@@ -48,6 +48,8 @@#include <asm/uaccess.h> +#include <rdma/ib.h> +#include "uverbs.h" MODULE_AUTHOR ("Roland Dreier" );
@@ -693,6 +695,9 @@ static ssize_t ib_uverbs_write(struct file *filp, const char __user *buf,int srcu_key;ssize_t ret; +if (WARN_ON_ONCE (!ib_safe_file_access (filp))) +return -EACCES ; +if (count <sizeof hdr)return -EINVAL ;
drivers/infiniband/hw/mlx5/main.c +1 -1
@@ -517,7 +517,7 @@ static int mlx5_ib_query_device(struct ib_device *ibdev, sizeof(struct mlx5_wqe_ctrl_seg)) /sizeof (struct mlx5_wqe_data_seg ); props->max_sge =min (max_rq_sg, max_sq_sg); - props->max_sge_rd = props->max_sge; + props->max_sge_rd =MLX5_MAX_SGE_RD ; props->max_cq =1 <<MLX5_CAP_GEN (mdev, log_max_cq); props->max_cqe = (1 <<MLX5_CAP_GEN (mdev, log_max_cq_sz)) -1 ; props->max_mr =1 <<MLX5_CAP_GEN (mdev, log_max_mkey);
drivers/infiniband/hw/qib/qib_file_ops.c +5 -0
@@ -45,6 +45,8 @@#include <linux/export.h> #include <linux/uio.h> +#include <rdma/ib.h> +#include "qib.h" #include "qib_common.h" #include "qib_user_sdma.h"
@@ -2067,6 +2069,9 @@ static ssize_t qib_write(struct file *fp, const char __user *data,ssize_t ret =0 ;void *dest; +if (WARN_ON_ONCE (!ib_safe_file_access (fp))) +return -EACCES ; +if (count <sizeof (cmd.type)) { ret = -EINVAL ; goto bail;
drivers/input/misc/pmic8xxx-pwrkey.c +4 -3
@@ -353,7 +353,8 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev)if (of_property_read_u32 (pdev->dev.of_node,"debounce" , &kpd_delay)) kpd_delay =15625 ; -if (kpd_delay >62500 || kpd_delay ==0 ) { +/* Valid range of pwr key trigger delay is 1/64 sec to 2 seconds. */ +if (kpd_delay >USEC_PER_SEC *2 || kpd_delay <USEC_PER_SEC /64 ) {dev_err (&pdev->dev,"invalid power key trigger delay\n" );return -EINVAL ; }
@@ -385,8 +386,8 @@ static int pmic8xxx_pwrkey_probe(struct platform_device *pdev) pwr->name ="pmic8xxx_pwrkey" ; pwr->phys ="pmic8xxx_pwrkey/input0" ; - delay = (kpd_delay <<10 ) /USEC_PER_SEC ; - delay =1 +ilog2 (delay); + delay = (kpd_delay <<6 ) /USEC_PER_SEC ; + delay =ilog2 (delay); err =regmap_read (regmap,PON_CNTL_1 , &pon_cntl);if (err <0 ) {
drivers/input/tablet/gtco.c +9 -1
@@ -858,6 +858,14 @@ static int gtco_probe(struct usb_interface *usbinterface, goto err_free_buf; } +/* Sanity check that a device has an endpoint */ +if (usbinterface->altsetting[0 ].desc.bNumEndpoints <1 ) { +dev_err (&usbinterface->dev, +"Invalid number of endpoints\n" ); + error = -EINVAL ; + goto err_free_urb; + } +/* * The endpoint is always altsetting 0, we know this since we know * this device only has one interrupt endpoint
@@ -879,7 +887,7 @@ static int gtco_probe(struct usb_interface *usbinterface,* HID report descriptor */ if (usb_get_extra_descriptor (usbinterface->cur_altsetting, -HID_DEVICE_TYPE , &hid_desc) !=0 ){ +HID_DEVICE_TYPE , &hid_desc) !=0 ) {dev_err (&usbinterface->dev,"Can't retrieve exta USB descriptor to get hid report descriptor length\n" ); error = -EIO ;
drivers/iommu/amd_iommu.c +76 -11
141 lines not on this page · raw message
drivers/iommu/dma-iommu.c +2 -2
@@ -403,7 +403,7 @@ static int __finalise_sg(struct device *dev, struct scatterlist *sg, int nents,unsigned int s_length =sg_dma_len (s);unsigned int s_dma_len = s->length; - s->offset = s_offset; + s->offset += s_offset; s->length = s_length;sg_dma_address (s) = dma_addr + s_offset; dma_addr += s_dma_len;
@@ -422,7 +422,7 @@ static void __invalidate_sg(struct scatterlist *sg, int nents)for_each_sg (sg, s, nents, i) {if (sg_dma_address (s) !=DMA_ERROR_CODE ) - s->offset =sg_dma_address (s); + s->offset +=sg_dma_address (s);if (sg_dma_len (s)) s->length =sg_dma_len (s);sg_dma_address (s) =DMA_ERROR_CODE ;
drivers/irqchip/irq-mxs.c +1 -1
@@ -183,7 +183,7 @@ static void __iomem * __init icoll_init_iobase(struct device_node *np)void __iomem *icoll_base; icoll_base =of_io_request_and_map (np,0 , np->name); -if (!icoll_base) +if (IS_ERR (icoll_base))panic ("%s: unable to map resource" , np->full_name);return icoll_base; }
drivers/irqchip/irq-sunxi-nmi.c +2 -2
@@ -160,9 +160,9 @@ static int __init sunxi_sc_nmi_irq_init(struct device_node *node, gc =irq_get_domain_generic_chip (domain,0 ); gc->reg_base =of_io_request_and_map (node,0 ,of_node_full_name (node)); -if (!gc->reg_base) { +if (IS_ERR (gc->reg_base)) {pr_err ("unable to map resource\n" ); - ret = -ENOMEM ; + ret =PTR_ERR (gc->reg_base); goto fail_irqd_remove; }
drivers/md/dm-cache-metadata.c +40 -24
79 lines not on this page · raw message
drivers/media/usb/usbvision/usbvision-video.c +0 -7
@@ -1461,13 +1461,6 @@ static int usbvision_probe(struct usb_interface *intf,printk (KERN_INFO "%s: %s found\n" , __func__, usbvision_device_data[model].model_string); -/* -* this is a security check. -* an exploit using an incorrect bInterfaceNumber is known -*/ -if (ifnum >=USB_MAXINTERFACES || !dev->actconfig->interface[ifnum]) -return -ENODEV ; -if (usbvision_device_data[model].interface >=0 ) interface = &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0 ];else if (ifnum < dev->actconfig->desc.bNumInterfaces)
drivers/media/v4l2-core/videobuf2-core.c +15 -5
@@ -1643,7 +1643,7 @@ static int __vb2_wait_for_done_vb(struct vb2_queue *q, int nonblocking)* Will sleep if required for nonblocking == false. */ static int __vb2_get_done_vb (struct vb2_queue *q,struct vb2_buffer **vb, -int nonblocking) +void *pb,int nonblocking) {unsigned long flags;int ret;
@@ -1664,10 +1664,10 @@ static int __vb2_get_done_vb(struct vb2_queue *q, struct vb2_buffer **vb,/* * Only remove the buffer from done_list if v4l2_buffer can handle all * the planes. -* Verifying planes is NOT necessary since it already has been checked -* before the buffer is queued/prepared. So it can never fail. */ -list_del (&(*vb)->done_entry); + ret =call_bufop (q, verify_planes_array, *vb, pb); +if (!ret) +list_del (&(*vb)->done_entry);spin_unlock_irqrestore (&q->done_lock, flags);return ret;
@@ -1746,7 +1746,7 @@ int vb2_core_dqbuf(struct vb2_queue *q, unsigned int *pindex, void *pb,struct vb2_buffer *vb =NULL ;int ret; - ret =__vb2_get_done_vb (q, &vb, nonblocking); + ret =__vb2_get_done_vb (q, &vb, pb, nonblocking);if (ret <0 )return ret;
@@ -2293,6 +2293,16 @@ unsigned int vb2_core_poll(struct vb2_queue *q, struct file *file,return POLLERR ;/* +* If this quirk is set and QBUF hasn't been called yet then +* return POLLERR as well. This only affects capture queues, output +* queues will always initialize waiting_for_buffers to false. +* This quirk is set by V4L2 for backwards compatibility reasons. +*/ +if (q->quirk_poll_must_check_waiting_for_buffers && + q->waiting_for_buffers && (req_events & (POLLIN |POLLRDNORM ))) +return POLLERR ; + +/* * For output streams you can call write() as long as there are fewer * buffers queued than there are buffers available. */
drivers/media/v4l2-core/videobuf2-memops.c +1 -1
@@ -49,7 +49,7 @@ struct frame_vector *vb2_create_framevec(unsigned long start, vec =frame_vector_create (nr);if (!vec)return ERR_PTR (-ENOMEM ); - ret =get_vaddr_frames (start, nr, write,1 , vec); + ret =get_vaddr_frames (start &PAGE_MASK , nr, write, true, vec);if (ret <0 ) goto out_destroy;/* We accept only complete set of PFNs */
drivers/media/v4l2-core/videobuf2-v4l2.c +12 -8
@@ -74,6 +74,11 @@ static int __verify_planes_array(struct vb2_buffer *vb, const struct v4l2_bufferreturn 0 ; } +static int __verify_planes_array_core (struct vb2_buffer *vb,const void *pb) +{ +return __verify_planes_array (vb, pb); +} +/** * __verify_length() - Verify that the bytesused value for each plane fits in * the plane length and that the data offset doesn't exceed the bytesused value.
@@ -437,6 +442,7 @@ static int __fill_vb2_buffer(struct vb2_buffer *vb, }static const struct vb2_buf_ops v4l2_buf_ops = { + .verify_planes_array = __verify_planes_array_core, .fill_user_buffer = __fill_v4l2_buffer, .fill_vb2_buffer = __fill_vb2_buffer, .copy_timestamp = __copy_timestamp,
@@ -765,6 +771,12 @@ int vb2_queue_init(struct vb2_queue *q) q->is_output =V4L2_TYPE_IS_OUTPUT (q->type); q->copy_timestamp = (q->timestamp_flags &V4L2_BUF_FLAG_TIMESTAMP_MASK ) ==V4L2_BUF_FLAG_TIMESTAMP_COPY ; +/* +* For compatibility with vb1: if QBUF hasn't been called yet, then +* return POLLERR as well. This only affects capture queues, output +* queues will always initialize waiting_for_buffers to false. +*/ + q->quirk_poll_must_check_waiting_for_buffers = true;return vb2_core_queue_init (q); }
@@ -818,14 +830,6 @@ unsigned int vb2_poll(struct vb2_queue *q, struct file *file, poll_table *wait)poll_wait (file, &fh->wait, wait); } -/* -* For compatibility with vb1: if QBUF hasn't been called yet, then -* return POLLERR as well. This only affects capture queues, output -* queues will always initialize waiting_for_buffers to false. -*/ -if (q->waiting_for_buffers && (req_events & (POLLIN |POLLRDNORM ))) -return POLLERR ; -return res |vb2_core_poll (q, file, wait); }EXPORT_SYMBOL_GPL (vb2_poll);
drivers/misc/Kconfig +1 -1
@@ -440,7 +440,7 @@ config ARM_CHARLCD still useful. config BMP085 - bool + tristate depends on SYSFS config BMP085_I2C
drivers/misc/ad525x_dpot.c +1 -1
@@ -216,7 +216,7 @@ static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg)*/ value =swab16 (value); -if (dpot->uid ==DPOT_UID (AD5271_ID )) +if (dpot->uid ==DPOT_UID (AD5274_ID )) value = value >>2 ;return value;default :
drivers/misc/cxl/irq.c +0 -1
@@ -288,7 +288,6 @@ unsigned int cxl_map_irq(struct cxl *adapter, irq_hw_number_t hwirq,void cxl_unmap_irq (unsigned int virq,void *cookie) {free_irq (virq, cookie); -irq_dispose_mapping (virq); } static int cxl_register_one_irq(struct cxl *adapter,
drivers/misc/mic/scif/scif_rma.c +4 -3
@@ -1511,7 +1511,7 @@ off_t scif_register_pinned_pages(scif_epd_t epd,if ((map_flags &SCIF_MAP_FIXED ) && ((ALIGN (offset,PAGE_SIZE ) != offset) || (offset <0 ) || - (offset + (off_t )len < offset))) + (len >LONG_MAX - offset)))return -EINVAL ;might_sleep ();
@@ -1614,7 +1614,7 @@ off_t scif_register(scif_epd_t epd, void *addr, size_t len, off_t offset,if ((map_flags &SCIF_MAP_FIXED ) && ((ALIGN (offset,PAGE_SIZE ) != offset) || (offset <0 ) || - (offset + (off_t )len < offset))) + (len >LONG_MAX - offset)))return -EINVAL ;/* Unsupported protection requested */
@@ -1732,7 +1732,8 @@ scif_unregister(scif_epd_t epd, off_t offset, size_t len)/* Offset is not page aligned or offset+len wraps around */ if ((ALIGN (offset,PAGE_SIZE ) != offset) || - (offset + (off_t )len < offset)) + (offset <0 ) || + (len >LONG_MAX - offset))return -EINVAL ; err =scif_verify_epd (ep);
drivers/mmc/card/block.c +1 -17
@@ -86,7 +86,6 @@ static int max_devices;/* TODO: Replace these with struct ida */ static DECLARE_BITMAP(dev_use, MAX_DEVICES); -static DECLARE_BITMAP(name_use, MAX_DEVICES);/* * There is one mmc_blk_data per slot.
@@ -105,7 +104,6 @@ struct mmc_blk_data {unsigned int usage;unsigned int read_only;unsigned int part_type; -unsigned int name_idx;unsigned int reset_done;#define MMC_BLK_READ BIT(0)#define MMC_BLK_WRITE BIT(1)
@@ -2202,19 +2200,6 @@ static struct mmc_blk_data *mmc_blk_alloc_req(struct mmc_card *card, goto out; } -/* -* !subname implies we are creating main mmc_blk_data that will be -* associated with mmc_card with dev_set_drvdata. Due to device -* partitions, devidx will not coincide with a per-physical card -* index anymore so we keep track of a name index. -*/ -if (!subname) { - md->name_idx =find_first_zero_bit (name_use, max_devices); -__set_bit (md->name_idx, name_use); - }else - md->name_idx = ((struct mmc_blk_data *) -dev_to_disk (parent)->private_data)->name_idx; - md->area_type = area_type;/*
Lines of this file are not shown. View the raw message.
drivers/mmc/host/sdhci-acpi.c +81 -0
81 lines not on this page · raw message
drivers/mtd/spi-nor/spi-nor.c +1 -45
46 lines not on this page · raw message
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +2 -0
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/mvm/ops.c +0 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/intel/iwlwifi/pcie/trans.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/sta_event.c +6 -4
Lines of this file are not shown. View the raw message.
drivers/net/wireless/marvell/mwifiex/wmm.c +4 -2
Lines of this file are not shown. View the raw message.
drivers/pinctrl/mediatek/pinctrl-mtk-common.c +5 -4
Lines of this file are not shown. View the raw message.
drivers/scsi/megaraid/megaraid_sas_base.c +2 -1
Lines of this file are not shown. View the raw message.
fs/f2fs/super.c +96 -69
165 lines not on this page · raw message
sound/hda/hdac_i915.c +51 -11
62 lines not on this page · raw message
sound/pci/hda/hda_intel.c +7 -52
59 lines not on this page · raw message
tools/perf/ui/browsers/hists.c +48 -37
85 lines not on this page · raw message
virt/kvm/arm/arch_timer.c +39 -10
49 lines not on this page · 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.