Skip to contentSkip to conversation

Linux 2.6.39.1

DISCUSSION Greg KH 6 participants 14 messages Jun 3, 2011 – Jun 16, 2011 2 messages not in the archive

Subsystems (89)
lore
Share & tools
lore

Greg KH

author
#0 lore raw

I'm announcing the release of the 2.6.39.1 kernel.

All users of the 2.6.39 kernel series must upgrade.

The updated 2.6.39.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=summary

thanks,

greg k-h

------------

 Documentation/i2c/writing-clients              |    2 
 Documentation/usb/linux-cdc-acm.inf            |    4 
 Documentation/usb/linux.inf                    |    6 
 Makefile                                       |    4 
 arch/arm/mm/cache-v6.S                         |    1 
 arch/arm/mm/cache-v7.S                         |    2 
 arch/m68k/kernel/syscalltable.S                |    4 
 arch/parisc/include/asm/unistd.h               |   10 +
 arch/parisc/kernel/sys_parisc32.c              |    8 +
 arch/parisc/kernel/syscall_table.S             |    6 
 arch/powerpc/kernel/crash.c                    |    2 
 arch/powerpc/kernel/misc_64.S                  |   13 +
 arch/powerpc/oprofile/op_model_power4.c        |   24 +++
 arch/sh/kernel/cpu/Makefile                    |    4 
 arch/um/Kconfig.x86                            |    4 
 arch/x86/include/asm/cpufeature.h              |    2 
 arch/x86/include/asm/uaccess.h                 |    2 
 arch/x86/kernel/apic/io_apic.c                 |    4 
 arch/x86/kernel/cpu/amd.c                      |   16 +-
 arch/x86/kernel/cpu/common.c                   |    3 
 arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c      |    4 
 arch/x86/kernel/setup.c                        |    7 +
 arch/x86/lib/copy_user_64.S                    |    4 
 arch/x86/oprofile/op_model_amd.c               |   95 +++++++------
 arch/x86/platform/efi/efi.c                    |   45 ++++++
 arch/x86/platform/efi/efi_64.c                 |    5 
 arch/x86/xen/mmu.c                             |    2 
 arch/x86/xen/p2m.c                             |   30 ++++
 arch/x86/xen/setup.c                           |    6 
 block/blk-flush.c                              |   16 +-
 block/blk-settings.c                           |    9 +
 block/blk-sysfs.c                              |    3 
 block/blk.h                                    |   24 +++
 block/genhd.c                                  |    2 
 drivers/ata/libata-scsi.c                      |   15 +-
 drivers/ata/pata_cmd64x.c                      |   42 +++++-
 drivers/block/brd.c                            |   11 +
 drivers/block/loop.c                           |   11 +
 drivers/block/paride/pcd.c                     |    1 
 drivers/cdrom/viocd.c                          |    3 
 drivers/char/i8k.c                             |    4 
 drivers/cpufreq/cpufreq.c                      |   20 ++
 drivers/cpufreq/cpufreq_stats.c                |   21 ++-
 drivers/cpuidle/governors/menu.c               |    4 
 drivers/gpu/drm/i915/intel_ringbuffer.c        |   29 +++-
 drivers/gpu/drm/radeon/evergreen.c             |    6 
 drivers/gpu/drm/radeon/evergreend.h            |    2 
 drivers/gpu/drm/radeon/ni.c                    |    8 -
 drivers/gpu/drm/radeon/nid.h                   |    2 
 drivers/gpu/drm/radeon/radeon_asic.c           |    4 
 drivers/hid/hid-magicmouse.c                   |   10 +
 drivers/hwmon/pmbus_core.c                     |    1 
 drivers/i2c/busses/i2c-tegra.c                 |    5 
 drivers/ide/ide-cd.c                           |    3 
 drivers/md/bitmap.c                            |   10 -
 drivers/md/dm-mpath.c                          |    2 
 drivers/md/dm-table.c                          |   17 ++
 drivers/md/md.c                                |   11 +
 drivers/media/dvb/frontends/dib0070.c          |   40 ++++-
 drivers/media/dvb/frontends/dib0090.c          |   71 +++++++---
 drivers/media/dvb/frontends/dib7000m.c         |   49 ++++---
 drivers/media/dvb/frontends/dib7000p.c         |   72 +++++++---
 drivers/media/dvb/frontends/dib8000.c          |  126 +++++++++++++-----
 drivers/media/dvb/frontends/dib9000.c          |  172 ++++++++++++++++---------
 drivers/media/dvb/frontends/dibx000_common.c   |  109 +++++++++------
 drivers/media/dvb/frontends/dibx000_common.h   |    5 
 drivers/media/video/cx88/cx88-blackbird.c      |    5 
 drivers/media/video/cx88/cx88-dvb.c            |    2 
 drivers/media/video/cx88/cx88-mpeg.c           |   20 +-
 drivers/media/video/cx88/cx88.h                |    7 -
 drivers/mfd/omap-usb-host.c                    |   27 ++-
 drivers/mtd/mtdconcat.c                        |    4 
 drivers/mtd/nand/nand_base.c                   |    2 
 drivers/mtd/nand/omap2.c                       |   12 -
 drivers/net/bonding/bond_alb.c                 |    4 
 drivers/net/bonding/bond_main.c                |   16 +-
 drivers/net/bonding/bond_sysfs.c               |    6 
 drivers/net/macvlan.c                          |    4 
 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c |   14 +-
 drivers/net/wireless/ath/ath9k/calib.c         |   13 +
 drivers/net/wireless/iwlwifi/iwl-core.c        |   10 +
 drivers/net/wireless/iwlwifi/iwl-dev.h         |   19 +-
 drivers/net/wireless/p54/p54usb.c              |    1 
 drivers/pci/quirks.c                           |   10 +
 drivers/scsi/bnx2i/bnx2i_hwi.c                 |    1 
 drivers/scsi/bnx2i/bnx2i_init.c                |    2 
 drivers/scsi/bnx2i/bnx2i_iscsi.c               |    5 
 drivers/scsi/mpt2sas/mpt2sas_scsih.c           |   94 +++++++++----
 drivers/scsi/qla2xxx/qla_attr.c                |    5 
 drivers/scsi/qla2xxx/qla_fw.h                  |    3 
 drivers/scsi/qla2xxx/qla_nx.c                  |    4 
 drivers/scsi/qla2xxx/qla_os.c                  |   32 ++--
 drivers/scsi/sr.c                              |    2 
 drivers/scsi/ultrastor.c                       |    2 
 drivers/sh/clk/cpg.c                           |    2 
 drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c |   13 -
 drivers/staging/rtl8712/rtl871x_ioctl_set.c    |    5 
 drivers/staging/usbip/usbip_common.c           |    2 
 drivers/target/target_core_device.c            |    4 
 drivers/target/target_core_tmr.c               |    7 -
 drivers/target/target_core_transport.c         |   46 ++++--
 drivers/usb/class/cdc-acm.c                    |   13 +
 drivers/usb/class/cdc-acm.h                    |    1 
 drivers/usb/core/hcd.c                         |    5 
 drivers/usb/gadget/at91_udc.c                  |    2 
 drivers/usb/gadget/f_rndis.c                   |    3 
 drivers/usb/host/ehci-hcd.c                    |    4 
 drivers/usb/host/ehci-sched.c                  |    8 -
 drivers/usb/host/isp116x-hcd.c                 |    1 
 drivers/usb/host/ohci-hcd.c                    |    4 
 drivers/usb/host/ohci-pci.c                    |   12 +
 drivers/usb/host/oxu210hp-hcd.c                |    6 
 drivers/usb/host/xhci-mem.c                    |   11 -
 drivers/usb/host/xhci-ring.c                   |   18 +-
 drivers/usb/host/xhci.c                        |   11 +
 drivers/usb/serial/cp210x.c                    |    4 
 drivers/usb/serial/ftdi_sio.c                  |    1 
 drivers/usb/serial/ftdi_sio_ids.h              |    5 
 drivers/usb/serial/garmin_gps.c                |   20 +-
 drivers/usb/serial/moto_modem.c                |    1 
 drivers/usb/serial/option.c                    |   10 +
 drivers/usb/storage/unusual_realtek.h          |   10 -
 fs/block_dev.c                                 |   34 ++--
 fs/cifs/connect.c                              |   31 +++-
 fs/ecryptfs/inode.c                            |    2 
 fs/ecryptfs/keystore.c                         |   46 +++---
 fs/ext3/namei.c                                |   13 +
 fs/ext4/ext4.h                                 |    4 
 fs/ext4/mballoc.c                              |    2 
 fs/ext4/page-io.c                              |   39 +----
 fs/ext4/super.c                                |   41 +----
 fs/jbd/commit.c                                |    9 +
 fs/jbd/journal.c                               |   16 +-
 fs/namei.c                                     |    2 
 fs/nfs/nfs4proc.c                              |    9 +
 fs/nfs/nfs4state.c                             |    6 
 fs/nfs/pnfs.c                                  |    2 
 fs/partitions/ldm.c                            |    5 
 fs/ubifs/sb.c                                  |    3 
 fs/ubifs/super.c                               |    1 
 include/linux/blkdev.h                         |   15 +-
 include/linux/efi.h                            |    1 
 include/linux/genhd.h                          |    1 
 include/linux/pci_ids.h                        |    2 
 include/linux/pm_qos_params.h                  |    4 
 include/linux/seqlock.h                        |    4 
 include/net/dst.h                              |    2 
 include/target/target_core_base.h              |    1 
 include/target/target_core_transport.h         |    1 
 init/main.c                                    |    2 
 kernel/pm_qos_params.c                         |   37 +++--
 kernel/trace/ftrace.c                          |   12 +
 lib/locking-selftest.c                         |    2 
 mm/kmemleak.c                                  |    7 -
 mm/page_alloc.c                                |    2 
 mm/shmem.c                                     |    5 
 mm/slub.c                                      |   14 +-
 mm/vmscan.c                                    |   11 +
 net/atm/atm_sysfs.c                            |   10 +
 net/bridge/br_netfilter.c                      |    6 
 net/core/dev.c                                 |    4 
 net/core/dst.c                                 |    2 
 net/core/ethtool.c                             |    2 
 net/core/skbuff.c                              |    3 
 net/ipv4/igmp.c                                |   10 -
 net/mac80211/cfg.c                             |   12 +
 net/mac80211/mlme.c                            |    2 
 net/netfilter/nf_conntrack_sip.c               |   16 +-
 net/sched/sch_sfq.c                            |   22 +--
 net/sctp/associola.c                           |   16 ++
 net/sctp/bind_addr.c                           |   10 -
 net/socket.c                                   |    6 
 net/sunrpc/xprtsock.c                          |   16 +-
 net/wireless/nl80211.c                         |    8 -
 security/apparmor/lsm.c                        |    3 
 security/keys/process_keys.c                   |    1 
 sound/pci/hda/hda_intel.c                      |    9 +
 sound/pci/hda/patch_analog.c                   |    3 
 sound/pci/hda/patch_conexant.c                 |    1 
 sound/pci/hda/patch_sigmatel.c                 |    2 
 sound/soc/codecs/wm_hubs.c                     |   24 ++-
 sound/soc/pxa/raumfeld.c                       |   92 ++++++++-----
 182 files changed, 1700 insertions(+), 782 deletions(-)

Adrian Wilkins (1):
ALSA: hda - Fix input-src parse in patch_analog.c

Alan Stern (3):
usb-storage: fix up the unusual_realtek device list
OHCI: fix regression caused by nVidia shutdown workaround
USB: remove remaining usages of hcd->state from usbcore and fix regression

Alex Deucher (1):
drm/radeon/evergreen/btc/fusion: setup hdp to invalidate and flush when asked

Andrew Barry (1):
mm/page_alloc.c: prevent unending loop in __alloc_pages_slowpath()

Andrew Vasquez (1):
qla2xxx: Properly set the dsd_list_len for dsd_chaining in cmd type 6.

Anton Blanchard (1):
net: recvmmsg: Strip MSG_WAITFORONE when calling recvmsg

Artem Bityutskiy (2):
mtd: return badblockbits back
UBIFS: fix a rare memory leak in ro to rw remounting path

Arun Easi (2):
qla2xxx: Fix hang during driver unload when vport is active.
qla2xxx: Fix vport delete hang when logins are outstanding.

Benedek László (1):
USB: serial: ftdi_sio: adding support for TavIR STK500

Boqun Feng (1):
drm/i915: fix user irq miss in BSD ring on g4x

Boris Ostrovsky (1):

      x86, amd: Do not enable ARAT feature on AMD processors below family 0x12

Catalin Marinas (2):
kmemleak: Do not return a pointer to an object that kmemleak did not get
kmemleak: Initialise kmemleak after debug_objects_mem_init()

Christian Lamparter (1):

      p54usb: add zoom 4410 usbid

Christoph Lameter (1):
slub: Make CONFIG_DEBUG_PAGE_ALLOC work with new fastpath

Craig Shelley (1):

      USB: CP210x Add 4 Device IDs for AC-Services Devices

Curt Wohlgemuth (1):
ext4: don't set PageUptodate in ext4_end_bio()

Dan Williams (1):
atm: expose ATM device index in sysfs

Daniel J Blueman (1):
x86, ioapic: Fix potential resume deadlock

Daniel Kiper (1):
xen/setup: Fix for incorrect xen_extra_mem_start initialization under 32-bit

Daniel Mack (1):
ASoC: fix raumfeld platform

Dave Airlie (4):
drm/radeon/cayman: setup hdp to invalidate and flush when asked drm/radeon/kms: fix incorrect comparison in cayman setup code. drm/radeon/kms: fix tile_config value reported to userspace on cayman. drm/radeon/kms: add wait idle ioctl for eg->cayman

David Chang (1):
staging: usbip: fix wrong endian conversion

David Henningsson (2):
ALSA: HDA: Use one dmic only for Dell Studio 1558
ALSA: HDA: Add quirk for Lenovo U350

Eddie Wai (2):
bnx2i: Fixed packet error created when the sq_size is set to 16
bnx2i: Updated the connection shutdown/cleanup timeout

Elizabeth Jennifer Myers (1):
USB: moto_modem: Add USB identifier for the Motorola VE240.

Erez Zadok (1):

      VFS: move BUG_ON test for symlink nd->depth after current->link_count test

Eric B Munson (1):
powerpc/oprofile: Handle events that raise an exception without overflowing

Eric Dumazet (7):
net: use hlist_del_rcu() in dev_change_name()
net: add skb_dst_force() in sock_queue_err_skb()
macvlan: fix panic if lowerdev in a bond
bridge: initialize fake_rtable metrics
sch_sfq: fix peek() implementation
sch_sfq: avoid giving spurious NET_XMIT_CN signals
net: fix __dst_destroy_metrics_generic()

Erik Slagter (1):
USB: cdc_acm: Fix oops when Droids MuIn LCD is connected

Felipe Balbi (1):

      usb: gadget: rndis: don't test against req->length

Felix Radensky (1):
mtd: mtdconcat: fix NAND OOB write

Fenghua Yu (1):
x86, cpufeature: Fix cpuid leaf 7 feature detection

Frederic Weisbecker (1):
rcu: Fix unpaired rcu_irq_enter() from locking selftests

Geert Uytterhoeven (1):
m68k: Really wire up sys_pselect6 and sys_ppoll

Greg Kroah-Hartman (1):

      Linux 2.6.39.1

Guenter Roeck (1):
hwmon: (pmbus) Initialize sysfs attributes

Hemant Pedanekar (1):
PCI: Add quirk for setting valid class for TI816X Endpoint

Hermann Kneissel (1):
USB: gamin_gps: Fix for data transfer problems in native mode

Hugh Dickins (2):
tmpfs: fix highmem swapoff crash regression
tmpfs: fix race between truncate and writepage

Jacek Luczak (1):
SCTP: fix race between sctp_bind_addr_free() and sctp_bind_addr_conflict()

Jacob Shin (1):
CPU hotplug, re-create sysfs directory and symlinks

James Bottomley (6):
block: add proper state guards to __elv_next_request wire up fanotify syscalls
wire up clock_adjtime syscall
wire up the fhandle syscalls
wire up syncfs syscall
pata_cm64x: fix boot crash on parisc

Jan Kara (2):
ext3: Fix fs corruption when make_indexed_dir() fails
jbd: Fix forever sleeping process in do_get_write_access()

Jean-Christophe PLAGNIOL-VILLARD (1):
usb/gadget: at91sam9g20 fix end point max packet size

Jeff Chua (1):
staging: r8712u: Fix driver to support ad-hoc mode

Jiri Kosina (1):
HID: magicmouse: ignore 'ivalid report id' while switching modes

Jiri Olsa (1):
x86, 64-bit: Fix copy_[to/from]_user() checks for the userspace address limit

Johannes Berg (3):
iwlagn: fix iwl_is_any_associated
iwlwifi: fix bugs in change_interface
mac80211: fix a few RCU issues

