linux-flexiantxendom0.git
12 years agoUBUNTU: Start new release
Leann Ogasawara [Mon, 12 Mar 2012 15:35:39 +0000 (08:35 -0700)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agonet/hyperv: Use the built-in macro KBUILD_MODNAME for this driver
Haiyang Zhang [Wed, 7 Mar 2012 10:02:00 +0000 (10:02 +0000)]
net/hyperv: Use the built-in macro KBUILD_MODNAME for this driver

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Cc: Olaf Hering <olaf@aepfle.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

(cherry picked from commit d31b20fcc89efa8c5d3f5ea2720e08a286b69a36)

Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: Ubuntu-3.2.0-18.29
Leann Ogasawara [Fri, 9 Mar 2012 15:57:47 +0000 (07:57 -0800)]
UBUNTU: Ubuntu-3.2.0-18.29

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: ata_piix: defer disks to the Hyper-V drivers by default
Andy Whitcroft [Thu, 8 Mar 2012 11:32:35 +0000 (11:32 +0000)]
UBUNTU: SAUCE: ata_piix: defer disks to the Hyper-V drivers by default

When we are hosted on a Microsoft Hyper-V hypervisor the guest disks
are exposed both via the Hyper-V paravirtualised drivers and via an
emulated SATA disk drive.  In this case we want to use the paravirtualised
drivers if we can as they are much more efficient.  Note that the Hyper-V
paravirtualised drivers only expose the virtual hard disk devices, the
CDROM/DVD devices must still be enumerated.

Check the disk type when picking up its ID and if it appears to be a
disk just report it disconnected.

BugLink: http://bugs.launchpad.net/bugs/929545
BugLink: http://bugs.launchpad.net/bugs/942316
Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: SAUCE: (drop after 3.4) ALSA: hda - add id for Atom Cedar Trail HDMI codec
Wu Fengguang [Thu, 23 Feb 2012 07:07:44 +0000 (15:07 +0800)]
UBUNTU: SAUCE: (drop after 3.4) ALSA: hda - add id for Atom Cedar Trail HDMI codec

rtg - Scheduled for upstream, plucked from git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
https://lists.ubuntu.com/archives/kernel-team/2012-March/019232.html

[the order sorted by tiwai]

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: [Config] restore build-% shortcut
Andy Whitcroft [Tue, 6 Mar 2012 15:06:49 +0000 (15:06 +0000)]
UBUNTU: [Config] restore build-% shortcut

Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: SAUCE: drm: give up on edid retries when i2c bus is not responding
Eugeni Dodonov [Thu, 5 Jan 2012 11:34:28 +0000 (09:34 -0200)]
UBUNTU: SAUCE: drm: give up on edid retries when i2c bus is not responding

BugLink: http://bugs.launchpad.net/bugs/855124

This allows to avoid talking to a non-responding bus repeatedly until we
finally timeout after 15 attempts. We can do this by catching the -ENXIO
error, provided by i2c_algo_bit:bit_doAddress call.

Within the bit_doAddress we already try 3 times to get the edid data, so
if the routine tells us that bus is not responding, it is mostly pointless
to keep re-trying those attempts over and over again until we reach final
number of retries.

This change should fix https://bugs.freedesktop.org/show_bug.cgi?id=41059
and improve overall edid detection timing by 10-30% in most cases, and by
a much larger margin in case of phantom outputs (up to 30x in one worst
case).

Timing results for i915-powered machines for 'time xrandr' command:
Machine 1: from 0.840s to 0.290s
Machine 2: from 0.315s to 0.280s
Machine 3: from +/- 4s to 0.184s

Timing results for HD5770 with 'time xrandr' command:
Machine 4: from 3.210s to 1.060s

Reviewed-by: Chris Wilson <chris@hchris-wilson.co.uk>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Sean Finney <seanius@seanius.net>
Tested-by: Soren Hansen <soren@linux2go.dk>
Tested-by: Hernando Torque <sirius@sonnenkinder.org>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41059
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit 9292f37e1f5c79400254dca46f83313488093825 in
git://people.freedesktop.org/~airlied/linux drm-next)

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Start new release
Leann Ogasawara [Mon, 5 Mar 2012 15:07:51 +0000 (07:07 -0800)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: (drop after 3.3) platform/x86: Add driver for Apple gmux device
Seth Forshee [Thu, 1 Mar 2012 15:49:54 +0000 (09:49 -0600)]
UBUNTU: SAUCE: (drop after 3.3) platform/x86: Add driver for Apple gmux device

Apple laptops with hybrid graphics have a device named gmux that
controls the muxing of the LVDS panel between the GPUs as well as screen
brightness. This driver adds support for the gmux device. Only backlight
control is supported initially.

BugLink: http://bugs.launchpad.net/bugs/925544
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Tested-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: Ubuntu-3.2.0-18.28
Leann Ogasawara [Fri, 2 Mar 2012 15:32:18 +0000 (07:32 -0800)]
UBUNTU: Ubuntu-3.2.0-18.28

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Enable aufs
Tim Gardner [Fri, 2 Mar 2012 13:06:13 +0000 (06:06 -0700)]
UBUNTU: [Config] Enable aufs

BugLink: http://bugs.launchpad.net/bugs/943119

https://lists.ubuntu.com/archives/ubuntu-devel/2012-March/034869.html

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: Add ibmvfc and ibmvscsic to d-i/modules-powerpc/nic-modules
Leann Ogasawara [Thu, 1 Mar 2012 20:59:25 +0000 (12:59 -0800)]
UBUNTU: Add ibmvfc and ibmvscsic to d-i/modules-powerpc/nic-modules

BugLink: http://bugs.launchpad.net/bugs/712188

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Enable CONFIG_SCSI_IBMVFC=m for powerpc
Leann Ogasawara [Thu, 1 Mar 2012 18:40:40 +0000 (10:40 -0800)]
UBUNTU: [Config] Enable CONFIG_SCSI_IBMVFC=m for powerpc

BugLink: http://bugs.launchpad.net/bugs/712188

This also resolves a policy mis-match for our Precise kernel config review.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Add ibmveth to d-i/modules-powerpc/nic-modules
Leann Ogasawara [Thu, 1 Mar 2012 17:04:52 +0000 (09:04 -0800)]
UBUNTU: Add ibmveth to d-i/modules-powerpc/nic-modules

BugLink: http://bugs.launchpad.net/bugs/712188

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Rebase to v3.2.9
Leann Ogasawara [Thu, 1 Mar 2012 16:59:30 +0000 (08:59 -0800)]
UBUNTU: Rebase to v3.2.9

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: provide ipmi udeb
Leann Ogasawara [Wed, 29 Feb 2012 18:38:21 +0000 (10:38 -0800)]
UBUNTU: provide ipmi udeb

BugLink: http://bugs.launchpad.net/bugs/942926

Provide ipmi udeb to allow access to critical hardware management
functionality (e.g. the RAID controller in the case of the HP Proliant
servers) in a d-i rescue environment.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: i2c-i801: Add device IDs for Intel Lynx Point
Seth Heasley [Tue, 14 Feb 2012 23:16:11 +0000 (10:16 +1100)]
UBUNTU: SAUCE: i2c-i801: Add device IDs for Intel Lynx Point

BugLink: http://bugs.launchpad.net/bugs/900119

Add the SMBus controller device IDs for the Intel Lynx Point PCH.

Signed-off-by: Seth Heasley <seth.heasley@intel.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
(cherry picked from commit 3ced25f55e139dac4a501c89da7e72b1dc2a85f9 in
linux-next)

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: ata_piix: IDE-mode SATA patch for Intel Lynx Point DeviceIDs
Seth Heasley [Tue, 24 Jan 2012 00:29:50 +0000 (16:29 -0800)]
UBUNTU: SAUCE: ata_piix: IDE-mode SATA patch for Intel Lynx Point DeviceIDs

BugLink: http://bugs.launchpad.net/bugs/900119

This patch adds the IDE-mode SATA DeviceIDs for the Intel Lynx Point PCH.

Signed-off-by: Seth Heasley <seth.heasley@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
(cherry picked from commit a62e2f961c6ab2750136d2ba44153aca260250fc in
linux-next

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: ahci: AHCI-mode SATA patch for Intel Lynx Point DeviceIDs
Seth Heasley [Tue, 24 Jan 2012 00:27:30 +0000 (16:27 -0800)]
UBUNTU: SAUCE: ahci: AHCI-mode SATA patch for Intel Lynx Point DeviceIDs

BugLink: http://bugs.launchpad.net/bugs/900119

This patch adds the AHCI-mode SATA DeviceIDs for the Intel Lynx Point PCH.

Signed-off-by: Seth Heasley <seth.heasley@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
(cherry picked from commit aace5c0e740fa18a057ef55bd7b39762217b1c6d in
linux-next)

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: ALSA: hda - Add Lynx Point HD Audio Controller DeviceIDs
Seth Heasley [Tue, 24 Jan 2012 00:24:31 +0000 (16:24 -0800)]
UBUNTU: SAUCE: ALSA: hda - Add Lynx Point HD Audio Controller DeviceIDs

BugLink: http://bugs.launchpad.net/bugs/900119

This patch adds the HD Audio DeviceIDs for the Intel Lynx Point PCH.

Signed-off-by: Seth Heasley <seth.heasley@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 8bc039a1e15a72da8426b84293723fb7181f0b5e in
linux-next)

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Enable CONFIG_SCSI_IPR=m for powerpc
Leann Ogasawara [Wed, 29 Feb 2012 17:21:50 +0000 (09:21 -0800)]
UBUNTU: [Config] Enable CONFIG_SCSI_IPR=m for powerpc

BugLink: http://bugs.launchpad.net/bugs/943090

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Enable CONFIG_SCSI_IBMVSCSI=m for powerpc
Leann Ogasawara [Wed, 29 Feb 2012 17:09:23 +0000 (09:09 -0800)]
UBUNTU: [Config] Enable CONFIG_SCSI_IBMVSCSI=m for powerpc

BugLink: http://bugs.launchpad.net/bugs/943090

Without this enabled it prevents installation on most IBM system P
machines.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Add CONFIG_NVRAM to config enforcer
Leann Ogasawara [Tue, 28 Feb 2012 15:01:16 +0000 (07:01 -0800)]
UBUNTU: [Config] Add CONFIG_NVRAM to config enforcer

BugLink: http://bugs.launchpad.net/bugs/942193

Ensure CONFIG_NVRAM=y for powerpc and powerpc-smp

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoRevert "UBUNTU: [Config] Enable CONFIG_NVRAM=m"
Leann Ogasawara [Tue, 28 Feb 2012 14:38:56 +0000 (06:38 -0800)]
Revert "UBUNTU: [Config] Enable CONFIG_NVRAM=m"

BugLink: http://bugs.launchpad.net/bugs/942193

This reverts commit 2fc20ccc8d8b2fc43fda81905eecb0c0c744cd94.

CONFIG_NVRAM was originally built in on powerpc but then changed to be
enabled as a module during the Precise config review as there was no
supporting evidence for it to be built in.  However, there is a bug
report stating that this change prevents 'ybin' (the program which
configures the PowerPC bootloader) from working.  So revert this change
and follow up with another commit to add this to the enforcer.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Added hv_netvsc and hv_storvsc to -virtual
Tim Gardner [Mon, 27 Feb 2012 21:24:29 +0000 (14:24 -0700)]
UBUNTU: [Config] Added hv_netvsc and hv_storvsc to -virtual

BugLink: http://bugs.launchpad.net/bugs/942256

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUbuntu: Rebase to v3.2.8
Leann Ogasawara [Mon, 27 Feb 2012 20:37:37 +0000 (12:37 -0800)]
Ubuntu: Rebase to v3.2.8

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: Input: synapticss - Set buttonpad property for all clickpads
Chase Douglas [Fri, 24 Feb 2012 23:05:51 +0000 (15:05 -0800)]
UBUNTU: SAUCE: Input: synapticss - Set buttonpad property for all clickpads

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: Input: synaptics - add second variant of two-button clickpad
Chase Douglas [Fri, 24 Feb 2012 23:05:50 +0000 (15:05 -0800)]
UBUNTU: SAUCE: Input: synaptics - add second variant of two-button clickpad

This is necessary for clickpad detection of Synaptics trackpads in Dell
Mini 10 series of laptops.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: (drop after 3.3) HID: hid-magicmouse: Add pointer and buttonpad proper...
Chase Douglas [Fri, 24 Feb 2012 23:05:49 +0000 (15:05 -0800)]
UBUNTU: SAUCE: (drop after 3.3) HID: hid-magicmouse: Add pointer and buttonpad properties for Magic Trackpad

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

(cherry picked from commit 503f7d53b368c8e4e13a7756220c0536fcf1a034 from
Jiri Kosina's HID for-next branch)
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: [Config] updateconfigs after apparmor patches
Tim Gardner [Mon, 27 Feb 2012 15:05:51 +0000 (08:05 -0700)]
UBUNTU: [Config] updateconfigs after apparmor patches

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoRevert "UBUNTU: SAUCE: AppArmor: Allow dfa backward compatibility with broken userspace"
John Johansen [Thu, 16 Feb 2012 12:24:56 +0000 (04:24 -0800)]
Revert "UBUNTU: SAUCE: AppArmor: Allow dfa backward compatibility with broken userspace"

This reverts commit b6b48be457cc8108d0e21a642c8fda7173ac18a1.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoRevert "AppArmor: compatibility patch for v5 network controll"
John Johansen [Thu, 16 Feb 2012 12:24:35 +0000 (04:24 -0800)]
Revert "AppArmor: compatibility patch for v5 network controll"

This reverts commit d253e5fb4a6b552e7cd2a3c80934ab4f92faec97.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoRevert "AppArmor: compatibility patch for v5 interface"
John Johansen [Thu, 16 Feb 2012 12:24:17 +0000 (04:24 -0800)]
Revert "AppArmor: compatibility patch for v5 interface"

This reverts commit 56f928f0cbf810c047a9a72e4e5c4840800437ec.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoRevert "UBUNTU: SAUCE: AppArmor: Fix unpack of network tables."
John Johansen [Thu, 16 Feb 2012 12:23:54 +0000 (04:23 -0800)]
Revert "UBUNTU: SAUCE: AppArmor: Fix unpack of network tables."

This reverts commit 122a0a96237fd774693d7c4324f9da90545eef15.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoRevert "Revert "ath9k_hw: fix interpretation of the rx KeyMiss flag""
Leann Ogasawara [Wed, 22 Feb 2012 14:43:23 +0000 (06:43 -0800)]
Revert "Revert "ath9k_hw: fix interpretation of the rx KeyMiss flag""

This reverts commit c300a03ec3d7de946d3fc7904dd9571bd8c53923.

We had originally reverted "ath9k_hw: fix interpretation of the rx
KeyMiss flag" due to a regression it introduced (LP:923512).  It appears
a proper fix has come through via upstream stable:

  commit 07c07e52693740326b24511ba6053f3fd52c0942
  Author: Felix Fietkau <nbd@openwrt.org>
  Date:   Sun Feb 5 21:15:17 2012 +0100

    ath9k: fix a WEP crypto related regression

Revert the original revert in favor of the upstream fix.  We can rebase
these out of existence upon the next rebase.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Enable CONFIG_USB_SERIAL_QUATECH_USB2=m on arm and powerpc
Leann Ogasawara [Thu, 23 Feb 2012 18:13:25 +0000 (10:13 -0800)]
UBUNTU: [Config] Enable CONFIG_USB_SERIAL_QUATECH_USB2=m on arm and powerpc

Per the Precise config review, enable CONFIG_USB_SERIAL_QUATECH_USB2=m
on arm and powerpc for consistency across all flavors and arch's.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] Enable CONFIG_USB_SERIAL_QUATECH2=m on arm and powerpc
Leann Ogasawara [Thu, 23 Feb 2012 18:06:40 +0000 (10:06 -0800)]
UBUNTU: [Config] Enable CONFIG_USB_SERIAL_QUATECH2=m on arm and powerpc

Per the Precise config review, enable CONFIG_USB_SERIAL_QUATECH2=m on
arm and powerpc for consistency across all flavors and arch's.

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Rebase to v3.2.7
Leann Ogasawara [Tue, 21 Feb 2012 15:18:40 +0000 (07:18 -0800)]
UBUNTU: Rebase to v3.2.7

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: ubuntu: AUFS -- update to d266b0c5d0693d6383976ee54b9e2c0fa9a3f5b0
Andy Whitcroft [Thu, 16 Feb 2012 20:08:20 +0000 (20:08 +0000)]
UBUNTU: ubuntu: AUFS -- update to d266b0c5d0693d6383976ee54b9e2c0fa9a3f5b0

Andy Whitcroft (1):
      UBUNTU: ubuntu: AUFS -- suppress benign plink warning messages

J. R. Okajima (10):
      aufs: headers 1/2, bugfix, where the pr_fmt macro definition
      aufs: headers 2/2, simply refined
      aufs: tiny, update the year
      aufs: update the donator
      aufs stdalone: include path in Makefile
      aufs: tiny, update the year
      aufs: tiny, remove a duplicated header by accident
      aufs: tiny, restore the removed header files for 2.6.38
      make aufs-version 3.2
      aufs3.2 20120109

Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: ubuntu: AUFS -- sort out the relative header paths
Andy Whitcroft [Thu, 16 Feb 2012 20:07:29 +0000 (20:07 +0000)]
UBUNTU: ubuntu: AUFS -- sort out the relative header paths

Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: ubuntu: AUFS -- adapt to the new changelog handling
Andy Whitcroft [Thu, 16 Feb 2012 18:27:25 +0000 (18:27 +0000)]
UBUNTU: ubuntu: AUFS -- adapt to the new changelog handling

Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: Bump ABI
Leann Ogasawara [Fri, 24 Feb 2012 19:13:32 +0000 (11:13 -0800)]
UBUNTU: Bump ABI

Ignore: yes
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Start new release
Leann Ogasawara [Fri, 24 Feb 2012 19:12:45 +0000 (11:12 -0800)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Ubuntu-3.2.0-17.27
Leann Ogasawara [Fri, 24 Feb 2012 18:38:53 +0000 (10:38 -0800)]
UBUNTU: Ubuntu-3.2.0-17.27

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: drm/i915: fix operator precedence when enabling RC6p
Eugeni Dodonov [Fri, 24 Feb 2012 04:30:42 +0000 (20:30 -0800)]
UBUNTU: SAUCE: drm/i915: fix operator precedence when enabling RC6p

As noticed by Torsten Kaiser, the operator precedence can play tricks
with us here.

CC: Dave Airlie <airlied at redhat.com>
CC: Jesse Barnes <jbarnes at virtuousgeek.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov at intel.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Start new release
Leann Ogasawara [Tue, 21 Feb 2012 14:40:10 +0000 (06:40 -0800)]
UBUNTU: Start new release

Ignore: yes
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: Ubuntu-3.2.0-17.26
Leann Ogasawara [Fri, 17 Feb 2012 17:36:17 +0000 (09:36 -0800)]
UBUNTU: Ubuntu-3.2.0-17.26

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoInput: bcm5974 - set BUTTONPAD property
Jussi Pakkanen [Wed, 11 Jan 2012 07:04:16 +0000 (23:04 -0800)]
Input: bcm5974 - set BUTTONPAD property

Some bcm5974 trackpads have a physical button beneath the physical surface.
This patch sets the property bit so user space applications can detect the
trackpad type and act accordingly.

Signed-off-by: Jussi Pakkanen <jussi.pakkanen@canonical.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
(cherry picked from commit 52965cc012f7a3cf35f06485ec275ebf3b3fddae)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: Bump ABI
Leann Ogasawara [Thu, 16 Feb 2012 20:59:05 +0000 (12:59 -0800)]
UBUNTU: Bump ABI

Ignore: yes
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: drm/i915: Enable RC6 by default on sandybridge.
Robert Hooker [Thu, 16 Feb 2012 16:29:06 +0000 (16:29 +0000)]
UBUNTU: SAUCE: drm/i915: Enable RC6 by default on sandybridge.

Intel claims that RC6 issues are triggered by RC6+ states and that plain
RC6 is the one responsible for most energy savings.  So in an effort to
provide our Sandy Bridge users the most power savings by default, we
applied a patch to disable RC6p on Sandy Bridge.  As a follow on, this
patch then enables RC6 by default.

Signed-off-by: Robert Hooker <robert.hooker@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: SAUCE: drm/i915: do not enable RC6p on Sandy Bridge
Eugeni Dodonov [Tue, 14 Feb 2012 21:30:28 +0000 (13:30 -0800)]
UBUNTU: SAUCE: drm/i915: do not enable RC6p on Sandy Bridge

With base on latest findings, RC6p seems to be respondible for RC6-related
issues on Sandy Bridge platform. To work-around those issues, the previous
solution was to completely disable RC6 on Sandy Bridge for the past few
releases, even if plain RC6 was not giving any issues.

What this patch does is preventing RC6p from being enabled on Sandy Bridge
even if users enable RC6 via a kernel parameter. So it won't change the
defaults in any way, but will ensure that if users do enable RC6 manually
it won't break their machines by enabling this extra state.

Proper fix for this (enabling specific RC6 states according to the GPU
generation) were proposed for the -next kernel, but we are too late in the
release process now to pick such changes.

CC: Keith Packard <keithp@keithp.com>
CC: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>

12 years agoUBUNTU: [Config] CONFIG_X86_NUMACHIP=y
Tim Gardner [Thu, 16 Feb 2012 18:50:02 +0000 (11:50 -0700)]
UBUNTU: [Config] CONFIG_X86_NUMACHIP=y

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agox86/numachip: Drop unnecessary conflict with EDAC
Daniel J Blueman [Wed, 25 Jan 2012 06:35:49 +0000 (14:35 +0800)]
x86/numachip: Drop unnecessary conflict with EDAC

EDAC detection no longer crashes multi-node systems, so don't
conflict on it with NumaChip.

Signed-off-by: Daniel J Blueman <daniel@numascale-asia.com>
Cc: Steffen Persvold <sp@numascale.com>
Link: http://lkml.kernel.org/r/1327473349-28395-1-git-send-email-daniel@numascale-asia.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
(cherry picked from commit 3fe54564a61f72982032423d24041dca30617ca2)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agox86: Add NumaChip support
Steffen Persvold [Mon, 5 Dec 2011 16:07:26 +0000 (00:07 +0800)]
x86: Add NumaChip support

Adds support for Numascale NumaChip large-SMP systems. It is
needed to enable the booting of more than ~168 cores.

v2:
 - [Steffen] enumerate only accessible northbridges
 - [Daniel] rediffed and validated against 3.1-rc10

v3:
 - [Daniel] use x86_init core numbering override
 - [Daniel] cleanups as per feedback

v4:
 - [Daniel] use updated x86_cpuinit override

v5:
 - drop disabling interrupts locally, as ISR write is atomic; drop delay
 - added read-mostly annotations where appropriate
 - require CONFIG_SMP, so drop conditional path

Workload tested on 96 cores/16 sockets.

Signed-off-by: Steffen Persvold <sp@numascale.com>
Signed-off-by: Daniel J Blueman <daniel@numascale-asia.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Link: http://lkml.kernel.org/r/1323101246-2400-1-git-send-email-daniel@numascale-asia.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
(cherry picked from commit 44b111b519160e33fdc41eadb39af86a24707edf)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agox86: Add x86_init platform override to fix up NUMA core numbering
Daniel J Blueman [Mon, 5 Dec 2011 08:20:37 +0000 (16:20 +0800)]
x86: Add x86_init platform override to fix up NUMA core numbering

Add an x86_init vector for handling inconsistent core numbering.
This is useful for multi-fabric platforms, such as Numascale
NumaConnect.

v2:
 - use struct x86_cpuinit_ops
 - provide default fall-back function to warn

Signed-off-by: Daniel J Blueman <daniel@numascale-asia.com>
Cc: Steffen Persvold <sp@numascale.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Link: http://lkml.kernel.org/r/1323073238-32686-2-git-send-email-daniel@numascale-asia.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
(cherry picked from commit 64be4c1c2428e148de6081af235e2418e6a66dda)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agox86: Make flat_init_apic_ldr() available
Daniel J Blueman [Mon, 5 Dec 2011 08:20:36 +0000 (16:20 +0800)]
x86: Make flat_init_apic_ldr() available

Allow flat_init_apic_ldr() to be used outside the compilation
unit for similar APIC implementations.

Signed-off-by: Daniel J Blueman <daniel@numascale-asia.com>
Cc: Steffen Persvold <sp@numascale.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Link: http://lkml.kernel.org/r/1323073238-32686-1-git-send-email-daniel@numascale-asia.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
(cherry picked from commit 9a0ebfbe3f1007008d198ccc6b86783cdb312fec)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: security: unconditionally chain to Yama LSM
Kees Cook [Tue, 29 Jun 2010 18:07:44 +0000 (11:07 -0700)]
UBUNTU: SAUCE: security: unconditionally chain to Yama LSM

This patch forces the LSM to always chain through the Yama LSM
regardless of which LSM is selected as the primary LSM.

This is not intended for upstream. This is, however, what Ubuntu
and ChromeOS are doing.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: Yama: add link restrictions
Kees Cook [Wed, 30 Nov 2011 22:20:13 +0000 (14:20 -0800)]
UBUNTU: SAUCE: Yama: add link restrictions

Add symlink and hardlink restrictions that have shown real-world security
benefits, along with sysctl knobs to control them.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: (drop after 3.3) Yama: add PR_SET_PTRACER_ANY
Kees Cook [Fri, 20 Jan 2012 01:58:35 +0000 (17:58 -0800)]
UBUNTU: SAUCE: (drop after 3.3) Yama: add PR_SET_PTRACER_ANY

For a process to entirely disable ptrace restrictions, it can use the
special PR_SET_PTRACER_ANY pid to indicate that any otherwise allowed
process may ptrace it. This is stronger than calling PR_SET_PTRACER with
pid "1" because it includes processes in external pid namespaces.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: (drop after 3.3) security: Yama LSM
Kees Cook [Mon, 21 Jun 2010 20:07:07 +0000 (13:07 -0700)]
UBUNTU: SAUCE: (drop after 3.3) security: Yama LSM

This adds the Yama Linux Security Module to collect DAC security
improvements (specifically just ptrace restrictions for now) that have
existed in various forms over the years and have been carried outside the
mainline kernel by other Linux distributions like Openwall and grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: SAUCE: (drop after 3.3) security: create task_free security callback
Kees Cook [Tue, 29 Jun 2010 05:34:04 +0000 (22:34 -0700)]
UBUNTU: SAUCE: (drop after 3.3) security: create task_free security callback

The current LSM interface to cred_free is not sufficient for allowing
an LSM to track the life and death of a task. This patch adds the
task_free hook so that an LSM can clean up resources on task death.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoUBUNTU: deviations -- note the source of the Hyper-V updates
Andy Whitcroft [Thu, 16 Feb 2012 14:44:31 +0000 (14:44 +0000)]
UBUNTU: deviations -- note the source of the Hyper-V updates

Note where we are getting the Hyper-V updates and why.

Signed-off-by: Andy Whitcroft <apw@canonical.com>

12 years agoUBUNTU: dropped hv_mouse
Tim Gardner [Wed, 15 Feb 2012 15:03:12 +0000 (08:03 -0700)]
UBUNTU: dropped hv_mouse

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Move the storage driver out of the staging area
K. Y. Srinivasan [Thu, 9 Feb 2012 22:14:48 +0000 (14:14 -0800)]
Staging: hv: storvsc: Move the storage driver out of the staging area

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Consolidate all the wire protocol definitions
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:08 +0000 (12:38 -0800)]
Staging: hv: storvsc: Consolidate all the wire protocol definitions

Consolidate all definitions that support communication with the host.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Consolidate the request structure
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:07 +0000 (12:38 -0800)]
Staging: hv: storvsc: Consolidate the request structure

Consolidate the request structure by getting rid of struct hv_storvsc_request.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Get rid of some unused defines
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:06 +0000 (12:38 -0800)]
Staging: hv: storvsc: Get rid of some unused defines

Get rid of some unused defines.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup some protocol related constants
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:05 +0000 (12:38 -0800)]
Staging: hv: storvsc: Cleanup some protocol related constants

