Linux 3.10.11
Greg KH
maintainerI'm announcing the release of the 3.10.11 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/hwmon/k10temp | 1 Makefile | 2 arch/arm/xen/enlighten.c | 1 arch/powerpc/Kconfig | 1 arch/powerpc/include/asm/page.h | 10 +++ arch/powerpc/kernel/lparcfg.c | 22 +++----- arch/x86/mm/init.c | 4 - drivers/acpi/ec.c | 4 + drivers/base/memory.c | 2 drivers/base/regmap/regcache-rbtree.c | 2 drivers/gpu/drm/i915/i915_reg.h | 2 drivers/gpu/drm/nouveau/core/include/subdev/mc.h | 7 +- drivers/gpu/drm/nouveau/core/subdev/mc/base.c | 6 +- drivers/gpu/drm/nouveau/core/subdev/mc/nv04.c | 3 - drivers/gpu/drm/nouveau/core/subdev/mc/nv44.c | 3 - drivers/gpu/drm/nouveau/core/subdev/mc/nv50.c | 3 - drivers/gpu/drm/nouveau/core/subdev/mc/nv98.c | 3 - drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c | 3 - drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c | 58 +++++++++++++++-------- drivers/hwmon/Kconfig | 4 - drivers/hwmon/k10temp.c | 3 - drivers/misc/hpilo.c | 4 - drivers/misc/mei/hw-me.c | 8 +-- drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 10 +++ drivers/net/wireless/ath/ath9k/init.c | 3 - drivers/net/wireless/ath/ath9k/main.c | 3 - drivers/net/wireless/ath/carl9170/main.c | 3 - drivers/net/wireless/iwlegacy/4965-mac.c | 2 drivers/net/wireless/rt2x00/rt2800lib.c | 3 - drivers/scsi/pm8001/pm8001_hwi.c | 4 - drivers/scsi/pm8001/pm80xx_hwi.c | 4 - drivers/staging/imx-drm/imx-drm-core.c | 1 drivers/target/iscsi/iscsi_target.c | 17 +++--- drivers/target/iscsi/iscsi_target_login.c | 9 +-- drivers/target/target_core_spc.c | 9 ++- drivers/tty/hvc/hvsi_lib.c | 4 - drivers/usb/gadget/f_acm.c | 1 fs/jfs/jfs_dtree.c | 31 +++++++++--- include/linux/regmap.h | 1 include/net/mac80211.h | 1 ipc/msg.c | 5 + kernel/time/timer_list.c | 41 +++++++++------- kernel/workqueue.c | 9 +++ mm/slab.h | 2 net/mac80211/ibss.c | 1 net/mac80211/rc80211_minstrel_ht.c | 3 + net/sunrpc/xdr.c | 9 ++- sound/isa/opti9xx/opti92x-ad1848.c | 8 --- sound/pci/hda/patch_hdmi.c | 3 + sound/pci/hda/patch_realtek.c | 1 50 files changed, 220 insertions(+), 124 deletions(-)
Andrey Vagin (1):
memcg: check that kmem_cache has memcg_params before accessing it
Ben Skeggs (1):
drm/nouveau/mc: fix race condition between constructor and request_irq()
Benjamin Herrenschmidt (1):
powerpc: Don't Oops when accessing /proc/powerpc/lparcfg without hypervisor
Dave Kleikamp (1):
jfs: fix readdir cookie incompatibility with NFSv4
David Jander (1):
regmap: rbtree: Fix overlapping rbnodes.
Eugene Surovegin (1):
powerpc/hvsi: Increase handshake timeout from 200ms to 400ms.
Fabio Estevam (1):
imx-drm: imx-drm-core: Export imx_drm_encoder_get_mux_id
Felix Fietkau (1):
mac80211: add a flag to indicate CCK support for HT clients
Graham Williams (1):
usb: acm gadget: Null termintate strings table
Greg Kroah-Hartman (1):
Linux 3.10.11
Hans Verkuil (1):
SCSI: pm80xx: fix Adaptec 71605H hang
Helmut Schaa (1):
ath9k_htc: Restore skb headroom when returning skb to mac80211
Imre Deak (1):
drm/i915: ivb: fix edp voltage swing reg val
Jakob Bornecrantz (1):
drm/vmwgfx: Split GMR2_REMAP commands if they are to large
Johannes Berg (1):
mac80211: add missing channel context release
Julien Grall (1):
xen/arm: missing put_cpu in xen_percpu_init
Kevin Hilman (1):
regmap: Add another missing header for !CONFIG_REGMAP stubs
Lan Tianyu (1):
ACPI / EC: Add ASUSTEK L4R to quirk list in order to validate ECDT
Mark Rusk (1):
drivers/misc/hpilo: Correct panic when an AUX iLO is detected
Nathan Zimmer (1):
timer_list: correct the iterator for timer_list
Nicholas Bellinger (4):
target: Fix trailing ASCII space usage in INQUIRY vendor+model
iscsi-target: Fix ImmediateData=Yes failure regression in >= v3.10
iscsi-target: Fix iscsit_transport reference leak during NP thread reset
iscsi-target: Fix potential NULL pointer in solicited NOPOUT reject
Paul Mackerras (1):
powerpc: Work around gcc miscompilation of __pa() on 64-bit
Russ Anderson (1):
drivers/base/memory.c: fix show_mem_removable() to handle missing sections
Stanislaw Gruszka (1):
iwl4965: fix rfkill set state regression
Sujith Manoharan (1):
ath9k: Enable PLL fix only for AR9340/AR9330
Svenning Soerensen (1):
IPC: bugfix for msgrcv with msgtyp < 0
Takashi Iwai (3):
ALSA: hda - Fix NULL dereference with CONFIG_SND_DYNAMIC_MINORS=n
ALSA: hda - Add inverted digital mic fixup for Acer Aspire One
ALSA: opti9xx: Fix conflicting driver object name
Tejun Heo (1):
workqueue: cond_resched() after processing each work item
Tomas Winkler (1):
mei: me: fix hardware reset flow
Trond Myklebust (1):
SUNRPC: Fix memory corruption issue on 32-bit highmem systems
Wei Hu (1):
hwmon: (k10temp) Add support for Fam16h (Kabini)
Yinghai Lu (1):
x86/mm: Fix boot crash with DEBUG_PAGE_ALLOC=y and more than 512G RAM
Greg KH
maintainerDocumentation/hwmon/k10temp +1 -0
@@ -12,6 +12,7 @@ Supported chips: * AMD Family 12h processors: "Llano" (E2/A4/A6/A8-Series) * AMD Family 14h processors: "Brazos" (C/E/G/Z-Series) * AMD Family 15h processors: "Bulldozer" (FX-Series), "Trinity" +* AMD Family 16h processors: "Kabini" Prefix: 'k10temp' Addresses scanned: PCI space
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/arm/xen/enlighten.c +1 -0
@@ -170,6 +170,7 @@ static void __init xen_percpu_init(void *unused)per_cpu (xen_vcpu, cpu) = vcpup;enable_percpu_irq (xen_events_irq,0 ); +put_cpu (); }static void xen_restart (char str,const char *cmd)
arch/powerpc/Kconfig +1 -0
@@ -986,6 +986,7 @@ config RELOCATABLE must live at a different physical address than the primary kernel. +# This value must have zeroes in the bottom 60 bits otherwise lots will break config PAGE_OFFSET hex default "0xc000000000000000"
arch/powerpc/include/asm/page.h +10 -0
@@ -211,9 +211,19 @@ extern long long virt_phys_offset;#define __va (x) ((void *)(unsigned long)((phys_addr_t)(x) + VIRT_PHYS_OFFSET))#define __pa (x) ((unsigned long)(x) - VIRT_PHYS_OFFSET)#else +#ifdef CONFIG_PPC64 +/* +* gcc miscompiles (unsigned long)(&static_var) - PAGE_OFFSET +* with -mcmodel=medium, so we use & and | instead of - and + on 64-bit. +*/ +#define __va (x) ((void *)(unsigned long)((phys_addr_t)(x) | PAGE_OFFSET)) +#define __pa (x) ((unsigned long)(x) & 0x0fffffffffffffffUL) + +#else /* 32-bit, non book E */ #define __va (x) ((void *)(unsigned long)((phys_addr_t)(x) + PAGE_OFFSET - MEMORY_START))#define __pa (x) ((unsigned long)(x) - PAGE_OFFSET + MEMORY_START)#endif +#endif /* * Unfortunately the PLT is in the BSS in the PPC32 ELF ABI,
arch/powerpc/kernel/lparcfg.c +9 -13
@@ -35,7 +35,13 @@#include <asm/vdso_datapage.h> #include <asm/vio.h> #include <asm/mmu.h> +#include <asm/machdep.h> + +/* +* This isn't a module but we expose that to userspace +* via /proc so leave the definitions here +*/ #define MODULE_VERS "1.9"#define MODULE_NAME "lparcfg"
@@ -418,7 +424,8 @@ static void parse_em_data(struct seq_file *m) {unsigned long retbuf[PLPAR_HCALL_BUFSIZE ]; -if (plpar_hcall (H_GET_EM_PARMS , retbuf) ==H_SUCCESS ) +if (firmware_has_feature (FW_FEATURE_LPAR ) && +plpar_hcall (H_GET_EM_PARMS , retbuf) ==H_SUCCESS )seq_printf (m,"power_mode_data=%016lx\n" , retbuf[0 ]); }
@@ -677,7 +684,6 @@ static int lparcfg_open(struct inode *inode, struct file *file) }static const struct file_operations lparcfg_fops = { - .owner =THIS_MODULE , .read = seq_read, .write = lparcfg_write, .open = lparcfg_open,
@@ -699,14 +705,4 @@ static int __init lparcfg_init(void) }return 0 ; } - -static void __exit lparcfg_cleanup(void) -{ -remove_proc_subtree ("powerpc/lparcfg" ,NULL ); -} - -module_init (lparcfg_init); -module_exit (lparcfg_cleanup); -MODULE_DESCRIPTION ("Interface for LPAR configuration data" ); -MODULE_AUTHOR ("Dave Engebretsen" ); -MODULE_LICENSE ("GPL" ); +machine_device_initcall (pseries, lparcfg_init);
arch/x86/mm/init.c +2 -2
@@ -78,8 +78,8 @@ __ref void *alloc_low_pages(unsigned int num)return __va (pfn <<PAGE_SHIFT ); } -/* need 4 4k for initial PMD_SIZE, 4k for 0-ISA_END_ADDRESS */ -#define INIT_PGT_BUF_SIZE (5 * PAGE_SIZE) +/* need 3 4k for initial PMD_SIZE, 3 4k for 0-ISA_END_ADDRESS */ +#define INIT_PGT_BUF_SIZE (6 * PAGE_SIZE)RESERVE_BRK (early_pgt_alloc,INIT_PGT_BUF_SIZE );void __init early_alloc_pgt_buf (void ) {
drivers/acpi/ec.c +4 -0
@@ -987,6 +987,10 @@ static struct dmi_system_id __initdata ec_dmi_table[] = { ec_skip_dsdt_scan, "HP Folio 13", {DMI_MATCH (DMI_SYS_VENDOR ,"Hewlett-Packard" ), DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13"),}, NULL}, + { + ec_validate_ecdt, "ASUS hardware", { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTek Computer Inc." ), + DMI_MATCH(DMI_PRODUCT_NAME, "L4R"),}, NULL}, {}, };
drivers/base/memory.c +2 -0
@@ -152,6 +152,8 @@ static ssize_t show_mem_removable(struct device *dev, container_of(dev, struct memory_block, dev);for (i =0 ; i < sections_per_block; i++) { +if (!present_section_nr (mem->start_section_nr + i)) +continue ; pfn =section_nr_to_pfn (mem->start_section_nr + i); ret &=is_mem_section_removable (pfn,PAGES_PER_SECTION ); }
drivers/base/regmap/regcache-rbtree.c +1 -1
@@ -362,7 +362,7 @@ static int regcache_rbtree_write(struct regmap *map, unsigned int reg, rbnode =kzalloc (sizeof *rbnode,GFP_KERNEL );if (!rbnode)return -ENOMEM ; - rbnode->blklen =sizeof (*rbnode); + rbnode->blklen =1 ; rbnode->base_reg = reg; rbnode->block =kmalloc (rbnode->blklen * map->cache_word_size,GFP_KERNEL );
drivers/gpu/drm/i915/i915_reg.h +1 -1
@@ -4246,7 +4246,7 @@#define EDP_LINK_TRAIN_600MV_0DB_IVB (0x30 <<22)#define EDP_LINK_TRAIN_600MV_3_5DB_IVB (0x36 <<22)#define EDP_LINK_TRAIN_800MV_0DB_IVB (0x38 <<22) -#define EDP_LINK_TRAIN_800MV_3_5DB_IVB (0x33 <<22) +#define EDP_LINK_TRAIN_800MV_3_5DB_IVB (0x3e <<22)/* legacy values */ #define EDP_LINK_TRAIN_500MV_0DB_IVB (0x00 <<22)
drivers/gpu/drm/nouveau/core/include/subdev/mc.h +4 -3
@@ -20,8 +20,8 @@ nouveau_mc(void *obj)return (void *)nv_device (obj)->subdev[NVDEV_SUBDEV_MC ]; } -#define nouveau_mc_create (p,e,o,d) \ - nouveau_mc_create_((p), (e), (o), sizeof(**d), (void **)d) +#define nouveau_mc_create (p,e,o,m,d) \ + nouveau_mc_create_((p), (e), (o), (m), sizeof(**d), (void **)d)#define nouveau_mc_destroy (p) ({ \ struct nouveau_mc *pmc = (p); _nouveau_mc_dtor(nv_object(pmc)); \ })
@@ -33,7 +33,8 @@ nouveau_mc(void *obj) })int nouveau_mc_create_ (struct nouveau_object *,struct nouveau_object *, -struct nouveau_oclass *,int ,void **); +struct nouveau_oclass *,const struct nouveau_mc_intr *, +int ,void **);void _nouveau_mc_dtor (struct nouveau_object *);int _nouveau_mc_init (struct nouveau_object *);int _nouveau_mc_fini (struct nouveau_object *,bool );
drivers/gpu/drm/nouveau/core/subdev/mc/base.c +5 -1
@@ -80,7 +80,9 @@ _nouveau_mc_dtor(struct nouveau_object *object)int nouveau_mc_create_ (struct nouveau_object *parent,struct nouveau_object *engine, -struct nouveau_oclass *oclass,int length,void **pobject) +struct nouveau_oclass *oclass, +const struct nouveau_mc_intr *intr_map, +int length,void **pobject) {struct nouveau_device *device =nv_device (parent);struct nouveau_mc *pmc;
@@ -92,6 +94,8 @@ nouveau_mc_create_(struct nouveau_object *parent, struct nouveau_object *engine,if (ret)return ret; + pmc->intr_map = intr_map; + ret =request_irq (device->pdev->irq, nouveau_mc_intr,IRQF_SHARED ,"nouveau" , pmc);if (ret <0 )
drivers/gpu/drm/nouveau/core/subdev/mc/nv04.c +1 -2
@@ -50,12 +50,11 @@ nv04_mc_ctor(struct nouveau_object *parent, struct nouveau_object *engine,struct nv04_mc_priv *priv;int ret; - ret =nouveau_mc_create (parent, engine, oclass, &priv); + ret =nouveau_mc_create (parent, engine, oclass, nv04_mc_intr, &priv); *pobject =nv_object (priv);if (ret)return ret; - priv->base.intr_map = nv04_mc_intr;return 0 ; }
drivers/gpu/drm/nouveau/core/subdev/mc/nv44.c +1 -2
@@ -36,12 +36,11 @@ nv44_mc_ctor(struct nouveau_object *parent, struct nouveau_object *engine,struct nv44_mc_priv *priv;int ret; - ret =nouveau_mc_create (parent, engine, oclass, &priv); + ret =nouveau_mc_create (parent, engine, oclass, nv04_mc_intr, &priv); *pobject =nv_object (priv);if (ret)return ret; - priv->base.intr_map = nv04_mc_intr;return 0 ; }
drivers/gpu/drm/nouveau/core/subdev/mc/nv50.c +1 -2
@@ -52,12 +52,11 @@ nv50_mc_ctor(struct nouveau_object *parent, struct nouveau_object *engine,struct nv50_mc_priv *priv;int ret; - ret =nouveau_mc_create (parent, engine, oclass, &priv); + ret =nouveau_mc_create (parent, engine, oclass, nv50_mc_intr, &priv); *pobject =nv_object (priv);if (ret)return ret; - priv->base.intr_map = nv50_mc_intr;return 0 ; }
drivers/gpu/drm/nouveau/core/subdev/mc/nv98.c +1 -2
@@ -54,12 +54,11 @@ nv98_mc_ctor(struct nouveau_object *parent, struct nouveau_object *engine,struct nv98_mc_priv *priv;int ret; - ret =nouveau_mc_create (parent, engine, oclass, &priv); + ret =nouveau_mc_create (parent, engine, oclass, nv98_mc_intr, &priv); *pobject =nv_object (priv);if (ret)return ret; - priv->base.intr_map = nv98_mc_intr;return 0 ; }
drivers/gpu/drm/nouveau/core/subdev/mc/nvc0.c +1 -2
@@ -56,12 +56,11 @@ nvc0_mc_ctor(struct nouveau_object *parent, struct nouveau_object *engine,struct nvc0_mc_priv *priv;int ret; - ret =nouveau_mc_create (parent, engine, oclass, &priv); + ret =nouveau_mc_create (parent, engine, oclass, nvc0_mc_intr, &priv); *pobject =nv_object (priv);if (ret)return ret; - priv->base.intr_map = nvc0_mc_intr;return 0 ; }
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c +39 -19
89 lines not on this page · raw message
drivers/hwmon/Kconfig +2 -2
@@ -296,8 +296,8 @@ config SENSORS_K10TEMP If you say yes here you get support for the temperature sensor(s) inside your CPU. Supported are later revisions of the AMD Family 10h and all revisions of the AMD Family 11h, - 12h (Llano), 14h (Brazos) and 15h (Bulldozer/Trinity) - microarchitectures. + 12h (Llano), 14h (Brazos), 15h (Bulldozer/Trinity) and + 16h (Kabini) microarchitectures. This driver can also be built as a module. If so, the module will be called k10temp.
drivers/hwmon/k10temp.c +2 -1
@@ -1,5 +1,5 @@/* -* k10temp.c - AMD Family 10h/11h/12h/14h/15h processor hardware monitoring +* k10temp.c - AMD Family 10h/11h/12h/14h/15h/16h processor hardware monitoring * * Copyright (c) 2009 Clemens Ladisch <[email protected]> *
@@ -211,6 +211,7 @@ static DEFINE_PCI_DEVICE_TABLE(k10temp_id_table) = { { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_CNB17H_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F3) }, { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_M10H_F3) }, + { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F3) }, {} };MODULE_DEVICE_TABLE (pci, k10temp_id_table);
drivers/misc/hpilo.c +2 -2
@@ -759,7 +759,7 @@ static int ilo_probe(struct pci_dev *pdev,/* Ignore subsystem_device = 0x1979 (set by BIOS) */ if (pdev->subsystem_device ==0x1979 ) - goto out; +return 0 ;if (max_ccb >MAX_CCB ) max_ccb =MAX_CCB ;
@@ -899,7 +899,7 @@ static void __exit ilo_exit(void)class_destroy (ilo_class); } -MODULE_VERSION ("1.4" ); +MODULE_VERSION ("1.4.1" );MODULE_ALIAS (ILO_NAME );MODULE_DESCRIPTION (ILO_NAME );MODULE_AUTHOR ("David Altobelli <[email protected]>" );
drivers/misc/mei/hw-me.c +3 -5
@@ -176,16 +176,14 @@ static void mei_me_hw_reset(struct mei_device *dev, bool intr_enable)struct mei_me_hw *hw =to_me_hw (dev);u32 hcsr =mei_hcsr_read (hw); -dev_dbg (&dev->pdev->dev,"before reset HCSR = 0x%08x.\n" , hcsr); - - hcsr |= (H_RST |H_IG ); + hcsr |=H_RST |H_IG |H_IS ;if (intr_enable) hcsr |=H_IE ;else - hcsr |= ~H_IE ; + hcsr &= ~H_IE ; -mei_hcsr_set (hw, hcsr); +mei_me_reg_write (hw,H_CSR , hcsr);if (dev->dev_state ==MEI_DEV_POWER_DOWN )mei_me_hw_reset_release (dev);
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c +10 -0
@@ -448,6 +448,7 @@ static void ath9k_htc_tx_process(struct ath9k_htc_priv *priv,struct ieee80211_conf *cur_conf = &priv->hw->conf;bool txok;int slot; +int hdrlen, padsize; slot =strip_drv_header (priv, skb);if (slot <0 ) {
@@ -504,6 +505,15 @@ send_mac80211:ath9k_htc_tx_clear_slot (priv, slot); +/* Remove padding before handing frame back to mac80211 */ + hdrlen =ieee80211_get_hdrlen_from_skb (skb); + + padsize = hdrlen &3 ; +if (padsize && skb->len > hdrlen + padsize) { +memmove (skb->data + padsize, skb->data, hdrlen); +skb_pull (skb, padsize); + } +/* Send status to mac80211 */ ieee80211_tx_status (priv->hw, skb); }
drivers/net/wireless/ath/ath9k/init.c +2 -1
@@ -767,7 +767,8 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)IEEE80211_HW_PS_NULLFUNC_STACK |IEEE80211_HW_SPECTRUM_MGMT |IEEE80211_HW_REPORTS_TX_ACK_STATUS | -IEEE80211_HW_SUPPORTS_RC_TABLE ; +IEEE80211_HW_SUPPORTS_RC_TABLE | +IEEE80211_HW_SUPPORTS_HT_CCK_RATES ;if (sc->sc_ah->caps.hw_caps &ATH9K_HW_CAP_HT ) hw->flags |=IEEE80211_HW_AMPDU_AGGREGATION ;
drivers/net/wireless/ath/ath9k/main.c +1 -2
@@ -173,8 +173,7 @@ static void ath_restart_work(struct ath_softc *sc) {ieee80211_queue_delayed_work (sc->hw, &sc->tx_complete_work,0 ); -if (AR_SREV_9340 (sc->sc_ah) ||AR_SREV_9485 (sc->sc_ah) || -AR_SREV_9550 (sc->sc_ah)) +if (AR_SREV_9340 (sc->sc_ah) ||AR_SREV_9330 (sc->sc_ah))ieee80211_queue_delayed_work (sc->hw, &sc->hw_pll_work,msecs_to_jiffies (ATH_PLL_WORK_INTERVAL ));
drivers/net/wireless/ath/carl9170/main.c +2 -1
@@ -1857,7 +1857,8 @@ void *carl9170_alloc(size_t priv_size)IEEE80211_HW_SUPPORTS_PS |IEEE80211_HW_PS_NULLFUNC_STACK |IEEE80211_HW_NEED_DTIM_BEFORE_ASSOC | -IEEE80211_HW_SIGNAL_DBM ; +IEEE80211_HW_SIGNAL_DBM | +IEEE80211_HW_SUPPORTS_HT_CCK_RATES ;if (!modparam_noht) {/*
drivers/net/wireless/iwlegacy/4965-mac.c +1 -1
@@ -4446,9 +4446,9 @@ il4965_irq_tasklet(struct il_priv *il)set_bit (S_RFKILL , &il->status); }else {clear_bit (S_RFKILL , &il->status); -wiphy_rfkill_set_hw_state (il->hw->wiphy, hw_rf_kill);il_force_reset (il, true); } +wiphy_rfkill_set_hw_state (il->hw->wiphy, hw_rf_kill); handled |=CSR_INT_BIT_RF_KILL ; }
drivers/net/wireless/rt2x00/rt2800lib.c +2 -1
@@ -5912,7 +5912,8 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)IEEE80211_HW_SUPPORTS_PS |IEEE80211_HW_PS_NULLFUNC_STACK |IEEE80211_HW_AMPDU_AGGREGATION | -IEEE80211_HW_REPORTS_TX_ACK_STATUS ; +IEEE80211_HW_REPORTS_TX_ACK_STATUS | +IEEE80211_HW_SUPPORTS_HT_CCK_RATES ;/* * Don't set IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING for USB devices
drivers/scsi/pm8001/pm8001_hwi.c +2 -2
@@ -221,7 +221,7 @@ static void init_default_table_values(struct pm8001_hba_info *pm8001_ha) pm8001_ha->main_cfg_tbl.pm8001_tbl.fatal_err_interrupt =0x01 ;for (i =0 ; i <PM8001_MAX_INB_NUM ; i++) { pm8001_ha->inbnd_q_tbl[i].element_pri_size_cnt = -PM8001_MPI_QUEUE | (64 <<16 ) | (0x00 <<30 ); +PM8001_MPI_QUEUE | (pm8001_ha->iomb_size <<16 ) | (0x00 <<30 ); pm8001_ha->inbnd_q_tbl[i].upper_base_addr = pm8001_ha->memoryMap.region[IB + i].phys_addr_hi; pm8001_ha->inbnd_q_tbl[i].lower_base_addr =
@@ -247,7 +247,7 @@ static void init_default_table_values(struct pm8001_hba_info *pm8001_ha) }for (i =0 ; i <PM8001_MAX_OUTB_NUM ; i++) { pm8001_ha->outbnd_q_tbl[i].element_size_cnt = -PM8001_MPI_QUEUE | (64 <<16 ) | (0x01 <<30 ); +PM8001_MPI_QUEUE | (pm8001_ha->iomb_size <<16 ) | (0x01 <<30 ); pm8001_ha->outbnd_q_tbl[i].upper_base_addr = pm8001_ha->memoryMap.region[OB + i].phys_addr_hi; pm8001_ha->outbnd_q_tbl[i].lower_base_addr =
drivers/scsi/pm8001/pm80xx_hwi.c +2 -2
@@ -275,7 +275,7 @@ static void init_default_table_values(struct pm8001_hba_info *pm8001_ha)for (i =0 ; i <PM8001_MAX_SPCV_INB_NUM ; i++) { pm8001_ha->inbnd_q_tbl[i].element_pri_size_cnt = -PM8001_MPI_QUEUE | (64 <<16 ) | (0x00 <<30 ); +PM8001_MPI_QUEUE | (pm8001_ha->iomb_size <<16 ) | (0x00 <<30 ); pm8001_ha->inbnd_q_tbl[i].upper_base_addr = pm8001_ha->memoryMap.region[IB + i].phys_addr_hi; pm8001_ha->inbnd_q_tbl[i].lower_base_addr =
@@ -301,7 +301,7 @@ static void init_default_table_values(struct pm8001_hba_info *pm8001_ha) }for (i =0 ; i <PM8001_MAX_SPCV_OUTB_NUM ; i++) { pm8001_ha->outbnd_q_tbl[i].element_size_cnt = -PM8001_MPI_QUEUE | (64 <<16 ) | (0x01 <<30 ); +PM8001_MPI_QUEUE | (pm8001_ha->iomb_size <<16 ) | (0x01 <<30 ); pm8001_ha->outbnd_q_tbl[i].upper_base_addr = pm8001_ha->memoryMap.region[OB + i].phys_addr_hi; pm8001_ha->outbnd_q_tbl[i].lower_base_addr =
drivers/staging/imx-drm/imx-drm-core.c +1 -0
@@ -681,6 +681,7 @@ found:return i; } +EXPORT_SYMBOL_GPL (imx_drm_encoder_get_mux_id);/* * imx_drm_remove_encoder - remove an encoder
drivers/target/iscsi/iscsi_target.c +10 -7
@@ -1086,7 +1086,6 @@ int iscsit_process_scsi_cmd(struct iscsi_conn *conn, struct iscsi_cmd *cmd,if (cmd->reject_reason)return 0 ; -target_put_sess_cmd (conn->sess->se_sess, &cmd->se_cmd);return 1 ; }/*
@@ -1124,14 +1123,10 @@ after_immediate_data:*/ cmdsn_ret =iscsit_sequence_cmd (cmd->conn, cmd, (unsigned char *)hdr, hdr->cmdsn); -if (cmdsn_ret ==CMDSN_ERROR_CANNOT_RECOVER ) { +if (cmdsn_ret ==CMDSN_ERROR_CANNOT_RECOVER )return -1 ; - }else if (cmdsn_ret ==CMDSN_LOWER_THAN_EXP ) { -target_put_sess_cmd (conn->sess->se_sess, &cmd->se_cmd); -return 0 ; - } -if (cmd->sense_reason) { +if (cmd->sense_reason || cmdsn_ret ==CMDSN_LOWER_THAN_EXP ) {int rc; rc = iscsit_dump_data_payload(cmd->conn,
@@ -1541,6 +1536,10 @@ int iscsit_handle_nop_out(struct iscsi_conn *conn, struct iscsi_cmd *cmd,if (hdr->itt ==RESERVED_ITT && !(hdr->opcode &ISCSI_OP_IMMEDIATE )) {pr_err ("NOPOUT ITT is reserved, but Immediate Bit is" " not set, protocol error.\n" ); +if (!cmd) +return iscsit_add_reject (conn,ISCSI_REASON_PROTOCOL_ERROR , + (unsigned char *)hdr); +return iscsit_reject_cmd (cmd,ISCSI_REASON_PROTOCOL_ERROR , (unsigned char *)hdr); }
@@ -1550,6 +1549,10 @@ int iscsit_handle_nop_out(struct iscsi_conn *conn, struct iscsi_cmd *cmd," greater than MaxXmitDataSegmentLength: %u, protocol" " error.\n" , payload_length, conn->conn_ops->MaxXmitDataSegmentLength); +if (!cmd) +return iscsit_add_reject (conn,ISCSI_REASON_PROTOCOL_ERROR , + (unsigned char *)hdr); +return iscsit_reject_cmd (cmd,ISCSI_REASON_PROTOCOL_ERROR , (unsigned char *)hdr); }
drivers/target/iscsi/iscsi_target_login.c +4 -5
@@ -1163,12 +1163,11 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)if (np->np_thread_state ==ISCSI_NP_THREAD_RESET ) {spin_unlock_bh (&np->np_thread_lock);complete (&np->np_restart_comp); -if (ret == -ENODEV ) { -iscsit_put_transport (conn->conn_transport); -kfree (conn); - conn =NULL ; +iscsit_put_transport (conn->conn_transport); +kfree (conn); + conn =NULL ; +if (ret == -ENODEV ) goto out; - }/* Get another socket */ return 1 ; }
drivers/target/target_core_spc.c +6 -3
@@ -97,9 +97,12 @@ spc_emulate_inquiry_std(struct se_cmd *cmd, unsigned char *buf) buf[7 ] =0x2 ;/* CmdQue=1 */ -snprintf (&buf[8 ],8 ,"LIO-ORG" ); -snprintf (&buf[16 ],16 ,"%s" , dev->t10_wwn.model); -snprintf (&buf[32 ],4 ,"%s" , dev->t10_wwn.revision); +memcpy (&buf[8 ],"LIO-ORG " ,8 ); +memset (&buf[16 ],0x20 ,16 ); +memcpy (&buf[16 ], dev->t10_wwn.model, +min_t (size_t,strlen (dev->t10_wwn.model),16 )); +memcpy (&buf[32 ], dev->t10_wwn.revision, +min_t (size_t,strlen (dev->t10_wwn.revision),4 )); buf[4 ] =31 ;/* Set additional length to 31 */ return 0 ;
drivers/tty/hvc/hvsi_lib.c +2 -2
@@ -341,8 +341,8 @@ void hvsilib_establish(struct hvsi_priv *pv)pr_devel ("HVSI@%x: ... waiting handshake\n" , pv->termno); -/* Try for up to 200s */ -for (timeout =0 ; timeout <20 ; timeout++) { +/* Try for up to 400ms */ +for (timeout =0 ; timeout <40 ; timeout++) {if (pv->established) goto established;if (!hvsi_get_packet (pv))
drivers/usb/gadget/f_acm.c +1 -0
@@ -285,6 +285,7 @@ static struct usb_string acm_string_defs[] = { [ACM_CTRL_IDX].s = "CDC Abstract Control Model (ACM)", [ACM_DATA_IDX].s = "CDC ACM Data", [ACM_IAD_IDX ].s = "CDC Serial", + { }/* end of list */ };static struct usb_gadget_strings acm_string_table = {
fs/jfs/jfs_dtree.c +23 -8
@@ -3047,6 +3047,14 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir) dir_index = (u32 ) filp->f_pos; +/* +* NFSv4 reserves cookies 1 and 2 for . and .. so we add +* the value we return to the vfs is one greater than the +* one we use internally. +*/ +if (dir_index) + dir_index--; +if (dir_index >1 ) {struct dir_table_slot dirtab_slot;
@@ -3086,7 +3094,7 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)if (p->header.flag &BT_INTERNAL ) {jfs_err ("jfs_readdir: bad index table" );DT_PUTPAGE (mp); - filp->f_pos =-1 ; + filp->f_pos =DIREND ;return 0 ; } }else {
@@ -3094,7 +3102,7 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)/* * self "." */ - filp->f_pos =0 ; + filp->f_pos =1 ;if (filldir (dirent,"." ,1 ,0 , ip->i_ino,DT_DIR ))return 0 ;
@@ -3102,7 +3110,7 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)/* * parent ".." */ - filp->f_pos =1 ; + filp->f_pos =2 ;if (filldir (dirent,".." ,2 ,1 ,PARENT (ip),DT_DIR ))return 0 ;
@@ -3123,24 +3131,25 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir)/* * Legacy filesystem - OS/2 & Linux JFS < 0.3.6 * -* pn = index = 0: First entry "." -* pn = 0; index = 1: Second entry ".." +* pn = 0; index = 1: First entry "." +* pn = 0; index = 2: Second entry ".." * pn > 0: Real entries, pn=1 -> leftmost page * pn = index = -1: No more entries */ dtpos = filp->f_pos; -if (dtpos ==0 ) { +if (dtpos <2 ) {/* build "." entry */ + filp->f_pos =1 ;if (filldir (dirent,"." ,1 , filp->f_pos, ip->i_ino,DT_DIR ))return 0 ; - dtoffset->index =1 ; + dtoffset->index =2 ; filp->f_pos = dtpos; }if (dtoffset->pn ==0 ) { -if (dtoffset->index ==1 ) { +if (dtoffset->index ==2 ) {/* build ".." entry */ if (filldir(dirent, "..", 2, filp->f_pos,
@@ -3233,6 +3242,12 @@ int jfs_readdir(struct file *filp, void *dirent, filldir_t filldir) } jfs_dirent->position = unique_pos++; } +/* +* We add 1 to the index because we may +* use a value of 2 internally, and NFSv4 +* doesn't like that. +*/ + jfs_dirent->position++; }else { jfs_dirent->position = dtpos; len =min (d_namleft,DTLHDRDATALEN_LEGACY );
include/linux/regmap.h +1 -0
@@ -16,6 +16,7 @@#include <linux/list.h> #include <linux/rbtree.h> #include <linux/err.h> +#include <linux/bug.h> struct module ;struct device ;
include/net/mac80211.h +1 -0
@@ -1484,6 +1484,7 @@ enum ieee80211_hw_flags {IEEE80211_HW_SUPPORTS_RC_TABLE =1 <<24 ,IEEE80211_HW_P2P_DEV_ADDR_FOR_INTF =1 <<25 ,IEEE80211_HW_TIMING_BEACON_ONLY =1 <<26 , + IEEE80211_HW_SUPPORTS_HT_CCK_RATES = 1<<27, };/**
ipc/msg.c +3 -2
@@ -795,7 +795,7 @@ static inline void free_copy(struct msg_msg *copy)static struct msg_msg *find_msg (struct msg_queue *msq,long *msgtyp,int mode) { -struct msg_msg *msg; +struct msg_msg *msg, *found =NULL ;long count =0 ;list_for_each_entry (msg, &msq->q_messages, m_list) {
@@ -804,6 +804,7 @@ static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode) *msgtyp, mode)) {if (mode ==SEARCH_LESSEQUAL && msg->m_type !=1 ) { *msgtyp = msg->m_type -1 ; + found = msg; }else if (mode ==SEARCH_NUMBER ) {if (*msgtyp == count)return msg;
@@ -813,7 +814,7 @@ static struct msg_msg *find_msg(struct msg_queue *msq, long *msgtyp, int mode) } } -return ERR_PTR (-EAGAIN ); +return found ?:ERR_PTR (-EAGAIN ); }
kernel/time/timer_list.c +24 -17
67 lines not on this page · raw message
kernel/workqueue.c +9 -0
@@ -2188,6 +2188,15 @@ __acquires(&pool->lock)dump_stack (); } +/* +* The following prevents a kworker from hogging CPU on !PREEMPT +* kernels, where a requeueing work item waiting for something to +* happen could deadlock with stop_machine as such work item could +* indefinitely requeue itself while all other CPUs are trapped in +* stop_machine. +*/ +cond_resched (); +spin_lock_irq (&pool->lock);/* clear cpu intensive status */
mm/slab.h +2 -0
@@ -162,6 +162,8 @@ static inline const char *cache_name(struct kmem_cache *s)static inline struct kmem_cache *cache_from_memcg (struct kmem_cache *s,int idx) { +if (!s->memcg_params) +return NULL ;return s->memcg_params->memcg_caches[idx]; }
net/mac80211/ibss.c +1 -0
@@ -1166,6 +1166,7 @@ int ieee80211_ibss_leave(struct ieee80211_sub_if_data *sdata)clear_bit (SDATA_STATE_OFFCHANNEL_BEACON_STOPPED , &sdata->state);ieee80211_bss_info_change_notify (sdata,BSS_CHANGED_BEACON_ENABLED |BSS_CHANGED_IBSS ); +ieee80211_vif_release_channel (sdata);synchronize_rcu ();kfree (presp);
net/mac80211/rc80211_minstrel_ht.c +3 -0
@@ -828,6 +828,9 @@ minstrel_ht_update_cck(struct minstrel_priv *mp, struct minstrel_ht_sta *mi,if (sband->band !=IEEE80211_BAND_2GHZ )return ; +if (!(mp->hw->flags &IEEE80211_HW_SUPPORTS_HT_CCK_RATES )) +return ; + mi->cck_supported =0 ; mi->cck_supported_short =0 ;for (i =0 ; i <4 ; i++) {
net/sunrpc/xdr.c +6 -3
@@ -207,10 +207,13 @@ _shift_data_right_pages(struct page **pages, size_t pgto_base, pgfrom_base -= copy; vto =kmap_atomic (*pgto); - vfrom =kmap_atomic (*pgfrom); -memmove (vto + pgto_base, vfrom + pgfrom_base, copy); +if (*pgto != *pgfrom) { + vfrom =kmap_atomic (*pgfrom); +memcpy (vto + pgto_base, vfrom + pgfrom_base, copy); +kunmap_atomic (vfrom); + }else +memmove (vto + pgto_base, vto + pgfrom_base, copy);flush_dcache_page (*pgto); -kunmap_atomic (vfrom);kunmap_atomic (vto); }while ((len -= copy) !=0 );
sound/isa/opti9xx/opti92x-ad1848.c +2 -6
@@ -173,11 +173,7 @@ MODULE_DEVICE_TABLE(pnp_card, snd_opti9xx_pnpids);#endif /* CONFIG_PNP */ -#ifdef OPTi93X -#define DEV_NAME "opti93x" -#else -#define DEV_NAME "opti92x" -#endif +#define DEV_NAME KBUILD_MODNAMEstatic char * snd_opti9xx_names[] = {"unknown" ,
@@ -1168,7 +1164,7 @@ static int snd_opti9xx_pnp_resume(struct pnp_card_link *pcard)static struct pnp_card_driver opti9xx_pnpc_driver = { .flags =PNP_DRIVER_RES_DISABLE , - .name ="opti9xx" , + .name =DEV_NAME , .id_table = snd_opti9xx_pnpids, .probe = snd_opti9xx_pnp_probe, .remove = snd_opti9xx_pnp_remove,
sound/pci/hda/patch_hdmi.c +3 -0
@@ -1715,6 +1715,9 @@ static int generic_hdmi_build_controls(struct hda_codec *codec)struct snd_pcm_chmap *chmap;struct snd_kcontrol *kctl;int i; + +if (!codec->pcm_info[pin_idx].pcm) +break ; err =snd_pcm_add_chmap_ctls (codec->pcm_info[pin_idx].pcm,SNDRV_PCM_STREAM_PLAYBACK ,NULL ,0 , pin_idx, &chmap);
sound/pci/hda/patch_realtek.c +1 -0
@@ -4207,6 +4207,7 @@ static const struct hda_fixup alc662_fixups[] = {static const struct snd_pci_quirk alc662_fixup_tbl[] = {SND_PCI_QUIRK (0x1019 ,0x9087 ,"ECS" ,ALC662_FIXUP_ASUS_MODE2 ), +SND_PCI_QUIRK (0x1025 ,0x022f ,"Acer Aspire One" ,ALC662_FIXUP_INV_DMIC ),SND_PCI_QUIRK (0x1025 ,0x0308 ,"Acer Aspire 8942G" ,ALC662_FIXUP_ASPIRE ),SND_PCI_QUIRK (0x1025 ,0x031c ,"Gateway NV79" ,ALC662_FIXUP_SKU_IGNORE ),SND_PCI_QUIRK (0x1025 ,0x0349 ,"eMachines eM250" ,ALC662_FIXUP_INV_DMIC ),