Johannes Weiner (1):
mm: vmscan: correct use of pgdat_balanced in sleeping_prematurely

Jonathan Nieder (3):
cx88: protect per-device driver list with device lock
cx88: fix locking of sub-driver operations
cx88: hold device lock during sub-driver initialization

Jouni Malinen (1):
nl80211: Fix set_key regression with some drivers

Kashyap, Desai (1):
mpt2sas: move even handling of MPT2SAS_TURN_ON_FAULT_LED into process context

Kees Cook (2):
x86, cpufeature: Update CPU feature RDRND to RDRAND
AppArmor: fix oops in apparmor_setprocattr

Kenneth Waters (1):
i2c: tegra: Enable new slave mode.

Keshava Munegowda (1):
mfd: Fix omap usbhs crash when rmmoding ehci or ohci

Kevin Cernekee (1):
kbuild: Fix GNU make v3.80 compatibility

Kishore Kadiyala (1):
mtd: omap: fix subpage ecc issue with prefetch

Konrad Rzeszutek Wilk (2):
xen/p2m: Create entries in the P2M_MFN trees's to track 1-1 mappings xen/setup: Ignore E820_UNUSABLE when setting 1-1 mappings.

Kuninori Morimoto (2):
sh: clkfwk: fixup clk_rate_table_build parameter in div6 clock
sh: fixup fpu.o compile order

Luca Tettamanti (1):
i8k: Avoid lahf in 64-bit code

Luis R. Rodriguez (2):
ath9k_hw: fix power for the HT40 duplicate frames
ath9k_hw: fix dual band assumption for XB113

Lukas Czerner (2):
ext4: fix possible use-after-free in ext4_remove_li_request()
ext4: Use schedule_timeout_interruptible() for waiting in lazyinit thread

Marcin Gałczyński (1):
USB: option: add support for Huawei E353 device

Marius B. Kotsbak (1):
Bind only modem AT command endpoint to option module.

Mark Brown (2):
ASoC: Ensure output PGA is enabled for line outputs in wm_hubs
ASoC: Add some missing volume update bit sets for wm_hubs devices

Martin K. Petersen (3):
block: Fix discard topology stacking and reporting
libata: Use Maximum Write Same Length to report discard size limit dm mpath: do not fail paths after integrity errors

Matthew Garrett (1):
x86, efi: Retain boot service code until after switching to virtual mode

Michael S. Tsirkin (1):
net: Change netdev_fix_features messages loglevel

Michal Nazarewicz (1):
USB: gadget: g_multi: fixed vendor and product ID in inf files

Michał Mirosław (1):
net: ethtool: fix IPV6 checksum feature name string

Milan Broz (1):
dm table: reject devices without request fns

Milton Miller (3):
powerpc/kdump64: Don't reference freed memory as pacas powerpc/kexec: Fix memory corruption from unallocated slaves
seqlock: Don't smp_rmb in seqlock reader spin loop

Minchan Kim (1):
mm: vmscan: correctly check if reclaimer should schedule during shrink_slab

Naga Chumbalkar (1):
Fix _OSC UUID in pcc-cpufreq

Namhyung Kim (4):
loop: limit 'max_part' module param to DISK_MAX_PARTS
loop: handle on-demand devices correctly
brd: limit 'max_part' module param to DISK_MAX_PARTS
brd: handle on-demand devices correctly

Neil Horman (1):
bonding: prevent deadlock on slave store with alb mode (v3)

NeilBrown (2):
md: Fix race when creating a new md device. md/bitmap: fix saving of events_cleared and other state.

Nicholas Bellinger (4):
target: Fix multi task->task_sg[] chaining logic bug
target: Fix interrupt context bug with stats_lock and core_tmr_alloc_req
target: Fix bug with task_sg chained transport_free_dev_tasks release
target: Fix task->task_execute_queue=1 clear bug + LUN_RESET OOPs

Olivier Grenie (1):
DiBxxxx: get rid of DMA buffer on stack

Patrick McHardy (2):
netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
netfilter: nf_ct_sip: fix SDP parsing in TCP SIP messages for some Cisco phones

Rajkumar Manoharan (2):
ath9k_hw: do noise floor calibration only on required chains
mac80211: use wake_queue to restart trasmit

Richard Weinberger (1):
um: Use RWSEM_GENERIC_SPINLOCK on x86

Robert Richter (1):
oprofile, x86: Enable preemption during pci device setup in IBS init

Roedel, Joerg (1):
x86, amd: Use _safe() msr access for GartTlbWlk disable code

Roland Vossen (1):
staging: brcm80211: bugfix for div by zero in minstrel_ht_tx_status

Samuel Thibault (1):
Fix Ultrastor asm snippet

Sarah Sharp (4):
xhci: Fix bug in control transfer cancellation.
xhci: Fix full speed bInterval encoding.
xhci: Fix memory leak in ring cache deallocation.
xhci: Fix memory leak bug when dropping endpoints

Saurav Kashyap (1):
qla2xxx: Fix virtual port failing to login after chip reset.

Senthil Balasubramanian (1):
ath9k_hw: Fix STA connection issues with AR9380 (XB113).

Serge E. Hallyn (1):

      Set cred->user_ns in key_replace_session_keyring

Stephen Hemminger (1):
dst: catch uninitialized metrics

Steve French (1):
When mandatory encryption on share, fail mount

Steven Rostedt (1):
ftrace: Only update the function code on write to filter files

Takashi Iwai (1):
ALSA: hda - Use LPIB for ATI/AMD chipsets as default

Ted Ts'o (1):
jbd: fix fsync() tid wraparound bug

Tejun Heo (3):
block: move bd_set_size() above rescan_partitions() in __blkdev_get()
block: always allocate genhd->ev if check_events is implemented
block: don't block events on excl write for non-optical devices

Tero Kristo (1):
cpuidle: menu: fixed wrapping timers at 4.294 seconds

Tian, Kevin (1):
xen mmu: fix a race window causing leave_mm BUG()

Tim Chen (1):
idle governor: Avoid lock acquisition to read pm_qos before entering idle

Timo Warns (1):
Fix for buffer overflow in ldm_frag_add not sufficient

Trond Myklebust (3):
SUNRPC: Deal with the lack of a SYN_SENT sk->sk_state_change callback...
NFSv4: Handle expired stateids when the lease is still valid NFSv4.1: Fix the handling of NFS4ERR_SEQ_MISORDERED errors

Tyler Hicks (2):
eCryptfs: Clear i_nlink in rmdir
eCryptfs: Allow 2 scatterlist entries for encrypted filenames

Veaceslav Falico (1):
igmp: call ip_mc_clear_src() only when we have no users of ip_mc_list

Vikram Narayanan (1):
i2c/writing-clients: Fix foo_driver.id_table

Vitaliy Gusev (1):
nfs41: Correct offset for LAYOUTCOMMIT

Wei Yongjun (1):
sctp: fix memory leak of the ASCONF queue when free asoc

Will Deacon (1):
ARM: 6941/1: cache: ensure MVA is cacheline aligned in flush_kern_dcache_area

Yang Ruirui (1):
ext4: release page cache in ext4_mb_load_buddy error path

[email protected] (3):
block: add a non-queueable flush flag
block: hold queue if flush is running for non-queueable flush drive
SATA: enable non-queueable flush flag

steven finney (1):
Fix memory leak in cpufreq_stat

author
#1 lore raw
Documentation/i2c/writing-clients +1 -1
index 5ebf5af..5aa5337 100644
@@ -38,7 +38,7 @@ static struct i2c_driver foo_driver = {
 		.name	= "foo",
 	},
 
-	.id_table	= foo_ids,
+	.id_table	= foo_idtable,
 	.probe		= foo_probe,
 	.remove		= foo_remove,
 	/* if device autodetection is needed: */
Documentation/usb/linux-cdc-acm.inf +2 -2
index 612e722..37a02ce 100644
@@ -90,10 +90,10 @@ ServiceBinary=%12%\USBSER.sys
 [SourceDisksFiles]
 [SourceDisksNames]
 [DeviceList]
-%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_0525&PID_A4AB&MI_02
+%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_1D6B&PID_0104&MI_02
 
 [DeviceList.NTamd64]
-%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_0525&PID_A4AB&MI_02
+%DESCRIPTION%=DriverInstall, USB\VID_0525&PID_A4A7, USB\VID_1D6B&PID_0104&MI_02
 
 
 ;------------------------------------------------------------------------------
Documentation/usb/linux.inf +3 -3
index 4dee958..4ffa715b0 100644
@@ -18,15 +18,15 @@ DriverVer           = 06/21/2006,6.0.6000.16384
 
 ; Decoration for x86 architecture
 [LinuxDevices.NTx86]
-%LinuxDevice%       = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_0525&PID_a4ab&MI_00
+%LinuxDevice%       = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_1d6b&PID_0104&MI_00
 
 ; Decoration for x64 architecture
 [LinuxDevices.NTamd64]
-%LinuxDevice%       = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_0525&PID_a4ab&MI_00
+%LinuxDevice%       = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_1d6b&PID_0104&MI_00
 
 ; Decoration for ia64 architecture
 [LinuxDevices.NTia64]
-%LinuxDevice%       = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_0525&PID_a4ab&MI_00
+%LinuxDevice%       = RNDIS.NT.5.1, USB\VID_0525&PID_a4a2, USB\VID_1d6b&PID_0104&MI_00
 
 ;@@@ This is the common setting for setup
 [ControlFlags]
Makefile +2 -2
index 123d858..045b186 100644
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
 SUBLEVEL = 39
-EXTRAVERSION =
+EXTRAVERSION = .1
 NAME = Flesh-Eating Bats with Fangs
 
 # *DOCUMENTATION*
@@ -1374,7 +1374,7 @@ endif # KBUILD_EXTMOD
 clean: $(clean-dirs)
 	$(call cmd,rmdirs)
 	$(call cmd,rmfiles)
-	@find $(or $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
+	@find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
 		\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
 		-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
 		-o -name '*.symtypes' -o -name 'modules.order' \
arch/arm/mm/cache-v6.S +1 -0
index c96fa1b..73b4a8b 100644
@@ -176,6 +176,7 @@ ENDPROC(v6_coherent_kern_range)
  */
 ENTRY(v6_flush_kern_dcache_area)
 	add	r1, r0, r1
+	bic	r0, r0, #D_CACHE_LINE_SIZE - 1
 1:
 #ifdef HARVARD_CACHE
 	mcr	p15, 0, r0, c7, c14, 1		@ clean & invalidate D line
arch/arm/mm/cache-v7.S +2 -0
index dc18d81..d32f02b 100644
@@ -221,6 +221,8 @@ ENDPROC(v7_coherent_user_range)
 ENTRY(v7_flush_kern_dcache_area)
 	dcache_line_size r2, r3
 	add	r1, r0, r1
+	sub	r3, r2, #1
+	bic	r0, r0, r3
 1:
 	mcr	p15, 0, r0, c7, c14, 1		@ clean & invalidate D line / unified line
 	add	r0, r0, r2
arch/m68k/kernel/syscalltable.S +2 -2
index 9b8393d..c54cca87 100644
@@ -319,8 +319,8 @@ ENTRY(sys_call_table)
 	.long sys_readlinkat
 	.long sys_fchmodat
 	.long sys_faccessat		/* 300 */
-	.long sys_ni_syscall		/* Reserved for pselect6 */
-	.long sys_ni_syscall		/* Reserved for ppoll */
+	.long sys_pselect6
+	.long sys_ppoll
 	.long sys_unshare
 	.long sys_set_robust_list
 	.long sys_get_robust_list	/* 305 */
arch/parisc/include/asm/unistd.h +8 -2
index 3eb82c2..9cbc2c3 100644
@@ -814,8 +814,14 @@
 #define __NR_recvmmsg		(__NR_Linux + 319)
 #define __NR_accept4		(__NR_Linux + 320)
 #define __NR_prlimit64		(__NR_Linux + 321)
-
-#define __NR_Linux_syscalls	(__NR_prlimit64 + 1)
+#define __NR_fanotify_init	(__NR_Linux + 322)
+#define __NR_fanotify_mark	(__NR_Linux + 323)
+#define __NR_clock_adjtime	(__NR_Linux + 324)
+#define __NR_name_to_handle_at	(__NR_Linux + 325)
+#define __NR_open_by_handle_at	(__NR_Linux + 326)
+#define __NR_syncfs		(__NR_Linux + 327)
+
+#define __NR_Linux_syscalls	(__NR_syncfs + 1)
 
 
 #define __IGNORE_select		/* newselect */
arch/parisc/kernel/sys_parisc32.c +8 -0
index 88a0ad1..dc9a624 100644
@@ -228,3 +228,11 @@ asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
         return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo,
                              ((loff_t)lenhi << 32) | lenlo);
 }
+
+asmlinkage long compat_sys_fanotify_mark(int fan_fd, int flags, u32 mask_hi,
+					 u32 mask_lo, int fd,
+					 const char __user *pathname)
+{
+	return sys_fanotify_mark(fan_fd, flags, ((u64)mask_hi << 32) | mask_lo,
+				 fd, pathname);
+}
arch/parisc/kernel/syscall_table.S +6 -0
index 4be85ee..a5b02ce 100644
@@ -420,6 +420,12 @@
 	ENTRY_COMP(recvmmsg)
 	ENTRY_SAME(accept4)		/* 320 */
 	ENTRY_SAME(prlimit64)
+	ENTRY_SAME(fanotify_init)
+	ENTRY_COMP(fanotify_mark)
+	ENTRY_COMP(clock_adjtime)
+	ENTRY_SAME(name_to_handle_at)	/* 325 */
+	ENTRY_COMP(open_by_handle_at)
+	ENTRY_SAME(syncfs)
 
 	/* Nothing yet */
 
arch/powerpc/kernel/crash.c +1 -1
index 5b5e1f0..c37ff6b 100644
@@ -170,7 +170,7 @@ static void crash_kexec_wait_realmode(int cpu)
 	int i;
 
 	msecs = 10000;