Cleanup some protocol related constants.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup the code for generating protocol version
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:04 +0000 (12:38 -0800)]
Staging: hv: storvsc: Cleanup the code for generating protocol version

Cleanup the code for generating protocol version.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Miscellaneous cleanup of storvsc driver
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:03 +0000 (12:38 -0800)]
Staging: hv: storvsc: Miscellaneous cleanup of storvsc driver

Miscellaneous cleanup of storvsc driver - get rid of unnecessary defines and
use fixed size types for structures used for communication with the host.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Rename the context field in hv_storvsc_request
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:02 +0000 (12:38 -0800)]
Staging: hv: storvsc: Rename the context field in hv_storvsc_request

Rename the context field in hv_storvsc_request. As part of this change
fix the type of this field.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Get rid of the on_io_completion in hv_storvsc_request
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:01 +0000 (12:38 -0800)]
Staging: hv: storvsc: Get rid of the on_io_completion in hv_storvsc_request

Get rid of the on_io_completion field  in struct hv_storvsc_request. As part of this
relocate the bounce buffer handling code (to avoid having forward declarations).

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Add a comment to explain life-cycle management
K. Y. Srinivasan [Thu, 12 Jan 2012 20:38:00 +0000 (12:38 -0800)]
Staging: hv: storvsc: Add a comment to explain life-cycle management

