Linux 4.1.5
Greg KH
maintainerI'm announcing the release of the 4.1.5 kernel.
All users of the 4.1 kernel series must upgrade.
The updated 4.1.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.1.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/hwmon/nct7904 | 4 Documentation/kbuild/makefiles.txt | 8 Makefile | 11 arch/arc/Makefile | 3 arch/arc/include/asm/bitops.h | 468 +++++---------------- arch/arc/include/asm/ptrace.h | 2 arch/arm/boot/dts/am57xx-beagle-x15.dts | 4 arch/arm/boot/dts/dra7-evm.dts | 5 arch/arm/boot/dts/dra72-evm.dts | 5 arch/arm/mach-imx/gpc.c | 27 - arch/arm/mach-pxa/capc7117.c | 3 arch/arm/mach-pxa/cm-x2xx.c | 3 arch/arm/mach-pxa/cm-x300.c | 2 arch/arm/mach-pxa/colibri-pxa270.c | 3 arch/arm/mach-pxa/em-x270.c | 2 arch/arm/mach-pxa/icontrol.c | 3 arch/arm/mach-pxa/trizeps4.c | 3 arch/arm/mach-pxa/vpac270.c | 3 arch/arm/mach-pxa/zeus.c | 2 arch/arm/mm/dma-mapping.c | 2 arch/arm64/kernel/efi.c | 4 arch/avr32/mach-at32ap/clock.c | 20 arch/mips/Kconfig | 1 arch/mips/include/asm/fpu.h | 2 arch/mips/include/asm/smp.h | 1 arch/mips/kernel/smp.c | 44 + arch/mips/math-emu/cp1emu.c | 2 arch/mips/mm/c-r4k.c | 14 arch/parisc/include/asm/pgalloc.h | 3 arch/parisc/include/asm/pgtable.h | 55 +- arch/parisc/include/asm/tlbflush.h | 53 +- arch/parisc/kernel/cache.c | 105 +++- arch/parisc/kernel/entry.S | 163 +++---- arch/parisc/kernel/traps.c | 4 arch/powerpc/kernel/idle_power7.S | 31 - arch/s390/include/asm/ctl_reg.h | 5 arch/s390/kernel/cache.c | 2 arch/s390/kernel/nmi.c | 51 +- arch/s390/kernel/process.c | 2 arch/s390/kernel/sclp.S | 4 arch/s390/net/bpf_jit_comp.c | 14 arch/tile/kernel/setup.c | 2 arch/x86/boot/compressed/eboot.c | 4 arch/x86/include/asm/kasan.h | 8 arch/x86/include/asm/mmu_context.h | 2 arch/x86/kernel/cpu/perf_event_intel_cqm.c | 8 arch/x86/kernel/head64.c | 10 arch/x86/kernel/head_64.S | 29 - arch/x86/mm/kasan_init_64.c | 44 + arch/x86/mm/tlb.c | 2 arch/x86/platform/efi/efi.c | 5 block/bio-integrity.c | 4 block/blk-cgroup.c | 6 block/blk-mq.c | 2 drivers/ata/libata-pmp.c | 7 drivers/clk/st/clk-flexgen.c | 2 drivers/clk/st/clkgen-fsyn.c | 2 drivers/clk/st/clkgen-mux.c | 2 drivers/cpufreq/intel_pstate.c | 1 drivers/crypto/omap-des.c | 3 drivers/firmware/efi/cper.c | 15 drivers/firmware/efi/efi.c | 5 drivers/gpu/drm/nouveau/nouveau_drm.c | 2 drivers/gpu/drm/nouveau/nv04_fbcon.c | 2 drivers/gpu/drm/nouveau/nv50_display.c | 2 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv04.c | 8 drivers/hid/hid-cp2112.c | 2 drivers/hwmon/nct7802.c | 2 drivers/hwmon/nct7904.c | 57 +- drivers/infiniband/ulp/ipoib/ipoib_verbs.c | 3 drivers/input/mouse/synaptics.c | 2 drivers/input/touchscreen/usbtouchscreen.c | 3 drivers/iommu/intel-iommu.c | 9 drivers/irqchip/irq-gic-v3-its.c | 111 +++- drivers/md/dm.c | 8 drivers/md/raid1.c | 2 drivers/misc/cxl/context.c | 4 drivers/misc/cxl/main.c | 2 drivers/misc/mei/main.c | 2 drivers/mmc/host/omap_hsmmc.c | 8 drivers/mmc/host/sdhci-esdhc.h | 2 drivers/mmc/host/sdhci-pxav3.c | 1 drivers/mmc/host/sdhci.c | 7 drivers/net/can/c_can/c_can.c | 10 drivers/net/can/dev.c | 7 drivers/net/can/rcar_can.c | 7 drivers/net/can/slcan.c | 2 drivers/net/can/spi/mcp251x.c | 13 drivers/net/can/vcan.c | 3 drivers/net/wireless/iwlwifi/iwl-nvm-parse.c | 12 drivers/net/wireless/iwlwifi/mvm/tx.c | 2 drivers/net/wireless/iwlwifi/pcie/trans.c | 6 drivers/pinctrl/freescale/pinctrl-imx1-core.c | 3 drivers/regulator/s2mps11.c | 14 drivers/scsi/qla2xxx/qla_dbg.c | 2 drivers/scsi/qla2xxx/qla_init.c | 141 +++++- drivers/scsi/qla2xxx/qla_target.c | 48 +- drivers/scsi/scsi_error.c | 2 drivers/scsi/scsi_lib.c | 6 drivers/scsi/scsi_sysfs.c | 2 drivers/scsi/st.c | 2 drivers/spi/spi-img-spfi.c | 2 drivers/spi/spi-imx.c | 5 drivers/target/iscsi/iscsi_target.c | 48 +- drivers/target/iscsi/iscsi_target_login.c | 45 -- drivers/target/iscsi/iscsi_target_login.h | 3 drivers/target/iscsi/iscsi_target_nego.c | 34 + drivers/tty/n_tty.c | 16 drivers/tty/serial/imx.c | 15 drivers/tty/serial/serial_core.c | 3 drivers/usb/host/xhci-hub.c | 22 drivers/usb/host/xhci-ring.c | 3 drivers/usb/host/xhci.c | 3 drivers/usb/host/xhci.h | 1 drivers/usb/storage/unusual_devs.h | 12 drivers/vhost/vhost.c | 1 fs/dcache.c | 7 fs/namespace.c | 42 + fs/nfs/inode.c | 8 fs/nfs/nfs4proc.c | 3 fs/nfs/pagelist.c | 5 fs/pnode.h | 2 fs/xfs/libxfs/xfs_attr_remote.c | 44 + fs/xfs/xfs_log_recover.c | 11 include/linux/can/skb.h | 2 include/linux/cper.h | 22 include/linux/ftrace.h | 3 include/target/iscsi/iscsi_target_core.h | 1 kernel/irq/resend.c | 18 kernel/trace/ftrace.c | 52 +- lib/dma-debug.c | 3 net/can/af_can.c | 12 net/can/bcm.c | 2 net/can/raw.c | 7 net/mac80211/debugfs_netdev.c | 1 net/rds/ib_rdma.c | 4 sound/core/pcm_native.c | 2 sound/pci/hda/hda_intel.c | 8 sound/pci/hda/patch_hdmi.c | 2 sound/pci/hda/patch_realtek.c | 16 sound/pci/hda/patch_sigmatel.c | 3 sound/usb/line6/pcm.c | 9 sound/usb/mixer_maps.c | 24 + sound/usb/quirks-table.h | 68 +++ tools/perf/ui/browsers/hists.c | 2 tools/perf/util/symbol.c | 2 tools/perf/util/symbol.h | 3 147 files changed, 1459 insertions(+), 969 deletions(-)
Aaron Plattner (1):
ALSA: hda - Add new GPU codec ID 0x10de007d to snd-hda
Al Viro (1):
freeing unlinked file indefinitely delayed
Alex Williamson (1):
iommu/vt-d: Fix VM domain ID leak
Alexander Popov (1):
x86/kasan: Fix KASAN shadow region page tables
Alexey Brodkin (1):
ARC: make sure instruction_pointer() returns unsigned value
Andrey Ryabinin (3):
x86/init: Clear 'init_level4_pgt' earlier
x86/kasan: Flush TLBs after switching CR3
x86/kasan: Fix boot crash on AMD processors
Andy Shevchenko (1):
avr32: handle NULL as a valid clock object
Antonio Borneo (1):
HID: cp2112: fix to force single data-report reply
Ard Biesheuvel (1):
arm64/efi: map the entire UEFI vendor string before reading it
Arnaldo Carvalho de Melo (2):
perf hists browser: Take the --comm, --dsos, etc filters into account perf symbols: Store if there is a filter in place
Ben Skeggs (1):
drm/nouveau/kms/nv50-: guard against enabling cursor on disabled heads
Bernhard Bender (1):
Input: usbtouchscreen - avoid unresponsive TSC-30 touch screen
Brian Campbell (1):
xhci: Calculate old endpoints correctly on device reset
Chris Metcalf (1):
tile: use free_bootmem_late() for initrd
Christophe Jaillet (1):
parisc: mm: Fix a memory leak related to pmd not attached to the pgd
Daniel Axtens (1):
cxl: Check if afu is not null in cxl_slbia
Dave Chinner (2):
xfs: remote attribute headers contain an invalid LSN
xfs: remote attributes need to be considered data
Dave Hansen (1):
x86/mm: Add parenthesis for TLB tracepoint size calculation
David Henningsson (1):
ALSA: hda - Add headset mic pin quirk for a Dell device
David Jander (1):
Revert "serial: imx: initialized DMA w/o HW flow enabled"
Dmitry Skorodumov (1):
x86/efi: Use all 64 bit of efi_memmap in setup_e820()
Dmitry Torokhov (1):
Revert "Input: synaptics - allocate 3 slots to keep stability in image sensors"
Dominic Sacré (1):
ALSA: usb-audio: Add MIDI support for Steinberg MI2/MI4
Emmanuel Grumbach (2):
iwlwifi: mvm: fix antenna selection when BT is active
iwlwifi: pcie: prepare the device before accessing it
Eric W. Biederman (2):
mnt: Clarify and correct the disconnect logic in umount_tree
mnt: In detach_mounts detach the appropriate unmounted mount
Gabriel Fernandez (1):
drivers: clk: st: Fix mux bit-setting for Cortex A9 clocks
Giuseppe Cavallaro (1):
drivers: clk: st: Fix flexgen lock init
Greg Kroah-Hartman (1):
Linux 4.1.5
Guenter Roeck (2):
hwmon: (nct7802) Fix integer overflow seen when writing voltage limits
hwmon: (nct7904) Rename pwm attributes to match hwmon ABI
Haggai Eran (1):
dma-debug: skip debug_dma_assert_idle() when disabled
Heiko Carstens (3):
s390/process: fix sfpc inline assembly
s390/nmi: fix vector register corruption s390/cachinfo: add missing facility check to init_cache_level()
Himanshu Madhani (1):
qla2xxx: Remove msleep in qlt_send_term_exchange
Ian Munsie (1):
cxl: Fix off by one error allowing subsequent mmap page to be accessed
Ilia Mirkin (1):
drm/nouveau/fbcon/nv11-: correctly account for ring space usage
J.D. Schroeder (1):
can: c_can: Fix default pinmux glitch at init
Jason Gunthorpe (1):
IB/ipoib: Fix CONFIG_INFINIBAND_IPOIB_CM
Jens Axboe (1):
scsi: fix host max depth checking for the 'queue_depth' sysfs interface
Jingju Hou (1):
mmc: sdhci-pxav3: fix platform_data is not initialized
Joakim Tjernlund (1):
mmc: sdhci-esdhc: Make 8BIT bus work
John David Anglin (1):
parisc: Fix some PTE/TLB race conditions and optimize __flush_tlb_range based on timing results
Kamil Dudka (2):
drm/nouveau: hold mutex when calling nouveau_abi16_fini() drm/nouveau/drm/nv04-nv40/instmem: protect access to priv->heap by mutex
Kanoj Sarcar (1):
qla2xxx: fix command initialization in target mode.
Kishon Vijay Abraham I (1):
mmc: omap_hsmmc: Fix DTO and DCRC handling
Krzysztof Kozlowski (1):
regulator: s2mps11: Fix GPIO suspend enable shift wrapping bug
Liad Kaufman (1):
iwlwifi: nvm: remove mac address byte swapping in 8000 family
Lior Amsalem (1):
ata: pmp: add quirk for Marvell 4140 SATA PMP
Lucas Stach (1):
ARM: imx6: gpc: always enable PU domain if CONFIG_PM is not set
Lukasz Anaczkowski (1):
intel_pstate: Add get_scaling cpu_defaults param to Knights Landing
Marc Zyngier (1):
irqchip/gicv3-its: Fix mapping of LPIs to collections
Marc-André Lureau (1):
vhost: actually track log eventfd file
Marek Szyprowski (1):
ARM: 8404/1: dma-mapping: fix off-by-one error in bitmap size check
Markos Chandras (3):
MIPS: Fix erroneous JR emulation for MIPS R6
MIPS: c-r4k: Fix cache flushing for MT cores
MIPS: fpu.h: Allow 64-bit FPU on a 64-bit MIPS R6 CPU
Martin Schwidefsky (1):
s390/sclp: clear upper register halves in _sclp_print_early
Maruthi Srinivas Bayyavarapu (1):
ALSA: hda: add new AMD PCI IDs with proper driver caps
Mateusz Sylwestrzak (1):
ALSA: hda - Add headset mic support for Acer Aspire V5-573G
Matt Fleming (1):
perf/x86/intel/cqm: Return cached counter value from IRQ context
Michael Holzheu (1):
s390/bpf: clear correct BPF accumulator register
Michal Marek (1):
kbuild: Allow arch Makefiles to override {cpp,ld,c}flags
Mike Snitzer (2):
bio integrity: do not assume bio_integrity_pool exists if bioset exists Revert "dm: only run the queue on completion if congested or no requests pending"
Ming Lei (1):
blk-mq: set default timeout as 30 seconds
NeilBrown (1):
md/raid1: fix test for 'was read error from last working device'.
Nicholas Bellinger (3):
iscsi-target: Fix use-after-free during TPG session shutdown
iscsi-target: Fix iscsit_start_kthreads failure OOPs
iscsi-target: Fix iser explicit logout TX kthread leak
Oliver Hartkopp (1):
can: replace timestamp as unique skb attribute
Oliver Neukum (1):
usb-storage: ignore ZTE MF 823 card reader in mode 0x1225
Pankaj Dev (1):
drivers: clk: st: Incorrect register offset used for lock_status
Paul Burton (1):
MIPS: Require O32 FP64 support for MIPS64 with O32 compat
Peng Fan (1):
mmc: sdhci check parameters before call dma_free_coherent
Peter Hurley (2):
serial: core: Fix crashes while echoing when closing
n_tty: signal and flush atomically
Peter Zijlstra (1):
x86, perf: Fix static_key bug in load_mm_cr4()
Quinn Tran (1):
qla2xxx: release request queue reservation.
Ricardo Neri (1):
efi: Check for NULL efi kernel parameters
Robert Jarzmik (1):
ARM: pxa: fix dm9000 platform data regression
Roger Quadros (2):
ARM: dts: dra7x-evm: Prevent glitch on DCAN1 pinmux
ARM: dts: am57xx-beagle-x15: Provide supply for usb2_phy2
Roland Dreier (1):
qla2xxx: kill sessions/log out initiator on RSCN and port down events
Sascha Hauer (1):
spi: imx: Fix small DMA transfers
Saurav Kashyap (1):
qla2xxx: Fix hardware lock/unlock issue causing kernel panic.
Sergei Shtylyov (2):
can: rcar_can: fix IRQ check
can: rcar_can: print signed IRQ #
Seymour, Shane M (1):
st: null pointer dereference panic caused by use after kref_put by st_open
Shreyas B. Prabhu (1):
powerpc/powernv: Fix race in updating core_idle_state
Sifan Naeem (1):
spi: img-spfi: fix support for speeds up to 1/4th input clock
Stefan Agner (1):
can: mcp251x: fix resume when device is down
Steven Rostedt (Red Hat) (1):
ftrace: Fix breakage of set_ftrace_pid
Takashi Iwai (5):
ALSA: line6: Fix -EBUSY error during active monitoring
ALSA: pcm: Fix lockdep warning with nonatomic PCM ops
ALSA: hda - Apply fixup for another Toshiba Satellite S50D
ALSA: hda - Apply a fixup to Dell Vostro 5480
ALSA: hda - Fix MacBook Pro 5,2 quirk
Tejun Heo (1):
blkcg: fix gendisk reference leak in blkg_conf_prep()
Thomas Gleixner (1):
genirq: Prevent resend to interrupts marked IRQ_NESTED_THREAD
Tom Hughes (1):
mac80211: clear subdir_stations when removing debugfs
Tomas Winkler (1):
mei: prevent unloading mei hw modules while the device is opened.
Tony Battersby (1):
scsi: fix memory leak with scsi-mq
Tony Luck (1):
efi: Handle memory error structures produced based on old versions of standard
Trond Myklebust (3):
NFS: Don't revalidate the mapping if both size and change attr are up to date
NFSv4: We must set NFS_OPEN_STATE flag in nfs_resync_open_stateid_locked
NFS: Fix a memory leak in nfs_do_recoalesce
Uwe Kleine-König (1):
Subject: pinctrl: imx1-core: Fix debug output in .pin_config_set callback
Vineet Gupta (3):
ARC: Override toplevel default -O2 with -O3
ARC: Reduce bitops lines of code using macros
ARC: Make ARC bitops "safer" (add anti-optimization)
Vutla, Lokesh (1):
crypto: omap-des - Fix unmapping of dma channels
Wengang Wang (1):
rds: rds_ib_device.refcount overflow
Yao-Wen Mao (1):
ALSA: usb-audio: add dB range mapping for some devices
Zhuang Jin Can (3):
xhci: report U3 when link is in resume state
xhci: prevent bus_suspend if SS port resuming in phase 1
xhci: do not report PLC when link is in internal resume state
Greg KH
maintainerDocumentation/hwmon/nct7904 +2 -2
@@ -35,11 +35,11 @@ temp1_input Local temperature (1/1000 degree, temp[2-9]_input CPU temperatures (1/1000 degree, 0.125 degree resolution) -fan[1-4]_mode R/W, 0/1 for manual or SmartFan mode +pwm[1-4]_enable R/W, 1/2 for manual or SmartFan mode Setting SmartFan mode is supported only if it has been previously configured by BIOS (or configuration EEPROM) -fan[1-4]_pwm R/O in SmartFan mode, R/W in manual control mode +pwm[1-4] R/O in SmartFan mode, R/W in manual control mode The driver checks sensor control registers and does not export the sensors that are not enabled. Anyway, a sensor that is enabled may actually be not
Documentation/kbuild/makefiles.txt +8 -0
@@ -952,6 +952,14 @@ When kbuild executes, the following steps are followed (roughly): $(KBUILD_ARFLAGS) set by the top level Makefile to "D" (deterministic mode) if this option is supported by $(AR). + ARCH_CPPFLAGS, ARCH_AFLAGS, ARCH_CFLAGS Overrides the kbuild defaults + + These variables are appended to the KBUILD_CPPFLAGS, + KBUILD_AFLAGS, and KBUILD_CFLAGS, respectively, after the + top-level Makefile has set any other flags. This provides a + means for an architecture to override the defaults. + + --- 6.2 Add prerequisites to archheaders: The archheaders: rule is used to generate header files that
Makefile +6 -5
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 1 -SUBLEVEL = 4 +SUBLEVEL = 5 EXTRAVERSION = NAME = Series 4800
@@ -783,10 +783,11 @@ endif include scripts/Makefile.kasan include scripts/Makefile.extrawarn -# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments -KBUILD_CPPFLAGS += $(KCPPFLAGS) -KBUILD_AFLAGS += $(KAFLAGS) -KBUILD_CFLAGS += $(KCFLAGS) +# Add any arch overrides and user supplied CPPFLAGS, AFLAGS and CFLAGS as the +# last assignments +KBUILD_CPPFLAGS += $(ARCH_CPPFLAGS) $(KCPPFLAGS) +KBUILD_AFLAGS += $(ARCH_AFLAGS) $(KAFLAGS) +KBUILD_CFLAGS += $(ARCH_CFLAGS) $(KCFLAGS) # Use --build-id when available. LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
arch/arc/Makefile +2 -1
@@ -43,7 +43,8 @@ endif ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE # Generic build system uses -O2, we want -O3 -cflags-y += -O3 +# Note: No need to add to cflags-y as that happens anyways +ARCH_CFLAGS += -O3 endif # small data is default for elf32 tool-chain. If not usable, disable it
arch/arc/include/asm/bitops.h +131 -337
512 lines not on this page · raw message
arch/arc/include/asm/ptrace.h +1 -1
@@ -63,7 +63,7 @@ struct callee_regs {long r25, r24, r23, r22, r21, r20, r19, r18, r17, r16, r15, r14, r13; }; -#define instruction_pointer (regs) ((regs)->ret) +#define instruction_pointer (regs) (unsigned long)((regs)->ret)#define profile_pc (regs) instruction_pointer(regs)/* return 1 if user mode or 0 if kernel mode */
arch/arm/boot/dts/am57xx-beagle-x15.dts +4 -0
@@ -544,6 +544,10 @@ phy-supply = <&ldousb_reg>; }; +&usb2_phy2 { + phy-supply = <&ldousb_reg>; +}; + &usb1 { dr_mode = "host"; pinctrl-names = "default";
arch/arm/boot/dts/dra7-evm.dts +3 -2
@@ -686,7 +686,8 @@ &dcan1 { status = "ok"; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&dcan1_pins_default>; + pinctrl-names = "default", "sleep", "active"; + pinctrl-0 = <&dcan1_pins_sleep>; pinctrl-1 = <&dcan1_pins_sleep>; + pinctrl-2 = <&dcan1_pins_default>; };
arch/arm/boot/dts/dra72-evm.dts +3 -2
@@ -497,9 +497,10 @@ &dcan1 { status = "ok"; - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&dcan1_pins_default>; + pinctrl-names = "default", "sleep", "active"; + pinctrl-0 = <&dcan1_pins_sleep>; pinctrl-1 = <&dcan1_pins_sleep>; + pinctrl-2 = <&dcan1_pins_default>; }; &qspi {
arch/arm/mach-imx/gpc.c +6 -21
@@ -291,8 +291,6 @@ void __init imx_gpc_check_dt(void) } } -#ifdef CONFIG_PM_GENERIC_DOMAINS -static void _imx6q_pm_pu_power_off (struct generic_pm_domain *genpd) {int iso, iso2sw;
@@ -399,7 +397,6 @@ static struct genpd_onecell_data imx_gpc_onecell_data = {static int imx_gpc_genpd_init (struct device *dev,struct regulator *pu_reg) {struct clk *clk; -bool is_off;int i; imx6q_pu_domain.reg = pu_reg;
@@ -416,18 +413,13 @@ static int imx_gpc_genpd_init(struct device *dev, struct regulator *pu_reg) } imx6q_pu_domain.num_clks = i; - is_off =IS_ENABLED (CONFIG_PM ); -if (is_off) { -_imx6q_pm_pu_power_off (&imx6q_pu_domain.base); - }else { -/* -* Enable power if compiled without CONFIG_PM in case the -* bootloader disabled it. -*/ -imx6q_pm_pu_power_on (&imx6q_pu_domain.base); - } +/* Enable power always in case bootloader disabled it. */ +imx6q_pm_pu_power_on (&imx6q_pu_domain.base); + +if (!IS_ENABLED (CONFIG_PM_GENERIC_DOMAINS )) +return 0 ; -pm_genpd_init (&imx6q_pu_domain.base,NULL , is_off); +pm_genpd_init (&imx6q_pu_domain.base,NULL , false);return of_genpd_add_provider_onecell (dev->of_node, &imx_gpc_onecell_data);
@@ -437,13 +429,6 @@ clk_err:return -EINVAL ; } -#else -static inline int imx_gpc_genpd_init (struct device *dev,struct regulator *reg) -{ -return 0 ; -} -#endif /* CONFIG_PM_GENERIC_DOMAINS */ -static int imx_gpc_probe (struct platform_device *pdev) {struct regulator *pu_reg;
arch/arm/mach-pxa/capc7117.c +3 -0
@@ -24,6 +24,7 @@#include <linux/ata_platform.h> #include <linux/serial_8250.h> #include <linux/gpio.h> +#include <linux/regulator/machine.h> #include <asm/mach-types.h> #include <asm/mach/arch.h>
@@ -144,6 +145,8 @@ static void __init capc7117_init(void)capc7117_uarts_init ();capc7117_ide_init (); + +regulator_has_full_constraints (); } MACHINE_START(CAPC7117,
arch/arm/mach-pxa/cm-x2xx.c +3 -0
@@ -13,6 +13,7 @@#include <linux/syscore_ops.h> #include <linux/irq.h> #include <linux/gpio.h> +#include <linux/regulator/machine.h> #include <linux/dm9000.h> #include <linux/leds.h>
@@ -466,6 +467,8 @@ static void __init cmx2xx_init(void)cmx2xx_init_ac97 ();cmx2xx_init_touchscreen ();cmx2xx_init_leds (); + +regulator_has_full_constraints (); }static void __init cmx2xx_init_irq (void )
arch/arm/mach-pxa/cm-x300.c +2 -0
@@ -835,6 +835,8 @@ static void __init cm_x300_init(void)cm_x300_init_ac97 ();cm_x300_init_wi2wi ();cm_x300_init_bl (); + +regulator_has_full_constraints (); }static void __init cm_x300_fixup (struct tag *tags,char **cmdline)
arch/arm/mach-pxa/colibri-pxa270.c +3 -0
@@ -18,6 +18,7 @@#include <linux/mtd/partitions.h> #include <linux/mtd/physmap.h> #include <linux/platform_device.h> +#include <linux/regulator/machine.h> #include <linux/ucb1400.h> #include <asm/mach/arch.h>
@@ -294,6 +295,8 @@ static void __init colibri_pxa270_init(void)printk (KERN_ERR "Illegal colibri_pxa270_baseboard type %d\n" , colibri_pxa270_baseboard); } + +regulator_has_full_constraints (); }/* The "Income s.r.o. SH-Dmaster PXA270 SBC" board can be booted either
arch/arm/mach-pxa/em-x270.c +2 -0
@@ -1306,6 +1306,8 @@ static void __init em_x270_init(void)em_x270_init_i2c ();em_x270_init_camera ();em_x270_userspace_consumers_init (); + +regulator_has_full_constraints (); }MACHINE_START (EM_X270 ,"Compulab EM-X270" )
arch/arm/mach-pxa/icontrol.c +3 -0
@@ -26,6 +26,7 @@#include <linux/spi/spi.h> #include <linux/spi/pxa2xx_spi.h> #include <linux/can/platform/mcp251x.h> +#include <linux/regulator/machine.h> #include "generic.h"
@@ -185,6 +186,8 @@ static void __init icontrol_init(void)mxm_8x10_mmc_init ();icontrol_can_init (); + +regulator_has_full_constraints (); }MACHINE_START (ICONTROL ,"iControl/SafeTcam boards using Embedian MXM-8x10 CoM" )
arch/arm/mach-pxa/trizeps4.c +3 -0
@@ -26,6 +26,7 @@#include <linux/dm9000.h> #include <linux/mtd/physmap.h> #include <linux/mtd/partitions.h> +#include <linux/regulator/machine.h> #include <linux/i2c/pxa-i2c.h> #include <asm/types.h>
@@ -534,6 +535,8 @@ static void __init trizeps4_init(void)BCR_writew (trizeps_conxs_bcr);board_backlight_power (1 ); + +regulator_has_full_constraints (); }static void __init trizeps4_map_io (void )
arch/arm/mach-pxa/vpac270.c +3 -0
@@ -24,6 +24,7 @@#include <linux/dm9000.h> #include <linux/ucb1400.h> #include <linux/ata_platform.h> +#include <linux/regulator/machine.h> #include <linux/regulator/max1586.h> #include <linux/i2c/pxa-i2c.h>
@@ -711,6 +712,8 @@ static void __init vpac270_init(void)vpac270_ts_init ();vpac270_rtc_init ();vpac270_ide_init (); + +regulator_has_full_constraints (); }MACHINE_START (VPAC270 ,"Voipac PXA270" )
arch/arm/mach-pxa/zeus.c +2 -0
@@ -868,6 +868,8 @@ static void __init zeus_init(void)i2c_register_board_info (0 ,ARRAY_AND_SIZE (zeus_i2c_devices));pxa2xx_set_spi_info (3 , &pxa2xx_spi_ssp3_master_info);spi_register_board_info (zeus_spi_board_info,ARRAY_SIZE (zeus_spi_board_info)); + +regulator_has_full_constraints (); }static struct map_desc zeus_io_desc[]__initdata = {
arch/arm/mm/dma-mapping.c +1 -1
@@ -1953,7 +1953,7 @@ static int extend_iommu_mapping(struct dma_iommu_mapping *mapping) {int next_bitmap; -if (mapping->nr_bitmaps > mapping->extensions) +if (mapping->nr_bitmaps >= mapping->extensions)return -EINVAL ; next_bitmap = mapping->nr_bitmaps;
arch/arm64/kernel/efi.c +2 -2
@@ -122,12 +122,12 @@ static int __init uefi_init(void)/* Show what we know for posterity */ c16 =early_memremap (efi_to_phys (efi.systab->fw_vendor), -sizeof (vendor)); +sizeof (vendor) *sizeof (efi_char16_t));if (c16) {for (i =0 ; i < (int )sizeof (vendor) -1 && *c16; ++i) vendor[i] = c16[i]; vendor[i] ='\0' ; -early_memunmap (c16,sizeof (vendor)); +early_memunmap (c16,sizeof (vendor) *sizeof (efi_char16_t)); } pr_info("EFI v%u.%.02u by %s\n",
arch/avr32/mach-at32ap/clock.c +19 -1
@@ -80,6 +80,9 @@ int clk_enable(struct clk *clk) {unsigned long flags; +if (!clk) +return 0 ; +spin_lock_irqsave (&clk_lock, flags);__clk_enable (clk);spin_unlock_irqrestore (&clk_lock, flags);
@@ -106,6 +109,9 @@ void clk_disable(struct clk *clk) {unsigned long flags; +if (IS_ERR_OR_NULL (clk)) +return ; +spin_lock_irqsave (&clk_lock, flags);__clk_disable (clk);spin_unlock_irqrestore (&clk_lock, flags);
@@ -117,6 +123,9 @@ unsigned long clk_get_rate(struct clk *clk)unsigned long flags;unsigned long rate; +if (!clk) +return 0 ; +spin_lock_irqsave (&clk_lock, flags); rate = clk->get_rate (clk);spin_unlock_irqrestore (&clk_lock, flags);
@@ -129,6 +138,9 @@ long clk_round_rate(struct clk *clk, unsigned long rate) {unsigned long flags, actual_rate; +if (!clk) +return 0 ; +if (!clk->set_rate)return -ENOSYS ;
@@ -145,6 +157,9 @@ int clk_set_rate(struct clk *clk, unsigned long rate)unsigned long flags;long ret; +if (!clk) +return 0 ; +if (!clk->set_rate)return -ENOSYS ;
@@ -161,6 +176,9 @@ int clk_set_parent(struct clk *clk, struct clk *parent)unsigned long flags;int ret; +if (!clk) +return 0 ; +if (!clk->set_parent)return -ENOSYS ;
@@ -174,7 +192,7 @@ EXPORT_SYMBOL(clk_set_parent);struct clk *clk_get_parent (struct clk *clk) { -return clk->parent; +return !clk ?NULL : clk->parent; }EXPORT_SYMBOL (clk_get_parent);
arch/mips/Kconfig +1 -0
@@ -1417,6 +1417,7 @@ config CPU_MIPS64_R6 select CPU_SUPPORTS_HIGHMEM select CPU_SUPPORTS_MSA select GENERIC_CSUM + select MIPS_O32_FP64_SUPPORT if MIPS32_O32 help Choose this option to build a kernel for release 6 or later of the MIPS64 architecture. New MIPS processors, starting with the Warrior
arch/mips/include/asm/fpu.h +1 -1
@@ -74,7 +74,7 @@ static inline int __enable_fpu(enum fpu_mode mode) goto fr_common;case FPU_64BIT : -#if !(defined(CONFIG_CPU_MIPS32_R2 ) || defined(CONFIG_CPU_MIPS32_R6 ) \ +#if !(defined(CONFIG_CPU_MIPSR2 ) || defined(CONFIG_CPU_MIPSR6 ) \ || defined(CONFIG_64BIT ))/* we only have a 32-bit FPU */ return SIGFPE ;
arch/mips/include/asm/smp.h +1 -0
@@ -23,6 +23,7 @@extern int smp_num_siblings;extern cpumask_t cpu_sibling_map[];extern cpumask_t cpu_core_map[]; +extern cpumask_t cpu_foreign_map;#define raw_smp_processor_id () (current_thread_info()->cpu)
arch/mips/kernel/smp.c +43 -1
76 lines not on this page · raw message
arch/mips/math-emu/cp1emu.c +1 -1
@@ -451,7 +451,7 @@ static int isBranchInstr(struct pt_regs *regs, struct mm_decoded_insn dec_insn,/* Fall through */ case jr_op:/* For R6, JR already emulated in jalr_op */ -if (NO_R6EMU && insn.r_format.opcode == jr_op) +if (NO_R6EMU && insn.r_format.func == jr_op)break ; *contpc = regs->regs[insn.r_format.rs];return 1 ;
arch/mips/mm/c-r4k.c +11 -3
@@ -37,6 +37,7 @@#include <asm/cacheflush.h> /* for run_uncached() */ #include <asm/traps.h> #include <asm/dma-coherence.h> +#include <asm/mips-cm.h> /* * Special Variant of smp_call_function for use by cache functions:
@@ -51,9 +52,16 @@ static inline void r4k_on_each_cpu(void (*func) (void *info), void *info) {preempt_disable (); -#ifndef CONFIG_MIPS_MT_SMP -smp_call_function (func, info,1 ); -#endif +/* +* The Coherent Manager propagates address-based cache ops to other +* cores but not index-based ops. However, r4k_on_each_cpu is used +* in both cases so there is no easy way to tell what kind of op is +* executed to the other cores. The best we can probably do is +* to restrict that call when a CM is not present because both +* CM-based SMP protocols (CMP & CPS) restrict index-based cache ops. +*/ +if (!mips_cm_present ()) +smp_call_function_many (&cpu_foreign_map, func, info,1 );func (info);preempt_enable (); }
arch/parisc/include/asm/pgalloc.h +2 -1
@@ -72,7 +72,7 @@ static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address)static inline void pmd_free (struct mm_struct *mm,pmd_t *pmd) { -if (pmd_flag (*pmd) & PxD_FLAG_ATTACHED) +if (pmd_flag (*pmd) & PxD_FLAG_ATTACHED) {/* * This is the permanent pmd attached to the pgd; * cannot free it.
@@ -81,6 +81,7 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)*/ mm_inc_nr_pmds (mm);return ; + }free_pages ((unsigned long )pmd,PMD_ORDER ); }
arch/parisc/include/asm/pgtable.h +37 -18
108 lines not on this page · raw message
arch/parisc/include/asm/tlbflush.h +29 -24
87 lines not on this page · raw message
arch/parisc/kernel/cache.c +67 -38
141 lines not on this page · raw message
arch/parisc/kernel/entry.S +79 -84
398 lines not on this page · raw message
arch/parisc/kernel/traps.c +0 -4
@@ -43,10 +43,6 @@#include "../math-emu/math-emu.h" /* for handle_fpe() */ -#if defined(CONFIG_SMP ) || defined(CONFIG_DEBUG_SPINLOCK ) -DEFINE_SPINLOCK (pa_dbit_lock); -#endif -static void parisc_show_stack (struct task_struct *task,unsigned long *sp,struct pt_regs *regs);
arch/powerpc/kernel/idle_power7.S +21 -10
@@ -52,6 +52,22 @@ .text /* + * Used by threads when the lock bit of core_idle_state is set. + * Threads will spin in HMT_LOW until the lock bit is cleared. + * r14 - pointer to core_idle_state + * r15 - used to load contents of core_idle_state + */ + +core_idle_lock_held: + HMT_LOW +3: lwz r15,0(r14) + andi. r15,r15,PNV_CORE_IDLE_LOCK_BIT + bne 3b + HMT_MEDIUM + lwarx r15,0,r14 + blr + +/* * Pass requested state in r3: * r3 - PNV_THREAD_NAP/SLEEP/WINKLE *
@@ -150,6 +166,10 @@ power7_enter_nap_mode: ld r14,PACA_CORE_IDLE_STATE_PTR(r13) lwarx_loop1: lwarx r15,0,r14 + + andi. r9,r15,PNV_CORE_IDLE_LOCK_BIT + bnel core_idle_lock_held + andc r15,r15,r7 /* Clear thread bit */ andi. r15,r15,PNV_CORE_IDLE_THREAD_BITS
@@ -294,7 +314,7 @@ lwarx_loop2: * workaround undo code or resyncing timebase or restoring context * In either case loop until the lock bit is cleared. */ - bne core_idle_lock_held + bnel core_idle_lock_held cmpwi cr2,r15,0 lbz r4,PACA_SUBCORE_SIBLING_MASK(r13)
@@ -319,15 +339,6 @@ lwarx_loop2: isync b common_exit -core_idle_lock_held: - HMT_LOW -core_idle_lock_loop: - lwz r15,0(14) - andi. r9,r15,PNV_CORE_IDLE_LOCK_BIT - bne core_idle_lock_loop - HMT_MEDIUM - b lwarx_loop2 - first_thread_in_subcore: /* First thread in subcore to wakeup */ ori r15,r15,PNV_CORE_IDLE_LOCK_BIT
arch/s390/include/asm/ctl_reg.h +4 -1
@@ -57,7 +57,10 @@ union ctlreg0 { unsigned long lap : 1; /* Low-address-protection control */ unsigned long : 4; unsigned long edat : 1; /* Enhanced-DAT-enablement control */ - unsigned long : 23; + unsigned long : 4; + unsigned long afp : 1; /* AFP-register control */ + unsigned long vx : 1; /* Vector enablement control */ + unsigned long : 17; }; };
arch/s390/kernel/cache.c +2 -0
@@ -138,6 +138,8 @@ int init_cache_level(unsigned int cpu)union cache_topology ct;enum cache_type ctype; +if (!test_facility (34 )) +return -EOPNOTSUPP ;if (!this_cpu_ci)return -EINVAL ; ct.raw =ecag (EXTRACT_TOPOLOGY ,0 ,0 );
arch/s390/kernel/nmi.c +30 -21
70 lines not on this page · raw message
arch/s390/kernel/process.c +1 -1
@@ -163,7 +163,7 @@ int copy_thread(unsigned long clone_flags, unsigned long new_stackp, asmlinkage void execve_tail(void) { current->thread.fp_regs.fpc =0 ; - asmvolatile ("sfpc %0,%0" : :"d" (0 )); + asmvolatile ("sfpc %0" : :"d" (0 )); }/*
arch/s390/kernel/sclp.S +4 -0
@@ -270,6 +270,8 @@ ENTRY(_sclp_print_early) jno .Lesa2 ahi %r15,-80 stmh %r6,%r15,96(%r15) # store upper register halves + basr %r13,0 + lmh %r0,%r15,.Lzeroes-.(%r13) # clear upper register halves .Lesa2: lr %r10,%r2 # save string pointer lhi %r2,0
@@ -291,6 +293,8 @@ ENTRY(_sclp_print_early) .Lesa3: lm %r6,%r15,120(%r15) # restore registers br %r14 +.Lzeroes: + .fill 64,4,0 .LwritedataS4: .long 0x00760005 # SCLP command for write data
arch/s390/net/bpf_jit_comp.c +7 -7
@@ -415,13 +415,13 @@ static void bpf_jit_prologue(struct bpf_jit *jit)EMIT6_DISP_LH (0xe3000000 ,0x0004 ,REG_SKB_DATA ,REG_0 ,BPF_REG_1 , offsetof(struct sk_buff , data)); } -/* BPF compatibility: clear A (%b7) and X (%b8) registers */ -if (REG_SEEN (BPF_REG_7 )) -/* lghi %b7,0 */ -EMIT4_IMM (0xa7090000 ,BPF_REG_7 ,0 ); -if (REG_SEEN (BPF_REG_8 )) -/* lghi %b8,0 */ -EMIT4_IMM (0xa7090000 ,BPF_REG_8 ,0 ); +/* BPF compatibility: clear A (%b0) and X (%b7) registers */ +if (REG_SEEN (BPF_REG_A )) +/* lghi %ba,0 */ +EMIT4_IMM (0xa7090000 ,BPF_REG_A ,0 ); +if (REG_SEEN (BPF_REG_X )) +/* lghi %bx,0 */ +EMIT4_IMM (0xa7090000 ,BPF_REG_X ,0 ); }/*
arch/tile/kernel/setup.c +1 -1
@@ -1139,7 +1139,7 @@ static void __init load_hv_initrd(void)void __init free_initrd_mem (unsigned long begin,unsigned long end) { -free_bootmem (__pa (begin), end - begin); +free_bootmem_late (__pa (begin), end - begin); }static int __init setup_initrd (char *str)
arch/x86/boot/compressed/eboot.c +4 -0
@@ -1193,6 +1193,10 @@ static efi_status_t setup_e820(struct boot_params *params,unsigned int e820_type =0 ;unsigned long m = efi->efi_memmap; +#ifdef CONFIG_X86_64 + m |= (u64 )efi->efi_memmap_hi <<32 ; +#endif + d = (efi_memory_desc_t *)(m + (i * efi->efi_memdesc_size));switch (d->type) {case EFI_RESERVED_TYPE :
arch/x86/include/asm/kasan.h +2 -6
@@ -14,15 +14,11 @@#ifndef __ASSEMBLY__ -extern pte_t kasan_zero_pte[]; -extern pte_t kasan_zero_pmd[]; -extern pte_t kasan_zero_pud[]; -#ifdef CONFIG_KASAN -void __init kasan_map_early_shadow (pgd_t *pgd); +void __init kasan_early_init (void );void __init kasan_init (void );#else -static inline void kasan_map_early_shadow (pgd_t *pgd) { } +static inline void kasan_early_init (void ) { }static inline void kasan_init (void ) { }#endif
arch/x86/include/asm/mmu_context.h +1 -1
@@ -23,7 +23,7 @@ extern struct static_key rdpmc_always_available;static inline void load_mm_cr4 (struct mm_struct *mm) { -if (static_key_true (&rdpmc_always_available) || +if (static_key_false (&rdpmc_always_available) ||atomic_read (&mm->context.perf_rdpmc_allowed))cr4_set_bits (X86_CR4_PCE );else
arch/x86/kernel/cpu/perf_event_intel_cqm.c +8 -0
@@ -934,6 +934,14 @@ static u64 intel_cqm_event_count(struct perf_event *event)return 0 ;/* +* Getting up-to-date values requires an SMP IPI which is not +* possible if we're being called in interrupt context. Return +* the cached values instead. +*/ +if (unlikely (in_interrupt ())) + goto out; + +/* * Notice that we don't perform the reading of an RMID * atomically, because we can't hold a spin lock across the * IPIs.
arch/x86/kernel/head64.c +4 -6
@@ -161,11 +161,12 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)/* Kill off the identity-map trampoline */ reset_early_page_tables (); -kasan_map_early_shadow (early_level4_pgt); - -/* clear bss before set_intr_gate with early_idt_handler */ clear_bss (); +clear_page (init_level4_pgt); + +kasan_early_init (); +for (i =0 ; i <NUM_EXCEPTION_VECTORS ; i++)set_intr_gate (i, early_idt_handler_array[i]);load_idt ((const struct desc_ptr *)&idt_descr);
@@ -177,12 +178,9 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)*/ load_ucode_bsp (); -clear_page (init_level4_pgt);/* set init_level4_pgt kernel high mapping*/ init_level4_pgt[511 ] = early_level4_pgt[511 ]; -kasan_map_early_shadow (init_level4_pgt); -x86_64_start_reservations (real_mode_data); }
arch/x86/kernel/head_64.S +0 -29
@@ -516,38 +516,9 @@ ENTRY(phys_base) /* This must match the first entry in level2_kernel_pgt */ .quad 0x0000000000000000 -#ifdef CONFIG_KASAN -#define FILL(VAL, COUNT) \ - .rept (COUNT) ; \ - .quad (VAL) ; \ - .endr - -NEXT_PAGE(kasan_zero_pte) - FILL(kasan_zero_page - __START_KERNEL_map + _KERNPG_TABLE, 512) -NEXT_PAGE(kasan_zero_pmd) - FILL(kasan_zero_pte - __START_KERNEL_map + _KERNPG_TABLE, 512) -NEXT_PAGE(kasan_zero_pud) - FILL(kasan_zero_pmd - __START_KERNEL_map + _KERNPG_TABLE, 512) - -#undef FILL -#endif - - #include "../../x86/xen/xen-head.S" __PAGE_ALIGNED_BSS NEXT_PAGE(empty_zero_page) .skip PAGE_SIZE -#ifdef CONFIG_KASAN -/* - * This page used as early shadow. We don't use empty_zero_page - * at early stages, stack instrumentation could write some garbage - * to this page. - * Latter we reuse it as zero shadow for large ranges of memory - * that allowed to access, but not instrumented by kasan - * (vmalloc/vmemmap ...). - */ -NEXT_PAGE(kasan_zero_page) - .skip PAGE_SIZE -#endif
arch/x86/mm/kasan_init_64.c +39 -5
91 lines not on this page · raw message
arch/x86/mm/tlb.c +1 -1
@@ -117,7 +117,7 @@ static void flush_tlb_func(void *info) }else {unsigned long addr;unsigned long nr_pages = - f->flush_end - f->flush_start /PAGE_SIZE ; + (f->flush_end - f->flush_start) /PAGE_SIZE ; addr = f->flush_start;while (addr < f->flush_end) {__flush_tlb_single (addr);
arch/x86/platform/efi/efi.c +5 -0
@@ -946,6 +946,11 @@ u64 efi_mem_attributes(unsigned long phys_addr)static int __init arch_parse_efi_cmdline (char *str) { +if (!str) { +pr_warn ("need at least one option\n" ); +return -EINVAL ; + } +if (parse_option_str (str,"old_map" ))set_bit (EFI_OLD_MEMMAP , &efi.flags);if (parse_option_str (str,"debug" ))
block/bio-integrity.c +2 -2
@@ -51,7 +51,7 @@ struct bio_integrity_payload *bio_integrity_alloc(struct bio *bio,unsigned long idx =BIO_POOL_NONE ;unsigned inline_vecs; -if (!bs) { +if (!bs || !bs->bio_integrity_pool) { bip =kmalloc (sizeof (struct bio_integrity_payload ) +sizeof (struct bio_vec ) * nr_vecs, gfp_mask); inline_vecs = nr_vecs;
@@ -104,7 +104,7 @@ void bio_integrity_free(struct bio *bio)kfree (page_address (bip->bip_vec->bv_page) + bip->bip_vec->bv_offset); -if (bs) { +if (bs && bs->bio_integrity_pool) {if (bip->bip_slab !=BIO_POOL_NONE )bvec_free (bs->bvec_integrity_pool, bip->bip_vec, bip->bip_slab);
block/blk-cgroup.c +5 -1
@@ -716,8 +716,12 @@ int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,return -EINVAL ; disk =get_gendisk (MKDEV (major, minor), &part); -if (!disk || part) +if (!disk)return -EINVAL ; +if (part) { +put_disk (disk); +return -EINVAL ; + }rcu_read_lock ();spin_lock_irq (disk->queue->queue_lock);
block/blk-mq.c +1 -1
@@ -1968,7 +1968,7 @@ struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set, goto err_hctxs;setup_timer (&q->timeout, blk_mq_rq_timer, (unsigned long ) q); -blk_queue_rq_timeout (q, set->timeout ? set->timeout :30000 ); +blk_queue_rq_timeout (q, set->timeout ? set->timeout :30 *HZ ); q->nr_queues = nr_cpu_ids; q->nr_hw_queues = set->nr_hw_queues;
drivers/ata/libata-pmp.c +7 -0
@@ -460,6 +460,13 @@ static void sata_pmp_quirks(struct ata_port *ap)ATA_LFLAG_NO_SRST |ATA_LFLAG_ASSUME_ATA ; } + }else if (vendor ==0x11ab && devid ==0x4140 ) { +/* Marvell 4140 quirks */ +ata_for_each_link (link, ap,EDGE ) { +/* port 4 is for SEMB device and it doesn't like SRST */ +if (link->pmp ==4 ) + link->flags |=ATA_LFLAG_DISABLED ; + } } }
drivers/clk/st/clk-flexgen.c +2 -0
@@ -303,6 +303,8 @@ void __init st_of_flexgen_setup(struct device_node *np)if (!rlock) goto err; +spin_lock_init (rlock); +for (i =0 ; i < clk_data->clk_num; i++) {struct clk *clk;const char *clk_name;
drivers/clk/st/clkgen-fsyn.c +1 -1
@@ -340,7 +340,7 @@ static const struct clkgen_quadfs_data st_fs660c32_C_407 = {CLKGEN_FIELD (0x30c ,0xf ,20 ), CLKGEN_FIELD(0x310, 0xf, 20) }, .lockstatus_present = true, - .lock_status = CLKGEN_FIELD(0x2A0, 0x1, 24), + .lock_status = CLKGEN_FIELD(0x2f0, 0x1, 24), .powerup_polarity = 1, .standby_polarity = 1, .pll_ops = &st_quadfs_pll_c32_ops,
drivers/clk/st/clkgen-mux.c +1 -1
@@ -582,7 +582,7 @@ static struct clkgen_mux_data stih416_a9_mux_data = { };static struct clkgen_mux_data stih407_a9_mux_data = { .offset =0x1a4 , - .shift =1 , + .shift =0 , .width =2 , };
drivers/cpufreq/intel_pstate.c +1 -0
@@ -678,6 +678,7 @@ static struct cpu_defaults knl_params = { .get_max = core_get_max_pstate, .get_min = core_get_min_pstate, .get_turbo = knl_get_turbo_pstate, + .get_scaling = core_get_scaling, .set = core_set_pstate, }, };
drivers/crypto/omap-des.c +0 -3
@@ -536,9 +536,6 @@ static int omap_des_crypt_dma_stop(struct omap_des_dev *dd)dmaengine_terminate_all (dd->dma_lch_in);dmaengine_terminate_all (dd->dma_lch_out); -dma_unmap_sg (dd->dev, dd->in_sg, dd->in_sg_len,DMA_TO_DEVICE ); -dma_unmap_sg (dd->dev, dd->out_sg, dd->out_sg_len,DMA_FROM_DEVICE ); -return err; }
drivers/firmware/efi/cper.c +12 -3
@@ -305,10 +305,17 @@ const char *cper_mem_err_unpack(struct trace_seq *p,return ret; } -static void cper_print_mem (const char *pfx,const struct cper_sec_mem_err *mem) +static void cper_print_mem (const char *pfx,const struct cper_sec_mem_err *mem, +int len) {struct cper_mem_err_compact cmem; +/* Don't trust UEFI 2.1/2.2 structure with bad validation bits */ +if (len ==sizeof (struct cper_sec_mem_err_old ) && + (mem->validation_bits & ~(CPER_MEM_VALID_RANK_NUMBER -1 ))) { +pr_err (FW_WARN "valid bits set for fields beyond structure\n" ); +return ; + }if (mem->validation_bits &CPER_MEM_VALID_ERROR_STATUS )printk ("%s""error_status: 0x%016llx\n" , pfx, mem->error_status);if (mem->validation_bits &CPER_MEM_VALID_PA )
@@ -405,8 +412,10 @@ static void cper_estatus_print_section( }else if (!uuid_le_cmp (*sec_type,CPER_SEC_PLATFORM_MEM )) {struct cper_sec_mem_err *mem_err = (void *)(gdata +1 );printk ("%s""section_type: memory error\n" , newpfx); -if (gdata->error_data_length >=sizeof (*mem_err)) -cper_print_mem (newpfx, mem_err); +if (gdata->error_data_length >= +sizeof (struct cper_sec_mem_err_old )) +cper_print_mem (newpfx, mem_err, + gdata->error_data_length);else goto err_section_too_small; }else if (!uuid_le_cmp (*sec_type,CPER_SEC_PCIE )) {
drivers/firmware/efi/efi.c +5 -0
@@ -57,6 +57,11 @@ bool efi_runtime_disabled(void)static int __init parse_efi_cmdline (char *str) { +if (!str) { +pr_warn ("need at least one option\n" ); +return -EINVAL ; + } +if (parse_option_str (str,"noruntime" )) disable_runtime = true;
drivers/gpu/drm/nouveau/nouveau_drm.c +2 -0
@@ -863,8 +863,10 @@ nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv)pm_runtime_get_sync (dev->dev); +mutex_lock (&cli->mutex);if (cli->abi16)nouveau_abi16_fini (cli->abi16); +mutex_unlock (&cli->mutex);mutex_lock (&drm->client.mutex);list_del (&cli->head);
drivers/gpu/drm/nouveau/nv04_fbcon.c +1 -1
@@ -203,7 +203,7 @@ nv04_fbcon_accel_init(struct fb_info *info)if (ret)return ret; -if (RING_SPACE (chan,49 )) { +if (RING_SPACE (chan,49 + (device->info.chipset >=0x11 ?4 :0 ))) {nouveau_fbcon_gpu_lockup (info);return 0 ; }
drivers/gpu/drm/nouveau/nv50_display.c +1 -1
@@ -979,7 +979,7 @@ nv50_crtc_cursor_show_hide(struct nouveau_crtc *nv_crtc, bool show, bool update) {struct nv50_mast *mast =nv50_mast (nv_crtc->base.dev); -if (show && nv_crtc->cursor.nvbo) +if (show && nv_crtc->cursor.nvbo && nv_crtc->base.enabled)nv50_crtc_cursor_show (nv_crtc);else nv50_crtc_cursor_hide (nv_crtc);
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv04.c +8 -0
@@ -50,7 +50,12 @@ nv04_instobj_dtor(struct nvkm_object *object) {struct nv04_instmem_priv *priv = (void *)nvkm_instmem (object);struct nv04_instobj_priv *node = (void *)object; +struct nvkm_subdev *subdev = (void *)priv; + +mutex_lock (&subdev->mutex);nvkm_mm_free (&priv->heap, &node->mem); +mutex_unlock (&subdev->mutex); +nvkm_instobj_destroy (&node->base); }
@@ -62,6 +67,7 @@ nv04_instobj_ctor(struct nvkm_object *parent, struct nvkm_object *engine,struct nv04_instmem_priv *priv = (void *)nvkm_instmem (parent);struct nv04_instobj_priv *node;struct nvkm_instobj_args *args = data; +struct nvkm_subdev *subdev = (void *)priv;int ret;if (!args->align)
@@ -72,8 +78,10 @@ nv04_instobj_ctor(struct nvkm_object *parent, struct nvkm_object *engine,if (ret)return ret; +mutex_lock (&subdev->mutex); ret =nvkm_mm_head (&priv->heap,0 ,1 , args->size, args->size, args->align, &node->mem); +mutex_unlock (&subdev->mutex);if (ret)return ret;
drivers/hid/hid-cp2112.c +2 -0
@@ -356,6 +356,8 @@ static int cp2112_read(struct cp2112_device *dev, u8 *data, size_t size)struct cp2112_force_read_report report;int ret; +if (size >sizeof (dev->read_data)) + size =sizeof (dev->read_data); report.report =CP2112_DATA_READ_FORCE_SEND ; report.length =cpu_to_be16 (size);
drivers/hwmon/nct7802.c +1 -1
@@ -195,7 +195,7 @@ abort: }static int nct7802_write_voltage (struct nct7802_data *data,int nr,int index, -unsigned int voltage) +unsigned long voltage) {int shift =8 -REG_VOLTAGE_LIMIT_MSB_SHIFT [index -1 ][nr];int err;
drivers/hwmon/nct7904.c +29 -28
91 lines not on this page · raw message
drivers/infiniband/ulp/ipoib/ipoib_verbs.c +2 -1
@@ -176,7 +176,8 @@ int ipoib_transport_dev_init(struct net_device *dev, struct ib_device *ca)else size += ipoib_recvq_size * ipoib_max_conn_qp; }else - goto out_free_wq; +if (ret != -ENOSYS ) + goto out_free_wq; priv->recv_cq =ib_create_cq (priv->ca, ipoib_ib_completion,NULL , dev, size,0 );if (IS_ERR (priv->recv_cq)) {
drivers/input/mouse/synaptics.c +1 -1
@@ -1199,7 +1199,7 @@ static void set_input_params(struct psmouse *psmouse, ABS_MT_POSITION_Y);/* Image sensors can report per-contact pressure */ input_set_abs_params (dev,ABS_MT_PRESSURE ,0 ,255 ,0 ,0 ); -input_mt_init_slots (dev,3 ,INPUT_MT_POINTER |INPUT_MT_TRACK ); +input_mt_init_slots (dev,2 ,INPUT_MT_POINTER |INPUT_MT_TRACK );/* Image sensors can signal 4 and 5 finger clicks */ __set_bit (BTN_TOOL_QUADTAP , dev->keybit);
drivers/input/touchscreen/usbtouchscreen.c +3 -0
@@ -627,6 +627,9 @@ static int dmc_tsc10_init(struct usbtouch_usb *usbtouch) goto err_out; } +/* TSC-25 data sheet specifies a delay after the RESET command */ +msleep (150 ); +/* set coordinate output rate */ buf[0 ] = buf[1 ] =0xFF ; ret = usb_control_msg(dev, usb_rcvctrlpipe (dev, 0),
drivers/iommu/intel-iommu.c +6 -3
@@ -1756,8 +1756,9 @@ static int domain_init(struct dmar_domain *domain, int guest_width)static void domain_exit (struct dmar_domain *domain) { +struct dmar_drhd_unit *drhd; +struct intel_iommu *iommu;struct page *freelist =NULL ; -int i;/* Domain 0 is reserved, so dont process it */ if (!domain)
@@ -1777,8 +1778,10 @@ static void domain_exit(struct dmar_domain *domain)/* clear attached or cached domains */ rcu_read_lock (); -for_each_set_bit (i, domain->iommu_bmp, g_num_of_iommus) -iommu_detach_domain (domain, g_iommus[i]); +for_each_active_iommu (iommu, drhd) +if (domain_type_is_vm (domain) || +test_bit (iommu->seq_id, domain->iommu_bmp)) +iommu_detach_domain (domain, iommu);rcu_read_unlock ();dma_free_pagelist (freelist);
drivers/irqchip/irq-gic-v3-its.c +75 -36
283 lines not on this page · raw message
drivers/md/dm.c +2 -6
@@ -1053,13 +1053,10 @@ static struct dm_rq_target_io *tio_from_request(struct request *rq)*/ static void rq_completed (struct mapped_device *md,int rw,bool run_queue) { -int nr_requests_pending; -atomic_dec (&md->pending[rw]);/* nudge anyone waiting on suspend queue */ - nr_requests_pending =md_in_flight (md); -if (!nr_requests_pending) +if (!md_in_flight (md))wake_up (&md->wait);/*
@@ -1071,8 +1068,7 @@ static void rq_completed(struct mapped_device *md, int rw, bool run_queue)if (run_queue) {if (md->queue->mq_ops)blk_mq_run_hw_queues (md->queue, true); -else if (!nr_requests_pending || - (nr_requests_pending >= md->queue->nr_congestion_on)) +else blk_run_queue_async (md->queue); }
drivers/md/raid1.c +1 -1
@@ -336,7 +336,7 @@ static void raid1_end_read_request(struct bio *bio, int error)spin_lock_irqsave (&conf->device_lock, flags);if (r1_bio->mddev->degraded == conf->raid_disks || (r1_bio->mddev->degraded == conf->raid_disks-1 && - !test_bit (Faulty, &conf->mirrors[mirror].rdev->flags))) +test_bit (In_sync, &conf->mirrors[mirror].rdev->flags))) uptodate =1 ;spin_unlock_irqrestore (&conf->device_lock, flags); }
drivers/misc/cxl/context.c +2 -2
@@ -113,11 +113,11 @@ static int cxl_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)if (ctx->afu->current_mode ==CXL_MODE_DEDICATED ) { area = ctx->afu->psn_phys; -if (offset > ctx->afu->adapter->ps_size) +if (offset >= ctx->afu->adapter->ps_size)return VM_FAULT_SIGBUS ; }else { area = ctx->psn_phys; -if (offset > ctx->psn_size) +if (offset >= ctx->psn_size)return VM_FAULT_SIGBUS ; }
drivers/misc/cxl/main.c +1 -1
@@ -73,7 +73,7 @@ static inline void cxl_slbia_core(struct mm_struct *mm)spin_lock (&adapter->afu_list_lock);for (slice =0 ; slice < adapter->slices; slice++) { afu = adapter->afu[slice]; -if (!afu->enabled) +if (!afu || !afu->enabled)continue ;rcu_read_lock ();idr_for_each_entry (&afu->contexts_idr, ctx, id)
drivers/misc/mei/main.c +1 -1
@@ -685,7 +685,7 @@ int mei_register(struct mei_device *dev, struct device *parent)/* Fill in the data structures */ devno =MKDEV (MAJOR (mei_devt), dev->minor);cdev_init (&dev->cdev, &mei_fops); - dev->cdev.owner = mei_fops.owner; + dev->cdev.owner = parent->driver->owner;/* Add the device */ ret =cdev_add (&dev->cdev, devno,1 );
drivers/mmc/host/omap_hsmmc.c +4 -4
@@ -1062,6 +1062,10 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status)if (status & (CTO_EN |CCRC_EN )) end_cmd =1 ; +if (host->data || host->response_busy) { + end_trans = !end_cmd; + host->response_busy =0 ; + }if (status & (CTO_EN |DTO_EN ))hsmmc_command_incomplete (host, -ETIMEDOUT , end_cmd);else if (status & (CCRC_EN |DCRC_EN ))
@@ -1081,10 +1085,6 @@ static void omap_hsmmc_do_irq(struct omap_hsmmc_host *host, int status) }dev_dbg (mmc_dev (host->mmc),"AC12 err: 0x%x\n" , ac12); } -if (host->data || host->response_busy) { - end_trans = !end_cmd; - host->response_busy =0 ; - } }OMAP_HSMMC_WRITE (host->base,STAT , status);
drivers/mmc/host/sdhci-esdhc.h +1 -1
@@ -45,6 +45,6 @@#define ESDHC_DMA_SYSCTL 0x40c#define ESDHC_DMA_SNOOP 0x00000040 -#define ESDHC_HOST_CONTROL_RES 0x05 +#define ESDHC_HOST_CONTROL_RES 0x01#endif /* _DRIVERS_MMC_SDHCI_ESDHC_H */
drivers/mmc/host/sdhci-pxav3.c +1 -0
@@ -411,6 +411,7 @@ static int sdhci_pxav3_probe(struct platform_device *pdev) goto err_of_parse;sdhci_get_of_property (pdev); pdata =pxav3_get_mmc_pdata (dev); + pdev->dev.platform_data = pdata; }else if (pdata) {/* on-chip device */ if (pdata->flags &PXA_FLAG_CARD_PERMANENT )
drivers/mmc/host/sdhci.c +5 -2
@@ -3037,8 +3037,11 @@ int sdhci_add_host(struct sdhci_host *host) GFP_KERNEL); host->align_buffer =kmalloc (host->align_buffer_sz,GFP_KERNEL );if (!host->adma_table || !host->align_buffer) { -dma_free_coherent (mmc_dev (mmc), host->adma_table_sz, - host->adma_table, host->adma_addr); +if (host->adma_table) +dma_free_coherent (mmc_dev (mmc), + host->adma_table_sz, + host->adma_table, + host->adma_addr);kfree (host->align_buffer);pr_warn ("%s: Unable to allocate ADMA buffers - falling back to standard DMA\n" ,mmc_hostname (mmc));
drivers/net/can/c_can/c_can.c +8 -2
@@ -592,6 +592,7 @@ static int c_can_start(struct net_device *dev) {struct c_can_priv *priv =netdev_priv (dev);int err; +struct pinctrl *p;/* basic c_can configuration */ err =c_can_chip_config (dev);
@@ -604,8 +605,13 @@ static int c_can_start(struct net_device *dev) priv->can.state =CAN_STATE_ERROR_ACTIVE ; -/* activate pins */ -pinctrl_pm_select_default_state (dev->dev.parent); +/* Attempt to use "active" if available else use "default" */ + p =pinctrl_get_select (priv->device,"active" ); +if (!IS_ERR (p)) +pinctrl_put (p); +else +pinctrl_pm_select_default_state (priv->device); +return 0 ; }
drivers/net/can/dev.c +2 -5
@@ -440,9 +440,6 @@ unsigned int can_get_echo_skb(struct net_device *dev, unsigned int idx)struct can_frame *cf = (struct can_frame *)skb->data;u8 dlc = cf->can_dlc; -if (!(skb->tstamp.tv64)) -__net_timestamp (skb); -netif_rx (priv->echo_skb[idx]); priv->echo_skb[idx] =NULL ;
@@ -578,7 +575,6 @@ struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf)if (unlikely (!skb))return NULL ; -__net_timestamp (skb); skb->protocol =htons (ETH_P_CAN ); skb->pkt_type =PACKET_BROADCAST ; skb->ip_summed =CHECKSUM_UNNECESSARY ;
@@ -589,6 +585,7 @@ struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf)can_skb_reserve (skb);can_skb_prv (skb)->ifindex = dev->ifindex; +can_skb_prv (skb)->skbcnt =0 ; *cf = (struct can_frame *)skb_put (skb,sizeof (struct can_frame ));memset (*cf,0 ,sizeof (struct can_frame ));
@@ -607,7 +604,6 @@ struct sk_buff *alloc_canfd_skb(struct net_device *dev,if (unlikely (!skb))return NULL ; -__net_timestamp (skb); skb->protocol =htons (ETH_P_CANFD ); skb->pkt_type =PACKET_BROADCAST ; skb->ip_summed =CHECKSUM_UNNECESSARY ;
@@ -618,6 +614,7 @@ struct sk_buff *alloc_canfd_skb(struct net_device *dev,can_skb_reserve (skb);can_skb_prv (skb)->ifindex = dev->ifindex; +can_skb_prv (skb)->skbcnt =0 ; *cfd = (struct canfd_frame *)skb_put (skb,sizeof (struct canfd_frame ));memset (*cfd,0 ,sizeof (struct canfd_frame ));
drivers/net/can/rcar_can.c +4 -3
@@ -526,7 +526,7 @@ static int rcar_can_open(struct net_device *ndev)napi_enable (&priv->napi); err =request_irq (ndev->irq, rcar_can_interrupt,0 , ndev->name, ndev);if (err) { -netdev_err (ndev,"error requesting interrupt %x\n" , ndev->irq); +netdev_err (ndev,"error requesting interrupt %d\n" , ndev->irq); goto out_close; }can_led_event (ndev,CAN_LED_EVENT_OPEN );
@@ -758,8 +758,9 @@ static int rcar_can_probe(struct platform_device *pdev) } irq =platform_get_irq (pdev,0 ); -if (!irq) { +if (irq <0 ) {dev_err (&pdev->dev,"No IRQ resource\n" ); + err = irq; goto fail; }
@@ -823,7 +824,7 @@ static int rcar_can_probe(struct platform_device *pdev)devm_can_led_init (ndev); -dev_info (&pdev->dev,"device registered (reg_base=%p, irq=%u)\n" , +dev_info (&pdev->dev,"device registered (regs @ %p, IRQ%d)\n" , priv->regs, ndev->irq);return 0 ;
drivers/net/can/slcan.c +1 -1
@@ -207,7 +207,6 @@ static void slc_bump(struct slcan *sl)if (!skb)return ; -__net_timestamp (skb); skb->dev = sl->dev; skb->protocol =htons (ETH_P_CAN ); skb->pkt_type =PACKET_BROADCAST ;
@@ -215,6 +214,7 @@ static void slc_bump(struct slcan *sl)can_skb_reserve (skb);can_skb_prv (skb)->ifindex = sl->dev->ifindex; +can_skb_prv (skb)->skbcnt =0 ; memcpy(skb_put(skb, sizeof(struct can_frame)),
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/iwl-nvm-parse.c +5 -7
Lines of this file are not shown. View the raw message.
drivers/net/wireless/iwlwifi/pcie/trans.c +6 -0
Lines of this file are not shown. View the raw message.
drivers/pinctrl/freescale/pinctrl-imx1-core.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/scsi/qla2xxx/qla_init.c +115 -26
141 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_target.c +24 -24
48 lines not on this page · raw message
drivers/target/iscsi/iscsi_target.c +39 -9
48 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_login.c +17 -28
45 lines not on this page · raw message
drivers/target/iscsi/iscsi_target_login.h +2 -1
Lines of this file are not shown. View the raw message.
drivers/target/iscsi/iscsi_target_nego.c +33 -1
Lines of this file are not shown. View the raw message.
fs/namespace.c +33 -9
42 lines not on this page · raw message
fs/xfs/libxfs/xfs_attr_remote.c +34 -10
44 lines not on this page · raw message
include/target/iscsi/iscsi_target_core.h +1 -0
Lines of this file are not shown. View the raw message.
kernel/trace/ftrace.c +34 -18
52 lines not on this page · raw message
sound/usb/quirks-table.h +68 -0
68 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.