-	for (i=0; i < NR_CPUS && msecs > 0; i++) {
+	for (i=0; i < nr_cpu_ids && msecs > 0; i++) {
 		if (i == cpu)
 			continue;
 
arch/powerpc/kernel/misc_64.S +8 -5
index 206a321..e89df59 100644
@@ -462,7 +462,8 @@ _GLOBAL(disable_kernel_fp)
  * wait for the flag to change, indicating this kernel is going away but
  * the slave code for the next one is at addresses 0 to 100.
  *
- * This is used by all slaves.
+ * This is used by all slaves, even those that did not find a matching
+ * paca in the secondary startup code.
  *
  * Physical (hardware) cpu id should be in r3.
  */
@@ -471,10 +472,6 @@ _GLOBAL(kexec_wait)
 1:	mflr	r5
 	addi	r5,r5,kexec_flag-1b
 
-	li	r4,KEXEC_STATE_REAL_MODE
-	stb	r4,PACAKEXECSTATE(r13)
-	SYNC
-
 99:	HMT_LOW
 #ifdef CONFIG_KEXEC		/* use no memory without kexec */
 	lwz	r4,0(r5)
@@ -499,11 +496,17 @@ kexec_flag:
  *
  * get phys id from paca
  * switch to real mode
+ * mark the paca as no longer used
  * join other cpus in kexec_wait(phys_id)
  */
 _GLOBAL(kexec_smp_wait)
 	lhz	r3,PACAHWCPUID(r13)
 	bl	real_mode
+
+	li	r4,KEXEC_STATE_REAL_MODE
+	stb	r4,PACAKEXECSTATE(r13)
+	SYNC
+
 	b	.kexec_wait
 
 /*
arch/powerpc/oprofile/op_model_power4.c +23 -1
index 8ee51a2..e6bec74 100644
@@ -261,6 +261,28 @@ static int get_kernel(unsigned long pc, unsigned long mmcra)
 	return is_kernel;
 }
 
+static bool pmc_overflow(unsigned long val)
+{
+	if ((int)val < 0)
+		return true;
+
+	/*
+	 * Events on POWER7 can roll back if a speculative event doesn't
+	 * eventually complete. Unfortunately in some rare cases they will
+	 * raise a performance monitor exception. We need to catch this to
+	 * ensure we reset the PMC. In all cases the PMC will be 256 or less
+	 * cycles from overflow.
+	 *
+	 * We only do this if the first pass fails to find any overflowing
+	 * PMCs because a user might set a period of less than 256 and we
+	 * don't want to mistakenly reset them.
+	 */
+	if (__is_processor(PV_POWER7) && ((0x80000000 - val) <= 256))
+		return true;
+
+	return false;
+}
+
 static void power4_handle_interrupt(struct pt_regs *regs,
 				    struct op_counter_config *ctr)
 {
@@ -281,7 +303,7 @@ static void power4_handle_interrupt(struct pt_regs *regs,
 
 	for (i = 0; i < cur_cpu_spec->num_pmcs; ++i) {
 		val = classic_ctr_read(i);
-		if (val < 0) {
+		if (pmc_overflow(val)) {
 			if (oprofile_running && ctr[i].enabled) {
 				oprofile_add_ext_sample(pc, regs, i, is_kernel);
 				classic_ctr_write(i, reset_value[i]);
arch/sh/kernel/cpu/Makefile +1 -3
index d49c213..ae95935 100644
@@ -17,7 +17,5 @@ obj-$(CONFIG_ARCH_SHMOBILE)	+= shmobile/
 
 obj-$(CONFIG_SH_ADC)		+= adc.o
 obj-$(CONFIG_SH_CLK_CPG_LEGACY)	+= clock-cpg.o
-obj-$(CONFIG_SH_FPU)		+= fpu.o
-obj-$(CONFIG_SH_FPU_EMU)	+= fpu.o
 
-obj-y	+= irq/ init.o clock.o hwblk.o proc.o
+obj-y	+= irq/ init.o clock.o fpu.o hwblk.o proc.o
arch/um/Kconfig.x86 +2 -2
index a9da516..795ea8e 100644
@@ -29,10 +29,10 @@ config X86_64
 	def_bool 64BIT
 
 config RWSEM_XCHGADD_ALGORITHM
-	def_bool X86_XADD
+	def_bool X86_XADD && 64BIT
 
 config RWSEM_GENERIC_SPINLOCK
-	def_bool !X86_XADD
+	def_bool !RWSEM_XCHGADD_ALGORITHM
 
 config 3_LEVEL_PGTABLES
 	bool "Three-level pagetables (EXPERIMENTAL)" if !64BIT
arch/x86/include/asm/cpufeature.h +1 -1
index 91f3e087..cc5b052 100644
@@ -125,7 +125,7 @@
 #define X86_FEATURE_OSXSAVE	(4*32+27) /* "" XSAVE enabled in the OS */
 #define X86_FEATURE_AVX		(4*32+28) /* Advanced Vector Extensions */
 #define X86_FEATURE_F16C	(4*32+29) /* 16-bit fp conversions */
-#define X86_FEATURE_RDRND	(4*32+30) /* The RDRAND instruction */
+#define X86_FEATURE_RDRAND	(4*32+30) /* The RDRAND instruction */
 #define X86_FEATURE_HYPERVISOR	(4*32+31) /* Running on a hypervisor */
 
 /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */
arch/x86/include/asm/uaccess.h +1 -1
index abd3e0e..99f0ad7 100644
@@ -42,7 +42,7 @@
  * Returns 0 if the range is valid, nonzero otherwise.
  *
  * This is equivalent to the following test:
- * (u33)addr + (u33)size >= (u33)current->addr_limit.seg (u65 for x86_64)
+ * (u33)addr + (u33)size > (u33)current->addr_limit.seg (u65 for x86_64)
  *
  * This needs 33-bit (65-bit for x86_64) arithmetic. We have a carry...
  */
arch/x86/kernel/apic/io_apic.c +2 -2
index 45fd33d..df63620 100644
@@ -621,14 +621,14 @@ struct IO_APIC_route_entry **alloc_ioapic_entries(void)
 	struct IO_APIC_route_entry **ioapic_entries;
 
 	ioapic_entries = kzalloc(sizeof(*ioapic_entries) * nr_ioapics,
-				GFP_KERNEL);
+				GFP_ATOMIC);
 	if (!ioapic_entries)
 		return 0;
 
 	for (apic = 0; apic < nr_ioapics; apic++) {
 		ioapic_entries[apic] =
 			kzalloc(sizeof(struct IO_APIC_route_entry) *
-				nr_ioapic_registers[apic], GFP_KERNEL);
+				nr_ioapic_registers[apic], GFP_ATOMIC);
 		if (!ioapic_entries[apic])
 			goto nomem;
 	}
arch/x86/kernel/cpu/amd.c +11 -5
index 6f9d1f6..b13ed39 100644
@@ -612,8 +612,11 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
 	}
 #endif
 
-	/* As a rule processors have APIC timer running in deep C states */
-	if (c->x86 > 0xf && !cpu_has_amd_erratum(amd_erratum_400))
+	/*
+	 * Family 0x12 and above processors have APIC timer
+	 * running in deep C states.
+	 */
+	if (c->x86 > 0x11)
 		set_cpu_cap(c, X86_FEATURE_ARAT);
 
 	/*
@@ -629,10 +632,13 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)
 		 * Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=33012
 		 */
 		u64 mask;
+		int err;
 
-		rdmsrl(MSR_AMD64_MCx_MASK(4), mask);
-		mask |= (1 << 10);
-		wrmsrl(MSR_AMD64_MCx_MASK(4), mask);
+		err = rdmsrl_safe(MSR_AMD64_MCx_MASK(4), &mask);
+		if (err == 0) {
+			mask |= (1 << 10);
+			checking_wrmsrl(MSR_AMD64_MCx_MASK(4), mask);
+		}
 	}
 }
 
arch/x86/kernel/cpu/common.c +1 -2
index e2ced00..173f3a3 100644
@@ -565,8 +565,7 @@ void __cpuinit get_cpu_cap(struct cpuinfo_x86 *c)
 
 		cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx);
 
-		if (eax > 0)
-			c->x86_capability[9] = ebx;
+		c->x86_capability[9] = ebx;
 	}
 
 	/* AMD-defined flags: level 0x80000001 */
arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c +2 -2
index 755a31e..907c8e6 100644
@@ -39,7 +39,7 @@
 
 #include <acpi/processor.h>
 
-#define PCC_VERSION 	"1.00.00"
+#define PCC_VERSION	"1.10.00"
 #define POLL_LOOPS 	300
 
 #define CMD_COMPLETE 	0x1
@@ -102,7 +102,7 @@ static struct acpi_generic_address doorbell;
 static u64 doorbell_preserve;
 static u64 doorbell_write;
 