Add a comment to explain life-cycle management and fix format issue.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Move and cleanup storvsc_remove()
K. Y. Srinivasan [Thu, 12 Jan 2012 20:37:59 +0000 (12:37 -0800)]
Staging: hv: storvsc: Move and cleanup storvsc_remove()

Relocate the storvsc_remove() function to a different location in the file
and invoke scsi_host_put() only after all the cleanup.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup storvsc_host_reset_handler()
K. Y. Srinivasan [Thu, 12 Jan 2012 20:37:58 +0000 (12:37 -0800)]
Staging: hv: storvsc: Cleanup storvsc_host_reset_handler()

Cleanup storvsc_host_reset_handler() by getting rid of storvsc_host_reset().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Introduce defines for srb status codes
K. Y. Srinivasan [Thu, 12 Jan 2012 20:37:57 +0000 (12:37 -0800)]
Staging: hv: storvsc: Introduce defines for srb status codes

Introduce defines for srb status codes.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup storvsc_queuecommand()
K. Y. Srinivasan [Thu, 12 Jan 2012 20:37:56 +0000 (12:37 -0800)]
Staging: hv: storvsc: Cleanup storvsc_queuecommand()

Cleanup storvsc_queuecommand(). As part of this cleanup, rename the function to
check if the scsi command can be sent to the host, consolidate error recovery
and get rid of some dead code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup storvsc_probe()
K. Y. Srinivasan [Thu, 12 Jan 2012 20:37:55 +0000 (12:37 -0800)]
Staging: hv: storvsc: Cleanup storvsc_probe()

