Linux 3.8.3
Greg KH
maintainerI'm announcing the release of the 3.8.3 kernel.
All users of the 3.8 kernel series must upgrade.
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.8.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/kirkwood-dns320.dts | 2 arch/arm/boot/dts/kirkwood-dns325.dts | 1 arch/arm/boot/dts/kirkwood-dockstar.dts | 1 arch/arm/boot/dts/kirkwood-dreamplug.dts | 1 arch/arm/boot/dts/kirkwood-goflexnet.dts | 1 arch/arm/boot/dts/kirkwood-ib62x0.dts | 1 arch/arm/boot/dts/kirkwood-iconnect.dts | 1 arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts | 1 arch/arm/boot/dts/kirkwood-km_kirkwood.dts | 1 arch/arm/boot/dts/kirkwood-lschlv2.dts | 1 arch/arm/boot/dts/kirkwood-lsxhl.dts | 1 arch/arm/boot/dts/kirkwood-mplcec4.dts | 1 arch/arm/boot/dts/kirkwood-ns2-common.dtsi | 1 arch/arm/boot/dts/kirkwood-nsa310.dts | 1 arch/arm/boot/dts/kirkwood-openblocks_a6.dts | 2 arch/arm/boot/dts/kirkwood-topkick.dts | 1 arch/arm/boot/dts/kirkwood.dtsi | 5 arch/arm/configs/mxs_defconfig | 1 arch/arm/include/asm/delay.h | 1 arch/arm/include/asm/mmu.h | 8 arch/arm/include/asm/mmu_context.h | 2 arch/arm/include/asm/pgtable.h | 3 arch/arm/kernel/asm-offsets.c | 2 arch/arm/kernel/head.S | 26 ++- arch/arm/kernel/perf_event_v7.c | 2 arch/arm/kernel/smp.c | 3 arch/arm/lib/delay.c | 1 arch/arm/mm/alignment.c | 11 - arch/arm/mm/context.c | 25 +-- arch/arm/vfp/vfpmodule.c | 2 arch/powerpc/kernel/setup_64.c | 16 + arch/tile/include/asm/compat.h | 3 arch/tile/kernel/compat.c | 13 + arch/x86/kernel/kvmclock.c | 11 - arch/x86/kernel/pvclock.c | 2 arch/x86/pci/xen.c | 9 + arch/x86/xen/enlighten.c | 10 + crypto/ablkcipher.c | 12 - crypto/aead.c | 9 - crypto/ahash.c | 2 crypto/blkcipher.c | 6 crypto/crypto_user.c | 22 +- crypto/pcompress.c | 3 crypto/rng.c | 2 crypto/shash.c | 3 drivers/block/xen-blkback/blkback.c | 1 drivers/char/hw_random/core.c | 19 +- drivers/char/random.c | 12 - drivers/connector/cn_proc.c | 8 drivers/firmware/dmi_scan.c | 5 drivers/firmware/efivars.c | 210 ++++++++++++++++---------- drivers/gpio/gpio-mvebu.c | 7 drivers/gpu/drm/i915/i915_dma.c | 23 +- drivers/gpu/drm/i915/i915_drv.c | 25 ++- drivers/gpu/drm/i915/i915_drv.h | 1 drivers/gpu/drm/i915/i915_irq.c | 4 drivers/gpu/drm/i915/intel_crt.c | 2 drivers/gpu/drm/i915/intel_pm.c | 2 drivers/gpu/drm/radeon/radeon_combios.c | 9 + drivers/gpu/drm/radeon/radeon_irq_kms.c | 12 + drivers/hid/hid-logitech-dj.c | 22 +- drivers/hwmon/pmbus/ltc2978.c | 30 +-- drivers/hwmon/sht15.c | 8 drivers/md/dm-crypt.c | 39 +--- drivers/md/dm-delay.c | 8 drivers/md/dm-flakey.c | 7 drivers/md/dm-ioctl.c | 14 + drivers/md/dm-linear.c | 7 drivers/md/dm-mpath.c | 8 drivers/md/dm-raid.c | 8 drivers/md/dm-raid1.c | 8 drivers/md/dm-snap.c | 18 -- drivers/md/dm-stripe.c | 7 drivers/md/dm-thin.c | 80 ++++++--- drivers/md/dm-verity.c | 8 drivers/md/dm.c | 42 +++-- drivers/md/md.c | 7 drivers/md/raid0.c | 5 drivers/md/raid1.c | 1 drivers/md/raid10.c | 1 drivers/memstick/host/rtsx_pci_ms.c | 7 drivers/mfd/rtsx_pcr.c | 61 ++++++- drivers/mmc/host/rtsx_pci_sdmmc.c | 18 ++ drivers/net/ethernet/broadcom/tg3.c | 14 - drivers/net/ethernet/intel/e1000e/netdev.c | 2 drivers/net/usb/smsc95xx.c | 6 drivers/net/wireless/ath/ath9k/common.h | 2 drivers/net/wireless/ath/ath9k/htc.h | 1 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 18 +- drivers/net/wireless/ath/ath9k/hw.c | 4 drivers/net/wireless/iwlwifi/iwl-devtrace.h | 10 - drivers/net/wireless/iwlwifi/pcie/internal.h | 9 + drivers/net/wireless/iwlwifi/pcie/tx.c | 75 +++++++-- drivers/net/wireless/libertas/if_sdio.c | 6 drivers/net/wireless/mwifiex/pcie.c | 2 drivers/platform/x86/acer-wmi.c | 3 drivers/platform/x86/sony-laptop.c | 2 drivers/rtc/rtc-mv.c | 28 ++- drivers/scsi/dc395x.c | 2 drivers/scsi/storvsc_drv.c | 1 drivers/target/iscsi/iscsi_target.c | 11 + drivers/target/target_core_pscsi.c | 1 drivers/usb/core/hub.c | 178 +++++++++++----------- drivers/usb/host/ehci-timer.c | 29 +-- drivers/w1/masters/w1-gpio.c | 2 drivers/watchdog/Kconfig | 1 drivers/watchdog/sp5100_tco.c | 27 --- drivers/xen/xenbus/xenbus_client.c | 1 fs/btrfs/inode.c | 4 fs/btrfs/tree-log.c | 18 ++ fs/btrfs/volumes.c | 1 fs/cifs/cifsfs.c | 5 fs/cifs/smb2ops.c | 1 fs/compat.c | 15 - fs/ext4/balloc.c | 2 fs/ext4/mballoc.c | 8 fs/ext4/resize.c | 6 fs/ext4/super.c | 2 fs/namei.c | 2 fs/nfs/nfs4filelayout.c | 6 fs/nfs/nfs4proc.c | 11 + fs/nfs/pnfs.c | 14 + fs/nfs/pnfs.h | 6 fs/nfs/unlink.c | 20 +- fs/pipe.c | 3 fs/proc/namespaces.c | 12 - include/linux/device-mapper.h | 4 include/linux/mfd/rtsx_pci.h | 2 ipc/msg.c | 6 ipc/msgutil.c | 3 kernel/fork.c | 5 kernel/time/tick-sched.c | 7 kernel/trace/Kconfig | 24 +- kernel/user_namespace.c | 4 mm/mempolicy.c | 2 mm/process_vm_access.c | 8 net/ieee802154/6lowpan.c | 2 net/mac80211/mlme.c | 11 + net/sunrpc/xprt.c | 6 security/keys/compat.c | 4 security/keys/process_keys.c | 4 sound/core/vmaster.c | 5 sound/pci/ice1712/ice1712.c | 2 144 files changed, 1052 insertions(+), 607 deletions(-)
Al Viro (1):
vfs: fix pipe counter breakage
Alan Stern (1):
USB: EHCI: revert "remove ASS/PSS polling timeout"
Alex Deucher (2):
drm/radeon: don't set hpd, afmt interrupts when interrupts are disabled drm/radeon: add primary dac adj quirk for R200 board
Andrew Lunn (2):
rtc: rtc-mv: Add support for clk to avoid lockups
gpio: mvebu: Add clk support to prevent lockup
Asias He (1):
target/pscsi: Fix page increment
Avinash Patil (1):
mwifiex: correct sleep delay counter
Ben Greear (1):
mac80211: Fix crash due to un-canceled work-items
Ben Hutchings (1):
dmi_scan: fix missing check for _DMI_ signature in smbios_present()
Benjamin Tissoires (1):
HID: logitech-dj: do not directly call hid_output_raw_report() during probe
Benny Halevy (1):
pnfs: fix resend_to_mds for directio
Bing Zhao (1):
libertas: fix crash for SD8688
Catalin Marinas (1):
ARM: 7654/1: Preserve L_PTE_VALID in pte_modify()
Chris Metcalf (1):
tile: work around bug in the generic sys_llseek
Dan Carpenter (1):
SCSI: dc395x: uninitialized variable in device_alloc()
Daniel Vetter (2):
drm/i915: reorder setup sequence to have irqs for output setup drm/i915: enable irqs earlier when resuming
David Howells (1):
keys: fix race with concurrent install_user_keyrings()
David S. Miller (1):
6lowpan: Remove __init tag from lowpan_netlink_fini().
Eric W. Biederman (3):
proc: Use nd_jump_link in proc_ns_follow_link
userns: Stop oopsing in key_change_session_keyring
userns: Don't allow CLONE_NEWUSER | CLONE_FS
Fabio Estevam (1):
ARM: mxs_defconfig: Make USB host functional again
Felix Fietkau (3):
ath9k: fix RSSI dummy marker value
ath9k_htc: fix signal strength handling issues
ath9k_hw: improve reset reliability after errors
Frederic Weisbecker (1):
nohz: Make tick_nohz_irq_exit() irq safe
Greg Kroah-Hartman (2):
Revert "xen/blkback: Don't trust the handle from the frontend." Linux 3.8.3
Guenter Roeck (2):
hwmon: (pmbus/ltc2978) Fix peak attribute handling
hwmon: (pmbus/ltc2978) Use detected chip ID to select supported functionality
Hauke Mehrtens (1):
w1-gpio: fix section mismatch
Hillf Danton (1):
mm/mempolicy.c: fix wrong sp_node insertion
Jason Cooper (1):
ARM: kirkwood: of_serial: fix clock gating by removing clock-frequency
Jeff Layton (1):
cifs: ensure that cifs_get_root() only traverses directories
Johannes Berg (1):
iwlwifi: always copy first 16 bytes of commands
Josef Bacik (4):
Btrfs: copy everything if we've created an inline extent
Btrfs: delete inline extents when we find them during logging
Btrfs: account for orphan inodes properly during cleanup
Btrfs: cleanup orphan reservation if truncate fails
Jun'ichi Nomura (1):
dm: do not replace bioset for request based dm
K. Y. Srinivasan (1):
SCSI: storvsc: Initialize the sglist
Kees Cook (1):
proc connector: reject unprivileged listener bumps
Kenneth Graunke (1):
drm/i915: Fix Haswell/CRW PCI IDs.
Konrad Rzeszutek Wilk (2):
xen/pat: Disable PAT using pat_enabled value. xen/pci: We don't do multiple MSI's.
Konstantin Khlebnikov (1):
e1000e: fix pci-device enable-counter balance
Lee, Chun-Yi (1):
acer-wmi: avoid the warning of 'devices' may be used uninitialized
Linus Torvalds (1):
vfs: don't BUG_ON() if following a /proc fd pseudo-symlink results in a symlink
Lukas Czerner (1):
ext4: convert number of blocks to clusters properly
Marcelo Tosatti (1):
x86: pvclock kvm: align allocation size to page size
Mark Brown (1):
hwmon: (sht15) Check return value of regulator_enable()
Mathias Krause (1):
crypto: user - fix info leaks in report API
Mathieu Desnoyers (1):
Fix: compat_rw_copy_check_uvector() misuse in aio, readv, writev, and security keys
Matt Fleming (2):
efivars: efivarfs_valid_name() should handle pstore syntax
efivarfs: return accurate error code in efivarfs_fill_super()
Matthew Garrett (1):
efi: be more paranoid about available space when creating variables
Mattia Dongili (1):
sony-laptop: fully enable SNY controlled modems
Michael Ellerman (1):
powerpc: Apply early paca fixups to boot_paca and the boot cpu's paca
Mike Christie (1):
dm: fix limits initialization when there are no data devices
Mikulas Patocka (2):
dm: fix truncated status strings
dm snapshot: add missing module aliases
Ming Lei (1):
usbnet: smsc95xx: fix suspend failure
NeilBrown (3):
md: fix two bugs when attempting to resize RAID0 array.
md: raid0: fix error return from create_stripe_zones. md/raid1,raid10: fix deadlock with freeze_array()
Nicholas Bellinger (1):
iscsi-target: Fix immediate queue starvation regression with DATAIN
Nicolas Pitre (1):
ARM: 7653/2: do not scale loops_per_jiffy when using a constant delay clock
Nithin Sujir (1):
tg3: Update link_up flag for phylib devices
Patrik Jakobsson (1):
drm/i915: Turn off hsync and vsync on ADPA when disabling crt
Pavel Shilovsky (1):
CIFS: Fix missing of oplock_read value in smb30_values structure
Peter Hurley (3):
ipc: fix potential oops when src msg > 4k w/ MSG_COPY
ipc: don't allocate a copy larger than max x86/kvm: Fix pvclock vsyscall fixmap
Randy Dunlap (1):
watchdog: da9055_wdt needs to select WATCHDOG_CORE
Russell King (2):
ARM: VFP: fix emulation of second VFP instruction
ARM: fix scheduling while atomic warning in alignment handling code
Rusty Russell (1):
hw_random: make buffer usable in scatterlist.
Sarah Sharp (4):
USB: Don't use EHCI port sempahore for USB 3.0 hubs.
USB: Prepare for refactoring by adding extra udev checks.
USB: Rip out recursive call on warm port reset.
USB: Fix connected device switch to Inactive state.
Sean Connor (1):
ALSA: ice1712: Initialize card->private_data properly
Sebastian Riemer (1):
md: protect against crash upon fsync on ro array
Seiji Aguchi (1):
efivars: Disable external interrupt while holding efivars->lock
Steven Noonan (1):
xenbus: fix compile failure on ARM with Xen enabled
Steven Rostedt (1):
ftrace: Update the kconfig for DYNAMIC_FTRACE
Stéphane Marchesin (1):
drm/i915: Increase the RC6p threshold.
Takahisa Tanaka (2):
watchdog: sp5100_tco: Fix wrong indirect I/O access for getting value of reserved bits
watchdog: sp5100_tco: Write back the original value to reserved bits, instead of zero
Takashi Iwai (1):
ALSA: vmaster: Fix slave change notification
Theodore Ts'o (1):
random: fix locking dependency with the tasklist_lock
Thomas Gleixner (1):
btrfs: Init io_lock after cloning btrfs device struct
Trond Myklebust (2):
NFS: Don't allow NFS silly-renamed files to be deleted, no signal
SUNRPC: Don't start the retransmission timer when out of socket space
Wei WANG (2):
mfd: rtsx: Optimize card detect flow
mfd: rtsx: Fix issue that booting OS with SD card inserted
Weston Andros Adamson (1):
NFSv4.1: Hold reference to layout hdr in layoutget
Will Deacon (4):
ARM: 7657/1: head: fix swapper and idmap population with LPAE and big-endian
ARM: 7658/1: mm: fix race updating mm->context.id on ASID rollover
ARM: 7659/1: mm: make mm->context.id an atomic64_t variable
ARM: 7663/1: perf: fix ARMv7 EVTYPE_MASK to include NSH bit
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 8 -SUBLEVEL = 2 +SUBLEVEL = 3 EXTRAVERSION = NAME = Unicycling Gorilla
arch/arm/boot/dts/kirkwood-dns320.dts +0 -2
@@ -42,12 +42,10 @@ ocp@f1000000 { serial@12000 { - clock-frequency = <166666667>; status = "okay"; }; serial@12100 { - clock-frequency = <166666667>; status = "okay"; }; };
arch/arm/boot/dts/kirkwood-dns325.dts +0 -1
@@ -50,7 +50,6 @@ }; }; serial@12000 { - clock-frequency = <200000000>; status = "okay"; }; };
arch/arm/boot/dts/kirkwood-dockstar.dts +0 -1
@@ -37,7 +37,6 @@ }; }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-dreamplug.dts +0 -1
@@ -38,7 +38,6 @@ }; }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-goflexnet.dts +0 -1
@@ -73,7 +73,6 @@ }; }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-ib62x0.dts +0 -1
@@ -51,7 +51,6 @@ }; }; serial@12000 { - clock-frequency = <200000000>; status = "okay"; };
arch/arm/boot/dts/kirkwood-iconnect.dts +0 -1
@@ -78,7 +78,6 @@ }; }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts +0 -1
@@ -115,7 +115,6 @@ }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-km_kirkwood.dts +0 -1
@@ -34,7 +34,6 @@ }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-lschlv2.dts +0 -1
@@ -13,7 +13,6 @@ ocp@f1000000 { serial@12000 { - clock-frequency = <166666667>; status = "okay"; }; };
arch/arm/boot/dts/kirkwood-lsxhl.dts +0 -1
@@ -13,7 +13,6 @@ ocp@f1000000 { serial@12000 { - clock-frequency = <200000000>; status = "okay"; }; };
arch/arm/boot/dts/kirkwood-mplcec4.dts +0 -1
@@ -91,7 +91,6 @@ }; serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-ns2-common.dtsi +0 -1
@@ -23,7 +23,6 @@ }; serial@12000 { - clock-frequency = <166666667>; status = "okay"; };
arch/arm/boot/dts/kirkwood-nsa310.dts +0 -1
@@ -18,7 +18,6 @@ ocp@f1000000 { serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-openblocks_a6.dts +0 -2
@@ -18,12 +18,10 @@ ocp@f1000000 { serial@12000 { - clock-frequency = <200000000>; status = "ok"; }; serial@12100 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood-topkick.dts +0 -1
@@ -17,7 +17,6 @@ ocp@f1000000 { serial@12000 { - clock-frequency = <200000000>; status = "ok"; };
arch/arm/boot/dts/kirkwood.dtsi +3 -2
@@ -38,6 +38,7 @@ interrupt-controller; #interrupt-cells = <2>; interrupts = <35>, <36>, <37>, <38>; + clocks = <&gate_clk 7>; }; gpio1: gpio@10140 {
@@ -49,6 +50,7 @@ interrupt-controller; #interrupt-cells = <2>; interrupts = <39>, <40>, <41>; + clocks = <&gate_clk 7>; }; serial@12000 {
@@ -57,7 +59,6 @@ reg-shift = <2>; interrupts = <33>; clocks = <&gate_clk 7>; - /* set clock-frequency in board dts */ status = "disabled"; };
@@ -67,7 +68,6 @@ reg-shift = <2>; interrupts = <34>; clocks = <&gate_clk 7>; - /* set clock-frequency in board dts */ status = "disabled"; };
@@ -75,6 +75,7 @@ compatible = "marvell,kirkwood-rtc", "marvell,orion-rtc"; reg = <0x10300 0x20>; interrupts = <53>; + clocks = <&gate_clk 7>; }; spi@10600 {
arch/arm/configs/mxs_defconfig +1 -0
@@ -118,6 +118,7 @@ CONFIG_FRAMEBUFFER_CONSOLE=y CONFIG_FONTS=y CONFIG_LOGO=y CONFIG_USB=y +CONFIG_USB_EHCI_HCD=y CONFIG_USB_CHIPIDEA=y CONFIG_USB_CHIPIDEA_HOST=y CONFIG_USB_STORAGE=y
arch/arm/include/asm/delay.h +1 -0
@@ -24,6 +24,7 @@ extern struct arm_delay_ops {void (*delay)(unsigned long );void (*const_udelay)(unsigned long );void (*udelay)(unsigned long ); +bool const_clock; } arm_delay_ops;#define __delay (n) arm_delay_ops.delay(n)
arch/arm/include/asm/mmu.h +4 -4
@@ -5,15 +5,15 @@typedef struct {#ifdef CONFIG_CPU_HAS_ASID -u64 id; +atomic64_t id;#endif -unsigned int vmalloc_seq; +unsigned int vmalloc_seq; }mm_context_t ;#ifdef CONFIG_CPU_HAS_ASID #define ASID_BITS 8#define ASID_MASK ((~0ULL) << ASID_BITS) -#define ASID (mm) ((mm)->context.id & ~ASID_MASK) +#define ASID (mm) ((mm)->context.id.counter & ~ASID_MASK)#else #define ASID (mm) (0)#endif
@@ -26,7 +26,7 @@ typedef struct {* modified for 2.6 by Hyok S. Choi <[email protected]> */ typedef struct { -unsigned long end_brk; +unsigned long end_brk; }mm_context_t ;#endif
arch/arm/include/asm/mmu_context.h +1 -1
@@ -25,7 +25,7 @@ void __check_vmalloc_seq(struct mm_struct *mm);#ifdef CONFIG_CPU_HAS_ASID void check_and_switch_context (struct mm_struct *mm,struct task_struct *tsk); -#define init_new_context (tsk,mm) ({ mm->context.id = 0; }) +#define init_new_context (tsk,mm) ({ atomic64_set(&mm->context.id, 0); 0; })#else /* !CONFIG_CPU_HAS_ASID */
arch/arm/include/asm/pgtable.h +2 -1
@@ -240,7 +240,8 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; }static inline pte_t pte_modify (pte_t pte,pgprot_t newprot) { -const pteval_t mask =L_PTE_XN |L_PTE_RDONLY |L_PTE_USER |L_PTE_NONE ; +const pteval_t mask =L_PTE_XN |L_PTE_RDONLY |L_PTE_USER | +L_PTE_NONE |L_PTE_VALID ;pte_val (pte) = (pte_val (pte) & ~mask) | (pgprot_val (newprot) & mask);return pte; }
arch/arm/kernel/asm-offsets.c +1 -1
@@ -107,7 +107,7 @@ int main(void)BLANK ();#endif #ifdef CONFIG_CPU_HAS_ASID - DEFINE(MM_CONTEXT_ID, offsetof(struct mm_struct, context.id)); + DEFINE(MM_CONTEXT_ID, offsetof(struct mm_struct, context.id.counter));BLANK ();#endif DEFINE (VMA_VM_MM , offsetof(struct vm_area_struct , vm_mm));
arch/arm/kernel/head.S +22 -4
@@ -184,13 +184,22 @@ __create_page_tables: orr r3, r3, #3 @ PGD block type mov r6, #4 @ PTRS_PER_PGD mov r7, #1 << (55 - 32) @ L_PGD_SWAPPER -1: str r3, [r0], #4 @ set bottom PGD entry bits +1: +#ifdef CONFIG_CPU_ENDIAN_BE8 str r7, [r0], #4 @ set top PGD entry bits + str r3, [r0], #4 @ set bottom PGD entry bits +#else + str r3, [r0], #4 @ set bottom PGD entry bits + str r7, [r0], #4 @ set top PGD entry bits +#endif add r3, r3, #0x1000 @ next PMD table subs r6, r6, #1 bne 1b add r4, r4, #0x1000 @ point to the PMD tables +#ifdef CONFIG_CPU_ENDIAN_BE8 + add r4, r4, #4 @ we only write the bottom word +#endif #endif ldr r7, [r10, #PROCINFO_MM_MMUFLAGS] @ mm_mmuflags
@@ -258,6 +267,11 @@ __create_page_tables: addne r6, r6, #1 << SECTION_SHIFT strne r6, [r3] +#if defined(CONFIG_LPAE) && defined(CONFIG_CPU_ENDIAN_BE8) + sub r4, r4, #4 @ Fixup page table pointer + @ for 64-bit descriptors +#endif + #ifdef CONFIG_DEBUG_LL #if !defined(CONFIG_DEBUG_ICEDCC) && !defined(CONFIG_DEBUG_SEMIHOSTING) /*
@@ -276,13 +290,17 @@ __create_page_tables: orr r3, r7, r3, lsl #SECTION_SHIFT #ifdef CONFIG_ARM_LPAE mov r7, #1 << (54 - 32) @ XN +#ifdef CONFIG_CPU_ENDIAN_BE8 + str r7, [r0], #4 + str r3, [r0], #4 #else - orr r3, r3, #PMD_SECT_XN -#endif str r3, [r0], #4 -#ifdef CONFIG_ARM_LPAE str r7, [r0], #4 #endif +#else + orr r3, r3, #PMD_SECT_XN + str r3, [r0], #4 +#endif #else /* CONFIG_DEBUG_ICEDCC || CONFIG_DEBUG_SEMIHOSTING */ /* we don't need any serial debugging mappings */
arch/arm/kernel/perf_event_v7.c +1 -1
@@ -774,7 +774,7 @@ static const unsigned armv7_a7_perf_cache_map[PERF_COUNT_HW_CACHE_MAX]/* * PMXEVTYPER: Event selection reg */ -#define ARMV7_EVTYPE_MASK 0xc00000ff/* Mask for writable bits */ +#define ARMV7_EVTYPE_MASK 0xc80000ff/* Mask for writable bits */ #define ARMV7_EVTYPE_EVENT 0xff/* Mask for EVENT bits */ /*
arch/arm/kernel/smp.c +3 -0
@@ -693,6 +693,9 @@ static int cpufreq_callback(struct notifier_block *nb,if (freq->flags &CPUFREQ_CONST_LOOPS )return NOTIFY_OK ; +if (arm_delay_ops.const_clock) +return NOTIFY_OK ; +if (!per_cpu (l_p_j_ref, cpu)) {per_cpu (l_p_j_ref, cpu) =per_cpu (cpu_data, cpu).loops_per_jiffy;
arch/arm/lib/delay.c +1 -0
@@ -77,6 +77,7 @@ void __init register_current_timer_delay(const struct delay_timer *timer) arm_delay_ops.delay = __timer_delay; arm_delay_ops.const_udelay = __timer_const_udelay; arm_delay_ops.udelay = __timer_udelay; + arm_delay_ops.const_clock = true; delay_calibrated = true; }else {pr_info ("Ignoring duplicate/late registration of read_current_timer delay\n" );
arch/arm/mm/alignment.c +4 -7
@@ -749,7 +749,6 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs)unsigned long instr =0 , instrptr;int (*handler)(unsigned long addr,unsigned long instr,struct pt_regs *regs);unsigned int type; -mm_segment_t fs;unsigned int fault;u16 tinstr =0 ;int isize =4 ;
@@ -760,16 +759,15 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) instrptr =instruction_pointer (regs); - fs =get_fs (); -set_fs (KERNEL_DS );if (thumb_mode (regs)) { - fault =__get_user (tinstr, (u16 *)(instrptr & ~1 )); +u16 *ptr = (u16 *)(instrptr & ~1 ); + fault =probe_kernel_address (ptr, tinstr);if (!fault) {if (cpu_architecture () >= CPU_ARCH_ARMv7 &&IS_T32 (tinstr)) {/* Thumb-2 32-bit */ u16 tinst2 =0 ; - fault =__get_user (tinst2, (u16 *)(instrptr+2 )); + fault =probe_kernel_address (ptr +1 , tinst2); instr = (tinstr <<16 ) | tinst2; thumb2_32b =1 ; }else {
@@ -778,8 +776,7 @@ do_alignment(unsigned long addr, unsigned int fsr, struct pt_regs *regs) } } }else - fault =__get_user (instr, (u32 *)instrptr); -set_fs (fs); + fault =probe_kernel_address (instrptr, instr);if (fault) { type =TYPE_FAULT ;
arch/arm/mm/context.c +15 -10
@@ -149,9 +149,9 @@ static int is_reserved_asid(u64 asid)return 0 ; } -static void new_context (struct mm_struct *mm,unsigned int cpu) +static u64 new_context (struct mm_struct *mm,unsigned int cpu) { -u64 asid = mm->context.id; +u64 asid =atomic64_read (&mm->context.id);u64 generation =atomic64_read (&asid_generation);if (asid !=0 &&is_reserved_asid (asid)) {
@@ -178,13 +178,14 @@ static void new_context(struct mm_struct *mm, unsigned int cpu)cpumask_clear (mm_cpumask (mm)); } - mm->context.id = asid; +return asid; }void check_and_switch_context (struct mm_struct *mm,struct task_struct *tsk) {unsigned long flags;unsigned int cpu =smp_processor_id (); +u64 asid;if (unlikely (mm->context.vmalloc_seq != init_mm.context.vmalloc_seq))__check_vmalloc_seq (mm);
@@ -195,20 +196,24 @@ void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk)*/ cpu_set_reserved_ttbr0 (); -if (!((mm->context.id ^atomic64_read (&asid_generation)) >>ASID_BITS ) - &&atomic64_xchg (&per_cpu (active_asids, cpu), mm->context.id)) + asid =atomic64_read (&mm->context.id); +if (!((asid ^atomic64_read (&asid_generation)) >>ASID_BITS ) + &&atomic64_xchg (&per_cpu (active_asids, cpu), asid)) goto switch_mm_fastpath;raw_spin_lock_irqsave (&cpu_asid_lock, flags);/* Check that our ASID belongs to the current generation. */ -if ((mm->context.id ^atomic64_read (&asid_generation)) >>ASID_BITS ) -new_context (mm, cpu); - -atomic64_set (&per_cpu (active_asids, cpu), mm->context.id); -cpumask_set_cpu (cpu,mm_cpumask (mm)); + asid =atomic64_read (&mm->context.id); +if ((asid ^atomic64_read (&asid_generation)) >>ASID_BITS ) { + asid =new_context (mm, cpu); +atomic64_set (&mm->context.id, asid); + }if (cpumask_test_and_clear_cpu (cpu, &tlb_flush_pending))local_flush_tlb_all (); + +atomic64_set (&per_cpu (active_asids, cpu), asid); +cpumask_set_cpu (cpu,mm_cpumask (mm));raw_spin_unlock_irqrestore (&cpu_asid_lock, flags); switch_mm_fastpath:
arch/arm/vfp/vfpmodule.c +1 -1
@@ -413,7 +413,7 @@ void VFP_bounce(u32 trigger, u32 fpexc, struct pt_regs *regs)* If there isn't a second FP instruction, exit now. Note that * the FPEXC.FP2V bit is valid only if FPEXC.EX is 1. */ -if (fpexc ^ (FPEXC_EX |FPEXC_FP2V )) +if ((fpexc & (FPEXC_EX |FPEXC_FP2V )) != (FPEXC_EX |FPEXC_FP2V )) goto exit;/*
arch/powerpc/kernel/setup_64.c +11 -5
@@ -156,6 +156,15 @@ early_param("smt-enabled", early_smt_enabled);#define check_smt_enabled ()#endif /* CONFIG_SMP */ +/** Fix up paca fields required for the boot cpu */ +static void fixup_boot_paca (void ) +{ +/* The boot cpu is started */ +get_paca ()->cpu_start =1 ; +/* Allow percpu accesses to work until we setup percpu data */ +get_paca ()->data_offset =0 ; +} +/* * Early initialization entry point. This is called by head.S * with MMU translation disabled. We rely on the "feature" of
@@ -185,6 +194,7 @@ void __init early_setup(unsigned long dt_ptr)/* Assume we're on cpu 0 for now. Don't write to the paca yet! */ initialise_paca (&boot_paca,0 );setup_paca (&boot_paca); +fixup_boot_paca ();/* Initialize lockdep early or else spinlocks will blow */ lockdep_init ();
@@ -205,11 +215,7 @@ void __init early_setup(unsigned long dt_ptr)/* Now we know the logical id of our boot cpu, setup the paca. */ setup_paca (&paca[boot_cpuid]); - -/* Fix up paca fields required for the boot cpu */ -get_paca ()->cpu_start =1 ; -/* Allow percpu accesses to "work" until we setup percpu data */ -get_paca ()->data_offset =0 ; +fixup_boot_paca ();/* Probe the machine type */ probe_machine ();
arch/tile/include/asm/compat.h +3 -0
@@ -296,6 +296,9 @@ long compat_sys_sync_file_range2(int fd, unsigned int flags,long compat_sys_fallocate (int fd,int mode,u32 offset_lo,u32 offset_hi,u32 len_lo,u32 len_hi); +long compat_sys_llseek (unsigned int fd,unsigned int offset_high, +unsigned int offset_low,loff_t __user * result, +unsigned int origin);/* Assembly trampoline to avoid clobbering r0. */ long _compat_sys_rt_sigreturn (void );
arch/tile/kernel/compat.c +13 -0
@@ -76,6 +76,18 @@ long compat_sys_fallocate(int fd, int mode, ((loff_t)len_hi << 32) | len_lo); } +/* +* Avoid bug in generic sys_llseek() that specifies offset_high and +* offset_low as "unsigned long", thus making it possible to pass +* a sign-extended high 32 bits in offset_low. +*/ +long compat_sys_llseek (unsigned int fd,unsigned int offset_high, +unsigned int offset_low,loff_t __user * result, +unsigned int origin) +{ +return sys_llseek (fd, offset_high, offset_low, result, origin); +} +/* Provide the compat syscall number to call mapping. */ #undef __SYSCALL#define __SYSCALL (nr, call) [nr] = (call),
@@ -83,6 +95,7 @@ long compat_sys_fallocate(int fd, int mode,/* See comments in sys.c */ #define compat_sys_fadvise64_64 sys32_fadvise64_64#define compat_sys_readahead sys32_readahead +#define sys_llseek compat_sys_llseek/* Call the assembly trampolines where necessary. */ #define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn
arch/x86/kernel/kvmclock.c +6 -5
@@ -218,6 +218,9 @@ static void kvm_shutdown(void)void __init kvmclock_init (void ) {unsigned long mem; +int size; + + size =PAGE_ALIGN (sizeof (struct pvclock_vsyscall_time_info )*NR_CPUS );if (!kvm_para_available ())return ;
@@ -231,16 +234,14 @@ void __init kvmclock_init(void)printk (KERN_INFO "kvm-clock: Using msrs %x and %x" , msr_kvm_system_time, msr_kvm_wall_clock); - mem =memblock_alloc (sizeof (struct pvclock_vsyscall_time_info )*NR_CPUS , -PAGE_SIZE ); + mem =memblock_alloc (size,PAGE_SIZE );if (!mem)return ; hv_clock =__va (mem);if (kvm_register_clock ("boot clock" )) { hv_clock =NULL ; -memblock_free (mem, -sizeof (struct pvclock_vsyscall_time_info )*NR_CPUS ); +memblock_free (mem, size);return ; } pv_time_ops.sched_clock = kvm_clock_read;
@@ -275,7 +276,7 @@ int __init kvm_setup_vsyscall_timeinfo(void)struct pvclock_vcpu_time_info *vcpu_time;unsigned int size; - size =sizeof (struct pvclock_vsyscall_time_info )*NR_CPUS ; + size =PAGE_ALIGN (sizeof (struct pvclock_vsyscall_time_info )*NR_CPUS );preempt_disable (); cpu =smp_processor_id ();
arch/x86/kernel/pvclock.c +1 -1
@@ -185,7 +185,7 @@ int __init pvclock_init_vsyscall(struct pvclock_vsyscall_time_info *i,for (idx =0 ; idx <= (PVCLOCK_FIXMAP_END -PVCLOCK_FIXMAP_BEGIN ); idx++) {__set_fixmap (PVCLOCK_FIXMAP_BEGIN + idx, -__pa_symbol (i) + (idx*PAGE_SIZE ), +__pa (i) + (idx*PAGE_SIZE ),PAGE_KERNEL_VVAR ); }
arch/x86/pci/xen.c +9 -0
@@ -162,6 +162,9 @@ static int xen_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)struct msi_desc *msidesc;int *v; +if (type ==PCI_CAP_ID_MSI && nvec >1 ) +return 1 ; + v =kzalloc (sizeof (int ) *max (1 , nvec),GFP_KERNEL );if (!v)return -ENOMEM ;
@@ -220,6 +223,9 @@ static int xen_hvm_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)struct msi_desc *msidesc;struct msi_msg msg; +if (type ==PCI_CAP_ID_MSI && nvec >1 ) +return 1 ; +list_for_each_entry (msidesc, &dev->msi_list, list) {__read_msi_msg (msidesc, &msg); pirq = MSI_ADDR_EXT_DEST_ID(msg.address_hi) |
@@ -263,6 +269,9 @@ static int xen_initdom_setup_msi_irqs(struct pci_dev *dev, int nvec, int type)int ret =0 ;struct msi_desc *msidesc; +if (type ==PCI_CAP_ID_MSI && nvec >1 ) +return 1 ; +list_for_each_entry (msidesc, &dev->msi_list, list) {struct physdev_map_pirq map_irq;domid_t domid;
arch/x86/xen/enlighten.c +9 -1
@@ -67,6 +67,7 @@#include <asm/hypervisor.h> #include <asm/mwait.h> #include <asm/pci_x86.h> +#include <asm/pat.h> #ifdef CONFIG_ACPI #include <linux/acpi.h>
@@ -1417,7 +1418,14 @@ asmlinkage void __init xen_start_kernel(void)*/ acpi_numa =-1 ;#endif - +#ifdef CONFIG_X86_PAT +/* +* For right now disable the PAT. We should remove this once +* git commit 8eaffa67b43e99ae581622c5133e20b0f48bcef1 +* (xen/pat: Disable PAT support for now) is reverted. +*/ + pat_enabled =0 ; +#endif /* Don't do the full vcpu_info placement stuff until we have a possible map and a non-dummy shared_info. */ per_cpu (xen_vcpu,0 ) = &HYPERVISOR_shared_info->vcpu_info[0 ];
crypto/ablkcipher.c +6 -6
@@ -388,9 +388,9 @@ static int crypto_ablkcipher_report(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_blkcipher rblkcipher; -snprintf (rblkcipher.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"ablkcipher" ); -snprintf (rblkcipher.geniv,CRYPTO_MAX_ALG_NAME ,"%s" , - alg->cra_ablkcipher.geniv ?:"<default>" ); +strncpy (rblkcipher.type,"ablkcipher" ,sizeof (rblkcipher.type)); +strncpy (rblkcipher.geniv, alg->cra_ablkcipher.geniv ?:"<default>" , +sizeof (rblkcipher.geniv)); rblkcipher.blocksize = alg->cra_blocksize; rblkcipher.min_keysize = alg->cra_ablkcipher.min_keysize;
@@ -469,9 +469,9 @@ static int crypto_givcipher_report(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_blkcipher rblkcipher; -snprintf (rblkcipher.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"givcipher" ); -snprintf (rblkcipher.geniv,CRYPTO_MAX_ALG_NAME ,"%s" , - alg->cra_ablkcipher.geniv ?:"<built-in>" ); +strncpy (rblkcipher.type,"givcipher" ,sizeof (rblkcipher.type)); +strncpy (rblkcipher.geniv, alg->cra_ablkcipher.geniv ?:"<built-in>" , +sizeof (rblkcipher.geniv)); rblkcipher.blocksize = alg->cra_blocksize; rblkcipher.min_keysize = alg->cra_ablkcipher.min_keysize;
crypto/aead.c +4 -5
@@ -117,9 +117,8 @@ static int crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg)struct crypto_report_aead raead;struct aead_alg *aead = &alg->cra_aead; -snprintf (raead.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"aead" ); -snprintf (raead.geniv,CRYPTO_MAX_ALG_NAME ,"%s" , - aead->geniv ?:"<built-in>" ); +strncpy (raead.type,"aead" ,sizeof (raead.type)); +strncpy (raead.geniv, aead->geniv ?:"<built-in>" ,sizeof (raead.geniv)); raead.blocksize = alg->cra_blocksize; raead.maxauthsize = aead->maxauthsize;
@@ -203,8 +202,8 @@ static int crypto_nivaead_report(struct sk_buff *skb, struct crypto_alg *alg)struct crypto_report_aead raead;struct aead_alg *aead = &alg->cra_aead; -snprintf (raead.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"nivaead" ); -snprintf (raead.geniv,CRYPTO_MAX_ALG_NAME ,"%s" , aead->geniv); +strncpy (raead.type,"nivaead" ,sizeof (raead.type)); +strncpy (raead.geniv, aead->geniv,sizeof (raead.geniv)); raead.blocksize = alg->cra_blocksize; raead.maxauthsize = aead->maxauthsize;
crypto/ahash.c +1 -1
@@ -404,7 +404,7 @@ static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_hash rhash; -snprintf (rhash.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"ahash" ); +strncpy (rhash.type,"ahash" ,sizeof (rhash.type)); rhash.blocksize = alg->cra_blocksize; rhash.digestsize =__crypto_hash_alg_common (alg)->digestsize;
crypto/blkcipher.c +3 -3
@@ -499,9 +499,9 @@ static int crypto_blkcipher_report(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_blkcipher rblkcipher; -snprintf (rblkcipher.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"blkcipher" ); -snprintf (rblkcipher.geniv,CRYPTO_MAX_ALG_NAME ,"%s" , - alg->cra_blkcipher.geniv ?:"<default>" ); +strncpy (rblkcipher.type,"blkcipher" ,sizeof (rblkcipher.type)); +strncpy (rblkcipher.geniv, alg->cra_blkcipher.geniv ?:"<default>" , +sizeof (rblkcipher.geniv)); rblkcipher.blocksize = alg->cra_blocksize; rblkcipher.min_keysize = alg->cra_blkcipher.min_keysize;
crypto/crypto_user.c +11 -11
@@ -75,7 +75,7 @@ static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_cipher rcipher; -snprintf (rcipher.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"cipher" ); +strncpy (rcipher.type,"cipher" ,sizeof (rcipher.type)); rcipher.blocksize = alg->cra_blocksize; rcipher.min_keysize = alg->cra_cipher.cia_min_keysize;
@@ -94,8 +94,7 @@ static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_comp rcomp; -snprintf (rcomp.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"compression" ); - +strncpy (rcomp.type,"compression" ,sizeof (rcomp.type));if (nla_put (skb,CRYPTOCFGA_REPORT_COMPRESS ,sizeof (struct crypto_report_comp ), &rcomp)) goto nla_put_failure;
@@ -108,12 +107,14 @@ nla_put_failure:static int crypto_report_one (struct crypto_alg *alg,struct crypto_user_alg *ualg,struct sk_buff *skb) { -memcpy (&ualg->cru_name, &alg->cra_name,sizeof (ualg->cru_name)); -memcpy (&ualg->cru_driver_name, &alg->cra_driver_name, -sizeof (ualg->cru_driver_name)); -memcpy (&ualg->cru_module_name,module_name (alg->cra_module), -CRYPTO_MAX_ALG_NAME ); - +strncpy (ualg->cru_name, alg->cra_name,sizeof (ualg->cru_name)); +strncpy (ualg->cru_driver_name, alg->cra_driver_name, +sizeof (ualg->cru_driver_name)); +strncpy (ualg->cru_module_name,module_name (alg->cra_module), +sizeof (ualg->cru_module_name)); + + ualg->cru_type =0 ; + ualg->cru_mask =0 ; ualg->cru_flags = alg->cra_flags; ualg->cru_refcnt =atomic_read (&alg->cra_refcnt);
@@ -122,8 +123,7 @@ static int crypto_report_one(struct crypto_alg *alg,if (alg->cra_flags &CRYPTO_ALG_LARVAL ) {struct crypto_report_larval rl; -snprintf (rl.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"larval" ); - +strncpy (rl.type,"larval" ,sizeof (rl.type));if (nla_put (skb,CRYPTOCFGA_REPORT_LARVAL ,sizeof (struct crypto_report_larval ), &rl)) goto nla_put_failure;
crypto/pcompress.c +1 -2
@@ -53,8 +53,7 @@ static int crypto_pcomp_report(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_comp rpcomp; -snprintf (rpcomp.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"pcomp" ); - +strncpy (rpcomp.type,"pcomp" ,sizeof (rpcomp.type));if (nla_put (skb,CRYPTOCFGA_REPORT_COMPRESS ,sizeof (struct crypto_report_comp ), &rpcomp)) goto nla_put_failure;
crypto/rng.c +1 -1
@@ -65,7 +65,7 @@ static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) {struct crypto_report_rng rrng; -snprintf (rrng.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"rng" ); +strncpy (rrng.type,"rng" ,sizeof (rrng.type)); rrng.seedsize = alg->cra_rng.seedsize;
crypto/shash.c +2 -1
@@ -530,7 +530,8 @@ static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg)struct crypto_report_hash rhash;struct shash_alg *salg =__crypto_shash_alg (alg); -snprintf (rhash.type,CRYPTO_MAX_ALG_NAME ,"%s" ,"shash" ); +strncpy (rhash.type,"shash" ,sizeof (rhash.type)); + rhash.blocksize = alg->cra_blocksize; rhash.digestsize = salg->digestsize;
drivers/block/xen-blkback/blkback.c +1 -0
@@ -881,6 +881,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif, goto fail_response; } + preq.dev = req->u.rw.handle; preq.sector_number = req->u.rw.sector_number; preq.nr_sects =0 ;
drivers/char/hw_random/core.c +16 -3
@@ -40,6 +40,7 @@#include <linux/init.h> #include <linux/miscdevice.h> #include <linux/delay.h> +#include <linux/slab.h> #include <asm/uaccess.h>
@@ -52,8 +53,12 @@ static struct hwrng *current_rng;static LIST_HEAD (rng_list);static DEFINE_MUTEX (rng_mutex);static int data_avail; -static u8 rng_buffer[SMP_CACHE_BYTES < 32 ? 32 : SMP_CACHE_BYTES] - __cacheline_aligned; +static u8 *rng_buffer; + +static size_t rng_buffer_size (void ) +{ +return SMP_CACHE_BYTES <32 ?32 :SMP_CACHE_BYTES ; +}static inline int hwrng_init (struct hwrng *rng) {
@@ -116,7 +121,7 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf,if (!data_avail) { bytes_read =rng_get_data (current_rng, rng_buffer, -sizeof (rng_buffer), +rng_buffer_size (), !(filp->f_flags &O_NONBLOCK ));if (bytes_read <0 ) { err = bytes_read;
@@ -307,6 +312,14 @@ int hwrng_register(struct hwrng *rng)mutex_lock (&rng_mutex); +/* kmalloc makes this safe for virt_to_page() in virtio_rng.c */ + err = -ENOMEM ; +if (!rng_buffer) { + rng_buffer =kmalloc (rng_buffer_size (),GFP_KERNEL ); +if (!rng_buffer) + goto out_unlock; + } +/* Must not register two RNGs with the same name. */ err = -EEXIST ;list_for_each_entry (tmp, &rng_list, list) {
drivers/char/random.c +8 -4
@@ -852,6 +852,7 @@ static size_t account(struct entropy_store *r, size_t nbytes, int min, int reserved) {unsigned long flags; +int wakeup_write =0 ;/* Hold lock while accounting */ spin_lock_irqsave (&r->lock, flags);
@@ -873,10 +874,8 @@ static size_t account(struct entropy_store *r, size_t nbytes, int min,else r->entropy_count = reserved; -if (r->entropy_count < random_write_wakeup_thresh) { -wake_up_interruptible (&random_write_wait); -kill_fasync (&fasync,SIGIO ,POLL_OUT ); - } +if (r->entropy_count < random_write_wakeup_thresh) + wakeup_write =1 ; } DEBUG_ENT("debiting %zu entropy credits from %s%s\n",
@@ -884,6 +883,11 @@ static size_t account(struct entropy_store *r, size_t nbytes, int min,spin_unlock_irqrestore (&r->lock, flags); +if (wakeup_write) { +wake_up_interruptible (&random_write_wait); +kill_fasync (&fasync,SIGIO ,POLL_OUT ); + } +return nbytes; }
drivers/connector/cn_proc.c +8 -0
@@ -313,6 +313,12 @@ static void cn_proc_mcast_ctl(struct cn_msg *msg, (task_active_pid_ns(current) != &init_pid_ns)) return; +/* Can only change if privileged. */ +if (!capable (CAP_NET_ADMIN )) { + err =EPERM ; + goto out; + } + mc_op = (enum proc_cn_mcast_op *)msg->data;switch (*mc_op) {case PROC_CN_MCAST_LISTEN :
@@ -325,6 +331,8 @@ static void cn_proc_mcast_ctl(struct cn_msg *msg, err =EINVAL ;break ; } + +out:cn_proc_ack (err, msg->seq, msg->ack); }
drivers/firmware/dmi_scan.c +2 -3
@@ -442,7 +442,6 @@ static int __init dmi_present(const char __iomem *p)static int __init smbios_present (const char __iomem *p) {u8 buf[32 ]; -int offset =0 ;memcpy_fromio (buf, p,32 );if ((buf[5 ] <32 ) &&dmi_checksum (buf, buf[5 ])) {
@@ -461,9 +460,9 @@ static int __init smbios_present(const char __iomem *p) dmi_ver =0x0206 ;break ; } - offset =16 ; +return memcmp (p +16 ,"_DMI_" ,5 ) ||dmi_present (p +16 ); } -return dmi_present (buf + offset); +return 1 ; }void __init dmi_scan_machine (void )
drivers/firmware/efivars.c +137 -73
474 lines not on this page · raw message
drivers/gpio/gpio-mvebu.c +7 -0
@@ -41,6 +41,7 @@#include <linux/io.h> #include <linux/of_irq.h> #include <linux/of_device.h> +#include <linux/clk.h> #include <linux/pinctrl/consumer.h> /*
@@ -495,6 +496,7 @@ static int mvebu_gpio_probe(struct platform_device *pdev)struct resource *res;struct irq_chip_generic *gc;struct irq_chip_type *ct; +struct clk *clk;unsigned int ngpios;int soc_variant;int i, cpu, id;
@@ -528,6 +530,11 @@ static int mvebu_gpio_probe(struct platform_device *pdev)return id; } + clk =devm_clk_get (&pdev->dev,NULL ); +/* Not all SoCs require a clock.*/ +if (!IS_ERR (clk)) +clk_prepare_enable (clk); + mvchip->soc_variant = soc_variant; mvchip->chip.label =dev_name (&pdev->dev); mvchip->chip.dev = &pdev->dev;
drivers/gpu/drm/i915/i915_dma.c +14 -9
@@ -1297,19 +1297,21 @@ static int i915_load_modeset_init(struct drm_device *dev)if (ret) goto cleanup_vga_switcheroo; + ret =drm_irq_install (dev); +if (ret) + goto cleanup_gem_stolen; + +/* Important: The output setup functions called by modeset_init need +* working irqs for e.g. gmbus and dp aux transfers. */ intel_modeset_init (dev); ret =i915_gem_init (dev);if (ret) - goto cleanup_gem_stolen; - -intel_modeset_gem_init (dev); + goto cleanup_irq;INIT_WORK (&dev_priv->console_resume_work, intel_console_resume); - ret =drm_irq_install (dev); -if (ret) - goto cleanup_gem; +intel_modeset_gem_init (dev);/* Always safe in the mode setting case. */ /* FIXME: do pre/post-mode set stuff in core KMS code */
@@ -1317,7 +1319,10 @@ static int i915_load_modeset_init(struct drm_device *dev) ret =intel_fbdev_init (dev);if (ret) - goto cleanup_irq; + goto cleanup_gem; + +/* Only enable hotplug handling once the fbdev is fully set up. */ + dev_priv->enable_hotplug_processing = true;drm_kms_helper_poll_init (dev);
@@ -1326,13 +1331,13 @@ static int i915_load_modeset_init(struct drm_device *dev)return 0 ; -cleanup_irq: -drm_irq_uninstall (dev); cleanup_gem:mutex_lock (&dev->struct_mutex);i915_gem_cleanup_ringbuffer (dev);mutex_unlock (&dev->struct_mutex);i915_gem_cleanup_aliasing_ppgtt (dev); +cleanup_irq: +drm_irq_uninstall (dev); cleanup_gem_stolen:i915_gem_cleanup_stolen (dev); cleanup_vga_switcheroo:
drivers/gpu/drm/i915/i915_drv.c +18 -7
@@ -377,15 +377,15 @@ static const struct pci_device_id pciidlist[] = { /* aka */INTEL_VGA_DEVICE (0x0A06 , &intel_haswell_m_info),/* ULT GT1 mobile */ INTEL_VGA_DEVICE (0x0A16 , &intel_haswell_m_info),/* ULT GT2 mobile */ INTEL_VGA_DEVICE (0x0A26 , &intel_haswell_m_info),/* ULT GT2 mobile */ -INTEL_VGA_DEVICE (0x0D12 , &intel_haswell_d_info),/* CRW GT1 desktop */ +INTEL_VGA_DEVICE (0x0D02 , &intel_haswell_d_info),/* CRW GT1 desktop */ +INTEL_VGA_DEVICE (0x0D12 , &intel_haswell_d_info),/* CRW GT2 desktop */ INTEL_VGA_DEVICE (0x0D22 , &intel_haswell_d_info),/* CRW GT2 desktop */ -INTEL_VGA_DEVICE (0x0D32 , &intel_haswell_d_info),/* CRW GT2 desktop */ -INTEL_VGA_DEVICE (0x0D1A , &intel_haswell_d_info),/* CRW GT1 server */ +INTEL_VGA_DEVICE (0x0D0A , &intel_haswell_d_info),/* CRW GT1 server */ +INTEL_VGA_DEVICE (0x0D1A , &intel_haswell_d_info),/* CRW GT2 server */ INTEL_VGA_DEVICE (0x0D2A , &intel_haswell_d_info),/* CRW GT2 server */ -INTEL_VGA_DEVICE (0x0D3A , &intel_haswell_d_info),/* CRW GT2 server */ -INTEL_VGA_DEVICE (0x0D16 , &intel_haswell_m_info),/* CRW GT1 mobile */ +INTEL_VGA_DEVICE (0x0D06 , &intel_haswell_m_info),/* CRW GT1 mobile */ +INTEL_VGA_DEVICE (0x0D16 , &intel_haswell_m_info),/* CRW GT2 mobile */ INTEL_VGA_DEVICE (0x0D26 , &intel_haswell_m_info),/* CRW GT2 mobile */ -INTEL_VGA_DEVICE (0x0D36 , &intel_haswell_m_info),/* CRW GT2 mobile */ INTEL_VGA_DEVICE (0x0f30 , &intel_valleyview_m_info),INTEL_VGA_DEVICE (0x0157 , &intel_valleyview_m_info), INTEL_VGA_DEVICE(0x0155, &intel_valleyview_d_info),
@@ -486,6 +486,7 @@ static int i915_drm_freeze(struct drm_device *dev)intel_modeset_disable (dev);drm_irq_uninstall (dev); + dev_priv->enable_hotplug_processing = false; }i915_save_state (dev);
@@ -562,9 +563,19 @@ static int __i915_drm_thaw(struct drm_device *dev) error =i915_gem_init_hw (dev);mutex_unlock (&dev->struct_mutex); +/* We need working interrupts for modeset enabling ... */ +drm_irq_install (dev); +intel_modeset_init_hw (dev);intel_modeset_setup_hw_state (dev, false); -drm_irq_install (dev); + +/* +* ... but also need to make sure that hotplug processing +* doesn't cause havoc. Like in the driver load code we don't +* bother with the tiny race here where we might loose hotplug +* notifications. +* */ + dev_priv->enable_hotplug_processing = true; }intel_opregion_init (dev);
drivers/gpu/drm/i915/i915_drv.h +1 -0
@@ -672,6 +672,7 @@ typedef struct drm_i915_private {u32 hotplug_supported_mask;struct work_struct hotplug_work; +bool enable_hotplug_processing;int num_pipe;int num_pch_pll;
drivers/gpu/drm/i915/i915_irq.c +4 -0
@@ -287,6 +287,10 @@ static void i915_hotplug_work_func(struct work_struct *work)struct drm_mode_config *mode_config = &dev->mode_config;struct intel_encoder *encoder; +/* HPD irq before everything is fully set up. */ +if (!dev_priv->enable_hotplug_processing) +return ; +mutex_lock (&mode_config->mutex);DRM_DEBUG_KMS ("running encoder hotplug functions\n" );
drivers/gpu/drm/i915/intel_crt.c +1 -1
@@ -88,7 +88,7 @@ static void intel_disable_crt(struct intel_encoder *encoder)u32 temp; temp =I915_READ (crt->adpa_reg); - temp &= ~(ADPA_HSYNC_CNTL_DISABLE |ADPA_VSYNC_CNTL_DISABLE ); + temp |=ADPA_HSYNC_CNTL_DISABLE |ADPA_VSYNC_CNTL_DISABLE ; temp &= ~ADPA_DAC_ENABLE ;I915_WRITE (crt->adpa_reg, temp); }
drivers/gpu/drm/i915/intel_pm.c +1 -1
@@ -2572,7 +2572,7 @@ static void gen6_enable_rps(struct drm_device *dev)I915_WRITE (GEN6_RC_SLEEP ,0 );I915_WRITE (GEN6_RC1e_THRESHOLD,1000 );I915_WRITE (GEN6_RC6_THRESHOLD ,50000 ); -I915_WRITE (GEN6_RC6p_THRESHOLD,100000 ); +I915_WRITE (GEN6_RC6p_THRESHOLD,150000 );I915_WRITE (GEN6_RC6pp_THRESHOLD,64000 );/* unused */ /* Check if we are enabling RC6 */
drivers/gpu/drm/radeon/radeon_combios.c +9 -0
@@ -970,6 +970,15 @@ struct radeon_encoder_primary_dac *radeon_combios_get_primary_dac_info(struct found =1 ; } +/* quirks */ +/* Radeon 9100 (R200) */ +if ((dev->pdev->device ==0x514D ) && + (dev->pdev->subsystem_vendor ==0x174B ) && + (dev->pdev->subsystem_device ==0x7149 )) { +/* vbios value is bad, use the default */ + found =0 ; + } +if (!found)/* fallback to defaults */ radeon_legacy_get_primary_dac_info_from_table (rdev, p_dac);
drivers/gpu/drm/radeon/radeon_irq_kms.c +12 -0
@@ -400,6 +400,9 @@ void radeon_irq_kms_enable_afmt(struct radeon_device *rdev, int block) {unsigned long irqflags; +if (!rdev->ddev->irq_enabled) +return ; +spin_lock_irqsave (&rdev->irq.lock, irqflags); rdev->irq.afmt[block] = true;radeon_irq_set (rdev);
@@ -419,6 +422,9 @@ void radeon_irq_kms_disable_afmt(struct radeon_device *rdev, int block) {unsigned long irqflags; +if (!rdev->ddev->irq_enabled) +return ; +spin_lock_irqsave (&rdev->irq.lock, irqflags); rdev->irq.afmt[block] = false;radeon_irq_set (rdev);
@@ -438,6 +444,9 @@ void radeon_irq_kms_enable_hpd(struct radeon_device *rdev, unsigned hpd_mask)unsigned long irqflags;int i; +if (!rdev->ddev->irq_enabled) +return ; +spin_lock_irqsave (&rdev->irq.lock, irqflags);for (i =0 ; i <RADEON_MAX_HPD_PINS ; ++i) rdev->irq.hpd[i] |= !!(hpd_mask & (1 << i));
@@ -458,6 +467,9 @@ void radeon_irq_kms_disable_hpd(struct radeon_device *rdev, unsigned hpd_mask)unsigned long irqflags;int i; +if (!rdev->ddev->irq_enabled) +return ; +spin_lock_irqsave (&rdev->irq.lock, irqflags);for (i =0 ; i <RADEON_MAX_HPD_PINS ; ++i) rdev->irq.hpd[i] &= !(hpd_mask & (1 << i));
drivers/hid/hid-logitech-dj.c +14 -8
@@ -459,19 +459,25 @@ static int logi_dj_recv_send_report(struct dj_receiver_dev *djrcv_dev, struct dj_report *dj_report) {struct hid_device *hdev = djrcv_dev->hdev; -int sent_bytes; +struct hid_report *report; +struct hid_report_enum *output_report_enum; +u8 *data = (u8 *)(&dj_report->device_index); +int i; -if (!hdev->hid_output_raw_report) { -dev_err (&hdev->dev,"%s:" -"hid_output_raw_report is null\n" , __func__); + output_report_enum = &hdev->report_enum[HID_OUTPUT_REPORT ]; + report = output_report_enum->report_id_hash[REPORT_ID_DJ_SHORT ]; + +if (!report) { +dev_err (&hdev->dev,"%s: unable to find dj report\n" , __func__);return -ENODEV ; } - sent_bytes = hdev->hid_output_raw_report (hdev, (u8 *) dj_report, -sizeof (struct dj_report ), -HID_OUTPUT_REPORT ); +for (i =0 ; i < report->field[0 ]->report_count; i++) + report->field[0 ]->value[i] = data[i]; + +usbhid_submit_report (hdev, report,USB_DIR_OUT ); -return (sent_bytes <0 ) ? sent_bytes :0 ; +return 0 ; }static int logi_dj_recv_query_paired_devices (struct dj_receiver_dev *djrcv_dev)
drivers/hwmon/pmbus/ltc2978.c +16 -14
@@ -62,7 +62,7 @@ struct ltc2978_data {int temp_min, temp_max;int vout_min[8 ], vout_max[8 ];int iout_max[2 ]; -int temp2_max[2 ]; +int temp2_max;struct pmbus_driver_info info; };
@@ -204,10 +204,9 @@ static int ltc3880_read_word_data(struct i2c_client *client, int page, int reg) ret =pmbus_read_word_data (client, page,LTC3880_MFR_TEMPERATURE2_PEAK );if (ret >=0 ) { -if (lin11_to_val (ret) - >lin11_to_val (data->temp2_max[page])) - data->temp2_max[page] = ret; - ret = data->temp2_max[page]; +if (lin11_to_val (ret) >lin11_to_val (data->temp2_max)) + data->temp2_max = ret; + ret = data->temp2_max; }break ;case PMBUS_VIRT_READ_VIN_MIN :
@@ -248,11 +247,11 @@ static int ltc2978_write_word_data(struct i2c_client *client, int page,switch (reg) {case PMBUS_VIRT_RESET_IOUT_HISTORY : - data->iout_max[page] =0x7fff ; + data->iout_max[page] =0x7c00 ; ret =ltc2978_clear_peaks (client, page, data->id);break ;case PMBUS_VIRT_RESET_TEMP2_HISTORY : - data->temp2_max[page] =0x7fff ; + data->temp2_max =0x7c00 ; ret =ltc2978_clear_peaks (client, page, data->id);break ;case PMBUS_VIRT_RESET_VOUT_HISTORY :
@@ -262,12 +261,12 @@ static int ltc2978_write_word_data(struct i2c_client *client, int page,break ;case PMBUS_VIRT_RESET_VIN_HISTORY : data->vin_min =0x7bff ; - data->vin_max =0 ; + data->vin_max =0x7c00 ; ret =ltc2978_clear_peaks (client, page, data->id);break ;case PMBUS_VIRT_RESET_TEMP_HISTORY : data->temp_min =0x7bff ; - data->temp_max =0x7fff ; + data->temp_max =0x7c00 ; ret =ltc2978_clear_peaks (client, page, data->id);break ;default :
@@ -321,12 +320,13 @@ static int ltc2978_probe(struct i2c_client *client, info = &data->info; info->write_word_data = ltc2978_write_word_data; - data->vout_min[0 ] =0xffff ; data->vin_min =0x7bff ; + data->vin_max =0x7c00 ; data->temp_min =0x7bff ; - data->temp_max =0x7fff ; + data->temp_max =0x7c00 ; + data->temp2_max =0x7c00 ; -switch (id->driver_data) { +switch (data->id) {case ltc2978: info->read_word_data = ltc2978_read_word_data; info->pages =8 ;
@@ -336,7 +336,6 @@ static int ltc2978_probe(struct i2c_client *client,for (i =1 ; i <8 ; i++) { info->func[i] =PMBUS_HAVE_VOUT |PMBUS_HAVE_STATUS_VOUT ; - data->vout_min[i] =0xffff ; }break ;case ltc3880:
@@ -352,11 +351,14 @@ static int ltc2978_probe(struct i2c_client *client, | PMBUS_HAVE_IOUT | PMBUS_HAVE_STATUS_IOUT |PMBUS_HAVE_POUT |PMBUS_HAVE_TEMP |PMBUS_HAVE_STATUS_TEMP ; - data->vout_min[1 ] =0xffff ; + data->iout_max[0 ] =0x7c00 ; + data->iout_max[1 ] =0x7c00 ;break ;default :return -ENODEV ; } +for (i =0 ; i < info->pages; i++) + data->vout_min[i] =0xffff ;return pmbus_do_probe (client, id, info); }
drivers/hwmon/sht15.c +7 -1
@@ -926,7 +926,13 @@ static int sht15_probe(struct platform_device *pdev)if (voltage) data->supply_uV = voltage; -regulator_enable (data->reg); + ret =regulator_enable (data->reg); +if (ret !=0 ) { +dev_err (&pdev->dev, +"failed to enable regulator: %d\n" , ret); +return ret; + } +/* * Setup a notifier block to update this if another device * causes the voltage to change
drivers/md/dm-crypt.c +9 -30
@@ -1234,20 +1234,6 @@ static int crypt_decode_key(u8 *key, char *hex, unsigned int size)return 0 ; } -/* -* Encode key into its hex representation -*/ -static void crypt_encode_key (char *hex,u8 *key,unsigned int size) -{ -unsigned int i; - -for (i =0 ; i < size; i++) { -sprintf (hex,"%02x" , *key); - hex +=2 ; - key++; - } -} -static void crypt_free_tfms (struct crypt_config *cc) {unsigned i;
@@ -1717,11 +1703,11 @@ static int crypt_map(struct dm_target *ti, struct bio *bio)return DM_MAPIO_SUBMITTED ; } -static int crypt_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void crypt_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct crypt_config *cc = ti->private; -unsigned int sz =0 ; +unsigned i, sz =0 ;switch (type) {case STATUSTYPE_INFO :
@@ -1731,17 +1717,11 @@ static int crypt_status(struct dm_target *ti, status_type_t type,case STATUSTYPE_TABLE :DMEMIT ("%s " , cc->cipher_string); -if (cc->key_size >0 ) { -if ((maxlen - sz) < ((cc->key_size <<1 ) +1 )) -return -ENOMEM ; - -crypt_encode_key (result + sz, cc->key, cc->key_size); - sz += cc->key_size <<1 ; - }else { -if (sz >= maxlen) -return -ENOMEM ; - result[sz++] ='-' ; - } +if (cc->key_size >0 ) +for (i =0 ; i < cc->key_size; i++) +DMEMIT ("%02x" , cc->key[i]); +else +DMEMIT ("-" );DMEMIT (" %llu %s %llu" , (unsigned long long )cc->iv_offset, cc->dev->name, (unsigned long long )cc->start);
@@ -1751,7 +1731,6 @@ static int crypt_status(struct dm_target *ti, status_type_t type,break ; } -return 0 ; }static void crypt_postsuspend (struct dm_target *ti)
@@ -1845,7 +1824,7 @@ static int crypt_iterate_devices(struct dm_target *ti,static struct target_type crypt_target = { .name ="crypt" , - .version = {1 ,12 ,0 }, + .version = {1 ,12 ,1 }, .module =THIS_MODULE , .ctr = crypt_ctr, .dtr = crypt_dtr,
drivers/md/dm-delay.c +3 -5
@@ -293,8 +293,8 @@ static int delay_map(struct dm_target *ti, struct bio *bio)return delay_bio (dc, dc->read_delay, bio); } -static int delay_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void delay_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct delay_c *dc = ti->private;int sz =0 ;
@@ -314,8 +314,6 @@ static int delay_status(struct dm_target *ti, status_type_t type, dc->write_delay);break ; } - -return 0 ; } static int delay_iterate_devices(struct dm_target *ti,
@@ -337,7 +335,7 @@ out:static struct target_type delay_target = { .name ="delay" , - .version = {1 ,2 ,0 }, + .version = {1 ,2 ,1 }, .module =THIS_MODULE , .ctr = delay_ctr, .dtr = delay_dtr,
drivers/md/dm-flakey.c +3 -4
@@ -337,8 +337,8 @@ static int flakey_end_io(struct dm_target *ti, struct bio *bio, int error)return error; } -static int flakey_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void flakey_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {unsigned sz =0 ;struct flakey_c *fc = ti->private;
@@ -368,7 +368,6 @@ static int flakey_status(struct dm_target *ti, status_type_t type,break ; } -return 0 ; }static int flakey_ioctl (struct dm_target *ti,unsigned int cmd,unsigned long arg)
@@ -411,7 +410,7 @@ static int flakey_iterate_devices(struct dm_target *ti, iterate_devices_callout_static struct target_type flakey_target = { .name ="flakey" , - .version = {1 ,3 ,0 }, + .version = {1 ,3 ,1 }, .module =THIS_MODULE , .ctr = flakey_ctr, .dtr = flakey_dtr,
drivers/md/dm-ioctl.c +9 -5
@@ -1067,6 +1067,7 @@ static void retrieve_status(struct dm_table *table, num_targets =dm_table_get_num_targets (table);for (i =0 ; i < num_targets; i++) {struct dm_target *ti =dm_table_get_target (table, i); +size_t l; remaining = len - (outptr - outbuf);if (remaining <=sizeof (struct dm_target_spec )) {
@@ -1093,14 +1094,17 @@ static void retrieve_status(struct dm_table *table,if (ti->type->status) {if (param->flags &DM_NOFLUSH_FLAG ) status_flags |=DM_STATUS_NOFLUSH_FLAG ; -if (ti->type->status (ti, type, status_flags, outptr, remaining)) { - param->flags |=DM_BUFFER_FULL_FLAG ; -break ; - } + ti->type->status (ti, type, status_flags, outptr, remaining); }else outptr[0 ] ='\0' ; - outptr +=strlen (outptr) +1 ; + l =strlen (outptr) +1 ; +if (l == remaining) { + param->flags |=DM_BUFFER_FULL_FLAG ; +break ; + } + + outptr += l; used = param->data_start + (outptr - outbuf); outptr =align_ptr (outptr);
drivers/md/dm-linear.c +3 -4
@@ -95,8 +95,8 @@ static int linear_map(struct dm_target *ti, struct bio *bio)return DM_MAPIO_REMAPPED ; } -static int linear_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void linear_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct linear_c *lc = (struct linear_c *) ti->private;
@@ -110,7 +110,6 @@ static int linear_status(struct dm_target *ti, status_type_t type, (unsigned long long)lc->start);break ; } -return 0 ; } static int linear_ioctl(struct dm_target *ti, unsigned int cmd,
@@ -155,7 +154,7 @@ static int linear_iterate_devices(struct dm_target *ti,static struct target_type linear_target = { .name ="linear" , - .version = {1 ,2 ,0 }, + .version = {1 ,2 ,1 }, .module =THIS_MODULE , .ctr = linear_ctr, .dtr = linear_dtr,
drivers/md/dm-mpath.c +3 -5
@@ -1378,8 +1378,8 @@ static void multipath_resume(struct dm_target *ti)* [priority selector-name num_ps_args [ps_args]* * num_paths num_selector_args [path_dev [selector_args]* ]+ ]+ */ -static int multipath_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void multipath_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {int sz =0 ;unsigned long flags;
@@ -1485,8 +1485,6 @@ static int multipath_status(struct dm_target *ti, status_type_t type, }spin_unlock_irqrestore (&m->lock, flags); - -return 0 ; }static int multipath_message (struct dm_target *ti,unsigned argc,char **argv)
@@ -1695,7 +1693,7 @@ out:*---------------------------------------------------------------*/ static struct target_type multipath_target = { .name ="multipath" , - .version = {1 ,5 ,0 }, + .version = {1 ,5 ,1 }, .module =THIS_MODULE , .ctr = multipath_ctr, .dtr = multipath_dtr,
drivers/md/dm-raid.c +3 -5
@@ -1201,8 +1201,8 @@ static int raid_map(struct dm_target *ti, struct bio *bio)return DM_MAPIO_SUBMITTED ; } -static int raid_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void raid_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct raid_set *rs = ti->private;unsigned raid_param_cnt =1 ;/* at least 1 for chunksize */
@@ -1344,8 +1344,6 @@ static int raid_status(struct dm_target *ti, status_type_t type,DMEMIT (" -" ); } } - -return 0 ; }static int raid_iterate_devices (struct dm_target *ti,iterate_devices_callout_fn fn,void *data)
@@ -1405,7 +1403,7 @@ static void raid_resume(struct dm_target *ti)static struct target_type raid_target = { .name ="raid" , - .version = {1 ,4 ,1 }, + .version = {1 ,4 ,2 }, .module =THIS_MODULE , .ctr = raid_ctr, .dtr = raid_dtr,
drivers/md/dm-raid1.c +3 -5
@@ -1347,8 +1347,8 @@ static char device_status_char(struct mirror *m) } -static int mirror_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void mirror_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {unsigned int m, sz =0 ;struct mirror_set *ms = (struct mirror_set *) ti->private;
@@ -1383,8 +1383,6 @@ static int mirror_status(struct dm_target *ti, status_type_t type,if (ms->features &DM_RAID1_HANDLE_ERRORS )DMEMIT (" 1 handle_errors" ); } - -return 0 ; } static int mirror_iterate_devices(struct dm_target *ti,
@@ -1403,7 +1401,7 @@ static int mirror_iterate_devices(struct dm_target *ti,static struct target_type mirror_target = { .name ="mirror" , - .version = {1 ,13 ,1 }, + .version = {1 ,13 ,2 }, .module =THIS_MODULE , .ctr = mirror_ctr, .dtr = mirror_dtr,
drivers/md/dm-snap.c +8 -10
@@ -1837,8 +1837,8 @@ static void snapshot_merge_resume(struct dm_target *ti)start_merge (s); } -static int snapshot_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void snapshot_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {unsigned sz =0 ;struct dm_snapshot *snap = ti->private;
@@ -1884,8 +1884,6 @@ static int snapshot_status(struct dm_target *ti, status_type_t type, maxlen - sz);break ; } - -return 0 ; } static int snapshot_iterate_devices(struct dm_target *ti,
@@ -2139,8 +2137,8 @@ static void origin_resume(struct dm_target *ti) ti->max_io_len =get_origin_minimum_chunksize (dev->bdev); } -static int origin_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void origin_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct dm_dev *dev = ti->private;
@@ -2153,8 +2151,6 @@ static int origin_status(struct dm_target *ti, status_type_t type,snprintf (result, maxlen,"%s" , dev->name);break ; } - -return 0 ; } static int origin_merge(struct dm_target *ti, struct bvec_merge_data *bvm,
@@ -2181,7 +2177,7 @@ static int origin_iterate_devices(struct dm_target *ti,static struct target_type origin_target = { .name ="snapshot-origin" , - .version = {1 ,8 ,0 }, + .version = {1 ,8 ,1 }, .module =THIS_MODULE , .ctr = origin_ctr, .dtr = origin_dtr,
@@ -2194,7 +2190,7 @@ static struct target_type origin_target = {static struct target_type snapshot_target = { .name ="snapshot" , - .version = {1 ,11 ,0 }, + .version = {1 ,11 ,1 }, .module =THIS_MODULE , .ctr = snapshot_ctr, .dtr = snapshot_dtr,
@@ -2307,3 +2303,5 @@ module_exit(dm_snapshot_exit);MODULE_DESCRIPTION (DM_NAME " snapshot target" );MODULE_AUTHOR ("Joe Thornber" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("dm-snapshot-origin" ); +MODULE_ALIAS ("dm-snapshot-merge" );
drivers/md/dm-stripe.c +3 -4
@@ -312,8 +312,8 @@ static int stripe_map(struct dm_target *ti, struct bio *bio)* */ -static int stripe_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void stripe_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct stripe_c *sc = (struct stripe_c *) ti->private;char buffer[sc->stripes +1 ];
@@ -340,7 +340,6 @@ static int stripe_status(struct dm_target *ti, status_type_t type, (unsigned long long)sc->stripe[i].physical_start);break ; } -return 0 ; }static int stripe_end_io (struct dm_target *ti,struct bio *bio,int error)
@@ -428,7 +427,7 @@ static int stripe_merge(struct dm_target *ti, struct bvec_merge_data *bvm,static struct target_type stripe_target = { .name ="striped" , - .version = {1 ,5 ,0 }, + .version = {1 ,5 ,1 }, .module =THIS_MODULE , .ctr = stripe_ctr, .dtr = stripe_dtr,
drivers/md/dm-thin.c +49 -31
145 lines not on this page · raw message
drivers/md/dm-verity.c +3 -5
@@ -508,8 +508,8 @@ static int verity_map(struct dm_target *ti, struct bio *bio)/* * Status: V (valid) or C (corruption found) */ -static int verity_status (struct dm_target *ti,status_type_t type, -unsigned status_flags,char *result,unsigned maxlen) +static void verity_status (struct dm_target *ti,status_type_t type, +unsigned status_flags,char *result,unsigned maxlen) {struct dm_verity *v = ti->private;unsigned sz =0 ;
@@ -540,8 +540,6 @@ static int verity_status(struct dm_target *ti, status_type_t type,DMEMIT ("%02x" , v->salt[x]);break ; } - -return 0 ; } static int verity_ioctl(struct dm_target *ti, unsigned cmd,
@@ -860,7 +858,7 @@ bad:static struct target_type verity_target = { .name ="verity" , - .version = {1 ,1 ,0 }, + .version = {1 ,1 ,1 }, .module =THIS_MODULE , .ctr = verity_ctr, .dtr = verity_dtr,
drivers/md/dm.c +28 -14
60 lines not on this page · raw message
drivers/md/md.c +7 -0
@@ -307,6 +307,10 @@ static void md_make_request(struct request_queue *q, struct bio *bio)bio_io_error (bio);return ; } +if (mddev->ro ==1 &&unlikely (rw ==WRITE )) { +bio_endio (bio,bio_sectors (bio) ==0 ?0 : -EROFS ); +return ; + }smp_rmb ();/* Ensure implications of 'active' are visible */ rcu_read_lock ();if (mddev->suspended) {
@@ -2994,6 +2998,9 @@ rdev_size_store(struct md_rdev *rdev, const char *buf, size_t len) }else if (!sectors) sectors = (i_size_read (rdev->bdev->bd_inode) >>9 ) - rdev->data_offset; +if (!my_mddev->pers->resize) +/* Cannot change size for RAID0 or Linear etc */ +return -EINVAL ; }if (sectors < my_mddev->dev_sectors)return -EINVAL ;/* component must fit device */
drivers/md/raid0.c +3 -2
@@ -289,7 +289,7 @@ abort:kfree (conf->strip_zone);kfree (conf->devlist);kfree (conf); - *private_conf =NULL ; + *private_conf =ERR_PTR (err);return err; }
@@ -411,7 +411,8 @@ static sector_t raid0_size(struct mddev *mddev, sector_t sectors, int raid_disks "%s does not support generic reshape\n", __func__);rdev_for_each (rdev, mddev) - array_sectors += rdev->sectors; + array_sectors += (rdev->sectors & + ~(sector_t)(mddev->chunk_sectors-1 ));return array_sectors; }
drivers/md/raid1.c +1 -0
@@ -967,6 +967,7 @@ static void raid1_unplug(struct blk_plug_cb *cb, bool from_schedule)bio_list_merge (&conf->pending_bio_list, &plug->pending); conf->pending_count += plug->pending_cnt;spin_unlock_irq (&conf->device_lock); +wake_up (&conf->wait_barrier);md_wakeup_thread (mddev->thread);kfree (plug);return ;
drivers/md/raid10.c +1 -0
@@ -1073,6 +1073,7 @@ static void raid10_unplug(struct blk_plug_cb *cb, bool from_schedule)bio_list_merge (&conf->pending_bio_list, &plug->pending); conf->pending_count += plug->pending_cnt;spin_unlock_irq (&conf->device_lock); +wake_up (&conf->wait_barrier);md_wakeup_thread (mddev->thread);kfree (plug);return ;
drivers/memstick/host/rtsx_pci_ms.c +7 -0
@@ -426,6 +426,9 @@ static void rtsx_pci_ms_request(struct memstick_host *msh)dev_dbg (ms_dev (host),"--> %s\n" , __func__); +if (rtsx_pci_card_exclusive_check (host->pcr,RTSX_MS_CARD )) +return ; +schedule_work (&host->handle_req); }
@@ -441,6 +444,10 @@ static int rtsx_pci_ms_set_param(struct memstick_host *msh,dev_dbg (ms_dev (host),"%s: param = %d, value = %d\n" , __func__, param, value); + err =rtsx_pci_card_exclusive_check (host->pcr,RTSX_MS_CARD ); +if (err) +return err; +switch (param) {case MEMSTICK_POWER :if (value ==MEMSTICK_POWER_ON )
drivers/mfd/rtsx_pcr.c +49 -12
109 lines not on this page · raw message
drivers/mmc/host/rtsx_pci_sdmmc.c +18 -0
@@ -678,12 +678,19 @@ static void sdmmc_request(struct mmc_host *mmc, struct mmc_request *mrq)struct mmc_command *cmd = mrq->cmd;struct mmc_data *data = mrq->data;unsigned int data_size =0 ; +int err;if (host->eject) { cmd->error = -ENOMEDIUM ; goto finish; } + err =rtsx_pci_card_exclusive_check (host->pcr,RTSX_SD_CARD ); +if (err) { + cmd->error = err; + goto finish; + } +mutex_lock (&pcr->pcr_mutex);rtsx_pci_start_run (pcr);
@@ -901,6 +908,9 @@ static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)if (host->eject)return ; +if (rtsx_pci_card_exclusive_check (host->pcr,RTSX_SD_CARD )) +return ; +mutex_lock (&pcr->pcr_mutex);rtsx_pci_start_run (pcr);
@@ -1073,6 +1083,10 @@ static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios)if (host->eject)return -ENOMEDIUM ; + err =rtsx_pci_card_exclusive_check (host->pcr,RTSX_SD_CARD ); +if (err) +return err; +mutex_lock (&pcr->pcr_mutex);rtsx_pci_start_run (pcr);
@@ -1122,6 +1136,10 @@ static int sdmmc_execute_tuning(struct mmc_host *mmc, u32 opcode)if (host->eject)return -ENOMEDIUM ; + err =rtsx_pci_card_exclusive_check (host->pcr,RTSX_SD_CARD ); +if (err) +return err; +mutex_lock (&pcr->pcr_mutex);rtsx_pci_start_run (pcr);
drivers/net/ethernet/broadcom/tg3.c +5 -9
@@ -1843,6 +1843,8 @@ static void tg3_link_report(struct tg3 *tp)tg3_ump_link_report (tp); } + + tp->link_up =netif_carrier_ok (tp->dev); }static u16 tg3_advert_flowctrl_1000X (u8 flow_ctrl)
@@ -2496,12 +2498,6 @@ static int tg3_phy_reset_5703_4_5(struct tg3 *tp)return err; } -static void tg3_carrier_on (struct tg3 *tp) -{ -netif_carrier_on (tp->dev); - tp->link_up = true; -} -static void tg3_carrier_off (struct tg3 *tp) {netif_carrier_off (tp->dev);
@@ -2527,7 +2523,7 @@ static int tg3_phy_reset(struct tg3 *tp)return -EBUSY ;if (netif_running (tp->dev) && tp->link_up) { -tg3_carrier_off (tp); +netif_carrier_off (tp->dev);tg3_link_report (tp); }
@@ -4225,9 +4221,9 @@ static bool tg3_test_and_report_link_chg(struct tg3 *tp, int curr_link_up) {if (curr_link_up != tp->link_up) {if (curr_link_up) { -tg3_carrier_on (tp); +netif_carrier_on (tp->dev); }else { -tg3_carrier_off (tp); +netif_carrier_off (tp->dev);if (tp->phy_flags &TG3_PHYFLG_MII_SERDES ) tp->phy_flags &= ~TG3_PHYFLG_PARALLEL_DETECT ; }
drivers/net/ethernet/intel/e1000e/netdev.c +1 -1
@@ -5549,7 +5549,7 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake,*/ e1000e_release_hw_control (adapter); -pci_disable_device (pdev); +pci_clear_master (pdev);return 0 ; }
drivers/net/usb/smsc95xx.c +6 -0
@@ -1340,6 +1340,8 @@ static int smsc95xx_enter_suspend0(struct usbnet *dev) ret =smsc95xx_read_reg_nopm (dev,PM_CTRL , &val);if (ret <0 )netdev_warn (dev->net,"Error reading PM_CTRL\n" ); +else + ret =0 ;return ret; }
@@ -1392,6 +1394,8 @@ static int smsc95xx_enter_suspend1(struct usbnet *dev) ret =smsc95xx_write_reg_nopm (dev,PM_CTRL , val);if (ret <0 )netdev_warn (dev->net,"Error writing PM_CTRL\n" ); +else + ret =0 ;return ret; }
@@ -1413,6 +1417,8 @@ static int smsc95xx_enter_suspend2(struct usbnet *dev) ret =smsc95xx_write_reg_nopm (dev,PM_CTRL , val);if (ret <0 )netdev_warn (dev->net,"Error writing PM_CTRL\n" ); +else + ret =0 ;return ret; }
drivers/net/wireless/ath/ath9k/common.h +1 -1
@@ -27,7 +27,7 @@#define WME_MAX_BA WME_BA_BMP_SIZE#define ATH_TID_MAX_BUFS (2 * WME_MAX_BA) -#define ATH_RSSI_DUMMY_MARKER 0x127 +#define ATH_RSSI_DUMMY_MARKER 127#define ATH_RSSI_LPF_LEN 10#define RSSI_LPF_THRESHOLD -20#define ATH_RSSI_EP_MULTIPLIER (1<<7)
drivers/net/wireless/ath/ath9k/htc.h +1 -0
@@ -22,6 +22,7 @@#include <linux/firmware.h> #include <linux/skbuff.h> #include <linux/netdevice.h> +#include <linux/etherdevice.h> #include <linux/leds.h> #include <linux/slab.h> #include <net/mac80211.h>
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +11 -7
@@ -1067,15 +1067,19 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv, last_rssi = priv->rx.last_rssi; -if (likely (last_rssi !=ATH_RSSI_DUMMY_MARKER )) - rxbuf->rxstatus.rs_rssi =ATH_EP_RND (last_rssi, -ATH_RSSI_EP_MULTIPLIER ); +if (ieee80211_is_beacon (hdr->frame_control) && + !is_zero_ether_addr (common->curbssid) && +ether_addr_equal (hdr->addr3, common->curbssid)) { +s8 rssi = rxbuf->rxstatus.rs_rssi; -if (rxbuf->rxstatus.rs_rssi <0 ) - rxbuf->rxstatus.rs_rssi =0 ; +if (likely (last_rssi !=ATH_RSSI_DUMMY_MARKER )) + rssi =ATH_EP_RND (last_rssi,ATH_RSSI_EP_MULTIPLIER ); -if (ieee80211_is_beacon (fc)) - priv->ah->stats.avgbrssi = rxbuf->rxstatus.rs_rssi; +if (rssi <0 ) + rssi =0 ; + + priv->ah->stats.avgbrssi = rssi; + } rx_status->mactime =be64_to_cpu (rxbuf->rxstatus.rs_tstamp); rx_status->band = hw->conf.channel->band;
drivers/net/wireless/ath/ath9k/hw.c +3 -1
@@ -1480,7 +1480,9 @@ static bool ath9k_hw_chip_reset(struct ath_hw *ah, reset_type =ATH9K_RESET_POWER_ON ; else reset_type =ATH9K_RESET_COLD ; - } + }else if (ah->chip_fullsleep ||REG_READ (ah,AR_Q_TXE ) || + (REG_READ (ah,AR_CR ) &AR_CR_RXE )) + reset_type =ATH9K_RESET_COLD ;if (!ath9k_hw_set_reset_reg (ah, reset_type))return false;
drivers/net/wireless/iwlwifi/iwl-devtrace.h +4 -6
@@ -349,25 +349,23 @@ TRACE_EVENT(iwlwifi_dev_rx_data, TRACE_EVENT(iwlwifi_dev_hcmd, TP_PROTO(const struct device *dev, struct iwl_host_cmd *cmd, u16 total_size, - const void *hdr, size_t hdr_len), - TP_ARGS(dev, cmd, total_size, hdr, hdr_len), + struct iwl_cmd_header *hdr), + TP_ARGS(dev, cmd, total_size, hdr), TP_STRUCT__entry( DEV_ENTRY __dynamic_array(u8, hcmd, total_size) __field(u32, flags) ), TP_fast_assign( - int i, offset = hdr_len; + int i, offset = sizeof(*hdr); DEV_ASSIGN; __entry->flags = cmd->flags; - memcpy(__get_dynamic_array(hcmd), hdr, hdr_len); + memcpy(__get_dynamic_array(hcmd), hdr, sizeof(*hdr)); for (i = 0; i < IWL_MAX_CMD_TFDS; i++) { if (!cmd->len[i]) continue; - if (!(cmd->dataflags[i] & IWL_HCMD_DFL_NOCOPY)) - continue; memcpy((u8 *)__get_dynamic_array(hcmd) + offset, cmd->data[i], cmd->len[i]); offset += cmd->len[i];
drivers/net/wireless/iwlwifi/pcie/internal.h +9 -0
@@ -182,6 +182,15 @@ struct iwl_queue {#define TFD_TX_CMD_SLOTS 256#define TFD_CMD_SLOTS 32 +/* +* The FH will write back to the first TB only, so we need +* to copy some data into the buffer regardless of whether +* it should be mapped or not. This indicates how much to +* copy, even for HCMDs it must be big enough to fit the +* DRAM scratch from the TX cmd, at least 16 bytes. +*/ +#define IWL_HCMD_MIN_COPY_SIZE 16 +struct iwl_pcie_txq_entry {struct iwl_device_cmd *cmd;struct iwl_device_cmd *copy_cmd;
drivers/net/wireless/iwlwifi/pcie/tx.c +58 -17
147 lines not on this page · raw message
drivers/net/wireless/libertas/if_sdio.c +5 -1
@@ -825,6 +825,11 @@ static void if_sdio_finish_power_on(struct if_sdio_card *card)sdio_release_host (func); +/* Set fw_ready before queuing any commands so that +* lbs_thread won't block from sending them to firmware. +*/ + priv->fw_ready =1 ; +/* * FUNC_INIT is required for SD8688 WLAN/BT multiple functions */
@@ -839,7 +844,6 @@ static void if_sdio_finish_power_on(struct if_sdio_card *card)netdev_alert (priv->dev,"CMD_FUNC_INIT cmd failed\n" ); } - priv->fw_ready =1 ;wake_up (&card->pwron_waitq);if (!card->started) {
drivers/net/wireless/mwifiex/pcie.c +1 -1
@@ -291,7 +291,7 @@ static int mwifiex_pm_wakeup_card(struct mwifiex_adapter *adapter) i++;usleep_range (10 ,20 );/* 50ms max wait */ -if (i ==50000 ) +if (i ==5000 )break ; }
drivers/platform/x86/acer-wmi.c +3 -0
@@ -1204,6 +1204,9 @@ static acpi_status WMID_set_capabilities(void) devices = *((u32 *) obj->buffer.pointer); }else if (obj->type ==ACPI_TYPE_INTEGER ) { devices = (u32 ) obj->integer.value; + }else { +kfree (out.pointer); +return AE_ERROR ; } }else {kfree (out.pointer);
drivers/platform/x86/sony-laptop.c +1 -1
@@ -1534,7 +1534,7 @@ static int sony_nc_rfkill_set(void *data, bool blocked)int argument = sony_rfkill_address[(long ) data] +0x100 ;if (!blocked) - argument |=0x030000 ; + argument |=0x070000 ;return sony_call_snc_handle (sony_rfkill_handle, argument, &result); }
drivers/rtc/rtc-mv.c +24 -4
@@ -14,6 +14,7 @@#include <linux/platform_device.h> #include <linux/of.h> #include <linux/delay.h> +#include <linux/clk.h> #include <linux/gfp.h> #include <linux/module.h>
@@ -41,6 +42,7 @@ struct rtc_plat_data {struct rtc_device *rtc;void __iomem *ioaddr;int irq; +struct clk *clk; };static int mv_rtc_set_time (struct device *dev,struct rtc_time *tm)
@@ -221,6 +223,7 @@ static int mv_rtc_probe(struct platform_device *pdev)struct rtc_plat_data *pdata;resource_size_t size;u32 rtc_time; +int ret =0 ; res =platform_get_resource (pdev,IORESOURCE_MEM ,0 );if (!res)
@@ -239,11 +242,17 @@ static int mv_rtc_probe(struct platform_device *pdev)if (!pdata->ioaddr)return -ENOMEM ; + pdata->clk =devm_clk_get (&pdev->dev,NULL ); +/* Not all SoCs require a clock.*/ +if (!IS_ERR (pdata->clk)) +clk_prepare_enable (pdata->clk); +/* make sure the 24 hours mode is enabled */ rtc_time =readl (pdata->ioaddr +RTC_TIME_REG_OFFS );if (rtc_time &RTC_HOURS_12H_MODE ) {dev_err (&pdev->dev,"24 Hours mode not supported.\n" ); -return -EINVAL ; + ret = -EINVAL ; + goto out; }/* make sure it is actually functional */
@@ -252,7 +261,8 @@ static int mv_rtc_probe(struct platform_device *pdev) rtc_time =readl (pdata->ioaddr +RTC_TIME_REG_OFFS );if (rtc_time ==0x01000000 ) {dev_err (&pdev->dev,"internal RTC not ticking\n" ); -return -ENODEV ; + ret = -ENODEV ; + goto out; } }
@@ -268,8 +278,10 @@ static int mv_rtc_probe(struct platform_device *pdev) }else pdata->rtc =rtc_device_register (pdev->name, &pdev->dev, &mv_rtc_ops,THIS_MODULE ); -if (IS_ERR (pdata->rtc)) -return PTR_ERR (pdata->rtc); +if (IS_ERR (pdata->rtc)) { + ret =PTR_ERR (pdata->rtc); + goto out; + }if (pdata->irq >=0 ) {writel (0 , pdata->ioaddr +RTC_ALARM_INTERRUPT_MASK_REG_OFFS );
@@ -282,6 +294,11 @@ static int mv_rtc_probe(struct platform_device *pdev) }return 0 ; +out: +if (!IS_ERR (pdata->clk)) +clk_disable_unprepare (pdata->clk); + +return ret; } static int __exit mv_rtc_remove(struct platform_device *pdev)
@@ -292,6 +309,9 @@ static int __exit mv_rtc_remove(struct platform_device *pdev)device_init_wakeup (&pdev->dev,0 );rtc_device_unregister (pdata->rtc); +if (!IS_ERR (pdata->clk)) +clk_disable_unprepare (pdata->clk); +return 0 ; }
drivers/scsi/dc395x.c +1 -1
@@ -3747,13 +3747,13 @@ static struct DeviceCtlBlk *device_alloc(struct AdapterCtlBlk *acb, dcb->max_command =1 ; dcb->target_id = target; dcb->target_lun = lun; + dcb->dev_mode = eeprom->target[target].cfg0;#ifndef DC395x_NO_DISCONNECT dcb->identify_msg =IDENTIFY (dcb->dev_mode &NTC_DO_DISCONNECT , lun);#else dcb->identify_msg =IDENTIFY (0 , lun);#endif - dcb->dev_mode = eeprom->target[target].cfg0; dcb->inquiry7 =0 ; dcb->sync_mode =0 ; dcb->min_nego_period = clock_period[period_index];
drivers/scsi/storvsc_drv.c +1 -0
@@ -467,6 +467,7 @@ static struct scatterlist *create_bounce_buffer(struct scatterlist *sgl,if (!bounce_sgl)return NULL ; +sg_init_table (bounce_sgl, num_pages);for (i =0 ; i < num_pages; i++) { page_buf =alloc_page (GFP_ATOMIC );if (!page_buf)
drivers/target/iscsi/iscsi_target.c +9 -2
@@ -3570,6 +3570,10 @@ check_rsp_state:spin_lock_bh (&cmd->istate_lock); cmd->i_state =ISTATE_SENT_STATUS ;spin_unlock_bh (&cmd->istate_lock); + +if (atomic_read (&conn->check_immediate_queue)) +return 1 ; +continue ; }else if (ret ==2 ) {/* Still must send status,
@@ -3659,7 +3663,7 @@ check_rsp_state: }if (atomic_read (&conn->check_immediate_queue)) -break ; +return 1 ; }return 0 ;
@@ -3703,12 +3707,15 @@ restart: signal_pending(current)) goto transport_err; +get_immediate: ret =handle_immediate_queue (conn);if (ret <0 ) goto transport_err; ret =handle_response_queue (conn); -if (ret == -EAGAIN ) +if (ret ==1 ) + goto get_immediate; +else if (ret == -EAGAIN ) goto restart;else if (ret <0 ) goto transport_err;
drivers/target/target_core_pscsi.c +0 -1
@@ -940,7 +940,6 @@ pscsi_map_sg(struct se_cmd *cmd, struct scatterlist *sgl, u32 sgl_nents, bio =NULL ; } - page++; len -= bytes; data_len -= bytes; off =0 ;
drivers/usb/core/hub.c +94 -84
70 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.
Quoted 5 lines · Greg KH
I'm announcing the release of the 3.8.3 kernel.
All users of the 3.8 kernel series must upgrade.
Quoted 8 lines
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.8.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=summarythanks,
greg k-h
Hi,
“make ARCH=arm menuconfig” no complains, but "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-" failed:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Building modules, stage 2. MODPOST 1904 modules ERROR: "flush_tlb_kernel_range" [drivers/staging/zsmalloc/zsmalloc.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2
Please find the attachment with .config.gz file.
--
Dongsheng
Greg KH
maintainerQuoted 11 lines · Dongsheng Song
Quoted 10 lines · Greg KH
I'm announcing the release of the 3.8.3 kernel.
All users of the 3.8 kernel series must upgrade.
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.8.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
Quoted 8 lines
Quoted 3 lines
thanks,
greg k-h
Hi,
“make ARCH=arm menuconfig” no complains, but "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-" failed:
Is this new (i.e. does 3.8.2 work?)
If so, what commit caused it?
thanks,
greg k-h
Quoted 21 lines · Greg KH
Quoted 11 lines · Dongsheng Song
Quoted 10 lines · Greg KH
I'm announcing the release of the 3.8.3 kernel.
All users of the 3.8 kernel series must upgrade.
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.8.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=summaryQuoted 8 lines
Quoted 3 lines
thanks,
greg k-h
Hi,
“make ARCH=arm menuconfig” no complains, but "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-" failed:
Quoted 7 lines
Is this new (i.e. does 3.8.2 work?)
If so, what commit caused it?
thanks,
greg k-h
Sorry, I do not know, I'm newbie to arm, this is my first DIY.
Hi,
Quoted 36 lines · Dongsheng Song
Quoted 5 lines · Greg KH
I'm announcing the release of the 3.8.3 kernel.
All users of the 3.8 kernel series must upgrade.
Quoted 8 lines
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.8.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=summarythanks,
greg k-h
Hi,
?make ARCH=arm menuconfig? no complains, but "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-" failed:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Building modules, stage 2. MODPOST 1904 modules ERROR: "flush_tlb_kernel_range" [drivers/staging/zsmalloc/zsmalloc.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2
Quoted 1 line
Please find the attachment with .config.gz file.
linux-arm-kernel might have more information about this.
Signature · 8 lines
balbi -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130317/95e4f464/attachment.sig>
Quoted 22 lines · Felipe Balbi
Hi,
Quoted 19 lines · Dongsheng Song
?make ARCH=arm menuconfig? no complains, but "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-" failed:
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h CHK kernel/config_data.h Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Building modules, stage 2. MODPOST 1904 modules ERROR: "flush_tlb_kernel_range" [drivers/staging/zsmalloc/zsmalloc.ko] undefined! make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2
Quoted 3 lines
Quoted 1 line
Please find the attachment with .config.gz file.
linux-arm-kernel might have more information about this.
Sigh.
At times, I really don't know why I bother wasting my time commenting on patches if they just go and agree with them, and promptly ignore them. I pointed out what this should be:
http://marc.info/?l=linux-kernel&m=135972750522902&w=2
And it was agreed:
http://marc.info/?l=linux-kernel&m=135993546317541&w=2
But for some reason the wrong patch got merged:
http://marc.info/?l=git-commits-head&m=136147889001219&w=2
Maybe because it was "simpler" ? Don't know. But... well, we now know what the outcome of it was. Let's try a different technique. I'm going to say nothing of any real help and hopefully it will get fixed properly. Maybe that'll work.
Quoted 12 lines · Russell King - ARM Linux
Sigh.
At times, I really don't know why I bother wasting my time commenting on patches if they just go and agree with them, and promptly ignore them. I pointed out what this should be:
http://marc.info/?l=linux-kernel&m=135972750522902&w=2
And it was agreed:
Quoted 8 lines
But for some reason the wrong patch got merged:
http://marc.info/?l=git-commits-head&m=136147889001219&w=2
Maybe because it was "simpler" ? Don't know. But... well, we now know what the outcome of it was. Let's try a different technique. I'm going to say nothing of any real help and hopefully it will get fixed properly. Maybe that'll work.
To be fair, looking at the commitdate of that commit it was already in Greg's tree when you commented on it. So the discussion you had would have to be about a followup-fix to this, and not about that particular patch.
Bj?rn
Greg KH
maintainerQuoted 23 lines · Bjørn Mork
Quoted 12 lines · Russell King - ARM Linux
Sigh.
At times, I really don't know why I bother wasting my time commenting on patches if they just go and agree with them, and promptly ignore them. I pointed out what this should be:
http://marc.info/?l=linux-kernel&m=135972750522902&w=2
And it was agreed:
Quoted 8 lines
But for some reason the wrong patch got merged:
http://marc.info/?l=git-commits-head&m=136147889001219&w=2
Maybe because it was "simpler" ? Don't know. But... well, we now know what the outcome of it was. Let's try a different technique. I'm going to say nothing of any real help and hopefully it will get fixed properly. Maybe that'll work.
Quoted 4 lines
To be fair, looking at the commitdate of that commit it was already in Greg's tree when you commented on it. So the discussion you had would have to be about a followup-fix to this, and not about that particular patch.
Yes, I thought someone was going to send me a follow-on patch to fix this, that is what Minchan said, after I had committed it.
Anyway, it's a staging driver, if it doesn't build, that's not a big deal.
greg k-h