Linux 3.8.1
Greg KH
maintainerI'm announcing the release of the 3.8.1 kernel.
All users of the 3.8 kernel series must upgrade.
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.8.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/arm/boot/dts/at91sam9n12.dtsi | 8 arch/arm/boot/dts/at91sam9x5.dtsi | 6 arch/arm/kernel/sched_clock.c | 4 arch/arm/mach-imx/clk-imx25.c | 3 arch/arm/mach-integrator/integrator_ap.c | 2 arch/arm/mach-pxa/include/mach/smemc.h | 1 arch/arm/mach-pxa/smemc.c | 15 + arch/arm/mach-s3c24xx/include/mach/debug-macro.S | 12 - arch/arm/mach-s3c24xx/include/mach/entry-macro.S | 4 arch/arm/mach-s3c24xx/pm-h1940.S | 2 arch/arm/mach-s3c24xx/sleep-s3c2410.S | 12 - arch/arm/mach-s3c24xx/sleep-s3c2412.S | 12 - arch/arm/mach-versatile/core.c | 15 + arch/arm/mach-versatile/pci.c | 11 - arch/arm/plat-samsung/include/plat/debug-macro.S | 18 - arch/arm64/kernel/signal32.c | 4 arch/parisc/include/asm/pgtable.h | 13 + arch/parisc/kernel/cache.c | 18 + arch/powerpc/Kconfig | 4 arch/powerpc/include/asm/eeh.h | 3 arch/powerpc/kernel/machine_kexec_64.c | 5 arch/powerpc/kernel/of_platform.c | 3 arch/powerpc/kernel/pci-common.c | 7 arch/powerpc/lib/Makefile | 4 arch/powerpc/platforms/pseries/eeh.c | 24 ++ arch/s390/kvm/kvm-s390.c | 8 arch/sparc/include/asm/hugetlb.h | 1 arch/sparc/include/asm/page_64.h | 4 arch/sparc/include/asm/tsb.h | 28 ++ arch/sparc/kernel/tsb.S | 39 +++- arch/sparc/mm/fault_64.c | 9 arch/sparc/mm/init_64.c | 62 ++++-- arch/sparc/mm/tlb.c | 11 - arch/sparc/mm/tsb.c | 2 arch/x86/Kconfig | 4 arch/x86/include/asm/mmzone_32.h | 6 arch/x86/kernel/cpu/mshyperv.c | 3 arch/x86/mm/numa.c | 32 +-- arch/x86/mm/numa_32.c | 161 ----------------- arch/x86/mm/numa_internal.h | 6 arch/x86/power/hibernate_32.c | 2 arch/x86/xen/spinlock.c | 1 drivers/base/bus.c | 4 drivers/base/dd.c | 2 drivers/dca/dca-core.c | 5 drivers/dma/sh/shdma.c | 2 drivers/gpio/gpio-em.c | 3 drivers/gpu/drm/drm_crtc.c | 3 drivers/gpu/drm/drm_edid.c | 12 - drivers/gpu/drm/drm_usb.c | 2 drivers/gpu/drm/i915/i915_debugfs.c | 12 - drivers/gpu/drm/i915/i915_drv.h | 2 drivers/gpu/drm/i915/i915_gem.c | 5 drivers/gpu/drm/i915/i915_reg.h | 9 drivers/gpu/drm/i915/intel_crt.c | 14 - drivers/gpu/drm/i915/intel_ddi.c | 25 +- drivers/gpu/drm/i915/intel_display.c | 68 ++++--- drivers/gpu/drm/i915/intel_drv.h | 11 - drivers/gpu/drm/i915/intel_panel.c | 13 - drivers/gpu/drm/i915/intel_sprite.c | 8 drivers/gpu/drm/nouveau/core/include/subdev/bios/dcb.h | 3 drivers/gpu/drm/nouveau/core/subdev/bios/dcb.c | 32 ++- drivers/gpu/drm/nouveau/core/subdev/devinit/nv50.c | 14 - drivers/gpu/drm/radeon/atombios_crtc.c | 6 drivers/gpu/drm/radeon/evergreen.c | 13 + drivers/gpu/drm/radeon/r600_hdmi.c | 1 drivers/gpu/drm/radeon/radeon_atpx_handler.c | 73 +++++++ drivers/gpu/drm/radeon/radeon_pm.c | 2 drivers/gpu/drm/udl/udl_drv.h | 2 drivers/gpu/drm/udl/udl_fb.c | 48 ++++- drivers/gpu/vga/vga_switcheroo.c | 3 drivers/hid/hid-wiimote-ext.c | 8 drivers/iommu/intel-iommu.c | 8 drivers/mmc/core/mmc.c | 2 drivers/mmc/host/sdhci-esdhc-imx.c | 19 +- drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 4 drivers/net/ppp/ppp_generic.c | 8 drivers/net/usb/cdc_ncm.c | 11 - drivers/net/wireless/b43/dma.h | 2 drivers/net/wireless/p54/p54usb.c | 2 drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 9 drivers/net/wireless/rtlwifi/usb.c | 49 +++-- drivers/net/wireless/rtlwifi/usb.h | 3 drivers/net/xen-netback/interface.c | 3 drivers/net/xen-netback/netback.c | 8 drivers/pci/access.c | 2 drivers/pcmcia/vrc4171_card.c | 1 drivers/pps/clients/pps-ldisc.c | 10 - drivers/pps/pps.c | 47 ++++ drivers/s390/kvm/kvm_virtio.c | 38 +++- drivers/staging/comedi/comedi_fops.c | 5 drivers/staging/comedi/drivers/ni_labpc.c | 34 +-- drivers/staging/vt6656/dpc.c | 4 drivers/staging/vt6656/rxtx.c | 2 drivers/staging/vt6656/usbpipe.c | 28 ++ drivers/staging/zram/zram_drv.c | 9 drivers/staging/zsmalloc/zsmalloc-main.c | 10 - drivers/tty/n_gsm.c | 42 ++++ drivers/tty/serial/imx.c | 11 - drivers/tty/tty_ioctl.c | 4 drivers/tty/vt/vt.c | 138 ++++++++++---- drivers/usb/host/ehci-omap.c | 10 - drivers/usb/musb/am35x.c | 2 drivers/usb/musb/blackfin.c | 2 drivers/usb/musb/da8xx.c | 7 drivers/usb/musb/davinci.c | 7 drivers/usb/musb/musb_core.c | 1 drivers/usb/musb/musb_dsps.c | 2 drivers/usb/musb/omap2430.c | 2 drivers/usb/musb/tusb6010.c | 2 drivers/usb/musb/ux500.c | 12 - drivers/usb/serial/ftdi_sio.c | 20 -- drivers/usb/serial/mct_u232.c | 22 -- drivers/usb/serial/option.c | 16 + drivers/usb/serial/quatech2.c | 18 - drivers/usb/serial/sierra.c | 8 drivers/usb/serial/ssu100.c | 19 -- drivers/usb/serial/usb-serial.c | 14 + drivers/usb/serial/usb_wwan.c | 8 drivers/usb/storage/initializers.c | 4 drivers/usb/storage/unusual_cypress.h | 2 drivers/video/backlight/adp8860_bl.c | 2 drivers/video/backlight/adp8870_bl.c | 2 drivers/video/console/fbcon.c | 58 +++++- drivers/video/console/vgacon.c | 22 +- drivers/video/fbmem.c | 11 - drivers/video/fbsysfs.c | 3 drivers/video/fsl-diu-fb.c | 64 +++--- drivers/xen/evtchn.c | 10 + fs/block_dev.c | 1 fs/gfs2/bmap.c | 4 fs/lockd/clntproc.c | 3 fs/namespace.c | 29 +-- fs/nfs/blocklayout/blocklayout.c | 1 fs/nfs/callback_proc.c | 61 ------ fs/nfs/nfs4proc.c | 35 ++- fs/nfs/objlayout/objio_osd.c | 1 fs/nfs/pnfs.c | 150 +++++++++++++-- fs/nfs/pnfs.h | 7 fs/notify/inotify/inotify_user.c | 4 fs/ocfs2/dlmglue.c | 5 include/linux/console.h | 2 include/linux/if_vlan.h | 6 include/linux/pps_kernel.h | 17 + include/linux/vt_kern.h | 3 include/net/dst.h | 8 include/net/icmp.h | 1 include/net/inet6_hashtables.h | 8 include/net/inet_sock.h | 1 include/net/ip6_fib.h | 39 +--- include/net/ipv6.h | 12 + include/net/sock.h | 2 include/uapi/linux/serial_core.h | 2 include/uapi/linux/usb/audio.h | 6 kernel/futex.c | 2 kernel/futex_compat.c | 2 kernel/hrtimer.c | 36 +-- kernel/irq/spurious.c | 7 kernel/posix-cpu-timers.c | 23 ++ kernel/timeconst.pl | 6 kernel/workqueue.c | 2 mm/fadvise.c | 18 + mm/mmu_notifier.c | 82 ++++---- mm/shmem.c | 10 - net/core/dst.c | 1 net/core/sock_diag.c | 3 net/ipv4/af_inet.c | 11 - net/ipv4/icmp.c | 23 ++ net/ipv4/ping.c | 4 net/ipv4/tcp_output.c | 18 + net/ipv6/route.c | 8 net/ipv6/xfrm6_policy.c | 2 net/mac80211/mlme.c | 4 security/keys/process_keys.c | 2 sound/drivers/aloop.c | 5 sound/pci/ali5451/ali5451.c | 2 sound/pci/hda/hda_codec.c | 43 ++-- sound/pci/hda/hda_codec.h | 3 sound/pci/hda/hda_intel.c | 2 sound/pci/hda/patch_hdmi.c | 18 + sound/pci/hda/patch_realtek.c | 1 sound/pci/rme32.c | 2 sound/soc/codecs/arizona.c | 11 + sound/soc/codecs/wm2200.c | 4 sound/usb/quirks-table.h | 2 sound/usb/quirks.c | 2 tools/perf/Makefile | 4 tools/perf/ui/hist.c | 6 tools/perf/util/parse-events.y | 1 tools/perf/util/pmu.y | 1 191 files changed, 1647 insertions(+), 991 deletions(-)
Al Viro (1):
get rid of unprotected dereferencing of mnt->mnt_ns
Alan Cox (1):
fb: rework locking to fix lock ordering on takeover
Alex Deucher (4):
drm/radeon/dce6: fix display powergating
drm/radeon: fix multi-head power profile stability on BTC+ asics drm/radeon: remove overzealous warning in hdmi handling drm/radeon: properly validate the atpx interface
Alex Williamson (1):
PCI: Fix PCI Express Capability accessors for PCI_EXP_FLAGS
Anatolij Gustschin (2):
drivers/video: fsl-diu-fb: fix pixel formats for 24 and 16 bpp drivers/video: fsl-diu-fb: fix bugs in interrupt handling
Anssi Hannula (1):
ALSA: hda - Fix default multichannel HDMI mapping regression
Arnd Bergmann (1):
ARM: samsung: fix assembly syntax for new gas
Balaji T K (1):
mmc: core: expose RPMB partition only for CMD23 capable hosts
Ben Skeggs (3):
drm/nouveau/bios: parse external transmitter type if off-chip drm/nouveau/bios: store a type/mask hash in parsed dcb data drm/nv50/devinit: reverse the logic for running encoder init scripts
Ben Widawsky (2):
drm/i915: Fix CAGF for HSW
drm/i915: Fix RC6VIDS encode/decode
Bjorn Helgaas (1):
Driver core: treat unregistered bus_types as having no devices
Bjørn Mork (4):
net: cdc_ncm: fix probing of devices with multiple control interface altsettings
USB: option: add and update Alcatel modems
USB: option: add Yota / Megafon M100-1 4g modem
USB: option: add Huawei "ACM" devices using protocol = vendor
Bob Peterson (1):
GFS2: Get a block reservation before resizing a file
Chris Rattray (1):
ASoC: wm2200: correct IN2L and IN3L digital mute
Chris Wilson (2):
drm/i915: Only run idle processing from i915_gem_retire_requests_worker drm/i915: Handle untiled planes when computing their offsets
Christian Borntraeger (1):
s390/kvm: Fix store status for ACRS/FPRS
Clemens Ladisch (1):
ALSA: usb-audio: fix Roland A-PRO support
Cong Wang (1):
vlan: adjust vlan_set_encap_proto() for its callers
Cornelia Huck (1):
KVM: s390: Handle hosts not supporting s390-virtio.
Damien Lespiau (2):
drm/i915: Preserve the DDI link reversal configuration drm/i915: Preserve the FDI line reversal override bit on CPT
Daniel Vetter (5):
Revert "drm: Add EDID_QUIRK_FORCE_REDUCED_BLANKING for ASUS VW222S" intel/iommu: force writebuffer-flush quirk on Gen 4 Chipsets drm/i915: write backlight harder
drm/i915: Use HAS_L3_GPU_CACHE in i915_gem_l3_remap drm/i915: inverted brightness quirk for Acer Aspire 4736Z
Dave Airlie (6):
drm/udl: make usage as a console safer
drm/udl: disable fb_defio by default
vgacon/vt: clear buffer attributes when we load a 512 character font (v2) drm/usb: bind driver to correct device
fbcon: don't lose the console font across generic->chip driver switch
fbcon: fix locking harder
Dave Hansen (1):
x86-32, mm: Rip out x86_32 NUMA remapping code
David Henningsson (1):
ALSA: hda - hdmi: ELD shouldn't be valid after unplug
David Herrmann (1):
HID: wiimote: fix nunchuck button parser
David Howells (1):
KEYS: Revert one application of "Fix unreachable code" patch
David S. Miller (4):
sparc64: Fix gfp_flags setting in tsb_grow().
sparc64: Handle hugepage TSB being NULL.
sparc64: Fix tsb_grow() in atomic context.
sparc64: Fix huge PMD to PTE translation for sun4u in TLB miss handler.
David Vrabel (2):
xen-netback: correctly return errors from netbk_count_requests()
xen-netback: cancel the credit timer when taking the vif down
Denis Efremov (2):
ALSA: ali5451: remove irq enabling in pointer callback
ALSA: rme32.c irq enabling after spin_lock_irq
Dirkjan Bussink (1):
tty: Prevent deadlock in n_gsm driver
Eric Dumazet (2):
ppp: set qdisc_tx_busylock to avoid LOCKDEP splat
ipv6: use a stronger hash for tcp
Fabio Baltieri (1):
usb: musb: ux500: use clk_prepare_enable and clk_disable_unprepare
Fernando Luis Vazquez Cao (1):
ALSA: hda - Workaround for silent output on Sony Vaio VGC-LN51JGB with ALC889
George Spelvin (3):
pps: Add pps_lookup_dev() function
pps: Use pps_lookup_dev to reduce ldisc coupling
pps: Fix a use-after free bug when unregistering a source.
Grant Likely (1):
drivercore: Fix ordering between deferred_probe and exiting initcalls
Greg Kroah-Hartman (1):
Linux 3.8.1
Greg Thelen (1):
tmpfs: fix use-after-free of mempolicy object
Guennadi Liakhovetski (1):
dma: sh: Don't use ENODEV for failing slave lookup
H. Peter Anvin (3):
x86-32, mm: Remove reference to resume_map_numa_kva() x86-32, mm: Remove reference to alloc_remap() timeconst.pl: Eliminate Perl warning
Ian Abbott (3):
staging: comedi: disallow COMEDI_DEVCONFIG on non-board minors
staging: comedi: ni_labpc: set up command4 register *after* command3
staging: comedi: ni_labpc: correct differential channel sequence for AI commands
Igor Grinberg (1):
ARM: PXA3xx: program the CSMSADRCFG register
Jani Nikula (1):
drm/i915: add missing \n to UTS_RELEASE in the error_state
Jean Delvare (1):
pcmcia/vrc4171: Add missing spinlock init
Jim Somerville (1):
inotify: remove broken mask checks causing unmount to be EINVAL
Jiri Olsa (1):
perf hists: Fix period symbol_conf.field_sep display
Jiri Slaby (1):
ALSA: usb/quirks, fix out-of-bounds access
Johan Hovold (1):
USB: serial: fix null-pointer dereferences on disconnect
Johannes Berg (1):
mac80211: always unblock CSA queue stop when disconnecting
John David Anglin (1):
Purge existing TLB entries in set_pte_at and ptep_set_wrprotect
Joonsoo Kim (1):
ARM: 7643/1: sched: correct update_sched_clock()
Josh Boyer (1):
USB: usb-storage: unusual_devs update for Super TOP SATA bridge
Junxiao Bi (1):
ocfs2: unlock super lock if lockres refresh failed
Jussi Kivilinna (1):
rtlwifi: usb: allocate URB control message setup_packet and data buffer separately
Kleber Sacilotto de Souza (2):
mlx4_en: fix allocation of device tx_cq
mlx4_en: fix allocation of CPU affinity reverse-map
Konstantin Khlebnikov (1):
workqueue: un-GPL function delayed_work_timer_fn()
Larry Finger (3):
b43: Increase number of RX DMA slots
rtlwifi: rtl8192cu: Fix NULL dereference BUG when using new_id
rtlwifi: rtl8192cu: Add new USB ID
Lars-Peter Clausen (1):
drivers/video/backlight/adp88?0_bl.c: fix resume
Leonid Shatz (1):
hrtimer: Prevent hrtimer_enqueue_reprogram race
Li Wei (2):
ipv4: fix a bug in ping_err().
ipv4: fix error handling in icmp_protocol.
Linus Walleij (1):
ARM: 7635/1: versatile: fix the PCI IRQ regression
MITSUNARI Shigeo (1):
fs/block_dev.c: page cache wrongly left invalidated after revalidate_disk()
Maarten Lankhorst (1):
drm: shut up invalid edid messages
Maciej Sosnowski (1):
dca: check against empty dca_domains list before unregister provider
Magnus Damm (1):
gpio: em: Use irq_domain_add_simple() to fix runtime error
Malcolm Priestley (3):
staging: vt6656: revert : 64 bit- Correctly address void structure.
staging: vt6656: Revert: 64bit fixes: dpc.c incorrect addressing of void structure.
staging: vt6656: Fix URB submitted while active warning.
Mathias Krause (1):
sock_diag: Fix out-of-bounds access to sock_diag_handlers[]
Mel Gorman (1):
mm/fadvise.c: drain all pagevecs if POSIX_FADV_DONTNEED fails to discard all pages
Michael Chan (1):
serial_core: Fix type definition for PORT_BRCM_TRUMANAGE.
Mika Kuoppala (1):
drm/i915: disable shared panel fitter for pipe
Minchan Kim (2):
zram: Fix deadlock bug in partial read/write
staging: zsmalloc: Fix TLB coherency and build problem
Ming Lei (2):
usb: musb: core: fix failure path
usb: musb: fix dependency on transceiver driver
Nicolas Ferre (1):
ARM: at91/DT: remove atmel,use-dma-* from 9x5 and 9n12 USART nodes
Nicolas Pitre (1):
tty vt: fix character insertion overflow
Olaf Hering (1):
x86: Hyper-V: register clocksource only if its advertised
Oleg Nesterov (1):
tty: set_termios/set_termiox should not return -EINTR
Patrik Jakobsson (1):
drm/i915: Set i9xx sdvo clock limits according to specifications
Paulo Zanoni (1):
drm: don't add inferred modes for monitors that don't support them
Pawel Moll (1):
ALSA: usb: Fix Processing Unit Descriptor parsers
Phileas Fogg (1):
powerpc/kexec: Disable hard IRQ before kexec
Robin Holt (1):
mmu_notifier_unregister NULL Pointer deref and multiple ->release() callouts
Roger Quadros (2):
USB: ehci-omap: Don't free gpios that we didn't request
USB: ehci-omap: Fix autoloading of module
Romain KUNTZ (1):
xfrm: release neighbor upon dst destruction
Ryo Tsutsui (1):
ASoC: arizona: Fixed a bug in FLL fractional calculation
Shawn Guo (1):
mmc: sdhci-esdhc-imx: fix host version read
Stanislaw Gruszka (1):
posix-cpu-timers: Fix nanosleep task_struct leak
Stefan Bader (1):
xen: Send spinlock IPI to all waiters
Steffen Trumtrar (1):
ARM: i.MX25: clk: parent per5_clk to AHB clock
Suzuki K. Poulose (1):
uprobes/powerpc: Add dependency on single step emulation
Takashi Iwai (5):
ALSA: aloop: Fix Oops while PM resume
ALSA: hda - Disable runtime PM for Intel 5 Series/3400
ALSA: hda - Release assigned pin/cvt at error path of hdmi_pcm_open()
ALSA: hda - Fix broken workaround for HDMI/SPDIF conflicts
fb: Yet another band-aid for fixing lockdep mess
Thadeu Lima de Souza Cascardo (1):
powerpc/eeh: Fix crash when adding a device in a slot with DDW
Thomas Gleixner (3):
genirq: Avoid deadlock in spurious handling
serial: imx: Fix recursive locking bug
futex: Revert "futex: Mark get_robust_list as deprecated"
Tomasz Guszkowski (1):
p54usb: corrected USB ID for T-Com Sinus 154 data II
Trond Myklebust (3):
NLM: Ensure that we resend all pending blocking locks after a reclaim NFSv4.1: Fix an ABBA locking issue with session and state serialisation NFSv4.1: Fix bulk recall and destroy of layouts
Ville Syrjälä (2):
drm: Fill depth/bits_per_pixel for C8 format
drm: Use C8 instead of RGB332 when determining the format from depth/bpp
Vinson Lee (1):
perf tools: Fix build with bison 2.3 and older.
Wei Liu (1):
xen: close evtchn port if binding to irq fails
Weston Andros Adamson (1):
NFSv4.1: Don't decode skipped layoutgets
Will Deacon (2):
ARM: integrator: ensure ap_syscon_base is initialised when !CONFIG_MMU
arm64: compat: use compat_uptr_t type for compat_ucontext.uc_link
YOSHIFUJI Hideaki (1):
ipv6: fix race condition regarding dst->expires and dst->from.
Ying Xue (1):
net: fix a compile error when SOCK_REFCNT_DEBUG is enabled
Yuchung Cheng (1):
tcp: fix SYN-data space mis-accounting
fanchaoting (1):
umount oops when remove blocklayoutdriver first
fangxiaozhi (1):
USB: storage: properly handle the endian issues of idProduct
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 8 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Unicycling Gorilla
arch/arm/boot/dts/at91sam9n12.dtsi +0 -8
@@ -324,8 +324,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf801c000 0x4000>; interrupts = <5 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart0>; status = "disabled";
@@ -335,8 +333,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf8020000 0x4000>; interrupts = <6 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart1>; status = "disabled";
@@ -346,8 +342,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf8024000 0x4000>; interrupts = <7 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart2>; status = "disabled";
@@ -357,8 +351,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf8028000 0x4000>; interrupts = <8 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart3>; status = "disabled";
arch/arm/boot/dts/at91sam9x5.dtsi +0 -6
@@ -402,8 +402,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf801c000 0x200>; interrupts = <5 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart0>; status = "disabled";
@@ -413,8 +411,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf8020000 0x200>; interrupts = <6 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart1>; status = "disabled";
@@ -424,8 +420,6 @@ compatible = "atmel,at91sam9260-usart"; reg = <0xf8024000 0x200>; interrupts = <7 4 5>; - atmel,use-dma-rx; - atmel,use-dma-tx; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usart2>; status = "disabled";
arch/arm/kernel/sched_clock.c +2 -2
@@ -93,11 +93,11 @@ static void notrace update_sched_clock(void)* detectable in cyc_to_fixed_sched_clock(). */ raw_local_irq_save (flags); - cd.epoch_cyc = cyc; + cd.epoch_cyc_copy = cyc;smp_wmb (); cd.epoch_ns = ns;smp_wmb (); - cd.epoch_cyc_copy = cyc; + cd.epoch_cyc = cyc;raw_local_irq_restore (flags); }
arch/arm/mach-imx/clk-imx25.c +3 -0
@@ -224,6 +224,9 @@ static int __init __mx25_clocks_init(unsigned long osc_rate)clk_prepare_enable (clk[emi_ahb]); +/* Clock source for gpt must be derived from AHB */ +clk_set_parent (clk[per5_sel], clk[ahb]); +clk_register_clkdev (clk[ipg],"ipg" ,"imx-gpt.0" );clk_register_clkdev (clk[gpt_ipg_per],"per" ,"imx-gpt.0" );
arch/arm/mach-integrator/integrator_ap.c +1 -1
@@ -613,7 +613,6 @@ static struct map_desc ap_io_desc_atag[] __initdata = {static void __init ap_map_io_atag (void ) {iotable_init (ap_io_desc_atag,ARRAY_SIZE (ap_io_desc_atag)); - ap_syscon_base =__io_address (INTEGRATOR_SC_BASE );ap_map_io (); }
@@ -685,6 +684,7 @@ static void __init ap_init(void)platform_device_register (&cfi_flash_device); + ap_syscon_base =__io_address (INTEGRATOR_SC_BASE ); sc_dec =readl (ap_syscon_base +INTEGRATOR_SC_DEC_OFFSET );for (i =0 ; i <4 ; i++) {struct lm_device *lmdev;
arch/arm/mach-pxa/include/mach/smemc.h +1 -0
@@ -37,6 +37,7 @@#define CSADRCFG1 (SMEMC_VIRT + 0x84)/* Address Configuration Register for CS1 */ #define CSADRCFG2 (SMEMC_VIRT + 0x88)/* Address Configuration Register for CS2 */ #define CSADRCFG3 (SMEMC_VIRT + 0x8C)/* Address Configuration Register for CS3 */ +#define CSMSADRCFG (SMEMC_VIRT + 0xA0)/* Chip Select Configuration Register */ /* * More handy macros for PCMCIA
arch/arm/mach-pxa/smemc.c +14 -1
@@ -40,6 +40,8 @@ static void pxa3xx_smemc_resume(void)__raw_writel (csadrcfg[1 ],CSADRCFG1 );__raw_writel (csadrcfg[2 ],CSADRCFG2 );__raw_writel (csadrcfg[3 ],CSADRCFG3 ); +/* CSMSADRCFG wakes up in its default state (0), so we need to set it */ +__raw_writel (0x2 ,CSMSADRCFG ); }static struct syscore_ops smemc_syscore_ops = {
@@ -49,8 +51,19 @@ static struct syscore_ops smemc_syscore_ops = {static int __init smemc_init (void ) { -if (cpu_is_pxa3xx ()) +if (cpu_is_pxa3xx ()) { +/* +* The only documentation we have on the +* Chip Select Configuration Register (CSMSADRCFG) is that +* it must be programmed to 0x2. +* Moreover, in the bit definitions, the second bit +* (CSMSADRCFG[1]) is called "SETALWAYS". +* Other bits are reserved in this register. +*/ +__raw_writel (0x2 ,CSMSADRCFG ); +register_syscore_ops (&smemc_syscore_ops); + }return 0 ; }
arch/arm/mach-s3c24xx/include/mach/debug-macro.S +6 -6
@@ -40,17 +40,17 @@ addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) addne \rd, \rx, #(S3C24XX_VA_GPIO - S3C24XX_VA_UART) bic \rd, \rd, #0xff000 - ldr \rd, [ \rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0) ] + ldr \rd, [\rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0)] and \rd, \rd, #0x00ff0000 teq \rd, #0x00440000 @ is it 2440? 1004: - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] moveq \rd, \rd, lsr #SHIFT_2440TXF tst \rd, #S3C2410_UFSTAT_TXFULL .endm .macro fifo_full_s3c2410 rd, rx - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] tst \rd, #S3C2410_UFSTAT_TXFULL .endm
@@ -68,18 +68,18 @@ addeq \rd, \rx, #(S3C24XX_PA_GPIO - S3C24XX_PA_UART) addne \rd, \rx, #(S3C24XX_VA_GPIO - S3C24XX_VA_UART) bic \rd, \rd, #0xff000 - ldr \rd, [ \rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0) ] + ldr \rd, [\rd, # S3C2410_GSTATUS1 - S3C2410_GPIOREG(0)] and \rd, \rd, #0x00ff0000 teq \rd, #0x00440000 @ is it 2440? 10000: - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] andne \rd, \rd, #S3C2410_UFSTAT_TXMASK andeq \rd, \rd, #S3C2440_UFSTAT_TXMASK .endm .macro fifo_level_s3c2410 rd, rx - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] and \rd, \rd, #S3C2410_UFSTAT_TXMASK .endm
arch/arm/mach-s3c24xx/include/mach/entry-macro.S +2 -2
@@ -31,10 +31,10 @@ @@ try the interrupt offset register, since it is there - ldr \irqstat, [ \base, #INTPND ] + ldr \irqstat, [\base, #INTPND ] teq \irqstat, #0 beq 1002f - ldr \irqnr, [ \base, #INTOFFSET ] + ldr \irqnr, [\base, #INTOFFSET ] mov \tmp, #1 tst \irqstat, \tmp, lsl \irqnr bne 1001f
arch/arm/mach-s3c24xx/pm-h1940.S +1 -1
@@ -30,4 +30,4 @@ h1940_pm_return: mov r0, #S3C2410_PA_GPIO - ldr pc, [ r0, #S3C2410_GSTATUS3 - S3C24XX_VA_GPIO ] + ldr pc, [r0, #S3C2410_GSTATUS3 - S3C24XX_VA_GPIO]
arch/arm/mach-s3c24xx/sleep-s3c2410.S +6 -6
@@ -45,9 +45,9 @@ ENTRY(s3c2410_cpu_suspend) ldr r4, =S3C2410_REFRESH ldr r5, =S3C24XX_MISCCR ldr r6, =S3C2410_CLKCON - ldr r7, [ r4 ] @ get REFRESH (and ensure in TLB) - ldr r8, [ r5 ] @ get MISCCR (and ensure in TLB) - ldr r9, [ r6 ] @ get CLKCON (and ensure in TLB) + ldr r7, [r4] @ get REFRESH (and ensure in TLB) + ldr r8, [r5] @ get MISCCR (and ensure in TLB) + ldr r9, [r6] @ get CLKCON (and ensure in TLB) orr r7, r7, #S3C2410_REFRESH_SELF @ SDRAM sleep command orr r8, r8, #S3C2410_MISCCR_SDSLEEP @ SDRAM power-down signals
@@ -61,8 +61,8 @@ ENTRY(s3c2410_cpu_suspend) @@ align next bit of code to cache line .align 5 s3c2410_do_sleep: - streq r7, [ r4 ] @ SDRAM sleep command - streq r8, [ r5 ] @ SDRAM power-down config - streq r9, [ r6 ] @ CPU sleep + streq r7, [r4] @ SDRAM sleep command + streq r8, [r5] @ SDRAM power-down config + streq r9, [r6] @ CPU sleep 1: beq 1b mov pc, r14
arch/arm/mach-s3c24xx/sleep-s3c2412.S +6 -6
@@ -57,12 +57,12 @@ s3c2412_sleep_enter1: * retry, as simply returning causes the system to lock. */ - ldrne r9, [ r1 ] - strne r9, [ r1 ] - ldrne r9, [ r2 ] - strne r9, [ r2 ] - ldrne r9, [ r3 ] - strne r9, [ r3 ] + ldrne r9, [r1] + strne r9, [r1] + ldrne r9, [r2] + strne r9, [r2] + ldrne r9, [r3] + strne r9, [r3] bne s3c2412_sleep_enter1 mov pc, r14
arch/arm/mach-versatile/core.c +14 -1
@@ -36,6 +36,7 @@#include <linux/gfp.h> #include <linux/clkdev.h> #include <linux/mtd/physmap.h> +#include <linux/bitops.h> #include <asm/irq.h> #include <asm/hardware/arm_timer.h>
@@ -65,16 +66,28 @@#define VA_VIC_BASE __io_address(VERSATILE_VIC_BASE)#define VA_SIC_BASE __io_address(VERSATILE_SIC_BASE) +/* These PIC IRQs are valid in each configuration */ +#define PIC_VALID_ALL BIT(SIC_INT_KMI0) | BIT(SIC_INT_KMI1) | \ + BIT(SIC_INT_SCI3) | BIT(SIC_INT_UART3) | \ + BIT(SIC_INT_CLCD) | BIT(SIC_INT_TOUCH) | \ + BIT(SIC_INT_KEYPAD) | BIT(SIC_INT_DoC) | \ + BIT(SIC_INT_USB) | BIT(SIC_INT_PCI0) | \ + BIT(SIC_INT_PCI1) | BIT(SIC_INT_PCI2) | \ + BIT(SIC_INT_PCI3)#if 1 #define IRQ_MMCI0A IRQ_VICSOURCE22#define IRQ_AACI IRQ_VICSOURCE24#define IRQ_ETH IRQ_VICSOURCE25#define PIC_MASK 0xFFD00000 +#define PIC_VALID PIC_VALID_ALL#else #define IRQ_MMCI0A IRQ_SIC_MMCI0A#define IRQ_AACI IRQ_SIC_AACI#define IRQ_ETH IRQ_SIC_ETH#define PIC_MASK 0 +#define PIC_VALID PIC_VALID_ALL | BIT(SIC_INT_MMCI0A) | \ + BIT(SIC_INT_MMCI1A) | BIT(SIC_INT_AACI) | \ + BIT(SIC_INT_ETH)#endif /* Lookup table for finding a DT node that represents the vic instance */
@@ -102,7 +115,7 @@ void __init versatile_init_irq(void) VERSATILE_SIC_BASE);fpga_irq_init (VA_SIC_BASE ,"SIC" ,IRQ_SIC_START , -IRQ_VICSOURCE31 , ~PIC_MASK , np); +IRQ_VICSOURCE31 ,PIC_VALID , np);/* * Interrupts on secondary controller from 0 to 8 are routed to
arch/arm/mach-versatile/pci.c +6 -5
@@ -23,6 +23,7 @@#include <linux/io.h> #include <mach/hardware.h> +#include <mach/irqs.h> #include <asm/irq.h> #include <asm/mach/pci.h>
@@ -327,12 +328,12 @@ static int __init versatile_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)int irq;/* slot, pin, irq -* 24 1 27 -* 25 1 28 -* 26 1 29 -* 27 1 30 +* 24 1 IRQ_SIC_PCI0 +* 25 1 IRQ_SIC_PCI1 +* 26 1 IRQ_SIC_PCI2 +* 27 1 IRQ_SIC_PCI3 */ - irq =27 + ((slot -24 + pin -1 ) &3 ); + irq =IRQ_SIC_PCI0 + ((slot -24 + pin -1 ) &3 );return irq; }
arch/arm/plat-samsung/include/plat/debug-macro.S +9 -9
@@ -14,12 +14,12 @@ /* The S5PV210/S5PC110 implementations are as belows. */ .macro fifo_level_s5pv210 rd, rx - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] and \rd, \rd, #S5PV210_UFSTAT_TXMASK .endm .macro fifo_full_s5pv210 rd, rx - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] tst \rd, #S5PV210_UFSTAT_TXFULL .endm
@@ -27,7 +27,7 @@ * most widely re-used */ .macro fifo_level_s3c2440 rd, rx - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] and \rd, \rd, #S3C2440_UFSTAT_TXMASK .endm
@@ -36,7 +36,7 @@ #endif .macro fifo_full_s3c2440 rd, rx - ldr \rd, [ \rx, # S3C2410_UFSTAT ] + ldr \rd, [\rx, # S3C2410_UFSTAT] tst \rd, #S3C2440_UFSTAT_TXFULL .endm
@@ -45,11 +45,11 @@ #endif .macro senduart,rd,rx - strb \rd, [\rx, # S3C2410_UTXH ] + strb \rd, [\rx, # S3C2410_UTXH] .endm .macro busyuart, rd, rx - ldr \rd, [ \rx, # S3C2410_UFCON ] + ldr \rd, [\rx, # S3C2410_UFCON] tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? beq 1001f @ @ FIFO enabled...
@@ -60,7 +60,7 @@ 1001: @ busy waiting for non fifo - ldr \rd, [ \rx, # S3C2410_UTRSTAT ] + ldr \rd, [\rx, # S3C2410_UTRSTAT] tst \rd, #S3C2410_UTRSTAT_TXFE beq 1001b
@@ -68,7 +68,7 @@ .endm .macro waituart,rd,rx - ldr \rd, [ \rx, # S3C2410_UFCON ] + ldr \rd, [\rx, # S3C2410_UFCON] tst \rd, #S3C2410_UFCON_FIFOMODE @ fifo enabled? beq 1001f @ @ FIFO enabled...
@@ -79,7 +79,7 @@ b 1002f 1001: @ idle waiting for non fifo - ldr \rd, [ \rx, # S3C2410_UTRSTAT ] + ldr \rd, [\rx, # S3C2410_UTRSTAT] tst \rd, #S3C2410_UTRSTAT_TXFE beq 1001b
arch/arm64/kernel/signal32.c +2 -2
@@ -76,7 +76,7 @@ struct compat_sigcontext {struct compat_ucontext {compat_ulong_t uc_flags; -struct compat_ucontext *uc_link; +compat_uptr_t uc_link;compat_stack_t uc_stack;struct compat_sigcontext uc_mcontext;compat_sigset_t uc_sigmask;
@@ -703,7 +703,7 @@ int compat_setup_rt_frame(int usig, struct k_sigaction *ka, siginfo_t *info, err |=copy_siginfo_to_user32 (&frame->info, info);__put_user_error (0 , &frame->sig.uc.uc_flags, err); -__put_user_error (NULL , &frame->sig.uc.uc_link, err); +__put_user_error (0 , &frame->sig.uc.uc_link, err);memset (&stack,0 ,sizeof (stack)); stack.ss_sp = (compat_uptr_t )current->sas_ss_sp;
arch/parisc/include/asm/pgtable.h +10 -3
@@ -12,11 +12,10 @@#include <linux/bitops.h> #include <linux/spinlock.h> +#include <linux/mm_types.h> #include <asm/processor.h> #include <asm/cache.h> -struct vm_area_struct ; -/* * kern_addr_valid(ADDR) tests if ADDR is pointing to valid kernel * memory. For the return value to be meaningful, ADDR must be >=
@@ -40,7 +39,14 @@ struct vm_area_struct;do { \ *(pteptr) = (pteval); \ } while(0) -#define set_pte_at (mm,addr,ptep,pteval) set_pte(ptep,pteval) + +extern void purge_tlb_entries (struct mm_struct *,unsigned long ); + +#define set_pte_at (mm, addr, ptep, pteval) \ + do { \ + set_pte(ptep, pteval); \ + purge_tlb_entries(mm, addr); \ + } while (0)#endif /* !__ASSEMBLY__ */
@@ -466,6 +472,7 @@ static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long addr, old =pte_val (*ptep); new = pte_val(pte_wrprotect(__pte (old))); }while (cmpxchg ((unsigned long *) ptep, old, new) != old); +purge_tlb_entries (mm, addr);#else pte_t old_pte = *ptep;set_pte_at (mm, addr, ptep,pte_wrprotect (old_pte));
arch/parisc/kernel/cache.c +18 -0
@@ -419,6 +419,24 @@ void kunmap_parisc(void *addr)EXPORT_SYMBOL (kunmap_parisc);#endif +void purge_tlb_entries (struct mm_struct *mm,unsigned long addr) +{ +unsigned long flags; + +/* Note: purge_tlb_entries can be called at startup with +no context. */ + +/* Disable preemption while we play with %sr1. */ +preempt_disable (); +mtsp (mm->context,1 ); +purge_tlb_start (flags); +pdtlb (addr); +pitlb (addr); +purge_tlb_end (flags); +preempt_enable (); +} +EXPORT_SYMBOL (purge_tlb_entries); +void __flush_tlb_range (unsigned long sid,unsigned long start,unsigned long end) {
arch/powerpc/Kconfig +4 -0
@@ -275,6 +275,10 @@ config PPC_ADV_DEBUG_DAC_RANGE depends on PPC_ADV_DEBUG_REGS && 44x default y +config PPC_EMULATE_SSTEP + bool + default y if KPROBES || UPROBES || XMON || HAVE_HW_BREAKPOINT + source "init/Kconfig" source "kernel/Kconfig.freezer"
arch/powerpc/include/asm/eeh.h +3 -0
@@ -201,6 +201,7 @@ int eeh_dev_check_failure(struct eeh_dev *edev);void __init eeh_addr_cache_build (void );void eeh_add_device_tree_early (struct device_node *);void eeh_add_device_tree_late (struct pci_bus *); +void eeh_add_sysfs_files (struct pci_bus *);void eeh_remove_bus_device (struct pci_dev *,int );/**
@@ -240,6 +241,8 @@ static inline void eeh_add_device_tree_early(struct device_node *dn) { }static inline void eeh_add_device_tree_late (struct pci_bus *bus) { } +static inline void eeh_add_sysfs_files (struct pci_bus *bus) { } +static inline void eeh_remove_bus_device (struct pci_dev *dev,int purge_pe) { }static inline void eeh_lock (void ) { }
arch/powerpc/kernel/machine_kexec_64.c +5 -0
@@ -162,6 +162,8 @@ static int kexec_all_irq_disabled = 0;static void kexec_smp_down (void *arg) {local_irq_disable (); +hard_irq_disable (); +mb ();/* make sure our irqs are disabled before we say they are */ get_paca ()->kexec_state =KEXEC_STATE_IRQS_OFF ;while (kexec_all_irq_disabled ==0 )
@@ -244,6 +246,8 @@ static void kexec_prepare_cpus(void)wake_offline_cpus ();smp_call_function (kexec_smp_down,NULL ,/* wait */ 0 );local_irq_disable (); +hard_irq_disable (); +mb ();/* make sure IRQs are disabled before we say they are */ get_paca ()->kexec_state =KEXEC_STATE_IRQS_OFF ;
@@ -281,6 +285,7 @@ static void kexec_prepare_cpus(void)if (ppc_md.kexec_cpu_down) ppc_md.kexec_cpu_down (0 ,0 );local_irq_disable (); + hard_irq_disable(); }#endif /* SMP */
arch/powerpc/kernel/of_platform.c +3 -0
@@ -95,6 +95,9 @@ static int of_pci_phb_probe(struct platform_device *dev)/* Add probed PCI devices to the device model */ pci_bus_add_devices (phb->bus); +/* sysfs files should only be added after devices are added */ +eeh_add_sysfs_files (phb->bus); +return 0 ; }
arch/powerpc/kernel/pci-common.c +5 -2
@@ -1477,11 +1477,14 @@ void pcibios_finish_adding_to_bus(struct pci_bus *bus)pcibios_allocate_bus_resources (bus);pcibios_claim_one_bus (bus); +/* Fixup EEH */ +eeh_add_device_tree_late (bus); +/* Add new devices to global lists. Register in proc, sysfs. */ pci_bus_add_devices (bus); -/* Fixup EEH */ -eeh_add_device_tree_late (bus); +/* sysfs files should only be added after devices are added */ +eeh_add_sysfs_files (bus); }EXPORT_SYMBOL_GPL (pcibios_finish_adding_to_bus);
arch/powerpc/lib/Makefile +1 -3
@@ -19,9 +19,7 @@ obj-$(CONFIG_PPC64) += copypage_64.o copyuser_64.o \ checksum_wrappers_64.o hweight_64.o \ copyuser_power7.o string_64.o copypage_power7.o \ memcpy_power7.o -obj-$(CONFIG_XMON) += sstep.o ldstfp.o -obj-$(CONFIG_KPROBES) += sstep.o ldstfp.o -obj-$(CONFIG_HAVE_HW_BREAKPOINT) += sstep.o ldstfp.o +obj-$(CONFIG_PPC_EMULATE_SSTEP) += sstep.o ldstfp.o ifeq ($(CONFIG_PPC64),y) obj-$(CONFIG_SMP) += locks.o
arch/powerpc/platforms/pseries/eeh.c +23 -1
@@ -788,7 +788,6 @@ static void eeh_add_device_late(struct pci_dev *dev) dev->dev.archdata.edev = edev;eeh_addr_cache_insert_dev (dev); -eeh_sysfs_add_device (dev); }/**
@@ -815,6 +814,29 @@ void eeh_add_device_tree_late(struct pci_bus *bus)EXPORT_SYMBOL_GPL (eeh_add_device_tree_late);/** +* eeh_add_sysfs_files - Add EEH sysfs files for the indicated PCI bus +* @bus: PCI bus +* +* This routine must be used to add EEH sysfs files for PCI +* devices which are attached to the indicated PCI bus. The PCI bus +* is added after system boot through hotplug or dlpar. +*/ +void eeh_add_sysfs_files (struct pci_bus *bus) +{ +struct pci_dev *dev; + +list_for_each_entry (dev, &bus->devices, bus_list) { +eeh_sysfs_add_device (dev); +if (dev->hdr_type ==PCI_HEADER_TYPE_BRIDGE ) { +struct pci_bus *subbus = dev->subordinate; +if (subbus) +eeh_add_sysfs_files (subbus); + } + } +} +EXPORT_SYMBOL_GPL (eeh_add_sysfs_files); + +/** * eeh_remove_device - Undo EEH setup for the indicated pci device * @dev: pci device to be removed * @purge_pe: remove the PE or not
arch/s390/kvm/kvm-s390.c +8 -0
@@ -766,6 +766,14 @@ int kvm_s390_vcpu_store_status(struct kvm_vcpu *vcpu, unsigned long addr) }else prefix =0 ; +/* +* The guest FPRS and ACRS are in the host FPRS/ACRS due to the lazy +* copying in vcpu load/put. Lets update our copies before we save +* it into the save area +*/ +save_fp_regs (&vcpu->arch.guest_fpregs); +save_access_regs (vcpu->run->s.regs.acrs); +if (__guestcopy (vcpu, addr + offsetof(struct save_area , fp_regs), vcpu->arch.guest_fpregs.fprs,128 , prefix))return -EFAULT ;
arch/sparc/include/asm/hugetlb.h +0 -1
@@ -12,7 +12,6 @@ pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr,static inline void hugetlb_prefault_arch_hook (struct mm_struct *mm) { -hugetlb_setup (mm); } static inline int is_hugepage_only_range(struct mm_struct *mm,
arch/sparc/include/asm/page_64.h +2 -2
@@ -27,8 +27,8 @@#ifndef __ASSEMBLY__#if defined(CONFIG_HUGETLB_PAGE ) || defined(CONFIG_TRANSPARENT_HUGEPAGE ) -struct mm_struct ; -extern void hugetlb_setup (struct mm_struct *mm); +struct pt_regs ; +extern void hugetlb_setup (struct pt_regs *regs);#endif #define WANT_PAGE_VIRTUAL
arch/sparc/include/asm/tsb.h +19 -9
@@ -157,17 +157,26 @@ extern struct tsb_phys_patch_entry __tsb_phys_patch, __tsb_phys_patch_end; andn REG2, 0x7, REG2; \add REG1 ,REG2 ,REG1 ; -/* This macro exists only to make the PMD translator below easier -* to read. It hides the ELF section switch for the sun4v code -* patching. +/* These macros exists only to make the PMD translator below +* easier to read. It hides the ELF section switch for the +* sun4v code patching. */ -#define OR_PTE_BIT (REG ,NAME ) \ +#define OR_PTE_BIT_1INSN (REG ,NAME ) \ 661: or REG, _PAGE_##NAME##_4U, REG; \ .section .sun4v_1insn_patch, "ax"; \ .word 661b; \ or REG, _PAGE_##NAME##_4V, REG; \ .previous; +#define OR_PTE_BIT_2INSN (REG ,TMP ,NAME ) \ +661: sethi %hi(_PAGE_##NAME##_4U), TMP; \ + or REG, TMP, REG; \ + .section .sun4v_2insn_patch, "ax"; \ + .word 661b; \ + mov -1, TMP; \ + or REG, _PAGE_##NAME##_4V, REG; \ + .previous; +/* Load into REG the PTE value for VALID, CACHE, and SZHUGE. */ #define BUILD_PTE_VALID_SZHUGE_CACHE (REG ) \ 661: sethi %uhi(_PAGE_VALID|_PAGE_SZHUGE_4U), REG; \
@@ -214,12 +223,13 @@ extern struct tsb_phys_patch_entry __tsb_phys_patch, __tsb_phys_patch_end;andn REG1 ,PMD_HUGE_PROTBITS ,REG2 ; \sllx REG2 ,PMD_PADDR_SHIFT ,REG2 ; \/* REG2 now holds PFN << PAGE_SHIFT */ \ - andcc REG1, PMD_HUGE_EXEC, %g0; \ - bne,a,pt %xcc,1f ; \ -OR_PTE_BIT (REG2 ,EXEC ); \ -1: andcc REG1, PMD_HUGE_WRITE, %g0; \ + andcc REG1, PMD_HUGE_WRITE, %g0; \ bne,a,pt %xcc,1f ; \ -OR_PTE_BIT (REG2 ,W ); \ +OR_PTE_BIT_1INSN (REG2 ,W ); \ +1: andcc REG1, PMD_HUGE_EXEC, %g0; \ + be,pt %xcc,1f ; \ + nop; \ +OR_PTE_BIT_2INSN (REG2 ,REG1 ,EXEC ); \/* REG1 can now be clobbered, build final PTE */ \ 1: BUILD_PTE_VALID_SZHUGE_CACHE(REG1); \ ba,pt %xcc,PTE_LABEL ; \
arch/sparc/kernel/tsb.S +35 -4
@@ -136,12 +136,43 @@ tsb_miss_page_table_walk_sun4v_fastpath: nop /* It is a huge page, use huge page TSB entry address we - * calculated above. + * calculated above. If the huge page TSB has not been + * allocated, setup a trap stack and call hugetlb_setup() + * to do so, then return from the trap to replay the TLB + * miss. + * + * This is necessary to handle the case of transparent huge + * pages where we don't really have a non-atomic context + * in which to allocate the hugepage TSB hash table. When + * the 'mm' faults in the hugepage for the first time, we + * thus handle it here. This also makes sure that we can + * allocate the TSB hash table on the correct NUMA node. */ TRAP_LOAD_TRAP_BLOCK(%g7, %g2) - ldx [%g7 + TRAP_PER_CPU_TSB_HUGE_TEMP], %g2 - cmp %g2, -1 - movne %xcc, %g2, %g1 + ldx [%g7 + TRAP_PER_CPU_TSB_HUGE_TEMP], %g1 + cmp %g1, -1 + bne,pt %xcc, 60f + nop + +661: rdpr %pstate, %g5 + wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate + .section .sun4v_2insn_patch, "ax" + .word 661b + SET_GL(1) + nop + .previous + + rdpr %tl, %g3 + cmp %g3, 1 + bne,pn %xcc, winfix_trampoline + nop + ba,pt %xcc, etrap + rd %pc, %g7 + call hugetlb_setup + add %sp, PTREGS_OFF, %o0 + ba,pt %xcc, rtrap + nop + 60: #endif
arch/sparc/mm/fault_64.c +7 -2
@@ -472,8 +472,13 @@ good_area:#if defined(CONFIG_HUGETLB_PAGE ) || defined(CONFIG_TRANSPARENT_HUGEPAGE ) mm_rss = mm->context.huge_pte_count;if (unlikely (mm_rss > - mm->context.tsb_block[MM_TSB_HUGE ].tsb_rss_limit)) -tsb_grow (mm,MM_TSB_HUGE , mm_rss); + mm->context.tsb_block[MM_TSB_HUGE ].tsb_rss_limit)) { +if (mm->context.tsb_block[MM_TSB_HUGE ].tsb) +tsb_grow (mm,MM_TSB_HUGE , mm_rss); +else +hugetlb_setup (regs); + + }#endif return ;
arch/sparc/mm/init_64.c +41 -21
96 lines not on this page · raw message
arch/sparc/mm/tlb.c +9 -2
@@ -135,8 +135,15 @@ void set_pmd_at(struct mm_struct *mm, unsigned long addr, mm->context.huge_pte_count++; else mm->context.huge_pte_count--; -if (mm->context.huge_pte_count ==1 ) -hugetlb_setup (mm); + +/* Do not try to allocate the TSB hash table if we +* don't have one already. We have various locks held +* and thus we'll end up doing a GFP_KERNEL allocation +* in an atomic context. +* +* Instead, we let the first TLB miss on a hugepage +* take care of this. +*/ }if (!pmd_none (orig)) {
arch/sparc/mm/tsb.c +1 -1
@@ -314,7 +314,7 @@ void tsb_grow(struct mm_struct *mm, unsigned long tsb_index, unsigned long rss) retry_tsb_alloc: gfp_flags =GFP_KERNEL ;if (new_size > (PAGE_SIZE *2 )) - gfp_flags = __GFP_NOWARN | __GFP_NORETRY; + gfp_flags |= __GFP_NOWARN | __GFP_NORETRY; new_tsb =kmem_cache_alloc_node (tsb_caches[new_cache_index], gfp_flags,numa_node_id ());
arch/x86/Kconfig +0 -4
@@ -1253,10 +1253,6 @@ config NODES_SHIFT Specify the maximum number of NUMA Nodes available on the target system. Increases memory reserved to accommodate various tables. -config HAVE_ARCH_ALLOC_REMAP - def_bool y - depends on X86_32 && NUMA - config ARCH_HAVE_MEMORY_PRESENT def_bool y depends on X86_32 && DISCONTIGMEM
arch/x86/include/asm/mmzone_32.h +0 -6
@@ -14,12 +14,6 @@ extern struct pglist_data *node_data[];#include <asm/numaq.h> -extern void resume_map_numa_kva (pgd_t *pgd); - -#else /* !CONFIG_NUMA */ - -static inline void resume_map_numa_kva (pgd_t *pgd) {} -#endif /* CONFIG_NUMA */ #ifdef CONFIG_DISCONTIGMEM
arch/x86/kernel/cpu/mshyperv.c +2 -1
@@ -68,7 +68,8 @@ static void __init ms_hyperv_init_platform(void)printk (KERN_INFO "HyperV: features 0x%x, hints 0x%x\n" , ms_hyperv.features, ms_hyperv.hints); -clocksource_register_hz (&hyperv_cs,NSEC_PER_SEC /100 ); +if (ms_hyperv.features &HV_X64_MSR_TIME_REF_COUNT_AVAILABLE ) +clocksource_register_hz (&hyperv_cs,NSEC_PER_SEC /100 ); }const __refconst struct hypervisor_x86 x86_hyper_ms_hyperv = {
arch/x86/mm/numa.c +11 -21
@@ -193,7 +193,6 @@ int __init numa_add_memblk(int nid, u64 start, u64 end)static void __init setup_node_data (int nid,u64 start,u64 end) {const size_t nd_size =roundup (sizeof (pg_data_t),PAGE_SIZE ); -bool remapped = false;u64 nd_pa;void *nd;int tnid;
@@ -205,37 +204,28 @@ static void __init setup_node_data(int nid, u64 start, u64 end)if (end && (end - start) <NODE_MIN_SIZE )return ; -/* initialize remap allocator before aligning to ZONE_ALIGN */ -init_alloc_remap (nid, start, end); - start =roundup (start,ZONE_ALIGN );printk (KERN_INFO "Initmem setup node %d [mem %#010Lx-%#010Lx]\n" , nid, start, end -1 );/* -* Allocate node data. Try remap allocator first, node-local -* memory and then any node. Never allocate in DMA zone. +* Allocate node data. Try node-local memory and then any node. +* Never allocate in DMA zone. */ - nd =alloc_remap (nid, nd_size); -if (nd) { - nd_pa =__pa (nd); - remapped = true; - }else { - nd_pa =memblock_alloc_nid (nd_size,SMP_CACHE_BYTES , nid); -if (!nd_pa) { -pr_err ("Cannot find %zu bytes in node %d\n" , - nd_size, nid); -return ; - } - nd =__va (nd_pa); + nd_pa =memblock_alloc_nid (nd_size,SMP_CACHE_BYTES , nid); +if (!nd_pa) { +pr_err ("Cannot find %zu bytes in node %d\n" , + nd_size, nid); +return ; } + nd =__va (nd_pa);/* report and initialize */ -printk (KERN_INFO " NODE_DATA [mem %#010Lx-%#010Lx]%s\n" , - nd_pa, nd_pa + nd_size -1 , remapped ?" (remapped)" :"" ); +printk (KERN_INFO " NODE_DATA [mem %#010Lx-%#010Lx]\n" , + nd_pa, nd_pa + nd_size -1 ); tnid =early_pfn_to_nid (nd_pa >>PAGE_SHIFT ); -if (!remapped && tnid != nid) +if (tnid != nid)printk (KERN_INFO " NODE_DATA(%d) on node %d\n" , nid, tnid); node_data[nid] = nd;
arch/x86/mm/numa_32.c +0 -161
167 lines not on this page · raw message
arch/x86/mm/numa_internal.h +0 -6
@@ -21,12 +21,6 @@ void __init numa_reset_distance(void);void __init x86_numa_init (void ); -#ifdef CONFIG_X86_64 -static inline void init_alloc_remap (int nid,u64 start,u64 end) { } -#else -void __init init_alloc_remap (int nid,u64 start,u64 end); -#endif -#ifdef CONFIG_NUMA_EMU void __init numa_emulation (struct numa_meminfo *numa_meminfo,int numa_dist_cnt);
arch/x86/power/hibernate_32.c +0 -2
@@ -129,8 +129,6 @@ static int resume_physical_mapping_init(pgd_t *pgd_base) } } -resume_map_numa_kva (pgd_base); -return 0 ; }
arch/x86/xen/spinlock.c +0 -1
@@ -328,7 +328,6 @@ static noinline void xen_spin_unlock_slow(struct xen_spinlock *xl)if (per_cpu (lock_spinners, cpu) == xl) {ADD_STATS (released_slow_kicked,1 );xen_send_IPI_one (cpu,XEN_SPIN_UNLOCK_VECTOR ); -break ; } } }
drivers/base/bus.c +2 -2
@@ -290,7 +290,7 @@ int bus_for_each_dev(struct bus_type *bus, struct device *start,struct device *dev;int error =0 ; -if (!bus) +if (!bus || !bus->p)return -EINVAL ; klist_iter_init_node(&bus->p->klist_devices, &i,
@@ -324,7 +324,7 @@ struct device *bus_find_device(struct bus_type *bus,struct klist_iter i;struct device *dev; -if (!bus) +if (!bus || !bus->p)return NULL ; klist_iter_init_node(&bus->p->klist_devices, &i,
drivers/base/dd.c +2 -0
@@ -172,6 +172,8 @@ static int deferred_probe_initcall(void) driver_deferred_probe_enable = true;driver_deferred_probe_trigger (); +/* Sort as many dependencies as possible before exiting initcalls */ +flush_workqueue (deferred_wq);return 0 ; }late_initcall (deferred_probe_initcall);
drivers/dca/dca-core.c +5 -0
@@ -420,6 +420,11 @@ void unregister_dca_provider(struct dca_provider *dca, struct device *dev)raw_spin_lock_irqsave (&dca_lock, flags); +if (list_empty (&dca_domains)) { +raw_spin_unlock_irqrestore (&dca_lock, flags); +return ; + } +list_del (&dca->node); pci_rc =dca_pci_rc_from_dev (dev);
drivers/dma/sh/shdma.c +1 -1
@@ -326,7 +326,7 @@ static int sh_dmae_set_slave(struct shdma_chan *schan, shdma_chan);const struct sh_dmae_slave_config *cfg =dmae_find_slave (sh_chan, slave_id);if (!cfg) -return -ENODEV ; +return -ENXIO ;if (!try) sh_chan->config = cfg;
drivers/gpio/gpio-em.c +2 -1
@@ -299,8 +299,9 @@ static int em_gio_probe(struct platform_device *pdev) irq_chip->irq_set_type = em_gio_irq_set_type; irq_chip->flags =IRQCHIP_SKIP_SET_WAKE ; - p->irq_domain =irq_domain_add_linear (pdev->dev.of_node, + p->irq_domain =irq_domain_add_simple (pdev->dev.of_node, pdata->number_of_pins, + pdata->irq_base, &em_gio_irq_domain_ops, p);if (!p->irq_domain) { ret = -ENXIO ;
drivers/gpu/drm/drm_crtc.c +2 -1
@@ -2089,7 +2089,7 @@ uint32_t drm_mode_legacy_fb_format(uint32_t bpp, uint32_t depth)switch (bpp) {case 8 : - fmt =DRM_FORMAT_RGB332 ; + fmt =DRM_FORMAT_C8 ;break ;case 16 :if (depth ==15 )
@@ -3702,6 +3702,7 @@ void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth, int *bpp) {switch (format) { +case DRM_FORMAT_C8 :case DRM_FORMAT_RGB332 :case DRM_FORMAT_BGR233 : *depth =8 ;
drivers/gpu/drm/drm_edid.c +7 -5
@@ -87,9 +87,6 @@ static struct edid_quirk {int product_id;u32 quirks; } edid_quirk_list[] = { -/* ASUS VW222S */ - { "ACI", 0x22a2, EDID_QUIRK_FORCE_REDUCED_BLANKING }, -/* Acer AL1706 */ { "ACR", 44358, EDID_QUIRK_PREFER_LARGE_60 },/* Acer F51 */
@@ -357,10 +354,14 @@ drm_do_get_edid(struct drm_connector *connector, struct i2c_adapter *adapter)break ; } } -if (i ==4 ) + +if (i ==4 && print_bad_edid) {dev_warn (connector->dev->dev,"%s: Ignoring invalid EDID block %d.\n" ,drm_get_connector_name (connector), j); + + connector->bad_edid_counter++; + } }if (valid_extensions != block[0x7e ]) {
@@ -2020,7 +2021,8 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid) num_modes +=add_cvt_modes (connector, edid); num_modes +=add_standard_modes (connector, edid); num_modes +=add_established_modes (connector, edid); - num_modes +=add_inferred_modes (connector, edid); +if (edid->features &DRM_EDID_FEATURE_DEFAULT_GTF ) + num_modes +=add_inferred_modes (connector, edid); num_modes +=add_cea_modes (connector, edid);if (quirks & (EDID_QUIRK_PREFER_LARGE_60 |EDID_QUIRK_PREFER_LARGE_75 ))
drivers/gpu/drm/drm_usb.c +1 -1
@@ -18,7 +18,7 @@ int drm_get_usb_dev(struct usb_interface *interface, usbdev =interface_to_usbdev (interface); dev->usbdev = usbdev; - dev->dev = &usbdev->dev; + dev->dev = &interface->dev;mutex_lock (&drm_global_mutex);
drivers/gpu/drm/i915/i915_debugfs.c +8 -4
@@ -691,7 +691,7 @@ static int i915_error_state(struct seq_file *m, void *unused)seq_printf (m,"Time: %ld s %ld us\n" , error->time.tv_sec, error->time.tv_usec); -seq_printf (m,"Kernel: " UTS_RELEASE ); +seq_printf (m,"Kernel: " UTS_RELEASE "\n" );seq_printf (m,"PCI ID: 0x%04x\n" , dev->pci_device);seq_printf (m,"EIR: 0x%08x\n" , error->eir);seq_printf (m,"IER: 0x%08x\n" , error->ier);
@@ -888,7 +888,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused)u32 gt_perf_status =I915_READ (GEN6_GT_PERF_STATUS );u32 rp_state_limits =I915_READ (GEN6_RP_STATE_LIMITS );u32 rp_state_cap =I915_READ (GEN6_RP_STATE_CAP ); -u32 rpstat; +u32 rpstat, cagf;u32 rpupei, rpcurup, rpprevup;u32 rpdownei, rpcurdown, rpprevdown;int max_freq;
@@ -907,6 +907,11 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused) rpdownei =I915_READ (GEN6_RP_CUR_DOWN_EI ); rpcurdown =I915_READ (GEN6_RP_CUR_DOWN ); rpprevdown =I915_READ (GEN6_RP_PREV_DOWN ); +if (IS_HASWELL (dev)) + cagf = (rpstat &HSW_CAGF_MASK ) >>HSW_CAGF_SHIFT ; +else + cagf = (rpstat &GEN6_CAGF_MASK ) >>GEN6_CAGF_SHIFT ; + cagf *=GT_FREQUENCY_MULTIPLIER ;gen6_gt_force_wake_put (dev_priv);mutex_unlock (&dev->struct_mutex);
@@ -919,8 +924,7 @@ static int i915_cur_delayinfo(struct seq_file *m, void *unused) gt_perf_status & 0xff);seq_printf (m,"Render p-state limit: %d\n" , rp_state_limits &0xff ); -seq_printf (m,"CAGF: %dMHz\n" , ((rpstat &GEN6_CAGF_MASK ) >> -GEN6_CAGF_SHIFT ) *GT_FREQUENCY_MULTIPLIER ); +seq_printf (m,"CAGF: %dMHz\n" , cagf);seq_printf (m,"RP CUR UP EI: %dus\n" , rpupei &GEN6_CURICONT_MASK ); seq_printf(m, "RP CUR UP: %dus\n", rpcurup &
drivers/gpu/drm/i915/i915_drv.h +1 -1
@@ -919,7 +919,7 @@ typedef struct drm_i915_private {bool hw_contexts_disabled;uint32_t hw_context_size; -bool fdi_rx_polarity_reversed; +u32 fdi_rx_config;struct i915_suspend_saved_registers regfile;
drivers/gpu/drm/i915/i915_gem.c +1 -4
@@ -1918,9 +1918,6 @@ i915_gem_object_move_to_inactive(struct drm_i915_gem_object *obj)BUG_ON (obj->base.write_domain & ~I915_GEM_GPU_DOMAINS );BUG_ON (!obj->active); -if (obj->pin_count)/* are we a framebuffer? */ -intel_mark_fb_idle (obj); -list_move_tail (&obj->mm_list, &dev_priv->mm.inactive_list);list_del_init (&obj->ring_list);
@@ -3848,7 +3845,7 @@ void i915_gem_l3_remap(struct drm_device *dev)u32 misccpctl;int i; -if (!IS_IVYBRIDGE (dev)) +if (!HAS_L3_GPU_CACHE (dev))return ;if (!dev_priv->l3_parity.remap_info)
drivers/gpu/drm/i915/i915_reg.h +6 -3
@@ -3927,7 +3927,7 @@#define FDI_10BPC (1<<16)#define FDI_6BPC (2<<16)#define FDI_12BPC (3<<16) -#define FDI_LINK_REVERSE_OVERWRITE (1<<15) +#define FDI_RX_LINK_REVERSAL_OVERRIDE (1<<15)#define FDI_DMI_LINK_REVERSE_MASK (1<<14)#define FDI_RX_PLL_ENABLE (1<<13)#define FDI_FS_ERR_CORRECT_ENABLE (1<<11)
@@ -4211,7 +4211,9 @@#define GEN6_RP_INTERRUPT_LIMITS 0xA014#define GEN6_RPSTAT1 0xA01C#define GEN6_CAGF_SHIFT 8 +#define HSW_CAGF_SHIFT 7#define GEN6_CAGF_MASK (0x7f << GEN6_CAGF_SHIFT) +#define HSW_CAGF_MASK (0x7f << HSW_CAGF_SHIFT)#define GEN6_RP_CONTROL 0xA024#define GEN6_RP_MEDIA_TURBO (1<<11)#define GEN6_RP_MEDIA_MODE_MASK (3<<9)
@@ -4280,8 +4282,8 @@#define GEN6_PCODE_READ_MIN_FREQ_TABLE 0x9#define GEN6_PCODE_WRITE_RC6VIDS 0x4#define GEN6_PCODE_READ_RC6VIDS 0x5 -#define GEN6_ENCODE_RC6_VID (mv) (((mv) / 5) - 245) < 0 ?: 0 -#define GEN6_DECODE_RC6_VID (vids) (((vids) * 5) > 0 ? ((vids) * 5) + 245 : 0) +#define GEN6_ENCODE_RC6_VID (mv) (((mv) - 245) / 5) +#define GEN6_DECODE_RC6_VID (vids) (((vids) * 5) + 245)#define GEN6_PCODE_DATA 0x138128#define GEN6_PCODE_FREQ_IA_RATIO_SHIFT 8
@@ -4524,6 +4526,7 @@#define DDI_BUF_EMP_800MV_0DB_HSW (7<<24)/* Sel7 */ #define DDI_BUF_EMP_800MV_3_5DB_HSW (8<<24)/* Sel8 */ #define DDI_BUF_EMP_MASK (0xf<<24) +#define DDI_BUF_PORT_REVERSAL (1<<16)#define DDI_BUF_IS_IDLE (1<<7)#define DDI_A_4_LANES (1<<4)#define DDI_PORT_WIDTH_X1 (0<<1)
drivers/gpu/drm/i915/intel_crt.c +9 -5
@@ -800,10 +800,14 @@ void intel_crt_init(struct drm_device *dev) dev_priv->hotplug_supported_mask |=CRT_HOTPLUG_INT_STATUS ;/* -* TODO: find a proper way to discover whether we need to set the -* polarity reversal bit or not, instead of relying on the BIOS. +* TODO: find a proper way to discover whether we need to set the the +* polarity and link reversal bits or not, instead of relying on the +* BIOS. */ -if (HAS_PCH_LPT (dev)) - dev_priv->fdi_rx_polarity_reversed = - !!(I915_READ (_FDI_RXA_CTL) &FDI_RX_POLARITY_REVERSED_LPT ); +if (HAS_PCH_LPT (dev)) { +u32 fdi_config =FDI_RX_POLARITY_REVERSED_LPT | +FDI_RX_LINK_REVERSAL_OVERRIDE ; + + dev_priv->fdi_rx_config =I915_READ (_FDI_RXA_CTL) & fdi_config; + } }
drivers/gpu/drm/i915/intel_ddi.c +18 -7
@@ -178,10 +178,8 @@ void hsw_fdi_link_train(struct drm_crtc *crtc) FDI_RX_TP1_TO_TP2_48 | FDI_RX_FDI_DELAY_90);/* Enable the PCH Receiver FDI PLL */ - rx_ctl_val =FDI_RX_PLL_ENABLE |FDI_RX_ENHANCE_FRAME_ENABLE | - ((intel_crtc->fdi_lanes -1 ) <<19 ); -if (dev_priv->fdi_rx_polarity_reversed) - rx_ctl_val |=FDI_RX_POLARITY_REVERSED_LPT ; + rx_ctl_val = dev_priv->fdi_rx_config |FDI_RX_ENHANCE_FRAME_ENABLE | +FDI_RX_PLL_ENABLE | ((intel_crtc->fdi_lanes -1 ) <<19 );I915_WRITE (_FDI_RXA_CTL, rx_ctl_val);POSTING_READ (_FDI_RXA_CTL);udelay (220 );
@@ -203,7 +201,10 @@ void hsw_fdi_link_train(struct drm_crtc *crtc)DP_TP_CTL_LINK_TRAIN_PAT1 | DP_TP_CTL_ENABLE); -/* Configure and enable DDI_BUF_CTL for DDI E with next voltage */ +/* Configure and enable DDI_BUF_CTL for DDI E with next voltage. +* DDI E does not support port reversal, the functionality is +* achieved on the PCH side in FDI_RX_CTL, so no need to set the +* port reversal bit */ I915_WRITE(DDI_BUF_CTL(PORT_E), DDI_BUF_CTL_ENABLE | ((intel_crtc->fdi_lanes - 1) << 1) |
@@ -677,8 +678,11 @@ static void intel_ddi_mode_set(struct drm_encoder *encoder,if (type ==INTEL_OUTPUT_DISPLAYPORT || type ==INTEL_OUTPUT_EDP ) {struct intel_dp *intel_dp =enc_to_intel_dp (encoder); +struct intel_digital_port *intel_dig_port = +enc_to_dig_port (encoder); - intel_dp->DP =DDI_BUF_CTL_ENABLE |DDI_BUF_EMP_400MV_0DB_HSW ; + intel_dp->DP = intel_dig_port->port_reversal | +DDI_BUF_CTL_ENABLE |DDI_BUF_EMP_400MV_0DB_HSW ;switch (intel_dp->lane_count) {case 1 : intel_dp->DP |=DDI_PORT_WIDTH_X1 ;
@@ -1291,11 +1295,15 @@ static void intel_enable_ddi(struct intel_encoder *intel_encoder)int type = intel_encoder->type;if (type ==INTEL_OUTPUT_HDMI ) { +struct intel_digital_port *intel_dig_port = +enc_to_dig_port (encoder); +/* In HDMI/DVI mode, the port width, and swing/emphasis values * are ignored so nothing special needs to be done besides * enabling the port. */ -I915_WRITE (DDI_BUF_CTL (port),DDI_BUF_CTL_ENABLE ); +I915_WRITE (DDI_BUF_CTL (port), + intel_dig_port->port_reversal |DDI_BUF_CTL_ENABLE ); }else if (type ==INTEL_OUTPUT_EDP ) {struct intel_dp *intel_dp =enc_to_intel_dp (encoder);
@@ -1457,6 +1465,7 @@ static const struct drm_encoder_helper_funcs intel_ddi_helper_funcs = {void intel_ddi_init (struct drm_device *dev,enum port port) { +struct drm_i915_private *dev_priv = dev->dev_private;struct intel_digital_port *intel_dig_port;struct intel_encoder *intel_encoder;struct drm_encoder *encoder;
@@ -1497,6 +1506,8 @@ void intel_ddi_init(struct drm_device *dev, enum port port) intel_encoder->get_hw_state = intel_ddi_get_hw_state; intel_dig_port->port = port; + intel_dig_port->port_reversal =I915_READ (DDI_BUF_CTL (port)) & +DDI_BUF_PORT_REVERSAL ;if (hdmi_connector) intel_dig_port->hdmi.sdvox_reg =DDI_BUF_CTL (port);else
drivers/gpu/drm/i915/intel_display.c +42 -26
134 lines not on this page · raw message
drivers/gpu/drm/i915/intel_drv.h +6 -5
@@ -377,6 +377,7 @@ struct intel_dp {struct intel_digital_port {struct intel_encoder base;enum port port; +u32 port_reversal;struct intel_dp dp;struct intel_hdmi hdmi; };
@@ -439,9 +440,8 @@ extern bool intel_sdvo_init(struct drm_device *dev, uint32_t sdvo_reg,extern void intel_dvo_init (struct drm_device *dev);extern void intel_tv_init (struct drm_device *dev);extern void intel_mark_busy (struct drm_device *dev); -extern void intel_mark_idle (struct drm_device *dev);extern void intel_mark_fb_busy (struct drm_i915_gem_object *obj); -extern void intel_mark_fb_idle (struct drm_i915_gem_object *obj); +extern void intel_mark_idle (struct drm_device *dev);extern bool intel_lvds_init (struct drm_device *dev);extern void intel_dp_init (struct drm_device *dev,int output_reg,enum port port);
@@ -627,9 +627,10 @@ extern void intel_update_sprite_watermarks(struct drm_device *dev, int pipe,extern void intel_update_linetime_watermarks (struct drm_device *dev,int pipe,struct drm_display_mode *mode); -extern unsigned long intel_gen4_compute_offset_xtiled (int *x,int *y, -unsigned int bpp, -unsigned int pitch); +extern unsigned long intel_gen4_compute_page_offset (int *x,int *y, +unsigned int tiling_mode, +unsigned int bpp, +unsigned int pitch);extern int intel_sprite_set_colorkey (struct drm_device *dev,void *data,struct drm_file *file_priv);
drivers/gpu/drm/i915/intel_panel.c +8 -5
@@ -321,6 +321,9 @@ void intel_panel_enable_backlight(struct drm_device *dev,if (dev_priv->backlight_level ==0 ) dev_priv->backlight_level =intel_panel_get_max_backlight (dev); + dev_priv->backlight_enabled = true; +intel_panel_actually_set_backlight (dev, dev_priv->backlight_level); +if (INTEL_INFO (dev)->gen >=4 ) {uint32_t reg, tmp;
@@ -356,12 +359,12 @@ void intel_panel_enable_backlight(struct drm_device *dev, } set_level: -/* Call below after setting BLC_PWM_CPU_CTL2 and BLC_PWM_PCH_CTL1. -* BLC_PWM_CPU_CTL may be cleared to zero automatically when these -* registers are set. +/* Check the current backlight level and try to set again if it's zero. +* On some machines, BLC_PWM_CPU_CTL is cleared to zero automatically +* when BLC_PWM_CPU_CTL2 and BLC_PWM_PCH_CTL1 are written. */ - dev_priv->backlight_enabled = true; -intel_panel_actually_set_backlight (dev, dev_priv->backlight_level); +if (!intel_panel_get_backlight (dev)) +intel_panel_actually_set_backlight (dev, dev_priv->backlight_level); }static void intel_panel_init_backlight (struct drm_device *dev)
drivers/gpu/drm/i915/intel_sprite.c +4 -4
@@ -122,8 +122,8 @@ ivb_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb, linear_offset = y * fb->pitches[0 ] + x * pixel_size; sprsurf_offset = -intel_gen4_compute_offset_xtiled (&x, &y, - pixel_size, fb->pitches[0 ]); +intel_gen4_compute_page_offset (&x, &y, obj->tiling_mode, + pixel_size, fb->pitches[0 ]); linear_offset -= sprsurf_offset;/* HSW consolidates SPRTILEOFF and SPRLINOFF into a single SPROFFSET
@@ -287,8 +287,8 @@ ilk_update_plane(struct drm_plane *plane, struct drm_framebuffer *fb, linear_offset = y * fb->pitches[0 ] + x * pixel_size; dvssurf_offset = -intel_gen4_compute_offset_xtiled (&x, &y, - pixel_size, fb->pitches[0 ]); +intel_gen4_compute_page_offset (&x, &y, obj->tiling_mode, + pixel_size, fb->pitches[0 ]); linear_offset -= dvssurf_offset;if (obj->tiling_mode !=I915_TILING_NONE )
drivers/gpu/drm/nouveau/core/include/subdev/bios/dcb.h +3 -0
@@ -16,6 +16,8 @@ enum dcb_output_type {struct dcb_output {int index;/* may not be raw dcb index if merging has happened */ +u16 hasht; +u16 hashm;enum dcb_output_type type;uint8_t i2c_index;uint8_t heads;
@@ -25,6 +27,7 @@ struct dcb_output {uint8_t or;uint8_t link;bool duallink_possible; +uint8_t extdev; union { struct sor_conf { int link;
drivers/gpu/drm/nouveau/core/subdev/bios/dcb.c +19 -13
@@ -107,6 +107,18 @@ dcb_outp(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len)return 0x0000 ; } +static inline u16 +dcb_outp_hasht (struct dcb_output *outp) +{ +return (outp->extdev <<8 ) | (outp->location <<4 ) | outp->type; +} + +static inline u16 +dcb_outp_hashm (struct dcb_output *outp) +{ +return (outp->heads <<8 ) | (outp->link <<6 ) | outp->or; +} +u16 dcb_outp_parse (struct nouveau_bios *bios,u8 idx,u8 *ver,u8 *len,struct dcb_output *outp)
@@ -135,34 +147,28 @@ dcb_outp_parse(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len,case DCB_OUTPUT_DP : outp->link = (conf &0x00000030 ) >>4 ; outp->sorconf.link = outp->link;/*XXX*/ + outp->extdev =0x00 ; +if (outp->location !=0 ) + outp->extdev = (conf &0x0000ff00 ) >>8 ;break ;default :break ; } } + + outp->hasht =dcb_outp_hasht (outp); + outp->hashm =dcb_outp_hashm (outp); }return dcb; } -static inline u16 -dcb_outp_hasht (struct dcb_output *outp) -{ -return outp->type; -} - -static inline u16 -dcb_outp_hashm (struct dcb_output *outp) -{ -return (outp->heads <<8 ) | (outp->link <<6 ) | outp->or; -} -u16 dcb_outp_match (struct nouveau_bios *bios,u16 type,u16 mask,u8 *ver,u8 *len,struct dcb_output *outp) {u16 dcb, idx =0 ;while ((dcb =dcb_outp_parse (bios, idx++, ver, len, outp))) { -if (dcb_outp_hasht (outp) == type) { +if ((dcb_outp_hasht (outp) &0x00ff ) == (type &0x00ff )) {if ((dcb_outp_hashm (outp) & mask) == mask)break ; }
drivers/gpu/drm/nouveau/core/subdev/devinit/nv50.c +8 -6
@@ -78,12 +78,13 @@ nv50_devinit_init(struct nouveau_object *object)if (ret)return ret; -/* if we ran the init tables, execute first script pointer for each -* display table output entry that has a matching dcb entry. +/* if we ran the init tables, we have to execute the first script +* pointer of each dcb entry's display encoder table in order +* to properly initialise each encoder. */ -while (priv->base.post && ver) { -u16 data =nvbios_outp_parse (bios, i++, &ver, &hdr, &cnt, &len, &info); -if (data &&dcb_outp_match (bios, info.type, info.mask, &ver, &len, &outp)) { +while (priv->base.post &&dcb_outp_parse (bios, i, &ver, &hdr, &outp)) { +if (nvbios_outp_match (bios, outp.hasht, outp.hashm, + &ver, &hdr, &cnt, &len, &info)) {struct nvbios_init init = { .subdev =nv_subdev (priv), .bios = bios,
@@ -95,7 +96,8 @@ nv50_devinit_init(struct nouveau_object *object)nvbios_exec (&init); } - }; + i++; + }return 0 ; }
drivers/gpu/drm/radeon/atombios_crtc.c +2 -4
@@ -252,8 +252,6 @@ void atombios_crtc_dpms(struct drm_crtc *crtc, int mode) radeon_crtc->enabled = true;/* adjust pm to dpms changes BEFORE enabling crtcs */ radeon_pm_compute_clocks (rdev); -if (ASIC_IS_DCE6 (rdev) && !radeon_crtc->in_mode_set) -atombios_powergate_crtc (crtc,ATOM_DISABLE );atombios_enable_crtc (crtc,ATOM_ENABLE );if (ASIC_IS_DCE3 (rdev) && !ASIC_IS_DCE6 (rdev))atombios_enable_crtc_memreq (crtc,ATOM_ENABLE );
@@ -271,8 +269,6 @@ void atombios_crtc_dpms(struct drm_crtc *crtc, int mode)atombios_enable_crtc_memreq (crtc,ATOM_DISABLE );atombios_enable_crtc (crtc,ATOM_DISABLE ); radeon_crtc->enabled = false; -if (ASIC_IS_DCE6 (rdev) && !radeon_crtc->in_mode_set) -atombios_powergate_crtc (crtc,ATOM_ENABLE );/* adjust pm to dpms changes AFTER disabling crtcs */ radeon_pm_compute_clocks (rdev);break ;
@@ -1844,6 +1840,8 @@ static void atombios_crtc_disable(struct drm_crtc *crtc)int i;atombios_crtc_dpms (crtc,DRM_MODE_DPMS_OFF ); +if (ASIC_IS_DCE6 (rdev)) +atombios_powergate_crtc (crtc,ATOM_ENABLE );for (i =0 ; i < rdev->num_crtc; i++) { if (rdev->mode_info.crtcs[i] &&
drivers/gpu/drm/radeon/evergreen.c +13 -0
@@ -403,6 +403,19 @@ void evergreen_pm_misc(struct radeon_device *rdev) rdev->pm.current_vddc = voltage->voltage;DRM_DEBUG ("Setting: vddc: %d\n" , voltage->voltage); } + +/* starting with BTC, there is one state that is used for both +* MH and SH. Difference is that we always use the high clock index for +* mclk and vddci. +*/ +if ((rdev->pm.pm_method ==PM_METHOD_PROFILE ) && + (rdev->family >=CHIP_BARTS ) && + rdev->pm.active_crtc_count && + ((rdev->pm.profile_index ==PM_PROFILE_MID_MH_IDX ) || + (rdev->pm.profile_index ==PM_PROFILE_LOW_MH_IDX ))) + voltage = &rdev->pm.power_state[req_ps_idx]. + clock_info[rdev->pm.profiles[PM_PROFILE_HIGH_MH_IDX ].dpms_on_cm_idx].voltage; +/* 0xff01 is a flag rather then an actual voltage */ if (voltage->vddci ==0xff01 )return ;
drivers/gpu/drm/radeon/r600_hdmi.c +0 -1
@@ -544,7 +544,6 @@ void r600_hdmi_disable(struct drm_encoder *encoder)/* Called for ATOM_ENCODER_MODE_HDMI only */ if (!dig || !dig->afmt) { -WARN_ON (1 );return ; }if (!dig->afmt->enabled)
drivers/gpu/drm/radeon/radeon_atpx_handler.c +71 -2
94 lines not on this page · raw message
drivers/gpu/drm/radeon/radeon_pm.c +1 -1
@@ -169,7 +169,7 @@ static void radeon_set_power_state(struct radeon_device *rdev)/* starting with BTC, there is one state that is used for both * MH and SH. Difference is that we always use the high clock index for -* mclk. +* mclk and vddci. */ if ((rdev->pm.pm_method == PM_METHOD_PROFILE) && (rdev->family >= CHIP_BARTS) &&
drivers/gpu/drm/udl/udl_drv.h +2 -0
@@ -75,6 +75,8 @@ struct udl_framebuffer {struct drm_framebuffer base;struct udl_gem_object *obj;bool active_16;/* active on the 16-bit channel */ +int x1, y1, x2, y2;/* dirty rect */ +spinlock_t dirty_lock; };#define to_udl_fb (x) container_of(x, struct udl_framebuffer, base)
drivers/gpu/drm/udl/udl_fb.c +42 -6
90 lines not on this page · raw message
drivers/gpu/vga/vga_switcheroo.c +3 -0
@@ -25,6 +25,7 @@#include <linux/fb.h> #include <linux/pci.h> +#include <linux/console.h> #include <linux/vga_switcheroo.h> #include <linux/vgaarb.h>
@@ -337,8 +338,10 @@ static int vga_switchto_stage2(struct vga_switcheroo_client *new_client)if (new_client->fb_info) {struct fb_event event; +console_lock (); event.info = new_client->fb_info;fb_notifier_call_chain (FB_EVENT_REMAP_ALL_CONSOLE , &event); +console_unlock (); } ret = vgasr_priv.handler->switchto (new_client->id);
drivers/hid/hid-wiimote-ext.c +4 -4
@@ -403,14 +403,14 @@ static void handler_nunchuck(struct wiimote_ext *ext, const __u8 *payload)if (ext->motionp) {input_report_key (ext->input, - wiiext_keymap[WIIEXT_KEY_Z ], !!(payload[5 ] &0x04 )); + wiiext_keymap[WIIEXT_KEY_Z ], !(payload[5 ] &0x04 ));input_report_key (ext->input, - wiiext_keymap[WIIEXT_KEY_C ], !!(payload[5 ] &0x08 )); + wiiext_keymap[WIIEXT_KEY_C ], !(payload[5 ] &0x08 )); }else {input_report_key (ext->input, - wiiext_keymap[WIIEXT_KEY_Z ], !!(payload[5 ] &0x01 )); + wiiext_keymap[WIIEXT_KEY_Z ], !(payload[5 ] &0x01 ));input_report_key (ext->input, - wiiext_keymap[WIIEXT_KEY_C ], !!(payload[5 ] &0x02 )); + wiiext_keymap[WIIEXT_KEY_C ], !(payload[5 ] &0x02 )); }input_sync (ext->input);
drivers/iommu/intel-iommu.c +7 -1
@@ -4253,13 +4253,19 @@ static void quirk_iommu_rwbf(struct pci_dev *dev) {/* * Mobile 4 Series Chipset neglects to set RWBF capability, -* but needs it: +* but needs it. Same seems to hold for the desktop versions. */ printk (KERN_INFO "DMAR: Forcing write-buffer flush capability\n" ); rwbf_quirk =1 ; }DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2a40 , quirk_iommu_rwbf); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e00 , quirk_iommu_rwbf); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e10 , quirk_iommu_rwbf); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e20 , quirk_iommu_rwbf); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e30 , quirk_iommu_rwbf); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e40 , quirk_iommu_rwbf); +DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL ,0x2e90 , quirk_iommu_rwbf);#define GGC 0x52#define GGC_MEMORY_SIZE_MASK (0xf << 8)
drivers/mmc/core/mmc.c +1 -1
@@ -496,7 +496,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)* RPMB regions are defined in multiples of 128K. */ card->ext_csd.raw_rpmb_size_mult = ext_csd[EXT_CSD_RPMB_MULT ]; -if (ext_csd[EXT_CSD_RPMB_MULT ]) { +if (ext_csd[EXT_CSD_RPMB_MULT ] &&mmc_host_cmd23 (card->host)) { mmc_part_add(card, ext_csd[EXT_CSD_RPMB_MULT] << 17, EXT_CSD_PART_CONFIG_ACC_RPMB, "rpmb", 0, false,
drivers/mmc/host/sdhci-esdhc-imx.c +11 -8
@@ -237,15 +237,18 @@ static void esdhc_writel_le(struct sdhci_host *host, u32 val, int reg)static u16 esdhc_readw_le (struct sdhci_host *host,int reg) { +struct sdhci_pltfm_host *pltfm_host =sdhci_priv (host); +struct pltfm_imx_data *imx_data = pltfm_host->priv; +if (unlikely (reg ==SDHCI_HOST_VERSION )) { -u16 val =readw (host->ioaddr + (reg ^2 )); -/* -* uSDHC supports SDHCI v3.0, but it's encoded as value -* 0x3 in host controller version register, which violates -* SDHCI_SPEC_300 definition. Work it around here. -*/ -if ((val &SDHCI_SPEC_VER_MASK ) ==3 ) -return --val; + reg ^=2 ; +if (is_imx6q_usdhc (imx_data)) { +/* +* The usdhc register returns a wrong host version. +* Correct it here. +*/ +return SDHCI_SPEC_300 ; + } }return readw (host->ioaddr + reg);
drivers/net/ethernet/mellanox/mlx4/en_netdev.c +2 -2
@@ -1434,7 +1434,7 @@ int mlx4_en_alloc_resources(struct mlx4_en_priv *priv) }#ifdef CONFIG_RFS_ACCEL - priv->dev->rx_cpu_rmap =alloc_irq_cpu_rmap (priv->rx_ring_num); + priv->dev->rx_cpu_rmap =alloc_irq_cpu_rmap (priv->mdev->dev->caps.comp_pool);if (!priv->dev->rx_cpu_rmap) goto err;
@@ -1597,7 +1597,7 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, err = -ENOMEM ; goto out; } - priv->tx_cq =kzalloc (sizeof (struct mlx4_en_cq ) *MAX_RX_RINGS , + priv->tx_cq =kzalloc (sizeof (struct mlx4_en_cq ) *MAX_TX_RINGS ,GFP_KERNEL );if (!priv->tx_cq) { err = -ENOMEM ;
drivers/net/ppp/ppp_generic.c +8 -0
@@ -1058,7 +1058,15 @@ ppp_get_stats64(struct net_device *dev, struct rtnl_link_stats64 *stats64)return stats64; } +static struct lock_class_key ppp_tx_busylock; +static int ppp_dev_init (struct net_device *dev) +{ + dev->qdisc_tx_busylock = &ppp_tx_busylock; +return 0 ; +} +static const struct net_device_ops ppp_netdev_ops = { + .ndo_init = ppp_dev_init, .ndo_start_xmit = ppp_start_xmit, .ndo_do_ioctl = ppp_net_ioctl, .ndo_get_stats64 = ppp_get_stats64,
drivers/net/usb/cdc_ncm.c +8 -3
@@ -576,9 +576,14 @@ static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf)if ((intf->num_altsetting ==2 ) && !usb_set_interface (dev->udev, intf->cur_altsetting->desc.bInterfaceNumber, -CDC_NCM_COMM_ALTSETTING_MBIM ) && -cdc_ncm_comm_intf_is_mbim (intf->cur_altsetting)) -return -ENODEV ; +CDC_NCM_COMM_ALTSETTING_MBIM )) { +if (cdc_ncm_comm_intf_is_mbim (intf->cur_altsetting)) +return -ENODEV ; +else +usb_set_interface (dev->udev, + intf->cur_altsetting->desc.bInterfaceNumber, +CDC_NCM_COMM_ALTSETTING_NCM ); + }#endif /* NCM data altsetting is always 1 */
drivers/net/wireless/b43/dma.h +1 -1
@@ -169,7 +169,7 @@ struct b43_dmadesc_generic {/* DMA engine tuning knobs */ #define B43_TXRING_SLOTS 256 -#define B43_RXRING_SLOTS 64 +#define B43_RXRING_SLOTS 256#define B43_DMA0_RX_FW598_BUFSIZE (B43_DMA0_RX_FW598_FO + IEEE80211_MAX_FRAME_LEN)#define B43_DMA0_RX_FW351_BUFSIZE (B43_DMA0_RX_FW351_FO + IEEE80211_MAX_FRAME_LEN)
drivers/net/wireless/p54/p54usb.c +1 -1
@@ -84,8 +84,8 @@ static struct usb_device_id p54u_table[] = { {USB_DEVICE(0x06b9, 0x0121)}, /* Thomson SpeedTouch 121g */ {USB_DEVICE(0x0707, 0xee13)}, /* SMC 2862W-G version 2 */ {USB_DEVICE(0x0803, 0x4310)}, /* Zoom 4410a */ - {USB_DEVICE(0x083a, 0x4503)}, /* T-Com Sinus 154 data II */ {USB_DEVICE(0x083a, 0x4521)}, /* Siemens Gigaset USB Adapter 54 version 2 */ + {USB_DEVICE(0x083a, 0x4531)}, /* T-Com Sinus 154 data II */ {USB_DEVICE(0x083a, 0xc501)}, /* Zoom Wireless-G 4410 */ {USB_DEVICE(0x083a, 0xf503)}, /* Accton FD7050E ver 1010ec */ {USB_DEVICE(0x0846, 0x4240)}, /* Netgear WG111 (v2) */
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +8 -1
@@ -285,6 +285,7 @@ static struct usb_device_id rtl8192c_usb_ids[] = { {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x817f, rtl92cu_hal_cfg)},/* RTL8188CUS-VL */ {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x818a, rtl92cu_hal_cfg)}, + {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x819a, rtl92cu_hal_cfg)},/* 8188 Combo for BC4 */ {RTL_USB_DEVICE(USB_VENDER_ID_REALTEK, 0x8754, rtl92cu_hal_cfg)},
@@ -363,9 +364,15 @@ static struct usb_device_id rtl8192c_usb_ids[] = {MODULE_DEVICE_TABLE (usb, rtl8192c_usb_ids); +static int rtl8192cu_probe (struct usb_interface *intf, +const struct usb_device_id *id) +{ +return rtl_usb_probe (intf, id, &rtl92cu_hal_cfg); +} +static struct usb_driver rtl8192cu_driver = { .name ="rtl8192cu" , - .probe = rtl_usb_probe, + .probe = rtl8192cu_probe, .disconnect = rtl_usb_disconnect, .id_table = rtl8192c_usb_ids,
drivers/net/wireless/rtlwifi/usb.c +31 -18
92 lines not on this page · raw message
drivers/net/wireless/rtlwifi/usb.h +2 -1
@@ -157,7 +157,8 @@ struct rtl_usb_priv {int rtl_usb_probe (struct usb_interface *intf, -const struct usb_device_id *id); +const struct usb_device_id *id, +struct rtl_hal_cfg *rtl92cu_hal_cfg);void rtl_usb_disconnect (struct usb_interface *intf);int rtl_usb_suspend (struct usb_interface *pusb_intf,pm_message_t message);int rtl_usb_resume (struct usb_interface *pusb_intf);
drivers/net/xen-netback/interface.c +1 -2
@@ -132,6 +132,7 @@ static void xenvif_up(struct xenvif *vif)static void xenvif_down (struct xenvif *vif) {disable_irq (vif->irq); +del_timer_sync (&vif->credit_timeout);xen_netbk_deschedule_xenvif (vif);xen_netbk_remove_xenvif (vif); }
@@ -363,8 +364,6 @@ void xenvif_disconnect(struct xenvif *vif)atomic_dec (&vif->refcnt);wait_event (vif->waiting_to_free,atomic_read (&vif->refcnt) ==0 ); -del_timer_sync (&vif->credit_timeout); -if (vif->irq)unbind_from_irqhandler (vif->irq, vif);
drivers/net/xen-netback/netback.c +4 -4
@@ -911,13 +911,13 @@ static int netbk_count_requests(struct xenvif *vif,if (frags >= work_to_do) {netdev_err (vif->dev,"Need more frags\n" );netbk_fatal_tx_err (vif); -return -frags; +return -ENODATA ; }if (unlikely (frags >=MAX_SKB_FRAGS )) {netdev_err (vif->dev,"Too many frags\n" );netbk_fatal_tx_err (vif); -return -frags; +return -E2BIG ; } memcpy(txp, RING_GET_REQUEST(&vif->tx, cons + frags),
@@ -925,7 +925,7 @@ static int netbk_count_requests(struct xenvif *vif,if (txp->size > first->size) {netdev_err (vif->dev,"Frag is bigger than frame.\n" );netbk_fatal_tx_err (vif); -return -frags; +return -EIO ; } first->size -= txp->size;
@@ -935,7 +935,7 @@ static int netbk_count_requests(struct xenvif *vif,netdev_err (vif->dev,"txp->offset: %x, size: %u\n" , txp->offset, txp->size);netbk_fatal_tx_err (vif); -return -frags; +return -EINVAL ; } }while ((txp++)->flags & XEN_NETTXF_more_data);return frags;
drivers/pci/access.c +1 -1
@@ -515,7 +515,7 @@ static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos)return false;switch (pos) { -case PCI_EXP_FLAGS_TYPE : +case PCI_EXP_FLAGS :return true;case PCI_EXP_DEVCAP :case PCI_EXP_DEVCTL :
drivers/pcmcia/vrc4171_card.c +1 -0
@@ -246,6 +246,7 @@ static int pccard_init(struct pcmcia_socket *sock) socket = &vrc4171_sockets[slot]; socket->csc_irq =search_nonuse_irq (); socket->io_irq =search_nonuse_irq (); +spin_lock_init (&socket->lock);return 0 ; }
drivers/pps/clients/pps-ldisc.c +4 -6
@@ -31,7 +31,7 @@static void pps_tty_dcd_change (struct tty_struct *tty,unsigned int status,struct pps_event_time *ts) { -struct pps_device *pps = (struct pps_device *)tty->disc_data; +struct pps_device *pps =pps_lookup_dev (tty);BUG_ON (pps ==NULL );
@@ -67,9 +67,9 @@ static int pps_tty_open(struct tty_struct *tty)pr_err ("cannot register PPS source \"%s\"\n" , info.path);return -ENOMEM ; } - tty->disc_data = pps; + pps->lookup_cookie = tty; -/* Should open N_TTY ldisc too */ +/* Now open the base class N_TTY ldisc */ ret =alias_n_tty_open (tty);if (ret <0 ) {pr_err ("cannot open tty ldisc \"%s\"\n" , info.path);
@@ -81,7 +81,6 @@ static int pps_tty_open(struct tty_struct *tty)return 0 ; err_unregister: - tty->disc_data =NULL ;pps_unregister_source (pps);return ret; }
@@ -90,11 +89,10 @@ static void (*alias_n_tty_close)(struct tty_struct *tty);static void pps_tty_close (struct tty_struct *tty) { -struct pps_device *pps = (struct pps_device *)tty->disc_data; +struct pps_device *pps =pps_lookup_dev (tty);alias_n_tty_close (tty); - tty->disc_data =NULL ;dev_info (pps->dev,"removed\n" );pps_unregister_source (pps); }
drivers/pps/pps.c +43 -4
80 lines not on this page · raw message
drivers/s390/kvm/kvm_virtio.c +30 -8
@@ -422,6 +422,26 @@ static void kvm_extint_handler(struct ext_code ext_code, }/* +* For s390-virtio, we expect a page above main storage containing +* the virtio configuration. Try to actually load from this area +* in order to figure out if the host provides this page. +*/ +static int __init test_devices_support (unsigned long addr) +{ +int ret = -EIO ; + + asmvolatile ( +"0: lura 0,%1\n" +"1: xgr %0,%0\n" +"2:\n" + EX_TABLE(0b,2b) +EX_TABLE (1b ,2b ) + : "+d" (ret) + : "a" (addr) + : "0", "cc"); + return ret; +} +/* * Init function for virtio * devices are in a single page above top of "normal" mem */
@@ -432,21 +452,23 @@ static int __init kvm_devices_init(void)if (!MACHINE_IS_KVM )return -ENODEV ; +if (test_devices_support (real_memory_size) <0 ) +return -ENODEV ; + + rc =vmem_add_mapping (real_memory_size,PAGE_SIZE ); +if (rc) +return rc; + + kvm_devices = (void *) real_memory_size; + kvm_root =root_device_register ("kvm_s390" );if (IS_ERR (kvm_root)) { rc =PTR_ERR (kvm_root);printk (KERN_ERR "Could not register kvm_s390 root device" ); +vmem_remove_mapping (real_memory_size,PAGE_SIZE );return rc; } - rc =vmem_add_mapping (real_memory_size,PAGE_SIZE ); -if (rc) { -root_device_unregister (kvm_root); -return rc; - } - - kvm_devices = (void *) real_memory_size; -INIT_WORK (&hotplug_work, hotplug_devices);service_subclass_irq_register ();
drivers/staging/comedi/comedi_fops.c +5 -0
@@ -1547,6 +1547,11 @@ static long comedi_unlocked_ioctl(struct file *file, unsigned int cmd,/* Device config is special, because it must work on * an unconfigured device. */ if (cmd ==COMEDI_DEVCONFIG ) { +if (minor >=COMEDI_NUM_BOARD_MINORS ) { +/* Device config not appropriate on non-board minors. */ + rc = -ENOTTY ; + goto done; + } rc =do_devconfig_ioctl (dev, (struct comedi_devconfig __user *)arg);if (rc ==0 )
drivers/staging/comedi/drivers/ni_labpc.c +18 -16
@@ -1202,7 +1202,8 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)else channel =CR_CHAN (cmd->chanlist[0 ]);/* munge channel bits for differential / scan disabled mode */ -if (mode !=MODE_SINGLE_CHAN && aref ==AREF_DIFF ) +if ((mode ==MODE_SINGLE_CHAN || mode ==MODE_SINGLE_CHAN_INTERVAL ) && + aref ==AREF_DIFF ) channel *=2 ; devpriv->command1_bits |=ADC_CHAN_BITS (channel); devpriv->command1_bits |= thisboard->ai_range_code[range];
@@ -1217,21 +1218,6 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) devpriv->write_byte (devpriv->command1_bits, dev->iobase +COMMAND1_REG ); } -/* setup any external triggering/pacing (command4 register) */ - devpriv->command4_bits =0 ; -if (cmd->convert_src !=TRIG_EXT ) - devpriv->command4_bits |=EXT_CONVERT_DISABLE_BIT ; -/* XXX should discard first scan when using interval scanning -* since manual says it is not synced with scan clock */ -if (labpc_use_continuous_mode (cmd, mode) ==0 ) { - devpriv->command4_bits |=INTERVAL_SCAN_EN_BIT ; -if (cmd->scan_begin_src ==TRIG_EXT ) - devpriv->command4_bits |=EXT_SCAN_EN_BIT ; - } -/* single-ended/differential */ -if (aref ==AREF_DIFF ) - devpriv->command4_bits |=ADC_DIFF_BIT ; - devpriv->write_byte (devpriv->command4_bits, dev->iobase +COMMAND4_REG ); devpriv->write_byte (cmd->chanlist_len, dev->iobase +INTERVAL_COUNT_REG );
@@ -1311,6 +1297,22 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) devpriv->command3_bits &= ~ADC_FNE_INTR_EN_BIT ; devpriv->write_byte (devpriv->command3_bits, dev->iobase +COMMAND3_REG ); +/* setup any external triggering/pacing (command4 register) */ + devpriv->command4_bits =0 ; +if (cmd->convert_src !=TRIG_EXT ) + devpriv->command4_bits |=EXT_CONVERT_DISABLE_BIT ; +/* XXX should discard first scan when using interval scanning +* since manual says it is not synced with scan clock */ +if (labpc_use_continuous_mode (cmd, mode) ==0 ) { + devpriv->command4_bits |=INTERVAL_SCAN_EN_BIT ; +if (cmd->scan_begin_src ==TRIG_EXT ) + devpriv->command4_bits |=EXT_SCAN_EN_BIT ; + } +/* single-ended/differential */ +if (aref ==AREF_DIFF ) + devpriv->command4_bits |=ADC_DIFF_BIT ; + devpriv->write_byte (devpriv->command4_bits, dev->iobase +COMMAND4_REG ); +/* startup acquisition */ /* command2 reg */
drivers/staging/vt6656/dpc.c +2 -2
@@ -1190,7 +1190,7 @@ static BOOL s_bHandleRxEncryption (if (byDecMode ==KEY_CTL_WEP ) {// handle WEP if ((pDevice->byLocalID <=REV_ID_VT3253_A1 ) || - (((PSKeyTable)(&pKey->pvKeyTable))->bSoftWEP == TRUE)) { + (((PSKeyTable)(pKey->pvKeyTable))->bSoftWEP == TRUE)) {// Software WEP // 1. 3253A // 2. WEP 256
@@ -1299,7 +1299,7 @@ static BOOL s_bHostWepRxEncryption (// handle WEP DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "byDecMode == KEY_CTL_WEP\n" );if ((pDevice->byLocalID <=REV_ID_VT3253_A1 ) || - (((PSKeyTable)(&pKey->pvKeyTable))->bSoftWEP == TRUE) || + (((PSKeyTable)(pKey->pvKeyTable))->bSoftWEP == TRUE) || (bOnFly == FALSE)) {// Software WEP // 1. 3253A
drivers/staging/vt6656/rxtx.c +1 -1
@@ -1454,7 +1454,7 @@ s_bPacketToWirelessUsb( pvRrvTime = pMICHDR = pvRTS = pvCTS = pvTxDataHd =NULL ;if (bNeedEncryption && pTransmitKey->pvKeyTable) { -if (((PSKeyTable)&pTransmitKey->pvKeyTable)->bSoftWEP == TRUE) +if (((PSKeyTable )pTransmitKey->pvKeyTable)->bSoftWEP == TRUE) bSoftWEP = TRUE;/* WEP 256 */ }
drivers/staging/vt6656/usbpipe.c +20 -8
@@ -165,6 +165,11 @@ int PIPEnsControlOut(if (pDevice->Flags & fMP_CONTROL_WRITES)return STATUS_FAILURE ; +if (pDevice->Flags & fMP_CONTROL_READS) +return STATUS_FAILURE ; + +MP_SET_FLAG (pDevice, fMP_CONTROL_WRITES); + pDevice->sUsbCtlRequest.bRequestType =0x40 ; pDevice->sUsbCtlRequest.bRequest = byRequest; pDevice->sUsbCtlRequest.wValue =cpu_to_le16p (&wValue);
@@ -179,12 +184,13 @@ int PIPEnsControlOut( ntStatus =usb_submit_urb (pDevice->pControlURB,GFP_ATOMIC );if (ntStatus !=0 ) { -DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "control send request submission failed: %d\n" , ntStatus); +DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO +"control send request submission failed: %d\n" , + ntStatus); +MP_CLEAR_FLAG (pDevice, fMP_CONTROL_WRITES);return STATUS_FAILURE ; } -else { -MP_SET_FLAG (pDevice, fMP_CONTROL_WRITES); - } +spin_unlock_irq (&pDevice->lock);for (ii =0 ; ii <=USB_CTL_WAIT ; ii ++) {
@@ -224,6 +230,11 @@ int PIPEnsControlIn(if (pDevice->Flags & fMP_CONTROL_READS)return STATUS_FAILURE ; +if (pDevice->Flags & fMP_CONTROL_WRITES) +return STATUS_FAILURE ; + +MP_SET_FLAG (pDevice, fMP_CONTROL_READS); + pDevice->sUsbCtlRequest.bRequestType =0xC0 ; pDevice->sUsbCtlRequest.bRequest = byRequest; pDevice->sUsbCtlRequest.wValue =cpu_to_le16p (&wValue);
@@ -237,10 +248,11 @@ int PIPEnsControlIn( ntStatus =usb_submit_urb (pDevice->pControlURB,GFP_ATOMIC );if (ntStatus !=0 ) { -DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO "control request submission failed: %d\n" , ntStatus); - }else { -MP_SET_FLAG (pDevice, fMP_CONTROL_READS); - } +DBG_PRT (MSG_LEVEL_DEBUG ,KERN_INFO +"control request submission failed: %d\n" , ntStatus); +MP_CLEAR_FLAG (pDevice, fMP_CONTROL_READS); +return STATUS_FAILURE ; + }spin_unlock_irq (&pDevice->lock);for (ii =0 ; ii <=USB_CTL_WAIT ; ii ++) {
drivers/staging/zram/zram_drv.c +5 -4
@@ -228,11 +228,12 @@ static int zram_bvec_read(struct zram *zram, struct bio_vec *bvec,return 0 ; } - user_mem =kmap_atomic (page);if (is_partial_io (bvec))/* Use a temporary buffer to decompress the page */ - uncmem =kmalloc (PAGE_SIZE ,GFP_KERNEL ); -else + uncmem =kmalloc (PAGE_SIZE ,GFP_NOIO ); + + user_mem =kmap_atomic (page); +if (!is_partial_io (bvec)) uncmem = user_mem;if (!uncmem) {
@@ -279,7 +280,7 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,* This is a partial IO. We need to read the full page * before to write the changes. */ - uncmem =kmalloc (PAGE_SIZE ,GFP_KERNEL ); + uncmem =kmalloc (PAGE_SIZE ,GFP_NOIO );if (!uncmem) {pr_info ("Error allocating temp memory!\n" ); ret = -ENOMEM ;
drivers/staging/zsmalloc/zsmalloc-main.c +4 -6
@@ -222,11 +222,9 @@ struct zs_pool {/* * By default, zsmalloc uses a copy-based object mapping method to access * allocations that span two pages. However, if a particular architecture -* 1) Implements local_flush_tlb_kernel_range() and 2) Performs VM mapping -* faster than copying, then it should be added here so that -* USE_PGTABLE_MAPPING is defined. This causes zsmalloc to use page table -* mapping rather than copying -* for object mapping. +* performs VM mapping faster than copying, then it should be added here +* so that USE_PGTABLE_MAPPING is defined. This causes zsmalloc to use +* page table mapping rather than copying for object mapping. */ #if defined(CONFIG_ARM )#define USE_PGTABLE_MAPPING
@@ -663,7 +661,7 @@ static inline void __zs_unmap_object(struct mapping_area *area,flush_cache_vunmap (addr, end);unmap_kernel_range_noflush (addr,PAGE_SIZE *2 ); - local_flush_tlb_kernel_range(addr, end); + flush_tlb_kernel_range(addr, end); }#else /* USE_PGTABLE_MAPPING */
drivers/tty/n_gsm.c +41 -1
137 lines not on this page · raw message
drivers/tty/serial/imx.c +9 -2
@@ -1213,8 +1213,14 @@ imx_console_write(struct console *co, const char *s, unsigned int count)struct imx_port_ucrs old_ucr;unsigned int ucr1;unsigned long flags; +int locked =1 ; -spin_lock_irqsave (&sport->port.lock, flags); +if (sport->port.sysrq) + locked =0 ; +else if (oops_in_progress) + locked =spin_trylock_irqsave (&sport->port.lock, flags); +else +spin_lock_irqsave (&sport->port.lock, flags);/* * First, save UCR1/2/3 and then disable interrupts
@@ -1241,7 +1247,8 @@ imx_console_write(struct console *co, const char *s, unsigned int count)imx_port_ucrs_restore (&sport->port, &old_ucr); -spin_unlock_irqrestore (&sport->port.lock, flags); +if (locked) +spin_unlock_irqrestore (&sport->port.lock, flags); }/*
drivers/tty/tty_ioctl.c +2 -2
@@ -617,7 +617,7 @@ static int set_termios(struct tty_struct *tty, void __user *arg, int opt)if (opt &TERMIOS_WAIT ) {tty_wait_until_sent (tty,0 );if (signal_pending (current)) -return -EINTR ; +return -ERESTARTSYS ; }tty_set_termios (tty, &tmp_termios);
@@ -684,7 +684,7 @@ static int set_termiox(struct tty_struct *tty, void __user *arg, int opt)if (opt &TERMIOS_WAIT ) {tty_wait_until_sent (tty,0 );if (signal_pending (current)) -return -EINTR ; +return -ERESTARTSYS ; }mutex_lock (&tty->termios_mutex);
drivers/tty/vt/vt.c +99 -39
171 lines not on this page · raw message
drivers/video/console/fbcon.c +48 -10
58 lines not on this page · raw message
drivers/video/fsl-diu-fb.c +36 -28
64 lines not on this page · raw message
fs/nfs/callback_proc.c +8 -53
61 lines not on this page · raw message
fs/nfs/pnfs.c +130 -20
150 lines not on this page · raw message
mm/mmu_notifier.c +42 -40
82 lines not on this page · raw message
sound/pci/hda/hda_codec.c +21 -22
43 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.