Cleanup storvsc_probe(). As part of this cleanup, get rid of
storvsc_get_ide_info() by inlining the necessary code.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup some comments
K. Y. Srinivasan [Thu, 12 Jan 2012 20:37:54 +0000 (12:37 -0800)]
Staging: hv: storvsc: Cleanup some comments

Use consistent format for comments and get rid of some unnecessary
comments.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoHID: hyperv: Properly disconnect the input device
K. Y. Srinivasan [Wed, 18 Jan 2012 16:57:14 +0000 (08:57 -0800)]
HID: hyperv: Properly disconnect the input device

When we unload the mouse driver, properly disconnect the input device.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Fuzhou Chen <fuzhouch@microsoft.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit c1c454b8691cc95aa83f19273ed7845914c70e83)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoHID: hv_mouse: Properly add the hid device
K. Y. Srinivasan [Wed, 30 Nov 2011 16:52:23 +0000 (08:52 -0800)]
HID: hv_mouse: Properly add the hid device

We need to properly add the hid device to correctly initialize the sysfs state.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Fuzhou Chen <fuzhouch@microsoft.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit 74c4fb058083b47571a4f76dcfce95085f2d8098)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoHID: Move the hid-hyperv driver out of staging
K. Y. Srinivasan [Thu, 17 Nov 2011 16:47:29 +0000 (08:47 -0800)]
HID: Move the hid-hyperv driver out of staging