-static u8 OSC_UUID[16] = {0x63, 0x9B, 0x2C, 0x9F, 0x70, 0x91, 0x49, 0x1f,
+static u8 OSC_UUID[16] = {0x9F, 0x2C, 0x9B, 0x63, 0x91, 0x70, 0x1f, 0x49,
 			  0xBB, 0x4F, 0xA5, 0x98, 0x2F, 0xA1, 0xB5, 0x46};
 
 struct pcc_cpu {
arch/x86/kernel/setup.c +7 -0
index 4be9b39..c6724e4 100644
@@ -912,6 +912,13 @@ void __init setup_arch(char **cmdline_p)
 	memblock.current_limit = get_max_mapped();
 	memblock_x86_fill();
 
+	/*
+	 * The EFI specification says that boot service code won't be called
+	 * after ExitBootServices(). This is, in fact, a lie.
+	 */
+	if (efi_enabled)
+		efi_reserve_boot_services();
+
 	/* preallocate 4k for mptable mpc */
 	early_reserve_e820_mpc_new();
 
arch/x86/lib/copy_user_64.S +2 -2
index 99e4826..a73397f 100644
@@ -72,7 +72,7 @@ ENTRY(_copy_to_user)
 	addq %rdx,%rcx
 	jc bad_to_user
 	cmpq TI_addr_limit(%rax),%rcx
-	jae bad_to_user
+	ja bad_to_user
 	ALTERNATIVE_JUMP X86_FEATURE_REP_GOOD,copy_user_generic_unrolled,copy_user_generic_string
 	CFI_ENDPROC
 ENDPROC(_copy_to_user)
@@ -85,7 +85,7 @@ ENTRY(_copy_from_user)
 	addq %rdx,%rcx
 	jc bad_from_user
 	cmpq TI_addr_limit(%rax),%rcx
-	jae bad_from_user
+	ja bad_from_user
 	ALTERNATIVE_JUMP X86_FEATURE_REP_GOOD,copy_user_generic_unrolled,copy_user_generic_string
 	CFI_ENDPROC
 ENDPROC(_copy_from_user)
arch/x86/oprofile/op_model_amd.c +54 -41

153 lines not on this page · raw message

arch/x86/platform/efi/efi.c +44 -1

63 lines not on this page · raw message

arch/x86/platform/efi/efi_64.c +3 -2
index ac0621a..641264c 100644
@@ -64,10 +64,11 @@ static void __init early_runtime_code_mapping_set_exec(int executable)
 	if (!(__supported_pte_mask & _PAGE_NX))
 		return;
 
-	/* Make EFI runtime service code area executable */
+	/* Make EFI service code area executable */
 	for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
 		md = p;
-		if (md->type == EFI_RUNTIME_SERVICES_CODE) {
+		if (md->type == EFI_RUNTIME_SERVICES_CODE ||
+		    md->type == EFI_BOOT_SERVICES_CODE) {
 			unsigned long end;
 			end = md->phys_addr + (md->num_pages << EFI_PAGE_SHIFT);
 			early_mapping_set_exec(md->phys_addr, end, executable);
arch/x86/xen/mmu.c +1 -1
index 0684f3c..f298bd7 100644
@@ -1187,7 +1187,7 @@ static void drop_other_mm_ref(void *info)
 
 	active_mm = percpu_read(cpu_tlbstate.active_mm);
 
-	if (active_mm == mm)
+	if (active_mm == mm && percpu_read(cpu_tlbstate.state) != TLBSTATE_OK)
 		leave_mm(smp_processor_id());
 
 	/* If this cpu still has a stale cr3 reference, then make sure
arch/x86/xen/p2m.c +28 -2
index 141eb0d..c881ae4 100644
@@ -522,11 +522,20 @@ static bool __init __early_alloc_p2m(unsigned long pfn)
 	/* Boundary cross-over for the edges: */
 	if (idx) {
 		unsigned long *p2m = extend_brk(PAGE_SIZE, PAGE_SIZE);
+		unsigned long *mid_mfn_p;
 
 		p2m_init(p2m);
 
 		p2m_top[topidx][mididx] = p2m;
 
+		/* For save/restore we need to MFN of the P2M saved */
+
+		mid_mfn_p = p2m_top_mfn_p[topidx];
+		WARN(mid_mfn_p[mididx] != virt_to_mfn(p2m_missing),
+			"P2M_TOP_P[%d][%d] != MFN of p2m_missing!\n",
+			topidx, mididx);
+		mid_mfn_p[mididx] = virt_to_mfn(p2m);
+
 	}
 	return idx != 0;
 }
@@ -549,12 +558,29 @@ unsigned long __init set_phys_range_identity(unsigned long pfn_s,
 		pfn += P2M_MID_PER_PAGE * P2M_PER_PAGE)
 	{
 		unsigned topidx = p2m_top_index(pfn);
-		if (p2m_top[topidx] == p2m_mid_missing) {
-			unsigned long **mid = extend_brk(PAGE_SIZE, PAGE_SIZE);
+		unsigned long *mid_mfn_p;
+		unsigned long **mid;
+
+		mid = p2m_top[topidx];
+		mid_mfn_p = p2m_top_mfn_p[topidx];
+		if (mid == p2m_mid_missing) {
+			mid = extend_brk(PAGE_SIZE, PAGE_SIZE);
 
 			p2m_mid_init(mid);
 
 			p2m_top[topidx] = mid;
+
+			BUG_ON(mid_mfn_p != p2m_mid_missing_mfn);
+		}
+		/* And the save/restore P2M tables.. */
+		if (mid_mfn_p == p2m_mid_missing_mfn) {
+			mid_mfn_p = extend_brk(PAGE_SIZE, PAGE_SIZE);
+			p2m_mid_mfn_init(mid_mfn_p);
+
+			p2m_top_mfn_p[topidx] = mid_mfn_p;
+			p2m_top_mfn[topidx] = virt_to_mfn(mid_mfn_p);
+			/* Note: we don't set mid_mfn_p[midix] here,
+		 	 * look in __early_alloc_p2m */
 		}
 	}
 
arch/x86/xen/setup.c +5 -1
index 90bac0a..ca6297b 100644
@@ -166,7 +166,7 @@ static unsigned long __init xen_set_identity(const struct e820entry *list,
 		if (last > end)
 			continue;
 
-		if (entry->type == E820_RAM) {
+		if ((entry->type == E820_RAM) || (entry->type == E820_UNUSABLE)) {
 			if (start > start_pci)
 				identity += set_phys_range_identity(
 						PFN_UP(start_pci), PFN_DOWN(start));
@@ -227,7 +227,11 @@ char * __init xen_memory_setup(void)
 
 	memcpy(map_raw, map, sizeof(map));
 	e820.nr_map = 0;
+#ifdef CONFIG_X86_32
+	xen_extra_mem_start = mem_end;
+#else
 	xen_extra_mem_start = max((1ULL << 32), mem_end);
+#endif
 	for (i = 0; i < memmap.nr_entries; i++) {
 		unsigned long long end;
 
block/blk-flush.c +11 -5
index 6c9b5e1..bb21e4c 100644
@@ -212,13 +212,19 @@ static void flush_end_io(struct request *flush_rq, int error)
 	}
 
 	/*
-	 * Moving a request silently to empty queue_head may stall the
-	 * queue.  Kick the queue in those cases.  This function is called
-	 * from request completion path and calling directly into
-	 * request_fn may confuse the driver.  Always use kblockd.
+	 * Kick the queue to avoid stall for two cases:
+	 * 1. Moving a request silently to empty queue_head may stall the
+	 * queue.
+	 * 2. When flush request is running in non-queueable queue, the
+	 * queue is hold. Restart the queue after flush request is finished
+	 * to avoid stall.
+	 * This function is called from request completion path and calling
+	 * directly into request_fn may confuse the driver.  Always use
+	 * kblockd.
 	 */
-	if (queued)
+	if (queued || q->flush_queue_delayed)
 		blk_run_queue_async(q);
+	q->flush_queue_delayed = 0;
 }
 
 /**
block/blk-settings.c +8 -1
index 1fa7692..fa1eb04 100644
@@ -120,7 +120,7 @@ void blk_set_default_limits(struct queue_limits *lim)
 	lim->discard_granularity = 0;
 	lim->discard_alignment = 0;
 	lim->discard_misaligned = 0;
-	lim->discard_zeroes_data = -1;
+	lim->discard_zeroes_data = 1;
 	lim->logical_block_size = lim->physical_block_size = lim->io_min = 512;
 	lim->bounce_pfn = (unsigned long)(BLK_BOUNCE_ANY >> PAGE_SHIFT);
 	lim->alignment_offset = 0;
@@ -166,6 +166,7 @@ void blk_queue_make_request(struct request_queue *q, make_request_fn *mfn)
 
 	blk_set_default_limits(&q->limits);
 	blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
+	q->limits.discard_zeroes_data = 0;
 
 	/*
 	 * by default assume old behaviour and bounce for any highmem page
@@ -790,6 +791,12 @@ void blk_queue_flush(struct request_queue *q, unsigned int flush)
 }
 EXPORT_SYMBOL_GPL(blk_queue_flush);
 
+void blk_queue_flush_queueable(struct request_queue *q, bool queueable)
+{
+	q->flush_not_queueable = !queueable;
+}
+EXPORT_SYMBOL_GPL(blk_queue_flush_queueable);
+
 static int __init blk_settings_init(void)
 {
 	blk_max_low_pfn = max_low_pfn - 1;
block/blk-sysfs.c +2 -1
index bd23631..d935bd8 100644
@@ -152,7 +152,8 @@ static ssize_t queue_discard_granularity_show(struct request_queue *q, char *pag
 
 static ssize_t queue_discard_max_show(struct request_queue *q, char *page)
 {
-	return queue_var_show(q->limits.max_discard_sectors << 9, page);
+	return sprintf(page, "%llu\n",
+		       (unsigned long long)q->limits.max_discard_sectors << 9);
 }
 
 static ssize_t queue_discard_zeroes_data_show(struct request_queue *q, char *page)
block/blk.h +22 -2
index 6126346..1566e8d 100644
@@ -61,8 +61,28 @@ static inline struct request *__elv_next_request(struct request_queue *q)
 			rq = list_entry_rq(q->queue_head.next);
 			return rq;
 		}
-
-		if (!q->elevator->ops->elevator_dispatch_fn(q, 0))
+		/*
+		 * Flush request is running and flush request isn't queueable
+		 * in the drive, we can hold the queue till flush request is
+		 * finished. Even we don't do this, driver can't dispatch next
+		 * requests and will requeue them. And this can improve
+		 * throughput too. For example, we have request flush1, write1,
+		 * flush 2. flush1 is dispatched, then queue is hold, write1
+		 * isn't inserted to queue. After flush1 is finished, flush2
+		 * will be dispatched. Since disk cache is already clean,
+		 * flush2 will be finished very soon, so looks like flush2 is
+		 * folded to flush1.
+		 * Since the queue is hold, a flag is set to indicate the queue
+		 * should be restarted later. Please see flush_end_io() for
+		 * details.
+		 */
+		if (q->flush_pending_idx != q->flush_running_idx &&
+				!queue_flush_queueable(q)) {
+			q->flush_queue_delayed = 1;
+			return NULL;
+		}
+		if (test_bit(QUEUE_FLAG_DEAD, &q->queue_flags) ||
+		    !q->elevator->ops->elevator_dispatch_fn(q, 0))
 			return NULL;
 	}
 }
block/genhd.c +1 -1
index 2dd9887..95822ae 100644
@@ -1728,7 +1728,7 @@ static void disk_add_events(struct gendisk *disk)
 {
 	struct disk_events *ev;
 
-	if (!disk->fops->check_events || !(disk->events | disk->async_events))
+	if (!disk->fops->check_events)
 		return;
 
 	ev = kzalloc(sizeof(*ev), GFP_KERNEL);
drivers/ata/libata-scsi.c +8 -7
index e2f57e9e..d51f979 100644
@@ -1089,21 +1089,21 @@ static int atapi_drain_needed(struct request *rq)
 static int ata_scsi_dev_config(struct scsi_device *sdev,
 			       struct ata_device *dev)
 {
+	struct request_queue *q = sdev->request_queue;
+
 	if (!ata_id_has_unload(dev->id))
 		dev->flags |= ATA_DFLAG_NO_UNLOAD;
 
 	/* configure max sectors */
-	blk_queue_max_hw_sectors(sdev->request_queue, dev->max_sectors);
+	blk_queue_max_hw_sectors(q, dev->max_sectors);
 
 	if (dev->class == ATA_DEV_ATAPI) {
-		struct request_queue *q = sdev->request_queue;
 		void *buf;
 
 		sdev->sector_size = ATA_SECT_SIZE;
 
 		/* set DMA padding */
-		blk_queue_update_dma_pad(sdev->request_queue,
-					 ATA_DMA_PAD_SZ - 1);
+		blk_queue_update_dma_pad(q, ATA_DMA_PAD_SZ - 1);
 
 		/* configure draining */
 		buf = kmalloc(ATAPI_MAX_DRAIN, q->bounce_gfp | GFP_KERNEL);
@@ -1131,8 +1131,7 @@ static int ata_scsi_dev_config(struct scsi_device *sdev,
 			"sector_size=%u > PAGE_SIZE, PIO may malfunction\n",
 			sdev->sector_size);
 
-	blk_queue_update_dma_alignment(sdev->request_queue,
-				       sdev->sector_size - 1);
+	blk_queue_update_dma_alignment(q, sdev->sector_size - 1);
 
 	if (dev->flags & ATA_DFLAG_AN)
 		set_bit(SDEV_EVT_MEDIA_CHANGE, sdev->supported_events);
@@ -1145,6 +1144,8 @@ static int ata_scsi_dev_config(struct scsi_device *sdev,
 		scsi_adjust_queue_depth(sdev, MSG_SIMPLE_TAG, depth);
 	}
 
+	blk_queue_flush_queueable(q, false);
+
 	dev->sdev = sdev;
 	return 0;
 }
@@ -2138,7 +2139,7 @@ static unsigned int ata_scsiop_inq_b0(struct ata_scsi_args *args, u8 *rbuf)
 	 * with the unmap bit set.
 	 */
 	if (ata_id_has_trim(args->id)) {
-		put_unaligned_be32(65535 * 512 / 8, &rbuf[20]);
+		put_unaligned_be64(65535 * 512 / 8, &rbuf[36]);
 		put_unaligned_be32(1, &rbuf[28]);
 	}
 
drivers/ata/pata_cmd64x.c +38 -4

70 lines not on this page · raw message

drivers/block/brd.c +7 -4
index b7f51e4..c94bc48 100644
@@ -552,7 +552,7 @@ static struct kobject *brd_probe(dev_t dev, int *part, void *data)
 	struct kobject *kobj;
 
 	mutex_lock(&brd_devices_mutex);
-	brd = brd_init_one(dev & MINORMASK);
+	brd = brd_init_one(MINOR(dev) >> part_shift);
 	kobj = brd ? get_disk(brd->brd_disk) : ERR_PTR(-ENOMEM);
 	mutex_unlock(&brd_devices_mutex);
 
@@ -585,15 +585,18 @@ static int __init brd_init(void)
 	if (max_part > 0)
 		part_shift = fls(max_part);
 
+	if ((1UL << part_shift) > DISK_MAX_PARTS)
+		return -EINVAL;
+
 	if (rd_nr > 1UL << (MINORBITS - part_shift))
 		return -EINVAL;
 
 	if (rd_nr) {
 		nr = rd_nr;
-		range = rd_nr;
+		range = rd_nr << part_shift;
 	} else {
 		nr = CONFIG_BLK_DEV_RAM_COUNT;
-		range = 1UL << (MINORBITS - part_shift);
+		range = 1UL << MINORBITS;
 	}
 
 	if (register_blkdev(RAMDISK_MAJOR, "ramdisk"))
@@ -632,7 +635,7 @@ static void __exit brd_exit(void)
 	unsigned long range;
 	struct brd_device *brd, *next;
 
-	range = rd_nr ? rd_nr :  1UL << (MINORBITS - part_shift);
+	range = rd_nr ? rd_nr << part_shift : 1UL << MINORBITS;
 
 	list_for_each_entry_safe(brd, next, &brd_devices, brd_list)
 		brd_del_one(brd);
drivers/block/loop.c +7 -4
index a076a14..c59a672 100644
@@ -1658,7 +1658,7 @@ static struct kobject *loop_probe(dev_t dev, int *part, void *data)
 	struct kobject *kobj;
 
 	mutex_lock(&loop_devices_mutex);
-	lo = loop_init_one(dev & MINORMASK);
+	lo = loop_init_one(MINOR(dev) >> part_shift);
 	kobj = lo ? get_disk(lo->lo_disk) : ERR_PTR(-ENOMEM);
 	mutex_unlock(&loop_devices_mutex);
 
@@ -1691,15 +1691,18 @@ static int __init loop_init(void)
 	if (max_part > 0)
 		part_shift = fls(max_part);
 
+	if ((1UL << part_shift) > DISK_MAX_PARTS)
+		return -EINVAL;
+
 	if (max_loop > 1UL << (MINORBITS - part_shift))
 		return -EINVAL;
 
 	if (max_loop) {
 		nr = max_loop;
-		range = max_loop;
+		range = max_loop << part_shift;
 	} else {
 		nr = 8;
-		range = 1UL << (MINORBITS - part_shift);
+		range = 1UL << MINORBITS;
 	}
 
 	if (register_blkdev(LOOP_MAJOR, "loop"))
@@ -1738,7 +1741,7 @@ static void __exit loop_exit(void)
 	unsigned long range;
 	struct loop_device *lo, *next;
 
-	range = max_loop ? max_loop :  1UL << (MINORBITS - part_shift);
+	range = max_loop ? max_loop << part_shift : 1UL << MINORBITS;
 
 	list_for_each_entry_safe(lo, next, &loop_devices, lo_list)
 		loop_del_one(lo);
drivers/block/paride/pcd.c +1 -0
index 8690e31..46b8136 100644
@@ -320,6 +320,7 @@ static void pcd_init_units(void)
 		disk->first_minor = unit;
 		strcpy(disk->disk_name, cd->name);	/* umm... */
 		disk->fops = &pcd_bdops;
+		disk->flags = GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE;
 	}
 }
 
drivers/cdrom/viocd.c +2 -1
index e427fbe..7878da8 100644
@@ -625,7 +625,8 @@ static int viocd_probe(struct vio_dev *vdev, const struct vio_device_id *id)
 	blk_queue_max_hw_sectors(q, 4096 / 512);
 	gendisk->queue = q;
 	gendisk->fops = &viocd_fops;
-	gendisk->flags = GENHD_FL_CD|GENHD_FL_REMOVABLE;
+	gendisk->flags = GENHD_FL_CD | GENHD_FL_REMOVABLE |
+			 GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE;
 	set_capacity(gendisk, 0);
 	gendisk->private_data = d;
 	d->viocd_disk = gendisk;
drivers/char/i8k.c +2 -2
index d72433f..ee01716 100644
@@ -139,8 +139,8 @@ static int i8k_smm(struct smm_regs *regs)
 		"movl %%edi,20(%%rax)\n\t"
 		"popq %%rdx\n\t"
 		"movl %%edx,0(%%rax)\n\t"
-		"lahf\n\t"
-		"shrl $8,%%eax\n\t"
+		"pushfq\n\t"
+		"popq %%rax\n\t"
 		"andl $1,%%eax\n"
 		:"=a"(rc)
 		:    "a"(regs)
drivers/cpufreq/cpufreq.c +18 -2
index 2dafc5c..7c10f96 100644
@@ -1208,12 +1208,28 @@ static int __cpufreq_remove_dev(struct sys_device *sys_dev)
 		cpufreq_driver->exit(data);
 	unlock_policy_rwsem_write(cpu);
 
+	cpufreq_debug_enable_ratelimit();
+
+#ifdef CONFIG_HOTPLUG_CPU
+	/* when the CPU which is the parent of the kobj is hotplugged
+	 * offline, check for siblings, and create cpufreq sysfs interface
+	 * and symlinks
+	 */
+	if (unlikely(cpumask_weight(data->cpus) > 1)) {
+		/* first sibling now owns the new sysfs dir */
+		cpumask_clear_cpu(cpu, data->cpus);
+		cpufreq_add_dev(get_cpu_sysdev(cpumask_first(data->cpus)));
+
+		/* finally remove our own symlink */
+		lock_policy_rwsem_write(cpu);
+		__cpufreq_remove_dev(sys_dev);
+	}
+#endif
+
 	free_cpumask_var(data->related_cpus);
 	free_cpumask_var(data->cpus);
 	kfree(data);
-	per_cpu(cpufreq_cpu_data, cpu) = NULL;
 
-	cpufreq_debug_enable_ratelimit();
 	return 0;
 }
 
drivers/cpufreq/cpufreq_stats.c +18 -3
index 00d73fc..4f1b8de 100644
@@ -165,17 +165,27 @@ static int freq_table_get_index(struct cpufreq_stats *stat, unsigned int freq)
 	return -1;
 }
 
+/* should be called late in the CPU removal sequence so that the stats
+ * memory is still available in case someone tries to use it.
+ */
 static void cpufreq_stats_free_table(unsigned int cpu)
 {
 	struct cpufreq_stats *stat = per_cpu(cpufreq_stats_table, cpu);
-	struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
-	if (policy && policy->cpu == cpu)
-		sysfs_remove_group(&policy->kobj, &stats_attr_group);
 	if (stat) {
 		kfree(stat->time_in_state);
 		kfree(stat);
 	}
 	per_cpu(cpufreq_stats_table, cpu) = NULL;
+}
+
+/* must be called early in the CPU removal sequence (before
+ * cpufreq_remove_dev) so that policy is still valid.
+ */
+static void cpufreq_stats_free_sysfs(unsigned int cpu)
+{
+	struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
+	if (policy && policy->cpu == cpu)
+		sysfs_remove_group(&policy->kobj, &stats_attr_group);
 	if (policy)
 		cpufreq_cpu_put(policy);
 }
@@ -316,6 +326,9 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,
 	case CPU_ONLINE_FROZEN:
 		cpufreq_update_policy(cpu);
 		break;
+	case CPU_DOWN_PREPARE:
+		cpufreq_stats_free_sysfs(cpu);
+		break;
 	case CPU_DEAD:
 	case CPU_DEAD_FROZEN:
 		cpufreq_stats_free_table(cpu);
@@ -324,9 +337,11 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,
 	return NOTIFY_OK;
 }
 
+/* priority=1 so this will get called before cpufreq_remove_dev */
 static struct notifier_block cpufreq_stat_cpu_notifier __refdata =
 {
 	.notifier_call = cpufreq_stat_cpu_callback,
+	.priority = 1,
 };
 
 static struct notifier_block notifier_policy_block = {
drivers/cpuidle/governors/menu.c +3 -1
index f508690..c47f3d0 100644
@@ -237,6 +237,7 @@ static int menu_select(struct cpuidle_device *dev)
 	unsigned int power_usage = -1;
 	int i;
 	int multiplier;
+	struct timespec t;
 
 	if (data->needs_update) {
 		menu_update(dev);
@@ -251,8 +252,9 @@ static int menu_select(struct cpuidle_device *dev)
 		return 0;
 
 	/* determine the expected residency time, round up */
+	t = ktime_to_timespec(tick_nohz_get_sleep_length());
 	data->expected_us =
-	    DIV_ROUND_UP((u32)ktime_to_ns(tick_nohz_get_sleep_length()), 1000);
+		t.tv_sec * USEC_PER_SEC + t.tv_nsec / NSEC_PER_USEC;
 
 
 	data->bucket = which_bucket(data->expected_us);
drivers/gpu/drm/i915/intel_ringbuffer.c +27 -2
index e9e6f71..c4504a2 100644
@@ -666,12 +666,37 @@ gen6_ring_put_irq(struct intel_ring_buffer *ring, u32 gflag, u32 rflag)
 static bool
 bsd_ring_get_irq(struct intel_ring_buffer *ring)
 {
-	return ring_get_irq(ring, GT_BSD_USER_INTERRUPT);
+	struct drm_device *dev = ring->dev;
+	drm_i915_private_t *dev_priv = dev->dev_private;
+
+	if (!dev->irq_enabled)
+		return false;
+
+	spin_lock(&ring->irq_lock);
+	if (ring->irq_refcount++ == 0) {
+		if (IS_G4X(dev))
+			i915_enable_irq(dev_priv, I915_BSD_USER_INTERRUPT);
+		else
+			ironlake_enable_irq(dev_priv, GT_BSD_USER_INTERRUPT);
+	}
+	spin_unlock(&ring->irq_lock);
+
+	return true;
 }
 static void
 bsd_ring_put_irq(struct intel_ring_buffer *ring)
 {
-	ring_put_irq(ring, GT_BSD_USER_INTERRUPT);
+	struct drm_device *dev = ring->dev;
+	drm_i915_private_t *dev_priv = dev->dev_private;
+
+	spin_lock(&ring->irq_lock);
+	if (--ring->irq_refcount == 0) {
+		if (IS_G4X(dev))
+			i915_disable_irq(dev_priv, I915_BSD_USER_INTERRUPT);
+		else
+			ironlake_disable_irq(dev_priv, GT_BSD_USER_INTERRUPT);
+	}
+	spin_unlock(&ring->irq_lock);
 }
 
 static int
drivers/gpu/drm/radeon/evergreen.c +5 -1
index 9073e3b..296e6ec 100644
@@ -1578,7 +1578,7 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
 	u32 sq_stack_resource_mgmt_2;
 	u32 sq_stack_resource_mgmt_3;
 	u32 vgt_cache_invalidation;
-	u32 hdp_host_path_cntl;
+	u32 hdp_host_path_cntl, tmp;
 	int i, j, num_shader_engines, ps_thread_count;
 
 	switch (rdev->family) {
@@ -2141,6 +2141,10 @@ static void evergreen_gpu_init(struct radeon_device *rdev)
 	for (i = SQ_ALU_CONST_BUFFER_SIZE_HS_0; i < 0x29000; i += 4)
 		WREG32(i, 0);
 
+	tmp = RREG32(HDP_MISC_CNTL);
+	tmp |= HDP_FLUSH_INVALIDATE_CACHE;
+	WREG32(HDP_MISC_CNTL, tmp);
+
 	hdp_host_path_cntl = RREG32(HDP_HOST_PATH_CNTL);
 	WREG32(HDP_HOST_PATH_CNTL, hdp_host_path_cntl);
 
drivers/gpu/drm/radeon/evergreend.h +2 -0
index fc40e0c..f37e91e 100644
@@ -64,6 +64,8 @@
 #define GB_BACKEND_MAP  				0x98FC
 #define DMIF_ADDR_CONFIG  				0xBD4
 #define HDP_ADDR_CONFIG  				0x2F48
+#define HDP_MISC_CNTL  					0x2F4C
+#define		HDP_FLUSH_INVALIDATE_CACHE      	(1 << 0)
 
 #define	CC_SYS_RB_BACKEND_DISABLE			0x3F88
 #define	GC_USER_RB_BACKEND_DISABLE			0x9B7C
drivers/gpu/drm/radeon/ni.c +6 -2
index 3d8a763..b205ba1 100644
@@ -417,7 +417,7 @@ static u32 cayman_get_tile_pipe_to_backend_map(struct radeon_device *rdev,
 		num_shader_engines = 1;
 	if (num_shader_engines > rdev->config.cayman.max_shader_engines)
 		num_shader_engines = rdev->config.cayman.max_shader_engines;
-	if (num_backends_per_asic > num_shader_engines)
+	if (num_backends_per_asic < num_shader_engines)
 		num_backends_per_asic = num_shader_engines;
 	if (num_backends_per_asic > (rdev->config.cayman.max_backends_per_se * num_shader_engines))
 		num_backends_per_asic = rdev->config.cayman.max_backends_per_se * num_shader_engines;
@@ -829,7 +829,7 @@ static void cayman_gpu_init(struct radeon_device *rdev)
 	rdev->config.cayman.tile_config |=
 		((mc_arb_ramcfg & NOOFBANK_MASK) >> NOOFBANK_SHIFT) << 4;
 	rdev->config.cayman.tile_config |=
-		(gb_addr_config & PIPE_INTERLEAVE_SIZE_MASK) >> PIPE_INTERLEAVE_SIZE_SHIFT;
+		((gb_addr_config & PIPE_INTERLEAVE_SIZE_MASK) >> PIPE_INTERLEAVE_SIZE_SHIFT) << 8;
 	rdev->config.cayman.tile_config |=
 		((gb_addr_config & ROW_SIZE_MASK) >> ROW_SIZE_SHIFT) << 12;
 
@@ -931,6 +931,10 @@ static void cayman_gpu_init(struct radeon_device *rdev)
 	WREG32(CB_PERF_CTR3_SEL_0, 0);
 	WREG32(CB_PERF_CTR3_SEL_1, 0);
 
+	tmp = RREG32(HDP_MISC_CNTL);
+	tmp |= HDP_FLUSH_INVALIDATE_CACHE;
+	WREG32(HDP_MISC_CNTL, tmp);
+
 	hdp_host_path_cntl = RREG32(HDP_HOST_PATH_CNTL);
 	WREG32(HDP_HOST_PATH_CNTL, hdp_host_path_cntl);
 
drivers/gpu/drm/radeon/nid.h +2 -0
index 0f9a08b..b2088c1 100644
@@ -136,6 +136,8 @@
 #define	HDP_NONSURFACE_INFO				0x2C08
 #define	HDP_NONSURFACE_SIZE				0x2C0C
 #define HDP_ADDR_CONFIG  				0x2F48
+#define HDP_MISC_CNTL					0x2F4C
+#define 	HDP_FLUSH_INVALIDATE_CACHE			(1 << 0)
 
 #define	CC_SYS_RB_BACKEND_DISABLE			0x3F88
 #define	GC_USER_SYS_RB_BACKEND_DISABLE			0x3F8C
drivers/gpu/drm/radeon/radeon_asic.c +4 -0
index ca57619..d948265 100644
@@ -782,6 +782,7 @@ static struct radeon_asic evergreen_asic = {
 	.hpd_fini = &evergreen_hpd_fini,
 	.hpd_sense = &evergreen_hpd_sense,
 	.hpd_set_polarity = &evergreen_hpd_set_polarity,
+	.ioctl_wait_idle = r600_ioctl_wait_idle,
 	.gui_idle = &r600_gui_idle,
 	.pm_misc = &evergreen_pm_misc,
 	.pm_prepare = &evergreen_pm_prepare,
@@ -828,6 +829,7 @@ static struct radeon_asic sumo_asic = {
 	.hpd_fini = &evergreen_hpd_fini,
 	.hpd_sense = &evergreen_hpd_sense,
 	.hpd_set_polarity = &evergreen_hpd_set_polarity,
+	.ioctl_wait_idle = r600_ioctl_wait_idle,
 	.gui_idle = &r600_gui_idle,
 	.pm_misc = &evergreen_pm_misc,
 	.pm_prepare = &evergreen_pm_prepare,
@@ -874,6 +876,7 @@ static struct radeon_asic btc_asic = {
 	.hpd_fini = &evergreen_hpd_fini,
 	.hpd_sense = &evergreen_hpd_sense,
 	.hpd_set_polarity = &evergreen_hpd_set_polarity,
+	.ioctl_wait_idle = r600_ioctl_wait_idle,
 	.gui_idle = &r600_gui_idle,
 	.pm_misc = &evergreen_pm_misc,
 	.pm_prepare = &evergreen_pm_prepare,
@@ -920,6 +923,7 @@ static struct radeon_asic cayman_asic = {
 	.hpd_fini = &evergreen_hpd_fini,
 	.hpd_sense = &evergreen_hpd_sense,
 	.hpd_set_polarity = &evergreen_hpd_set_polarity,
+	.ioctl_wait_idle = r600_ioctl_wait_idle,
 	.gui_idle = &r600_gui_idle,
 	.pm_misc = &evergreen_pm_misc,
 	.pm_prepare = &evergreen_pm_prepare,
drivers/hid/hid-magicmouse.c +9 -1
index 0ec91c1..a5eda4c 100644
@@ -501,9 +501,17 @@ static int magicmouse_probe(struct hid_device *hdev,
 	}
 	report->size = 6;
 
+	/*
+	 * The device reponds with 'invalid report id' when feature
+	 * report switching it into multitouch mode is sent to it.
+	 *
+	 * This results in -EIO from the _raw low-level transport callback,
+	 * but there seems to be no other way of switching the mode.
+	 * Thus the super-ugly hacky success check below.
+	 */
 	ret = hdev->hid_output_raw_report(hdev, feature, sizeof(feature),
 			HID_FEATURE_REPORT);
-	if (ret != sizeof(feature)) {
+	if (ret != -EIO) {
 		hid_err(hdev, "unable to request touch data (%d)\n", ret);
 		goto err_stop_hw;
 	}
drivers/hwmon/pmbus_core.c +1 -0
index 196ffaf..7df490e 100644
@@ -700,6 +700,7 @@ do {									\
 	struct sensor_device_attribute *a				\
 	    = &data->_type##s[data->num_##_type##s].attribute;		\
 	BUG_ON(data->num_attributes >= data->max_attributes);		\
+	sysfs_attr_init(&a->dev_attr.attr);				\
 	a->dev_attr.attr.name = _name;					\
 	a->dev_attr.attr.mode = _mode;					\
 	a->dev_attr.show = _show;					\
drivers/i2c/busses/i2c-tegra.c +5 -0
index b4ab39b..5f1b92c 100644
@@ -330,6 +330,11 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev)
 	i2c_writel(i2c_dev, 0, I2C_INT_MASK);
 	clk_set_rate(i2c_dev->clk, i2c_dev->bus_clk_rate * 8);
 
+	if (!i2c_dev->is_dvc) {
+		u32 sl_cfg = i2c_readl(i2c_dev, I2C_SL_CNFG);
+		i2c_writel(i2c_dev, sl_cfg | I2C_SL_CNFG_NEWSL, I2C_SL_CNFG);
+	}
+
 	val = 7 << I2C_FIFO_CONTROL_TX_TRIG_SHIFT |
 		0 << I2C_FIFO_CONTROL_RX_TRIG_SHIFT;
 	i2c_writel(i2c_dev, val, I2C_FIFO_CONTROL);
drivers/ide/ide-cd.c +2 -1
index a5ec5a7..9560822 100644
@@ -1773,7 +1773,8 @@ static int ide_cd_probe(ide_drive_t *drive)
 
 	g->minors = 1;
 	g->driverfs_dev = &drive->gendev;
-	g->flags = GENHD_FL_CD | GENHD_FL_REMOVABLE;
+	g->flags = GENHD_FL_CD | GENHD_FL_REMOVABLE |
+		   GENHD_FL_BLOCK_EVENTS_ON_EXCL_WRITE;
 	if (ide_cdrom_setup(drive)) {
 		put_device(&info->dev);
 		goto failed;
drivers/md/bitmap.c +6 -4
index 5c93627..70bd738 100644
@@ -493,11 +493,11 @@ void bitmap_update_sb(struct bitmap *bitmap)
 	spin_unlock_irqrestore(&bitmap->lock, flags);
 	sb = kmap_atomic(bitmap->sb_page, KM_USER0);
 	sb->events = cpu_to_le64(bitmap->mddev->events);
-	if (bitmap->mddev->events < bitmap->events_cleared) {
+	if (bitmap->mddev->events < bitmap->events_cleared)
 		/* rocking back to read-only */
 		bitmap->events_cleared = bitmap->mddev->events;
-		sb->events_cleared = cpu_to_le64(bitmap->events_cleared);
-	}
+	sb->events_cleared = cpu_to_le64(bitmap->events_cleared);
+	sb->state = cpu_to_le32(bitmap->flags);
 	/* Just in case these have been changed via sysfs: */
 	sb->daemon_sleep = cpu_to_le32(bitmap->mddev->bitmap_info.daemon_sleep/HZ);
 	sb->write_behind = cpu_to_le32(bitmap->mddev->bitmap_info.max_write_behind);
@@ -618,7 +618,7 @@ success:
 	if (le32_to_cpu(sb->version) == BITMAP_MAJOR_HOSTENDIAN)
 		bitmap->flags |= BITMAP_HOSTENDIAN;
 	bitmap->events_cleared = le64_to_cpu(sb->events_cleared);
-	if (sb->state & cpu_to_le32(BITMAP_STALE))
+	if (bitmap->flags & BITMAP_STALE)
 		bitmap->events_cleared = bitmap->mddev->events;
 	err = 0;
 out:
@@ -652,9 +652,11 @@ static int bitmap_mask_state(struct bitmap *bitmap, enum bitmap_state bits,
 	switch (op) {
 	case MASK_SET:
 		sb->state |= cpu_to_le32(bits);
+		bitmap->flags |= bits;
 		break;
 	case MASK_UNSET:
 		sb->state &= cpu_to_le32(~bits);
+		bitmap->flags &= ~bits;
 		break;
 	default:
 		BUG();
drivers/md/dm-mpath.c +1 -1
index a550a05..aa4e570 100644
@@ -1290,7 +1290,7 @@ static int do_end_io(struct multipath *m, struct request *clone,
 	if (!error && !clone->errors)
 		return 0;	/* I/O complete */
 
-	if (error == -EOPNOTSUPP || error == -EREMOTEIO)
+	if (error == -EOPNOTSUPP || error == -EREMOTEIO || error == -EILSEQ)
 		return error;
 
 	if (mpio->pgpath)
drivers/md/dm-table.c +17 -0
index cb8380c..53e603b 100644
@@ -362,6 +362,7 @@ static void close_dev(struct dm_dev_internal *d, struct mapped_device *md)
 static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,
 				  sector_t start, sector_t len, void *data)
 {
+	struct request_queue *q;
 	struct queue_limits *limits = data;
 	struct block_device *bdev = dev->bdev;
 	sector_t dev_size =
@@ -370,6 +371,22 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,
 		limits->logical_block_size >> SECTOR_SHIFT;
 	char b[BDEVNAME_SIZE];
 
+	/*
+	 * Some devices exist without request functions,
+	 * such as loop devices not yet bound to backing files.
+	 * Forbid the use of such devices.
+	 */
+	q = bdev_get_queue(bdev);
+	if (!q || !q->make_request_fn) {
+		DMWARN("%s: %s is not yet initialised: "
+		       "start=%llu, len=%llu, dev_size=%llu",
+		       dm_device_name(ti->table->md), bdevname(bdev, b),
+		       (unsigned long long)start,
+		       (unsigned long long)len,
+		       (unsigned long long)dev_size);
+		return 1;
+	}
+
 	if (!dev_size)
 		return 0;
 
drivers/md/md.c +8 -3
index 7d6f7f1..4a4c0f8 100644
@@ -4347,13 +4347,19 @@ static int md_alloc(dev_t dev, char *name)
 	disk->fops = &md_fops;
 	disk->private_data = mddev;
 	disk->queue = mddev->queue;
+	blk_queue_flush(mddev->queue, REQ_FLUSH | REQ_FUA);
 	/* Allow extended partitions.  This makes the
 	 * 'mdp' device redundant, but we can't really
 	 * remove it now.
 	 */
 	disk->flags |= GENHD_FL_EXT_DEVT;
-	add_disk(disk);
 	mddev->gendisk = disk;
+	/* As soon as we call add_disk(), another thread could get
+	 * through to md_open, so make sure it doesn't get too far
+	 */
+	mutex_lock(&mddev->open_mutex);
+	add_disk(disk);
+
 	error = kobject_init_and_add(&mddev->kobj, &md_ktype,
 				     &disk_to_dev(disk)->kobj, "%s", "md");
 	if (error) {
@@ -4367,8 +4373,7 @@ static int md_alloc(dev_t dev, char *name)
 	if (mddev->kobj.sd &&
 	    sysfs_create_group(&mddev->kobj, &md_bitmap_group))
 		printk(KERN_DEBUG "pointless warning\n");
-
-	blk_queue_flush(mddev->queue, REQ_FLUSH | REQ_FUA);
+	mutex_unlock(&mddev->open_mutex);
  abort:
 	mutex_unlock(&disks_mutex);
 	if (!error && mddev->kobj.sd) {
drivers/media/dvb/frontends/dib0070.c +30 -10
index d4e466a..1d47d4d 100644
@@ -73,27 +73,47 @@ struct dib0070_state {
 
     u8  wbd_gain_current;
 	u16 wbd_offset_3_3[2];
+
+	/* for the I2C transfer */
+	struct i2c_msg msg[2];
+	u8 i2c_write_buffer[3];
+	u8 i2c_read_buffer[2];
 };
 
 static uint16_t dib0070_read_reg(struct dib0070_state *state, u8 reg)
 {
-	u8 b[2];
-	struct i2c_msg msg[2] = {
-		{ .addr = state->cfg->i2c_address, .flags = 0,        .buf = &reg, .len = 1 },
-		{ .addr = state->cfg->i2c_address, .flags = I2C_M_RD, .buf = b,  .len = 2 },
-	};
-	if (i2c_transfer(state->i2c, msg, 2) != 2) {
+	state->i2c_write_buffer[0] = reg;
+
+	memset(state->msg, 0, 2 * sizeof(struct i2c_msg));
+	state->msg[0].addr = state->cfg->i2c_address;
+	state->msg[0].flags = 0;
+	state->msg[0].buf = state->i2c_write_buffer;
+	state->msg[0].len = 1;
+	state->msg[1].addr = state->cfg->i2c_address;
+	state->msg[1].flags = I2C_M_RD;
+	state->msg[1].buf = state->i2c_read_buffer;
+	state->msg[1].len = 2;
+
+	if (i2c_transfer(state->i2c, state->msg, 2) != 2) {
 		printk(KERN_WARNING "DiB0070 I2C read failed\n");
 		return 0;
 	}
-	return (b[0] << 8) | b[1];
+	return (state->i2c_read_buffer[0] << 8) | state->i2c_read_buffer[1];
 }
 
 static int dib0070_write_reg(struct dib0070_state *state, u8 reg, u16 val)
 {
-	u8 b[3] = { reg, val >> 8, val & 0xff };
-	struct i2c_msg msg = { .addr = state->cfg->i2c_address, .flags = 0, .buf = b, .len = 3 };
-	if (i2c_transfer(state->i2c, &msg, 1) != 1) {
+	state->i2c_write_buffer[0] = reg;
+	state->i2c_write_buffer[1] = val >> 8;
+	state->i2c_write_buffer[2] = val & 0xff;
+
+	memset(state->msg, 0, sizeof(struct i2c_msg));
+	state->msg[0].addr = state->cfg->i2c_address;
+	state->msg[0].flags = 0;
+	state->msg[0].buf = state->i2c_write_buffer;
+	state->msg[0].len = 3;
+
+	if (i2c_transfer(state->i2c, state->msg, 1) != 1) {
 		printk(KERN_WARNING "DiB0070 I2C write failed\n");
 		return -EREMOTEIO;
 	}
drivers/media/dvb/frontends/dib0090.c +54 -17

107 lines not on this page · raw message

drivers/media/dvb/frontends/dib7000m.c +32 -17

67 lines not on this page · raw message

drivers/media/dvb/frontends/dib7000p.c +52 -20

105 lines not on this page · raw message

drivers/media/dvb/frontends/dib8000.c +94 -32

207 lines not on this page · raw message

drivers/media/dvb/frontends/dib9000.c +111 -61

393 lines not on this page · raw message

drivers/media/dvb/frontends/dibx000_common.c +65 -44

147 lines not on this page · raw message

drivers/media/dvb/frontends/dibx000_common.h +5 -0
index 977d343..f031165 100644
@@ -28,6 +28,11 @@ struct dibx000_i2c_master {
 	u8 i2c_addr;
 
 	u16 base_reg;
+
+	/* for the I2C transfer */
+	struct i2c_msg msg[34];
+	u8 i2c_write_buffer[8];
+	u8 i2c_read_buffer[2];
 };
 
 extern int dibx000_init_i2c_master(struct dibx000_i2c_master *mst,
drivers/media/video/cx88/cx88-blackbird.c +2 -3
index bca307e..f637d34 100644
@@ -1122,7 +1122,6 @@ static int mpeg_release(struct file *file)
 	mutex_lock(&dev->core->lock);
 	file->private_data = NULL;
 	kfree(fh);
-	mutex_unlock(&dev->core->lock);
 
 	/* Make sure we release the hardware */
 	drv = cx8802_get_driver(dev, CX88_MPEG_BLACKBIRD);
@@ -1131,6 +1130,8 @@ static int mpeg_release(struct file *file)
 
 	atomic_dec(&dev->core->mpeg_users);
 
+	mutex_unlock(&dev->core->lock);
+
 	return 0;
 }
 
@@ -1334,11 +1335,9 @@ static int cx8802_blackbird_probe(struct cx8802_driver *drv)
 	blackbird_register_video(dev);
 
 	/* initial device configuration: needed ? */
-	mutex_lock(&dev->core->lock);
 //	init_controls(core);
 	cx88_set_tvnorm(core,core->tvnorm);
 	cx88_video_mux(core,0);
-	mutex_unlock(&dev->core->lock);
 
 	return 0;
 
drivers/media/video/cx88/cx88-dvb.c +2 -0
index 7b8c9d3..c69df7e 100644
@@ -133,6 +133,7 @@ static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, int acquire)
 		return -EINVAL;
 	}
 
+	mutex_lock(&dev->core->lock);
 	drv = cx8802_get_driver(dev, CX88_MPEG_DVB);
 	if (drv) {
 		if (acquire){
@@ -143,6 +144,7 @@ static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, int acquire)
 			dev->frontends.active_fe_id = 0;
 		}
 	}
+	mutex_unlock(&dev->core->lock);
 
 	return ret;
 }
drivers/media/video/cx88/cx88-mpeg.c +9 -11
index addf954..497f26f 100644
@@ -624,13 +624,11 @@ static int cx8802_request_acquire(struct cx8802_driver *drv)
 
 	if (drv->advise_acquire)
 	{
-		mutex_lock(&drv->core->lock);
 		core->active_ref++;
 		if (core->active_type_id == CX88_BOARD_NONE) {
 			core->active_type_id = drv->type_id;
 			drv->advise_acquire(drv);
 		}
-		mutex_unlock(&drv->core->lock);
 
 		mpeg_dbg(1,"%s() Post acquire GPIO=%x\n", __func__, cx_read(MO_GP0_IO));
 	}
@@ -643,14 +641,12 @@ static int cx8802_request_release(struct cx8802_driver *drv)
 {
 	struct cx88_core *core = drv->core;
 
-	mutex_lock(&drv->core->lock);
 	if (drv->advise_release && --core->active_ref == 0)
 	{
 		drv->advise_release(drv);
 		core->active_type_id = CX88_BOARD_NONE;
 		mpeg_dbg(1,"%s() Post release GPIO=%x\n", __func__, cx_read(MO_GP0_IO));
 	}
-	mutex_unlock(&drv->core->lock);
 
 	return 0;
 }
@@ -713,18 +709,17 @@ int cx8802_register_driver(struct cx8802_driver *drv)
 		drv->request_release = cx8802_request_release;
 		memcpy(driver, drv, sizeof(*driver));
 
+		mutex_lock(&drv->core->lock);
 		err = drv->probe(driver);
 		if (err == 0) {
 			i++;
-			mutex_lock(&drv->core->lock);
 			list_add_tail(&driver->drvlist, &dev->drvlist);
-			mutex_unlock(&drv->core->lock);
 		} else {
 			printk(KERN_ERR
 			       "%s/2: cx8802 probe failed, err = %d\n",
 			       dev->core->name, err);
 		}
-
+		mutex_unlock(&drv->core->lock);
 	}
 
 	return i ? 0 : -ENODEV;
@@ -748,6 +743,8 @@ int cx8802_unregister_driver(struct cx8802_driver *drv)
 		       dev->pci->subsystem_device, dev->core->board.name,
 		       dev->core->boardnr);
 
+		mutex_lock(&dev->core->lock);
+
 		list_for_each_entry_safe(d, dtmp, &dev->drvlist, drvlist) {
 			/* only unregister the correct driver type */
 			if (d->type_id != drv->type_id)
@@ -755,15 +752,14 @@ int cx8802_unregister_driver(struct cx8802_driver *drv)
 
 			err = d->remove(d);
 			if (err == 0) {
-				mutex_lock(&drv->core->lock);
 				list_del(&d->drvlist);
-				mutex_unlock(&drv->core->lock);
 				kfree(d);
 			} else
 				printk(KERN_ERR "%s/2: cx8802 driver remove "
 				       "failed (%d)\n", dev->core->name, err);
 		}
 
+		mutex_unlock(&dev->core->lock);
 	}
 
 	return err;
@@ -827,6 +823,8 @@ static void __devexit cx8802_remove(struct pci_dev *pci_dev)
 
 	flush_request_modules(dev);
 
+	mutex_lock(&dev->core->lock);
+
 	if (!list_empty(&dev->drvlist)) {
 		struct cx8802_driver *drv, *tmp;
 		int err;
@@ -838,9 +836,7 @@ static void __devexit cx8802_remove(struct pci_dev *pci_dev)
 		list_for_each_entry_safe(drv, tmp, &dev->drvlist, drvlist) {
 			err = drv->remove(drv);
 			if (err == 0) {
-				mutex_lock(&drv->core->lock);
 				list_del(&drv->drvlist);
-				mutex_unlock(&drv->core->lock);
 			} else
 				printk(KERN_ERR "%s/2: cx8802 driver remove "
 				       "failed (%d)\n", dev->core->name, err);
@@ -848,6 +844,8 @@ static void __devexit cx8802_remove(struct pci_dev *pci_dev)
 		}
 	}
 
+	mutex_unlock(&dev->core->lock);
+
 	/* Destroy any 8802 reference. */
 	dev->core->dvbdev = NULL;
 
drivers/media/video/cx88/cx88.h +6 -1
index 9b3742a..3d32f4a 100644
@@ -505,6 +505,8 @@ struct cx8802_driver {
 	int (*suspend)(struct pci_dev *pci_dev, pm_message_t state);
 	int (*resume)(struct pci_dev *pci_dev);
 
+	/* Callers to the following functions must hold core->lock */
+
 	/* MPEG 8802 -> mini driver - Driver probe and configuration */
 	int (*probe)(struct cx8802_driver *drv);
 	int (*remove)(struct cx8802_driver *drv);
@@ -561,8 +563,9 @@ struct cx8802_dev {
 	/* for switching modulation types */
 	unsigned char              ts_gen_cntrl;
 
-	/* List of attached drivers */
+	/* List of attached drivers; must hold core->lock to access */
 	struct list_head	   drvlist;
+
 	struct work_struct	   request_module_wk;
 };
 
@@ -685,6 +688,8 @@ int cx88_audio_thread(void *data);
 
 int cx8802_register_driver(struct cx8802_driver *drv);
 int cx8802_unregister_driver(struct cx8802_driver *drv);
+
+/* Caller must hold core->lock */
 struct cx8802_driver * cx8802_get_driver(struct cx8802_dev *dev, enum cx88_board_type btype);
 
 /* ----------------------------------------------------------- */
drivers/mfd/omap-usb-host.c +19 -8
index 3ab9ffa..55c5d47 100644
@@ -994,22 +994,33 @@ static void usbhs_disable(struct device *dev)
 			dev_dbg(dev, "operation timed out\n");
 	}
 
-	if (pdata->ehci_data->phy_reset) {
-		if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0]))
-			gpio_free(pdata->ehci_data->reset_gpio_port[0]);
-
-		if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1]))
-			gpio_free(pdata->ehci_data->reset_gpio_port[1]);
+	if (is_omap_usbhs_rev2(omap)) {
+		if (is_ehci_tll_mode(pdata->port_mode[0]))
+			clk_enable(omap->usbtll_p1_fck);
+		if (is_ehci_tll_mode(pdata->port_mode[1]))
+			clk_enable(omap->usbtll_p2_fck);
+		clk_disable(omap->utmi_p2_fck);
+		clk_disable(omap->utmi_p1_fck);
 	}
 
-	clk_disable(omap->utmi_p2_fck);
-	clk_disable(omap->utmi_p1_fck);
 	clk_disable(omap->usbtll_ick);
 	clk_disable(omap->usbtll_fck);
 	clk_disable(omap->usbhost_fs_fck);
 	clk_disable(omap->usbhost_hs_fck);
 	clk_disable(omap->usbhost_ick);
 
+	/* The gpio_free migh sleep; so unlock the spinlock */
+	spin_unlock_irqrestore(&omap->lock, flags);
+
+	if (pdata->ehci_data->phy_reset) {
+		if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[0]))
+			gpio_free(pdata->ehci_data->reset_gpio_port[0]);
+
+		if (gpio_is_valid(pdata->ehci_data->reset_gpio_port[1]))
+			gpio_free(pdata->ehci_data->reset_gpio_port[1]);
+	}
+	return;
+
 end_disble:
 	spin_unlock_irqrestore(&omap->lock, flags);
 }
drivers/mtd/mtdconcat.c +2 -2
index 5060e60..e601672 100644
@@ -319,7 +319,7 @@ concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
 	if (!(mtd->flags & MTD_WRITEABLE))
 		return -EROFS;
 
-	ops->retlen = 0;
+	ops->retlen = ops->oobretlen = 0;
 
 	for (i = 0; i < concat->num_subdev; i++) {
 		struct mtd_info *subdev = concat->subdev[i];
@@ -334,7 +334,7 @@ concat_write_oob(struct mtd_info *mtd, loff_t to, struct mtd_oob_ops *ops)
 			devops.len = subdev->size - to;
 
 		err = subdev->write_oob(subdev, to, &devops);
-		ops->retlen += devops.retlen;
+		ops->retlen += devops.oobretlen;
 		if (err)
 			return err;
 
drivers/mtd/nand/nand_base.c +2 -0
index c54a4cb..d1345fc 100644
@@ -3112,6 +3112,8 @@ ident_done:
 		chip->chip_shift += 32 - 1;
 	}
 
+	chip->badblockbits = 8;
+
 	/* Set the bad block position */
 	if (mtd->writesize > 512 || (busw & NAND_BUSWIDTH_16))
 		chip->badblockpos = NAND_LARGE_BADBLOCK_POS;
drivers/mtd/nand/omap2.c +5 -7
index da9a351..2c8040f 100644
@@ -263,11 +263,10 @@ static void omap_read_buf_pref(struct mtd_info *mtd, u_char *buf, int len)
 	if (ret) {
 		/* PFPW engine is busy, use cpu copy method */
 		if (info->nand.options & NAND_BUSWIDTH_16)
-			omap_read_buf16(mtd, buf, len);
+			omap_read_buf16(mtd, (u_char *)p, len);
 		else
-			omap_read_buf8(mtd, buf, len);
+			omap_read_buf8(mtd, (u_char *)p, len);
 	} else {
-		p = (u32 *) buf;
 		do {
 			r_count = gpmc_read_status(GPMC_PREFETCH_FIFO_CNT);
 			r_count = r_count >> 2;
@@ -293,7 +292,7 @@ static void omap_write_buf_pref(struct mtd_info *mtd,
 						struct omap_nand_info, mtd);
 	uint32_t w_count = 0;
 	int i = 0, ret = 0;
-	u16 *p;
+	u16 *p = (u16 *)buf;
 	unsigned long tim, limit;
 
 	/* take care of subpage writes */
@@ -309,11 +308,10 @@ static void omap_write_buf_pref(struct mtd_info *mtd,
 	if (ret) {
 		/* PFPW engine is busy, use cpu copy method */
 		if (info->nand.options & NAND_BUSWIDTH_16)
-			omap_write_buf16(mtd, buf, len);
+			omap_write_buf16(mtd, (u_char *)p, len);
 		else
-			omap_write_buf8(mtd, buf, len);
+			omap_write_buf8(mtd, (u_char *)p, len);
 	} else {
-		p = (u16 *) buf;
 		while (len) {
 			w_count = gpmc_read_status(GPMC_PREFETCH_FIFO_CNT);
 			w_count = w_count >> 1;
drivers/net/bonding/bond_alb.c +0 -4
index ba71582..a20bfef 100644
@@ -163,8 +163,6 @@ static int tlb_initialize(struct bonding *bond)
 	struct tlb_client_info *new_hashtbl;
 	int i;
 
-	spin_lock_init(&(bond_info->tx_hashtbl_lock));
-
 	new_hashtbl = kzalloc(size, GFP_KERNEL);
 	if (!new_hashtbl) {
 		pr_err("%s: Error: Failed to allocate TLB hash table\n",
@@ -764,8 +762,6 @@ static int rlb_initialize(struct bonding *bond)
 	int size = RLB_HASH_TABLE_SIZE * sizeof(struct rlb_client_info);
 	int i;
 
-	spin_lock_init(&(bond_info->rx_hashtbl_lock));
-
 	new_hashtbl = kmalloc(size, GFP_KERNEL);
 	if (!new_hashtbl) {
 		pr_err("%s: Error: Failed to allocate RLB hash table\n",
drivers/net/bonding/bond_main.c +10 -6
index 16d6fe9..ffb0fde 100644
@@ -1535,12 +1535,6 @@ int bond_enslave(struct net_device *bond_dev, struct net_device *slave_dev)
 			   bond_dev->name, slave_dev->name);
 	}
 
-	/* bond must be initialized by bond_open() before enslaving */
-	if (!(bond_dev->flags & IFF_UP)) {
-		pr_warning("%s: master_dev is not up in bond_enslave\n",
-			   bond_dev->name);
-	}
-
 	/* already enslaved */
 	if (slave_dev->flags & IFF_SLAVE) {
 		pr_debug("Error, Device was already enslaved\n");
@@ -4975,9 +4969,19 @@ static int bond_init(struct net_device *bond_dev)
 {
 	struct bonding *bond = netdev_priv(bond_dev);
 	struct bond_net *bn = net_generic(dev_net(bond_dev), bond_net_id);
+	struct alb_bond_info *bond_info = &(BOND_ALB_INFO(bond));
 
 	pr_debug("Begin bond_init for %s\n", bond_dev->name);
 
+	/*
+	 * Initialize locks that may be required during
+	 * en/deslave operations.  All of the bond_open work
+	 * (of which this is part) should really be moved to
+	 * a phase prior to dev_open
+	 */
+	spin_lock_init(&(bond_info->tx_hashtbl_lock));
+	spin_lock_init(&(bond_info->rx_hashtbl_lock));
+
 	bond->wq = create_singlethread_workqueue(bond_dev->name);
 	if (!bond->wq)
 		return -ENOMEM;
drivers/net/bonding/bond_sysfs.c +0 -6
index de87aea..8a2717e 100644
@@ -227,12 +227,6 @@ static ssize_t bonding_store_slaves(struct device *d,
 	struct net_device *dev;
 	struct bonding *bond = to_bond(d);
 
-	/* Quick sanity check -- is the bond interface up? */
-	if (!(bond->dev->flags & IFF_UP)) {
-		pr_warning("%s: doing slave updates when interface is down.\n",
-			   bond->dev->name);
-	}
-
 	if (!rtnl_trylock())
 		return restart_syscall();
 
drivers/net/macvlan.c +2 -2
index 78e34e9..6d357d6 100644
@@ -598,8 +598,8 @@ static int macvlan_port_create(struct net_device *dev)
 	err = netdev_rx_handler_register(dev, macvlan_handle_frame, port);
 	if (err)
 		kfree(port);
-
-	dev->priv_flags |= IFF_MACVLAN_PORT;
+	else
+		dev->priv_flags |= IFF_MACVLAN_PORT;
 	return err;
 }
 
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c +12 -2
index 6eadf97..37af3f4 100644
@@ -652,7 +652,7 @@ static const struct ar9300_eeprom ar9300_x113 = {
 		.regDmn = { LE16(0), LE16(0x1f) },
 		.txrxMask =  0x77, /* 4 bits tx and 4 bits rx */
 		.opCapFlags = {
-			.opFlags = AR5416_OPFLAGS_11G | AR5416_OPFLAGS_11A,
+			.opFlags = AR5416_OPFLAGS_11A,
 			.eepMisc = 0,
 		},
 		.rfSilent = 0,
@@ -922,7 +922,7 @@ static const struct ar9300_eeprom ar9300_x113 = {
 		.db_stage2 = {3, 3, 3}, /* 3 chain */
 		.db_stage3 = {3, 3, 3}, /* doesn't exist for 2G */
 		.db_stage4 = {3, 3, 3},	 /* don't exist for 2G */
-		.xpaBiasLvl = 0,
+		.xpaBiasLvl = 0xf,
 		.txFrameToDataStart = 0x0e,
 		.txFrameToPaOn = 0x0e,
 		.txClip = 3, /* 4 bits tx_clip, 4 bits dac_scale_cck */
@@ -3994,6 +3994,16 @@ static int ar9003_hw_tx_power_regwrite(struct ath_hw *ah, u8 * pPwrArray)
 		  POW_SM(pPwrArray[ALL_TARGET_LEGACY_1L_5L], 0)
 	    );
 
+        /* Write the power for duplicated frames - HT40 */
+
+        /* dup40_cck (LSB), dup40_ofdm, ext20_cck, ext20_ofdm (MSB) */
+	REG_WRITE(ah, 0xa3e0,
+		  POW_SM(pPwrArray[ALL_TARGET_LEGACY_6_24], 24) |
+		  POW_SM(pPwrArray[ALL_TARGET_LEGACY_1L_5L], 16) |
+		  POW_SM(pPwrArray[ALL_TARGET_LEGACY_6_24],  8) |
+		  POW_SM(pPwrArray[ALL_TARGET_LEGACY_1L_5L],  0)
+	    );
+
 	/* Write the HT20 power per rate set */
 
 	/* 0/8/16 (LSB), 1-3/9-11/17-19, 4, 5 (MSB) */
drivers/net/wireless/ath/ath9k/calib.c +13 -0
index 8649581..fe3c10e 100644
@@ -69,15 +69,21 @@ static void ath9k_hw_update_nfcal_hist_buffer(struct ath_hw *ah,
 					      int16_t *nfarray)
 {
 	struct ath_common *common = ath9k_hw_common(ah);
+	struct ieee80211_conf *conf = &common->hw->conf;
 	struct ath_nf_limits *limit;
 	struct ath9k_nfcal_hist *h;
 	bool high_nf_mid = false;
+	u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask;
 	int i;
 
 	h = cal->nfCalHist;
 	limit = ath9k_hw_get_nf_limits(ah, ah->curchan);
 
 	for (i = 0; i < NUM_NF_READINGS; i++) {
+		if (!(chainmask & (1 << i)) ||
+		    ((i >= AR5416_MAX_CHAINS) && !conf_is_ht40(conf)))
+			continue;
+
 		h[i].nfCalBuffer[h[i].currIndex] = nfarray[i];
 
 		if (++h[i].currIndex >= ATH9K_NF_CAL_HIST_MAX)
@@ -225,6 +231,7 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
 	int32_t val;
 	u8 chainmask = (ah->rxchainmask << 3) | ah->rxchainmask;
 	struct ath_common *common = ath9k_hw_common(ah);
+	struct ieee80211_conf *conf = &common->hw->conf;
 	s16 default_nf = ath9k_hw_get_default_nf(ah, chan);
 
 	if (ah->caldata)
@@ -234,6 +241,9 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
 		if (chainmask & (1 << i)) {
 			s16 nfval;
 
+			if ((i >= AR5416_MAX_CHAINS) && !conf_is_ht40(conf))
+				continue;
+
 			if (h)
 				nfval = h[i].privNF;
 			else
@@ -293,6 +303,9 @@ void ath9k_hw_loadnf(struct ath_hw *ah, struct ath9k_channel *chan)
 	ENABLE_REGWRITE_BUFFER(ah);
 	for (i = 0; i < NUM_NF_READINGS; i++) {
 		if (chainmask & (1 << i)) {
+			if ((i >= AR5416_MAX_CHAINS) && !conf_is_ht40(conf))
+				continue;
+
 			val = REG_READ(ah, ah->nf_regs[i]);
 			val &= 0xFFFFFE00;
 			val |= (((u32) (-50) << 1) & 0x1ff);
drivers/net/wireless/iwlwifi/iwl-core.c +10 -0
index bafbe57..1755729 100644
@@ -1783,6 +1783,15 @@ int iwl_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 
 	mutex_lock(&priv->mutex);
 
+	if (!ctx->vif || !iwl_is_ready_rf(priv)) {
+		/*
+		 * Huh? But wait ... this can maybe happen when
+		 * we're in the middle of a firmware restart!
+		 */
+		err = -EBUSY;
+		goto out;
+	}
+
 	interface_modes = ctx->interface_modes | ctx->exclusive_interface_modes;
 
 	if (!(interface_modes & BIT(newtype))) {
@@ -1810,6 +1819,7 @@ int iwl_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 	/* success */
 	iwl_teardown_interface(priv, vif, true);
 	vif->type = newtype;
+	vif->p2p = newp2p;
 	err = iwl_setup_interface(priv, ctx);
 	WARN_ON(err);
 	/*
drivers/net/wireless/iwlwifi/iwl-dev.h +11 -8
index 68b953f..c0a4cfb 100644
@@ -1658,21 +1658,24 @@ iwl_rxon_ctx_from_vif(struct ieee80211_vif *vif)
 	     ctx < &priv->contexts[NUM_IWL_RXON_CTX]; ctx++)	\
 		if (priv->valid_contexts & BIT(ctx->ctxid))
 
-static inline int iwl_is_associated(struct iwl_priv *priv,
-				    enum iwl_rxon_context_id ctxid)
+static inline int iwl_is_associated_ctx(struct iwl_rxon_context *ctx)
 {
-	return (priv->contexts[ctxid].active.filter_flags &
-			RXON_FILTER_ASSOC_MSK) ? 1 : 0;
+	return (ctx->active.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
 }
 
-static inline int iwl_is_any_associated(struct iwl_priv *priv)
+static inline int iwl_is_associated(struct iwl_priv *priv,
+				    enum iwl_rxon_context_id ctxid)
 {
-	return iwl_is_associated(priv, IWL_RXON_CTX_BSS);
+	return iwl_is_associated_ctx(&priv->contexts[ctxid]);
 }
 
-static inline int iwl_is_associated_ctx(struct iwl_rxon_context *ctx)
+static inline int iwl_is_any_associated(struct iwl_priv *priv)
 {
-	return (ctx->active.filter_flags & RXON_FILTER_ASSOC_MSK) ? 1 : 0;
+	struct iwl_rxon_context *ctx;
+	for_each_context(priv, ctx)
+		if (iwl_is_associated_ctx(ctx))
+			return true;
+	return false;
 }
 
 static inline int is_channel_valid(const struct iwl_channel_info *ch_info)
drivers/net/wireless/p54/p54usb.c +1 -0
index e183587..a8f3bc7 100644
@@ -82,6 +82,7 @@ static struct usb_device_id p54u_table[] __devinitdata = {
 	{USB_DEVICE(0x06b9, 0x0121)},	/* Thomson SpeedTouch 121g */
 	{USB_DEVICE(0x0707, 0xee13)},   /* SMC 2862W-G version 2 */
 	{USB_DEVICE(0x083a, 0x4521)},   /* Siemens Gigaset USB Adapter 54 version 2 */
+	{USB_DEVICE(0x083a, 0xc501)},	/* Zoom Wireless-G 4410 */
 	{USB_DEVICE(0x083a, 0xf503)},	/* Accton FD7050E ver 1010ec  */
 	{USB_DEVICE(0x0846, 0x4240)},	/* Netgear WG111 (v2) */
 	{USB_DEVICE(0x0915, 0x2000)},	/* Cohiba Proto board */
drivers/pci/quirks.c +10 -0
index 5129ed6..4b2bbe8 100644
@@ -2784,6 +2784,16 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x342e, vtd_mask_spec_errors);
 DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_INTEL, 0x3c28, vtd_mask_spec_errors);
 #endif
 
+static void __devinit fixup_ti816x_class(struct pci_dev* dev)
+{
+	/* TI 816x devices do not have class code set when in PCIe boot mode */
+	if (dev->class == PCI_CLASS_NOT_DEFINED) {
+		dev_info(&dev->dev, "Setting PCI class for 816x PCIe device\n");
+		dev->class = PCI_CLASS_MULTIMEDIA_VIDEO;
+	}
+}
+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_TI, 0xb800, fixup_ti816x_class);
+
 static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f,
 			  struct pci_fixup *end)
 {
drivers/scsi/bnx2i/bnx2i_hwi.c +1 -0
index f0b8951..a8a2b6b 100644
@@ -1274,6 +1274,7 @@ int bnx2i_send_fw_iscsi_init_msg(struct bnx2i_hba *hba)
 	iscsi_init.dummy_buffer_addr_hi =
 		(u32) ((u64) hba->dummy_buf_dma >> 32);
 
+	hba->num_ccell = hba->max_sqes >> 1;
 	hba->ctx_ccell_tasks =
 			((hba->num_ccell & 0xFFFF) | (hba->max_sqes << 16));
 	iscsi_init.num_ccells_per_conn = hba->num_ccell;
drivers/scsi/bnx2i/bnx2i_init.c +1 -1
index 1d24a28..6adbdc3 100644
@@ -244,7 +244,7 @@ void bnx2i_stop(void *handle)
 	wait_event_interruptible_timeout(hba->eh_wait,
 					 (list_empty(&hba->ep_ofld_list) &&
 					 list_empty(&hba->ep_destroy_list)),
-					 10 * HZ);
+					 2 * HZ);
 	/* Wait for all endpoints to be torn down, Chip will be reset once
 	 *  control returns to network driver. So it is required to cleanup and
 	 * release all connection resources before returning from this routine.
drivers/scsi/bnx2i/bnx2i_iscsi.c +4 -1
index 1809f9c..51a970f 100644
@@ -858,7 +858,7 @@ struct bnx2i_hba *bnx2i_alloc_hba(struct cnic_dev *cnic)
 	mutex_init(&hba->net_dev_lock);
 	init_waitqueue_head(&hba->eh_wait);
 	if (test_bit(BNX2I_NX2_DEV_57710, &hba->cnic_dev_type)) {
-		hba->hba_shutdown_tmo = 20 * HZ;
+		hba->hba_shutdown_tmo = 30 * HZ;
 		hba->conn_teardown_tmo = 20 * HZ;
 		hba->conn_ctx_destroy_tmo = 6 * HZ;
 	} else {	/* 5706/5708/5709 */
@@ -1208,6 +1208,9 @@ static int bnx2i_task_xmit(struct iscsi_task *task)
 	struct bnx2i_cmd *cmd = task->dd_data;
 	struct iscsi_cmd *hdr = (struct iscsi_cmd *) task->hdr;
 
+	if (bnx2i_conn->ep->num_active_cmds + 1 > hba->max_sqes)
+		return -ENOMEM;
+
 	/*
 	 * If there is no scsi_cmnd this must be a mgmt task
 	 */
drivers/scsi/mpt2sas/mpt2sas_scsih.c +68 -26

65 lines not on this page · raw message

drivers/scsi/qla2xxx/qla_attr.c +3 -2
index d3e58d7..c52a0a2 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_fw.h +1 -2
index f5ba09c..5223c1d 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_nx.c +2 -2
index 455fe13..eb31213 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/qla2xxx/qla_os.c +19 -13
index aa77475..4c3f5e8 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/sr.c +1 -1
index 95019c7..4778e27 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/ultrastor.c +1 -1
index 9f4b58b..7e22b73 100644

Lines of this file are not shown. View the raw message.

drivers/sh/clk/cpg.c +1 -1
index 6172335..82dd6fb 100644

Lines of this file are not shown. View the raw message.

drivers/staging/brcm80211/brcmsmac/wlc_ampdu.c +3 -10
index f008659..f7bff4e 100644

Lines of this file are not shown. View the raw message.

drivers/staging/rtl8712/rtl871x_ioctl_set.c +4 -1
index 8b1451d..8486eb1 100644

Lines of this file are not shown. View the raw message.

drivers/staging/usbip/usbip_common.c +1 -1
index 7b1fe45..37b650b 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_device.c +2 -2
index d25e208..fc10ed4 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_tmr.c +4 -3
index 4a10983..59b8b9c 100644

Lines of this file are not shown. View the raw message.

drivers/target/target_core_transport.c +34 -12

46 lines not on this page · raw message

drivers/usb/class/cdc-acm.c +11 -2
index e057e53..caa2535 100644

Lines of this file are not shown. View the raw message.

drivers/usb/class/cdc-acm.h +1 -0
index b4ea54d..683104a 100644

Lines of this file are not shown. View the raw message.

drivers/usb/core/hcd.c +1 -4
index 77a7fae..cddc533 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/at91_udc.c +1 -1
index 9b7cdb1..41dc093 100644

Lines of this file are not shown. View the raw message.

drivers/usb/gadget/f_rndis.c +1 -2
index 882484a..fa12ec8 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/ehci-hcd.c +3 -1
index 78561d1..c606b02 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/ehci-sched.c +6 -2
index 1543c83..d12426f 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/isp116x-hcd.c +1 -0
index c0e22f2..baae4cc 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/ohci-hcd.c +3 -1
index d557235..c001fff 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/ohci-pci.c +10 -2
index d84d6f0..ad8166c 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/oxu210hp-hcd.c +5 -1
index 4a771f6..5fbe997 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-mem.c +5 -6
index 627f343..783e5e0 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci-ring.c +9 -9
index 7437386..078b566 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/xhci.c +10 -1
index 81b976e..d2cd3ce 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/cp210x.c +4 -0
index 0f11afd..ebeccb7 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ftdi_sio.c +1 -0
index 4de6ef0..e8dbde5 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/ftdi_sio_ids.h +5 -0
index efffc23..1d946cd 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/garmin_gps.c +13 -7
index 26710b1..456447e033 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/moto_modem.c +1 -0
index 653465f..e2bfecc 100644

Lines of this file are not shown. View the raw message.

drivers/usb/serial/option.c +9 -1
index d77ff04..318dd00 100644

Lines of this file are not shown. View the raw message.

drivers/usb/storage/unusual_realtek.h +5 -5
index 3236e03..e41f50c 100644

Lines of this file are not shown. View the raw message.

fs/block_dev.c +19 -15
index 257b00e..1f2b199 100644

Lines of this file are not shown. View the raw message.

fs/cifs/connect.c +22 -9
index 277262a..29fac128 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/inode.c +2 -0
index 4d4cc6a..94ab3c0 100644

Lines of this file are not shown. View the raw message.

fs/ecryptfs/keystore.c +21 -25

46 lines not on this page · raw message

fs/ext3/namei.c +11 -2
index 32f3b86..93f9fd0 100644

Lines of this file are not shown. View the raw message.

fs/ext4/ext4.h +0 -4
index 4daaf2b..1e37c09 100644

Lines of this file are not shown. View the raw message.

fs/ext4/mballoc.c +2 -0
index d8a16ee..15bfa44 100644

Lines of this file are not shown. View the raw message.

fs/ext4/page-io.c +11 -28
index b6dbd05..7bb8f76 100644

Lines of this file are not shown. View the raw message.

fs/ext4/super.c +12 -29

41 lines not on this page · raw message

fs/jbd/commit.c +7 -2
index 69b1804..f486ff6 100644

Lines of this file are not shown. View the raw message.

fs/jbd/journal.c +13 -3
index b3713af..e2d4285 100644

Lines of this file are not shown. View the raw message.

fs/namei.c +1 -1
index e3c4f11..6ff858c 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4proc.c +7 -2
index cf1b339..d0e15db 100644

Lines of this file are not shown. View the raw message.

fs/nfs/nfs4state.c +5 -1
index 036f5ad..e97dd21 100644

Lines of this file are not shown. View the raw message.

fs/nfs/pnfs.c +1 -1
index f57f528..101c85a 100644

Lines of this file are not shown. View the raw message.

fs/partitions/ldm.c +5 -0
index ce4f624..a29d5cc 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/sb.c +2 -1
index bf31b47..cad60b5 100644

Lines of this file are not shown. View the raw message.

fs/ubifs/super.c +1 -0
index 04ad07f..328e6fc 100644

Lines of this file are not shown. View the raw message.

include/linux/blkdev.h +13 -2
index 2ad95fa..ae9091a 100644

Lines of this file are not shown. View the raw message.

include/linux/efi.h +1 -0
index 33fa120..e376270 100644

Lines of this file are not shown. View the raw message.

include/linux/genhd.h +1 -0
index d764a42..300d758 100644

Lines of this file are not shown. View the raw message.

include/linux/pci_ids.h +2 -0
index 8abe8d7..8652a4f 100644

Lines of this file are not shown. View the raw message.

include/linux/pm_qos_params.h +4 -0
index 77cbddb..a7d87f9 100644

Lines of this file are not shown. View the raw message.

include/linux/seqlock.h +2 -2
index e98cd2e..06d6964 100644

Lines of this file are not shown. View the raw message.

include/net/dst.h +2 -0
index 75b95df..b3ad020 100644

Lines of this file are not shown. View the raw message.

include/target/target_core_base.h +1 -0
index 1d3b5b2..561ac99 100644

Lines of this file are not shown. View the raw message.

include/target/target_core_transport.h +1 -0
index 59aa464..24a1c6c 100644

Lines of this file are not shown. View the raw message.

init/main.c +1 -1
index 4a9479e..48df882 100644

Lines of this file are not shown. View the raw message.

kernel/pm_qos_params.c +25 -12
index 0da058b..a9582ef 100644

Lines of this file are not shown. View the raw message.

kernel/trace/ftrace.c +7 -5
index ee24fa1..666880d 100644

Lines of this file are not shown. View the raw message.

lib/locking-selftest.c +1 -1
index 619313e..507a22f 100644

Lines of this file are not shown. View the raw message.

mm/kmemleak.c +5 -2
index c1d5867..aacee45 100644

Lines of this file are not shown. View the raw message.

mm/page_alloc.c +1 -1
index 3f8bce2..e78b324 100644

Lines of this file are not shown. View the raw message.

mm/shmem.c +3 -2
index dfc7069..ba12be4 100644

Lines of this file are not shown. View the raw message.

mm/slub.c +13 -1
index 9d2e5e4..f6cb6cd 100644

Lines of this file are not shown. View the raw message.

mm/vmscan.c +8 -3
index 8bfd450..cc1470b 100644

Lines of this file are not shown. View the raw message.

net/atm/atm_sysfs.c +10 -0
index f7fa67c..f49da58 100644

Lines of this file are not shown. View the raw message.

net/bridge/br_netfilter.c +5 -1
index 74ef4d4..5f9c091 100644

Lines of this file are not shown. View the raw message.

net/core/dev.c +2 -2
index b624fe4..acd7423 100644

Lines of this file are not shown. View the raw message.

net/core/dst.c +1 -1
index 91104d3..b71b7a3 100644

Lines of this file are not shown. View the raw message.

net/core/ethtool.c +1 -1
index 74ead9e..f337525 100644

Lines of this file are not shown. View the raw message.

net/core/skbuff.c +3 -0
index 7ebeed0..3e934fe 100644

Lines of this file are not shown. View the raw message.

net/ipv4/igmp.c +5 -5
index 1fd3d9c..57ca93a 100644

Lines of this file are not shown. View the raw message.

net/mac80211/cfg.c +7 -5
index 4404973..3740403 100644

Lines of this file are not shown. View the raw message.

net/mac80211/mlme.c +1 -1
index 64d92d5..7ffcb55 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_conntrack_sip.c +12 -4
index 237cc19..cb5a285 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_sfq.c +7 -15
index c2e628d..6d96275 100644

Lines of this file are not shown. View the raw message.

net/sctp/associola.c +16 -0
index 1a21c57..525f97c 100644

Lines of this file are not shown. View the raw message.

net/sctp/bind_addr.c +4 -6
index faf71d1..6150ac5 100644

Lines of this file are not shown. View the raw message.

net/socket.c +4 -2
index 310d16b..65b2310 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/xprtsock.c +13 -3
index bf005d3..f34f5ab 100644

Lines of this file are not shown. View the raw message.

net/wireless/nl80211.c +0 -8
index 4ebce42..2c70a1e 100644

Lines of this file are not shown. View the raw message.

security/apparmor/lsm.c +2 -1
index ae3a698..ec1bcec 100644

Lines of this file are not shown. View the raw message.

security/keys/process_keys.c +1 -0
index 930634e..7a0c586 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/hda_intel.c +8 -1
index 70a9d32..f5cad7c 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_analog.c +2 -1
index 2942d2a..9f886bf 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_conexant.c +1 -0
index ad97d93..15b9d16 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_sigmatel.c +1 -1
index 94d19c0..1e32235 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/wm_hubs.c +14 -10
index 4005e9a..e55b298 100644

Lines of this file are not shown. View the raw message.

sound/soc/pxa/raumfeld.c +58 -34

92 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.

#2 lore raw
In reply to Greg KH
Quoted 9 lines · Greg KH

I'm announcing the release of the 2.6.39.1 kernel.

All users of the 2.6.39 kernel series must upgrade.

The updated 2.6.39.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=summary

Something seems to be wrong ... hours went by, but I don't see 2.6.39.1 at that link (nor 2.6.38.8 at its link either, for that matter).

Guenter

author
#3 lore raw
Quoted 5 lines · Guenter Roeck
Quoted 4 lines · Greg KH

I'm announcing the release of the 2.6.39.1 kernel.

All users of the 2.6.39 kernel series must upgrade.

Quoted 7 lines
Quoted 5 lines

The updated 2.6.39.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=summary

Something seems to be wrong ... hours went by, but I don't see 2.6.39.1 at that link (nor 2.6.38.8 at its link either, for that matter).

I know the kernel.org servers are having a few things worked on at the moment, so perhaps this is a side affect of that. Give it a bit longer, and hopefully it will show up eventually.

thanks,

greg k-h

#6 lore raw
In reply to a message not in the archive
Quoted 29 lines · On Monday 06 June 2011 14:47:34 Chase Douglas wrote:
Quoted 20 lines · Ed Tomlinson
Quoted 9 lines · On Thursday 02 June 2011 20:38:35 you wrote:

I'm announcing the release of the 2.6.39.1 kernel.

All users of the 2.6.39 kernel series must upgrade.

The updated 2.6.39.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=summary

Greg,

Just updated to 39.1 and it breaks my magicmouse

[  107.360715] input: Apple Wireless Mouse as /devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4.4/2-4.4:1.0/bluetooth/hci0/hci0:21/input8
[  107.376797] magicmouse 0005:05AC:030D.0005: input,hidraw3: BLUETOOTH HID v0.84 Mouse [Apple Wireless Mouse] on 00:02:72:20:20:1D
[  107.423387] magicmouse 0005:05AC:030D.0005: unable to request touch data (2)
[  107.451216] magicmouse: probe of 0005:05AC:030D.0005 failed with error 2
Quoted 5 lines

and the magicmouse is dead.

reverting 23746a66d7d9e73402c68ef00d708796b97ebd72

makes it work as before.

Hi Ed,

Quoted 1 line
Quoted 8 lines

Thanks!

-- Chase

We pushed this commit to fix the regression you reported where the mouse failed to work in 2.6.39. With the commit, the mouse should be working properly.

Chase,

The patch that fixed .39 here was

(From: Ville Tervo <[email protected]>)

I also played a bit with 1.1 CSR dongle and couldn't find any mask that would be accepted. I think this command can be left out for older than 1.2 devices.

Following patch should do it. Could you verify it. I don't have access to old hw ATM.

net/bluetooth/hci_event.c +10 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */
Quoted 3 lines

Now you are reporting that the mouse fails to work with the commit, but does work without the commit. This is perplexing :). I'm also not sure what you mean by:

The bug referenced in the commit below is: https://bugzilla.kernel.org/show_bug.cgi?id=35022
which was not mine and does show up with the id below in my 39.1 tree...

Quoted 1 line

"reverting 23746a66d7d9e73402c68ef00d708796b97ebd72 makes it work as before"

Bottom line. I tested the correct kernels and the fix for 35022 breaks things here.

Thanks,
Ed

#7 lore raw
Quoted 70 lines · Ed Tomlinson
Quoted 29 lines · On Monday 06 June 2011 14:47:34 Chase Douglas wrote:
Quoted 20 lines · Ed Tomlinson
Quoted 9 lines · On Thursday 02 June 2011 20:38:35 you wrote:

I'm announcing the release of the 2.6.39.1 kernel.

All users of the 2.6.39 kernel series must upgrade.

The updated 2.6.39.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=summary

Greg,

Just updated to 39.1 and it breaks my magicmouse

[  107.360715] input: Apple Wireless Mouse as /devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4.4/2-4.4:1.0/bluetooth/hci0/hci0:21/input8
[  107.376797] magicmouse 0005:05AC:030D.0005: input,hidraw3: BLUETOOTH HID v0.84 Mouse [Apple Wireless Mouse] on 00:02:72:20:20:1D
[  107.423387] magicmouse 0005:05AC:030D.0005: unable to request touch data (2)
[  107.451216] magicmouse: probe of 0005:05AC:030D.0005 failed with error 2
Quoted 5 lines

and the magicmouse is dead.

reverting 23746a66d7d9e73402c68ef00d708796b97ebd72

makes it work as before.

Hi Ed,

Quoted 1 line
Quoted 8 lines

Thanks!

-- Chase

We pushed this commit to fix the regression you reported where the mouse failed to work in 2.6.39. With the commit, the mouse should be working properly.

Chase,

The patch that fixed .39 here was

(From: Ville Tervo <[email protected]>)

I also played a bit with 1.1 CSR dongle and couldn't find any mask that would be accepted. I think this command can be left out for older than 1.2 devices.

Following patch should do it. Could you verify it. I don't have access to old hw ATM.

net/bluetooth/hci_event.c +3 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 10 lines
net/bluetooth/hci_event.c +7 -0
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

-- Chase

#8 lore raw
Quoted 33 lines · Chase Douglas
Quoted 33 lines

I also played a bit with 1.1 CSR dongle and couldn't find any mask that would be accepted. I think this command can be left out for older than 1.2 devices.

Following patch should do it. Could you verify it. I don't have access to old hw ATM.

net/bluetooth/hci_event.c +10 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
Quoted 7 lines

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 2 lines
net/bluetooth/hci_event.c +0 -0
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

It might be because of different versions of CSR dongles you guys might have.

I am still a bit lost here -- Ed, do you say that with the patch above, and with my patch reverted, your device is working properly?

Chase, could you please try the same on your side? Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#11 lore raw
In reply to Chase Douglas
Quoted 79 lines · Chase Douglas
Quoted 78 lines · Ed Tomlinson
Quoted 29 lines · On Monday 06 June 2011 14:47:34 Chase Douglas wrote:
Quoted 20 lines · Ed Tomlinson
Quoted 9 lines · On Thursday 02 June 2011 20:38:35 you wrote:

I'm announcing the release of the 2.6.39.1 kernel.

All users of the 2.6.39 kernel series must upgrade.

The updated 2.6.39.y git tree can be found at:

        git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.39.y.git
and can be browsed at the normal kernel.org git web browser:
        http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.39.y.git;a=summary

Greg,

Just updated to 39.1 and it breaks my magicmouse

[  107.360715] input: Apple Wireless Mouse as /devices/pci0000:00/0000:00:13.2/usb2/2-4/2-4.4/2-4.4:1.0/bluetooth/hci0/hci0:21/input8
[  107.376797] magicmouse 0005:05AC:030D.0005: input,hidraw3: BLUETOOTH HID v0.84 Mouse [Apple Wireless Mouse] on 00:02:72:20:20:1D
[  107.423387] magicmouse 0005:05AC:030D.0005: unable to request touch data (2)
[  107.451216] magicmouse: probe of 0005:05AC:030D.0005 failed with error 2
Quoted 5 lines

and the magicmouse is dead.

reverting 23746a66d7d9e73402c68ef00d708796b97ebd72

makes it work as before.

Hi Ed,

Quoted 1 line
Quoted 8 lines

Thanks!

-- Chase

We pushed this commit to fix the regression you reported where the mouse failed to work in 2.6.39. With the commit, the mouse should be working properly.

Chase,

The patch that fixed .39 here was

(From: Ville Tervo <[email protected]>)

I also played a bit with 1.1 CSR dongle and couldn't find any mask that would be accepted. I think this command can be left out for older than 1.2 devices.

Following patch should do it. Could you verify it. I don't have access to old hw ATM.

net/bluetooth/hci_event.c +10 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
Quoted 7 lines

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 2 lines
net/bluetooth/hci_event.c +0 -0
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

This patch is in my tree. It will be on its way to Linus' tree today.

Gustavo

#9 lore raw
In reply to Jiri Kosina
Quoted 43 lines · On Wednesday 08 June 2011 11:41:03 Jiri Kosina wrote:
Quoted 33 lines · Chase Douglas
Quoted 33 lines

I also played a bit with 1.1 CSR dongle and couldn't find any mask that would be accepted. I think this command can be left out for older than 1.2 devices.

Following patch should do it. Could you verify it. I don't have access to old hw ATM.

net/bluetooth/hci_event.c +10 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
Quoted 7 lines

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 2 lines
net/bluetooth/hci_event.c +0 -0
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

Quoted 5 lines

It might be because of different versions of CSR dongles you guys might have.

I am still a bit lost here -- Ed, do you say that with the patch above, and with my patch reverted, your device is working properly?

Yes. Your understanding is correct.

Thanks,
Ed

#10 lore raw
Quoted 41 lines · Ed Tomlinson
Quoted 41 lines
Quoted 40 lines
Quoted 25 lines

I also played a bit with 1.1 CSR dongle and couldn't find any mask that would be accepted. I think this command can be left out for older than 1.2 devices.

Following patch should do it. Could you verify it. I don't have access to old hw ATM.

net/bluetooth/hci_event.c +3 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 10 lines
net/bluetooth/hci_event.c +7 -0
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

Quoted 7 lines
Quoted 5 lines

It might be because of different versions of CSR dongles you guys might have.

I am still a bit lost here -- Ed, do you say that with the patch above, and with my patch reverted, your device is working properly?

Yes. Your understanding is correct.

Thanks for confirming. I'll wait for Chase's confirmation that it works for him as well (so that we could rule out hardware differencies playing a role), and will then push revert to Linus.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#12 lore raw
In reply to Gustavo F. Padovan
Quoted 35 lines · Gustavo F. Padovan
Quoted 27 lines
Quoted 27 lines
net/bluetooth/hci_event.c +10 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
Quoted 7 lines

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 2 lines
net/bluetooth/hci_event.c +0 -0
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

Quoted 1 line

This patch is in my tree. It will be on its way to Linus' tree today.

Doesn't seem to be present in Linus' tree as of today. Has there been any issue discovered in the meantime?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#13 lore raw
Quoted 37 lines · Jiri Kosina
Quoted 35 lines · Gustavo F. Padovan
Quoted 34 lines
Quoted 19 lines
net/bluetooth/hci_event.c +3 -8
index 19cd4af..86d1e26 100644
@@ -477,14 +477,16 @@ static void hci_setup_event_mask(struct hci_dev *hdev)
         * command otherwise */
        u8 events[8] = { 0xff, 0xff, 0xfb, 0xff, 0x00, 0x00, 0x00, 0x00 };
 
-       /* Events for 1.2 and newer controllers */
-       if (hdev->lmp_ver > 1) {
-               events[4] |= 0x01; /* Flow Specification Complete */
-               events[4] |= 0x02; /* Inquiry Result with RSSI */
-               events[4] |= 0x04; /* Read Remote Extended Features Complete */
-               events[5] |= 0x08; /* Synchronous Connection Complete */
-               events[5] |= 0x10; /* Synchronous Connection Changed */
-       }
+       /* CSR 1.1 dongles does not accept any bitfield so don't try to set
+        * any event mask for pre 1.2 devices */
+       if (hdev->lmp_ver <= 1)

net/bluetooth/hci_event.c static void hci_setup_event_mask(struct hci_dev *hdev) · line 492

Quoted 10 lines
net/bluetooth/hci_event.c +7 -0
+               return;
+
+       events[4] |= 0x01; /* Flow Specification Complete */
+       events[4] |= 0x02; /* Inquiry Result with RSSI */
+       events[4] |= 0x04; /* Read Remote Extended Features Complete */
+       events[5] |= 0x08; /* Synchronous Connection Complete */
+       events[5] |= 0x10; /* Synchronous Connection Changed */
 
        if (hdev->features[3] & LMP_RSSI_INQ)
                events[4] |= 0x04; /* Inquiry Result with RSSI */

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

Quoted 4 lines
Quoted 1 line

This patch is in my tree. It will be on its way to Linus' tree today.

Doesn't seem to be present in Linus' tree as of today. Has there been any issue discovered in the meantime?

No, it is on wireless-2.6 right now. Then goes to net-2.6 and finally linus-2.6.

Gustavo

#14 lore raw
Quoted 11 lines · Gustavo F. Padovan
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

This patch is in my tree. It will be on its way to Linus' tree today.

Doesn't seem to be present in Linus' tree as of today. Has there been any issue discovered in the meantime?

No, it is on wireless-2.6 right now. Then goes to net-2.6 and finally linus-2.6.

Still doesn't seem to be present in Linus' tree today.

Could you please point me to where it is queued now? I am going to revert the "workaround" I have for magicmouse today (which is buggy), but I want to make sure that the actual fix (i.e. Villo's patch) flows in soon.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#15 lore raw
Quoted 12 lines · Jiri Kosina
Quoted 10 lines · Gustavo F. Padovan
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

Where did this patch come from? I don't see it in Linus' tree. If this patch is merged, I can test the a new kernel out to see if we should back out the commit from Jiri. However, right now my magic trackpad (which has the same issue as the magic mouse) works fine on plain 2.6.39.1.

This patch is in my tree. It will be on its way to Linus' tree today.

Doesn't seem to be present in Linus' tree as of today. Has there been any issue discovered in the meantime?

Quoted 7 lines
Quoted 1 line

No, it is on wireless-2.6 right now. Then goes to net-2.6 and finally linus-2.6.

Still doesn't seem to be present in Linus' tree today.

Could you please point me to where it is queued now? I am going to revert the "workaround" I have for magicmouse today (which is buggy), but I want to make sure that the actual fix (i.e. Villo's patch) flows in soon.

Yes, still on wireless-2.6 . :(

I'll check if I can make it go fast.

Gustavo