Linux 3.14.18
Greg KH
maintainerI'm announcing the release of the 3.14.18 kernel.
All users of the 3.14 kernel series must upgrade.
The updated 3.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.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/sound/alsa/ALSA-Configuration.txt | 4 - Documentation/stable_kernel_rules.txt | 3 + Makefile | 2 arch/arm/boot/dts/am4372.dtsi | 3 - arch/arm/include/asm/unistd.h | 10 +++ arch/arm/include/uapi/asm/unistd.h | 11 --- arch/arm/mach-omap2/control.c | 3 - arch/arm/mach-omap2/omap_hwmod.c | 4 + arch/powerpc/platforms/powernv/pci-ioda.c | 1 arch/powerpc/platforms/pseries/pci_dlpar.c | 4 - arch/x86/Kconfig | 1 arch/x86/include/asm/kvm_host.h | 2 arch/x86/kernel/resource.c | 8 +- arch/x86/kernel/vsyscall_64.c | 8 +- arch/x86/kvm/emulate.c | 4 + arch/x86/kvm/irq.c | 2 arch/x86/kvm/lapic.c | 52 +++++++++++++----- arch/x86/pci/i386.c | 4 + arch/x86/xen/grant-table.c | 10 +-- arch/x86/xen/time.c | 2 drivers/char/tpm/tpm_i2c_stm_st33.c | 1 drivers/crypto/ux500/cryp/cryp_core.c | 25 ++++---- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 6 +- drivers/gpu/drm/omapdrm/omap_gem.c | 10 +-- drivers/gpu/drm/omapdrm/omap_plane.c | 4 - drivers/gpu/drm/radeon/cik.c | 1 drivers/hid/hid-cherry.c | 2 drivers/hid/hid-kye.c | 2 drivers/hid/hid-lg.c | 4 - drivers/hid/hid-logitech-dj.c | 13 ++-- drivers/hid/hid-monterey.c | 2 drivers/hid/hid-petalynx.c | 2 drivers/hid/hid-sunplus.c | 2 drivers/hwmon/ads1015.c | 4 + drivers/hwmon/amc6821.c | 17 +++--- drivers/hwmon/dme1737.c | 33 ++++++----- drivers/hwmon/gpio-fan.c | 2 drivers/hwmon/lm78.c | 2 drivers/hwmon/lm85.c | 9 ++- drivers/hwmon/sis5595.c | 2 drivers/i2c/busses/i2c-at91.c | 4 - drivers/misc/mei/client.c | 2 drivers/misc/mei/nfc.c | 11 +-- drivers/pci/pci-label.c | 18 ++++-- drivers/pci/pci.c | 12 ++-- drivers/scsi/hpsa.c | 6 +- drivers/staging/et131x/et131x.c | 68 +++++++++--------------- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 2 drivers/tty/serial/serial_core.c | 3 + drivers/usb/core/devio.c | 2 drivers/usb/core/hub.c | 49 ++++++++++++++++- drivers/usb/host/ehci-hub.c | 2 drivers/usb/host/ehci-pci.c | 25 ++++++++ drivers/usb/host/ohci-dbg.c | 9 +-- drivers/usb/host/ohci-hcd.c | 10 +-- drivers/usb/host/ohci-q.c | 46 ++++++++++------ drivers/usb/host/xhci-pci.c | 4 + drivers/usb/host/xhci-ring.c | 3 - drivers/usb/serial/ftdi_sio.c | 5 + drivers/usb/serial/ftdi_sio_ids.h | 20 +++++-- drivers/usb/serial/whiteheat.c | 7 ++ drivers/xen/events/events_fifo.c | 5 - fs/btrfs/backref.c | 14 ++-- fs/btrfs/extent_io.c | 1 fs/btrfs/file-item.c | 2 fs/btrfs/inode.c | 12 ++++ fs/btrfs/ulist.h | 15 +++++ fs/debugfs/inode.c | 33 +++++++++-- fs/ext4/inode.c | 10 ++- fs/ext4/mballoc.c | 26 ++++++++- fs/ext4/super.c | 5 + fs/isofs/inode.c | 15 ++--- fs/isofs/isofs.h | 23 ++++++-- fs/isofs/rock.c | 39 +++++++++---- fs/jbd2/commit.c | 21 ++++--- fs/jbd2/journal.c | 56 +++++++++++++------ fs/jbd2/recovery.c | 33 +++++++---- fs/jbd2/revoke.c | 6 +- fs/nfs/nfs3acl.c | 7 +- fs/nfs/nfs4proc.c | 17 ++++-- fs/nfsd/nfs4callback.c | 3 - fs/nfsd/nfssvc.c | 5 + include/drm/drm_pciids.h | 7 ++ include/linux/jbd2.h | 30 ++++++++-- include/linux/sunrpc/svc_xprt.h | 1 kernel/sched/core.c | 5 + mm/util.c | 9 +-- net/sunrpc/svcsock.c | 2 net/sunrpc/xprt.c | 2 net/sunrpc/xprtrdma/svc_rdma_transport.c | 1 sound/pci/Kconfig | 4 - sound/pci/hda/patch_ca0132.c | 7 ++ sound/pci/hda/patch_realtek.c | 28 ++++++++- sound/pci/hda/patch_sigmatel.c | 12 ++++ sound/pci/oxygen/virtuoso.c | 1 sound/pci/oxygen/xonar_pcm179x.c | 12 +++- sound/usb/quirks-table.h | 29 ++++++++++ sound/usb/quirks.c | 2 virt/kvm/ioapic.c | 7 +- virt/kvm/iommu.c | 19 +++--- 100 files changed, 768 insertions(+), 347 deletions(-)
Alan Stern (2):
USB: OHCI: fix bugs in debug routines
USB: OHCI: don't lose track of EDs when a controller dies
Alex Deucher (3):
drm/radeon: add new KV pci id
drm/radeon: add new bonaire pci ids
drm/radeon: add additional SI pci ids
Alexander Usyskin (3):
mei: start disconnect request timer consistently
mei: reset client state on queued connect request
mei: nfc: fix memory leak in error path
Andrey Utkin (1):
nfs3_list_one_acl(): check get_acl() result with IS_ERR_OR_NULL
Andy Lutomirski (1):
x86_64/vsyscall: Fix warn_bad_vsyscall log output
Arnd Bergmann (2):
crypto: ux500 - make interrupt mode plausible
hpsa: fix non-x86 builds
Axel Lin (6):
hwmon: (sis5595) Prevent overflow problem when writing large limits
hwmon: (amc6821) Fix possible race condition bug
hwmon: (gpio-fan) Prevent overflow problem when writing large limits
hwmon: (ads1015) Fix off-by-one for valid channel index checking
hwmon: (ads1015) Fix out-of-bounds array access
hwmon: (dme1737) Prevent overflow problem when writing large limits
Baruch Siach (1):
ARM: 8097/1: unistd.h: relocate comments back to place
Brian W Hart (1):
powerpc/powernv: Update dev->dma_mask in pci_set_dma_mask() path
Bryan O'Donoghue (1):
USB: ehci-pci: USB host controller support for Intel Quark X1000
Christoph Schulz (1):
x86: don't exclude low BIOS area when allocating address space for non-PCI cards
Chuck Lever (1):
svcrdma: Select NFSv4.1 backchannel transport based on forward channel
Clemens Ladisch (2):
ALSA: virtuoso: add Xonar Essence STX II support
ALSA: usb-audio: fix BOSS ME-25 MIDI regression
Daniel Bristot de Oliveira (1):
sched: Fix sched_setparam() policy == -1 logic
Darrick J. Wong (2):
jbd2: fix infinite loop when recovering corrupt journal blocks
jbd2: fix descriptor block size handling errors with journal_csum
Dave Chiluk (1):
stable_kernel_rules: Add pointer to netdev-FAQ for network patches
David Henningsson (1):
ALSA: hda - Add mute LED pin quirk for HP 15 touchsmart
David Vrabel (3):
xen/events/fifo: ensure all bitops are properly aligned even on x86 x86/xen: use vmap() to map grant table pages in PVH guests x86/xen: resume timer irqs early
Dmitry Monakhov (1):
ext4: update i_disksize coherently with block allocation on error path
Filipe Manana (2):
Btrfs: fix csum tree corruption, duplicate and outdated checksums
Btrfs: read lock extent buffer while walking backrefs
Greg Kroah-Hartman (2):
USB: fix build error with CONFIG_PM_RUNTIME disabled Linux 3.14.18
Guenter Roeck (2):
hwmon: (lm78) Fix overflow problems seen when writing large temperature limits
hwmon: (lm85) Fix various errors on attribute writes
Hans de Goede (1):
xhci: Treat not finding the event_seg on COMP_STOP the same as COMP_STOP_INVAL
Holger Paradies (1):
staging/rtl8188eu: add 0df6:0076 Sitecom Europe B.V.
Huang Rui (1):
usb: xhci: amd chipset also needs short TX quirk
Hui Wang (2):
ALSA: hda - fix an external mic jack problem on a HP machine
ALSA: hda - restore the gpio led after resume
James Forshaw (1):
USB: whiteheat: Added bounds checking for bulk command response
Jan Kara (1):
isofs: Fix unbounded recursion when processing relocated directories
Jason Gunthorpe (1):
tpm: Add missing tpm_do_selftest to ST33 I2C driver
Jaša Bartelj (1):
USB: ftdi_sio: Added PID for new ekey device
Jeremy Vial (1):
ARM: OMAP3: Fix choice of omap3_restore_es function in OMAP34XX rev3.1.2 case.
Jiri Kosina (2):
HID: logitech: perform bounds checking on device_id early enough
HID: fix a couple of off-by-ones
Johan Hovold (1):
USB: ftdi_sio: add Basic Micro ATOM Nano USB2Serial PID
Kinglong Mee (1):
NFSD: Decrease nfsd_users in nfsd_startup_generic fail
Larry Finger (1):
staging: r8188eu: Add new USB ID
Liu Bo (2):
Btrfs: fix compressed write corruption on enospc
Btrfs: fix crash on endio of reading corrupted block
Mark Einon (1):
staging: et131x: Fix errors caused by phydev->addr accesses before initialisation
Matt Fleming (1):
x86/efi: Enforce CONFIG_RELOCATABLE for EFI boot stub
Michael S. Tsirkin (1):
kvm: iommu: fix the third parameter of kvm_iommu_put_pages (CVE-2014-3601)
Nadav Amit (1):
KVM: x86: Inter-privilege level ret emulation is not implemeneted
Oleg Nesterov (1):
vm_is_stack: use for_each_thread() rather then buggy while_each_thread()
Oliver Neukum (1):
USB: devio: fix issue with log flooding
Paolo Bonzini (2):
KVM: x86: always exit on EOIs for interrupts listed in the IOAPIC redir table Revert "KVM: x86: Increase the number of fixed MTRR regs to 10"
Patrick Riphagen (2):
USB: serial: ftdi_sio: Annotate the current Xsens PID assignments
USB: serial: ftdi_sio: Add support for new Xsens devices
Paul S McSpadden (1):
ALSA: usb-audio: Adjust Gamecom 780 volume level
Peter Chen (1):
usb: ehci: using wIndex + 1 for hub port
Peter Hurley (1):
serial: core: Preserve termios c_cflag for console resume
Pratyush Anand (1):
USB: Fix persist resume of some SS USB devices
Roger Quadros (1):
usb: hub: Prevent hub autosuspend if usbcore.autosuspend is -1
Russell King (1):
drm: omapdrm: fix compiler errors
Simone Gotti (1):
ACPI / PCI: Fix sysfs acpi_index and label errors
Stephen M. Cameron (1):
hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl
Steven Rostedt (1):
debugfs: Fix corrupted loop in debugfs_remove_recursive
Suman Anna (1):
ARM: dts: AM4372: Correct mailbox node data
Takashi Iwai (3):
ALSA: hda/ca0132 - Don't try loading firmware at resume when already failed
ALSA: hda/realtek - Avoid setting wrong COEF on ALC269 & co
Btrfs: Fix memory corruption by ulist_add_merge() on 32bit arch
Theodore Ts'o (2):
ext4: fix ext4_discard_allocated_blocks() if we can't allocate the pa struct
ext4: fix BUG_ON in mb_free_blocks()
Tony Lindgren (1):
ARM: OMAP2+: hwmod: Rearm wake-up interrupts for DT when MUSB is idled
Trond Myklebust (2):
NFSv3: Fix another acl regression
NFSv4: Fix problems with close in the presence of a delegation
Tyrel Datwyler (1):
powerpc/pci: Reorder pci bus/bridge unregistration during PHB removal
Vidya Sagar (1):
PCI: Configure ASPM when enabling device
Wanpeng Li (1):
KVM: nVMX: fix "acknowledge interrupt on exit" when APICv is in use
Wolfram Sang (1):
drivers/i2c/busses: use correct type for dma_map/unmap
Greg KH
maintainerDocumentation/sound/alsa/ALSA-Configuration.txt +2 -2
@@ -2026,8 +2026,8 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed. ------------------- Module for sound cards based on the Asus AV66/AV100/AV200 chips, - i.e., Xonar D1, DX, D2, D2X, DS, Essence ST (Deluxe), Essence STX, - HDAV1.3 (Deluxe), and HDAV1.3 Slim. + i.e., Xonar D1, DX, D2, D2X, DS, DSX, Essence ST (Deluxe), + Essence STX (II), HDAV1.3 (Deluxe), and HDAV1.3 Slim. This module supports autoprobe and multiple cards.
Documentation/stable_kernel_rules.txt +3 -0
@@ -29,6 +29,9 @@ Rules on what kind of patches are accepted, and which ones are not, into the Procedure for submitting patches to the -stable tree: + - If the patch covers files in net/ or drivers/net please follow netdev stable + submission guidelines as described in + Documentation/networking/netdev-FAQ.txt - Send the patch, after verifying that it follows the above rules, to [email protected]. You must note the upstream commit ID in the changelog of your submission, as well as the kernel version you wish
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 17 +SUBLEVEL = 18 EXTRAVERSION = NAME = Remembering Coco
arch/arm/boot/dts/am4372.dtsi +0 -3
@@ -161,9 +161,6 @@ ti,hwmods = "mailbox"; ti,mbox-num-users = <4>; ti,mbox-num-fifos = <8>; - ti,mbox-names = "wkup_m3"; - ti,mbox-data = <0 0 0 0>; - status = "disabled"; }; timer1: timer@44e31000 {
arch/arm/include/asm/unistd.h +10 -0
@@ -15,7 +15,17 @@#include <uapi/asm/unistd.h> +/* +* This may need to be greater than __NR_last_syscall+1 in order to +* account for the padding in the syscall table +*/ #define __NR_syscalls (384) + +/* +* *NOTE*: This is a ghost syscall private to the kernel. Only the +* __kuser_cmpxchg code in entry-armv.S should be aware of its +* existence. Don't ever use this from user code. +*/ #define __ARM_NR_cmpxchg (__ARM_NR_BASE+0x00fff0)#define __ARCH_WANT_STAT64
arch/arm/include/uapi/asm/unistd.h +0 -11
@@ -410,11 +410,6 @@#define __NR_sched_getattr (__NR_SYSCALL_BASE+381)/* -* This may need to be greater than __NR_last_syscall+1 in order to -* account for the padding in the syscall table -*/ - -/* * The following SWIs are ARM private. */ #define __ARM_NR_BASE (__NR_SYSCALL_BASE+0x0f0000)
@@ -425,12 +420,6 @@#define __ARM_NR_set_tls (__ARM_NR_BASE+5)/* -* *NOTE*: This is a ghost syscall private to the kernel. Only the -* __kuser_cmpxchg code in entry-armv.S should be aware of its -* existence. Don't ever use this from user code. -*/ - -/* * The following syscalls are obsolete and no longer available for EABI. */ #if !defined(__KERNEL__)
arch/arm/mach-omap2/control.c +2 -1
@@ -314,7 +314,8 @@ void omap3_save_scratchpad_contents(void) scratchpad_contents.public_restore_ptr =virt_to_phys (omap3_restore_3630); else if (omap_rev() != OMAP3430_REV_ES3_0 && - omap_rev() != OMAP3430_REV_ES3_1) + omap_rev() != OMAP3430_REV_ES3_1 && + omap_rev() != OMAP3430_REV_ES3_1_2) scratchpad_contents.public_restore_ptr =virt_to_phys (omap3_restore); else
arch/arm/mach-omap2/omap_hwmod.c +4 -0
@@ -2185,6 +2185,8 @@ static int _enable(struct omap_hwmod *oh) oh->mux->pads_dynamic))) {omap_hwmod_mux (oh->mux, _HWMOD_STATE_ENABLED);_reconfigure_io_chain (); + } else if (oh->flags & HWMOD_FORCE_MSTANDBY) { +_reconfigure_io_chain (); }_add_initiator_dep (oh, mpu_oh);
@@ -2291,6 +2293,8 @@ static int _idle(struct omap_hwmod *oh)if (oh->mux && oh->mux->pads_dynamic) {omap_hwmod_mux (oh->mux, _HWMOD_STATE_IDLE);_reconfigure_io_chain (); + }else if (oh->flags &HWMOD_FORCE_MSTANDBY ) { +_reconfigure_io_chain (); } oh->_state = _HWMOD_STATE_IDLE;
arch/powerpc/platforms/powernv/pci-ioda.c +1 -0
@@ -491,6 +491,7 @@ static int pnv_pci_ioda_dma_set_mask(struct pnv_phb *phb,set_dma_ops (&pdev->dev, &dma_iommu_ops);set_iommu_table_base (&pdev->dev, &pe->tce32_table); } + *pdev->dev.dma_mask = dma_mask;return 0 ; }
arch/powerpc/platforms/pseries/pci_dlpar.c +2 -2
@@ -118,10 +118,10 @@ int remove_phb_dynamic(struct pci_controller *phb) } } -/* Unregister the bridge device from sysfs and remove the PCI bus */ -device_unregister (b->bridge); +/* Remove the PCI bus and unregister the bridge device from sysfs */ phb->bus =NULL ;pci_remove_bus (b); +device_unregister (b->bridge);/* Now release the IO resource */ if (res->flags &IORESOURCE_IO )
arch/x86/Kconfig +1 -0
@@ -1597,6 +1597,7 @@ config EFI config EFI_STUB bool "EFI stub support" depends on EFI + select RELOCATABLE ---help--- This kernel feature allows a bzImage to be loaded directly by EFI firmware without the use of a bootloader.
arch/x86/include/asm/kvm_host.h +1 -1
@@ -99,7 +99,7 @@ static inline gfn_t gfn_to_index(gfn_t gfn, gfn_t base_gfn, int level)#define KVM_REFILL_PAGES 25#define KVM_MAX_CPUID_ENTRIES 80#define KVM_NR_FIXED_MTRR_REGION 88 -#define KVM_NR_VAR_MTRR 10 +#define KVM_NR_VAR_MTRR 8#define ASYNC_PF_PER_VCPU 64
arch/x86/kernel/resource.c +5 -3
@@ -37,10 +37,12 @@ static void remove_e820_regions(struct resource *avail)void arch_remove_reservations (struct resource *avail) { -/* Trim out BIOS areas (low 1MB and high 2MB) and E820 regions */ +/* +* Trim out BIOS area (high 2MB) and E820 regions. We do not remove +* the low 1MB unconditionally, as this area is needed for some ISA +* cards requiring a memory range, e.g. the i82365 PCMCIA controller. +*/ if (avail->flags &IORESOURCE_MEM ) { -if (avail->start <BIOS_END ) - avail->start =BIOS_END ;resource_clip (avail,BIOS_ROM_BASE ,BIOS_ROM_END );remove_e820_regions (avail);
arch/x86/kernel/vsyscall_64.c +4 -4
@@ -125,10 +125,10 @@ static void warn_bad_vsyscall(const char *level, struct pt_regs *regs,if (!show_unhandled_signals)return ; -pr_notice_ratelimited ("%s%s[%d] %s ip:%lx cs:%lx sp:%lx ax:%lx si:%lx di:%lx\n" , - level, current->comm,task_pid_nr (current), - message, regs->ip, regs->cs, - regs->sp, regs->ax, regs->si, regs->di); +printk_ratelimited ("%s%s[%d] %s ip:%lx cs:%lx sp:%lx ax:%lx si:%lx di:%lx\n" , + level, current->comm,task_pid_nr (current), + message, regs->ip, regs->cs, + regs->sp, regs->ax, regs->si, regs->di); }static int addr_to_vsyscall_nr (unsigned long addr)
arch/x86/kvm/emulate.c +4 -0
@@ -2006,6 +2006,7 @@ static int em_ret_far(struct x86_emulate_ctxt *ctxt) {int rc;unsigned long cs; +int cpl = ctxt->ops->cpl (ctxt); rc =emulate_pop (ctxt, &ctxt->_eip, ctxt->op_bytes);if (rc !=X86EMUL_CONTINUE )
@@ -2015,6 +2016,9 @@ static int em_ret_far(struct x86_emulate_ctxt *ctxt) rc =emulate_pop (ctxt, &cs, ctxt->op_bytes);if (rc !=X86EMUL_CONTINUE )return rc; +/* Outer-privilege level return is not implemented */ +if (ctxt->mode >=X86EMUL_MODE_PROT16 && (cs &3 ) > cpl) +return X86EMUL_UNHANDLEABLE ; rc =load_segment_descriptor (ctxt, (u16 )cs,VCPU_SREG_CS );return rc; }
arch/x86/kvm/irq.c +1 -1
@@ -108,7 +108,7 @@ int kvm_cpu_get_interrupt(struct kvm_vcpu *v) vector =kvm_cpu_get_extint (v); -if (kvm_apic_vid_enabled (v->kvm) || vector !=-1 ) +if (vector !=-1 )return vector;/* PIC */ return kvm_get_apic_interrupt (v);/* APIC */
arch/x86/kvm/lapic.c +39 -13
75 lines not on this page · raw message
arch/x86/pci/i386.c +4 -0
@@ -162,6 +162,10 @@ pcibios_align_resource(void *data, const struct resource *res,return start;if (start &0x300 ) start = (start +0x3ff ) & ~0x3ff ; + }else if (res->flags &IORESOURCE_MEM ) { +/* The low 1MB range is reserved for ISA cards */ +if (start <BIOS_END ) + start =BIOS_END ; }return start; }
arch/x86/xen/grant-table.c +5 -5
@@ -134,6 +134,7 @@ static int __init xlated_setup_gnttab_pages(void) {struct page **pages;xen_pfn_t *pfns; +void *vaddr;int rc;unsigned int i;unsigned long nr_grant_frames =gnttab_max_grant_frames ();
@@ -159,21 +160,20 @@ static int __init xlated_setup_gnttab_pages(void)for (i =0 ; i < nr_grant_frames; i++) pfns[i] =page_to_pfn (pages[i]); - rc =arch_gnttab_map_shared (pfns, nr_grant_frames, nr_grant_frames, - &xen_auto_xlat_grant_frames.vaddr); - -if (rc) { + vaddr =vmap (pages, nr_grant_frames,0 ,PAGE_KERNEL ); +if (!vaddr) {pr_warn ("%s Couldn't map %ld pfns rc:%d\n" , __func__, nr_grant_frames, rc);free_xenballooned_pages (nr_grant_frames, pages);kfree (pages);kfree (pfns); -return rc; +return -ENOMEM ; }kfree (pages); xen_auto_xlat_grant_frames.pfn = pfns; xen_auto_xlat_grant_frames.count = nr_grant_frames; + xen_auto_xlat_grant_frames.vaddr = vaddr;return 0 ; }
arch/x86/xen/time.c +1 -1
@@ -444,7 +444,7 @@ void xen_setup_timer(int cpu) irq =bind_virq_to_irqhandler (VIRQ_TIMER , cpu, xen_timer_interrupt,IRQF_PERCPU |IRQF_NOBALANCING |IRQF_TIMER | -IRQF_FORCE_RESUME , +IRQF_FORCE_RESUME |IRQF_EARLY_RESUME , name,NULL ); (void )xen_set_irq_priority (irq,XEN_IRQ_PRIORITY_MAX );
drivers/char/tpm/tpm_i2c_stm_st33.c +1 -0
@@ -715,6 +715,7 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) }tpm_get_timeouts (chip); +tpm_do_selftest (chip);dev_info (chip->dev,"TPM I2C Initialized\n" );return 0 ;
drivers/crypto/ux500/cryp/cryp_core.c +12 -13
@@ -190,7 +190,7 @@ static void add_session_id(struct cryp_ctx *ctx)static irqreturn_t cryp_interrupt_handler (int irq,void *param) {struct cryp_ctx *ctx; -int i; +int count;struct cryp_device_data *device_data;if (param ==NULL ) {
@@ -215,12 +215,11 @@ static irqreturn_t cryp_interrupt_handler(int irq, void *param)if (cryp_pending_irq_src (device_data,CRYP_IRQ_SRC_OUTPUT_FIFO )) {if (ctx->outlen / ctx->blocksize >0 ) { -for (i =0 ; i < ctx->blocksize /4 ; i++) { - *(ctx->outdata) =readl_relaxed ( - &device_data->base->dout); - ctx->outdata +=4 ; - ctx->outlen -=4 ; - } + count = ctx->blocksize /4 ; + +readsl (&device_data->base->dout, ctx->outdata, count); + ctx->outdata += count; + ctx->outlen -= count;if (ctx->outlen ==0 ) { cryp_disable_irq_src(device_data,
@@ -230,12 +229,12 @@ static irqreturn_t cryp_interrupt_handler(int irq, void *param) }else if (cryp_pending_irq_src (device_data,CRYP_IRQ_SRC_INPUT_FIFO )) {if (ctx->datalen / ctx->blocksize >0 ) { -for (i =0 ; i < ctx->blocksize /4 ; i++) { -writel_relaxed (ctx->indata, - &device_data->base->din); - ctx->indata +=4 ; - ctx->datalen -=4 ; - } + count = ctx->blocksize /4 ; + +writesl (&device_data->base->din, ctx->indata, count); + + ctx->indata += count; + ctx->datalen -= count;if (ctx->datalen ==0 ) cryp_disable_irq_src(device_data,
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +4 -2
@@ -199,7 +199,7 @@ static struct dmm_txn *dmm_txn_init(struct dmm *dmm, struct tcm *tcm)static void dmm_txn_append (struct dmm_txn *txn,struct pat_area *area,struct page **pages,uint32_t npages,uint32_t roll) { -dma_addr_t pat_pa =0 ; +dma_addr_t pat_pa =0 , data_pa =0 ;uint32_t *data;struct pat *pat;struct refill_engine *engine = txn->engine_handle;
@@ -223,7 +223,9 @@ static void dmm_txn_append(struct dmm_txn *txn, struct pat_area *area, .lut_id = engine->tcm->lut_id, }; - data =alloc_dma (txn,4 *i, &pat->data_pa); + data =alloc_dma (txn,4 *i, &data_pa); +/* FIXME: what if data_pa is more than 32-bit ? */ + pat->data_pa = data_pa;while (i--) {int n = i + roll;
drivers/gpu/drm/omapdrm/omap_gem.c +5 -5
@@ -791,7 +791,7 @@ int omap_gem_get_paddr(struct drm_gem_object *obj, omap_obj->paddr =tiler_ssptr (block); omap_obj->block = block; -DBG ("got paddr: %08x" , omap_obj->paddr); +DBG ("got paddr: %pad" , &omap_obj->paddr); } omap_obj->paddr_cnt++;
@@ -988,9 +988,9 @@ void omap_gem_describe(struct drm_gem_object *obj, struct seq_file *m) off =drm_vma_node_start (&obj->vma_node); -seq_printf (m,"%08x: %2d (%2d) %08llx %08Zx (%2d) %p %4d" , +seq_printf (m,"%08x: %2d (%2d) %08llx %pad (%2d) %p %4d" , omap_obj->flags, obj->name, obj->refcount.refcount.counter, - off, omap_obj->paddr, omap_obj->paddr_cnt, + off, &omap_obj->paddr, omap_obj->paddr_cnt, omap_obj->vaddr, omap_obj->roll);if (omap_obj->flags &OMAP_BO_TILED ) {
@@ -1468,8 +1468,8 @@ void omap_gem_init(struct drm_device *dev) entry->paddr =tiler_ssptr (block); entry->block = block; -DBG ("%d:%d: %dx%d: paddr=%08x stride=%d" , i, j, w, h, - entry->paddr, +DBG ("%d:%d: %dx%d: paddr=%pad stride=%d" , i, j, w, h, + &entry->paddr, usergart[i].stride_pfn <<PAGE_SHIFT ); } }
drivers/gpu/drm/omapdrm/omap_plane.c +2 -2
@@ -142,8 +142,8 @@ static void omap_plane_pre_apply(struct omap_drm_apply *apply)DBG ("%dx%d -> %dx%d (%d)" , info->width, info->height, info->out_width, info->out_height, info->screen_width); -DBG ("%d,%d %08x %08x" , info->pos_x, info->pos_y, - info->paddr, info->p_uv_addr); +DBG ("%d,%d %pad %pad" , info->pos_x, info->pos_y, + &info->paddr, &info->p_uv_addr);/* TODO: */ ilace = false;
drivers/gpu/drm/radeon/cik.c +1 -0
@@ -3231,6 +3231,7 @@ static void cik_gpu_init(struct radeon_device *rdev) (rdev->pdev->device ==0x130B ) || (rdev->pdev->device ==0x130E ) || (rdev->pdev->device ==0x1315 ) || + (rdev->pdev->device ==0x1318 ) || (rdev->pdev->device == 0x131B)) { rdev->config.cik.max_cu_per_sh = 4; rdev->config.cik.max_backends_per_se =1 ;
drivers/hid/hid-cherry.c +1 -1
@@ -28,7 +28,7 @@static __u8 *ch_report_fixup (struct hid_device *hdev,__u8 *rdesc,unsigned int *rsize) { -if (*rsize >=17 && rdesc[11 ] ==0x3c && rdesc[12 ] ==0x02 ) { +if (*rsize >=18 && rdesc[11 ] ==0x3c && rdesc[12 ] ==0x02 ) {hid_info (hdev,"fixing up Cherry Cymotion report descriptor\n" ); rdesc[11 ] = rdesc[16 ] =0xff ; rdesc[12 ] = rdesc[17 ] =0x03 ;
drivers/hid/hid-kye.c +1 -1
@@ -300,7 +300,7 @@ static __u8 *kye_report_fixup(struct hid_device *hdev, __u8 *rdesc,* - change the button usage range to 4-7 for the extra * buttons */ - if (*rsize >= 74 && + if (*rsize >= 75 && rdesc[61] == 0x05 && rdesc[62] == 0x08 && rdesc[63] == 0x19 && rdesc[64] == 0x08 && rdesc[65] == 0x29 && rdesc[66] == 0x0f &&
drivers/hid/hid-lg.c +2 -2
@@ -345,14 +345,14 @@ static __u8 *lg_report_fixup(struct hid_device *hdev, __u8 *rdesc,struct usb_device_descriptor *udesc;__u16 bcdDevice, rev_maj, rev_min; -if ((drv_data->quirks &LG_RDESC ) && *rsize >=90 && rdesc[83 ] ==0x26 && +if ((drv_data->quirks &LG_RDESC ) && *rsize >=91 && rdesc[83 ] ==0x26 && rdesc[84 ] ==0x8c && rdesc[85 ] ==0x02 ) {hid_info (hdev,"fixing up Logitech keyboard report descriptor\n" ); rdesc[84 ] = rdesc[89 ] =0x4d ; rdesc[85 ] = rdesc[90 ] =0x10 ; } -if ((drv_data->quirks &LG_RDESC_REL_ABS ) && *rsize >=50 && +if ((drv_data->quirks &LG_RDESC_REL_ABS ) && *rsize >=51 && rdesc[32 ] ==0x81 && rdesc[33 ] ==0x06 && rdesc[49 ] ==0x81 && rdesc[50 ] ==0x06 ) { hid_info(hdev,
drivers/hid/hid-logitech-dj.c +6 -7
@@ -237,13 +237,6 @@ static void logi_dj_recv_add_djhid_device(struct dj_receiver_dev *djrcv_dev,return ; } -if ((dj_report->device_index <DJ_DEVICE_INDEX_MIN ) || - (dj_report->device_index >DJ_DEVICE_INDEX_MAX )) { -dev_err (&djrcv_hdev->dev,"%s: invalid device index:%d\n" , - __func__, dj_report->device_index); -return ; - } -if (djrcv_dev->paired_dj_devices[dj_report->device_index]) {/* The device is already known. No need to reallocate it. */ dbg_hid ("%s: device is already known\n" , __func__);
@@ -721,6 +714,12 @@ static int logi_dj_raw_event(struct hid_device *hdev,* device (via hid_input_report() ) and return 1 so hid-core does not do * anything else with it. */ +if ((dj_report->device_index <DJ_DEVICE_INDEX_MIN ) || + (dj_report->device_index >DJ_DEVICE_INDEX_MAX )) { +dev_err (&hdev->dev,"%s: invalid device index:%d\n" , + __func__, dj_report->device_index); +return false; + }spin_lock_irqsave (&djrcv_dev->lock, flags);if (dj_report->report_id ==REPORT_ID_DJ_SHORT ) {
drivers/hid/hid-monterey.c +1 -1
@@ -24,7 +24,7 @@static __u8 *mr_report_fixup (struct hid_device *hdev,__u8 *rdesc,unsigned int *rsize) { -if (*rsize >=30 && rdesc[29 ] ==0x05 && rdesc[30 ] ==0x09 ) { +if (*rsize >=31 && rdesc[29 ] ==0x05 && rdesc[30 ] ==0x09 ) {hid_info (hdev,"fixing up button/consumer in HID report descriptor\n" ); rdesc[30 ] =0x0c ; }
drivers/hid/hid-petalynx.c +1 -1
@@ -25,7 +25,7 @@static __u8 *pl_report_fixup (struct hid_device *hdev,__u8 *rdesc,unsigned int *rsize) { -if (*rsize >=60 && rdesc[39 ] ==0x2a && rdesc[40 ] ==0xf5 && +if (*rsize >=62 && rdesc[39 ] ==0x2a && rdesc[40 ] ==0xf5 && rdesc[41 ] ==0x00 && rdesc[59 ] ==0x26 && rdesc[60 ] ==0xf9 && rdesc[61 ] ==0x00 ) {hid_info (hdev,"fixing up Petalynx Maxter Remote report descriptor\n" );
drivers/hid/hid-sunplus.c +1 -1
@@ -24,7 +24,7 @@static __u8 *sp_report_fixup (struct hid_device *hdev,__u8 *rdesc,unsigned int *rsize) { -if (*rsize >=107 && rdesc[104 ] ==0x26 && rdesc[105 ] ==0x80 && +if (*rsize >=112 && rdesc[104 ] ==0x26 && rdesc[105 ] ==0x80 && rdesc[106 ] ==0x03 ) {hid_info (hdev,"fixing up Sunplus Wireless Desktop report descriptor\n" ); rdesc[105 ] = rdesc[110 ] =0x03 ;
drivers/hwmon/ads1015.c +3 -1
@@ -198,7 +198,7 @@ static int ads1015_get_channels_config_of(struct i2c_client *client) } channel =be32_to_cpup (property); -if (channel >ADS1015_CHANNELS ) { +if (channel >=ADS1015_CHANNELS ) {dev_err (&client->dev,"invalid channel index %d on %s\n" , channel, node->full_name);
@@ -212,6 +212,7 @@ static int ads1015_get_channels_config_of(struct i2c_client *client)dev_err (&client->dev,"invalid gain on %s\n" , node->full_name); +return -EINVAL ; } }
@@ -222,6 +223,7 @@ static int ads1015_get_channels_config_of(struct i2c_client *client)dev_err (&client->dev,"invalid data_rate on %s\n" , node->full_name); +return -EINVAL ; } }
drivers/hwmon/amc6821.c +11 -6
@@ -360,11 +360,13 @@ static ssize_t set_pwm1_enable(if (config)return config; +mutex_lock (&data->update_lock); config =i2c_smbus_read_byte_data (client,AMC6821_REG_CONF1 );if (config <0 ) {dev_err (&client->dev,"Error reading configuration register, aborting.\n" ); -return config; + count = config; + goto unlock; }switch (val) {
@@ -381,14 +383,15 @@ static ssize_t set_pwm1_enable( config |=AMC6821_CONF1_FDRC1 ;break ;default : -return -EINVAL ; + count = -EINVAL ; + goto unlock; } -mutex_lock (&data->update_lock);if (i2c_smbus_write_byte_data (client,AMC6821_REG_CONF1 , config)) {dev_err (&client->dev,"Configuration register write error, aborting.\n" ); count = -EIO ; } +unlock:mutex_unlock (&data->update_lock);return count; }
@@ -493,8 +496,9 @@ static ssize_t set_temp_auto_point_temp(return -EINVAL ; } - data->valid =0 ;mutex_lock (&data->update_lock); + data->valid =0 ; +switch (ix) {case 0 : ptemp[0] = clamp_val(val / 1000, 0,
@@ -658,13 +662,14 @@ static ssize_t set_fan1_div(if (config)return config; +mutex_lock (&data->update_lock); config =i2c_smbus_read_byte_data (client,AMC6821_REG_CONF4 );if (config <0 ) {dev_err (&client->dev,"Error reading configuration register, aborting.\n" ); -return config; + count = config; + goto EXIT; } -mutex_lock (&data->update_lock);switch (val) {case 2 : config &= ~AMC6821_CONF4_PSPR ;
drivers/hwmon/dme1737.c +18 -15
@@ -247,8 +247,8 @@ struct dme1737_data {u8 pwm_acz[3 ];u8 pwm_freq[6 ];u8 pwm_rr[2 ]; -u8 zone_low[3 ]; -u8 zone_abs[3 ]; +s8 zone_low[3 ]; +s8 zone_abs[3 ];u8 zone_hyst[2 ];u32 alarms; };
@@ -277,7 +277,7 @@ static inline int IN_FROM_REG(int reg, int nominal, int res)return (reg * nominal + (3 << (res -3 ))) / (3 << (res -2 )); } -static inline int IN_TO_REG (int val,int nominal) +static inline int IN_TO_REG (long val,int nominal) {return clamp_val ((val *192 + nominal /2 ) / nominal,0 ,255 ); }
@@ -293,7 +293,7 @@ static inline int TEMP_FROM_REG(int reg, int res)return (reg *1000 ) >> (res -8 ); } -static inline int TEMP_TO_REG (int val) +static inline int TEMP_TO_REG (long val) {return clamp_val ((val <0 ? val -500 : val +500 ) /1000 ,-128 ,127 ); }
@@ -308,7 +308,7 @@ static inline int TEMP_RANGE_FROM_REG(int reg)return TEMP_RANGE [(reg >>4 ) &0x0f ]; } -static int TEMP_RANGE_TO_REG (int val,int reg) +static int TEMP_RANGE_TO_REG (long val,int reg) {int i;
@@ -331,7 +331,7 @@ static inline int TEMP_HYST_FROM_REG(int reg, int ix)return (((ix ==1 ) ? reg : reg >>4 ) &0x0f ) *1000 ; } -static inline int TEMP_HYST_TO_REG (int val,int ix,int reg) +static inline int TEMP_HYST_TO_REG (long val,int ix,int reg) {int hyst =clamp_val ((val +500 ) /1000 ,0 ,15 );
@@ -347,7 +347,7 @@ static inline int FAN_FROM_REG(int reg, int tpc)return (reg ==0 || reg ==0xffff ) ?0 :90000 *60 / reg; } -static inline int FAN_TO_REG (int val,int tpc) +static inline int FAN_TO_REG (long val,int tpc) {if (tpc) {return clamp_val (val / tpc,0 ,0xffff );
@@ -379,7 +379,7 @@ static inline int FAN_TYPE_FROM_REG(int reg)return (edge >0 ) ?1 << (edge -1 ) :0 ; } -static inline int FAN_TYPE_TO_REG (int val,int reg) +static inline int FAN_TYPE_TO_REG (long val,int reg) {int edge = (val ==4 ) ?3 : val;
@@ -402,7 +402,7 @@ static int FAN_MAX_FROM_REG(int reg)return 1000 + i *500 ; } -static int FAN_MAX_TO_REG (int val) +static int FAN_MAX_TO_REG (long val) {int i;
@@ -460,7 +460,7 @@ static inline int PWM_ACZ_FROM_REG(int reg)return acz[(reg >>5 ) &0x07 ]; } -static inline int PWM_ACZ_TO_REG (int val,int reg) +static inline int PWM_ACZ_TO_REG (long val,int reg) {int acz = (val ==4 ) ?2 : val -1 ;
@@ -476,7 +476,7 @@ static inline int PWM_FREQ_FROM_REG(int reg)return PWM_FREQ [reg &0x0f ]; } -static int PWM_FREQ_TO_REG (int val,int reg) +static int PWM_FREQ_TO_REG (long val,int reg) {int i;
@@ -510,7 +510,7 @@ static inline int PWM_RR_FROM_REG(int reg, int ix)return (rr &0x08 ) ?PWM_RR [rr &0x07 ] :0 ; } -static int PWM_RR_TO_REG (int val,int ix,int reg) +static int PWM_RR_TO_REG (long val,int ix,int reg) {int i;
@@ -528,7 +528,7 @@ static inline int PWM_RR_EN_FROM_REG(int reg, int ix)return PWM_RR_FROM_REG (reg, ix) ?1 :0 ; } -static inline int PWM_RR_EN_TO_REG (int val,int ix,int reg) +static inline int PWM_RR_EN_TO_REG (long val,int ix,int reg) {int en = (ix ==1 ) ?0x80 :0x08 ;
@@ -1481,13 +1481,16 @@ static ssize_t set_vrm(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) {struct dme1737_data *data =dev_get_drvdata (dev); -long val; +unsigned long val;int err; - err =kstrtol (buf,10 , &val); + err =kstrtoul (buf,10 , &val);if (err)return err; +if (val >255 ) +return -EINVAL ; + data->vrm = val;return count; }
drivers/hwmon/gpio-fan.c +1 -1
@@ -173,7 +173,7 @@ static int get_fan_speed_index(struct gpio_fan_data *fan_data)return -ENODEV ; } -static int rpm_to_speed_index (struct gpio_fan_data *fan_data,int rpm) +static int rpm_to_speed_index (struct gpio_fan_data *fan_data,unsigned long rpm) {struct gpio_fan_speed *speed = fan_data->speed;int i;
drivers/hwmon/lm78.c +1 -1
@@ -108,7 +108,7 @@ static inline int FAN_FROM_REG(u8 val, int div)* TEMP: mC (-128C to +127C) * REG: 1C/bit, two's complement */ -static inline s8 TEMP_TO_REG (int val) +static inline s8 TEMP_TO_REG (long val) {int nval =clamp_val (val,-128000 ,127000 ) ;return nval <0 ? (nval -500 ) /1000 : (nval +500 ) /1000 ;
drivers/hwmon/lm85.c +6 -3
@@ -158,7 +158,7 @@ static inline u16 FAN_TO_REG(unsigned long val)/* Temperature is reported in .001 degC increments */ #define TEMP_TO_REG (val) \ - clamp_val(SCALE(val, 1000, 1), -127, 127) + DIV_ROUND_CLOSEST(clamp_val((val), -127000, 127000), 1000)#define TEMPEXT_FROM_REG (val, ext) \ SCALE(((val) << 4) + (ext), 16, 1000)#define TEMP_FROM_REG (val) ((val) * 1000)
@@ -192,7 +192,7 @@ static const int lm85_range_map[] = { 13300, 16000, 20000, 26600, 32000, 40000, 53300, 80000 }; -static int RANGE_TO_REG (int range) +static int RANGE_TO_REG (long range) {int i;
@@ -214,7 +214,7 @@ static const int adm1027_freq_map[8] = { /* 1 Hz */ 11, 15, 22, 29, 35, 44, 59, 88 }; -static int FREQ_TO_REG (const int *map,int freq) +static int FREQ_TO_REG (const int *map,unsigned long freq) {int i;
@@ -463,6 +463,9 @@ static ssize_t store_vrm_reg(struct device *dev, struct device_attribute *attr,if (err)return err; +if (val >255 ) +return -EINVAL ; + data->vrm = val;return count; }
drivers/hwmon/sis5595.c +1 -1
@@ -159,7 +159,7 @@ static inline int TEMP_FROM_REG(s8 val) {return val *830 +52120 ; } -static inline s8 TEMP_TO_REG (int val) +static inline s8 TEMP_TO_REG (long val) {int nval =clamp_val (val,-54120 ,157530 ) ;return nval <0 ? (nval -5212 -415 ) /830 : (nval -5212 +415 ) /830 ;
drivers/i2c/busses/i2c-at91.c +2 -2
@@ -210,7 +210,7 @@ static void at91_twi_write_data_dma_callback(void *data)struct at91_twi_dev *dev = (struct at91_twi_dev *)data;dma_unmap_single (dev->dev,sg_dma_address (&dev->dma.sg), - dev->buf_len,DMA_MEM_TO_DEV ); + dev->buf_len,DMA_TO_DEVICE );at91_twi_write (dev,AT91_TWI_CR ,AT91_TWI_STOP ); }
@@ -289,7 +289,7 @@ static void at91_twi_read_data_dma_callback(void *data)struct at91_twi_dev *dev = (struct at91_twi_dev *)data;dma_unmap_single (dev->dev,sg_dma_address (&dev->dma.sg), - dev->buf_len,DMA_DEV_TO_MEM ); + dev->buf_len,DMA_FROM_DEVICE );/* The last two bytes have to be read without using dma */ dev->buf += dev->buf_len -2 ;
drivers/misc/mei/client.c +2 -0
@@ -459,6 +459,7 @@ int mei_cl_disconnect(struct mei_cl *cl)cl_err (dev, cl,"failed to disconnect.\n" ); goto free; } + cl->timer_count =MEI_CONNECT_TIMEOUT ;mdelay (10 );/* Wait for hardware disconnection ready */ list_add_tail (&cb->list, &dev->ctrl_rd_list.list); }else {
@@ -563,6 +564,7 @@ int mei_cl_connect(struct mei_cl *cl, struct file *file) cl->timer_count =MEI_CONNECT_TIMEOUT ;list_add_tail (&cb->list, &dev->ctrl_rd_list.list); }else { + cl->state =MEI_FILE_INITIALIZING ;list_add_tail (&cb->list, &dev->ctrl_wr_list.list); }
drivers/misc/mei/nfc.c +5 -6
@@ -342,9 +342,10 @@ static int mei_nfc_send(struct mei_cl_device *cldev, u8 *buf, size_t length) ndev = (struct mei_nfc_dev *) cldev->priv_data; dev = ndev->cl->dev; + err = -ENOMEM ; mei_buf =kzalloc (length +MEI_NFC_HEADER_SIZE ,GFP_KERNEL );if (!mei_buf) -return -ENOMEM ; + goto out; hdr = (struct mei_nfc_hci_hdr *) mei_buf; hdr->cmd =MEI_NFC_CMD_HCI_SEND ;
@@ -354,12 +355,9 @@ static int mei_nfc_send(struct mei_cl_device *cldev, u8 *buf, size_t length) hdr->data_size = length;memcpy (mei_buf +MEI_NFC_HEADER_SIZE , buf, length); - err =__mei_cl_send (ndev->cl, mei_buf, length +MEI_NFC_HEADER_SIZE );if (err <0 ) -return err; - -kfree (mei_buf); + goto out;if (!wait_event_interruptible_timeout (ndev->send_wq, ndev->recv_req_id == ndev->req_id,HZ )) {
@@ -368,7 +366,8 @@ static int mei_nfc_send(struct mei_cl_device *cldev, u8 *buf, size_t length) }else { ndev->req_id++; } - +out: +kfree (mei_buf);return err; }
drivers/pci/pci-label.c +12 -6
@@ -168,8 +168,8 @@ enum acpi_attr_enum {static void dsm_label_utf16s_to_utf8s (union acpi_object *obj,char *buf) {int len; - len =utf16s_to_utf8s ((const wchar_t *)obj->string.pointer, - obj->string.length, + len =utf16s_to_utf8s ((const wchar_t *)obj->buffer.pointer, + obj->buffer.length,UTF16_LITTLE_ENDIAN , buf,PAGE_SIZE ); buf[len] ='\n' ;
@@ -194,16 +194,22 @@ dsm_get_label(struct device *dev, char *buf, enum acpi_attr_enum attr) tmp = obj->package.elements;if (obj->type ==ACPI_TYPE_PACKAGE && obj->package.count ==2 && tmp[0 ].type ==ACPI_TYPE_INTEGER && - tmp[1 ].type ==ACPI_TYPE_STRING ) { + (tmp[1 ].type ==ACPI_TYPE_STRING || + tmp[1 ].type ==ACPI_TYPE_BUFFER )) {/* * The second string element is optional even when * this _DSM is implemented; when not implemented, * this entry must return a null string. */ -if (attr ==ACPI_ATTR_INDEX_SHOW ) +if (attr ==ACPI_ATTR_INDEX_SHOW ) {scnprintf (buf,PAGE_SIZE ,"%llu\n" , tmp->integer.value); -else if (attr ==ACPI_ATTR_LABEL_SHOW ) -dsm_label_utf16s_to_utf8s (tmp +1 , buf); + }else if (attr ==ACPI_ATTR_LABEL_SHOW ) { +if (tmp[1 ].type ==ACPI_TYPE_STRING ) +scnprintf (buf,PAGE_SIZE ,"%s\n" , + tmp[1 ].string.pointer); +else if (tmp[1 ].type ==ACPI_TYPE_BUFFER ) +dsm_label_utf16s_to_utf8s (tmp +1 , buf); + } len =strlen (buf) >0 ?strlen (buf) :-1 ; }
drivers/pci/pci.c +6 -6
@@ -830,12 +830,6 @@ int pci_set_power_state(struct pci_dev *dev, pci_power_t state)if (!__pci_complete_power_transition (dev, state)) error =0 ; -/* -* When aspm_policy is "powersave" this call ensures -* that ASPM is configured. -*/ -if (!error && dev->bus->self) -pcie_aspm_powersave_config_link (dev->bus->self);return error; }
@@ -1181,12 +1175,18 @@ EXPORT_SYMBOL_GPL(pci_load_and_free_saved_state);static int do_pci_enable_device (struct pci_dev *dev,int bars) {int err; +struct pci_dev *bridge;u16 cmd;u8 pin; err =pci_set_power_state (dev,PCI_D0 );if (err <0 && err != -EIO )return err; + + bridge =pci_upstream_bridge (dev); +if (bridge) +pcie_aspm_powersave_config_link (bridge); + err =pcibios_enable_device (dev, bars);if (err <0 )return err;
drivers/scsi/hpsa.c +3 -3
@@ -3131,7 +3131,7 @@ static int hpsa_big_passthru_ioctl(struct ctlr_info *h, void __user *argp) }if (ioc->Request.Type.Direction ==XFER_WRITE ) {if (copy_from_user (buff[sg_used], data_ptr, sz)) { - status = -ENOMEM ; + status = -EFAULT ; goto cleanup1; } }else
@@ -4367,9 +4367,9 @@ static inline void hpsa_set_driver_support_bits(struct ctlr_info *h) {u32 driver_support; -#ifdef CONFIG_X86 -/* Need to enable prefetch in the SCSI core for 6400 in x86 */ driver_support =readl (&(h->cfgtable->driver_support)); +/* Need to enable prefetch in the SCSI core for 6400 in x86 */ +#ifdef CONFIG_X86 driver_support |=ENABLE_SCSI_PREFETCH ;#endif driver_support |=ENABLE_UNIT_ATTN ;
drivers/staging/et131x/et131x.c +27 -41
149 lines not on this page · raw message
drivers/staging/rtl8188eu/os_dep/usb_intf.c +2 -0
@@ -53,9 +53,11 @@ static struct usb_device_id rtw_usb_id_tbl[] = { {USB_DEVICE(USB_VENDER_ID_REALTEK, 0x0179)}, /* 8188ETV *//*=== Customer ID ===*/ /****** 8188EUS ********/ + {USB_DEVICE(0x056e, 0x4008)}, /* Elecom WDC-150SU2M */ {USB_DEVICE(0x07b8, 0x8179)}, /* Abocom - Abocom */ {USB_DEVICE(0x2001, 0x330F)}, /* DLink DWA-125 REV D1 */ {USB_DEVICE(0x2001, 0x3310)}, /* Dlink DWA-123 REV D1 */ + {USB_DEVICE(0x0df6, 0x0076)}, /* Sitecom N150 v2 */ {} /* Terminating entry */ };
drivers/tty/serial/serial_core.c +3 -0
@@ -235,6 +235,9 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state)/* * Turn off DTR and RTS early. */ +if (uart_console (uport) && tty) + uport->cons->cflag = tty->termios.c_cflag; +if (!tty || (tty->termios.c_cflag &HUPCL ))uart_clear_mctrl (uport,TIOCM_DTR |TIOCM_RTS );
drivers/usb/core/devio.c +1 -1
@@ -1411,7 +1411,7 @@ static int proc_do_submiturb(struct dev_state *ps, struct usbdevfs_urb *uurb, u = (is_in ?URB_DIR_IN :URB_DIR_OUT );if (uurb->flags &USBDEVFS_URB_ISO_ASAP ) u |=URB_ISO_ASAP ; -if (uurb->flags &USBDEVFS_URB_SHORT_NOT_OK ) +if (uurb->flags &USBDEVFS_URB_SHORT_NOT_OK && is_in) u |=URB_SHORT_NOT_OK ;if (uurb->flags &USBDEVFS_URB_NO_FSBR ) u |=URB_NO_FSBR ;
drivers/usb/core/hub.c +48 -1
68 lines not on this page · raw message
drivers/usb/host/ehci-hub.c +1 -1
@@ -1239,7 +1239,7 @@ static int ehci_hub_control (if (selector ==EHSET_TEST_SINGLE_STEP_SET_FEATURE ) {spin_unlock_irqrestore (&ehci->lock, flags); retval =ehset_single_step_set_feature (hcd, - wIndex); + wIndex +1 );spin_lock_irqsave (&ehci->lock, flags);break ; }
drivers/usb/host/ehci-pci.c +25 -0
@@ -35,6 +35,21 @@ static const char hcd_name[] = "ehci-pci";#define PCI_DEVICE_ID_INTEL_CE4100_USB 0x2e70/*-------------------------------------------------------------------------*/ +#define PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC 0x0939 +static inline bool is_intel_quark_x1000 (struct pci_dev *pdev) +{ +return pdev->vendor ==PCI_VENDOR_ID_INTEL && + pdev->device ==PCI_DEVICE_ID_INTEL_QUARK_X1000_SOC ; +} + +/* +* 0x84 is the offset of in/out threshold register, +* and it is the same offset as the register of 'hostpc'. +*/ +#define intel_quark_x1000_insnreg01 hostpc + +/* Maximum usable threshold value is 0x7f dwords for both IN and OUT */ +#define INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD 0x007f007f/* called after powerup, by probe or system-pm "wakeup" */ static int ehci_pci_reinit (struct ehci_hcd *ehci,struct pci_dev *pdev)
@@ -50,6 +65,16 @@ static int ehci_pci_reinit(struct ehci_hcd *ehci, struct pci_dev *pdev)if (!retval)ehci_dbg (ehci,"MWI active\n" ); +/* Reset the threshold limit */ +if (is_intel_quark_x1000 (pdev)) { +/* +* For the Intel QUARK X1000, raise the I/O threshold to the +* maximum usable value in order to improve performance. +*/ +ehci_writel (ehci,INTEL_QUARK_X1000_EHCI_MAX_THRESHOLD , + ehci->regs->intel_quark_x1000_insnreg01); + } +return 0 ; }
drivers/usb/host/ohci-dbg.c +5 -4
@@ -236,7 +236,7 @@ ohci_dump_roothub ( } } -static void ohci_dump (struct ohci_hcd *controller,int verbose) +static void ohci_dump (struct ohci_hcd *controller) {ohci_dbg (controller,"OHCI controller state\n" );
@@ -464,15 +464,16 @@ show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)static ssize_t fill_async_buffer (struct debug_buffer *buf) {struct ohci_hcd *ohci; -size_t temp; +size_t temp, size;unsigned long flags; ohci = buf->ohci; + size =PAGE_SIZE ;/* display control and bulk lists together, for simplicity */ spin_lock_irqsave (&ohci->lock, flags); - temp =show_list (ohci, buf->page, buf->count, ohci->ed_controltail); - temp +=show_list (ohci, buf->page + temp, buf->count - temp, + temp =show_list (ohci, buf->page, size, ohci->ed_controltail); + temp +=show_list (ohci, buf->page + temp, size - temp, ohci->ed_bulktail);spin_unlock_irqrestore (&ohci->lock, flags);
drivers/usb/host/ohci-hcd.c +5 -5
@@ -76,8 +76,8 @@ static const char hcd_name [] = "ohci_hcd";#include "ohci.h" #include "pci-quirks.h" -static void ohci_dump (struct ohci_hcd *ohci,int verbose); -static void ohci_stop (struct usb_hcd *hcd); +static void ohci_dump (struct ohci_hcd *ohci); +static void ohci_stop (struct usb_hcd *hcd);#include "ohci-hub.c" #include "ohci-dbg.c"
@@ -744,7 +744,7 @@ retry: ohci->ed_to_check =NULL ; } -ohci_dump (ohci,1 ); +ohci_dump (ohci);return 0 ; }
@@ -825,7 +825,7 @@ static irqreturn_t ohci_irq (struct usb_hcd *hcd)usb_hc_died (hcd); } -ohci_dump (ohci,1 ); +ohci_dump (ohci);ohci_usb_reset (ohci); }
@@ -925,7 +925,7 @@ static void ohci_stop (struct usb_hcd *hcd) {struct ohci_hcd *ohci =hcd_to_ohci (hcd); -ohci_dump (ohci,1 ); +ohci_dump (ohci);if (quirk_nec (ohci))flush_work (&ohci->nec_work);
drivers/usb/host/ohci-q.c +29 -17
74 lines not on this page · raw message
drivers/usb/host/xhci-pci.c +4 -0
@@ -101,6 +101,10 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci)/* AMD PLL quirk */ if (pdev->vendor ==PCI_VENDOR_ID_AMD &&usb_amd_find_chipset_info ()) xhci->quirks |=XHCI_AMD_PLL_FIX ; + +if (pdev->vendor ==PCI_VENDOR_ID_AMD ) + xhci->quirks |=XHCI_TRUST_TX_LENGTH ; +if (pdev->vendor ==PCI_VENDOR_ID_INTEL ) { xhci->quirks |=XHCI_LPM_SUPPORT ; xhci->quirks |=XHCI_INTEL_HOST ;
drivers/usb/host/xhci-ring.c +2 -1
@@ -2612,7 +2612,8 @@ static int handle_tx_event(struct xhci_hcd *xhci,* last TRB of the previous TD. The command completion handle * will take care the rest. */ -if (!event_seg && trb_comp_code ==COMP_STOP_INVAL ) { +if (!event_seg && (trb_comp_code ==COMP_STOP || + trb_comp_code ==COMP_STOP_INVAL )) { ret =0 ; goto cleanup; }
drivers/usb/serial/ftdi_sio.c +5 -0
@@ -151,6 +151,7 @@ static const struct usb_device_id id_table_combined[] = { { USB_DEVICE(FTDI_VID, FTDI_AMC232_PID) }, { USB_DEVICE(FTDI_VID, FTDI_CANUSB_PID) }, { USB_DEVICE(FTDI_VID, FTDI_CANDAPTER_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_BM_ATOM_NANO_PID) }, { USB_DEVICE(FTDI_VID, FTDI_NXTCAM_PID) }, { USB_DEVICE(FTDI_VID, FTDI_EV3CON_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SCS_DEVICE_0_PID) },
@@ -673,6 +674,8 @@ static const struct usb_device_id id_table_combined[] = { { USB_DEVICE(FTDI_VID, XSENS_CONVERTER_5_PID) }, { USB_DEVICE(FTDI_VID, XSENS_CONVERTER_6_PID) }, { USB_DEVICE(FTDI_VID, XSENS_CONVERTER_7_PID) }, + { USB_DEVICE(XSENS_VID, XSENS_CONVERTER_PID) }, + { USB_DEVICE(XSENS_VID, XSENS_MTW_PID) }, { USB_DEVICE(FTDI_VID, FTDI_OMNI1509) }, { USB_DEVICE(MOBILITY_VID, MOBILITY_USB_SERIAL_PID) }, { USB_DEVICE(FTDI_VID, FTDI_ACTIVE_ROBOTS_PID) },
@@ -945,6 +948,8 @@ static const struct usb_device_id id_table_combined[] = { { USB_DEVICE(BRAINBOXES_VID, BRAINBOXES_US_842_2_PID) }, { USB_DEVICE(BRAINBOXES_VID, BRAINBOXES_US_842_3_PID) }, { USB_DEVICE(BRAINBOXES_VID, BRAINBOXES_US_842_4_PID) }, +/* ekey Devices */ + { USB_DEVICE(FTDI_VID, FTDI_EKEY_CONV_USB_PID) },/* Infineon Devices */ { USB_DEVICE_INTERFACE_NUMBER(INFINEON_VID, INFINEON_TRIBOARD_PID, 1) }, { } /* Terminating entry */
drivers/usb/serial/ftdi_sio_ids.h +15 -5
@@ -42,6 +42,8 @@/* www.candapter.com Ewert Energy Systems CANdapter device */ #define FTDI_CANDAPTER_PID 0x9F80/* Product Id */ +#define FTDI_BM_ATOM_NANO_PID 0xa559/* Basic Micro ATOM Nano USB2Serial */ +/* * Texas Instruments XDS100v2 JTAG / BeagleBone A3 * http://processors.wiki.ti.com/index.php/XDS100
@@ -140,12 +142,15 @@/* * Xsens Technologies BV products (http://www.xsens.com). */ -#define XSENS_CONVERTER_0_PID 0xD388 -#define XSENS_CONVERTER_1_PID 0xD389 +#define XSENS_VID 0x2639 +#define XSENS_CONVERTER_PID 0xD00D/* Xsens USB-serial converter */ +#define XSENS_MTW_PID 0x0200/* Xsens MTw */ +#define XSENS_CONVERTER_0_PID 0xD388/* Xsens USB converter */ +#define XSENS_CONVERTER_1_PID 0xD389/* Xsens Wireless Receiver */ #define XSENS_CONVERTER_2_PID 0xD38A -#define XSENS_CONVERTER_3_PID 0xD38B -#define XSENS_CONVERTER_4_PID 0xD38C -#define XSENS_CONVERTER_5_PID 0xD38D +#define XSENS_CONVERTER_3_PID 0xD38B/* Xsens USB-serial converter */ +#define XSENS_CONVERTER_4_PID 0xD38C/* Xsens Wireless Receiver */ +#define XSENS_CONVERTER_5_PID 0xD38D/* Xsens Awinda Station */ #define XSENS_CONVERTER_6_PID 0xD38E#define XSENS_CONVERTER_7_PID 0xD38F
@@ -1375,3 +1380,8 @@#define BRAINBOXES_US_160_6_PID 0x9006/* US-160 16xRS232 1Mbaud Port 11 and 12 */ #define BRAINBOXES_US_160_7_PID 0x9007/* US-160 16xRS232 1Mbaud Port 13 and 14 */ #define BRAINBOXES_US_160_8_PID 0x9008/* US-160 16xRS232 1Mbaud Port 15 and 16 */ + +/* +* ekey biometric systems GmbH (http://ekey.net/) +*/ +#define FTDI_EKEY_CONV_USB_PID 0xCB08/* Converter USB */
drivers/usb/serial/whiteheat.c +6 -1
@@ -514,6 +514,10 @@ static void command_port_read_callback(struct urb *urb)dev_dbg (&urb->dev->dev,"%s - command_info is NULL, exiting.\n" , __func__);return ; } +if (!urb->actual_length) { +dev_dbg (&urb->dev->dev,"%s - empty response, exiting.\n" , __func__); +return ; + }if (status) {dev_dbg (&urb->dev->dev,"%s - nonzero urb status: %d\n" , __func__, status);if (status != -ENOENT )
@@ -534,7 +538,8 @@ static void command_port_read_callback(struct urb *urb)/* These are unsolicited reports from the firmware, hence no waiting command to wakeup */ dev_dbg (&urb->dev->dev,"%s - event received\n" , __func__); - }else if (data[0 ] ==WHITEHEAT_GET_DTR_RTS ) { + }else if ((data[0 ] ==WHITEHEAT_GET_DTR_RTS ) && + (urb->actual_length -1 <=sizeof (command_info->result_buffer))) {memcpy (command_info->result_buffer, &data[1 ], urb->actual_length -1 ); command_info->command_finished =WHITEHEAT_CMD_COMPLETE ;
drivers/xen/events/events_fifo.c +2 -3
@@ -67,10 +67,9 @@ static event_word_t *event_array[MAX_EVENT_ARRAY_PAGES] __read_mostly;static unsigned event_array_pages__read_mostly ;/* -* sync_set_bit() and friends must be unsigned long aligned on non-x86 -* platforms. +* sync_set_bit() and friends must be unsigned long aligned. */ -#if !defined(CONFIG_X86 ) &&BITS_PER_LONG >32 +#if BITS_PER_LONG >32 #define BM (w) (unsigned long *)((unsigned long)w & ~0x7UL)#define EVTCHN_FIFO_BIT (b, w) \
fs/btrfs/backref.c +8 -6
@@ -275,9 +275,8 @@ static int add_all_parents(struct btrfs_root *root, struct btrfs_path *path, }if (ret >0 ) goto next; - ret =ulist_add_merge (parents, eb->start, - (uintptr_t )eie, - (u64 *)&old,GFP_NOFS ); + ret =ulist_add_merge_ptr (parents, eb->start, + eie, (void **)&old,GFP_NOFS );if (ret <0 )break ;if (!ret && extent_item_pos) {
@@ -985,16 +984,19 @@ again: ret = -EIO ; goto out; } +btrfs_tree_read_lock (eb); +btrfs_set_lock_blocking_rw (eb,BTRFS_READ_LOCK ); ret =find_extent_in_eb (eb, bytenr, *extent_item_pos, &eie); +btrfs_tree_read_unlock_blocking (eb);free_extent_buffer (eb);if (ret <0 ) goto out; ref->inode_list = eie; } - ret =ulist_add_merge (refs, ref->parent, - (uintptr_t )ref->inode_list, - (u64 *)&eie,GFP_NOFS ); + ret =ulist_add_merge_ptr (refs, ref->parent, + ref->inode_list, + (void **)&eie,GFP_NOFS );if (ret <0 ) goto out;if (!ret && extent_item_pos) {
fs/btrfs/extent_io.c +1 -0
@@ -2525,6 +2525,7 @@ static void end_bio_extent_readpage(struct bio *bio, int err)test_bit (BIO_UPTODATE , &bio->bi_flags);if (err) uptodate =0 ; + offset += len;continue ; } }
fs/btrfs/file-item.c +1 -1
@@ -756,7 +756,7 @@ again: found_next =1 ;if (ret !=0 ) goto insert; - slot =0 ; + slot = path->slots[0 ]; }btrfs_item_key_to_cpu (path->nodes[0 ], &found_key, slot); if (found_key.objectid != BTRFS_EXTENT_CSUM_OBJECTID ||
fs/btrfs/inode.c +12 -0
@@ -701,6 +701,18 @@ retry:unlock_extent (io_tree, async_extent->start, async_extent->start + async_extent->ram_size -1 ); + +/* +* we need to redirty the pages if we decide to +* fallback to uncompressed IO, otherwise we +* will not submit these pages down to lower +* layers. +*/ +extent_range_redirty_for_io (inode, + async_extent->start, + async_extent->start + + async_extent->ram_size -1 ); + goto retry; } goto out_free;
fs/btrfs/ulist.h +15 -0
@@ -57,6 +57,21 @@ void ulist_free(struct ulist *ulist);int ulist_add (struct ulist *ulist,u64 val,u64 aux,gfp_t gfp_mask);int ulist_add_merge (struct ulist *ulist,u64 val,u64 aux,u64 *old_aux,gfp_t gfp_mask); + +/* just like ulist_add_merge() but take a pointer for the aux data */ +static inline int ulist_add_merge_ptr (struct ulist *ulist,u64 val,void *aux, +void **old_aux,gfp_t gfp_mask) +{ +#if BITS_PER_LONG ==32 +u64 old64 = (uintptr_t )*old_aux; +int ret =ulist_add_merge (ulist, val, (uintptr_t )aux, &old64, gfp_mask); + *old_aux = (void *)((uintptr_t )old64); +return ret; +#else +return ulist_add_merge (ulist, val, (u64 )aux, (u64 *)old_aux, gfp_mask); +#endif +} +struct ulist_node *ulist_next (struct ulist *ulist,struct ulist_iterator *uiter);
fs/debugfs/inode.c +26 -7
@@ -533,7 +533,7 @@ EXPORT_SYMBOL_GPL(debugfs_remove);*/ void debugfs_remove_recursive (struct dentry *dentry) { -struct dentry *child, *next, *parent; +struct dentry *child, *parent;if (IS_ERR_OR_NULL (dentry))return ;
@@ -545,30 +545,49 @@ void debugfs_remove_recursive(struct dentry *dentry) parent = dentry; down:mutex_lock (&parent->d_inode->i_mutex); -list_for_each_entry_safe (child, next, &parent->d_subdirs, d_u.d_child) { + loop: +/* +* The parent->d_subdirs is protected by the d_lock. Outside that +* lock, the child can be unlinked and set to be freed which can +* use the d_u.d_child as the rcu head and corrupt this list. +*/ +spin_lock (&parent->d_lock); +list_for_each_entry (child, &parent->d_subdirs, d_u.d_child) {if (!debugfs_positive (child))continue ;/* perhaps simple_empty(child) makes more sense */ if (!list_empty (&child->d_subdirs)) { +spin_unlock (&parent->d_lock);mutex_unlock (&parent->d_inode->i_mutex); parent = child; goto down; } - up: + +spin_unlock (&parent->d_lock); +if (!__debugfs_remove (child, parent))simple_release_fs (&debugfs_mount, &debugfs_mount_count); + +/* +* The parent->d_lock protects agaist child from unlinking +* from d_subdirs. When releasing the parent->d_lock we can +* no longer trust that the next pointer is valid. +* Restart the loop. We'll skip this one with the +* debugfs_positive() check. +*/ + goto loop; } +spin_unlock (&parent->d_lock);mutex_unlock (&parent->d_inode->i_mutex); child = parent; parent = parent->d_parent;mutex_lock (&parent->d_inode->i_mutex); -if (child != dentry) { - next =list_next_entry (child, d_u.d_child); - goto up; - } +if (child != dentry) +/* go up */ + goto loop;if (!__debugfs_remove (child, parent))simple_release_fs (&debugfs_mount, &debugfs_mount_count);
fs/ext4/inode.c +8 -2
@@ -2195,6 +2195,7 @@ static int mpage_map_and_submit_extent(handle_t *handle,struct ext4_map_blocks *map = &mpd->map;int err;loff_t disksize; +int progress =0 ; mpd->io_submit.io_end->offset = ((loff_t )map->m_lblk) << inode->i_blkbits;
@@ -2211,8 +2212,11 @@ static int mpage_map_and_submit_extent(handle_t *handle,* is non-zero, a commit should free up blocks. */ if ((err == -ENOMEM ) || - (err == -ENOSPC &&ext4_count_free_clusters (sb))) + (err == -ENOSPC &&ext4_count_free_clusters (sb))) { +if (progress) + goto update_disksize;return err; + }ext4_msg (sb,KERN_CRIT ,"Delayed block allocation failed for " "inode %lu at logical offset %llu with"
@@ -2229,15 +2233,17 @@ static int mpage_map_and_submit_extent(handle_t *handle, *give_up_on_write = true;return err; } + progress =1 ;/* * Update buffer state, submit mapped pages, and get us new * extent to map */ err =mpage_map_and_submit_buffers (mpd);if (err <0 ) -return err; + goto update_disksize; }while (map->m_len); +update_disksize:/* * Update on-disk size after IO is submitted. Races with * truncate are avoided by checking i_size under i_data_sem.
fs/ext4/mballoc.c +25 -1
@@ -1398,6 +1398,8 @@ static void mb_free_blocks(struct inode *inode, struct ext4_buddy *e4b,int last = first + count -1 ;struct super_block *sb = e4b->bd_sb; +if (WARN_ON (count ==0 )) +return ;BUG_ON (last >= (sb->s_blocksize <<3 ));assert_spin_locked (ext4_group_lock_ptr (sb, e4b->bd_group));/* Don't bother if the block group is corrupt. */
@@ -3196,8 +3198,30 @@ static void ext4_mb_collect_stats(struct ext4_allocation_context *ac)static void ext4_discard_allocated_blocks (struct ext4_allocation_context *ac) {struct ext4_prealloc_space *pa = ac->ac_pa; +struct ext4_buddy e4b; +int err; -if (pa && pa->pa_type ==MB_INODE_PA ) +if (pa ==NULL ) { +if (ac->ac_f_ex.fe_len ==0 ) +return ; + err =ext4_mb_load_buddy (ac->ac_sb, ac->ac_f_ex.fe_group, &e4b); +if (err) { +/* +* This should never happen since we pin the +* pages in the ext4_allocation_context so +* ext4_mb_load_buddy() should never fail. +*/ +WARN (1 ,"mb_load_buddy failed (%d)" , err); +return ; + } +ext4_lock_group (ac->ac_sb, ac->ac_f_ex.fe_group); +mb_free_blocks (ac->ac_inode, &e4b, ac->ac_f_ex.fe_start, + ac->ac_f_ex.fe_len); +ext4_unlock_group (ac->ac_sb, ac->ac_f_ex.fe_group); +ext4_mb_unload_buddy (&e4b); +return ; + } +if (pa->pa_type ==MB_INODE_PA ) pa->pa_free += ac->ac_b_ex.fe_len; }
fs/ext4/super.c +3 -2
@@ -3169,9 +3169,9 @@ static int set_journal_csum_feature_set(struct super_block *sb)if (EXT4_HAS_RO_COMPAT_FEATURE (sb,EXT4_FEATURE_RO_COMPAT_METADATA_CSUM )) { -/* journal checksum v2 */ +/* journal checksum v3 */ compat =0 ; - incompat =JBD2_FEATURE_INCOMPAT_CSUM_V2 ; + incompat =JBD2_FEATURE_INCOMPAT_CSUM_V3 ; }else {/* journal checksum v1 */ compat =JBD2_FEATURE_COMPAT_CHECKSUM ;
@@ -3193,6 +3193,7 @@ static int set_journal_csum_feature_set(struct super_block *sb)jbd2_journal_clear_features (sbi->s_journal,JBD2_FEATURE_COMPAT_CHECKSUM ,0 ,JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT | +JBD2_FEATURE_INCOMPAT_CSUM_V3 |JBD2_FEATURE_INCOMPAT_CSUM_V2 ); }
fs/isofs/inode.c +8 -7
@@ -61,7 +61,7 @@ static void isofs_put_super(struct super_block *sb)return ; } -static int isofs_read_inode (struct inode *); +static int isofs_read_inode (struct inode *,int relocated);static int isofs_statfs (struct dentry *,struct kstatfs *);static struct kmem_cache *isofs_inode_cachep;
@@ -1258,7 +1258,7 @@ out_toomany: goto out; } -static int isofs_read_inode (struct inode *inode) +static int isofs_read_inode (struct inode *inode,int relocated) {struct super_block *sb = inode->i_sb;struct isofs_sb_info *sbi =ISOFS_SB (sb);
@@ -1403,7 +1403,7 @@ static int isofs_read_inode(struct inode *inode)*/ if (!high_sierra) { -parse_rock_ridge_inode (de, inode); +parse_rock_ridge_inode (de, inode, relocated);/* if we want uid/gid set, override the rock ridge setting */ if (sbi->s_uid_set) inode->i_uid = sbi->s_uid;
@@ -1482,9 +1482,10 @@ static int isofs_iget5_set(struct inode *ino, void *data)* offset that point to the underlying meta-data for the inode. The * code below is otherwise similar to the iget() code in * include/linux/fs.h */ -struct inode *isofs_iget (struct super_block *sb, -unsigned long block, -unsigned long offset) +struct inode *__isofs_iget (struct super_block *sb, +unsigned long block, +unsigned long offset, +int relocated) {unsigned long hashval;struct inode *inode;
@@ -1506,7 +1507,7 @@ struct inode *isofs_iget(struct super_block *sb,return ERR_PTR (-ENOMEM );if (inode->i_state &I_NEW ) { - ret =isofs_read_inode (inode); + ret =isofs_read_inode (inode, relocated);if (ret <0 ) {iget_failed (inode); inode =ERR_PTR (ret);
fs/isofs/isofs.h +19 -4
@@ -107,7 +107,7 @@ extern int iso_date(char *, int);struct inode ;/* To make gcc happy */ -extern int parse_rock_ridge_inode (struct iso_directory_record *,struct inode *); +extern int parse_rock_ridge_inode (struct iso_directory_record *,struct inode *,int relocated);extern int get_rock_ridge_filename (struct iso_directory_record *,char *,struct inode *);extern int isofs_name_translate (struct iso_directory_record *,char *,struct inode *);
@@ -118,9 +118,24 @@ extern struct dentry *isofs_lookup(struct inode *, struct dentry *, unsigned intextern struct buffer_head *isofs_bread (struct inode *,sector_t );extern int isofs_get_blocks (struct inode *,sector_t ,struct buffer_head **,unsigned long ); -extern struct inode *isofs_iget (struct super_block *sb, -unsigned long block, -unsigned long offset); +struct inode *__isofs_iget (struct super_block *sb, +unsigned long block, +unsigned long offset, +int relocated); + +static inline struct inode *isofs_iget (struct super_block *sb, +unsigned long block, +unsigned long offset) +{ +return __isofs_iget (sb, block, offset,0 ); +} + +static inline struct inode *isofs_iget_reloc (struct super_block *sb, +unsigned long block, +unsigned long offset) +{ +return __isofs_iget (sb, block, offset,1 ); +}/* Because the inode number is no longer relevant to finding the * underlying meta-data for an inode, we are free to choose a more
fs/isofs/rock.c +28 -11
@@ -288,12 +288,16 @@ eio: goto out; } +#define RR_REGARD_XA 1 +#define RR_RELOC_DE 2 +static int parse_rock_ridge_inode_internal (struct iso_directory_record *de, -struct inode *inode,int regard_xa) +struct inode *inode,int flags) {int symlink_len =0 ;int cnt, sig; +unsigned int reloc_block;struct inode *reloc;struct rock_ridge *rr;int rootflag;
@@ -305,7 +309,7 @@ parse_rock_ridge_inode_internal(struct iso_directory_record *de,init_rock_state (&rs, inode);setup_rock_ridge (de, inode, &rs); -if (regard_xa) { +if (flags &RR_REGARD_XA ) { rs.chr +=14 ; rs.len -=14 ;if (rs.len <0 )
@@ -485,12 +489,22 @@ repeat: "relocated directory\n"); goto out;case SIG ('C' ,'L' ): -ISOFS_I (inode)->i_first_extent = -isonum_733 (rr->u.CL.location); - reloc = -isofs_iget (inode->i_sb, -ISOFS_I (inode)->i_first_extent, -0 ); +if (flags &RR_RELOC_DE ) { +printk (KERN_ERR +"ISOFS: Recursive directory relocation " +"is not supported\n" ); + goto eio; + } + reloc_block =isonum_733 (rr->u.CL.location); +if (reloc_block ==ISOFS_I (inode)->i_iget5_block && +ISOFS_I (inode)->i_iget5_offset ==0 ) { +printk (KERN_ERR +"ISOFS: Directory relocation points to " +"itself\n" ); + goto eio; + } +ISOFS_I (inode)->i_first_extent = reloc_block; + reloc =isofs_iget_reloc (inode->i_sb, reloc_block,0 );if (IS_ERR (reloc)) { ret =PTR_ERR (reloc); goto out;
@@ -637,9 +651,11 @@ static char *get_symlink_chunk(char *rpnt, struct rock_ridge *rr, char *plimit)return rpnt; } -int parse_rock_ridge_inode (struct iso_directory_record *de,struct inode *inode) +int parse_rock_ridge_inode (struct iso_directory_record *de,struct inode *inode, +int relocated) { -int result =parse_rock_ridge_inode_internal (de, inode,0 ); +int flags = relocated ?RR_RELOC_DE :0 ; +int result =parse_rock_ridge_inode_internal (de, inode, flags);/* * if rockridge flag was reset and we didn't look for attributes
@@ -647,7 +663,8 @@ int parse_rock_ridge_inode(struct iso_directory_record *de, struct inode *inode)*/ if ((ISOFS_SB (inode->i_sb)->s_rock_offset ==-1 ) && (ISOFS_SB (inode->i_sb)->s_rock ==2 )) { - result =parse_rock_ridge_inode_internal (de, inode,14 ); + result =parse_rock_ridge_inode_internal (de, inode, + flags |RR_REGARD_XA ); }return result; }
fs/jbd2/commit.c +12 -9
@@ -97,7 +97,7 @@ static void jbd2_commit_block_csum_set(journal_t *j, struct buffer_head *bh)struct commit_header *h;__u32 csum; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return ; h = (struct commit_header *)(bh->b_data);
@@ -313,11 +313,11 @@ static __u32 jbd2_checksum_data(__u32 crc32_sum, struct buffer_head *bh)return checksum; } -static void write_tag_block (int tag_bytes,journal_block_tag_t *tag, +static void write_tag_block (journal_t *j,journal_block_tag_t *tag,unsigned long long block) { tag->t_blocknr =cpu_to_be32 (block & (u32 )~0 ); -if (tag_bytes >JBD2_TAG_SIZE32 ) +if (JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_64BIT )) tag->t_blocknr_high =cpu_to_be32 ((block >>31 ) >>1 ); }
@@ -327,7 +327,7 @@ static void jbd2_descr_block_csum_set(journal_t *j,struct jbd2_journal_block_tail *tail;__u32 csum; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return ; tail = (struct jbd2_journal_block_tail *)(bh->b_data + j->j_blocksize -
@@ -340,12 +340,13 @@ static void jbd2_descr_block_csum_set(journal_t *j,static void jbd2_block_tag_csum_set (journal_t *j,journal_block_tag_t *tag,struct buffer_head *bh,__u32 sequence) { +journal_block_tag3_t *tag3 = (journal_block_tag3_t *)tag;struct page *page = bh->b_page;__u8 *addr;__u32 csum32;__be32 seq; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return ; seq =cpu_to_be32 (sequence);
@@ -355,8 +356,10 @@ static void jbd2_block_tag_csum_set(journal_t *j, journal_block_tag_t *tag, bh->b_size);kunmap_atomic (addr); -/* We only have space to store the lower 16 bits of the crc32c. */ - tag->t_checksum =cpu_to_be16 (csum32); +if (JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V3 )) + tag3->t_checksum =cpu_to_be32 (csum32); +else + tag->t_checksum =cpu_to_be16 (csum32); }/* * jbd2_journal_commit_transaction
@@ -396,7 +399,7 @@ void jbd2_journal_commit_transaction(journal_t *journal)LIST_HEAD (io_bufs);LIST_HEAD (log_bufs); -if (JBD2_HAS_INCOMPAT_FEATURE (journal,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (jbd2_journal_has_csum_v2or3 (journal)) csum_size =sizeof (struct jbd2_journal_block_tail );/*
@@ -692,7 +695,7 @@ void jbd2_journal_commit_transaction(journal_t *journal) tag_flag |=JBD2_FLAG_SAME_UUID ; tag = (journal_block_tag_t *) tagp; -write_tag_block (tag_bytes, tag,jh2bh (jh)->b_blocknr); +write_tag_block (journal, tag,jh2bh (jh)->b_blocknr); tag->t_flags =cpu_to_be16 (tag_flag);jbd2_block_tag_csum_set (journal, tag, wbuf[bufs], commit_transaction->t_tid);
fs/jbd2/journal.c +37 -19
133 lines not on this page · raw message
fs/jbd2/recovery.c +20 -13
@@ -181,7 +181,7 @@ static int jbd2_descr_block_csum_verify(journal_t *j,__be32 provided;__u32 calculated; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return 1 ; tail = (struct jbd2_journal_block_tail *)(buf + j->j_blocksize -
@@ -205,7 +205,7 @@ static int count_tags(journal_t *journal, struct buffer_head *bh)int nr =0 , size = journal->j_blocksize;int tag_bytes =journal_tag_bytes (journal); -if (JBD2_HAS_INCOMPAT_FEATURE (journal,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (jbd2_journal_has_csum_v2or3 (journal)) size -=sizeof (struct jbd2_journal_block_tail ); tagp = &bh->b_data[sizeof (journal_header_t)];
@@ -338,10 +338,11 @@ int jbd2_journal_skip_recovery(journal_t *journal)return err; } -static inline unsigned long long read_tag_block (int tag_bytes,journal_block_tag_t *tag) +static inline unsigned long long read_tag_block (journal_t *journal, +journal_block_tag_t *tag) {unsigned long long block =be32_to_cpu (tag->t_blocknr); -if (tag_bytes >JBD2_TAG_SIZE32 ) +if (JBD2_HAS_INCOMPAT_FEATURE (journal,JBD2_FEATURE_INCOMPAT_64BIT )) block |= (u64 )be32_to_cpu (tag->t_blocknr_high) <<32 ;return block; }
@@ -384,7 +385,7 @@ static int jbd2_commit_block_csum_verify(journal_t *j, void *buf)__be32 provided;__u32 calculated; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return 1 ; h = buf;
@@ -399,17 +400,21 @@ static int jbd2_commit_block_csum_verify(journal_t *j, void *buf)static int jbd2_block_tag_csum_verify (journal_t *j,journal_block_tag_t *tag,void *buf,__u32 sequence) { +journal_block_tag3_t *tag3 = (journal_block_tag3_t *)tag;__u32 csum32;__be32 seq; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return 1 ; seq =cpu_to_be32 (sequence); csum32 =jbd2_chksum (j, j->j_csum_seed, (__u8 *)&seq,sizeof (seq)); csum32 =jbd2_chksum (j, csum32, buf, j->j_blocksize); -return tag->t_checksum ==cpu_to_be16 (csum32); +if (JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V3 )) +return tag3->t_checksum ==cpu_to_be32 (csum32); +else +return tag->t_checksum ==cpu_to_be16 (csum32); } static int do_one_pass(journal_t *journal,
@@ -426,6 +431,7 @@ static int do_one_pass(journal_t *journal,int tag_bytes =journal_tag_bytes (journal);__u32 crc32_sum = ~0 ;/* Transactional Checksums */ int descr_csum_size =0 ; +int block_error =0 ;/* * First thing is to establish what we expect to find in the log
@@ -512,8 +518,7 @@ static int do_one_pass(journal_t *journal,switch (blocktype) {case JBD2_DESCRIPTOR_BLOCK :/* Verify checksum first */ -if (JBD2_HAS_INCOMPAT_FEATURE (journal, -JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (jbd2_journal_has_csum_v2or3 (journal)) descr_csum_size =sizeof (struct jbd2_journal_block_tail ); if (descr_csum_size > 0 &&
@@ -574,7 +579,7 @@ static int do_one_pass(journal_t *journal,unsigned long long blocknr;J_ASSERT (obh !=NULL ); - blocknr =read_tag_block (tag_bytes, + blocknr =read_tag_block (journal, tag);/* If the block has been
@@ -598,7 +603,8 @@ static int do_one_pass(journal_t *journal,"checksum recovering " "block %llu in log\n" , blocknr); -continue ; + block_error =1 ; + goto skip_write; }/* Find a buffer for the new
@@ -797,7 +803,8 @@ static int do_one_pass(journal_t *journal, success = -EIO ; } } - +if (block_error && success ==0 ) + success = -EIO ;return success; failed:
@@ -811,7 +818,7 @@ static int jbd2_revoke_block_csum_verify(journal_t *j,__be32 provided;__u32 calculated; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return 1 ; tail = (struct jbd2_journal_revoke_tail *)(buf + j->j_blocksize -
fs/jbd2/revoke.c +3 -3
@@ -91,8 +91,8 @@#include <linux/list.h> #include <linux/init.h> #include <linux/bio.h> -#endif #include <linux/log2.h> +#endif static struct kmem_cache *jbd2_revoke_record_cache;static struct kmem_cache *jbd2_revoke_table_cache;
@@ -597,7 +597,7 @@ static void write_one_revoke_record(journal_t *journal, offset = *offsetp;/* Do we need to leave space at the end for a checksum? */ -if (JBD2_HAS_INCOMPAT_FEATURE (journal,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (jbd2_journal_has_csum_v2or3 (journal)) csum_size =sizeof (struct jbd2_journal_revoke_tail );/* Make sure we have a descriptor with space left for the record */
@@ -644,7 +644,7 @@ static void jbd2_revoke_csum_set(journal_t *j, struct buffer_head *bh)struct jbd2_journal_revoke_tail *tail;__u32 csum; -if (!JBD2_HAS_INCOMPAT_FEATURE (j,JBD2_FEATURE_INCOMPAT_CSUM_V2 )) +if (!jbd2_journal_has_csum_v2or3 (j))return ; tail = (struct jbd2_journal_revoke_tail *)(bh->b_data + j->j_blocksize -
fs/nfs/nfs3acl.c +5 -2
@@ -129,7 +129,10 @@ static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, .rpc_argp = &args, .rpc_resp = &fattr, }; -int status; +int status =0 ; + +if (acl ==NULL && (!S_ISDIR (inode->i_mode) || dfacl ==NULL )) + goto out; status = -EOPNOTSUPP ;if (!nfs_server_capable (inode,NFS_CAP_ACLS ))
@@ -256,7 +259,7 @@ nfs3_list_one_acl(struct inode *inode, int type, const char *name, void *data,char *p = data + *result; acl =get_acl (inode, type); -if (!acl) +if (IS_ERR_OR_NULL (acl))return 0 ;posix_acl_release (acl);
fs/nfs/nfs4proc.c +12 -5
@@ -2546,6 +2546,7 @@ static void nfs4_close_prepare(struct rpc_task *task, void *data)struct nfs4_closedata *calldata = data;struct nfs4_state *state = calldata->state;struct inode *inode = calldata->inode; +bool is_rdonly, is_wronly, is_rdwr;int call_close =0 ;dprintk ("%s: begin!\n" , __func__);
@@ -2553,18 +2554,24 @@ static void nfs4_close_prepare(struct rpc_task *task, void *data) goto out_wait; task->tk_msg.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_OPEN_DOWNGRADE ]; - calldata->arg.fmode =FMODE_READ |FMODE_WRITE ;spin_lock (&state->owner->so_lock); + is_rdwr =test_bit (NFS_O_RDWR_STATE , &state->flags); + is_rdonly =test_bit (NFS_O_RDONLY_STATE , &state->flags); + is_wronly =test_bit (NFS_O_WRONLY_STATE , &state->flags); +/* Calculate the current open share mode */ + calldata->arg.fmode =0 ; +if (is_rdonly || is_rdwr) + calldata->arg.fmode |=FMODE_READ ; +if (is_wronly || is_rdwr) + calldata->arg.fmode |=FMODE_WRITE ;/* Calculate the change in open mode */ if (state->n_rdwr ==0 ) {if (state->n_rdonly ==0 ) { - call_close |=test_bit (NFS_O_RDONLY_STATE , &state->flags); - call_close |=test_bit (NFS_O_RDWR_STATE , &state->flags); + call_close |= is_rdonly || is_rdwr; calldata->arg.fmode &= ~FMODE_READ ; }if (state->n_wronly ==0 ) { - call_close |=test_bit (NFS_O_WRONLY_STATE , &state->flags); - call_close |=test_bit (NFS_O_RDWR_STATE , &state->flags); + call_close |= is_wronly || is_rdwr; calldata->arg.fmode &= ~FMODE_WRITE ; } }
fs/nfsd/nfs4callback.c +2 -1
@@ -672,7 +672,8 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c clp->cl_cb_session = ses; args.bc_xprt = conn->cb_xprt; args.prognumber = clp->cl_cb_session->se_cb_prog; - args.protocol =XPRT_TRANSPORT_BC_TCP ; + args.protocol = conn->cb_xprt->xpt_class->xcl_ident | +XPRT_TRANSPORT_BC ; args.authflavor = ses->se_cb_sec.flavor; }/* Create RPC client */
fs/nfsd/nfssvc.c +4 -1
@@ -221,7 +221,8 @@ static int nfsd_startup_generic(int nrservs)*/ ret =nfsd_racache_init (2 *nrservs);if (ret) -return ret; + goto dec_users; + ret =nfs4_state_start ();if (ret) goto out_racache;
@@ -229,6 +230,8 @@ static int nfsd_startup_generic(int nrservs) out_racache:nfsd_racache_shutdown (); +dec_users: + nfsd_users--;return ret; }
include/drm/drm_pciids.h +7 -0
@@ -17,6 +17,7 @@ {0x1002, 0x1315, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \ {0x1002, 0x1316, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \ {0x1002, 0x1317, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \ + {0x1002, 0x1318, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \ {0x1002, 0x131B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \ {0x1002, 0x131C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \ {0x1002, 0x131D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_KAVERI|RADEON_NEW_MEMMAP|RADEON_IS_IGP}, \
@@ -164,8 +165,11 @@ {0x1002, 0x6601, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6602, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6603, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6604, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6605, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6606, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6607, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6608, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6610, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6611, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6613, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \
@@ -175,6 +179,8 @@ {0x1002, 0x6631, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6640, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6641, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6646, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6647, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6649, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6650, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6651, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_BONAIRE|RADEON_NEW_MEMMAP}, \
@@ -297,6 +303,7 @@ {0x1002, 0x6829, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \ {0x1002, 0x682A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x682B, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x682C, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_NEW_MEMMAP}, \ {0x1002, 0x682D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x682F, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6830, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_VERDE|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
include/linux/jbd2.h +25 -5
@@ -159,7 +159,11 @@ typedef struct journal_header_s* journal_block_tag (in the descriptor). The other h_chksum* fields are * not used. * -* Checksum v1 and v2 are mutually exclusive features. +* If FEATURE_INCOMPAT_CSUM_V3 is set, the descriptor block uses +* journal_block_tag3_t to store a full 32-bit checksum. Everything else +* is the same as v2. +* +* Checksum v1, v2, and v3 are mutually exclusive features. */ struct commit_header {__be32 h_magic;
@@ -179,6 +183,14 @@ struct commit_header {* raw struct shouldn't be used for pointer math or sizeof() - use * journal_tag_bytes(journal) instead to compute this. */ +typedef struct journal_block_tag3_s +{ +__be32 t_blocknr;/* The on-disk block number */ +__be32 t_flags;/* See below */ +__be32 t_blocknr_high;/* most-significant high 32bits. */ +__be32 t_checksum;/* crc32c(uuid+seq+block) */ +}journal_block_tag3_t ; + typedef struct journal_block_tag_s { __be32 t_blocknr; /* The on-disk block number */
@@ -187,9 +199,6 @@ typedef struct journal_block_tag_s__be32 t_blocknr_high;/* most-significant high 32bits. */ } journal_block_tag_t; -#define JBD2_TAG_SIZE32 (offsetof(journal_block_tag_t, t_blocknr_high)) -#define JBD2_TAG_SIZE64 (sizeof(journal_block_tag_t)) -/* Tail of descriptor block, for checksumming */ struct jbd2_journal_block_tail {__be32 t_checksum;/* crc32c(uuid+descr_block) */
@@ -284,6 +293,7 @@ typedef struct journal_superblock_s#define JBD2_FEATURE_INCOMPAT_64BIT 0x00000002#define JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT 0x00000004#define JBD2_FEATURE_INCOMPAT_CSUM_V2 0x00000008 +#define JBD2_FEATURE_INCOMPAT_CSUM_V3 0x00000010/* Features known to this kernel version: */ #define JBD2_KNOWN_COMPAT_FEATURES JBD2_FEATURE_COMPAT_CHECKSUM
@@ -291,7 +301,8 @@ typedef struct journal_superblock_s#define JBD2_KNOWN_INCOMPAT_FEATURES (JBD2_FEATURE_INCOMPAT_REVOKE | \ JBD2_FEATURE_INCOMPAT_64BIT | \ JBD2_FEATURE_INCOMPAT_ASYNC_COMMIT | \ - JBD2_FEATURE_INCOMPAT_CSUM_V2) + JBD2_FEATURE_INCOMPAT_CSUM_V2 | \ + JBD2_FEATURE_INCOMPAT_CSUM_V3)#ifdef __KERNEL__
@@ -1296,6 +1307,15 @@ static inline int tid_geq(tid_t x, tid_t y)extern int jbd2_journal_blocks_per_page (struct inode *inode);extern size_t journal_tag_bytes (journal_t *journal); +static inline int jbd2_journal_has_csum_v2or3 (journal_t *journal) +{ +if (JBD2_HAS_INCOMPAT_FEATURE (journal,JBD2_FEATURE_INCOMPAT_CSUM_V2 ) || +JBD2_HAS_INCOMPAT_FEATURE (journal,JBD2_FEATURE_INCOMPAT_CSUM_V3 )) +return 1 ; + +return 0 ; +} +/* * We reserve t_outstanding_credits >> JBD2_CONTROL_BLOCKS_SHIFT for * transaction control blocks.
include/linux/sunrpc/svc_xprt.h +1 -0
@@ -32,6 +32,7 @@ struct svc_xprt_class {struct svc_xprt_ops *xcl_ops;struct list_head xcl_list;u32 xcl_max_payload; +int xcl_ident; };/*
kernel/sched/core.c +3 -2
@@ -3511,9 +3511,10 @@ static int _sched_setscheduler(struct task_struct *p, int policy, };/* -* Fixup the legacy SCHED_RESET_ON_FORK hack +* Fixup the legacy SCHED_RESET_ON_FORK hack, except if +* the policy=-1 was passed by sched_setparam(). */ -if (policy &SCHED_RESET_ON_FORK ) { +if ((policy !=-1 ) && (policy &SCHED_RESET_ON_FORK )) { attr.sched_flags |=SCHED_FLAG_RESET_ON_FORK ; policy &= ~SCHED_RESET_ON_FORK ; attr.sched_policy = policy;
mm/util.c +3 -6
@@ -275,17 +275,14 @@ pid_t vm_is_stack(struct task_struct *task,if (in_group) {struct task_struct *t; -rcu_read_lock (); -if (!pid_alive (task)) - goto done; - t = task; - do { +rcu_read_lock (); +for_each_thread (task, t) {if (vm_is_stack_for_task (t, vma)) { ret = t->pid; goto done; } - } while_each_thread(task, t); + } done:rcu_read_unlock (); }
net/sunrpc/svcsock.c +2 -0
@@ -685,6 +685,7 @@ static struct svc_xprt_class svc_udp_class = { .xcl_owner = THIS_MODULE, .xcl_ops = &svc_udp_ops, .xcl_max_payload = RPCSVC_MAXPAYLOAD_UDP, + .xcl_ident = XPRT_TRANSPORT_UDP, };static void svc_udp_init (struct svc_sock *svsk,struct svc_serv *serv)
@@ -1279,6 +1280,7 @@ static struct svc_xprt_class svc_tcp_class = { .xcl_owner = THIS_MODULE, .xcl_ops = &svc_tcp_ops, .xcl_max_payload = RPCSVC_MAXPAYLOAD_TCP, + .xcl_ident = XPRT_TRANSPORT_TCP, };void svc_init_xprt_sock (void )
net/sunrpc/xprt.c +1 -1
@@ -1316,7 +1316,7 @@ struct rpc_xprt *xprt_create_transport(struct xprt_create *args) } }spin_unlock (&xprt_list_lock); -printk (KERN_ERR "RPC: transport (%d) not supported\n" , args->ident); +dprintk ("RPC: transport (%d) not supported\n" , args->ident);return ERR_PTR (-EIO ); found:
net/sunrpc/xprtrdma/svc_rdma_transport.c +1 -0
@@ -89,6 +89,7 @@ struct svc_xprt_class svc_rdma_class = { .xcl_owner = THIS_MODULE, .xcl_ops = &svc_rdma_ops, .xcl_max_payload = RPCSVC_MAXPAYLOAD_TCP, + .xcl_ident = XPRT_TRANSPORT_RDMA, };struct svc_rdma_op_ctxt *svc_rdma_get_context (struct svcxprt_rdma *xprt)
sound/pci/Kconfig +2 -2
@@ -859,8 +859,8 @@ config SND_VIRTUOSO select SND_JACK if INPUT=y || INPUT=SND help Say Y here to include support for sound cards based on the - Asus AV66/AV100/AV200 chips, i.e., Xonar D1, DX, D2, D2X, DS, - Essence ST (Deluxe), and Essence STX. + Asus AV66/AV100/AV200 chips, i.e., Xonar D1, DX, D2, D2X, DS, DSX, + Essence ST (Deluxe), and Essence STX (II). Support for the HDAV1.3 (Deluxe) and HDAV1.3 Slim is experimental; for the Xense, missing.
sound/pci/hda/patch_ca0132.c +6 -1
@@ -4379,6 +4379,9 @@ static void ca0132_download_dsp(struct hda_codec *codec)return ;/* NOP */ #endif +if (spec->dsp_state ==DSP_DOWNLOAD_FAILED ) +return ;/* don't retry failures */ +chipio_enable_clocks (codec); spec->dsp_state =DSP_DOWNLOADING ;if (!ca0132_download_dsp_images (codec))
@@ -4555,7 +4558,8 @@ static int ca0132_init(struct hda_codec *codec)struct auto_pin_cfg *cfg = &spec->autocfg;int i; - spec->dsp_state =DSP_DOWNLOAD_INIT ; +if (spec->dsp_state !=DSP_DOWNLOAD_FAILED ) + spec->dsp_state =DSP_DOWNLOAD_INIT ; spec->curr_chip_addx =INVALID_CHIP_ADDRESS ;snd_hda_power_up (codec);
@@ -4666,6 +4670,7 @@ static int patch_ca0132(struct hda_codec *codec) codec->spec = spec; spec->codec = codec; + spec->dsp_state =DSP_DOWNLOAD_INIT ; spec->num_mixers =1 ; spec->mixers[0 ] = ca0132_mixer;
sound/pci/hda/patch_realtek.c +23 -5
@@ -180,6 +180,8 @@ static void alc_fix_pll(struct hda_codec *codec) spec->pll_coef_idx); val =snd_hda_codec_read (codec, spec->pll_nid,0 ,AC_VERB_GET_PROC_COEF ,0 ); +if (val ==-1 ) +return ;snd_hda_codec_write (codec, spec->pll_nid,0 ,AC_VERB_SET_COEF_INDEX , spec->pll_coef_idx); snd_hda_codec_write(codec, spec->pll_nid, 0, AC_VERB_SET_PROC_COEF,
@@ -2765,6 +2767,8 @@ static int alc269_parse_auto_config(struct hda_codec *codec)static void alc269vb_toggle_power_output (struct hda_codec *codec,int power_up) {int val =alc_read_coef_idx (codec,0x04 ); +if (val ==-1 ) +return ;if (power_up) val |=1 <<11 ;else
@@ -3064,6 +3068,15 @@ static int alc269_resume(struct hda_codec *codec)snd_hda_codec_resume_cache (codec);alc_inv_dmic_sync (codec, true);hda_call_check_power_status (codec,0x01 ); + +/* on some machine, the BIOS will clear the codec gpio data when enter +* suspend, and won't restore the data after resume, so we restore it +* in the driver. +*/ +if (spec->gpio_led) +snd_hda_codec_write (codec, codec->afg,0 ,AC_VERB_SET_GPIO_DATA , + spec->gpio_led); +if (spec->has_alc5505_dsp)alc5505_dsp_resume (codec);
@@ -4435,6 +4448,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x103c ,0x1983 ,"HP Pavilion" ,ALC269_FIXUP_HP_MUTE_LED_MIC1 ),SND_PCI_QUIRK (0x103c ,0x218b ,"HP" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST_MUTE_LED ),/* ALC282 */ +SND_PCI_QUIRK (0x103c ,0x2191 ,"HP Touchsmart 14" ,ALC269_FIXUP_HP_MUTE_LED_MIC1 ), +SND_PCI_QUIRK (0x103c ,0x2192 ,"HP Touchsmart 15" ,ALC269_FIXUP_HP_MUTE_LED_MIC1 ),SND_PCI_QUIRK (0x103c ,0x220d ,"HP" ,ALC269_FIXUP_HP_MUTE_LED_MIC1 ),SND_PCI_QUIRK (0x103c ,0x220e ,"HP" ,ALC269_FIXUP_HP_MUTE_LED_MIC1 ), SND_PCI_QUIRK(0x103c, 0x220f, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
@@ -4633,27 +4648,30 @@ static void alc269_fill_coef(struct hda_codec *codec)if ((alc_get_coef0 (codec) &0x00ff ) ==0x017 ) { val =alc_read_coef_idx (codec,0x04 );/* Power up output pin */ -alc_write_coef_idx (codec,0x04 , val | (1 <<11 )); +if (val !=-1 ) +alc_write_coef_idx (codec,0x04 , val | (1 <<11 )); }if ((alc_get_coef0 (codec) &0x00ff ) ==0x018 ) { val =alc_read_coef_idx (codec,0xd ); -if ((val &0x0c00 ) >>10 !=0x1 ) { +if (val !=-1 && (val &0x0c00 ) >>10 !=0x1 ) {/* Capless ramp up clock control */ alc_write_coef_idx (codec,0xd , val | (1 <<10 )); } val =alc_read_coef_idx (codec,0x17 ); -if ((val &0x01c0 ) >>6 !=0x4 ) { +if (val !=-1 && (val &0x01c0 ) >>6 !=0x4 ) {/* Class D power on reset */ alc_write_coef_idx (codec,0x17 , val | (1 <<7 )); } } val =alc_read_coef_idx (codec,0xd );/* Class D */ -alc_write_coef_idx (codec,0xd , val | (1 <<14 )); +if (val !=-1 ) +alc_write_coef_idx (codec,0xd , val | (1 <<14 )); val =alc_read_coef_idx (codec,0x4 );/* HP */ -alc_write_coef_idx (codec,0x4 , val | (1 <<11 )); +if (val !=-1 ) +alc_write_coef_idx (codec,0x4 , val | (1 <<11 )); }/*
sound/pci/hda/patch_sigmatel.c +12 -0
@@ -84,6 +84,7 @@ enum {STAC_DELL_EQ ,STAC_ALIENWARE_M17X ,STAC_92HD89XX_HP_FRONT_JACK , +STAC_92HD89XX_HP_Z1_G2_RIGHT_MIC_JACK , STAC_92HD73XX_MODELS };
@@ -1803,6 +1804,11 @@ static const struct hda_pintbl stac92hd89xx_hp_front_jack_pin_configs[] = { {} }; +static const struct hda_pintbl stac92hd89xx_hp_z1_g2_right_mic_jack_pin_configs[] = { + {0x0e ,0x400000f0 }, + {} +}; +static void stac92hd73xx_fixup_ref (struct hda_codec *codec,const struct hda_fixup *fix,int action) {
@@ -1925,6 +1931,10 @@ static const struct hda_fixup stac92hd73xx_fixups[] = { [STAC_92HD89XX_HP_FRONT_JACK ] = { .type =HDA_FIXUP_PINS , .v.pins = stac92hd89xx_hp_front_jack_pin_configs, + }, + [STAC_92HD89XX_HP_Z1_G2_RIGHT_MIC_JACK ] = { + .type =HDA_FIXUP_PINS , + .v.pins = stac92hd89xx_hp_z1_g2_right_mic_jack_pin_configs, } };
@@ -1985,6 +1995,8 @@ static const struct snd_pci_quirk stac92hd73xx_fixup_tbl[] = { "Alienware M17x", STAC_ALIENWARE_M17X),SND_PCI_QUIRK (PCI_VENDOR_ID_DELL ,0x0490 ,"Alienware M17x R3" ,STAC_DELL_EQ ), +SND_PCI_QUIRK (PCI_VENDOR_ID_HP ,0x1927 , +"HP Z1 G2" ,STAC_92HD89XX_HP_Z1_G2_RIGHT_MIC_JACK ),SND_PCI_QUIRK (PCI_VENDOR_ID_HP ,0x2b17 , "unknown HP", STAC_92HD89XX_HP_FRONT_JACK), {} /* terminator */
sound/pci/oxygen/virtuoso.c +1 -0
@@ -53,6 +53,7 @@ static DEFINE_PCI_DEVICE_TABLE(xonar_ids) = { { OXYGEN_PCI_SUBID(0x1043, 0x835e) }, { OXYGEN_PCI_SUBID(0x1043, 0x838e) }, { OXYGEN_PCI_SUBID(0x1043, 0x8522) }, + { OXYGEN_PCI_SUBID(0x1043, 0x85f4) }, { OXYGEN_PCI_SUBID_BROKEN_EEPROM }, { } };
sound/pci/oxygen/xonar_pcm179x.c +10 -2
@@ -100,8 +100,8 @@*/ /* -* Xonar Essence ST (Deluxe)/STX -* ----------------------------- +* Xonar Essence ST (Deluxe)/STX (II) +* ---------------------------------- * * CMI8788: *
@@ -1138,6 +1138,14 @@ int get_xonar_pcm179x_model(struct oxygen *chip, chip->model.resume = xonar_stx_resume; chip->model.set_dac_params = set_pcm1796_params;break ; +case 0x85f4 : + chip->model = model_xonar_st; +/* TODO: daughterboard support */ + chip->model.shortname ="Xonar STX II" ; + chip->model.init = xonar_stx_init; + chip->model.resume = xonar_stx_resume; + chip->model.set_dac_params = set_pcm1796_params; +break ;default :return -EINVAL ; }
sound/usb/quirks-table.h +29 -0
@@ -1581,6 +1581,35 @@ YAMAHA_DEVICE(0x7010, "UB99"), } }, { +/* BOSS ME-25 */ + USB_DEVICE(0x0582, 0x0113), + .driver_info = (unsigned long ) & (const struct snd_usb_audio_quirk ) { + .ifnum =QUIRK_ANY_INTERFACE , + .type =QUIRK_COMPOSITE , + .data = (const struct snd_usb_audio_quirk []) { + { + .ifnum =0 , + .type =QUIRK_AUDIO_STANDARD_INTERFACE + }, + { + .ifnum =1 , + .type =QUIRK_AUDIO_STANDARD_INTERFACE + }, + { + .ifnum =2 , + .type =QUIRK_MIDI_FIXED_ENDPOINT , + .data = & (const struct snd_usb_midi_endpoint_info ) { + .out_cables =0x0001 , + .in_cables =0x0001 + } + }, + { + .ifnum =-1 + } + } + } +}, +{ /* only 44.1 kHz works at the moment */ USB_DEVICE(0x0582, 0x0120), .driver_info = (unsigned long ) & (const struct snd_usb_audio_quirk ) {
sound/usb/quirks.c +1 -1
@@ -666,7 +666,7 @@ static int snd_usb_gamecon780_boot_quirk(struct usb_device *dev)/* set the initial volume and don't change; other values are either * too loud or silent due to firmware bug (bko#65251) */ -u8 buf[2 ] = {0x74 ,0xdc }; +u8 buf[2 ] = {0x74 ,0xe3 };return snd_usb_ctl_msg (dev,usb_sndctrlpipe (dev,0 ),UAC_SET_CUR ,USB_RECIP_INTERFACE |USB_TYPE_CLASS |USB_DIR_OUT ,UAC_FU_VOLUME <<8 ,9 <<8 , buf,2 );
virt/kvm/ioapic.c +3 -4
@@ -203,10 +203,9 @@ void kvm_ioapic_scan_entry(struct kvm_vcpu *vcpu, u64 *eoi_exit_bitmap,spin_lock (&ioapic->lock);for (index =0 ; index <IOAPIC_NUM_PINS ; index++) { e = &ioapic->redirtbl[index]; -if (!e->fields.mask && - (e->fields.trig_mode ==IOAPIC_LEVEL_TRIG || -kvm_irq_has_notifier (ioapic->kvm,KVM_IRQCHIP_IOAPIC , - index) || index ==RTC_GSI )) { +if (e->fields.trig_mode ==IOAPIC_LEVEL_TRIG || +kvm_irq_has_notifier (ioapic->kvm,KVM_IRQCHIP_IOAPIC , index) || + index ==RTC_GSI ) {if (kvm_apic_match_dest (vcpu,NULL ,0 , e->fields.dest_id, e->fields.dest_mode)) { __set_bit(e->fields.vector,
virt/kvm/iommu.c +10 -9
@@ -61,6 +61,14 @@ static pfn_t kvm_pin_pages(struct kvm_memory_slot *slot, gfn_t gfn,return pfn; } +static void kvm_unpin_pages (struct kvm *kvm,pfn_t pfn,unsigned long npages) +{ +unsigned long i; + +for (i =0 ; i < npages; ++i) +kvm_release_pfn_clean (pfn + i); +} +int kvm_iommu_map_pages (struct kvm *kvm,struct kvm_memory_slot *slot) {gfn_t gfn, end_gfn;
@@ -123,6 +131,7 @@ int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot)if (r) {printk (KERN_ERR "kvm_iommu_map_address:" "iommu failed to map pfn=%llx\n" , pfn); +kvm_unpin_pages (kvm, pfn, page_size); goto unmap_pages; }
@@ -134,7 +143,7 @@ int kvm_iommu_map_pages(struct kvm *kvm, struct kvm_memory_slot *slot)return 0 ; unmap_pages: -kvm_iommu_put_pages (kvm, slot->base_gfn, gfn); +kvm_iommu_put_pages (kvm, slot->base_gfn, gfn - slot->base_gfn);return r; }
@@ -266,14 +275,6 @@ out_unlock:return r; } -static void kvm_unpin_pages (struct kvm *kvm,pfn_t pfn,unsigned long npages) -{ -unsigned long i; - -for (i =0 ; i < npages; ++i) -kvm_release_pfn_clean (pfn + i); -} -static void kvm_iommu_put_pages (struct kvm *kvm,gfn_t base_gfn,unsigned long npages) {