Linux 3.0.21
Greg KH
maintainerI'm announcing the release of the 3.0.21 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/kernel/ptrace.c | 8 - arch/arm/kernel/signal.c | 5 arch/arm/mach-omap2/gpmc.c | 6 + drivers/cpufreq/powernow-k8.c | 30 +++-- drivers/dma/at_hdmac.c | 4 drivers/dma/at_hdmac_regs.h | 17 +-- drivers/firewire/ohci.c | 6 - drivers/gpu/drm/i915/i915_drv.h | 2 drivers/gpu/drm/i915/i915_irq.c | 13 +- drivers/gpu/drm/i915/i915_suspend.c | 4 drivers/gpu/drm/i915/intel_dp.c | 1 drivers/gpu/drm/i915/intel_hdmi.c | 8 + drivers/gpu/drm/i915/intel_tv.c | 16 +-- drivers/gpu/drm/nouveau/nouveau_gem.c | 23 ++++ drivers/gpu/drm/radeon/atombios_crtc.c | 4 drivers/gpu/drm/radeon/radeon_device.c | 4 drivers/hwmon/w83627ehf.c | 26 ++++- drivers/infiniband/core/addr.c | 16 +-- drivers/infiniband/hw/cxgb3/iwch_cm.c | 16 ++- drivers/infiniband/hw/cxgb4/cm.c | 46 ++++---- drivers/infiniband/hw/mlx4/mad.c | 7 - drivers/infiniband/hw/mlx4/qp.c | 2 drivers/infiniband/hw/nes/nes_cm.c | 8 - drivers/infiniband/ulp/ipoib/ipoib_main.c | 59 +++++++---- drivers/infiniband/ulp/ipoib/ipoib_multicast.c | 24 +++- drivers/misc/cb710/core.c | 1 drivers/net/cxgb3/cxgb3_offload.c | 8 - drivers/pcmcia/ds.c | 4 drivers/s390/net/qeth_l3_main.c | 25 +++- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 2 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c | 2 drivers/scsi/cxgbi/libcxgbi.c | 4 drivers/staging/asus_oled/asus_oled.c | 13 +- drivers/staging/rtl8712/usb_intf.c | 1 drivers/target/target_core_pr.c | 5 drivers/target/target_core_transport.c | 8 - drivers/tty/vt/vt_ioctl.c | 1 drivers/usb/gadget/f_loopback.c | 2 drivers/usb/host/pci-quirks.c | 6 + drivers/usb/serial/ftdi_sio.c | 1 drivers/usb/serial/ftdi_sio_ids.h | 7 + drivers/usb/serial/option.c | 129 ++++++++++++++++++++++++- drivers/video/atmel_lcdfb.c | 2 fs/cifs/sess.c | 7 - fs/ecryptfs/read_write.c | 4 fs/proc/base.c | 106 ++++++++------------ fs/udf/super.c | 6 + include/net/arp.h | 1 include/net/dst.h | 27 ++++- kernel/kprobes.c | 6 - kernel/panic.c | 12 +- kernel/sched_rt.c | 5 mm/compaction.c | 24 ++++ mm/filemap.c | 8 - mm/filemap_xip.c | 7 + mm/huge_memory.c | 4 mm/swap.c | 2 net/atm/clip.c | 16 +-- net/bridge/br_netfilter.c | 6 - net/core/dst.c | 15 +- net/core/neighbour.c | 19 ++- net/decnet/dn_neigh.c | 8 - net/decnet/dn_route.c | 18 +-- net/ipv4/arp.c | 28 +++-- net/ipv4/ip_gre.c | 2 net/ipv4/ip_output.c | 22 +++- net/ipv4/route.c | 31 +++--- net/ipv6/addrconf.c | 2 net/ipv6/ip6_fib.c | 2 net/ipv6/ip6_output.c | 40 ++++++- net/ipv6/ndisc.c | 4 net/ipv6/route.c | 59 +++++++---- net/ipv6/sit.c | 4 net/sched/sch_teql.c | 31 +++--- net/xfrm/xfrm_policy.c | 2 sound/pci/hda/hda_codec.c | 2 sound/soc/codecs/wm8962.c | 6 - sound/soc/codecs/wm_hubs.c | 18 ++- sound/soc/soc-core.c | 18 ++- 80 files changed, 797 insertions(+), 353 deletions(-)
Andreas Herrmann (2):
powernow-k8: Avoid Pstate MSR accesses on systems supporting CPB
powernow-k8: Fix indexing issue
Axel Lin (1):
mmc: cb710 core: Add missing spin_lock_init for irq_lock of struct cb710_chip
Ben Skeggs (1):
drm/nouveau/gem: fix fence_sync race / oops
Carsten Otte (1):
mm/filemap_xip.c: fix race condition in xip_file_fault()
Chanho Min (1):
sched/rt: Fix task stack corruption under __ARCH_WANT_INTERRUPTS_ON_CTXSW
Clemens Ladisch (1):
firewire: ohci: add reset packet quirk for SB Audigy
Daniel Vetter (1):
drm/i915: check ACTHD of all rings
Dave Martin (1):
ARM: 7307/1: vfp: fix ptrace regset modification race
David Henningsson (1):
ALSA: HDA: Fix duplicated output to more than one codec
Eric Dumazet (1):
net: fix NULL dereferences in check_peer_redir()
Eugeni Dodonov (1):
drm/i915: handle 3rd pipe
Greg Kroah-Hartman (1):
Linux 3.0.21
Guenter Roeck (1):
hwmon: (w83627ehf) Fix number of fans for NCT6776F
Hubert Feurstein (1):
atmel_lcdfb: fix usage of CONTRAST_CTR in suspend/resume
Hugh Dickins (1):
mm: fix UP THP spin_is_locked BUGs
Jack Morgenstein (1):
IB/mlx4: pass SMP vendor-specific attribute MADs to firmware
Jan Kara (1):
udf: Mark LVID buffer as uptodate before marking it dirty
Jayachandran C (1):
usb: Skip PCI USB quirk handling for Netlogic XLP
Jiang Liu (1):
kprobes: fix a memory leak in function pre_handler_kretprobe()
Larry Finger (1):
staging: r8712u: Add new Sitecom UsB ID
Li Wang (1):
eCryptfs: Infinite loop due to overflow in ecryptfs_write()
Marco Sanvido (2):
target: Use correct preempted registration sense code
target: Allow PERSISTENT RESERVE IN for non-reservation holder
Mark Brown (4):
ASoC: wm_hubs: Enable line out VMID buffer for single ended line outputs
ASoC: Ensure we generate a driver name
ASoC: wm_hubs: Fix routing of input PGAs to line output mixer
ASoC: wm_hubs: Correct line input to line output 2 paths
Mel Gorman (2):
mm: compaction: check pfn_valid when entering a new MAX_ORDER_NR_PAGES block during isolation for migration
mm: compaction: check for overlapping nodes during isolation for migration
Michel Dänzer (1):
drm/radeon: Set DESKTOP_HEIGHT register to the framebuffer (not mode) height.
Milan Kocian (1):
USB: usbserial: add new PID number (0xa951) to the ftdi driver
Nikolaus Voss (1):
at_hdmac: bugfix for enabling channel irq
Oleg Nesterov (3):
proc: mem_release() should check mm != NULL
proc: unify mem_read() and mem_write()
proc: make sure mem_open() doesn't pin the target's memory
Pekka Paalanen (2):
Staging: asus_oled: fix image processing
Staging: asus_oled: fix NULL-ptr crash on unloading
Peter Zijlstra (1):
lockdep, bug: Exclude TAINT_FIRMWARE_WORKAROUND from disabling lockdep
Rodrigo Vivi (1):
drm/i915: Fix TV Out refresh rate.
Roland Dreier (1):
target: Correct sense key for INVALID FIELD IN {PARAMETER LIST,CDB}Rui li (1):
USB: add new zte 3g-dongle's pid to option.c
Russell King (1):
pcmcia: fix socket refcount decrementing on each resume
Samuel Thibault (1):
drivers/tty/vt/vt_ioctl.c: fix KDFONTOP 32bit compatibility layer
Seth Forshee (1):
drm/radeon/kms: disable output polling when suspended
Shaohua Li (1):
readahead: fix pipeline break caused by block plug
Shirish Pargaonkar (1):
cifs: Fix oops in session setup code for null user mounts
Stefan Richter (1):
firewire: ohci: disable MSI on Ricoh controllers
Susan Gao (1):
ASoC: wm8962: Fix word length configuration
Timo Juhani Lindfors (1):
usb: gadget: zero: fix bug in loopback autoresume handling
UK KIM (1):
ASoC: wm_hubs: fix wrong bits for LINEOUT2 N/P mixer
Will Deacon (2):
ARM: 7306/1: vfp: flush thread hwstate before restoring context from sigframe
ARM: 7308/1: vfp: flush thread hwstate before copying ptrace registers
Wu Fengguang (2):
drm/i915: HDMI hot remove notification to audio driver drm/i915: DisplayPort hot remove notification to audio driver
Yegor Yefremov (1):
ARM: OMAP2+: GPMC: fix device size setup
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 20 +SUBLEVEL = 21 EXTRAVERSION = NAME = Sneaky Weasel
arch/arm/kernel/ptrace.c +5 -3
@@ -719,10 +719,13 @@ static int vfp_set(struct task_struct *target, {int ret;struct thread_info *thread =task_thread_info (target); -struct vfp_hard_struct new_vfp = thread->vfpstate.hard; +struct vfp_hard_struct new_vfp;const size_t user_fpregs_offset = offsetof(struct user_vfp , fpregs);const size_t user_fpscr_offset = offsetof(struct user_vfp , fpscr); +vfp_sync_hwstate (thread); + new_vfp = thread->vfpstate.hard; + ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &new_vfp.fpregs, user_fpregs_offset,
@@ -743,9 +746,8 @@ static int vfp_set(struct task_struct *target,if (ret)return ret; -vfp_sync_hwstate (thread); - thread->vfpstate.hard = new_vfp;vfp_flush_hwstate (thread); + thread->vfpstate.hard = new_vfp;return 0 ; }
arch/arm/kernel/signal.c +2 -3
@@ -227,6 +227,8 @@ static int restore_vfp_context(struct vfp_sigframe __user *frame)if (magic !=VFP_MAGIC || size !=VFP_STORAGE_SIZE )return -EINVAL ; +vfp_flush_hwstate (thread); +/* * Copy the floating point registers. There can be unused * registers see asm/hwcap.h for details.
@@ -251,9 +253,6 @@ static int restore_vfp_context(struct vfp_sigframe __user *frame)__get_user_error (h->fpinst, &frame->ufp_exc.fpinst, err);__get_user_error (h->fpinst2, &frame->ufp_exc.fpinst2, err); -if (!err) -vfp_flush_hwstate (thread); -return err ? -EFAULT :0 ; }
arch/arm/mach-omap2/gpmc.c +6 -0
@@ -528,7 +528,13 @@ int gpmc_cs_configure(int cs, int cmd, int wval)case GPMC_CONFIG_DEV_SIZE : regval =gpmc_cs_read_reg (cs,GPMC_CS_CONFIG1 ); + +/* clear 2 target bits */ + regval &= ~GPMC_CONFIG1_DEVICESIZE (3 ); + +/* set the proper value */ regval |=GPMC_CONFIG1_DEVICESIZE (wval); +gpmc_cs_write_reg (cs,GPMC_CS_CONFIG1 , regval);break ;
drivers/cpufreq/powernow-k8.c +19 -11
@@ -54,6 +54,9 @@ static DEFINE_PER_CPU(struct powernow_k8_data *, powernow_data);static int cpu_family =CPU_OPTERON ; +/* array to map SW pstate number to acpi state */ +static u32 ps_to_as[8 ]; +/* core performance boost */ static bool cpb_capable, cpb_enabled;static struct msr __percpu *msrs;
@@ -80,9 +83,9 @@ static u32 find_khz_freq_from_fid(u32 fid) }static u32 find_khz_freq_from_pstate (struct cpufreq_frequency_table *data, -u32 pstate) +u32 pstate) { -return data[pstate].frequency; +return data[ps_to_as[pstate]].frequency; }/* Return the vco fid for an input fid
@@ -926,23 +929,27 @@ static int fill_powernow_table_pstate(struct powernow_k8_data *data,invalidate_entry (powernow_table, i);continue ; } -rdmsr (MSR_PSTATE_DEF_BASE + index, lo, hi); -if (!(hi &HW_PSTATE_VALID_MASK )) { -pr_debug ("invalid pstate %d, ignoring\n" , index); -invalidate_entry (powernow_table, i); -continue ; - } - powernow_table[i].index = index; + ps_to_as[index] = i;/* Frequency may be rounded for these */ if ((boot_cpu_data.x86 ==0x10 && boot_cpu_data.x86_model <10 ) || boot_cpu_data.x86 ==0x11 ) { + +rdmsr (MSR_PSTATE_DEF_BASE + index, lo, hi); +if (!(hi &HW_PSTATE_VALID_MASK )) { +pr_debug ("invalid pstate %d, ignoring\n" , index); +invalidate_entry (powernow_table, i); +continue ; + } + powernow_table[i].frequency =freq_from_fid_did (lo &0x3f , (lo >>6 ) &7 ); }else powernow_table[i].frequency = data->acpi_data.states[i].core_frequency *1000 ; + + powernow_table[i].index = index; }return 0 ; }
@@ -1189,7 +1196,8 @@ static int powernowk8_target(struct cpufreq_policy *pol,powernow_k8_acpi_pst_values (data, newstate);if (cpu_family ==CPU_HW_PSTATE ) - ret =transition_frequency_pstate (data, newstate); + ret =transition_frequency_pstate (data, + data->powernow_table[newstate].index);else ret =transition_frequency_fidvid (data, newstate);if (ret) {
@@ -1202,7 +1210,7 @@ static int powernowk8_target(struct cpufreq_policy *pol,if (cpu_family ==CPU_HW_PSTATE ) pol->cur =find_khz_freq_from_pstate (data->powernow_table, - newstate); + data->powernow_table[newstate].index);else pol->cur =find_khz_freq_from_fid (data->currfid); ret =0 ;
drivers/dma/at_hdmac.c +2 -2
@@ -1279,7 +1279,7 @@ static int __init at_dma_probe(struct platform_device *pdev)tasklet_init (&atchan->tasklet, atc_tasklet, (unsigned long )atchan); -atc_enable_irq (atchan); +atc_enable_chan_irq (atdma, i); }/* set base routines */
@@ -1348,7 +1348,7 @@ static int __exit at_dma_remove(struct platform_device *pdev)struct at_dma_chan *atchan =to_at_dma_chan (chan);/* Disable interrupts */ -atc_disable_irq (atchan); +atc_disable_chan_irq (atdma, chan->chan_id);tasklet_disable (&atchan->tasklet);tasklet_kill (&atchan->tasklet);
drivers/dma/at_hdmac_regs.h +8 -9
@@ -319,28 +319,27 @@ static void atc_dump_lli(struct at_dma_chan *atchan, struct at_lli *lli) } -static void atc_setup_irq (struct at_dma_chan *atchan,int on) +static void atc_setup_irq (struct at_dma *atdma,int chan_id,int on) { -struct at_dma *atdma =to_at_dma (atchan->chan_common.device); -u32 ebci; +u32 ebci;/* enable interrupts on buffer transfer completion & error */ - ebci =AT_DMA_BTC (atchan->chan_common.chan_id) - |AT_DMA_ERR (atchan->chan_common.chan_id); + ebci =AT_DMA_BTC (chan_id) + |AT_DMA_ERR (chan_id);if (on)dma_writel (atdma,EBCIER , ebci);else dma_writel (atdma,EBCIDR , ebci); } -static inline void atc_enable_irq (struct at_dma_chan *atchan) +static void atc_enable_chan_irq (struct at_dma *atdma,int chan_id) { -atc_setup_irq (atchan,1 ); +atc_setup_irq (atdma, chan_id,1 ); } -static inline void atc_disable_irq (struct at_dma_chan *atchan) +static void atc_disable_chan_irq (struct at_dma *atdma,int chan_id) { -atc_setup_irq (atchan,0 ); +atc_setup_irq (atdma, chan_id,0 ); }
drivers/firewire/ohci.c +5 -1
@@ -262,6 +262,7 @@ static inline struct fw_ohci *fw_ohci(struct fw_card *card)static char ohci_driver_name[] =KBUILD_MODNAME ;#define PCI_DEVICE_ID_AGERE_FW643 0x5901 +#define PCI_DEVICE_ID_CREATIVE_SB1394 0x4001#define PCI_DEVICE_ID_JMICRON_JMB38X_FW 0x2380#define PCI_DEVICE_ID_TI_TSB12LV22 0x8009#define PCI_VENDOR_ID_PINNACLE_SYSTEMS 0x11bd
@@ -285,6 +286,9 @@ static const struct { {PCI_VENDOR_ID_ATT ,PCI_DEVICE_ID_AGERE_FW643 ,6 , QUIRK_NO_MSI}, + {PCI_VENDOR_ID_CREATIVE, PCI_DEVICE_ID_CREATIVE_SB1394, PCI_ANY_ID, + QUIRK_RESET_PACKET}, + {PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB38X_FW, PCI_ANY_ID, QUIRK_NO_MSI},
@@ -295,7 +299,7 @@ static const struct { QUIRK_NO_MSI}, {PCI_VENDOR_ID_RICOH ,PCI_ANY_ID ,PCI_ANY_ID , - QUIRK_CYCLE_TIMER}, + QUIRK_CYCLE_TIMER | QUIRK_NO_MSI}, {PCI_VENDOR_ID_TI, PCI_DEVICE_ID_TI_TSB12LV22, PCI_ANY_ID, QUIRK_CYCLE_TIMER | QUIRK_RESET_PACKET | QUIRK_NO_1394A},
drivers/gpu/drm/i915/i915_drv.h +2 -0
@@ -325,6 +325,8 @@ typedef struct drm_i915_private {struct timer_list hangcheck_timer;int hangcheck_count;uint32_t last_acthd; +uint32_t last_acthd_bsd; +uint32_t last_acthd_blt;uint32_t last_instdone;uint32_t last_instdone1;
drivers/gpu/drm/i915/i915_irq.c +10 -3
@@ -1665,7 +1665,7 @@ void i915_hangcheck_elapsed(unsigned long data) {struct drm_device *dev = (struct drm_device *)data;drm_i915_private_t *dev_priv = dev->dev_private; -uint32_t acthd, instdone, instdone1; +uint32_t acthd, instdone, instdone1, acthd_bsd, acthd_blt;bool err = false;/* If all work is done then ACTHD clearly hasn't advanced. */
@@ -1679,16 +1679,21 @@ void i915_hangcheck_elapsed(unsigned long data) }if (INTEL_INFO (dev)->gen <4 ) { - acthd =I915_READ (ACTHD ); instdone =I915_READ (INSTDONE ); instdone1 =0 ; }else { - acthd =I915_READ (ACTHD_I965 ); instdone =I915_READ (INSTDONE_I965 ); instdone1 =I915_READ (INSTDONE1 ); } + acthd =intel_ring_get_active_head (&dev_priv->ring[RCS ]); + acthd_bsd =HAS_BSD (dev) ? +intel_ring_get_active_head (&dev_priv->ring[VCS ]) :0 ; + acthd_blt =HAS_BLT (dev) ? +intel_ring_get_active_head (&dev_priv->ring[BCS ]) :0 ;if (dev_priv->last_acthd == acthd && + dev_priv->last_acthd_bsd == acthd_bsd && + dev_priv->last_acthd_blt == acthd_blt && dev_priv->last_instdone == instdone && dev_priv->last_instdone1 == instdone1) {if (dev_priv->hangcheck_count++ >1 ) {
@@ -1720,6 +1725,8 @@ void i915_hangcheck_elapsed(unsigned long data) dev_priv->hangcheck_count =0 ; dev_priv->last_acthd = acthd; + dev_priv->last_acthd_bsd = acthd_bsd; + dev_priv->last_acthd_blt = acthd_blt; dev_priv->last_instdone = instdone; dev_priv->last_instdone1 = instdone1; }
drivers/gpu/drm/i915/i915_suspend.c +4 -0
@@ -34,6 +34,10 @@ static bool i915_pipe_enabled(struct drm_device *dev, enum pipe pipe)struct drm_i915_private *dev_priv = dev->dev_private;u32 dpll_reg; +/* On IVB, 3rd pipe shares PLL with another one */ +if (pipe >1 ) +return false; +if (HAS_PCH_SPLIT (dev)) dpll_reg = (pipe ==PIPE_A ) ? _PCH_DPLL_A : _PCH_DPLL_B;else
drivers/gpu/drm/i915/intel_dp.c +1 -0
@@ -1554,6 +1554,7 @@ intel_dp_link_down(struct intel_dp *intel_dp)intel_wait_for_vblank (dev,to_intel_crtc (crtc)->pipe); } +DP &= ~DP_AUDIO_OUTPUT_ENABLE ;I915_WRITE (intel_dp->output_reg,DP & ~DP_PORT_EN );POSTING_READ (intel_dp->output_reg); }
drivers/gpu/drm/i915/intel_hdmi.c +6 -2
@@ -158,6 +158,10 @@ static void intel_hdmi_dpms(struct drm_encoder *encoder, int mode)struct drm_i915_private *dev_priv = dev->dev_private;struct intel_hdmi *intel_hdmi =enc_to_intel_hdmi (encoder);u32 temp; +u32 enable_bits =SDVO_ENABLE ; + +if (intel_hdmi->has_audio) + enable_bits |=SDVO_AUDIO_ENABLE ; temp =I915_READ (intel_hdmi->sdvox_reg);
@@ -170,9 +174,9 @@ static void intel_hdmi_dpms(struct drm_encoder *encoder, int mode) }if (mode !=DRM_MODE_DPMS_ON ) { - temp &= ~SDVO_ENABLE ; + temp &= ~enable_bits; }else { - temp |=SDVO_ENABLE ; + temp |= enable_bits; }I915_WRITE (intel_hdmi->sdvox_reg, temp);
drivers/gpu/drm/i915/intel_tv.c +8 -8
@@ -417,7 +417,7 @@ static const struct tv_mode tv_modes[] = { { .name = "NTSC-M", .clock = 108000, - .refresh = 29970, + .refresh = 59940, .oversample = TV_OVERSAMPLE_8X, .component_only = 0,/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 3.580MHz */
@@ -460,7 +460,7 @@ static const struct tv_mode tv_modes[] = { { .name = "NTSC-443", .clock = 108000, - .refresh = 29970, + .refresh = 59940, .oversample = TV_OVERSAMPLE_8X, .component_only = 0,/* 525 Lines, 60 Fields, 15.734KHz line, Sub-Carrier 4.43MHz */
@@ -502,7 +502,7 @@ static const struct tv_mode tv_modes[] = { { .name = "NTSC-J", .clock = 108000, - .refresh = 29970, + .refresh = 59940, .oversample = TV_OVERSAMPLE_8X, .component_only = 0,
@@ -545,7 +545,7 @@ static const struct tv_mode tv_modes[] = { { .name = "PAL-M", .clock = 108000, - .refresh = 29970, + .refresh = 59940, .oversample = TV_OVERSAMPLE_8X, .component_only = 0,
@@ -589,7 +589,7 @@ static const struct tv_mode tv_modes[] = {/* 625 Lines, 50 Fields, 15.625KHz line, Sub-Carrier 4.434MHz */ .name = "PAL-N", .clock = 108000, - .refresh = 25000, + .refresh = 50000, .oversample = TV_OVERSAMPLE_8X, .component_only = 0,
@@ -634,7 +634,7 @@ static const struct tv_mode tv_modes[] = {/* 625 Lines, 50 Fields, 15.625KHz line, Sub-Carrier 4.434MHz */ .name = "PAL", .clock = 108000, - .refresh = 25000, + .refresh = 50000, .oversample = TV_OVERSAMPLE_8X, .component_only = 0,
@@ -821,7 +821,7 @@ static const struct tv_mode tv_modes[] = { { .name = "1080i@50Hz", .clock = 148800, - .refresh = 25000, + .refresh = 50000, .oversample = TV_OVERSAMPLE_2X, .component_only = 1,
@@ -847,7 +847,7 @@ static const struct tv_mode tv_modes[] = { { .name = "1080i@60Hz", .clock = 148800, - .refresh = 30000, + .refresh = 60000, .oversample = TV_OVERSAMPLE_2X, .component_only = 1,
drivers/gpu/drm/nouveau/nouveau_gem.c +21 -2
@@ -315,6 +315,25 @@ retry: }static int +validate_sync (struct nouveau_channel *chan,struct nouveau_bo *nvbo) +{ +struct nouveau_fence *fence =NULL ; +int ret =0 ; + +spin_lock (&nvbo->bo.bdev->fence_lock); +if (nvbo->bo.sync_obj) + fence =nouveau_fence_ref (nvbo->bo.sync_obj); +spin_unlock (&nvbo->bo.bdev->fence_lock); + +if (fence) { + ret =nouveau_fence_sync (fence, chan); +nouveau_fence_unref (&fence); + } + +return ret; +} + +static int validate_list (struct nouveau_channel *chan,struct list_head *list,struct drm_nouveau_gem_pushbuf_bo *pbbo,uint64_t user_pbbo_ptr) {
@@ -327,7 +346,7 @@ validate_list(struct nouveau_channel *chan, struct list_head *list,list_for_each_entry (nvbo, list, entry) {struct drm_nouveau_gem_pushbuf_bo *b = &pbbo[nvbo->pbbo_index]; - ret =nouveau_fence_sync (nvbo->bo.sync_obj, chan); + ret =validate_sync (chan, nvbo);if (unlikely (ret)) {NV_ERROR (dev,"fail pre-validate sync\n" );return ret;
@@ -350,7 +369,7 @@ validate_list(struct nouveau_channel *chan, struct list_head *list,return ret; } - ret =nouveau_fence_sync (nvbo->bo.sync_obj, chan); + ret =validate_sync (chan, nvbo);if (unlikely (ret)) {NV_ERROR (dev,"fail post-validate sync\n" );return ret;
drivers/gpu/drm/radeon/atombios_crtc.c +2 -2
@@ -1173,7 +1173,7 @@ static int dce4_crtc_do_set_base(struct drm_crtc *crtc,WREG32 (EVERGREEN_GRPH_ENABLE + radeon_crtc->crtc_offset,1 );WREG32 (EVERGREEN_DESKTOP_HEIGHT + radeon_crtc->crtc_offset, - crtc->mode.vdisplay); + target_fb->height); x &= ~3 ; y &= ~1 ; WREG32(EVERGREEN_VIEWPORT_START + radeon_crtc->crtc_offset,
@@ -1342,7 +1342,7 @@ static int avivo_crtc_do_set_base(struct drm_crtc *crtc,WREG32 (AVIVO_D1GRPH_ENABLE + radeon_crtc->crtc_offset,1 );WREG32 (AVIVO_D1MODE_DESKTOP_HEIGHT + radeon_crtc->crtc_offset, - crtc->mode.vdisplay); + target_fb->height); x &= ~3 ; y &= ~1 ; WREG32(AVIVO_D1MODE_VIEWPORT_START + radeon_crtc->crtc_offset,
drivers/gpu/drm/radeon/radeon_device.c +4 -0
@@ -857,6 +857,8 @@ int radeon_suspend_kms(struct drm_device *dev, pm_message_t state)if (dev->switch_power_state ==DRM_SWITCH_POWER_OFF )return 0 ; +drm_kms_helper_poll_disable (dev); +/* turn off display hw */ list_for_each_entry (connector, &dev->mode_config.connector_list, head) {drm_helper_connector_dpms (connector,DRM_MODE_DPMS_OFF );
@@ -943,6 +945,8 @@ int radeon_resume_kms(struct drm_device *dev)list_for_each_entry (connector, &dev->mode_config.connector_list, head) {drm_helper_connector_dpms (connector,DRM_MODE_DPMS_ON ); } + +drm_kms_helper_poll_enable (dev);return 0 ; }
drivers/hwmon/w83627ehf.c +23 -3
@@ -2104,9 +2104,29 @@ static int __devinit w83627ehf_probe(struct platform_device *pdev) fan4min =0 ; fan5pin =0 ; }else if (sio_data->kind == nct6776) { - fan3pin = !(superio_inb (sio_data->sioreg,0x24 ) &0x40 ); - fan4pin = !!(superio_inb (sio_data->sioreg,0x1C ) &0x01 ); - fan5pin = !!(superio_inb (sio_data->sioreg,0x1C ) &0x02 ); +bool gpok =superio_inb (sio_data->sioreg,0x27 ) &0x80 ; +u8 regval; + +superio_select (sio_data->sioreg,W83627EHF_LD_HWM ); + regval =superio_inb (sio_data->sioreg,SIO_REG_ENABLE ); + +if (regval &0x80 ) + fan3pin = gpok; +else + fan3pin = !(superio_inb (sio_data->sioreg,0x24 ) &0x40 ); + +if (regval &0x40 ) + fan4pin = gpok; +else + fan4pin = !!(superio_inb (sio_data->sioreg,0x1C ) + &0x01 ); + +if (regval &0x20 ) + fan5pin = gpok; +else + fan5pin = !!(superio_inb (sio_data->sioreg,0x1C ) + &0x02 ); + fan4min = fan4pin; }else if (sio_data->kind == w83667hg || sio_data->kind == w83667hg_b) { fan3pin =1 ;
drivers/infiniband/core/addr.c +10 -6
@@ -215,7 +215,9 @@ static int addr4_resolve(struct sockaddr_in *src_in, neigh =neigh_lookup (&arp_tbl, &rt->rt_gateway, rt->dst.dev);if (!neigh || !(neigh->nud_state &NUD_VALID )) { -neigh_event_send (rt->dst.neighbour,NULL ); +rcu_read_lock (); +neigh_event_send (dst_get_neighbour (&rt->dst),NULL ); +rcu_read_unlock (); ret = -ENODATA ;if (neigh) goto release;
@@ -273,14 +275,16 @@ static int addr6_resolve(struct sockaddr_in6 *src_in, goto put; } - neigh = dst->neighbour; +rcu_read_lock (); + neigh =dst_get_neighbour (dst);if (!neigh || !(neigh->nud_state &NUD_VALID )) { -neigh_event_send (dst->neighbour,NULL ); +if (neigh) +neigh_event_send (neigh,NULL ); ret = -ENODATA ; - goto put; + }else { + ret =rdma_copy_addr (addr, dst->dev, neigh->ha); } - - ret =rdma_copy_addr (addr, dst->dev, neigh->ha); +rcu_read_unlock (); put:dst_release (dst);return ret;
drivers/infiniband/hw/cxgb3/iwch_cm.c +12 -4
@@ -1328,6 +1328,7 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx)struct iwch_ep *child_ep, *parent_ep = ctx;struct cpl_pass_accept_req *req =cplhdr (skb);unsigned int hwtid =GET_TID (req); +struct neighbour *neigh;struct dst_entry *dst;struct l2t_entry *l2t;struct rtable *rt;
@@ -1364,7 +1365,10 @@ static int pass_accept_req(struct t3cdev *tdev, struct sk_buff *skb, void *ctx) goto reject; } dst = &rt->dst; - l2t =t3_l2t_get (tdev, dst->neighbour, dst->neighbour->dev); +rcu_read_lock (); + neigh =dst_get_neighbour (dst); + l2t =t3_l2t_get (tdev, neigh, neigh->dev); +rcu_read_unlock ();if (!l2t) { printk(KERN_ERR MOD "%s - failed to allocate l2t entry!\n", __func__);
@@ -1874,10 +1878,11 @@ static int is_loopback_dst(struct iw_cm_id *cm_id)int iwch_connect (struct iw_cm_id *cm_id,struct iw_cm_conn_param *conn_param) { -int err =0 ;struct iwch_dev *h =to_iwch_dev (cm_id->device); +struct neighbour *neigh;struct iwch_ep *ep;struct rtable *rt; +int err =0 ;if (is_loopback_dst (cm_id)) { err = -ENOSYS ;
@@ -1933,9 +1938,12 @@ int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) } ep->dst = &rt->dst; +rcu_read_lock (); + neigh =dst_get_neighbour (ep->dst); +/* get a l2t entry */ - ep->l2t =t3_l2t_get (ep->com.tdev, ep->dst->neighbour, - ep->dst->neighbour->dev); + ep->l2t =t3_l2t_get (ep->com.tdev, neigh, neigh->dev); +rcu_read_unlock ();if (!ep->l2t) { printk(KERN_ERR MOD "%s - cannot alloc l2e.\n", __func__); err = -ENOMEM ;
drivers/infiniband/hw/cxgb4/cm.c +25 -21
101 lines not on this page · raw message
drivers/infiniband/hw/mlx4/mad.c +2 -5
@@ -255,12 +255,9 @@ int mlx4_ib_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,return IB_MAD_RESULT_SUCCESS ;/* -* Don't process SMInfo queries or vendor-specific -* MADs -- the SMA can't handle them. +* Don't process SMInfo queries -- the SMA can't handle them. */ -if (in_mad->mad_hdr.attr_id ==IB_SMP_ATTR_SM_INFO || - ((in_mad->mad_hdr.attr_id &IB_SMP_ATTR_VENDOR_MASK ) == -IB_SMP_ATTR_VENDOR_MASK )) +if (in_mad->mad_hdr.attr_id ==IB_SMP_ATTR_SM_INFO )return IB_MAD_RESULT_SUCCESS ; } else if (in_mad->mad_hdr.mgmt_class == IB_MGMT_CLASS_PERF_MGMT || in_mad->mad_hdr.mgmt_class == MLX4_IB_VENDOR_CLASS1 ||
drivers/infiniband/hw/mlx4/qp.c +1 -1
@@ -1301,7 +1301,7 @@ static int build_mlx_header(struct mlx4_ib_sqp *sqp, struct ib_send_wr *wr,int is_eth;int is_vlan =0 ;int is_grh; -u16 vlan; +u16 vlan =0 ; send_size =0 ;for (i =0 ; i < wr->num_sge; ++i)
drivers/infiniband/hw/nes/nes_cm.c +5 -3
@@ -1150,9 +1150,11 @@ static int nes_addr_resolve_neigh(struct nes_vnic *nesvnic, u32 dst_ip, int arpineigh_release (neigh); } -if ((neigh ==NULL ) || (!(neigh->nud_state &NUD_VALID ))) -neigh_event_send (rt->dst.neighbour,NULL ); - +if ((neigh ==NULL ) || (!(neigh->nud_state &NUD_VALID ))) { +rcu_read_lock (); +neigh_event_send (dst_get_neighbour (&rt->dst),NULL ); +rcu_read_unlock (); + }ip_rt_put (rt);return rc; }
drivers/infiniband/ulp/ipoib/ipoib_main.c +39 -20
150 lines not on this page · raw message
drivers/infiniband/ulp/ipoib/ipoib_multicast.c +16 -8
@@ -258,11 +258,15 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,netif_tx_lock_bh (dev);while (!skb_queue_empty (&mcast->pkt_queue)) {struct sk_buff *skb =skb_dequeue (&mcast->pkt_queue); +struct dst_entry *dst =skb_dst (skb); +struct neighbour *n =NULL ; +netif_tx_unlock_bh (dev); skb->dev = dev; - -if (!skb_dst (skb) || !skb_dst (skb)->neighbour) { +if (dst) + n =dst_get_neighbour_raw (dst); +if (!dst || !n) {/* put pseudoheader back on for next time */ skb_push (skb,sizeof (struct ipoib_pseudoheader )); }
@@ -715,11 +719,15 @@ void ipoib_mcast_send(struct net_device *dev, void *mgid, struct sk_buff *skb) out:if (mcast && mcast->ah) { -if (skb_dst (skb) && -skb_dst (skb)->neighbour && - !*to_ipoib_neigh (skb_dst (skb)->neighbour)) { -struct ipoib_neigh *neigh =ipoib_neigh_alloc (skb_dst (skb)->neighbour, - skb->dev); +struct dst_entry *dst =skb_dst (skb); +struct neighbour *n =NULL ; + +rcu_read_lock (); +if (dst) + n =dst_get_neighbour (dst); +if (n && !*to_ipoib_neigh (n)) { +struct ipoib_neigh *neigh =ipoib_neigh_alloc (n, + skb->dev);if (neigh) {kref_get (&mcast->ah->ref);
@@ -727,7 +735,7 @@ out:list_add_tail (&neigh->list, &mcast->neigh_list); } } - +rcu_read_unlock ();spin_unlock_irqrestore (&priv->lock, flags);ipoib_send (dev, skb, mcast->ah,IB_MULTICAST_QPN );return ;
drivers/misc/cb710/core.c +1 -0
@@ -244,6 +244,7 @@ static int __devinit cb710_probe(struct pci_dev *pdev,if (err)return err; +spin_lock_init (&chip->irq_lock); chip->pdev = pdev; chip->iobase =pcim_iomap_table (pdev)[0 ];
drivers/net/cxgb3/cxgb3_offload.c +4 -4
@@ -971,7 +971,7 @@ static int nb_callback(struct notifier_block *self, unsigned long event,case (NETEVENT_REDIRECT ):{struct netevent_redirect *nr = ctx;cxgb_redirect (nr->old, nr->new); -cxgb_neigh_update (nr->new->neighbour); +cxgb_neigh_update (dst_get_neighbour (nr->new));break ; }default :
@@ -1116,8 +1116,8 @@ static void cxgb_redirect(struct dst_entry *old, struct dst_entry *new)struct l2t_entry *e;struct t3c_tid_entry *te; - olddev = old->neighbour->dev; - newdev = new->neighbour->dev; + olddev =dst_get_neighbour (old)->dev; + newdev =dst_get_neighbour (new)->dev;if (!is_offloading (olddev))return ;if (!is_offloading (newdev)) {
@@ -1134,7 +1134,7 @@ static void cxgb_redirect(struct dst_entry *old, struct dst_entry *new) }/* Add new L2T entry */ - e =t3_l2t_get (tdev, new->neighbour, newdev); + e =t3_l2t_get (tdev,dst_get_neighbour (new), newdev);if (!e) {printk (KERN_ERR "%s: couldn't allocate new l2t entry!\n" , __func__);
drivers/pcmcia/ds.c +1 -3
@@ -1269,10 +1269,8 @@ static int pcmcia_bus_add(struct pcmcia_socket *skt)static int pcmcia_bus_early_resume (struct pcmcia_socket *skt) { -if (!verify_cis_cache (skt)) { -pcmcia_put_socket (skt); +if (!verify_cis_cache (skt))return 0 ; - }dev_dbg (&skt->dev,"cis mismatch - different card\n" );
drivers/s390/net/qeth_l3_main.c +18 -7
@@ -2742,9 +2742,14 @@ static int qeth_l3_do_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)int inline qeth_l3_get_cast_type (struct qeth_card *card,struct sk_buff *skb) {int cast_type =RTN_UNSPEC ; - -if (skb_dst (skb) &&skb_dst (skb)->neighbour) { - cast_type =skb_dst (skb)->neighbour->type; +struct neighbour *n =NULL ; +struct dst_entry *dst; + + dst =skb_dst (skb); +if (dst) + n =dst_get_neighbour (dst); +if (n) { + cast_type = n->type;if ((cast_type ==RTN_BROADCAST ) || (cast_type ==RTN_MULTICAST ) || (cast_type ==RTN_ANYCAST ))
@@ -2787,6 +2792,9 @@ int inline qeth_l3_get_cast_type(struct qeth_card *card, struct sk_buff *skb)static void qeth_l3_fill_header (struct qeth_card *card,struct qeth_hdr *hdr,struct sk_buff *skb,int ipv,int cast_type) { +struct neighbour *n =NULL ; +struct dst_entry *dst; +memset (hdr,0 ,sizeof (struct qeth_hdr )); hdr->hdr.l3.id =QETH_HEADER_TYPE_LAYER3 ; hdr->hdr.l3.ext_flags =0 ;
@@ -2804,13 +2812,16 @@ static void qeth_l3_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, } hdr->hdr.l3.length = skb->len -sizeof (struct qeth_hdr ); + dst =skb_dst (skb); +if (dst) + n =dst_get_neighbour (dst);if (ipv ==4 ) {/* IPv4 */ hdr->hdr.l3.flags =qeth_l3_get_qeth_hdr_flags4 (cast_type);memset (hdr->hdr.l3.dest_addr,0 ,12 ); -if ((skb_dst (skb)) && (skb_dst (skb)->neighbour)) { +if (n) { *((u32 *) (&hdr->hdr.l3.dest_addr[12 ])) = - *((u32 *)skb_dst (skb)->neighbour->primary_key); + *((u32 *) n->primary_key); }else {/* fill in destination address used in ip header */ *((u32 *) (&hdr->hdr.l3.dest_addr[12])) =
@@ -2821,9 +2832,9 @@ static void qeth_l3_fill_header(struct qeth_card *card, struct qeth_hdr *hdr, hdr->hdr.l3.flags =qeth_l3_get_qeth_hdr_flags6 (cast_type);if (card->info.type ==QETH_CARD_TYPE_IQD ) hdr->hdr.l3.flags &= ~QETH_HDR_PASSTHRU ; -if ((skb_dst (skb)) && (skb_dst (skb)->neighbour)) { +if (n) {memcpy (hdr->hdr.l3.dest_addr, -skb_dst (skb)->neighbour->primary_key,16 ); + n->primary_key,16 ); }else {/* fill in destination address used in ip header */ memcpy(hdr->hdr.l3.dest_addr,
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c +1 -1
@@ -985,7 +985,7 @@ static int init_act_open(struct cxgbi_sock *csk) csk->saddr.sin_addr.s_addr = chba->ipv4addr; csk->rss_qid =0 ; - csk->l2t =t3_l2t_get (t3dev, dst->neighbour, ndev); + csk->l2t =t3_l2t_get (t3dev,dst_get_neighbour (dst), ndev);if (!csk->l2t) {pr_err ("NO l2t available.\n" );return -EINVAL ;
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c +1 -1
@@ -1160,7 +1160,7 @@ static int init_act_open(struct cxgbi_sock *csk)cxgbi_sock_set_flag (csk,CTPF_HAS_ATID );cxgbi_sock_get (csk); - csk->l2t =cxgb4_l2t_get (lldi->l2t, csk->dst->neighbour, ndev,0 ); + csk->l2t =cxgb4_l2t_get (lldi->l2t,dst_get_neighbour (csk->dst), ndev,0 );if (!csk->l2t) {pr_err ("%s, cannot alloc l2t.\n" , ndev->name); goto rel_resource;
drivers/scsi/cxgbi/libcxgbi.c +2 -2
@@ -492,7 +492,7 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr) goto err_out; } dst = &rt->dst; - ndev = dst->neighbour->dev; + ndev =dst_get_neighbour (dst)->dev;if (rt->rt_flags & (RTCF_MULTICAST |RTCF_BROADCAST )) { pr_info("multi-cast route %pI4, port %u, dev %s.\n",
@@ -506,7 +506,7 @@ static struct cxgbi_sock *cxgbi_check_route(struct sockaddr *dst_addr) ndev =ip_dev_find (&init_net, daddr->sin_addr.s_addr); mtu = ndev->mtu;pr_info ("rt dev %s, loopback -> %s, mtu %u.\n" , - dst->neighbour->dev->name, ndev->name, mtu); +dst_get_neighbour (dst)->dev->name, ndev->name, mtu); } cdev =cxgbi_device_find_by_netdev (ndev, &port);
drivers/staging/asus_oled/asus_oled.c +9 -4
@@ -355,7 +355,14 @@ static void send_data(struct asus_oled_dev *odev)static int append_values (struct asus_oled_dev *odev,uint8_t val,size_t count) { -while (count-- >0 && val) { + odev->last_val = val; + +if (val ==0 ) { + odev->buf_offs += count; +return 0 ; + } + +while (count-- >0 ) {size_t x = odev->buf_offs % odev->width;size_t y = odev->buf_offs / odev->width;size_t i;
@@ -406,7 +413,6 @@ static int append_values(struct asus_oled_dev *odev, uint8_t val, size_t count) ; } - odev->last_val = val; odev->buf_offs++; }
@@ -805,10 +811,9 @@ error: static void __exit asus_oled_exit(void) { +usb_deregister (&oled_driver);class_remove_file (oled_class, &class_attr_version.attr);class_destroy (oled_class); - -usb_deregister (&oled_driver); }module_init (asus_oled_init);
drivers/staging/rtl8712/usb_intf.c +1 -0
@@ -86,6 +86,7 @@ static struct usb_device_id rtl871x_usb_id_tbl[] = { {USB_DEVICE(0x0DF6, 0x0045)}, {USB_DEVICE(0x0DF6, 0x0059)}, /* 11n mode disable */ {USB_DEVICE(0x0DF6, 0x004B)}, + {USB_DEVICE(0x0DF6, 0x005B)}, {USB_DEVICE(0x0DF6, 0x005D)}, {USB_DEVICE(0x0DF6, 0x0063)},/* Sweex */
drivers/target/target_core_pr.c +3 -2
@@ -471,6 +471,7 @@ static int core_scsi3_pr_seq_non_holder(case READ_MEDIA_SERIAL_NUMBER :case REPORT_LUNS :case REQUEST_SENSE : +case PERSISTENT_RESERVE_IN : ret =0 ;/*/ Allowed CDBs */ break ;default :
@@ -3079,7 +3080,7 @@ static int core_scsi3_pro_preempt(if (!(calling_it_nexus))core_scsi3_ua_allocate (pr_reg_nacl, pr_res_mapped_lun,0x2A , -ASCQ_2AH_RESERVATIONS_PREEMPTED ); +ASCQ_2AH_REGISTRATIONS_PREEMPTED ); }spin_unlock (&pr_tmpl->registration_lock);/*
@@ -3191,7 +3192,7 @@ static int core_scsi3_pro_preempt(* additional sense code set to REGISTRATIONS PREEMPTED; */ core_scsi3_ua_allocate (pr_reg_nacl, pr_res_mapped_lun,0x2A , -ASCQ_2AH_RESERVATIONS_PREEMPTED ); +ASCQ_2AH_REGISTRATIONS_PREEMPTED ); }spin_unlock (&pr_tmpl->registration_lock);/*
drivers/target/target_core_transport.c +4 -4
@@ -5709,8 +5709,8 @@ int transport_send_check_condition_and_sense(/* CURRENT ERROR */ buffer[offset] =0x70 ; buffer[offset+SPC_ADD_SENSE_LEN_OFFSET ] =10 ; -/* ABORTED COMMAND */ - buffer[offset+SPC_SENSE_KEY_OFFSET ] =ABORTED_COMMAND ; +/* ILLEGAL REQUEST */ + buffer[offset+SPC_SENSE_KEY_OFFSET ] =ILLEGAL_REQUEST ;/* INVALID FIELD IN CDB */ buffer[offset+SPC_ASC_KEY_OFFSET ] =0x24 ;break ;
@@ -5718,8 +5718,8 @@ int transport_send_check_condition_and_sense(/* CURRENT ERROR */ buffer[offset] =0x70 ; buffer[offset+SPC_ADD_SENSE_LEN_OFFSET ] =10 ; -/* ABORTED COMMAND */ - buffer[offset+SPC_SENSE_KEY_OFFSET ] =ABORTED_COMMAND ; +/* ILLEGAL REQUEST */ + buffer[offset+SPC_SENSE_KEY_OFFSET ] =ILLEGAL_REQUEST ;/* INVALID FIELD IN PARAMETER LIST */ buffer[offset+SPC_ASC_KEY_OFFSET ] =0x26 ;break ;
drivers/tty/vt/vt_ioctl.c +0 -1
@@ -1463,7 +1463,6 @@ compat_kdfontop_ioctl(struct compat_console_font_op __user *fontop,if (!perm && op->op !=KD_FONT_OP_GET )return -EPERM ; op->data =compat_ptr (((struct compat_console_font_op *)op)->data); - op->flags |=KD_FONT_FLAG_OLD ; i =con_font_op (vc, op);if (i)return i;
drivers/usb/gadget/f_loopback.c +1 -1
@@ -373,7 +373,7 @@ int __init loopback_add(struct usb_composite_dev *cdev, bool autoresume)/* support autoresume for remote wakeup testing */ if (autoresume) - sourcesink_driver.bmAttributes |=USB_CONFIG_ATT_WAKEUP ; + loopback_driver.bmAttributes |=USB_CONFIG_ATT_WAKEUP ;/* support OTG systems */ if (gadget_is_otg (cdev->gadget)) {
drivers/usb/host/pci-quirks.c +6 -0
@@ -866,6 +866,12 @@ hc_init:static void __devinit quirk_usb_early_handoff (struct pci_dev *pdev) { +/* Skip Netlogic mips SoC's internal PCI USB controller. +* This device does not need/support EHCI/OHCI handoff +*/ +if (pdev->vendor ==0x184e )/* vendor Netlogic */ +return ; +if (pdev->class ==PCI_CLASS_SERIAL_USB_UHCI )quirk_usb_handoff_uhci (pdev);else if (pdev->class ==PCI_CLASS_SERIAL_USB_OHCI )
drivers/usb/serial/ftdi_sio.c +1 -0
@@ -838,6 +838,7 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_SCIENCESCOPE_LOGBOOKML_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SCIENCESCOPE_LS_LOGBOOK_PID) }, { USB_DEVICE(FTDI_VID, FTDI_SCIENCESCOPE_HS_LOGBOOK_PID) }, + { USB_DEVICE(FTDI_VID, FTDI_CINTERION_MC55I_PID) }, { USB_DEVICE(FTDI_VID, FTDI_DOTEC_PID) }, { USB_DEVICE(QIHARDWARE_VID, MILKYMISTONE_JTAGSERIAL_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
drivers/usb/serial/ftdi_sio_ids.h +7 -0
@@ -1187,3 +1187,10 @@*/ /* ZigBee controller */ #define FTDI_RF_R106 0x8A28 + +/* +* Product: HCP HIT GPRS modem +* Manufacturer: HCP d.o.o. +* ATI command output: Cinterion MC55i +*/ +#define FTDI_CINTERION_MC55I_PID 0xA951
drivers/usb/serial/option.c +128 -1
153 lines not on this page · raw message
drivers/video/atmel_lcdfb.c +1 -1
@@ -1085,7 +1085,7 @@ static int atmel_lcdfb_suspend(struct platform_device *pdev, pm_message_t mesg)*/ lcdc_writel (sinfo,ATMEL_LCDC_IDR , ~0UL ); - sinfo->saved_lcdcon =lcdc_readl (sinfo,ATMEL_LCDC_CONTRAST_VAL ); + sinfo->saved_lcdcon =lcdc_readl (sinfo,ATMEL_LCDC_CONTRAST_CTR );lcdc_writel (sinfo,ATMEL_LCDC_CONTRAST_CTR ,0 );if (sinfo->atmel_lcdfb_power_control) sinfo->atmel_lcdfb_power_control (0 );
fs/cifs/sess.c +3 -4
@@ -244,16 +244,15 @@ static void ascii_ssetup_strings(char **pbcc_area, struct cifs_ses *ses,/* copy user */ /* BB what about null user mounts - check that we do this BB */ /* copy user */ -if (ses->user_name !=NULL ) +if (ses->user_name !=NULL ) {strncpy (bcc_ptr, ses->user_name,MAX_USERNAME_SIZE ); + bcc_ptr +=strnlen (ses->user_name,MAX_USERNAME_SIZE ); + }/* else null user mount */ - - bcc_ptr +=strnlen (ses->user_name,MAX_USERNAME_SIZE ); *bcc_ptr =0 ; bcc_ptr++;/* account for null termination */ /* copy domain */ -if (ses->domainName !=NULL ) {strncpy (bcc_ptr, ses->domainName,256 ); bcc_ptr +=strnlen (ses->domainName,256 );
fs/ecryptfs/read_write.c +2 -2
@@ -130,7 +130,7 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset,pgoff_t ecryptfs_page_idx = (pos >>PAGE_CACHE_SHIFT );size_t start_offset_in_page = (pos & ~PAGE_CACHE_MASK );size_t num_bytes = (PAGE_CACHE_SIZE - start_offset_in_page); -size_t total_remaining_bytes = ((offset + size) - pos); +loff_t total_remaining_bytes = ((offset + size) - pos);if (fatal_signal_pending (current)) { rc = -EINTR ;
@@ -141,7 +141,7 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, num_bytes = total_remaining_bytes;if (pos < offset) {/* remaining zeros to write, up to destination offset */ -size_t total_remaining_zeros = (offset - pos); +loff_t total_remaining_zeros = (offset - pos);if (num_bytes > total_remaining_zeros) num_bytes = total_remaining_zeros;
fs/proc/base.c +46 -60
148 lines not on this page · raw message
fs/udf/super.c +6 -0
@@ -1830,6 +1830,12 @@ static void udf_close_lvid(struct super_block *sb) le16_to_cpu(lvid->descTag.descCRCLength))); lvid->descTag.tagChecksum =udf_tag_checksum (&lvid->descTag); +/* +* We set buffer uptodate unconditionally here to avoid spurious +* warnings from mark_buffer_dirty() when previous EIO has marked +* the buffer as !uptodate +*/ +set_buffer_uptodate (bh);mark_buffer_dirty (bh); sbi->s_lvid_dirty =0 ;mutex_unlock (&sbi->s_alloc_mutex);
include/net/arp.h +1 -0
@@ -16,6 +16,7 @@ extern void arp_send(int type, int ptype, __be32 dest_ip,const unsigned char *dest_hw, const unsigned char *src_hw, const unsigned char *th);extern int arp_bind_neighbour (struct dst_entry *dst); +extern struct neighbour *__arp_bind_neighbour (struct dst_entry *dst,__be32 nexthop);extern int arp_mc_map (__be32 addr,u8 *haddr,struct net_device *dev,int dir);extern void arp_ifdown (struct net_device *dev);
include/net/dst.h +24 -3
@@ -37,7 +37,7 @@ struct dst_entry {unsigned long _metrics;unsigned long expires;struct dst_entry *path; -struct neighbour *neighbour; +struct neighbour __rcu *_neighbour;struct hh_cache *hh;#ifdef CONFIG_XFRM struct xfrm_state *xfrm;
@@ -86,6 +86,21 @@ struct dst_entry { }; }; +static inline struct neighbour *dst_get_neighbour (struct dst_entry *dst) +{ +return rcu_dereference (dst->_neighbour); +} + +static inline struct neighbour *dst_get_neighbour_raw (struct dst_entry *dst) +{ +return rcu_dereference_raw (dst->_neighbour); +} + +static inline void dst_set_neighbour (struct dst_entry *dst,struct neighbour *neigh) +{ +rcu_assign_pointer (dst->_neighbour, neigh); +} +extern u32 *dst_cow_metrics_generic (struct dst_entry *dst,unsigned long old);extern const u32 dst_default_metrics[RTAX_MAX ];
@@ -371,8 +386,14 @@ static inline void dst_rcu_free(struct rcu_head *head)static inline void dst_confirm (struct dst_entry *dst) { -if (dst) -neigh_confirm (dst->neighbour); +if (dst) { +struct neighbour *n; + +rcu_read_lock (); + n =dst_get_neighbour (dst); +neigh_confirm (n); +rcu_read_unlock (); + } }static inline void dst_link_failure (struct sk_buff *skb)
kernel/kprobes.c +5 -1
@@ -1660,8 +1660,12 @@ static int __kprobes pre_handler_kretprobe(struct kprobe *p, ri->rp = rp; ri->task = current; -if (rp->entry_handler && rp->entry_handler (ri, regs)) +if (rp->entry_handler && rp->entry_handler (ri, regs)) { +raw_spin_lock_irqsave (&rp->lock, flags); +hlist_add_head (&ri->hlist, &rp->free_instances); +raw_spin_unlock_irqrestore (&rp->lock, flags);return 0 ; + }arch_prepare_kretprobe (ri, regs);
kernel/panic.c +10 -2
@@ -236,8 +236,16 @@ void add_taint(unsigned flag)* Also we want to keep up lockdep for staging development and * post-warning case. */ -if (flag !=TAINT_CRAP && flag !=TAINT_WARN &&__debug_locks_off ()) -printk (KERN_WARNING "Disabling lock debugging due to kernel taint\n" ); +switch (flag) { +case TAINT_CRAP : +case TAINT_WARN : +case TAINT_FIRMWARE_WORKAROUND : +break ; + +default : +if (__debug_locks_off ()) +printk (KERN_WARNING "Disabling lock debugging due to kernel taint\n" ); + }set_bit (flag, &tainted_mask); }
kernel/sched_rt.c +5 -0
@@ -1390,6 +1390,11 @@ static int push_rt_task(struct rq *rq)if (!next_task)return 0 ; +#ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW +if (unlikely (task_running (rq, next_task))) +return 0 ; +#endif + retry:if (unlikely (next_task == rq->curr)) {WARN_ON (1 );
mm/compaction.c +23 -1
@@ -320,12 +320,34 @@ static isolate_migrate_t isolate_migratepages(struct zone *zone, }else if (!locked)spin_lock_irq (&zone->lru_lock); +/* +* migrate_pfn does not necessarily start aligned to a +* pageblock. Ensure that pfn_valid is called when moving +* into a new MAX_ORDER_NR_PAGES range in case of large +* memory holes within the zone +*/ +if ((low_pfn & (MAX_ORDER_NR_PAGES -1 )) ==0 ) { +if (!pfn_valid (low_pfn)) { + low_pfn +=MAX_ORDER_NR_PAGES -1 ; +continue ; + } + } +if (!pfn_valid_within (low_pfn))continue ; nr_scanned++; -/* Get the page and skip if free */ +/* +* Get the page and ensure the page is within the same zone. +* See the comment in isolate_freepages about overlapping +* nodes. It is deliberate that the new zone lock is not taken +* as memory compaction should not move pages between nodes. +*/ page =pfn_to_page (low_pfn); +if (page_zone (page) != zone) +continue ; + +/* Skip if free */ if (PageBuddy (page))continue ;
mm/filemap.c +4 -4
@@ -1379,15 +1379,12 @@ generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,unsigned long seg =0 ;size_t count;loff_t *ppos = &iocb->ki_pos; -struct blk_plug plug; count =0 ; retval =generic_segment_checks (iov, &nr_segs, &count,VERIFY_WRITE );if (retval)return retval; -blk_start_plug (&plug); -/* coalesce the iovecs and go direct-to-BIO for O_DIRECT */ if (filp->f_flags &O_DIRECT ) {loff_t size;
@@ -1403,8 +1400,12 @@ generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov, retval =filemap_write_and_wait_range (mapping, pos, pos +iov_length (iov, nr_segs) -1 );if (!retval) { +struct blk_plug plug; + +blk_start_plug (&plug); retval = mapping->a_ops->direct_IO (READ , iocb, iov, pos, nr_segs); +blk_finish_plug (&plug); }if (retval >0 ) { *ppos = pos + retval;
@@ -1460,7 +1461,6 @@ generic_file_aio_read(struct kiocb *iocb, const struct iovec *iov,break ; } out: -blk_finish_plug (&plug);return retval; }EXPORT_SYMBOL (generic_file_aio_read);
mm/filemap_xip.c +6 -1
@@ -263,7 +263,12 @@ found: xip_pfn);if (err == -ENOMEM )return VM_FAULT_OOM ; -BUG_ON (err); +/* +* err == -EBUSY is fine, we've raced against another thread +* that faulted-in the same page +*/ +if (err != -EBUSY ) +BUG_ON (err);return VM_FAULT_NOPAGE ; }else {int err, ret =VM_FAULT_OOM ;
mm/huge_memory.c +2 -2
@@ -2020,7 +2020,7 @@ static void collect_mm_slot(struct mm_slot *mm_slot) {struct mm_struct *mm = mm_slot->mm; -VM_BUG_ON (!spin_is_locked (&khugepaged_mm_lock)); +VM_BUG_ON (NR_CPUS !=1 && !spin_is_locked (&khugepaged_mm_lock));if (khugepaged_test_exit (mm)) {/* free mm_slot */
@@ -2048,7 +2048,7 @@ static unsigned int khugepaged_scan_mm_slot(unsigned int pages,int progress =0 ;VM_BUG_ON (!pages); -VM_BUG_ON (!spin_is_locked (&khugepaged_mm_lock)); +VM_BUG_ON (NR_CPUS !=1 && !spin_is_locked (&khugepaged_mm_lock));if (khugepaged_scan.mm_slot) mm_slot = khugepaged_scan.mm_slot;
mm/swap.c +1 -1
@@ -667,7 +667,7 @@ void lru_add_page_tail(struct zone* zone,VM_BUG_ON (!PageHead (page));VM_BUG_ON (PageCompound (page_tail));VM_BUG_ON (PageLRU (page_tail)); -VM_BUG_ON (!spin_is_locked (&zone->lru_lock)); +VM_BUG_ON (NR_CPUS !=1 && !spin_is_locked (&zone->lru_lock));SetPageLRU (page_tail);
net/atm/clip.c +10 -6
@@ -364,33 +364,37 @@ static netdev_tx_t clip_start_xmit(struct sk_buff *skb, struct net_device *dev) {struct clip_priv *clip_priv =PRIV (dev); +struct dst_entry *dst =skb_dst (skb);struct atmarp_entry *entry; +struct neighbour *n;struct atm_vcc *vcc;int old;unsigned long flags;pr_debug ("(skb %p)\n" , skb); -if (!skb_dst (skb)) { +if (!dst) {pr_err ("skb_dst(skb) == NULL\n" );dev_kfree_skb (skb); dev->stats.tx_dropped++;return NETDEV_TX_OK ; } -if (!skb_dst (skb)->neighbour) { + n =dst_get_neighbour (dst); +if (!n) {#if 0 -skb_dst (skb)->neighbour =clip_find_neighbour (skb_dst (skb),1 ); -if (!skb_dst (skb)->neighbour) { + n =clip_find_neighbour (skb_dst (skb),1 ); +if (!n) {dev_kfree_skb (skb);/* lost that one */ dev->stats.tx_dropped++;return 0 ; } +dst_set_neighbour (dst, n);#endif pr_err ("NO NEIGHBOUR !\n" );dev_kfree_skb (skb); dev->stats.tx_dropped++;return NETDEV_TX_OK ; } - entry =NEIGH2ENTRY (skb_dst (skb)->neighbour); + entry =NEIGH2ENTRY (n);if (!entry->vccs) {if (time_after (jiffies, entry->expires)) {/* should be resolved */
@@ -407,7 +411,7 @@ static netdev_tx_t clip_start_xmit(struct sk_buff *skb, }pr_debug ("neigh %p, vccs %p\n" , entry, entry->vccs);ATM_SKB (skb)->vcc = vcc = entry->vccs->vcc; -pr_debug ("using neighbour %p, vcc %p\n" ,skb_dst (skb)->neighbour, vcc); +pr_debug ("using neighbour %p, vcc %p\n" , n, vcc);if (entry->vccs->encap) {void *here;
net/bridge/br_netfilter.c +4 -2
@@ -343,24 +343,26 @@ static int br_nf_pre_routing_finish_ipv6(struct sk_buff *skb)static int br_nf_pre_routing_finish_bridge (struct sk_buff *skb) {struct nf_bridge_info *nf_bridge = skb->nf_bridge; +struct neighbour *neigh;struct dst_entry *dst; skb->dev =bridge_parent (skb->dev);if (!skb->dev) goto free_skb; dst =skb_dst (skb); + neigh =dst_get_neighbour (dst);if (dst->hh) {neigh_hh_bridge (dst->hh, skb); skb->dev = nf_bridge->physindev;return br_handle_frame_finish (skb); - }else if (dst->neighbour) { + }else if (neigh) {/* the neighbour function below overwrites the complete * MAC header, so we save the Ethernet source address and * protocol number. */ skb_copy_from_linear_data_offset (skb, -(ETH_HLEN -ETH_ALEN ), skb->nf_bridge->data,ETH_HLEN -ETH_ALEN );/* tell br_dev_xmit to continue with forwarding */ nf_bridge->mask |=BRNF_BRIDGED_DNAT ; -return dst->neighbour->output (skb); +return neigh->output (skb); } free_skb:kfree_skb (skb);
net/core/dst.c +10 -5
@@ -171,7 +171,7 @@ void *dst_alloc(struct dst_ops *ops, struct net_device *dev,dst_init_metrics (dst, dst_default_metrics, true); dst->expires =0UL ; dst->path = dst; - dst->neighbour =NULL ; +RCU_INIT_POINTER (dst->_neighbour,NULL ); dst->hh =NULL ;#ifdef CONFIG_XFRM dst->xfrm =NULL ;
@@ -231,7 +231,7 @@ struct dst_entry *dst_destroy(struct dst_entry * dst)smp_rmb (); again: - neigh = dst->neighbour; + neigh =rcu_dereference_protected (dst->_neighbour,1 ); hh = dst->hh; child = dst->child;
@@ -240,7 +240,7 @@ again:hh_cache_put (hh);if (neigh) { - dst->neighbour =NULL ; +RCU_INIT_POINTER (dst->_neighbour,NULL );neigh_release (neigh); }
@@ -367,14 +367,19 @@ static void dst_ifdown(struct dst_entry *dst, struct net_device *dev,if (!unregister) { dst->input = dst->output = dst_discard; }else { +struct neighbour *neigh; + dst->dev =dev_net (dst->dev)->loopback_dev;dev_hold (dst->dev);dev_put (dev); -if (dst->neighbour && dst->neighbour->dev == dev) { - dst->neighbour->dev = dst->dev; +rcu_read_lock (); + neigh =dst_get_neighbour (dst); +if (neigh && neigh->dev == dev) { + neigh->dev = dst->dev;dev_hold (dst->dev);dev_put (dev); } +rcu_read_unlock (); } }
net/core/neighbour.c +12 -7
@@ -1173,12 +1173,17 @@ int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new,while (neigh->nud_state &NUD_VALID && (skb =__skb_dequeue (&neigh->arp_queue)) !=NULL ) { -struct neighbour *n1 = neigh; +struct dst_entry *dst =skb_dst (skb); +struct neighbour *n2, *n1 = neigh;write_unlock_bh (&neigh->lock); + +rcu_read_lock ();/* On shaper/eql skb->dst->neighbour != neigh :( */ -if (skb_dst (skb) &&skb_dst (skb)->neighbour) - n1 =skb_dst (skb)->neighbour; +if (dst && (n2 =dst_get_neighbour (dst)) !=NULL ) + n1 = n2; n1->output (skb); +rcu_read_unlock (); +write_lock_bh (&neigh->lock); }skb_queue_purge (&neigh->arp_queue);
@@ -1300,10 +1305,10 @@ EXPORT_SYMBOL(neigh_compat_output);int neigh_resolve_output (struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb); -struct neighbour *neigh; +struct neighbour *neigh =dst_get_neighbour (dst);int rc =0 ; -if (!dst || !(neigh = dst->neighbour)) +if (!dst) goto discard;__skb_pull (skb,skb_network_offset (skb));
@@ -1333,7 +1338,7 @@ out:return rc; discard:NEIGH_PRINTK1 ("neigh_resolve_output: dst=%p neigh=%p\n" , - dst, dst ? dst->neighbour :NULL ); + dst, neigh); out_kfree_skb: rc = -EINVAL ;kfree_skb (skb);
@@ -1347,7 +1352,7 @@ int neigh_connected_output(struct sk_buff *skb) {int err;struct dst_entry *dst =skb_dst (skb); -struct neighbour *neigh = dst->neighbour; +struct neighbour *neigh =dst_get_neighbour (dst);struct net_device *dev = neigh->dev;unsigned int seq;
net/decnet/dn_neigh.c +4 -4
@@ -208,7 +208,7 @@ static int dn_neigh_output_packet(struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb);struct dn_route *rt = (struct dn_route *)dst; -struct neighbour *neigh = dst->neighbour; +struct neighbour *neigh =dst_get_neighbour (dst);struct net_device *dev = neigh->dev;char mac_addr[ETH_ALEN ];
@@ -227,7 +227,7 @@ static int dn_neigh_output_packet(struct sk_buff *skb)static int dn_long_output (struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb); -struct neighbour *neigh = dst->neighbour; +struct neighbour *neigh =dst_get_neighbour (dst);struct net_device *dev = neigh->dev;int headroom = dev->hard_header_len +sizeof (struct dn_long_packet ) +3 ;unsigned char *data;
@@ -274,7 +274,7 @@ static int dn_long_output(struct sk_buff *skb)static int dn_short_output (struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb); -struct neighbour *neigh = dst->neighbour; +struct neighbour *neigh =dst_get_neighbour (dst);struct net_device *dev = neigh->dev;int headroom = dev->hard_header_len +sizeof (struct dn_short_packet ) +2 ;struct dn_short_packet *sp;
@@ -318,7 +318,7 @@ static int dn_short_output(struct sk_buff *skb)static int dn_phase3_output (struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb); -struct neighbour *neigh = dst->neighbour; +struct neighbour *neigh =dst_get_neighbour (dst);struct net_device *dev = neigh->dev;int headroom = dev->hard_header_len +sizeof (struct dn_short_packet ) +2 ;struct dn_short_packet *sp;
net/decnet/dn_route.c +10 -8
@@ -241,9 +241,11 @@ static int dn_dst_gc(struct dst_ops *ops)*/ static void dn_dst_update_pmtu (struct dst_entry *dst,u32 mtu) { +struct neighbour *n =dst_get_neighbour (dst);u32 min_mtu =230 ; -struct dn_dev *dn = dst->neighbour ? -rcu_dereference_raw (dst->neighbour->dev->dn_ptr) :NULL ; +struct dn_dev *dn; + + dn = n ?rcu_dereference_raw (n->dev->dn_ptr) :NULL ;if (dn && dn->use_long ==0 ) min_mtu -=6 ;
@@ -715,7 +717,7 @@ static int dn_output(struct sk_buff *skb)int err = -EINVAL ; -if ((neigh = dst->neighbour) ==NULL ) +if ((neigh =dst_get_neighbour (dst)) ==NULL ) goto error; skb->dev = dev;
@@ -750,7 +752,7 @@ static int dn_forward(struct sk_buff *skb)struct dst_entry *dst =skb_dst (skb);struct dn_dev *dn_db =rcu_dereference (dst->dev->dn_ptr);struct dn_route *rt; -struct neighbour *neigh = dst->neighbour; +struct neighbour *neigh =dst_get_neighbour (dst);int header_len;#ifdef CONFIG_NETFILTER struct net_device *dev = skb->dev;
@@ -833,11 +835,11 @@ static int dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res) } rt->rt_type = res->type; -if (dev !=NULL && rt->dst.neighbour ==NULL ) { +if (dev !=NULL &&dst_get_neighbour (&rt->dst) ==NULL ) { n =__neigh_lookup_errno (&dn_neigh_table, &rt->rt_gateway, dev);if (IS_ERR (n))return PTR_ERR (n); - rt->dst.neighbour = n; +dst_set_neighbour (&rt->dst, n); }if (dst_metric (&rt->dst,RTAX_MTU ) > rt->dst.dev->mtu)
@@ -1144,7 +1146,7 @@ make_route: rt->rt_dst_map = fld.daddr; rt->rt_src_map = fld.saddr; - rt->dst.neighbour = neigh; +dst_set_neighbour (&rt->dst, neigh); neigh =NULL ; rt->dst.lastuse = jiffies;
@@ -1416,7 +1418,7 @@ make_route: rt->fld.flowidn_iif = in_dev->ifindex; rt->fld.flowidn_mark = fld.flowidn_mark; - rt->dst.neighbour = neigh; +dst_set_neighbour (&rt->dst, neigh); rt->dst.lastuse = jiffies; rt->dst.output = dn_rt_bug;switch (res.type) {
net/ipv4/arp.c +17 -11
@@ -518,26 +518,32 @@ EXPORT_SYMBOL(arp_find);/* END OF OBSOLETE FUNCTIONS */ +struct neighbour *__arp_bind_neighbour (struct dst_entry *dst,__be32 nexthop) +{ +struct net_device *dev = dst->dev; + +if (dev->flags & (IFF_LOOPBACK |IFF_POINTOPOINT )) + nexthop =0 ; + return __neigh_lookup_errno( +#if defined(CONFIG_ATM_CLIP ) || defined(CONFIG_ATM_CLIP_MODULE ) + dev->type ==ARPHRD_ATM ? + clip_tbl_hook : +#endif + &arp_tbl, &nexthop, dev); +} +int arp_bind_neighbour (struct dst_entry *dst) {struct net_device *dev = dst->dev; -struct neighbour *n = dst->neighbour; +struct neighbour *n =dst_get_neighbour (dst);if (dev ==NULL )return -EINVAL ;if (n ==NULL ) { -__be32 nexthop = ((struct rtable *)dst)->rt_gateway; -if (dev->flags & (IFF_LOOPBACK |IFF_POINTOPOINT )) - nexthop =0 ; - n = __neigh_lookup_errno( -#if defined(CONFIG_ATM_CLIP ) || defined(CONFIG_ATM_CLIP_MODULE ) - dev->type ==ARPHRD_ATM ? - clip_tbl_hook : -#endif - &arp_tbl, &nexthop, dev); + n =__arp_bind_neighbour (dst, ((struct rtable *)dst)->rt_gateway);if (IS_ERR (n))return PTR_ERR (n); - dst->neighbour = n; +dst_set_neighbour (dst, n); }return 0 ; }
net/ipv4/ip_gre.c +1 -1
@@ -731,9 +731,9 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev }#if defined(CONFIG_IPV6 ) || defined(CONFIG_IPV6_MODULE ) else if (skb->protocol == htons(ETH_P_IPV6)) { +struct neighbour *neigh =dst_get_neighbour (skb_dst (skb));const struct in6_addr *addr6;int addr_type; -struct neighbour *neigh =skb_dst (skb)->neighbour;if (neigh ==NULL ) goto tx_error;
net/ipv4/ip_output.c +18 -4
@@ -182,6 +182,8 @@ static inline int ip_finish_output2(struct sk_buff *skb)struct rtable *rt = (struct rtable *)dst;struct net_device *dev = dst->dev;unsigned int hh_len =LL_RESERVED_SPACE (dev); +struct neighbour *neigh; +int res;if (rt->rt_type ==RTN_MULTICAST ) {IP_UPD_PO_STATS (dev_net (dev),IPSTATS_MIB_OUTMCAST , skb->len);
@@ -203,10 +205,22 @@ static inline int ip_finish_output2(struct sk_buff *skb) skb = skb2; } -if (dst->hh) -return neigh_hh_output (dst->hh, skb); -else if (dst->neighbour) -return dst->neighbour->output (skb); +rcu_read_lock (); +if (dst->hh) { +int res =neigh_hh_output (dst->hh, skb); + +rcu_read_unlock (); +return res; + }else { + neigh =dst_get_neighbour (dst); +if (neigh) { + res = neigh->output (skb); + +rcu_read_unlock (); +return res; + } +rcu_read_unlock (); + }if (net_ratelimit ())printk (KERN_DEBUG "ip_finish_output2: No header cache and no neighbour!\n" );
net/ipv4/route.c +19 -12
@@ -416,7 +416,13 @@ static int rt_cache_seq_show(struct seq_file *seq, void *v) "HHUptod\tSpecDst"); else {struct rtable *r = v; -int len; +struct neighbour *n; +int len, HHUptod; + +rcu_read_lock (); + n =dst_get_neighbour (&r->dst); + HHUptod = (n && (n->nud_state &NUD_CONNECTED )) ?1 :0 ; +rcu_read_unlock (); seq_printf(seq, "%s\t%08X\t%08X\t%8X\t%d\t%u\t%d\t" "%08X\t%d\t%u\t%u\t%02X\t%d\t%1d\t%08X%n",
@@ -431,8 +437,7 @@ static int rt_cache_seq_show(struct seq_file *seq, void *v) dst_metric(&r->dst, RTAX_RTTVAR)), r->rt_key_tos, r->dst.hh ?atomic_read (&r->dst.hh->hh_refcnt) :-1 , - r->dst.hh ? (r->dst.hh->hh_output == - dev_queue_xmit) :0 , + HHUptod, r->rt_spec_dst, &len);seq_printf (seq,"%*s\n" ,127 - len,"" );
@@ -1688,23 +1693,25 @@ static int check_peer_redir(struct dst_entry *dst, struct inet_peer *peer) {struct rtable *rt = (struct rtable *) dst;__be32 orig_gw = rt->rt_gateway; +struct neighbour *n, *old_n;dst_confirm (&rt->dst); -neigh_release (rt->dst.neighbour); - rt->dst.neighbour =NULL ; - rt->rt_gateway = peer->redirect_learned.a4; -if (arp_bind_neighbour (&rt->dst) || - !(rt->dst.neighbour->nud_state &NUD_VALID )) { -if (rt->dst.neighbour) -neigh_event_send (rt->dst.neighbour,NULL ); + n =__arp_bind_neighbour (&rt->dst, rt->rt_gateway); +if (IS_ERR (n)) +return PTR_ERR (n); + old_n =xchg (&rt->dst._neighbour, n); +if (old_n) +neigh_release (old_n); +if (!n || !(n->nud_state &NUD_VALID )) { +if (n) +neigh_event_send (n,NULL ); rt->rt_gateway = orig_gw;return -EAGAIN ; }else { rt->rt_flags |=RTCF_REDIRECTED ; -call_netevent_notifiers (NETEVENT_NEIGH_UPDATE , - rt->dst.neighbour); +call_netevent_notifiers (NETEVENT_NEIGH_UPDATE , n); }return 0 ; }
net/ipv6/addrconf.c +1 -1
@@ -656,7 +656,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,* layer address of our nexhop router */ -if (rt->rt6i_nexthop ==NULL ) +if (dst_get_neighbour_raw (&rt->dst) ==NULL ) ifa->flags &= ~IFA_F_OPTIMISTIC ; ifa->idev = idev;
net/ipv6/ip6_fib.c +1 -1
@@ -1455,7 +1455,7 @@ static int fib6_age(struct rt6_info *rt, void *arg)RT6_TRACE ("aging clone %p\n" , rt);return -1 ; }else if ((rt->rt6i_flags &RTF_GATEWAY ) && - (!(rt->rt6i_nexthop->flags &NTF_ROUTER ))) { + (!(dst_get_neighbour_raw (&rt->dst)->flags &NTF_ROUTER ))) {RT6_TRACE ("purging route %p via non-router but gateway\n" , rt);return -1 ;
net/ipv6/ip6_output.c +31 -9
@@ -100,6 +100,8 @@ static int ip6_finish_output2(struct sk_buff *skb) {struct dst_entry *dst =skb_dst (skb);struct net_device *dev = dst->dev; +struct neighbour *neigh; +int res; skb->protocol =htons (ETH_P_IPV6 ); skb->dev = dev;
@@ -134,10 +136,22 @@ static int ip6_finish_output2(struct sk_buff *skb) skb->len); } -if (dst->hh) -return neigh_hh_output (dst->hh, skb); -else if (dst->neighbour) -return dst->neighbour->output (skb); +rcu_read_lock (); +if (dst->hh) { + res =neigh_hh_output (dst->hh, skb); + +rcu_read_unlock (); +return res; + }else { + neigh =dst_get_neighbour (dst); +if (neigh) { + res = neigh->output (skb); + +rcu_read_unlock (); +return res; + } +rcu_read_unlock (); + }IP6_INC_STATS_BH (dev_net (dst->dev),ip6_dst_idev (dst),IPSTATS_MIB_OUTNOROUTES );
@@ -385,6 +399,7 @@ int ip6_forward(struct sk_buff *skb)struct ipv6hdr *hdr =ipv6_hdr (skb);struct inet6_skb_parm *opt =IP6CB (skb);struct net *net =dev_net (dst->dev); +struct neighbour *n;u32 mtu;if (net->ipv6.devconf_all->forwarding ==0 )
@@ -459,11 +474,10 @@ int ip6_forward(struct sk_buff *skb)send redirects to source routed frames. We don't send redirects to frames decapsulated from IPsec. */ -if (skb->dev == dst->dev && dst->neighbour && opt->srcrt ==0 && - !skb_sec_path (skb)) { + n =dst_get_neighbour (dst); +if (skb->dev == dst->dev && n && opt->srcrt ==0 && !skb_sec_path (skb)) {struct in6_addr *target =NULL ;struct rt6_info *rt; -struct neighbour *n = dst->neighbour;/* * incoming and outgoing devices are the same
@@ -949,8 +963,11 @@ out:static int ip6_dst_lookup_tail (struct sock *sk,struct dst_entry **dst,struct flowi6 *fl6) { -int err;struct net *net =sock_net (sk); +#ifdef CONFIG_IPV6_OPTIMISTIC_DAD +struct neighbour *n; +#endif +int err;if (*dst ==NULL ) *dst =ip6_route_output (net, sk, fl6);
@@ -976,11 +993,14 @@ static int ip6_dst_lookup_tail(struct sock *sk,* dst entry and replace it instead with the * dst entry of the nexthop router */ -if ((*dst)->neighbour && !((*dst)->neighbour->nud_state &NUD_VALID )) { +rcu_read_lock (); + n =dst_get_neighbour (*dst); +if (n && !(n->nud_state &NUD_VALID )) {struct inet6_ifaddr *ifp;struct flowi6 fl_gw6;int redirect; +rcu_read_unlock (); ifp =ipv6_get_ifaddr (net, &fl6->saddr, (*dst)->dev,1 );
@@ -1000,6 +1020,8 @@ static int ip6_dst_lookup_tail(struct sock *sk,if ((err = (*dst)->error)) goto out_err_release; } + }else { +rcu_read_unlock (); }#endif
net/ipv6/ndisc.c +2 -2
@@ -1244,7 +1244,7 @@ static void ndisc_router_discovery(struct sk_buff *skb) rt =rt6_get_dflt_router (&ipv6_hdr (skb)->saddr, skb->dev);if (rt) - neigh = rt->rt6i_nexthop; + neigh =dst_get_neighbour (&rt->dst);if (rt && lifetime ==0 ) {neigh_clone (neigh);
@@ -1265,7 +1265,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)return ; } - neigh = rt->rt6i_nexthop; + neigh =dst_get_neighbour (&rt->dst);if (neigh ==NULL ) { ND_PRINTK0(KERN_ERR "ICMPv6 RA: %s() got default router without neighbour.\n",
net/ipv6/route.c +37 -22
175 lines not on this page · raw message
net/ipv6/sit.c +2 -2
@@ -679,7 +679,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,struct neighbour *neigh =NULL ;if (skb_dst (skb)) - neigh =skb_dst (skb)->neighbour; + neigh =dst_get_neighbour (skb_dst (skb));if (neigh ==NULL ) {if (net_ratelimit ())
@@ -704,7 +704,7 @@ static netdev_tx_t ipip6_tunnel_xmit(struct sk_buff *skb,struct neighbour *neigh =NULL ;if (skb_dst (skb)) - neigh =skb_dst (skb)->neighbour; + neigh =dst_get_neighbour (skb_dst (skb));if (neigh ==NULL ) {if (net_ratelimit ())
net/sched/sch_teql.c +20 -11
@@ -225,11 +225,11 @@ static int teql_qdisc_init(struct Qdisc *sch, struct nlattr *opt)static int -__teql_resolve (struct sk_buff *skb,struct sk_buff *skb_res,struct net_device *dev) +__teql_resolve (struct sk_buff *skb,struct sk_buff *skb_res, +struct net_device *dev,struct netdev_queue *txq, +struct neighbour *mn) { -struct netdev_queue *dev_queue =netdev_get_tx_queue (dev,0 ); -struct teql_sched_data *q =qdisc_priv (dev_queue->qdisc); -struct neighbour *mn =skb_dst (skb)->neighbour; +struct teql_sched_data *q =qdisc_priv (txq->qdisc);struct neighbour *n = q->ncache;if (mn->tbl ==NULL )
@@ -262,17 +262,26 @@ __teql_resolve(struct sk_buff *skb, struct sk_buff *skb_res, struct net_device * }static inline int teql_resolve (struct sk_buff *skb, -struct sk_buff *skb_res,struct net_device *dev) +struct sk_buff *skb_res, +struct net_device *dev, +struct netdev_queue *txq) { -struct netdev_queue *txq =netdev_get_tx_queue (dev,0 ); +struct dst_entry *dst =skb_dst (skb); +struct neighbour *mn; +int res; +if (txq->qdisc == &noop_qdisc)return -ENODEV ; -if (dev->header_ops ==NULL || -skb_dst (skb) ==NULL || -skb_dst (skb)->neighbour ==NULL ) +if (!dev->header_ops || !dst)return 0 ; -return __teql_resolve (skb, skb_res, dev); + +rcu_read_lock (); + mn =dst_get_neighbour (dst); + res = mn ?__teql_resolve (skb, skb_res, dev, txq, mn) :0 ; +rcu_read_unlock (); + +return res; }static netdev_tx_t teql_master_xmit (struct sk_buff *skb,struct net_device *dev)
@@ -307,7 +316,7 @@ restart:continue ; } -switch (teql_resolve (skb, skb_res, slave)) { +switch (teql_resolve (skb, skb_res, slave, slave_txq)) {case 0 :if (__netif_tx_trylock (slave_txq)) {unsigned int length =qdisc_pkt_len (skb);
net/xfrm/xfrm_policy.c +1 -1
@@ -1497,7 +1497,7 @@ static struct dst_entry *xfrm_bundle_create(struct xfrm_policy *policy, goto free_dst;/* Copy neighbour for reachability confirmation */ - dst0->neighbour =neigh_clone (dst->neighbour); +dst_set_neighbour (dst0,neigh_clone (dst_get_neighbour (dst)));xfrm_init_path ((struct xfrm_dst *)dst0, dst, nfheader_len);xfrm_init_pmtu (dst_prev);
sound/pci/hda/hda_codec.c +1 -1
@@ -1328,7 +1328,7 @@ void snd_hda_codec_setup_stream(struct hda_codec *codec, hda_nid_t nid,for (i =0 ; i < c->cvt_setups.used; i++) { p =snd_array_elem (&c->cvt_setups, i);if (!p->active && p->stream_tag == stream_tag && -get_wcaps_type (get_wcaps (codec, p->nid)) == type) +get_wcaps_type (get_wcaps (c, p->nid)) == type) p->dirty =1 ; } }
sound/soc/codecs/wm8962.c +3 -3
@@ -2975,13 +2975,13 @@ static int wm8962_hw_params(struct snd_pcm_substream *substream,case SNDRV_PCM_FORMAT_S16_LE :break ;case SNDRV_PCM_FORMAT_S20_3LE : - aif0 |=0x40 ; + aif0 |=0x4 ;break ;case SNDRV_PCM_FORMAT_S24_LE : - aif0 |=0x80 ; + aif0 |=0x8 ;break ;case SNDRV_PCM_FORMAT_S32_LE : - aif0 |=0xc0 ; + aif0 |=0xc ;break ;default :return -EINVAL ;
sound/soc/codecs/wm_hubs.c +12 -6
@@ -562,14 +562,14 @@ SOC_DAPM_SINGLE("Left Output Switch", WM8993_LINE_MIXER1, 0, 1, 0), };static const struct snd_kcontrol_new line2_mix[] = { -SOC_DAPM_SINGLE ("IN2R Switch" ,WM8993_LINE_MIXER2 ,2 ,1 ,0 ), -SOC_DAPM_SINGLE ("IN2L Switch" ,WM8993_LINE_MIXER2 ,1 ,1 ,0 ), +SOC_DAPM_SINGLE ("IN1L Switch" ,WM8993_LINE_MIXER2 ,2 ,1 ,0 ), +SOC_DAPM_SINGLE ("IN1R Switch" ,WM8993_LINE_MIXER2 ,1 ,1 ,0 ),SOC_DAPM_SINGLE ("Output Switch" ,WM8993_LINE_MIXER2 ,0 ,1 ,0 ), };static const struct snd_kcontrol_new line2n_mix[] = { -SOC_DAPM_SINGLE ("Left Output Switch" ,WM8993_LINE_MIXER2 ,6 ,1 ,0 ), -SOC_DAPM_SINGLE ("Right Output Switch" ,WM8993_LINE_MIXER2 ,5 ,1 ,0 ), +SOC_DAPM_SINGLE ("Left Output Switch" ,WM8993_LINE_MIXER2 ,5 ,1 ,0 ), +SOC_DAPM_SINGLE ("Right Output Switch" ,WM8993_LINE_MIXER2 ,6 ,1 ,0 ), };static const struct snd_kcontrol_new line2p_mix[] = {
@@ -589,6 +589,8 @@ SND_SOC_DAPM_INPUT("IN2RP:VXRP"),SND_SOC_DAPM_MICBIAS ("MICBIAS2" ,WM8993_POWER_MANAGEMENT_1 ,5 ,0 ),SND_SOC_DAPM_MICBIAS ("MICBIAS1" ,WM8993_POWER_MANAGEMENT_1 ,4 ,0 ), +SND_SOC_DAPM_SUPPLY ("LINEOUT_VMID_BUF" ,WM8993_ANTIPOP1 ,7 ,0 ,NULL ,0 ), +SND_SOC_DAPM_MIXER ("IN1L PGA" ,WM8993_POWER_MANAGEMENT_2 ,6 ,0 , in1l_pga,ARRAY_SIZE (in1l_pga)), SND_SOC_DAPM_MIXER("IN1R PGA", WM8993_POWER_MANAGEMENT_2, 4, 0,
@@ -794,9 +796,11 @@ static const struct snd_soc_dapm_route lineout1_diff_routes[] = { };static const struct snd_soc_dapm_route lineout1_se_routes[] = { + {"LINEOUT1N Mixer" ,NULL ,"LINEOUT_VMID_BUF" }, {"LINEOUT1N Mixer" ,"Left Output Switch" ,"Left Output PGA" }, {"LINEOUT1N Mixer" ,"Right Output Switch" ,"Right Output PGA" }, + {"LINEOUT1P Mixer" ,NULL ,"LINEOUT_VMID_BUF" }, {"LINEOUT1P Mixer" ,"Left Output Switch" ,"Left Output PGA" }, {"LINEOUT1N Driver" ,NULL ,"LINEOUT1N Mixer" },
@@ -804,8 +808,8 @@ static const struct snd_soc_dapm_route lineout1_se_routes[] = { };static const struct snd_soc_dapm_route lineout2_diff_routes[] = { - {"LINEOUT2 Mixer" ,"IN2L Switch" ,"IN2L PGA" }, - {"LINEOUT2 Mixer" ,"IN2R Switch" ,"IN2R PGA" }, + {"LINEOUT2 Mixer" ,"IN1L Switch" ,"IN1L PGA" }, + {"LINEOUT2 Mixer" ,"IN1R Switch" ,"IN1R PGA" }, {"LINEOUT2 Mixer" ,"Output Switch" ,"Right Output PGA" }, {"LINEOUT2N Driver" ,NULL ,"LINEOUT2 Mixer" },
@@ -813,9 +817,11 @@ static const struct snd_soc_dapm_route lineout2_diff_routes[] = { };static const struct snd_soc_dapm_route lineout2_se_routes[] = { + {"LINEOUT2N Mixer" ,NULL ,"LINEOUT_VMID_BUF" }, {"LINEOUT2N Mixer" ,"Left Output Switch" ,"Left Output PGA" }, {"LINEOUT2N Mixer" ,"Right Output Switch" ,"Right Output PGA" }, + {"LINEOUT2P Mixer" ,NULL ,"LINEOUT_VMID_BUF" }, {"LINEOUT2P Mixer" ,"Right Output Switch" ,"Right Output PGA" }, {"LINEOUT2N Driver" ,NULL ,"LINEOUT2N Mixer" },
sound/soc/soc-core.c +15 -3
@@ -30,6 +30,7 @@#include <linux/bitops.h> #include <linux/debugfs.h> #include <linux/platform_device.h> +#include <linux/ctype.h> #include <linux/slab.h> #include <sound/ac97_codec.h> #include <sound/core.h>
@@ -1931,9 +1932,20 @@ static void snd_soc_instantiate_card(struct snd_soc_card *card) "%s", card->name);snprintf (card->snd_card->longname,sizeof (card->snd_card->longname),"%s" , card->long_name ? card->long_name : card->name); -if (card->driver_name) -strlcpy (card->snd_card->driver, card->driver_name, -sizeof (card->snd_card->driver)); +snprintf (card->snd_card->driver,sizeof (card->snd_card->driver), +"%s" , card->driver_name ? card->driver_name : card->name); +for (i =0 ; i <ARRAY_SIZE (card->snd_card->driver); i++) { +switch (card->snd_card->driver[i]) { +case '_' : +case '-' : +case '\0' : +break ; +default : +if (!isalnum (card->snd_card->driver[i])) + card->snd_card->driver[i] ='_' ; +break ; + } + }if (card->late_probe) { ret = card->late_probe (card);