The file  hid-hyperv.c implements a hid compliant mouse driver for use on a
Hyper-V based system. This driver is currently in the staging area and as part
of the effort to move this driver out of staging, I had posted the driver code
for community review a few weeks ago. This current patch addresses all the
review comments I have gotten to date. All the relevant patches have already
been submitted to the staging tree as well.

As per Greg's suggestion, this patch does not get rid of the code from
the staging area. Once the mouse driver lands under the hid directory,
we will cleanup the staging directory.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit b95f5bcb811e3905b5376f87789da8d097fee682)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Fix the page buffer when an RNDIS message goes beyond page boundary
Haiyang Zhang [Thu, 2 Feb 2012 07:18:00 +0000 (07:18 +0000)]
net/hyperv: Fix the page buffer when an RNDIS message goes beyond page boundary

There is a possible data corruption if an RNDIS message goes beyond page
boundary in the sending code path. This patch fixes the problem.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit c31c151b1c4a29da4dc92212aa8648fb4f8557b9)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Use netif_tx_disable() instead of netif_stop_queue() when necessary
Haiyang Zhang [Thu, 2 Feb 2012 07:17:59 +0000 (07:17 +0000)]
net/hyperv: Use netif_tx_disable() instead of netif_stop_queue() when necessary

For code path not on the xmit, use netif_tx_disable() instead of
netif_stop_queue() to ensure other CPUs are not doing xmit.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 0a282538cc1977655004cdb2eb25dd2b63f20637)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: fix the issue that large packets be dropped under bridge
Wei Yongjun [Wed, 1 Feb 2012 20:17:23 +0000 (20:17 +0000)]
net/hyperv: fix the issue that large packets be dropped under bridge

