Linux 3.4.26
Greg KH
maintainerI'm announcing the release of the 3.4.26 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.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/ABI/testing/sysfs-bus-rbd | 6 Makefile | 2 arch/arm/mach-pxa/include/mach/mfp-pxa27x.h | 3 arch/arm/mach-pxa/pxa27x.c | 4 arch/mips/kernel/process.c | 4 arch/powerpc/kernel/head_64.S | 2 arch/powerpc/kernel/time.c | 5 arch/powerpc/kvm/44x_emulate.c | 2 arch/powerpc/platforms/40x/ppc40x_simple.c | 3 arch/x86/kernel/cpu/amd.c | 14 drivers/acpi/scan.c | 7 drivers/ata/libata-core.c | 1 drivers/ata/libata-eh.c | 1 drivers/ata/libata-scsi.c | 6 drivers/ata/sata_promise.c | 15 drivers/base/regmap/regmap-debugfs.c | 2 drivers/bcma/driver_mips.c | 2 drivers/block/aoe/aoe.h | 2 drivers/block/aoe/aoeblk.c | 5 drivers/block/rbd.c | 293 ++++++------------- drivers/firewire/net.c | 13 drivers/gpu/drm/drm_edid.c | 22 + drivers/gpu/drm/i915/i915_drv.c | 10 drivers/gpu/drm/i915/i915_drv.h | 11 drivers/gpu/drm/i915/i915_gem.c | 4 drivers/gpu/drm/i915/i915_irq.c | 44 +- drivers/gpu/drm/i915/i915_reg.h | 23 + drivers/gpu/drm/i915/intel_bios.c | 36 ++ drivers/gpu/drm/i915/intel_display.c | 190 +++++++----- drivers/gpu/drm/i915/intel_hdmi.c | 11 drivers/gpu/drm/i915/intel_lvds.c | 8 drivers/gpu/drm/i915/intel_ringbuffer.c | 22 + drivers/gpu/drm/i915/intel_sdvo.c | 30 + drivers/gpu/drm/nouveau/nv04_dfp.c | 2 drivers/gpu/drm/radeon/atombios_crtc.c | 6 drivers/gpu/drm/radeon/atombios_encoders.c | 2 drivers/gpu/drm/radeon/evergreen_cs.c | 1 drivers/gpu/drm/radeon/radeon_connectors.c | 10 drivers/gpu/drm/radeon/radeon_display.c | 13 drivers/gpu/drm/radeon/radeon_i2c.c | 10 drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 8 drivers/gpu/drm/radeon/radeon_mode.h | 2 drivers/gpu/drm/udl/udl_connector.c | 17 - drivers/hid/hid-ids.h | 3 drivers/hid/usbhid/hid-quirks.c | 1 drivers/hwmon/lm73.c | 16 - drivers/infiniband/hw/nes/nes.h | 1 drivers/infiniband/hw/nes/nes_hw.c | 9 drivers/infiniband/hw/nes/nes_verbs.c | 9 drivers/iommu/intel-iommu.c | 11 drivers/md/dm-ioctl.c | 8 drivers/md/persistent-data/dm-btree-internal.h | 16 - drivers/md/persistent-data/dm-btree-remove.c | 50 +-- drivers/md/persistent-data/dm-btree-spine.c | 6 drivers/md/persistent-data/dm-btree.c | 22 - drivers/mfd/mfd-core.c | 15 drivers/mfd/wm8994-core.c | 1 drivers/mtd/nand/cs553x_nand.c | 3 drivers/mtd/nand/gpmi-nand/gpmi-lib.c | 9 drivers/net/wimax/i2400m/i2400m-usb.h | 3 drivers/net/wimax/i2400m/usb.c | 6 drivers/net/wireless/ath/ath5k/base.c | 4 drivers/net/wireless/ath/ath5k/mac80211-ops.c | 2 drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h | 172 +++++------ drivers/net/wireless/ath/ath9k/ar9003_eeprom.h | 6 drivers/net/wireless/ath/ath9k/calib.c | 1 drivers/net/wireless/ath/ath9k/calib.h | 3 drivers/net/wireless/b43/b43.h | 5 drivers/net/wireless/b43/main.c | 54 ++- drivers/net/wireless/b43/main.h | 5 drivers/net/wireless/mwifiex/sta_ioctl.c | 21 - drivers/platform/x86/samsung-laptop.c | 10 drivers/regulator/wm831x-dcdc.c | 2 drivers/s390/cio/device_pgid.c | 10 drivers/scsi/mvsas/mv_94xx.h | 14 drivers/scsi/mvsas/mv_sas.c | 2 drivers/scsi/mvsas/mv_sas.h | 2 drivers/scsi/qla2xxx/qla_os.c | 4 drivers/scsi/scsi_sysfs.c | 11 drivers/staging/comedi/Kconfig | 1 drivers/staging/comedi/comedi_fops.c | 21 + drivers/staging/comedi/comedidev.h | 1 drivers/staging/comedi/drivers.c | 34 -- drivers/staging/comedi/drivers/comedi_test.c | 2 drivers/staging/comedi/drivers/ni_pcimio.c | 16 - drivers/staging/comedi/internal.h | 1 drivers/staging/rtl8712/usb_intf.c | 2 drivers/staging/speakup/synth.c | 4 drivers/staging/vt6656/dpc.c | 4 drivers/staging/vt6656/key.c | 53 ++- drivers/staging/vt6656/key.h | 8 drivers/staging/vt6656/mac.c | 6 drivers/staging/vt6656/rf.c | 3 drivers/staging/vt6656/rxtx.c | 18 - drivers/staging/vt6656/ttype.h | 16 - drivers/staging/vt6656/wcmd.c | 20 - drivers/staging/vt6656/wpa2.h | 4 drivers/target/iscsi/iscsi_target.c | 2 drivers/target/tcm_fc/tfc_sess.c | 2 drivers/usb/class/cdc-acm.c | 3 drivers/usb/core/hub.c | 120 ++++++- drivers/usb/core/message.c | 53 ++- drivers/usb/gadget/dummy_hcd.c | 9 drivers/usb/host/xhci-hub.c | 38 ++ drivers/usb/host/xhci-mem.c | 2 drivers/usb/host/xhci-ring.c | 9 drivers/usb/host/xhci.c | 10 drivers/usb/musb/musb_core.c | 5 drivers/usb/serial/ftdi_sio.c | 2 drivers/usb/serial/ftdi_sio_ids.h | 6 drivers/usb/serial/option.c | 18 + drivers/video/mxsfb.c | 3 fs/ceph/addr.c | 17 - fs/ceph/caps.c | 16 - fs/ceph/file.c | 4 fs/ceph/inode.c | 30 + fs/ceph/mds_client.c | 10 fs/ceph/super.c | 2 fs/eventpoll.c | 22 + fs/ext4/acl.c | 6 fs/ext4/extents.c | 22 + fs/ext4/ialloc.c | 2 fs/ext4/super.c | 26 - fs/gfs2/lops.c | 18 - fs/gfs2/trans.c | 8 fs/jbd2/transaction.c | 3 fs/jffs2/nodemgmt.c | 6 fs/udf/inode.c | 11 include/linux/ceph/libceph.h | 2 kernel/trace/ring_buffer.c | 7 mm/compaction.c | 6 mm/huge_memory.c | 3 mm/memory.c | 18 - mm/page_alloc.c | 2 net/ceph/ceph_common.c | 3 net/ceph/messenger.c | 72 ++-- net/ceph/osd_client.c | 108 ++----- net/ceph/osdmap.c | 31 +- net/mac80211/ibss.c | 9 net/mac80211/ieee80211_i.h | 6 net/mac80211/scan.c | 34 +- net/mac80211/sta_info.c | 2 net/sunrpc/clnt.c | 2 net/sunrpc/rpc_pipe.c | 7 net/sunrpc/sched.c | 30 + net/sunrpc/xprt.c | 12 sound/arm/pxa2xx-ac97-lib.c | 26 + sound/soc/codecs/sigmadsp.c | 2 sound/soc/codecs/wm2000.c | 4 sound/soc/codecs/wm2200.c | 8 sound/soc/codecs/wm5100.c | 6 virt/kvm/kvm_main.c | 13 152 files changed, 1519 insertions(+), 984 deletions(-)
Aaron Lu (1):
libata: set dma_mode to 0xff in reset
Adam Jackson (1):
drm/edid/quirks: ViewSonic VA2026w
Alan Stern (1):
USB: fix endpoint-disabling for failed config changes
Alasdair G Kergon (1):
dm ioctl: prevent unsafe change to dm_ioctl data_size
Alex Deucher (4):
drm/radeon: fix eDP clk and lane setup for scaled modes drm/radeon: add WAIT_UNTIL to evergreen VM safe reg list drm/radeon: fix up pll selection on DCE5/6 drm/radeon: fix ordering in pll picking on dce4+
Alex Elder (18):
rbd: drop dev reference on error in rbd_open()
libceph: socket can close in any connection state
libceph: report connection fault with warning
libceph: init osd->o_node in create_osd()
libceph: init event->node in ceph_osdc_create_event()
libceph: don't use rb_init_node() in ceph_osdc_alloc_request()
libceph: register request before unregister linger
libceph: move linger requests sooner in kick_requests()
libceph: always reset osds when kicking
libceph: WARN, don't BUG on unexpected connection states
libceph: avoid using freed osd in __kick_osd_requests()
rbd: kill create_snap sysfs entry
rbd: add read_only rbd map option
rbd: kill notify_timeout option
ceph: don't reference req after put
rbd: remove linger unconditionally
rbd: fix bug in rbd_dev_id_put()
rbd: do not allow remove of mounted-on image
Alex Williamson (1):
KVM: Fix user memslot overlap check
Alexander Graf (1):
KVM: PPC: 44x: fix DCR read/write
Alexey Khoroshilov (1):
jffs2: hold erase_completion_lock on exit
Andre Przywara (1):
x86, amd: Disable way access filter on Piledriver CPUs
Anton Blanchard (1):
powerpc: Fix CONFIG_RELOCATABLE=y CONFIG_CRASH_DUMP=n build
Axel Lin (1):
ASoC: wm2200: Fix setting dai format in wm2200_set_fmt
Ben Widawsky (1):
drm/i915: Fix GT_MODE default value
Benjamin Marzinski (1):
GFS2: Test bufdata with buffer locked and gfs2_log_lock held
Bing Zhao (1):
mwifiex: check wait_event_interruptible return value
Bjørn Mork (2):
USB: option: blacklist network interface on ZTE MF880
USB: option: add Telekom Speedstick LTE II
Charles Keepax (1):
mfd: Only unregister platform devices allocated by the mfd core
Chris Verges (1):
hwmon: (lm73} Detect and report i2c bus errors
Chris Wilson (5):
drm/i915: Unpin the flip target if we fail to queue the flip drm/i915: Wait for all pending operations to the fb before disabling the pipe drm/i915: SDVO hotplug have different interrupt status bits for i915/i965/g4x drm/i915: Reduce a pin-leak BUG into a WARN
drm/i915: Flush the pending flips on the CRTC before modification
Dan Williams (1):
i2400m: add Intel 6150 device IDs
Daniel Vetter (6):
drm/i915: disable cpt phase pointer fdi rx workaround drm/i915: fix up ivb plane 3 pageflips
drm/i915: hold forcewake around ring hw init drm/i915: don't pwrite tiled objects through the gtt drm/i915: call drm_handle_vblank before finish_page_flip Revert "drm/i915: no lvds quirk for Zotac ZDBOX SD ID12/ID13"
David Jeffery (1):
SCSI: qla2xxx: Test and clear FCPORT_UPDATE_NEEDED atomically.
David Rientjes (1):
thp, memcg: split hugepage for memcg oom on cow
David Zafman (1):
libceph: Unlock unprocessed pages in start_read() error path
Denis N Ladin (1):
USB: cdc-acm: Add support for "PSC Scanning, Magellan 800i"
Dzianis Kahanovich (1):
USB: option: add Nexpring NP10T terminal id
Ed L. Cashin (1):
aoe: do not call bdi_init after blk_alloc_queue
Eric Wong (1):
epoll: prevent missed events on EPOLL_CTL_MOD
Eugene Shatokhin (1):
ext4: fix memory leak in ext4_xattr_set_acl()'s error path
Eugeni Dodonov (1):
drm/i915: prevent possible pin leak on error path
Felix Fietkau (3):
ath5k: fix tx path skb leaks
Revert "ath9k_hw: Update AR9003 high_power tx gain table"
ath9k_hw: Fix signal strength / channel noise reporting
Forrest Liu (1):
ext4: fix extent tree corruption caused by hole punch
Gabor Juhos (2):
powerpc: Add missing NULL terminator to avoid boot panic on PPC40x
ath9k: ar9003: fix OTP register offsets for AR9340
Greg Kroah-Hartman (1):
Linux 3.4.26
Hans de Goede (3):
udldrmfb: Fix EDID not working with monitors with EDID extension blocks
udldrmfb: udl_get_edid: usb_control_msg buffer must not be on the stack
udldrmfb: udl_get_edid: drop unneeded i--
Huacai Chen (1):
MIPS: Fix poweroff failure when HOTPLUG_CPU configured.
Ian Abbott (4):
staging: comedi: prevent auto-unconfig of manually configured devices
staging: comedi: comedi_test: fix race when cancelling command
staging: comedi: don't hijack hardware device private data
staging: comedi: Kconfig: COMEDI_NI_AT_A2150 should select COMEDI_FC
Jan Kara (2):
ext4: check dioread_nolock on remount
jbd2: fix assertion failure in jbd2_journal_flush()
Jani Nikula (1):
drm/i915: only enable sdvo hotplug irq if needed
Jason Liu (1):
mm: compaction: fix echo 1 > compact_memory return error issue
Jerome Glisse (1):
radeon/kms: force rn50 chip to always report connected on analog output
Jesse Barnes (1):
drm/i915: move NEEDS_FORCE_WAKE to i915_drv.c
Jianpeng Ma (1):
SCSI: mvsas: Fix oops when ata commond timeout.
Johannes Berg (1):
mac80211: use del_timer_sync for final sta cleanup timer deletion
Josh Durgin (6):
rbd: return errors for mapped but deleted snapshot
rbd: only reset capacity when pointing to head
rbd: expose the correct size of the device in sysfs
rbd: set image size when header is updated
rbd: use reference counting for the snap context
rbd: send header version when notifying
Larry Finger (2):
staging: r8712u: Add new device ID
b43: Fix firmware loading when driver is built into the kernel
Lars-Peter Clausen (1):
ASoC: sigmadsp: Fix endianness conversion issue
Laura Abbott (1):
mm: use aligned zone start for pfn_to_bitidx calculation
Lothar Waßmann (1):
video: mxsfb: fix crash when unblanking the display
Malcolm Priestley (6):
staging: vt6656: [BUG] out of bound array reference in RFbSetPower.
staging: vt6656: 64 bit fixes: use u32 for QWORD definition.
staging: vt6656: 64 bit fixes : correct all type sizes
staging: vt6656: 64 bit fixes: fix long warning messages.
staging: vt6656: 64bit fixes: key.c/h change unsigned long to u32
staging: vt6656: 64bit fixes: vCommandTimerWait change calculation of timer.
Marcin Slusarz (1):
drm/nouveau: fix blank LVDS screen regression on pre-nv50 cards
Marek Vasut (1):
HID: add quirk for Freescale i.MX23 ROM recovery
Mark Brown (6):
regulator: wm831x: Set the new rather than old value for DVS VSEL
mfd: wm8994: Add support for WM1811 rev E
regmap: debugfs: Avoid overflows for very small reads
ASoC: wm2000: Fix sense of speech clarity enable
ASoC: wm2200: Remove DSP B and left justified AIF modes
ASoC: wm5100: Remove DSP B and left justified formats
Michael Tokarev (1):
ext4: do not try to write superblock on ro remount w/o journal
Mikael Pettersson (1):
sata_promise: fix hardreset lockdep error
Mike Dunn (2):
ALSA: pxa27x: fix ac97 cold reset
ALSA: pxa27x: fix ac97 warm reset
Mikulas Patocka (1):
dm persistent data: rename node to btree_node
Namjae Jeon (2):
udf: fix memory leak while allocating blocks during write
udf: don't increment lenExtents while writing to a hole
Nathan Williams (1):
mtd cs553x_nand: Initialise ecc.strength before nand_scan()
Nickolai Zeldovich (1):
staging: speakup: avoid out-of-range access in synth_init()
Niels Ole Salscheider (1):
drm/radeon: Properly handle DDC probe for DP bridges
Oliver Neukum (1):
USB: hub: handle claim of enabled remote wakeup after reset
Paulo Zanoni (2):
drm/i915: make the panel fitter work on pipes B and C on IVB drm/i915: add some barriers when changing DIPs
Quentin.Li (1):
USB: option: Add new MEDIATEK PID support
Rafał Miłecki (1):
bcma: mips: fix clearing device IRQ
Sage Weil (7):
ceph: close old con before reopening on mds reconnect
ceph: tolerate (and warn on) extraneous dentry from mds
ceph: propagate layout error on osd request creation
libceph: fix protocol feature mismatch failure path
libceph: fix osdmap decode error paths
libceph: remove 'osdtimeout' option
rbd: BUG on invalid layout
Samuel Thibault (1):
staging: speakup: avoid out-of-range access in synth_add()
Sarah Sharp (8):
USB: Handle auto-transition from hot to warm reset.
USB: Ignore xHCI Reset Device status.
USB: Allow USB 3.0 ports to be disabled.
USB: Increase reset timeout.
USB: Ignore port state until reset completes.
USB: Handle warm reset failure on empty port.
xhci: Avoid "dead ports", add roothub port polling.
xhci: Handle HS bulk/ctrl endpoints that don't NAK.
Sasha Levin (1):
SCSI: prevent stack buffer overflow in host_reset
Sean Paul (1):
drm/i915: Add wait_for in init_ring_common
Sebastian Andrzej Siewior (1):
usb: gadget: dummy: fix enumeration with g_multi
Sebastian Ott (1):
s390/cio: fix pgid reserved check
Sergei Shtylyov (1):
usb: musb: core: print new line in the driver banner again
Seth Forshee (1):
samsung-laptop: Add quirk for broken acpi_video backlight on N250P
Shan Hai (1):
powerpc/vdso: Remove redundant locking in update_vsyscall_tz()
Stanislav Kinsbursky (1):
SUNRPC: continue run over clients list on PipeFS event instead of break
Stanislaw Gruszka (1):
mac80211: fix ibss scanning
Stephan Gatzka (1):
firewire: net: Fix handling of fragmented multicast/broadcast packets.
Steven Rostedt (1):
ring-buffer: Fix race between integrity check and readers
Takashi Iwai (1):
drm/i915: Check VBIOS value for determining LVDS dual channel mode, too
Tatyana Nikolova (2):
RDMA/nes: Fix for crash when registering zero length MR for CQ RDMA/nes: Fix for terminate timer crash
Theodore Ts'o (2):
ext4: fix possible use after free with metadata csum
ext4: lock i_mutex when truncating orphan inodes
Tomasz Mloduchowski (1):
usb: ftdi_sio: Crucible Technologies COMET Caller ID - pid added
Trond Myklebust (3):
SUNRPC: Ensure that we free the rpc_task after cleanups are done
SUNRPC: Ensure we release the socket write lock if the rpc_task exits early
SUNRPC: Fix validity issues with rpc_pipefs sb->s_fs_info
Wei Yongjun (1):
iscsit: use GFP_ATOMIC under spin lock
Wolfram Sang (1):
mtd: nand: gpmi: reset BCH earlier, too, to avoid NAND startup problems
Woodhouse, David (1):
intel-iommu: Free old page tables before creating superpage
Xi Wang (1):
SCSI: mvsas: fix undefined bit shift
Xiaotian Feng (1):
libata: fix Null pointer dereference on disk error
Yan, Zheng (5):
ceph: Don't update i_max_size when handling non-auth cap
ceph: Fix infinite loop in __wake_requests
ceph: Don't add dirty inode to dirty list if caps is in migration
ceph: Fix __ceph_do_pending_vmtruncate
ceph: call handle_cap_grant() for cap import message
Yi Zou (1):
target/tcm_fc: fix the lockdep warning due to inconsistent lock state
Zhang Rui (1):
ACPI : do not use Lid and Sleep button for S5 wakeup
Éric Piel (1):
staging: comedi: fix minimum AO period for NI 625x and NI 628x
Greg KH
maintainerDocumentation/ABI/testing/sysfs-bus-rbd +0 -6
@@ -51,12 +51,6 @@ current_snap The current snapshot for which the device is mapped. -create_snap - - Create a snapshot: - - $ echo <snap-name> > /sys/bus/rbd/devices/<dev-id>/snap_create - snap_* A directory per each snapshot
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 25 +SUBLEVEL = 26 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/mach-pxa/include/mach/mfp-pxa27x.h +3 -0
@@ -462,6 +462,9 @@GPIO76_LCD_PCLK , \GPIO77_LCD_BIAS +/* these enable a work-around for a hw bug in pxa27x during ac97 warm reset */ +#define GPIO113_AC97_nRESET_GPIO_HIGH MFP_CFG_OUT(GPIO113, AF0, DEFAULT) +#define GPIO95_AC97_nRESET_GPIO_HIGH MFP_CFG_OUT(GPIO95, AF0, DEFAULT)extern int keypad_set_wake (unsigned int on);#endif /* __ASM_ARCH_MFP_PXA27X_H */
arch/arm/mach-pxa/pxa27x.c +2 -2
@@ -47,9 +47,9 @@ void pxa27x_clear_otgph(void)EXPORT_SYMBOL (pxa27x_clear_otgph);static unsigned long ac97_reset_config[] = { -GPIO113_GPIO , + GPIO113_AC97_nRESET_GPIO_HIGH, GPIO113_AC97_nRESET, -GPIO95_GPIO , + GPIO95_AC97_nRESET_GPIO_HIGH, GPIO95_AC97_nRESET, };
arch/mips/kernel/process.c +1 -3
@@ -72,9 +72,7 @@ void __noreturn cpu_idle(void) } }#ifdef CONFIG_HOTPLUG_CPU -if (!cpu_online (cpu) && !cpu_isset (cpu, cpu_callin_map) && - (system_state ==SYSTEM_RUNNING || - system_state ==SYSTEM_BOOTING )) +if (!cpu_online (cpu) && !cpu_isset (cpu, cpu_callin_map))play_dead ();#endif rcu_idle_exit ();
arch/powerpc/kernel/head_64.S +1 -1
@@ -422,7 +422,7 @@ _STATIC(__after_prom_start) tovirt(r6,r6) /* on booke, we already run at PAGE_OFFSET */ #endif -#ifdef CONFIG_CRASH_DUMP +#ifdef CONFIG_RELOCATABLE /* * Check if the kernel has to be running as relocatable kernel based on the * variable __run_at_load, if it is set the kernel is treated as relocatable
arch/powerpc/kernel/time.c +0 -5
@@ -749,13 +749,8 @@ void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,void update_vsyscall_tz (void ) { -/* Make userspace gettimeofday spin until we're done. */ - ++vdso_data->tb_update_count; -smp_mb (); vdso_data->tz_minuteswest = sys_tz.tz_minuteswest; vdso_data->tz_dsttime = sys_tz.tz_dsttime; -smp_mb (); - ++vdso_data->tb_update_count; }static void __init clocksource_init (void )
arch/powerpc/kvm/44x_emulate.c +2 -0
@@ -79,6 +79,7 @@ int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu, run->dcr.dcrn = dcrn; run->dcr.data =0 ; run->dcr.is_write =0 ; + vcpu->arch.dcr_is_write =0 ; vcpu->arch.io_gpr = rt; vcpu->arch.dcr_needed =1 ;kvmppc_account_exit (vcpu,DCR_EXITS );
@@ -100,6 +101,7 @@ int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu, run->dcr.dcrn = dcrn; run->dcr.data =kvmppc_get_gpr (vcpu, rs); run->dcr.is_write =1 ; + vcpu->arch.dcr_is_write =1 ; vcpu->arch.dcr_needed =1 ;kvmppc_account_exit (vcpu,DCR_EXITS ); emulated =EMULATE_DO_DCR ;
arch/powerpc/platforms/40x/ppc40x_simple.c +2 -1
@@ -57,7 +57,8 @@ static const char *board[] __initdata = {"amcc,makalu" ,"apm,klondike" ,"est,hotfoot" , - "plathome,obs600" +"plathome,obs600" , + NULL };static int __init ppc40x_probe (void )
arch/x86/kernel/cpu/amd.c +14 -0
@@ -612,6 +612,20 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c) } } +/* +* The way access filter has a performance penalty on some workloads. +* Disable it on the affected CPUs. +*/ +if ((c->x86 ==0x15 ) && + (c->x86_model >=0x02 ) && (c->x86_model <0x20 )) { +u64 val; + +if (!rdmsrl_safe (0xc0011021 , &val) && !(val &0x1E )) { + val |=0x1E ; +checking_wrmsrl (0xc0011021 , val); + } + } +cpu_detect_cache_sizes (c);/* Multi core CPU? */
drivers/acpi/scan.c +6 -1
@@ -789,8 +789,8 @@ acpi_bus_extract_wakeup_device_power_package(acpi_handle handle,static void acpi_bus_set_run_wake_flags (struct acpi_device *device) {struct acpi_device_id button_device_ids[] = { - {"PNP0C0D" ,0 }, {"PNP0C0C" ,0 }, + {"PNP0C0D" ,0 }, {"PNP0C0E" ,0 }, {"" ,0 }, };
@@ -802,6 +802,11 @@ static void acpi_bus_set_run_wake_flags(struct acpi_device *device)/* Power button, Lid switch always enable wakeup */ if (!acpi_match_device_ids (device, button_device_ids)) { device->wakeup.flags.run_wake =1 ; +if (!acpi_match_device_ids (device, &button_device_ids[1 ])) { +/* Do not use Lid/sleep button for S5 wakeup */ +if (device->wakeup.sleep_state ==ACPI_STATE_S5 ) + device->wakeup.sleep_state =ACPI_STATE_S4 ; + }device_set_wakeup_capable (&device->dev, true);return ; }
drivers/ata/libata-core.c +1 -0
@@ -2536,6 +2536,7 @@ int ata_bus_probe(struct ata_port *ap)* bus as we may be talking too fast. */ dev->pio_mode =XFER_PIO_0 ; + dev->dma_mode =0xff ;/* If the controller has a pio mode setup function * then use it to set the chipset to rights. Don't
drivers/ata/libata-eh.c +1 -0
@@ -2600,6 +2600,7 @@ int ata_eh_reset(struct ata_link *link, int classify,* bus as we may be talking too fast. */ dev->pio_mode =XFER_PIO_0 ; + dev->dma_mode =0xff ;/* If the controller has a pio mode setup function * then use it to set the chipset to rights. Don't
drivers/ata/libata-scsi.c +4 -2
@@ -309,7 +309,8 @@ ata_scsi_activity_show(struct device *dev, struct device_attribute *attr,struct ata_port *ap =ata_shost_to_port (sdev->host);struct ata_device *atadev =ata_scsi_find_dev (ap, sdev); -if (ap->ops->sw_activity_show && (ap->flags &ATA_FLAG_SW_ACTIVITY )) +if (atadev && ap->ops->sw_activity_show && + (ap->flags &ATA_FLAG_SW_ACTIVITY ))return ap->ops->sw_activity_show (atadev, buf);return -EINVAL ; }
@@ -324,7 +325,8 @@ ata_scsi_activity_store(struct device *dev, struct device_attribute *attr,enum sw_activity val;int rc; -if (ap->ops->sw_activity_store && (ap->flags &ATA_FLAG_SW_ACTIVITY )) { +if (atadev && ap->ops->sw_activity_store && + (ap->flags &ATA_FLAG_SW_ACTIVITY )) { val =simple_strtoul (buf,NULL ,0 );switch (val) {case OFF :case BLINK_ON :case BLINK_OFF :
drivers/ata/sata_promise.c +13 -2
@@ -147,6 +147,10 @@ struct pdc_port_priv {dma_addr_t pkt_dma; }; +struct pdc_host_priv { +spinlock_t hard_reset_lock; +}; +static int pdc_sata_scr_read (struct ata_link *link,unsigned int sc_reg,u32 *val);static int pdc_sata_scr_write (struct ata_link *link,unsigned int sc_reg,u32 val);static int pdc_ata_init_one (struct pci_dev *pdev,const struct pci_device_id *ent);
@@ -801,9 +805,10 @@ static void pdc_hard_reset_port(struct ata_port *ap)void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR ];void __iomem *pcictl_b1_mmio = host_mmio +PDC_PCI_CTL +1 ;unsigned int ata_no =pdc_ata_port_to_ata_no (ap); +struct pdc_host_priv *hpriv = ap->host->private_data;u8 tmp; -spin_lock (&ap->host->lock); +spin_lock (&hpriv->hard_reset_lock); tmp =readb (pcictl_b1_mmio); tmp &= ~(0x10 << ata_no);
@@ -814,7 +819,7 @@ static void pdc_hard_reset_port(struct ata_port *ap)writeb (tmp, pcictl_b1_mmio);readb (pcictl_b1_mmio);/* flush */ -spin_unlock (&ap->host->lock); +spin_unlock (&hpriv->hard_reset_lock); } static int pdc_sata_hardreset(struct ata_link *link, unsigned int *class,
@@ -1182,6 +1187,7 @@ static int pdc_ata_init_one(struct pci_dev *pdev,const struct ata_port_info *pi = &pdc_port_info[ent->driver_data];const struct ata_port_info *ppi[PDC_MAX_PORTS ];struct ata_host *host; +struct pdc_host_priv *hpriv;void __iomem *host_mmio;int n_ports, i, rc;int is_sataii_tx4;
@@ -1218,6 +1224,11 @@ static int pdc_ata_init_one(struct pci_dev *pdev,dev_err (&pdev->dev,"failed to allocate host\n" );return -ENOMEM ; } + hpriv =devm_kzalloc (&pdev->dev,sizeof *hpriv,GFP_KERNEL ); +if (!hpriv) +return -ENOMEM ; +spin_lock_init (&hpriv->hard_reset_lock); + host->private_data = hpriv; host->iomap =pcim_iomap_table (pdev); is_sataii_tx4 =pdc_is_sataii_tx4 (pi->flags);
drivers/base/regmap/regmap-debugfs.c +1 -1
@@ -90,7 +90,7 @@ static ssize_t regmap_map_read_file(struct file *file, char __user *user_buf,/* If we're in the region the user is trying to read */ if (p >= *ppos) {/* ...but not beyond it */ -if (buf_pos >= count -1 - tot_len) +if (buf_pos +1 + tot_len >= count)break ;/* Format the register */
drivers/bcma/driver_mips.c +1 -1
@@ -115,7 +115,7 @@ static void bcma_core_mips_set_irq(struct bcma_device *dev, unsigned int irq)bcma_read32 (mdev,BCMA_MIPS_MIPS74K_INTMASK (0 )) & ~(1 << irqflag)); else - bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq), 0); + bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(oldirq), 0);/* assign the new one */ if (irq ==0 ) {
drivers/block/aoe/aoe.h +1 -1
@@ -1,5 +1,5 @@/* Copyright (c) 2007 Coraid, Inc. See COPYING for GPL terms. */ -#define VERSION "47" +#define VERSION "47q"#define AOE_MAJOR 152#define DEVICE_NAME "aoe"
drivers/block/aoe/aoeblk.c +0 -5
@@ -276,8 +276,6 @@ aoeblk_gdalloc(void *vp) goto err_mempool;blk_queue_make_request (d->blkq, aoeblk_make_request); d->blkq->backing_dev_info.name ="aoe" ; -if (bdi_init (&d->blkq->backing_dev_info)) - goto err_blkq;spin_lock_irqsave (&d->lock, flags); gd->major =AOE_MAJOR ; gd->first_minor = d->sysminor *AOE_PARTITIONS ;
@@ -298,9 +296,6 @@ aoeblk_gdalloc(void *vp)aoedisk_add_sysfs (d);return ; -err_blkq: -blk_cleanup_queue (d->blkq); - d->blkq =NULL ; err_mempool:mempool_destroy (d->bufpool); err_disk:
drivers/block/rbd.c +99 -194
544 lines not on this page · raw message
drivers/firewire/net.c +9 -4
@@ -861,8 +861,8 @@ static void fwnet_receive_broadcast(struct fw_iso_context *context,if (specifier_id ==IANA_SPECIFIER_ID && ver ==RFC2734_SW_VERSION ) { buf_ptr +=2 ; length -=IEEE1394_GASP_HDR_SIZE ; -fwnet_incoming_packet (dev, buf_ptr, length, - source_node_id,-1 , true); +fwnet_incoming_packet (dev, buf_ptr, length, source_node_id, + context->card->generation, true); } packet.payload_length = dev->rcv_buffer_size;
@@ -958,7 +958,12 @@ static void fwnet_transmit_packet_done(struct fwnet_packet_task *ptask)break ; } -skb_pull (skb, ptask->max_payload); +if (ptask->dest_node ==IEEE1394_ALL_NODES ) { +skb_pull (skb, + ptask->max_payload +IEEE1394_GASP_HDR_SIZE ); + }else { +skb_pull (skb, ptask->max_payload); + }if (ptask->outstanding_pkts >1 ) {fwnet_make_sf_hdr (&ptask->hdr,RFC2374_HDR_INTFRAG , dg_size, fg_off, datagram_label);
@@ -1062,7 +1067,7 @@ static int fwnet_send_packet(struct fwnet_packet_task *ptask)smp_rmb (); node_id = dev->card->node_id; - p =skb_push (ptask->skb,8 ); + p =skb_push (ptask->skb,IEEE1394_GASP_HDR_SIZE );put_unaligned_be32 (node_id <<16 |IANA_SPECIFIER_ID >>8 , p);put_unaligned_be32 ((IANA_SPECIFIER_ID &0xff ) <<24 |RFC2734_SW_VERSION , &p[4 ]);
drivers/gpu/drm/drm_edid.c +18 -4
@@ -66,6 +66,8 @@#define EDID_QUIRK_FIRST_DETAILED_PREFERRED (1 << 5)/* use +hsync +vsync for detailed mode */ #define EDID_QUIRK_DETAILED_SYNC_PP (1 << 6) +/* Force reduced-blanking timings for detailed modes */ +#define EDID_QUIRK_FORCE_REDUCED_BLANKING (1 << 7)struct detailed_mode_closure {struct drm_connector *connector;
@@ -120,6 +122,9 @@ static struct edid_quirk {/* Samsung SyncMaster 22[5-6]BW */ { "SAM", 596, EDID_QUIRK_PREFER_LARGE_60 }, { "SAM", 638, EDID_QUIRK_PREFER_LARGE_60 }, + +/* ViewSonic VA2026w */ + { "VSC", 5020, EDID_QUIRK_FORCE_REDUCED_BLANKING }, };/*** DDC fetch and block validation ***/
@@ -852,12 +857,19 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, "Wrong Hsync/Vsync pulse width\n");return NULL ; } + +if (quirks &EDID_QUIRK_FORCE_REDUCED_BLANKING ) { + mode =drm_cvt_mode (dev, hactive, vactive,60 , true, false, false); +if (!mode) +return NULL ; + + goto set_size; + } + mode =drm_mode_create (dev);if (!mode)return NULL ; - mode->type =DRM_MODE_TYPE_DRIVER ; -if (quirks &EDID_QUIRK_135_CLOCK_TOO_HIGH ) timing->pixel_clock =cpu_to_le16 (1088 );
@@ -881,8 +893,6 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,drm_mode_do_interlace_quirk (mode, pt); -drm_mode_set_name (mode); -if (quirks &EDID_QUIRK_DETAILED_SYNC_PP ) { pt->misc |=DRM_EDID_PT_HSYNC_POSITIVE |DRM_EDID_PT_VSYNC_POSITIVE ; }
@@ -892,6 +902,7 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, mode->flags |= (pt->misc &DRM_EDID_PT_VSYNC_POSITIVE ) ?DRM_MODE_FLAG_PVSYNC :DRM_MODE_FLAG_NVSYNC ; +set_size: mode->width_mm = pt->width_mm_lo | (pt->width_height_mm_hi &0xf0 ) <<4 ; mode->height_mm = pt->height_mm_lo | (pt->width_height_mm_hi &0xf ) <<8 ;
@@ -905,6 +916,9 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, mode->height_mm = edid->height_cm *10 ; } + mode->type =DRM_MODE_TYPE_DRIVER ; +drm_mode_set_name (mode); +return mode; }
drivers/gpu/drm/i915/i915_drv.c +10 -0
@@ -224,6 +224,7 @@ static const struct intel_device_info intel_sandybridge_d_info = { .has_bsd_ring = 1, .has_blt_ring = 1, .has_llc = 1, + .has_force_wake = 1, };static const struct intel_device_info intel_sandybridge_m_info = {
@@ -233,6 +234,7 @@ static const struct intel_device_info intel_sandybridge_m_info = { .has_bsd_ring = 1, .has_blt_ring = 1, .has_llc = 1, + .has_force_wake = 1, };static const struct intel_device_info intel_ivybridge_d_info = {
@@ -241,6 +243,7 @@ static const struct intel_device_info intel_ivybridge_d_info = { .has_bsd_ring = 1, .has_blt_ring = 1, .has_llc = 1, + .has_force_wake = 1, };static const struct intel_device_info intel_ivybridge_m_info = {
@@ -250,6 +253,7 @@ static const struct intel_device_info intel_ivybridge_m_info = { .has_bsd_ring = 1, .has_blt_ring = 1, .has_llc = 1, + .has_force_wake = 1, };static const struct pci_device_id pciidlist[] = {/* aka */
@@ -993,6 +997,12 @@ MODULE_AUTHOR(DRIVER_AUTHOR);MODULE_DESCRIPTION (DRIVER_DESC );MODULE_LICENSE ("GPL and additional rights" ); +/* We give fast paths for the really cool registers */ +#define NEEDS_FORCE_WAKE (dev_priv, reg) \ + ((HAS_FORCE_WAKE((dev_priv)->dev)) && \ + ((reg) < 0x40000) && \ + ((reg) != FORCEWAKE)) +#define __i915_read (x, y) \ u##x i915_read##x(struct drm_i915_private *dev_priv, u32 reg) { \ u##x val = 0; \
drivers/gpu/drm/i915/i915_drv.h +5 -6
@@ -255,6 +255,7 @@ struct intel_device_info { u8 is_broadwater:1; u8 is_crestline:1; u8 is_ivybridge:1; + u8 has_force_wake:1; u8 has_fbc:1; u8 has_pipe_cxsr:1; u8 has_hotplug:1;
@@ -405,6 +406,8 @@ typedef struct drm_i915_private { unsigned int lvds_use_ssc:1; unsigned int display_clock_mode:1;int lvds_ssc_freq; +unsigned int bios_lvds_val;/* initial [PCH_]LVDS reg val in VBIOS */ +unsigned int lvds_val;/* used for checking LVDS channel mode */ struct {int rate;int lanes;
@@ -1051,6 +1054,8 @@ struct drm_i915_file_private {#define HAS_PCH_CPT (dev) (INTEL_PCH_TYPE(dev) == PCH_CPT)#define HAS_PCH_IBX (dev) (INTEL_PCH_TYPE(dev) == PCH_IBX) +#define HAS_FORCE_WAKE (dev) (INTEL_INFO(dev)->has_force_wake) +#include "i915_trace.h" /**
@@ -1450,12 +1455,6 @@ void gen6_gt_force_wake_get(struct drm_i915_private *dev_priv);void gen6_gt_force_wake_put (struct drm_i915_private *dev_priv);int __gen6_gt_wait_for_fifo (struct drm_i915_private *dev_priv); -/* We give fast paths for the really cool registers */ -#define NEEDS_FORCE_WAKE (dev_priv, reg) \ - (((dev_priv)->info->gen >= 6) && \ - ((reg) < 0x40000) && \ - ((reg) != FORCEWAKE)) -#define __i915_read (x, y) \ u##x i915_read##x(struct drm_i915_private *dev_priv, u32 reg);
drivers/gpu/drm/i915/i915_gem.c +3 -1
@@ -928,6 +928,7 @@ i915_gem_pwrite_ioctl(struct drm_device *dev, void *data, }if (obj->gtt_space && + obj->tiling_mode ==I915_TILING_NONE && obj->base.write_domain !=I915_GEM_DOMAIN_CPU ) { ret =i915_gem_object_pin (obj,0 , true);if (ret)
@@ -3317,7 +3318,8 @@ i915_gem_object_pin(struct drm_i915_gem_object *obj,struct drm_i915_private *dev_priv = dev->dev_private;int ret; -BUG_ON (obj->pin_count ==DRM_I915_GEM_OBJECT_MAX_PIN_COUNT ); +if (WARN_ON (obj->pin_count ==DRM_I915_GEM_OBJECT_MAX_PIN_COUNT )) +return -EBUSY ;WARN_ON (i915_verify_lists (dev));if (obj->gtt_space !=NULL ) {
drivers/gpu/drm/i915/i915_irq.c +28 -16
74 lines not on this page · raw message
drivers/gpu/drm/i915/i915_reg.h +21 -2
@@ -197,6 +197,14 @@#define MI_DISPLAY_FLIP MI_INSTR(0x14, 2)#define MI_DISPLAY_FLIP_I915 MI_INSTR(0x14, 1)#define MI_DISPLAY_FLIP_PLANE (n) ((n) << 20) +/* IVB has funny definitions for which plane to flip. */ +#define MI_DISPLAY_FLIP_IVB_PLANE_A (0 << 19) +#define MI_DISPLAY_FLIP_IVB_PLANE_B (1 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_A (2 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_B (3 << 19) +#define MI_DISPLAY_FLIP_IVB_PLANE_C (4 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_C (5 << 19) +#define MI_SET_CONTEXT MI_INSTR(0x18, 0)#define MI_MM_SPACE_GTT (1<<8)#define MI_MM_SPACE_PHYSICAL (0<<8)
@@ -437,6 +445,9 @@# define VS_TIMER_DISPATCH (1 << 6)# define MI_FLUSH_ENABLE (1 << 12) +#define GEN6_GT_MODE 0x20d0 +#define GEN6_GT_MODE_HI (1 << 9) +#define GFX_MODE 0x02520#define GFX_MODE_GEN7 0x0229c#define RING_MODE_GEN7 (ring) ((ring)->mmio_base+0x29c)
@@ -1483,14 +1494,20 @@#define DPC_HOTPLUG_INT_STATUS (1 << 28)#define HDMID_HOTPLUG_INT_STATUS (1 << 27)#define DPD_HOTPLUG_INT_STATUS (1 << 27) +/* CRT/TV common between gen3+ */ #define CRT_HOTPLUG_INT_STATUS (1 << 11)#define TV_HOTPLUG_INT_STATUS (1 << 10)#define CRT_HOTPLUG_MONITOR_MASK (3 << 8)#define CRT_HOTPLUG_MONITOR_COLOR (3 << 8)#define CRT_HOTPLUG_MONITOR_MONO (2 << 8)#define CRT_HOTPLUG_MONITOR_NONE (0 << 8) -#define SDVOC_HOTPLUG_INT_STATUS (1 << 7) -#define SDVOB_HOTPLUG_INT_STATUS (1 << 6) +/* SDVO is different across gen3/4 */ +#define SDVOC_HOTPLUG_INT_STATUS_G4X (1 << 3) +#define SDVOB_HOTPLUG_INT_STATUS_G4X (1 << 2) +#define SDVOC_HOTPLUG_INT_STATUS_I965 (3 << 4) +#define SDVOB_HOTPLUG_INT_STATUS_I965 (3 << 2) +#define SDVOC_HOTPLUG_INT_STATUS_I915 (1 << 7) +#define SDVOB_HOTPLUG_INT_STATUS_I915 (1 << 6)/* SDVO port control */ #define SDVOB 0x61140
@@ -3015,6 +3032,8 @@#define _PFA_CTL_1 0x68080#define _PFB_CTL_1 0x68880#define PF_ENABLE (1<<31) +#define PF_PIPE_SEL_MASK_IVB (3<<29) +#define PF_PIPE_SEL_IVB (pipe) ((pipe)<<29)#define PF_FILTER_MASK (3<<23)#define PF_FILTER_PROGRAMMED (0<<23)#define PF_FILTER_MED_3x3 (1<<23)
drivers/gpu/drm/i915/intel_bios.c +36 -0
@@ -174,6 +174,28 @@ get_lvds_dvo_timing(const struct bdb_lvds_lfp_data *lvds_lfp_data,return (struct lvds_dvo_timing *)(entry + dvo_timing_offset); } +/* get lvds_fp_timing entry +* this function may return NULL if the corresponding entry is invalid +*/ +static const struct lvds_fp_timing * +get_lvds_fp_timing (const struct bdb_header *bdb, +const struct bdb_lvds_lfp_data *data, +const struct bdb_lvds_lfp_data_ptrs *ptrs, +int index) +{ +size_t data_ofs = (const u8 *)data - (const u8 *)bdb; +u16 data_size = ((const u16 *)data)[-1 ];/* stored in header */ +size_t ofs; + +if (index >=ARRAY_SIZE (ptrs->ptr)) +return NULL ; + ofs = ptrs->ptr[index].fp_timing_offset; +if (ofs < data_ofs || + ofs +sizeof (struct lvds_fp_timing ) > data_ofs + data_size) +return NULL ; +return (const struct lvds_fp_timing *)((const u8 *)bdb + ofs); +} +/* Try to find integrated panel data */ static void parse_lfp_panel_data(struct drm_i915_private *dev_priv,
@@ -183,6 +205,7 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv,const struct bdb_lvds_lfp_data *lvds_lfp_data;const struct bdb_lvds_lfp_data_ptrs *lvds_lfp_data_ptrs;const struct lvds_dvo_timing *panel_dvo_timing; +const struct lvds_fp_timing *fp_timing;struct drm_display_mode *panel_fixed_mode;int i, downclock;
@@ -244,6 +267,19 @@ parse_lfp_panel_data(struct drm_i915_private *dev_priv,"Normal Clock %dKHz, downclock %dKHz\n" , panel_fixed_mode->clock, 10*downclock); } + + fp_timing =get_lvds_fp_timing (bdb, lvds_lfp_data, + lvds_lfp_data_ptrs, + lvds_options->panel_type); +if (fp_timing) { +/* check the resolution, just to be sure */ +if (fp_timing->x_res == panel_fixed_mode->hdisplay && + fp_timing->y_res == panel_fixed_mode->vdisplay) { + dev_priv->bios_lvds_val = fp_timing->lvds_reg_val; +DRM_DEBUG_KMS ("VBT initial LVDS value %x\n" , + dev_priv->bios_lvds_val); + } + } }/* Try to find sdvo panel data */
drivers/gpu/drm/i915/intel_display.c +112 -78
366 lines not on this page · raw message
drivers/gpu/drm/i915/intel_hdmi.c +10 -1
@@ -138,14 +138,17 @@ static void i9xx_write_infoframe(struct drm_encoder *encoder,I915_WRITE (VIDEO_DIP_CTL ,VIDEO_DIP_ENABLE | val | port | flags); +mmiowb ();for (i =0 ; i < len; i +=4 ) {I915_WRITE (VIDEO_DIP_DATA , *data); data++; } +mmiowb (); flags |=intel_infoframe_flags (frame);I915_WRITE (VIDEO_DIP_CTL ,VIDEO_DIP_ENABLE | val | port | flags); +POSTING_READ (VIDEO_DIP_CTL ); } static void ironlake_write_infoframe(struct drm_encoder *encoder,
@@ -168,14 +171,17 @@ static void ironlake_write_infoframe(struct drm_encoder *encoder,I915_WRITE (reg,VIDEO_DIP_ENABLE | val | flags); +mmiowb ();for (i =0 ; i < len; i +=4 ) {I915_WRITE (TVIDEO_DIP_DATA (intel_crtc->pipe), *data); data++; } +mmiowb (); flags |=intel_infoframe_flags (frame);I915_WRITE (reg,VIDEO_DIP_ENABLE | val | flags); +POSTING_READ (reg); }static void intel_set_infoframe (struct drm_encoder *encoder,struct dip_infoframe *frame)
@@ -549,10 +555,13 @@ void intel_hdmi_init(struct drm_device *dev, int sdvox_reg)if (!HAS_PCH_SPLIT (dev)) { intel_hdmi->write_infoframe = i9xx_write_infoframe;I915_WRITE (VIDEO_DIP_CTL ,0 ); +POSTING_READ (VIDEO_DIP_CTL ); }else { intel_hdmi->write_infoframe = ironlake_write_infoframe; -for_each_pipe (i) +for_each_pipe (i) {I915_WRITE (TVIDEO_DIP_CTL (i),0 ); +POSTING_READ (TVIDEO_DIP_CTL (i)); + } }drm_encoder_helper_add (&intel_encoder->base, &intel_hdmi_helper_funcs);
drivers/gpu/drm/i915/intel_lvds.c +0 -8
@@ -779,14 +779,6 @@ static const struct dmi_system_id intel_no_lvds[] = { }, { .callback = intel_no_lvds_dmi_callback, - .ident = "ZOTAC ZBOXSD-ID12/ID13", - .matches = { -DMI_MATCH (DMI_BOARD_VENDOR ,"ZOTAC" ), - DMI_MATCH(DMI_BOARD_NAME, "ZBOXSD-ID12/ID13"), - }, - }, - { - .callback = intel_no_lvds_dmi_callback, .ident = "Gigabyte GA-D525TUD", .matches = { DMI_MATCH(DMI_BOARD_VENDOR, "Gigabyte Technology Co., Ltd."),
drivers/gpu/drm/i915/intel_ringbuffer.c +16 -6
@@ -249,10 +249,15 @@ u32 intel_ring_get_active_head(struct intel_ring_buffer *ring)static int init_ring_common (struct intel_ring_buffer *ring) { -drm_i915_private_t *dev_priv = ring->dev->dev_private; +struct drm_device *dev = ring->dev; +drm_i915_private_t *dev_priv = dev->dev_private;struct drm_i915_gem_object *obj = ring->obj; +int ret =0 ;u32 head; +if (HAS_FORCE_WAKE (dev)) +gen6_gt_force_wake_get (dev_priv); +/* Stop the ring if it's running. */ I915_WRITE_CTL (ring,0 );I915_WRITE_HEAD (ring,0 );
@@ -290,9 +295,9 @@ static int init_ring_common(struct intel_ring_buffer *ring) | RING_VALID);/* If the head is still not zero, the ring is dead */ -if ((I915_READ_CTL (ring) &RING_VALID ) ==0 || -I915_READ_START (ring) != obj->gtt_offset || - (I915_READ_HEAD (ring) &HEAD_ADDR ) !=0 ) { +if (wait_for ((I915_READ_CTL (ring) &RING_VALID ) !=0 && +I915_READ_START (ring) == obj->gtt_offset && + (I915_READ_HEAD (ring) &HEAD_ADDR ) ==0 ,50 )) { DRM_ERROR("%s initialization failed " "ctl %08x head %08x tail %08x start %08x\n", ring->name,
@@ -300,7 +305,8 @@ static int init_ring_common(struct intel_ring_buffer *ring)I915_READ_HEAD (ring),I915_READ_TAIL (ring), I915_READ_START(ring)); -return -EIO ; + ret = -EIO ; + goto out; }if (!drm_core_check_feature (ring->dev,DRIVER_MODESET ))
@@ -312,7 +318,11 @@ static int init_ring_common(struct intel_ring_buffer *ring) ring->last_retired_head =-1 ; } -return 0 ; +out: +if (HAS_FORCE_WAKE (dev)) +gen6_gt_force_wake_put (dev_priv); + +return ret; } static int
drivers/gpu/drm/i915/intel_sdvo.c +18 -12
@@ -2528,6 +2528,7 @@ bool intel_sdvo_init(struct drm_device *dev, int sdvo_reg)struct drm_i915_private *dev_priv = dev->dev_private;struct intel_encoder *intel_encoder;struct intel_sdvo *intel_sdvo; +u32 hotplug_mask;int i; intel_sdvo =kzalloc (sizeof (struct intel_sdvo ),GFP_KERNEL );
@@ -2558,10 +2559,17 @@ bool intel_sdvo_init(struct drm_device *dev, int sdvo_reg) } } -if (IS_SDVOB (sdvo_reg)) - dev_priv->hotplug_supported_mask |=SDVOB_HOTPLUG_INT_STATUS ; -else - dev_priv->hotplug_supported_mask |=SDVOC_HOTPLUG_INT_STATUS ; + hotplug_mask =0 ; +if (IS_G4X (dev)) { + hotplug_mask =IS_SDVOB (sdvo_reg) ? +SDVOB_HOTPLUG_INT_STATUS_G4X :SDVOC_HOTPLUG_INT_STATUS_G4X ; + }else if (IS_GEN4 (dev)) { + hotplug_mask =IS_SDVOB (sdvo_reg) ? +SDVOB_HOTPLUG_INT_STATUS_I965 :SDVOC_HOTPLUG_INT_STATUS_I965 ; + }else { + hotplug_mask =IS_SDVOB (sdvo_reg) ? +SDVOB_HOTPLUG_INT_STATUS_I915 :SDVOC_HOTPLUG_INT_STATUS_I915 ; + }drm_encoder_helper_add (&intel_encoder->base, &intel_sdvo_helper_funcs);
@@ -2569,14 +2577,6 @@ bool intel_sdvo_init(struct drm_device *dev, int sdvo_reg)if (!intel_sdvo_get_capabilities (intel_sdvo, &intel_sdvo->caps)) goto err; -/* Set up hotplug command - note paranoia about contents of reply. -* We assume that the hardware is in a sane state, and only touch -* the bits we think we understand. -*/ -intel_sdvo_get_value (intel_sdvo,SDVO_CMD_GET_ACTIVE_HOT_PLUG , - &intel_sdvo->hotplug_active,2 ); - intel_sdvo->hotplug_active[0 ] &= ~0x3 ; -if (intel_sdvo_output_setup (intel_sdvo, intel_sdvo->caps.output_flags) != true) { DRM_DEBUG_KMS("SDVO output failed to setup on SDVO%c\n",
@@ -2584,6 +2584,12 @@ bool intel_sdvo_init(struct drm_device *dev, int sdvo_reg) goto err; } +/* Only enable the hotplug irq if we need it, to work around noisy +* hotplug lines. +*/ +if (intel_sdvo->hotplug_active[0 ]) + dev_priv->hotplug_supported_mask |= hotplug_mask; +intel_sdvo_select_ddc_bus (dev_priv, intel_sdvo, sdvo_reg);/* Set the input timing to the screen. Assume always input 0. */
drivers/gpu/drm/nouveau/nv04_dfp.c +1 -1
@@ -504,7 +504,7 @@ static void nv04_dfp_update_backlight(struct drm_encoder *encoder, int mode)static inline bool is_powersaving_dpms (int mode) { -return (mode !=DRM_MODE_DPMS_ON ); +return mode !=DRM_MODE_DPMS_ON && mode !=NV_DPMS_CLEARED ; }static void nv04_lvds_dpms (struct drm_encoder *encoder,int mode)
drivers/gpu/drm/radeon/atombios_crtc.c +5 -1
@@ -1533,8 +1533,12 @@ static int radeon_atom_pick_pll(struct drm_crtc *crtc)* crtc virtual pixel clock. */ if (ENCODER_MODE_IS_DP (atombios_get_encoder_mode (test_encoder))) { -if (ASIC_IS_DCE5 (rdev) || rdev->clock.dp_extclk) +if (rdev->clock.dp_extclk)return ATOM_PPLL_INVALID ; +else if (ASIC_IS_DCE6 (rdev)) +return ATOM_PPLL0 ; +else if (ASIC_IS_DCE5 (rdev)) +return ATOM_DCPLL ; } } }
drivers/gpu/drm/radeon/atombios_encoders.c +1 -1
@@ -95,7 +95,7 @@ static bool radeon_atom_mode_fixup(struct drm_encoder *encoder, ((radeon_encoder->active_device & (ATOM_DEVICE_DFP_SUPPORT | ATOM_DEVICE_LCD_SUPPORT)) || (radeon_encoder_get_dp_bridge_encoder_id(encoder) != ENCODER_OBJECT_ID_NONE))) {struct drm_connector *connector =radeon_get_connector_for_encoder (encoder); -radeon_dp_set_link_config (connector, mode); +radeon_dp_set_link_config (connector, adjusted_mode); }return true;
drivers/gpu/drm/radeon/evergreen_cs.c +1 -0
@@ -2670,6 +2670,7 @@ static bool evergreen_vm_reg_valid(u32 reg)/* check config regs */ switch (reg) { +case WAIT_UNTIL :case GRBM_GFX_INDEX :case CP_STRMOUT_CNTL :case CP_COHER_CNTL :
drivers/gpu/drm/radeon/radeon_connectors.c +6 -4
@@ -689,7 +689,7 @@ radeon_vga_detect(struct drm_connector *connector, bool force) ret = connector_status_disconnected;if (radeon_connector->ddc_bus) - dret =radeon_ddc_probe (radeon_connector); + dret =radeon_ddc_probe (radeon_connector, false);if (dret) { radeon_connector->detected_by_load = false;if (radeon_connector->edid) {
@@ -895,7 +895,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)return connector->status;if (radeon_connector->ddc_bus) - dret =radeon_ddc_probe (radeon_connector); + dret =radeon_ddc_probe (radeon_connector, false);if (dret) { radeon_connector->detected_by_load = false;if (radeon_connector->edid) {
@@ -1335,7 +1335,8 @@ radeon_dp_detect(struct drm_connector *connector, bool force)if (encoder) {/* setup ddc on the bridge */ radeon_atom_ext_encoder_setup_ddc (encoder); -if (radeon_ddc_probe (radeon_connector))/* try DDC */ +/* bridge chips are always aux */ +if (radeon_ddc_probe (radeon_connector, true))/* try DDC */ ret = connector_status_connected;else if (radeon_connector->dac_load_detect) {/* try load detection */ struct drm_encoder_helper_funcs *encoder_funcs = encoder->helper_private;
@@ -1353,7 +1354,8 @@ radeon_dp_detect(struct drm_connector *connector, bool force)if (radeon_dp_getdpcd (radeon_connector)) ret = connector_status_connected; }else { -if (radeon_ddc_probe (radeon_connector)) +/* try non-aux ddc (DP to DVI/HMDI/etc. adapter) */ +if (radeon_ddc_probe (radeon_connector, false)) ret = connector_status_connected; } }
drivers/gpu/drm/radeon/radeon_display.c +9 -4
@@ -713,10 +713,15 @@ int radeon_ddc_get_modes(struct radeon_connector *radeon_connector)if (radeon_connector->router.ddc_valid)radeon_router_select_ddc_port (radeon_connector); -if ((radeon_connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) || - (radeon_connector->base.connector_type == DRM_MODE_CONNECTOR_eDP) || - (radeon_connector_encoder_get_dp_bridge_encoder_id (&radeon_connector->base) != -ENCODER_OBJECT_ID_NONE )) { +if (radeon_connector_encoder_get_dp_bridge_encoder_id (&radeon_connector->base) != +ENCODER_OBJECT_ID_NONE ) { +struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; + +if (dig->dp_i2c_bus) + radeon_connector->edid =drm_get_edid (&radeon_connector->base, + &dig->dp_i2c_bus->adapter); + }else if ((radeon_connector->base.connector_type == DRM_MODE_CONNECTOR_DisplayPort) || + (radeon_connector->base.connector_type == DRM_MODE_CONNECTOR_eDP)) {struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; if ((dig->dp_sink_type == CONNECTOR_OBJECT_ID_DISPLAYPORT ||
drivers/gpu/drm/radeon/radeon_i2c.c +8 -2
@@ -39,7 +39,7 @@ extern u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap);* radeon_ddc_probe * */ -bool radeon_ddc_probe (struct radeon_connector *radeon_connector) +bool radeon_ddc_probe (struct radeon_connector *radeon_connector,bool use_aux) {u8 out =0x0 ;u8 buf[8 ];
@@ -63,7 +63,13 @@ bool radeon_ddc_probe(struct radeon_connector *radeon_connector)if (radeon_connector->router.ddc_valid)radeon_router_select_ddc_port (radeon_connector); - ret =i2c_transfer (&radeon_connector->ddc_bus->adapter, msgs,2 ); +if (use_aux) { +struct radeon_connector_atom_dig *dig = radeon_connector->con_priv; + ret =i2c_transfer (&dig->dp_i2c_bus->adapter, msgs,2 ); + }else { + ret =i2c_transfer (&radeon_connector->ddc_bus->adapter, msgs,2 ); + } +if (ret !=2 )/* Couldn't find an accessible DDC on this connector */ return false;
drivers/gpu/drm/radeon/radeon_legacy_encoders.c +8 -0
@@ -617,6 +617,14 @@ static enum drm_connector_status radeon_legacy_primary_dac_detect(struct drm_encenum drm_connector_status found = connector_status_disconnected;bool color = true; +/* just don't bother on RN50 those chip are often connected to remoting +* console hw and often we get failure to load detect those. So to make +* everyone happy report the encoder as always connected. +*/ +if (ASIC_IS_RN50 (rdev)) { +return connector_status_connected; + } +/* save the regs we need */ vclk_ecp_cntl =RREG32_PLL (RADEON_VCLK_ECP_CNTL ); crtc_ext_cntl =RREG32 (RADEON_CRTC_EXT_CNTL );
drivers/gpu/drm/radeon/radeon_mode.h +1 -1
@@ -527,7 +527,7 @@ extern void radeon_i2c_put_byte(struct radeon_i2c_chan *i2c, u8 val);extern void radeon_router_select_ddc_port (struct radeon_connector *radeon_connector);extern void radeon_router_select_cd_port (struct radeon_connector *radeon_connector); -extern bool radeon_ddc_probe (struct radeon_connector *radeon_connector); +extern bool radeon_ddc_probe (struct radeon_connector *radeon_connector,bool use_aux);extern int radeon_ddc_get_modes (struct radeon_connector *radeon_connector);extern struct drm_encoder *radeon_best_encoder (struct drm_connector *connector);
drivers/gpu/drm/udl/udl_connector.c +15 -2
@@ -22,13 +22,17 @@static u8 *udl_get_edid (struct udl_device *udl) {u8 *block; -char rbuf[3 ]; +char *rbuf;int ret, i; block =kmalloc (EDID_LENGTH ,GFP_KERNEL );if (block ==NULL )return NULL ; + rbuf =kmalloc (2 ,GFP_KERNEL ); +if (rbuf ==NULL ) + goto error; +for (i =0 ; i <EDID_LENGTH ; i++) { ret = usb_control_msg(udl->ddev->usbdev, usb_rcvctrlpipe(udl->ddev->usbdev, 0), (0x02),
@@ -36,16 +40,17 @@ static u8 *udl_get_edid(struct udl_device *udl) HZ);if (ret <1 ) {DRM_ERROR ("Read EDID byte %d failed err %x\n" , i, ret); - i--; goto error; } block[i] = rbuf[1 ]; } +kfree (rbuf);return block; error:kfree (block); +kfree (rbuf);return NULL ; }
@@ -59,6 +64,14 @@ static int udl_get_modes(struct drm_connector *connector) connector->display_info.raw_edid = (char *)edid; +/* +* We only read the main block, but if the monitor reports extension +* blocks then the drm edid code expects them to be present, so patch +* the extension count to 0. +*/ + edid->checksum += edid->extensions; + edid->extensions =0 ; +drm_mode_connector_update_edid_property (connector, edid); ret =drm_add_edid_modes (connector, edid); connector->display_info.raw_edid =NULL ;
drivers/hid/hid-ids.h +3 -0
@@ -664,6 +664,9 @@#define USB_VENDOR_ID_SIGMA_MICRO 0x1c4f#define USB_DEVICE_ID_SIGMA_MICRO_KEYBOARD 0x0002 +#define USB_VENDOR_ID_SIGMATEL 0x066F +#define USB_DEVICE_ID_SIGMATEL_STMP3780 0x3780 +#define USB_VENDOR_ID_SKYCABLE 0x1223#define USB_DEVICE_ID_SKYCABLE_WIRELESS_PRESENTER 0x3F07
drivers/hid/usbhid/hid-quirks.c +1 -0
@@ -78,6 +78,7 @@ static const struct hid_blacklist { { USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_PIXART_IMAGING_INC_OPTICAL_TOUCH_SCREEN, HID_QUIRK_NOGET }, { USB_VENDOR_ID_QUANTA, USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH_3008, HID_QUIRK_NOGET }, { USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB, HID_QUIRK_NOGET }, + { USB_VENDOR_ID_SIGMATEL, USB_DEVICE_ID_SIGMATEL_STMP3780, HID_QUIRK_NOGET }, { USB_VENDOR_ID_SUN, USB_DEVICE_ID_RARITAN_KVM_DONGLE, HID_QUIRK_NOGET }, { USB_VENDOR_ID_SYMBOL, USB_DEVICE_ID_SYMBOL_SCANNER_1, HID_QUIRK_NOGET }, { USB_VENDOR_ID_SYMBOL, USB_DEVICE_ID_SYMBOL_SCANNER_2, HID_QUIRK_NOGET },
drivers/hwmon/lm73.c +11 -5
@@ -49,6 +49,7 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,struct i2c_client *client =to_i2c_client (dev);long temp;short value; +s32 err;int status =kstrtol (buf,10 , &temp);if (status <0 )
@@ -57,8 +58,8 @@ static ssize_t set_temp(struct device *dev, struct device_attribute *da,/* Write value */ value = (short )SENSORS_LIMIT (temp/250 , (LM73_TEMP_MIN *4 ), (LM73_TEMP_MAX *4 )) <<5 ; -i2c_smbus_write_word_swapped (client, attr->index, value); -return count; + err =i2c_smbus_write_word_swapped (client, attr->index, value); +return (err <0 ) ? err : count; } static ssize_t show_temp(struct device *dev, struct device_attribute *da,
@@ -66,11 +67,16 @@ static ssize_t show_temp(struct device *dev, struct device_attribute *da, {struct sensor_device_attribute *attr =to_sensor_dev_attr (da);struct i2c_client *client =to_i2c_client (dev); +int temp; + +s32 err =i2c_smbus_read_word_swapped (client, attr->index); +if (err <0 ) +return err; +/* use integer division instead of equivalent right shift to guarantee arithmetic shift and preserve the sign */ -int temp = ((s16) (i2c_smbus_read_word_swapped (client, - attr->index))*250 ) /32 ; -return sprintf (buf,"%d\n" , temp); + temp = (((s16 ) err) *250 ) /32 ; +return scnprintf (buf,PAGE_SIZE ,"%d\n" , temp); }
drivers/infiniband/hw/nes/nes.h +1 -0
@@ -524,6 +524,7 @@ void nes_iwarp_ce_handler(struct nes_device *, struct nes_hw_cq *);int nes_destroy_cqp (struct nes_device *);int nes_nic_cm_xmit (struct sk_buff *,struct net_device *);void nes_recheck_link_status (struct work_struct *work); +void nes_terminate_timeout (unsigned long context);/* nes_nic.c */ struct net_device *nes_netdev_init (struct nes_device *,void __iomem *);
drivers/infiniband/hw/nes/nes_hw.c +2 -7
@@ -75,7 +75,6 @@ static void nes_process_iwarp_aeqe(struct nes_device *nesdev,static void process_critical_error (struct nes_device *nesdev);static void nes_process_mac_intr (struct nes_device *nesdev,u32 mac_number);static unsigned int nes_reset_adapter_ne020 (struct nes_device *nesdev,u8 *OneG_Mode); -static void nes_terminate_timeout (unsigned long context);static void nes_terminate_start_timer (struct nes_qp *nesqp);#ifdef CONFIG_INFINIBAND_NES_DEBUG
@@ -3522,7 +3521,7 @@ static void nes_terminate_received(struct nes_device *nesdev, }/* Timeout routine in case terminate fails to complete */ -static void nes_terminate_timeout (unsigned long context) +void nes_terminate_timeout (unsigned long context) {struct nes_qp *nesqp = (struct nes_qp *)(unsigned long )context;
@@ -3532,11 +3531,7 @@ static void nes_terminate_timeout(unsigned long context)/* Set a timer in case hw cannot complete the terminate sequence */ static void nes_terminate_start_timer (struct nes_qp *nesqp) { -init_timer (&nesqp->terminate_timer); - nesqp->terminate_timer.function = nes_terminate_timeout; - nesqp->terminate_timer.expires = jiffies +HZ ; - nesqp->terminate_timer.data = (unsigned long )nesqp; -add_timer (&nesqp->terminate_timer); +mod_timer (&nesqp->terminate_timer, (jiffies +HZ )); }/**
drivers/infiniband/hw/nes/nes_verbs.c +8 -1
@@ -1404,6 +1404,9 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd, } nesqp->sig_all = (init_attr->sq_sig_type ==IB_SIGNAL_ALL_WR ); +init_timer (&nesqp->terminate_timer); + nesqp->terminate_timer.function = nes_terminate_timeout; + nesqp->terminate_timer.data = (unsigned long )nesqp;/* update the QP table */ nesdev->nesadapter->qp_table[nesqp->hwqp.qp_id-NES_FIRST_QPN ] = nesqp;
@@ -1413,7 +1416,6 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,return &nesqp->ibqp; } -/** * nes_clean_cq */
@@ -2559,6 +2561,11 @@ static struct ib_mr *nes_reg_user_mr(struct ib_pd *pd, u64 start, u64 length,return ibmr;case IWNES_MEMREG_TYPE_QP :case IWNES_MEMREG_TYPE_CQ : +if (!region->length) { +nes_debug (NES_DBG_MR ,"Unable to register zero length region for CQ\n" ); +ib_umem_release (region); +return ERR_PTR (-EINVAL ); + } nespbl =kzalloc (sizeof (*nespbl),GFP_KERNEL );if (!nespbl) {nes_debug (NES_DBG_MR ,"Unable to allocate PBL\n" );
drivers/iommu/intel-iommu.c +9 -2
@@ -1826,10 +1826,17 @@ static int __domain_mapping(struct dmar_domain *domain, unsigned long iov_pfn,if (!pte)return -ENOMEM ;/* It is large page*/ -if (largepage_lvl >1 ) +if (largepage_lvl >1 ) { pteval |=DMA_PTE_LARGE_PAGE ; -else +/* Ensure that old small page tables are removed to make room +for superpage, if they exist. */ +dma_pte_clear_range (domain, iov_pfn, + iov_pfn +lvl_to_nr_pages (largepage_lvl) -1 ); +dma_pte_free_pagetable (domain, iov_pfn, + iov_pfn +lvl_to_nr_pages (largepage_lvl) -1 ); + }else { pteval &= ~(uint64_t )DMA_PTE_LARGE_PAGE ; + } }/* We don't need lock here, nobody else
drivers/md/dm-ioctl.c +8 -0
@@ -1563,6 +1563,14 @@ static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl **param)if (copy_from_user (dmi, user, tmp.data_size)) goto bad; +/* +* Abort if something changed the ioctl data while it was being copied. +*/ +if (dmi->data_size != tmp.data_size) { +DMERR ("rejecting ioctl: data size modified while processing parameters" ); + goto bad; + } +/* Wipe the user buffer so we do not return it to userspace */ if (secure_data &&clear_user (user, tmp.data_size)) goto bad;
drivers/md/persistent-data/dm-btree-internal.h +8 -8
@@ -36,13 +36,13 @@ struct node_header {__le32 padding; } __packed; -struct node { +struct btree_node {struct node_header header;__le64 keys[0 ]; } __packed; -void inc_children (struct dm_transaction_manager *tm,struct node *n, +void inc_children (struct dm_transaction_manager *tm,struct btree_node *n,struct dm_btree_value_type *vt);int new_block (struct dm_btree_info *info,struct dm_block **result);
@@ -64,7 +64,7 @@ struct ro_spine {void init_ro_spine (struct ro_spine *s,struct dm_btree_info *info);int exit_ro_spine (struct ro_spine *s);int ro_step (struct ro_spine *s,dm_block_t new_child); -struct node *ro_node (struct ro_spine *s); +struct btree_node *ro_node (struct ro_spine *s);struct shadow_spine {struct dm_btree_info *info;
@@ -98,17 +98,17 @@ int shadow_root(struct shadow_spine *s);/* * Some inlines. */ -static inline __le64 *key_ptr (struct node *n,uint32_t index) +static inline __le64 *key_ptr (struct btree_node *n,uint32_t index) {return n->keys + index; } -static inline void *value_base (struct node *n) +static inline void *value_base (struct btree_node *n) {return &n->keys[le32_to_cpu (n->header.max_entries)]; } -static inline void *value_ptr (struct node *n,uint32_t index) +static inline void *value_ptr (struct btree_node *n,uint32_t index) {uint32_t value_size =le32_to_cpu (n->header.value_size);return value_base (n) + (value_size * index);
@@ -117,7 +117,7 @@ static inline void *value_ptr(struct node *n, uint32_t index)/* * Assumes the values are suitably-aligned and converts to core format. */ -static inline uint64_t value64 (struct node *n,uint32_t index) +static inline uint64_t value64 (struct btree_node *n,uint32_t index) {__le64 *values_le =value_base (n);
@@ -127,7 +127,7 @@ static inline uint64_t value64(struct node *n, uint32_t index)/* * Searching for a key within a single node. */ -int lower_bound (struct node *n,uint64_t key); +int lower_bound (struct btree_node *n,uint64_t key);extern struct dm_block_validator btree_node_validator;
drivers/md/persistent-data/dm-btree-remove.c +25 -25
164 lines not on this page · raw message
drivers/md/persistent-data/dm-btree-spine.c +3 -3
@@ -23,7 +23,7 @@ static void node_prepare_for_write(struct dm_block_validator *v, struct dm_block *b, size_t block_size) { -struct node *n =dm_block_data (b); +struct btree_node *n =dm_block_data (b);struct node_header *h = &n->header; h->blocknr =cpu_to_le64 (dm_block_location (b));
@@ -38,7 +38,7 @@ static int node_check(struct dm_block_validator *v, struct dm_block *b, size_t block_size) { -struct node *n =dm_block_data (b); +struct btree_node *n =dm_block_data (b);struct node_header *h = &n->header;size_t value_size;__le32 csum_disk;
@@ -164,7 +164,7 @@ int ro_step(struct ro_spine *s, dm_block_t new_child)return r; } -struct node *ro_node (struct ro_spine *s) +struct btree_node *ro_node (struct ro_spine *s) {struct dm_block *block;
drivers/md/persistent-data/dm-btree.c +11 -11
@@ -38,7 +38,7 @@ static void array_insert(void *base, size_t elt_size, unsigned nr_elts,/*----------------------------------------------------------------*/ /* makes the assumption that no two keys are the same. */ -static int bsearch (struct node *n,uint64_t key,int want_hi) +static int bsearch (struct btree_node *n,uint64_t key,int want_hi) {int lo =-1 , hi =le32_to_cpu (n->header.nr_entries);
@@ -58,12 +58,12 @@ static int bsearch(struct node *n, uint64_t key, int want_hi)return want_hi ? hi : lo; } -int lower_bound (struct node *n,uint64_t key) +int lower_bound (struct btree_node *n,uint64_t key) {return bsearch (n, key,0 ); } -void inc_children (struct dm_transaction_manager *tm,struct node *n, +void inc_children (struct dm_transaction_manager *tm,struct btree_node *n,struct dm_btree_value_type *vt) {unsigned i;
@@ -77,7 +77,7 @@ void inc_children(struct dm_transaction_manager *tm, struct node *n, vt->inc (vt->context,value_ptr (n, i)); } -static int insert_at (size_t value_size,struct node *node,unsigned index, +static int insert_at (size_t value_size,struct btree_node *node,unsigned index,uint64_t key,void *value)__dm_written_to_disk (value) {
@@ -122,7 +122,7 @@ int dm_btree_empty(struct dm_btree_info *info, dm_block_t *root) {int r;struct dm_block *b; -struct node *n; +struct btree_node *n;size_t block_size;uint32_t max_entries;
@@ -154,7 +154,7 @@ EXPORT_SYMBOL_GPL(dm_btree_empty);#define MAX_SPINE_DEPTH 64struct frame {struct dm_block *b; -struct node *n; +struct btree_node *n;unsigned level;unsigned nr_children;unsigned current_child;
@@ -295,7 +295,7 @@ EXPORT_SYMBOL_GPL(dm_btree_del);/*----------------------------------------------------------------*/ static int btree_lookup_raw (struct ro_spine *s,dm_block_t block,uint64_t key, -int (*search_fn)(struct node *,uint64_t ), +int (*search_fn)(struct btree_node *,uint64_t ),uint64_t *result_key,void *v,size_t value_size) {int i, r;
@@ -406,7 +406,7 @@ static int btree_split_sibling(struct shadow_spine *s, dm_block_t root,size_t size;unsigned nr_left, nr_right;struct dm_block *left, *right, *parent; -struct node *ln, *rn, *pn; +struct btree_node *ln, *rn, *pn;__le64 location; left =shadow_current (s);
@@ -491,7 +491,7 @@ static int btree_split_beneath(struct shadow_spine *s, uint64_t key)size_t size;unsigned nr_left, nr_right;struct dm_block *left, *right, *new_parent; -struct node *pn, *ln, *rn; +struct btree_node *pn, *ln, *rn;__le64 val; new_parent =shadow_current (s);
@@ -576,7 +576,7 @@ static int btree_insert_raw(struct shadow_spine *s, dm_block_t root, uint64_t key, unsigned *index) { int r, i = *index, top = 1; -struct node *node; +struct btree_node *node;for (;;) { r =shadow_step (s, root, vt);
@@ -643,7 +643,7 @@ static int insert(struct dm_btree_info *info, dm_block_t root,unsigned level, index =-1 , last_level = info->levels -1 ;dm_block_t block = root;struct shadow_spine spine; -struct node *n; +struct btree_node *n;struct dm_btree_value_type le64_type; le64_type.context =NULL ;
drivers/mfd/mfd-core.c +13 -2
@@ -19,6 +19,10 @@#include <linux/slab.h> #include <linux/module.h> +static struct device_type mfd_dev_type = { + .name ="mfd_device" , +}; +int mfd_cell_enable (struct platform_device *pdev) {const struct mfd_cell *cell =mfd_get_cell (pdev);
@@ -88,6 +92,7 @@ static int mfd_add_device(struct device *parent, int id, goto fail_device; pdev->dev.parent = parent; + pdev->dev.type = &mfd_dev_type;if (cell->pdata_size) { ret = platform_device_add_data(pdev,
@@ -183,10 +188,16 @@ EXPORT_SYMBOL(mfd_add_devices);static int mfd_remove_devices_fn (struct device *dev,void *c) { -struct platform_device *pdev =to_platform_device (dev); -const struct mfd_cell *cell =mfd_get_cell (pdev); +struct platform_device *pdev; +const struct mfd_cell *cell;atomic_t **usage_count = c; +if (dev->type != &mfd_dev_type) +return 0 ; + + pdev =to_platform_device (dev); + cell =mfd_get_cell (pdev); +/* find the base address of usage_count pointers (for freeing) */ if (!*usage_count || (cell->usage_count < *usage_count)) *usage_count = cell->usage_count;
drivers/mfd/wm8994-core.c +1 -0
@@ -541,6 +541,7 @@ static __devinit int wm8994_device_init(struct wm8994 *wm8994, int irq)case 1 :case 2 :case 3 : +case 4 : regmap_patch = wm1811_reva_patch; patch_regs =ARRAY_SIZE (wm1811_reva_patch);break ;
drivers/mtd/nand/cs553x_nand.c +1 -2
@@ -237,6 +237,7 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr) this->ecc.hwctl = cs_enable_hwecc; this->ecc.calculate = cs_calculate_ecc; this->ecc.correct = nand_correct_data; + this->ecc.strength =1 ;/* Enable the following for a flash based bad block table */ this->bbt_options =NAND_BBT_USE_FLASH ;
@@ -248,8 +249,6 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr) goto out_ior; } - this->ecc.strength =1 ; - new_mtd->name =kasprintf (GFP_KERNEL ,"cs553x_nand_cs%d" , cs); cs553x_mtd[cs] = new_mtd;
drivers/mtd/nand/gpmi-nand/gpmi-lib.c +9 -0
@@ -135,6 +135,15 @@ int gpmi_init(struct gpmi_nand_data *this)if (ret) goto err_out; +/* +* Reset BCH here, too. We got failures otherwise :( +* See later BCH reset for explanation of MX23 handling +*/ + ret =gpmi_reset_block (r->bch_regs,GPMI_IS_MX23 (this)); +if (ret) + goto err_out; + +/* Choose NAND mode. */ writel (BM_GPMI_CTRL1_GPMI_MODE , r->gpmi_regs +HW_GPMI_CTRL1_CLR );
drivers/net/wimax/i2400m/i2400m-usb.h +3 -0
@@ -152,6 +152,9 @@ enum {/* Device IDs */ USB_DEVICE_ID_I6050 =0x0186 ,USB_DEVICE_ID_I6050_2 =0x0188 , +USB_DEVICE_ID_I6150 =0x07d6 , +USB_DEVICE_ID_I6150_2 =0x07d7 , +USB_DEVICE_ID_I6150_3 =0x07d9 , USB_DEVICE_ID_I6250 = 0x0187, };
drivers/net/wimax/i2400m/usb.c +6 -0
@@ -510,6 +510,9 @@ int i2400mu_probe(struct usb_interface *iface,switch (id->idProduct) {case USB_DEVICE_ID_I6050 :case USB_DEVICE_ID_I6050_2 : +case USB_DEVICE_ID_I6150 : +case USB_DEVICE_ID_I6150_2 : +case USB_DEVICE_ID_I6150_3 :case USB_DEVICE_ID_I6250 : i2400mu->i6050 =1 ;break ;
@@ -759,6 +762,9 @@ staticstruct usb_device_id i2400mu_id_table[] = { {USB_DEVICE (0x8086 ,USB_DEVICE_ID_I6050 ) }, {USB_DEVICE (0x8086 ,USB_DEVICE_ID_I6050_2 ) }, + {USB_DEVICE (0x8087 ,USB_DEVICE_ID_I6150 ) }, + {USB_DEVICE (0x8087 ,USB_DEVICE_ID_I6150_2 ) }, + {USB_DEVICE (0x8087 ,USB_DEVICE_ID_I6150_3 ) }, {USB_DEVICE (0x8086 ,USB_DEVICE_ID_I6250 ) }, {USB_DEVICE (0x8086 ,0x0181 ) }, {USB_DEVICE (0x8086 ,0x1403 ) },
drivers/net/wireless/ath/ath5k/base.c +2 -2
@@ -843,7 +843,7 @@ ath5k_txbuf_free_skb(struct ath5k_hw *ah, struct ath5k_buf *bf)return ;dma_unmap_single (ah->dev, bf->skbaddr, bf->skb->len,DMA_TO_DEVICE ); -dev_kfree_skb_any (bf->skb); +ieee80211_free_txskb (ah->hw, bf->skb); bf->skb =NULL ; bf->skbaddr =0 ; bf->desc->ds_data =0 ;
@@ -1570,7 +1570,7 @@ ath5k_tx_queue(struct ieee80211_hw *hw, struct sk_buff *skb,return ; drop_packet: -dev_kfree_skb_any (skb); +ieee80211_free_txskb (hw, skb); } static void
drivers/net/wireless/ath/ath5k/mac80211-ops.c +1 -1
@@ -59,7 +59,7 @@ ath5k_tx(struct ieee80211_hw *hw, struct sk_buff *skb)u16 qnum =skb_get_queue_mapping (skb);if (WARN_ON (qnum >= ah->ah_capabilities.cap_queues.q_tx_num)) { -dev_kfree_skb_any (skb); +ieee80211_free_txskb (hw, skb);return ; }
drivers/net/wireless/ath/ath9k/ar9003_2p2_initvals.h +86 -86
184 lines not on this page · raw message
drivers/net/wireless/ath/ath9k/ar9003_eeprom.h +3 -3
@@ -69,13 +69,13 @@#define AR9300_BASE_ADDR 0x3ff#define AR9300_BASE_ADDR_512 0x1ff -#define AR9300_OTP_BASE 0x14000 -#define AR9300_OTP_STATUS 0x15f18 +#define AR9300_OTP_BASE (AR_SREV_9340(ah) ? 0x30000 : 0x14000) +#define AR9300_OTP_STATUS (AR_SREV_9340(ah) ? 0x30018 : 0x15f18)#define AR9300_OTP_STATUS_TYPE 0x7#define AR9300_OTP_STATUS_VALID 0x4#define AR9300_OTP_STATUS_ACCESS_BUSY 0x2#define AR9300_OTP_STATUS_SM_BUSY 0x1 -#define AR9300_OTP_READ_DATA 0x15f1c +#define AR9300_OTP_READ_DATA (AR_SREV_9340(ah) ? 0x3001c : 0x15f1c)enum targetPowerHTRates {HT_TARGET_RATE_0_8_16 ,
drivers/net/wireless/ath/ath9k/calib.c +1 -0
@@ -69,6 +69,7 @@ s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan)if (chan && chan->noisefloor) {s8 delta = chan->noisefloor - +ATH9K_NF_CAL_NOISE_THRESH -ath9k_hw_get_default_nf (ah, chan);if (delta >0 ) noise += delta;
drivers/net/wireless/ath/ath9k/calib.h +3 -0
@@ -21,6 +21,9 @@#define AR_PHY_CCA_FILTERWINDOW_LENGTH 5 +/* Internal noise floor can vary by about 6db depending on the frequency */ +#define ATH9K_NF_CAL_NOISE_THRESH 6 +#define NUM_NF_READINGS 6#define ATH9K_NF_CAL_HIST_MAX 5
drivers/net/wireless/b43/b43.h +5 -0
@@ -7,6 +7,7 @@#include <linux/hw_random.h> #include <linux/bcma/bcma.h> #include <linux/ssb/ssb.h> +#include <linux/completion.h> #include <net/mac80211.h> #include "debugfs.h"
@@ -718,6 +719,10 @@ enum b43_firmware_file_type {struct b43_request_fw_context {/* The device we are requesting the fw for. */ struct b43_wldev *dev; +/* a completion event structure needed if this call is asynchronous */ +struct completion fw_load_complete; +/* a pointer to the firmware object */ +const struct firmware *blob;/* The type of firmware to request. */ enum b43_firmware_file_type req_type;/* Error messages for each firmware type. */
drivers/net/wireless/b43/main.c +41 -13
119 lines not on this page · raw message
drivers/net/wireless/b43/main.h +2 -3
@@ -137,9 +137,8 @@ void b43_mac_phy_clock_set(struct b43_wldev *dev, bool on);struct b43_request_fw_context ; -int b43_do_request_fw (struct b43_request_fw_context *ctx, -const char *name, -struct b43_firmware_file *fw); +int b43_do_request_fw (struct b43_request_fw_context *ctx,const char *name, +struct b43_firmware_file *fw,bool async);void b43_do_release_fw (struct b43_firmware_file *fw);#endif /* B43_MAIN_H_ */
drivers/net/wireless/mwifiex/sta_ioctl.c +10 -11
@@ -53,7 +53,6 @@ int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,*/ int mwifiex_wait_queue_complete (struct mwifiex_adapter *adapter) { -bool cancel_flag = false;int status;struct cmd_ctrl_node *cmd_queued;
@@ -70,14 +69,11 @@ int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter)queue_work (adapter->workqueue, &adapter->main_work);/* Wait for completion */ -wait_event_interruptible (adapter->cmd_wait_q.wait, - *(cmd_queued->condition)); -if (!*(cmd_queued->condition)) - cancel_flag = true; - -if (cancel_flag) { -mwifiex_cancel_pending_ioctl (adapter); -dev_dbg (adapter->dev,"cmd cancel\n" ); + status =wait_event_interruptible (adapter->cmd_wait_q.wait, + *(cmd_queued->condition)); +if (status) { +dev_err (adapter->dev,"cmd_wait_q terminated: %d\n" , status); +return status; } status = adapter->cmd_wait_q.status;
@@ -436,8 +432,11 @@ int mwifiex_enable_hs(struct mwifiex_adapter *adapter)return false; } -wait_event_interruptible (adapter->hs_activate_wait_q, - adapter->hs_activate_wait_q_woken); +if (wait_event_interruptible (adapter->hs_activate_wait_q, + adapter->hs_activate_wait_q_woken)) { +dev_err (adapter->dev,"hs_activate_wait_q terminated\n" ); +return false; + }return true; }
drivers/platform/x86/samsung-laptop.c +10 -0
@@ -1506,6 +1506,16 @@ static struct dmi_system_id __initdata samsung_dmi_table[] = { }, .driver_data = &samsung_broken_acpi_video, }, + { + .callback = samsung_dmi_matched, + .ident = "N250P", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), + DMI_MATCH(DMI_PRODUCT_NAME, "N250P"), + DMI_MATCH(DMI_BOARD_NAME, "N250P"), + }, + .driver_data = &samsung_broken_acpi_video, + }, { }, }; MODULE_DEVICE_TABLE(dmi, samsung_dmi_table);
drivers/regulator/wm831x-dcdc.c +1 -1
@@ -330,7 +330,7 @@ static int wm831x_buckv_set_voltage(struct regulator_dev *rdev,if (vsel > dcdc->dvs_vsel) { ret =wm831x_set_bits (wm831x, dvs_reg,WM831X_DC1_DVS_VSEL_MASK , - dcdc->dvs_vsel); + vsel);if (ret ==0 ) dcdc->dvs_vsel = vsel;else
drivers/s390/cio/device_pgid.c +5 -5
@@ -234,7 +234,7 @@ static int pgid_cmp(struct pgid *p1, struct pgid *p2)* Determine pathgroup state from PGID data. */ static void pgid_analyze (struct ccw_device *cdev,struct pgid **p, -int *mismatch,int *reserved,u8 *reset) +int *mismatch,u8 *reserved,u8 *reset) {struct pgid *pgid = &cdev->private->pgid[0 ];struct pgid *first =NULL ;
@@ -248,7 +248,7 @@ static void pgid_analyze(struct ccw_device *cdev, struct pgid **p,if ((cdev->private->pgid_valid_mask & lpm) ==0 )continue ;if (pgid->inf.ps.state2 ==SNID_STATE2_RESVD_ELSE ) - *reserved =1 ; + *reserved |= lpm;if (pgid_is_reset (pgid)) { *reset |= lpm;continue ;
@@ -316,14 +316,14 @@ static void snid_done(struct ccw_device *cdev, int rc)struct subchannel *sch =to_subchannel (cdev->dev.parent);struct pgid *pgid;int mismatch =0 ; -int reserved =0 ; +u8 reserved =0 ;u8 reset =0 ;u8 donepm;if (rc) goto out;pgid_analyze (cdev, &pgid, &mismatch, &reserved, &reset); -if (reserved) +if (reserved == cdev->private->pgid_valid_mask) rc = -EUSERS ;else if (mismatch) rc = -EOPNOTSUPP ;
@@ -336,7 +336,7 @@ static void snid_done(struct ccw_device *cdev, int rc) } out:CIO_MSG_EVENT (2 ,"snid: device 0.%x.%04x: rc=%d pvm=%02x vpm=%02x " -"todo=%02x mism=%d rsvd=%d reset=%02x\n" , id->ssid, +"todo=%02x mism=%d rsvd=%02x reset=%02x\n" , id->ssid, id->devno, rc, cdev->private->pgid_valid_mask, sch->vpm, cdev->private->pgid_todo_mask, mismatch, reserved, reset);switch (rc) {
drivers/scsi/mvsas/mv_94xx.h +2 -12
@@ -258,21 +258,11 @@ enum sas_sata_phy_regs {#define SPI_ADDR_VLD_94XX (1U << 1)#define SPI_CTRL_SpiStart_94XX (1U << 0) -#define mv_ffc (x) ffz(x) -static inline int mv_ffc64 (u64 v) { -int i; - i =mv_ffc ((u32 )v); -if (i >=0 ) -return i; - i =mv_ffc ((u32)(v>>32 )); - -if (i !=0 ) -return 32 + i; - -return -1 ; +u64 x = ~v; +return x ?__ffs64 (x) :-1 ; }#define r_reg_set_enable (i) \
drivers/scsi/mvsas/mv_sas.c +1 -1
@@ -1629,7 +1629,7 @@ int mvs_abort_task(struct sas_task *task)mv_dprintk ("mvs_abort_task() mvi=%p task=%p " "slot=%p slot_idx=x%x\n" , mvi, task, slot, slot_idx); -mvs_tmf_timedout ((unsigned long )task); + task->task_state_flags |=SAS_TASK_STATE_ABORTED ;mvs_slot_task_free (mvi, task, slot, slot_idx); rc =TMF_RESP_FUNC_COMPLETE ; goto out;
drivers/scsi/mvsas/mv_sas.h +1 -1
@@ -69,7 +69,7 @@ extern struct kmem_cache *mvs_task_list_cache;#define DEV_IS_EXPANDER (type) \ ((type == EDGE_DEV) || (type == FANOUT_DEV)) -#define bit (n) ((u32)1 << n) +#define bit (n) ((u64)1 << n)#define for_each_phy (__lseq_mask, __mc, __lseq) \ for ((__mc) = (__lseq_mask), (__lseq) = 0; \
drivers/scsi/qla2xxx/qla_os.c +2 -2
@@ -3735,9 +3735,9 @@ qla2x00_do_dpc(void *data) "ISP abort end.\n"); } -if (test_bit (FCPORT_UPDATE_NEEDED , &base_vha->dpc_flags)) { +if (test_and_clear_bit (FCPORT_UPDATE_NEEDED , + &base_vha->dpc_flags)) {qla2x00_update_fcports (base_vha); -clear_bit (FCPORT_UPDATE_NEEDED , &base_vha->dpc_flags); }if (test_bit (ISP_QUIESCE_NEEDED , &base_vha->dpc_flags)) {
drivers/scsi/scsi_sysfs.c +4 -7
@@ -246,11 +246,11 @@ show_shost_active_mode(struct device *dev, static DEVICE_ATTR(active_mode, S_IRUGO | S_IWUSR, show_shost_active_mode, NULL); -static int check_reset_type (char *str) +static int check_reset_type (const char *str) { -if (strncmp (str,"adapter" ,10 ) ==0 ) +if (sysfs_streq (str,"adapter" ))
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/comedi_test.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/comedi/drivers/ni_pcimio.c +8 -8
Lines of this file are not shown. View the raw message.
drivers/staging/vt6656/key.c +36 -17
53 lines not on this page · raw message
drivers/usb/core/hub.c +96 -24
120 lines not on this page · raw message
drivers/usb/core/message.c +31 -22
53 lines not on this page · raw message
net/ceph/messenger.c +39 -33
72 lines not on this page · raw message
net/ceph/osd_client.c +42 -66
108 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.