The packets with size larger than 1452 will be dropped by bridge
which with two hyperv netdevice ports. This cause by hyperv netvsc
driver always copy the trailer padding to the data packet, and then
the skb received from netdevice may include wrong skb->len (20 bytes
larger than the real size normally). The captured packet may like
this:

  Ethernet II, Src: Microsof_00:00:07 (00:15:5d:00:00:07),
               Dst: HewlettP_00:00:4e (00:1f:29:00:00:4e)
    Destination: HewlettP_e6:00:4e (00:1f:29:00:00:4e)
    Source: Microsof_f6:6d:07 (00:15:5d:f6:6d:07)
    Type: IP (0x0800)
    Trailer: 1415161718191A1B1C1D1E1F20212223
    Frame check sequence: 0x24252627 [incorrect, should be 0x7c2e5a5e]

The following command help to reproduction it, and the ping ICMP
packets will be dropped by bridge.
  $ ping ip -s 1453

This patch fixed it by removing the trailer padding from the data
packet.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 4b8a8bc9249f144803d840f2f7608ee9bbf1ea51)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: rx_bytes should account the ether header size
Wei Yongjun [Sun, 29 Jan 2012 22:14:02 +0000 (22:14 +0000)]
net/hyperv: rx_bytes should account the ether header size

skb->len after call eth_type_trans() does not include the ether
header size, but rx_bytes should account it.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 48c3883999cb06246911e29356d194f96f1c75ef)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: fix possible memory leak in do_set_multicast()
Wei Yongjun [Tue, 24 Jan 2012 10:21:28 +0000 (10:21 +0000)]
net/hyperv: fix possible memory leak in do_set_multicast()

do_set_multicast() may not free the memory malloc in
netvsc_set_multicast_list().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit c11bf1c8baff170fa478adc04964da519d160e62)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Add support for jumbo frame up to 64KB
Haiyang Zhang [Thu, 15 Dec 2011 21:45:17 +0000 (13:45 -0800)]
net/hyperv: Add support for jumbo frame up to 64KB

Allow the user set the MTU up to 65536 for Linux guests running on
Hyper-V 2008 R2 or later.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 4d447c9a6ebc0142d320f075c5bac6d202a79fd4)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Add NETVSP protocol version negotiation
Haiyang Zhang [Thu, 15 Dec 2011 21:45:16 +0000 (13:45 -0800)]
net/hyperv: Add NETVSP protocol version negotiation

Automatically negotiate the highest protocol version mutually recognized by
both host and guest.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit f157e78de5923dfb209355f3005ce1b5d64f7998)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Remove unnecessary kmap_atomic in netvsc driver
Haiyang Zhang [Thu, 15 Dec 2011 21:45:15 +0000 (13:45 -0800)]
net/hyperv: Remove unnecessary kmap_atomic in netvsc driver

__get_free_pages() doesn't return HI memory, so the memory is always mapped.
kmap_atomic() is not necessary here. This patch removes the kmap_atomic()
calls and related code for locking and page manipulation.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 453263421f88b4a7e508c2e7b639c97e99c5b118)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Fix the stop/wake queue mechanism
Haiyang Zhang [Fri, 2 Dec 2011 19:56:25 +0000 (11:56 -0800)]
net/hyperv: Fix the stop/wake queue mechanism

The ring buffer is only used to pass meta data for outbound packets. The
actual payload is accessed by DMA from the host. So the stop/wake queue
mechanism based on counting and comparing number of pages sent v.s. number
of pages in the ring buffer is wrong. Also, there is a race condition in
the stop/wake queue calls, which can stop xmit queue forever.

The new stop/wake queue mechanism is based on the actual bytes used by
outbound packets in the ring buffer. The check for number of outstanding
sends after stop queue prevents the race condition that can cause wake
queue happening earlier than stop queue.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reported-by: Long Li <longli@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 1d06825b0ede541f63b5577435abd2fc649a9b5e)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Add support for promiscuous mode setting
Haiyang Zhang [Wed, 30 Nov 2011 15:19:08 +0000 (07:19 -0800)]
net/hyperv: Add support for promiscuous mode setting

Add code to accept promiscuous mode setting, and pass it to
RNDIS filter.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit d426b2e3d91f8ec3203f8852e7ad0153b5dfdf71)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agonet/hyperv: Fix long lines in netvsc.c
Haiyang Zhang [Wed, 30 Nov 2011 15:19:07 +0000 (07:19 -0800)]
net/hyperv: Fix long lines in netvsc.c

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit c18132005e711c07523d8c6602e5b2266ab9a0f2)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Fix a bug in create_bounce_buffer()
K. Y. Srinivasan [Wed, 7 Dec 2011 15:15:52 +0000 (07:15 -0800)]
Staging: hv: storvsc: Fix a bug in create_bounce_buffer()

Set the length field of the scatter gather elements correctly when we create
the bounce buffer. When we use the bounce buffer for a "write" operation,
the act of copying to the bounce buffer, correctly deals with this issue.
However, on the "read" side, the current code was not correctly setting
the buffer length. Fix this bug. Note that when we copy from the bounce
buffer (for the read case), the amount we copy is controlled by the original
scatter gather list given to the driver.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reported-by: Dadok Milan <dadok@kvados.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 6e8087a4fae41ae1518babbf1ef46f105d702bfd)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: update TODO file
Greg Kroah-Hartman [Thu, 1 Dec 2011 18:38:42 +0000 (10:38 -0800)]
Staging: hv: update TODO file

Hank is no longer at Microsoft, so remove his email address as it
bounces.

Cc: KY Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 0c9d19646249e0124f1d82fb939e5ba76cb1af3c)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: remove hv_mouse driver as it's now in the hid directory
Greg Kroah-Hartman [Thu, 1 Dec 2011 18:37:09 +0000 (10:37 -0800)]
Staging: hv: remove hv_mouse driver as it's now in the hid directory

This removes the hv_mouse driver as it's now in Jiri's HID tree in the
"proper" place.

Cc: KY Srinivasan <kys@microsoft.com>
Cc: Jiri Kosina <jikos@jikos.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit fe17a8c009780d2fd1604a3fa0918815ba39aa8b)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Implement per device memory pools
K. Y. Srinivasan [Thu, 1 Dec 2011 12:59:20 +0000 (04:59 -0800)]
Staging: hv: storvsc: Implement per device memory pools

The current code implemented a per-HBA memory pool mechanism. For IDE disks
managed by this driver, there is a one to one correspondance between the
block device and the associated virtual HBA and since currently only IDE devices
can be the boot device, this addressed the deadlock issues that were raised during
the review process. This patch implements a per-lun memory pool mechanism.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit ce3e301c442f7beffd049908a007697753766cf7)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Fix a bug in copy_from_bounce_buffer()
K. Y. Srinivasan [Thu, 1 Dec 2011 12:59:19 +0000 (04:59 -0800)]
Staging: hv: storvsc: Fix a bug in copy_from_bounce_buffer()

Fix a bug in copy_from_bounce_buffer().

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 10c43dd4c4403d35fc6477d547aa3a38b466b310)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Fix a bug in storvsc_command_completion()
K. Y. Srinivasan [Thu, 1 Dec 2011 12:59:18 +0000 (04:59 -0800)]
Staging: hv: storvsc: Fix a bug in storvsc_command_completion()

Fix a bug in storvsc_command_completion() that leaks memory when scatter/gather
lists are used on the "write" side.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit a768a76d55c2798bbd86b81f50ef740312d69935)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>

12 years agoStaging: hv: storvsc: Cleanup storvsc_device_alloc()
K. Y. Srinivasan [Thu, 1 Dec 2011 12:59:17 +0000 (04:59 -0800)]
Staging: hv: storvsc: Cleanup storvsc_device_alloc()

The code in storvsc_device_alloc() is not needed as this would be
done by default. Get rid of it. We still keep the function as we use
this hook to allocate per-LUN memory pools in a later patch.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
(cherry picked from commit 2781866484624fabbe373b95cfd20d44d2c9a69e)

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>