opensuse:kernel.git
5 years agoefi: Distinguish between "remaining space" and actually used
Lee, Chun-Yi [Mon, 22 Apr 2013 13:32:35 +0000 (21:32 +0800)]
efi: Distinguish between "remaining space" and actually used
space (fate#314499, fate#314509).

suse-commit: ca37e7e8dc8adeb8a1989661ab5ba80f9660c4da
Note: This patch series did not apply

5 years agoefi: Pass boot services variable info to runtime code
Lee, Chun-Yi [Mon, 22 Apr 2013 13:32:35 +0000 (21:32 +0800)]
efi: Pass boot services variable info to runtime code
(fate#314499, fate#314509).

suse-commit: b0b28b77a7418ae50c3783bf6d886d50d0a96e82
Note: This patch series did not apply

5 years agoMove utf16 functions to kernel core and rename (fate#314499,
Lee, Chun-Yi [Mon, 22 Apr 2013 13:32:35 +0000 (21:32 +0800)]
Move utf16 functions to kernel core and rename (fate#314499,
fate#314509,).

suse-commit: e56f5252105691fc0308ec433ec700688d2a9888
Note: This patch series did not apply

5 years agox86,efi: Check max_size only if it is non-zero (fate#314499,
Lee, Chun-Yi [Mon, 22 Apr 2013 13:32:35 +0000 (21:32 +0800)]
x86,efi: Check max_size only if it is non-zero (fate#314499,
fate#314509).

suse-commit: 435dc5ef5ec4c88414687edb12f8ea41c57e2763

5 years agox86, efivars: firmware bug workarounds should be in platform
Lee, Chun-Yi [Mon, 22 Apr 2013 13:32:35 +0000 (21:32 +0800)]
x86, efivars: firmware bug workarounds should be in platform
code (fate#314499, fate#314509).

suse-commit: c9fe293ccad6a02743e5f05e098ec21c7576ef5e

5 years agox86, efi: Set runtime_version to the EFI spec revision
Lee, Chun-Yi [Mon, 22 Apr 2013 13:32:35 +0000 (21:32 +0800)]
x86, efi: Set runtime_version to the EFI spec revision
(fate#314499, fate#314509).

suse-commit: 0f33512601a94d3fee3d71d8930206eceb24997f

5 years ago[PATCH 3.0-stable] Revert "sysfs: fix race between readdir
Jiri Kosina [Mon, 22 Apr 2013 13:23:53 +0000 (15:23 +0200)]
[PATCH 3.0-stable] Revert "sysfs: fix race between readdir
and lseek" (bnc#816443).

suse-commit: 7dd2e1e18ee591984e60ed3a1d0f8978436057f3

5 years agoRevert "8021q: fix a potential use-after-free".
Michal Kubecek [Mon, 22 Apr 2013 13:09:34 +0000 (15:09 +0200)]
Revert "8021q: fix a potential use-after-free".

suse-commit: 275a37de7fae6180ef75935cba80d5bfb985cf1f

5 years agosupported.conf: Added missing deps for pNFS.
Jeff Mahoney [Mon, 22 Apr 2013 00:11:58 +0000 (20:11 -0400)]
supported.conf: Added missing deps for pNFS.

suse-commit: e509b5049fc173f758ae07f341426771b520572b

5 years agosupported.conf: added pNFS modules (bnc#811085).
Jeff Mahoney [Sun, 21 Apr 2013 19:03:36 +0000 (15:03 -0400)]
supported.conf: added pNFS modules (bnc#811085).

suse-commit: 0a87c7709d349e8b48114270bee755308d38d94d

5 years agobfa: fix for Brocade FC Direct Attach LUN discovery failure
Hannes Reinecke [Sat, 13 Apr 2013 14:37:26 +0000 (16:37 +0200)]
bfa: fix for Brocade FC Direct Attach LUN discovery failure
(bnc#816037).

suse-commit: 6484a0fe9469a0e0bd84c1d67d1373a4a6409057

5 years agobfa: fix faulty handling of states in lps state machine
Hannes Reinecke [Sat, 13 Apr 2013 14:37:26 +0000 (16:37 +0200)]
bfa: fix faulty handling of states in lps state machine
(bnc#816022).

suse-commit: 55f71527b89901e23775ef2f1eff98ed5016b2f4

5 years agocciss: kdump fails on SmartArray P410i (bnc#812740).
Hannes Reinecke [Sat, 13 Apr 2013 14:24:01 +0000 (16:24 +0200)]
cciss: kdump fails on SmartArray P410i (bnc#812740).

suse-commit: c19b9809465ab8bc3590820a3a480c9115216a3c

5 years agoMerge branch 'SLE11-SP3' of ssh://kerncvs.suse.de/home/git/kernel-source into SLE11-SP3
Michal Srb [Fri, 19 Apr 2013 14:03:26 +0000 (16:03 +0200)]
Merge branch 'SLE11-SP3' of ssh://kerncvs.suse.de/home/git/kernel-source into SLE11-SP3

suse-commit: d0cd647f5af1376312626beaffd9932bc5baed8d

5 years agoFix DRM mismerges.
Michal Srb [Fri, 19 Apr 2013 14:02:02 +0000 (16:02 +0200)]
Fix DRM mismerges.

- Refresh patches.drm/1822-drm-i915-kick-any-firmware-framebuffers-before-claiming-the-gtt.
- Refresh patches.drm/1874-drm-i915-agp-intel-gtt-prep-work-for-direct-setup.
- Refresh patches.drm/2271-merge-tag-v3-6-rc2-into-drm-intel-next.
- Refresh patches.drm/2328-drm-i915-add-workarounds-directly-to-gen6_render_ring_flush.
- Refresh patches.drm/3029-drm-i915-stop-using-agp-layer-for-gen6.

suse-commit: aa02d6b2868013baf608c3fd7a5812ac1999c69f

5 years agoqla4xxx: v5.03.00.05.11.3-k0 (FATE#313902 bnc#815913).
Lee Duncan [Fri, 19 Apr 2013 13:59:39 +0000 (06:59 -0700)]
qla4xxx: v5.03.00.05.11.3-k0 (FATE#313902 bnc#815913).

suse-commit: 659ba5e92163b7f059a7d49612099c7bee7bbc07

5 years agoqla4xxx: Assign values using correct datatype (FATE#313902
Lee Duncan [Fri, 19 Apr 2013 13:59:39 +0000 (06:59 -0700)]
qla4xxx: Assign values using correct datatype (FATE#313902
bnc#815913).

suse-commit: c54e086b122bb4fd3eecc6c01a066ad4e984276c

5 years agoqla4xxx: Fix smatch warnings (FATE#313902 bnc#815913).
Lee Duncan [Fri, 19 Apr 2013 13:59:39 +0000 (06:59 -0700)]
qla4xxx: Fix smatch warnings (FATE#313902 bnc#815913).

suse-commit: c0dda60f69eef562097b25952e66faa74020b9d9

5 years agoqla4xxx: Fix sparse warning for qla4xxx_sysfs_ddb_tgt_create
Lee Duncan [Fri, 19 Apr 2013 13:59:39 +0000 (06:59 -0700)]
qla4xxx: Fix sparse warning for qla4xxx_sysfs_ddb_tgt_create
(FATE#313902 bnc#815913).

suse-commit: 52a022687e9b1a50c0aaa9f783a8c1173a6bf192

5 years agoqla4xxx: Silence gcc warning (FATE#313902 bnc#815913).
Lee Duncan [Fri, 19 Apr 2013 13:59:39 +0000 (06:59 -0700)]
qla4xxx: Silence gcc warning (FATE#313902 bnc#815913).

suse-commit: c5972346419c24463a906aab5f4bafd73a7abedf

5 years agoipr: Need to reset adapter after the 6th EEH error (bnc#816120).
Torsten Duwe [Fri, 19 Apr 2013 12:09:12 +0000 (14:09 +0200)]
ipr: Need to reset adapter after the 6th EEH error (bnc#816120).

suse-commit: 4ea7c1acd7ce13043c63f7112cd5144e779567da

5 years agoipr: SATA DVD probing failed with 64bit adapter (bnc#816118).
Torsten Duwe [Fri, 19 Apr 2013 12:09:12 +0000 (14:09 +0200)]
ipr: SATA DVD probing failed with 64bit adapter (bnc#816118).

suse-commit: a944bc2e724c3d5bbd6d7ad3d35b9f90b3ca1b96

5 years agozcrypt: ap bus rescan problem when toggle crypto adapters on/off
John Jolly [Thu, 18 Apr 2013 23:46:59 +0000 (01:46 +0200)]
zcrypt: ap bus rescan problem when toggle crypto adapters on/off
(bnc#815926, LTC#91798).

suse-commit: 561472ede8477865bbb848e503a96adcf68562a5

5 years agoqlcnic: Bump up the version to 5.1.38 (bnc#804494).
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
qlcnic: Bump up the version to 5.1.38 (bnc#804494).

suse-commit: 52d44dac0055e12fea5a7e2b410771df0f2ca543

5 years agoqlcnic: Clear link status when interface is down (bnc#804494).
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
qlcnic: Clear link status when interface is down (bnc#804494).

suse-commit: 5990bdb3093d77668d55f0728fd4f799587ca44e

5 years agoqlcnic: change mdelay to msleep (bnc#804494).
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
qlcnic: change mdelay to msleep (bnc#804494).

suse-commit: b041586e6be79bd3428de15d27233e7f35e2d205

5 years agoqlcnic: Log warning message for 83xx adapter in MSI mode
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
qlcnic: Log warning message for 83xx adapter in MSI mode
(bnc#804494).

suse-commit: bdc410840f7a69001eb9e5901fb26e14be8e5d14

5 years agoqlcnic: Fix configure mailbox interrupt command for 83xx adapter
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
qlcnic: Fix configure mailbox interrupt command for 83xx adapter
(bnc#804494).

suse-commit: c2a28bc0f0393579839f146f3a3ac3b758c01bea

5 years agodrivers:net: dma_alloc_coherent: use __GFP_ZERO instead of
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
drivers:net: dma_alloc_coherent: use __GFP_ZERO instead of
memset(, 0) (bnc#804494).

suse-commit: fc2d328a23d665fd615bef94461789eaac11100c

5 years agodriver/qlogic: replace ip_fast_csum with csum_replace2
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
driver/qlogic: replace ip_fast_csum with csum_replace2
(bnc#804494).

suse-commit: bfff9ec37dee7e6c9c519b121fa8da3cbce6ad0a

5 years agodrivers:net: Remove dma_alloc_coherent OOM messages
Benjamin Poirier [Thu, 18 Apr 2013 19:24:10 +0000 (15:24 -0400)]
drivers:net: Remove dma_alloc_coherent OOM messages
(bnc#804494).

suse-commit: 13183f49d7925d76c6d3df9a607089a1236ce405

5 years agoFix race between starved list processing and device removal
Hannes Reinecke [Thu, 11 Apr 2013 16:56:13 +0000 (18:56 +0200)]
Fix race between starved list processing and device removal
(bnc#812224).

suse-commit: b513bfec38c2c9161ecb8600fe808edde7c87ca3

5 years agokeep tick_do_timer_cpu on CPU0 with nohz off (bnc#727639).
Jiri Bohac [Thu, 18 Apr 2013 15:38:25 +0000 (17:38 +0200)]
keep tick_do_timer_cpu on CPU0 with nohz off (bnc#727639).

suse-commit: 0f67f1db053f4bffcef84a61a0fdf3cc0de29215

5 years agoDRM/mgag200: Add bandwidth and resolution limits (bnc #806990).
Egbert Eich [Thu, 18 Apr 2013 15:10:38 +0000 (17:10 +0200)]
DRM/mgag200: Add bandwidth and resolution limits (bnc #806990).

suse-commit: 920b4768a4c0c7ee2726d046c2fbb49bdb5e782f

5 years agoigb: fix PHC stopping on max freq (bnc#814604).
Jiri Bohac [Thu, 18 Apr 2013 14:33:54 +0000 (16:33 +0200)]
igb: fix PHC stopping on max freq (bnc#814604).

suse-commit: 474daac52ff3499614cbb442986a3d10a0a73390

5 years agobnx2x: Prevent null pointer dereference in AFEX mode
Benjamin Poirier [Thu, 18 Apr 2013 14:17:44 +0000 (10:17 -0400)]
bnx2x: Prevent null pointer dereference in AFEX mode
(bnc#815661).

suse-commit: abcd72960d1daee7510e82bc4bdc01b437a68c43

5 years agobnx2x: Fix KR2 rapid link flap (bnc#815178).
Benjamin Poirier [Thu, 18 Apr 2013 14:17:44 +0000 (10:17 -0400)]
bnx2x: Fix KR2 rapid link flap (bnc#815178).

suse-commit: f2d83addc6bb078bae5c760fc77e7a37f633da62

5 years agoFix Reference
Benjamin Poirier [Thu, 18 Apr 2013 13:51:02 +0000 (09:51 -0400)]
Fix Reference

suse-commit: fc6f9da483e13dc6c3543c8fe1f61ba819ccdcf6

5 years agoMerge branch 'SLE11-SP3' of kerncvs.suse.de:/home/git/kernel-source into SLE11-SP3
Hannes Reinecke [Thu, 11 Apr 2013 14:47:27 +0000 (16:47 +0200)]
Merge branch 'SLE11-SP3' of kerncvs.suse.de:/home/git/kernel-source into SLE11-SP3

suse-commit: d9c53fdb00e40262ad6eaffdc8d19da1137ca68c

5 years agoMerge branch 'SLE11-SP3' of kerncvs.suse.de:/home/git/kernel-source into SLE11-SP3
Torsten Duwe [Thu, 18 Apr 2013 13:56:50 +0000 (15:56 +0200)]
Merge branch 'SLE11-SP3' of kerncvs.suse.de:/home/git/kernel-source into SLE11-SP3

suse-commit: 8b3a08ada9d1e80af3569c4bf193f6f7c7b2c05c

5 years agoppc: Fix audit crash due to save/restore PPR changes
Torsten Duwe [Thu, 18 Apr 2013 12:55:58 +0000 (14:55 +0200)]
ppc: Fix audit crash due to save/restore PPR changes
(bnc#815867).

suse-commit: bef8c20f22013ce56b4e44bd34caf919c31b9075

5 years agoppc: fix 2 new defects found with further testing of the Power7+
Torsten Duwe [Thu, 18 Apr 2013 12:54:46 +0000 (14:54 +0200)]
ppc: fix 2 new defects found with further testing of the Power7+
NX device driver (bnc#814748).

suse-commit: 67d404953809809160cb71748c95aa24b8c8746a

5 years agoRemove set -x and set +e statements in KMP scripts
Michal Marek [Thu, 18 Apr 2013 12:23:45 +0000 (14:23 +0200)]
Remove set -x and set +e statements in KMP scripts

suse-commit: f5bb83871e79a2441981c2136a7751b0e60a2ed5

5 years agox86, efi: Refactor efi_init() a bit (bnc#812397).
Borislav Petkov [Thu, 18 Apr 2013 09:33:52 +0000 (11:33 +0200)]
x86, efi: Refactor efi_init() a bit (bnc#812397).

Only a partial backport removing only the bogus message because it is
too late for the remaining changes now.

suse-commit: 1f4eb3803fc33c8a1916054e258db2bd3e18e4c0

5 years agoRefresh
Lee, Chun-Yi [Thu, 18 Apr 2013 05:53:29 +0000 (13:53 +0800)]
Refresh
patches.drivers/0006-efi_pstore-Introducing-workqueue-updating-sysfs.patch.
Fix build error:

  CC [M]  net/9p/error.o
drivers/firmware/efivars.c:1697: error: redefinition of
‘variable_is_present’
make[2]: *** [drivers/firmware/efivars.o] Error 1
make[1]: *** [drivers/firmware] Error 2
make: *** [drivers] Error 2
  CC [M]  lib/cpu-notifier-error-inject.o

Because variable_is_present function already merged in
patches.kernel.org/patch-3.0.71-72.

suse-commit: 5914f485fd5572ac5f198f6893f5f927293fbb6c

5 years agox86, EFI: Calculate the EFI framebuffer size instead of trusting
Lee, Chun-Yi [Thu, 18 Apr 2013 05:00:15 +0000 (13:00 +0800)]
x86, EFI: Calculate the EFI framebuffer size instead of trusting
the firmware (bnc#812176).

suse-commit: 98e932bc289c1892a5dbc7cf9e8e412227515ad5

5 years agoefifb: Skip DMI checks if the bootloader knows what it's doing
Lee, Chun-Yi [Thu, 18 Apr 2013 05:00:15 +0000 (13:00 +0800)]
efifb: Skip DMI checks if the bootloader knows what it's doing
(bnc#812176).

suse-commit: 24b9dcb26a3f645b07961beea473fe503046a32e

5 years agoX86: Improve GOP detection in the EFI boot stub (bnc#812176).
Lee, Chun-Yi [Thu, 18 Apr 2013 05:00:15 +0000 (13:00 +0800)]
X86: Improve GOP detection in the EFI boot stub (bnc#812176).

suse-commit: 2732ccb3962cfac0cb30b3780ae5d1e3c7183811

5 years agoKVM: VMX: Use posted interrupt to deliver virtual interrupt
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: VMX: Use posted interrupt to deliver virtual interrupt
(fate#313618).

suse-commit: 7a5ac042ade41537fc74ab62c582fe53918694b4

5 years agoKVM: VMX: Add the deliver posted interrupt algorithm
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: VMX: Add the deliver posted interrupt algorithm
(fate#313618).

suse-commit: 39d3f2ef9427c2ed31343f0dbfcd6a117b15e29f

5 years agoKVM: Set TMR when programming ioapic entry (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Set TMR when programming ioapic entry (fate#313618).

suse-commit: 3ac3d149c9fb3434edc3f20f692fd2e922153691

5 years agoKVM: Call common update function when ioapic entry changed
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Call common update function when ioapic entry changed
(fate#313618).

suse-commit: a5174f449fb59d2bc1dda409b0156fbbd792b5c2

5 years agoKVM: VMX: Check the posted interrupt capability (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: VMX: Check the posted interrupt capability (fate#313618).

suse-commit: 65bcace247e9f5a1aa07010b96bc3e589061c924

5 years agoKVM: VMX: Register a new IPI for posted interrupt (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: VMX: Register a new IPI for posted interrupt (fate#313618).

suse-commit: 030b183b3d2abc146e696636a012a724be79b1ad

5 years agoKVM: VMX: Enable acknowledge interupt on vmexit (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: VMX: Enable acknowledge interupt on vmexit (fate#313618).

suse-commit: b09ca1efe73b3ff61f5dccca32744c3e8931f31a

5 years agoKVM: Use eoi to track RTC interrupt delivery status
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Use eoi to track RTC interrupt delivery status
(fate#313618).

suse-commit: f8afd0dad15dce44c9b4b6c427ad345518e5afee

5 years agoKVM: Let ioapic know the irq line status (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Let ioapic know the irq line status (fate#313618).

suse-commit: 922c731e0f233e4bf996d3d2a77580b76390a844

5 years agoKVM: Force vmexit with virtual interrupt delivery (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Force vmexit with virtual interrupt delivery (fate#313618).

suse-commit: 243d6cd2b8dc66047a3c0124c86c522987c39f43

5 years agoKVM: Add reset/restore rtc_status support (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Add reset/restore rtc_status support (fate#313618).

suse-commit: 0f32c8b28154d411ff5cdc22df0741384c97f3bd

5 years agoKVM: Return destination vcpu on interrupt injection
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Return destination vcpu on interrupt injection
(fate#313618).

suse-commit: 92f9be14c6d1b9da3d6a65792734881be0cc538f

5 years agoKVM: Introduce struct rtc_status (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Introduce struct rtc_status (fate#313618).

suse-commit: ce420d1e8f89450ce3b3ac0efe1bb7fb72080130

5 years agoKVM: Add vcpu info to ioapic_update_eoi() (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Add vcpu info to ioapic_update_eoi() (fate#313618).

suse-commit: 9465e08ed066f502c6a3b2a621d941fdffc42b7a

5 years agoKVM: Call kvm_apic_match_dest() to check destination vcpu
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: Call kvm_apic_match_dest() to check destination vcpu
(fate#313618).

suse-commit: 0274d62037ce8998b3d8b68e5f1df5fec053a8a5

5 years agoKVM: VMX: disable apicv by default (fate#313618).
Bruce Rogers [Thu, 18 Apr 2013 00:46:47 +0000 (18:46 -0600)]
KVM: VMX: disable apicv by default (fate#313618).

suse-commit: ff8cd1dad29f2c3eb2ee99672511af5eca40312a

5 years ago- Btrfs: make sure nbytes are right after log replay.
David Sterba [Wed, 17 Apr 2013 23:58:31 +0000 (01:58 +0200)]
- Btrfs: make sure nbytes are right after log replay.
- Btrfs: don't wait on ordered extents if we have a trans open.
- Btrfs: log ram bytes properly.
- Btrfs: fix bad extent logging.
- btrfs: ignore device open failures in __btrfs_open_devices.
- btrfs: abort unlink trans in missed error case.
- Btrfs: use tree_root to avoid edquot when disabling quota.
- Btrfs: remove some BUG_ONs() when walking backref tree.
- Btrfs: fix tree mod log regression on root split operations.
- Btrfs: fix accessing the root pointer in tree mod log functions.
- Btrfs: fix unlock after free on rewinded tree blocks.
- Btrfs: do not continue if out of memory happens.
- Btrfs: fix confusing edquot happening case.
- Btrfs: fix reada debug code compilation.
- Btrfs: return error when we specify wrong start to defrag.
- Btrfs: don't force pages under writeback to finish when
  aborting.
- Btrfs: clear received_uuid field for new writable snapshots.

suse-commit: adc870f76c7c94587d7b43d4c033a8eecda4bfc0

5 years agoMerge branch 'SLE11-SP2' into SLE11-SP3
Jiri Slaby [Wed, 17 Apr 2013 22:04:16 +0000 (00:04 +0200)]
Merge branch 'SLE11-SP2' into SLE11-SP3

Conflicts:
kernel-source.changes
patches.drivers/alsa-sp3-pre-695-Yet-another-fix-for-broken-HSW-HDMI-pin
series.conf

suse-commit: 418e643cf5eeca0831740a15134df11d61e97ae9

5 years ago- Linux 3.0.74.
Jiri Slaby [Wed, 17 Apr 2013 12:27:23 +0000 (14:27 +0200)]
- Linux 3.0.74.
- patches.kabi/revert-x86-mm-Patch-out-arch_flush_lazy_mmu_mode-whe.patch:
  Revert "x86, mm: Patch out arch_flush_lazy_mmu_mode() when
  running on bare metal".

suse-commit: 49c673d245005aa19aaedf0b9d25aa8298a928e4

5 years ago- Linux 3.0.73.
Jiri Slaby [Wed, 17 Apr 2013 11:57:20 +0000 (13:57 +0200)]
- Linux 3.0.73.
- patches.suse/kdump-x86-remap-allocator: Delete.

suse-commit: 02bd848e9a7b65e457eccfa3f3dfaba58679c34c

5 years ago- Linux 3.0.72 (CVE-2010-3873 CVE-2011-4131 CVE-2011-4604 CVE-2011-4622
Jiri Slaby [Wed, 17 Apr 2013 11:42:20 +0000 (13:42 +0200)]
- Linux 3.0.72 (CVE-2010-3873 CVE-2011-4131 CVE-2011-4604 CVE-2011-4622
  CVE-2012-1601 CVE-2012-2119 CVE-2012-2137 CVE-2012-4461 CVE-2012-5517
  bnc#651219 bnc#730117 bnc#736149 bnc#738210 bnc#754898 bnc#758243
  bnc#767612 bnc#787821 bnc#789235).
- patches.kabi/kabi-protect-struct-tracer.patch: kABI: protect
  struct tracer.
- patches.arch/005-efi_pstore_fixes.patch: Refresh.
- patches.drivers/0001-add-firmware-update-for-Atheros-0cf3-311f.patch:
  Refresh.
- patches.drivers/0001-enable-Atheros-0cf3-311e-for-firmware-upload.patch:
  Refresh.
- patches.suse/btrfs-0448-fix-block_rsv-and-space_info-lock-ordering.patch:
  Refresh.
- patches.drivers/drm-i915-don-t-set-unpin_work-if-vblank_get-fails:
  Delete.
- patches.fixes/batman-adv-Only-write-requested-number-of-byte-to-us.patch:
  Delete.
- patches.fixes/batman-adv-bat_socket_read-missing-checks.patch:
  Delete.
- patches.fixes/kvm-KVM-Clean-up-error-handling-during-VCPU-creation.patch:
  Delete.
- patches.fixes/kvm-KVM-Ensure-all-vcpus-are-consistent-with-in-kernel-i.patch:
  Delete.
- patches.fixes/kvm-KVM-x86-Prevent-starting-PIT-timers-in-the-absence-o.patch:
  Delete.
- patches.fixes/kvm-invalid-opcode-oops-on-SET_SREGS-with-OSXSAVE-bi.patch:
  Delete.
- patches.fixes/kvm-set-irq.patch: Delete.
- patches.fixes/macvtap-zerocopy-validate-vectors-before-building-sk.patch:
  Delete.
- patches.fixes/mm-hotplug-correctly-add-zone-to-other-nodes-list.patch:
  Delete.
- patches.fixes/nfs-bitmap-fix-fix: Delete.
- patches.fixes/nfs-bitmap-size.fix: Delete.
- patches.fixes/x25-Handle-undersized-fragmented-skbs.patch:
  Delete.
- patches.fixes/x25-Validate-incoming-call-user-data-lengths.patch:
  Delete.
- patches.rpmify/ia64-sa_restorer-fix.patch: Delete.

suse-commit: 0a5a5d8832d2bc274b3850fe88fd030afde0c421

5 years ago- Linux 3.0.72 (CVE-2010-3873 CVE-2011-4131 CVE-2011-4604 CVE-2011-4622
Jiri Slaby [Wed, 17 Apr 2013 11:02:21 +0000 (13:02 +0200)]
- Linux 3.0.72 (CVE-2010-3873 CVE-2011-4131 CVE-2011-4604 CVE-2011-4622
  CVE-2012-1601 CVE-2012-2119 CVE-2012-2137 CVE-2012-4461 CVE-2012-5517
  bnc#651219 bnc#730117 bnc#736149 bnc#738210 bnc#754898 bnc#758243
  bnc#767612 bnc#787821 bnc#789235).
- patches.arch/005-efi_pstore_fixes.patch: Refresh.
- patches.drivers/0001-add-firmware-update-for-Atheros-0cf3-311f.patch:
  Refresh.
- patches.drivers/0001-enable-Atheros-0cf3-311e-for-firmware-upload.patch:
  Refresh.
- patches.suse/btrfs-0448-fix-block_rsv-and-space_info-lock-ordering.patch:
  Refresh.
- patches.drivers/drm-i915-don-t-set-unpin_work-if-vblank_get-fails:
  Delete.
- patches.fixes/batman-adv-Only-write-requested-number-of-byte-to-us.patch:
  Delete.
- patches.fixes/batman-adv-bat_socket_read-missing-checks.patch:
  Delete.
- patches.fixes/kvm-KVM-Clean-up-error-handling-during-VCPU-creation.patch:
  Delete.
- patches.fixes/kvm-KVM-Ensure-all-vcpus-are-consistent-with-in-kernel-i.patch:
  Delete.
- patches.fixes/kvm-KVM-x86-Prevent-starting-PIT-timers-in-the-absence-o.patch:
  Delete.
- patches.fixes/kvm-invalid-opcode-oops-on-SET_SREGS-with-OSXSAVE-bi.patch:
  Delete.
- patches.fixes/kvm-set-irq.patch: Delete.
- patches.fixes/macvtap-zerocopy-validate-vectors-before-building-sk.patch:
  Delete.
- patches.fixes/mm-hotplug-correctly-add-zone-to-other-nodes-list.patch:
  Delete.
- patches.fixes/nfs-bitmap-fix-fix: Delete.
- patches.fixes/nfs-bitmap-size.fix: Delete.
- patches.fixes/x25-Handle-undersized-fragmented-skbs.patch:
  Delete.
- patches.fixes/x25-Validate-incoming-call-user-data-lengths.patch:
  Delete.
- patches.rpmify/ia64-sa_restorer-fix.patch: Delete.

suse-commit: c54bdef1a8902ecbdcfe6dc029373b385edc5bf0

5 years agomissed one hash -> hash.w change
Torsten Duwe [Wed, 17 Apr 2013 16:49:07 +0000 (18:49 +0200)]
missed one hash -> hash.w change

suse-commit: 64779069a5161e6ff02036c470222a5484e742d9

5 years ago- patches.suse/revert-some-random-changes: /dev/urandom returning
Torsten Duwe [Wed, 17 Apr 2013 16:01:57 +0000 (18:01 +0200)]
- patches.suse/revert-some-random-changes: /dev/urandom returning
  EOF: trim down revert to not change kabi. (bnc#789359).

suse-commit: 2510012faef99c7e86ddec742ea8805a66e4ee5a

5 years ago- patches.drivers/alsa-sp3-pre-695-Yet-another-fix-for-broken-HSW-HDMI-pin:
Takashi Iwai [Wed, 17 Apr 2013 13:13:39 +0000 (15:13 +0200)]
- patches.drivers/alsa-sp3-pre-695-Yet-another-fix-for-broken-HSW-HDMI-pin:
  Refresh.  Fix the invalid PCI SSID check (bnc#806404)

suse-commit: d0d18112e6f72394132628ceee18e0d3e5b48df9

5 years ago- patches.fixes/tun-reserves-space-for-network-in-skb.patch:
Michal Kubecek [Wed, 17 Apr 2013 12:43:28 +0000 (14:43 +0200)]
- patches.fixes/tun-reserves-space-for-network-in-skb.patch:
  tun: reserves space for network in skb (bnc#803394).

suse-commit: e0913c718b80459269abc301bc59279cb0941c33

5 years agoremove one hunk already included in kABI fixup
Torsten Duwe [Wed, 17 Apr 2013 10:34:22 +0000 (12:34 +0200)]
remove one hunk already included in kABI fixup

suse-commit: a5dfe550b8fbdf730d6bba0b2ebb0fb9270dcd48

5 years ago- patches.suse/revert-tytsos-random-changes: /dev/urandom
Torsten Duwe [Wed, 17 Apr 2013 10:20:37 +0000 (12:20 +0200)]
- patches.suse/revert-tytsos-random-changes: /dev/urandom
  returning EOF (bnc#89359).

suse-commit: 209e1d955fdb67ba21279798c356faef2b11d542
Note: This patch series did not apply

5 years agofix /dev/urandom sometimes returning EOF on s390x (bnc#89359).
Torsten Duwe [Wed, 17 Apr 2013 10:18:16 +0000 (12:18 +0200)]
fix /dev/urandom sometimes returning EOF on s390x (bnc#89359).

suse-commit: 83c638eb6e90864229f6e2681feb5c6ce131e922

5 years agoLinux 3.0.74
Greg Kroah-Hartman [Wed, 17 Apr 2013 04:17:25 +0000 (21:17 -0700)]
Linux 3.0.74

5 years agomtd: Disable mtdchar mmap on MMU systems
David Woodhouse [Tue, 9 Oct 2012 14:08:10 +0000 (15:08 +0100)]
mtd: Disable mtdchar mmap on MMU systems

commit f5cf8f07423b2677cebebcebc863af77223a4972 upstream.

This code was broken because it assumed that all MTD devices were map-based.
Disable it for now, until it can be fixed properly for the next merge window.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agor8169: fix auto speed down issue
Hayes Wang [Sat, 13 Apr 2013 10:26:55 +0000 (12:26 +0200)]
r8169: fix auto speed down issue

commit e2409d83434d77874b461b78af6a19cd6e6a1280 upstream.

It would cause no link after suspending or shutdowning when the
nic changes the speed to 10M and connects to a link partner which
forces the speed to 100M.

Check the link partner ability to determine which speed to set.

The link speed down code path is not factored in this kernel version.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agomtdchar: fix offset overflow detection
Linus Torvalds [Sat, 8 Sep 2012 19:57:30 +0000 (12:57 -0700)]
mtdchar: fix offset overflow detection

commit 9c603e53d380459fb62fec7cd085acb0b74ac18f upstream.

Sasha Levin has been running trinity in a KVM tools guest, and was able
to trigger the BUG_ON() at arch/x86/mm/pat.c:279 (verifying the range of
the memory type).  The call trace showed that it was mtdchar_mmap() that
created an invalid remap_pfn_range().

The problem is that mtdchar_mmap() does various really odd and subtle
things with the vma page offset etc, and uses the wrong types (and the
wrong overflow) detection for it.

For example, the page offset may well be 32-bit on a 32-bit
architecture, but after shifting it up by PAGE_SHIFT, we need to use a
potentially 64-bit resource_size_t to correctly hold the full value.

Also, we need to check that the vma length plus offset doesn't overflow
before we check that it is smaller than the length of the mtdmap region.

This fixes things up and tries to make the code a bit easier to read.

Reported-and-tested-by: Sasha Levin <levinsasha928@gmail.com>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Acked-by: Artem Bityutskiy <dedekind1@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Ben Hutchings <ben@decadent.org.uk>
Cc: Brad Spengler <spender@grsecurity.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agox86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal
Boris Ostrovsky [Sat, 23 Mar 2013 13:36:36 +0000 (09:36 -0400)]
x86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal

commit 511ba86e1d386f671084b5d0e6f110bb30b8eeb2 upstream.

Invoking arch_flush_lazy_mmu_mode() results in calls to
preempt_enable()/disable() which may have performance impact.

Since lazy MMU is not used on bare metal we can patch away
arch_flush_lazy_mmu_mode() so that it is never called in such
environment.

[ hpa: the previous patch "Fix vmalloc_fault oops during lazy MMU
  updates" may cause a minor performance regression on
  bare metal.  This patch resolves that performance regression.  It is
  somewhat unclear to me if this is a good -stable candidate. ]

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: http://lkml.kernel.org/r/1364045796-10720-2-git-send-email-konrad.wilk@oracle.com
Tested-by: Josh Boyer <jwboyer@redhat.com>
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agox86, mm, paravirt: Fix vmalloc_fault oops during lazy MMU updates
Samu Kallio [Sat, 23 Mar 2013 13:36:35 +0000 (09:36 -0400)]
x86, mm, paravirt: Fix vmalloc_fault oops during lazy MMU updates

commit 1160c2779b826c6f5c08e5cc542de58fd1f667d5 upstream.

In paravirtualized x86_64 kernels, vmalloc_fault may cause an oops
when lazy MMU updates are enabled, because set_pgd effects are being
deferred.

One instance of this problem is during process mm cleanup with memory
cgroups enabled. The chain of events is as follows:

- zap_pte_range enables lazy MMU updates
- zap_pte_range eventually calls mem_cgroup_charge_statistics,
  which accesses the vmalloc'd mem_cgroup per-cpu stat area
- vmalloc_fault is triggered which tries to sync the corresponding
  PGD entry with set_pgd, but the update is deferred
- vmalloc_fault oopses due to a mismatch in the PUD entries

The OOPs usually looks as so:

------------[ cut here ]------------
kernel BUG at arch/x86/mm/fault.c:396!
invalid opcode: 0000 [#1] SMP
.. snip ..
CPU 1
Pid: 10866, comm: httpd Not tainted 3.6.10-4.fc18.x86_64 #1
RIP: e030:[<ffffffff816271bf>]  [<ffffffff816271bf>] vmalloc_fault+0x11f/0x208
.. snip ..
Call Trace:
 [<ffffffff81627759>] do_page_fault+0x399/0x4b0
 [<ffffffff81004f4c>] ? xen_mc_extend_args+0xec/0x110
 [<ffffffff81624065>] page_fault+0x25/0x30
 [<ffffffff81184d03>] ? mem_cgroup_charge_statistics.isra.13+0x13/0x50
 [<ffffffff81186f78>] __mem_cgroup_uncharge_common+0xd8/0x350
 [<ffffffff8118aac7>] mem_cgroup_uncharge_page+0x57/0x60
 [<ffffffff8115fbc0>] page_remove_rmap+0xe0/0x150
 [<ffffffff8115311a>] ? vm_normal_page+0x1a/0x80
 [<ffffffff81153e61>] unmap_single_vma+0x531/0x870
 [<ffffffff81154962>] unmap_vmas+0x52/0xa0
 [<ffffffff81007442>] ? pte_mfn_to_pfn+0x72/0x100
 [<ffffffff8115c8f8>] exit_mmap+0x98/0x170
 [<ffffffff810050d9>] ? __raw_callee_save_xen_pmd_val+0x11/0x1e
 [<ffffffff81059ce3>] mmput+0x83/0xf0
 [<ffffffff810624c4>] exit_mm+0x104/0x130
 [<ffffffff8106264a>] do_exit+0x15a/0x8c0
 [<ffffffff810630ff>] do_group_exit+0x3f/0xa0
 [<ffffffff81063177>] sys_exit_group+0x17/0x20
 [<ffffffff8162bae9>] system_call_fastpath+0x16/0x1b

Calling arch_flush_lazy_mmu_mode immediately after set_pgd makes the
changes visible to the consistency checks.

RedHat-Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=914737
Tested-by: Josh Boyer <jwboyer@redhat.com>
Reported-and-Tested-by: Krishna Raman <kraman@redhat.com>
Signed-off-by: Samu Kallio <samu.kallio@aberdeencloud.com>
Link: http://lkml.kernel.org/r/1364045796-10720-1-git-send-email-konrad.wilk@oracle.com
Tested-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agosched_clock: Prevent 64bit inatomicity on 32bit systems
Thomas Gleixner [Sat, 6 Apr 2013 08:10:27 +0000 (10:10 +0200)]
sched_clock: Prevent 64bit inatomicity on 32bit systems

commit a1cbcaa9ea87b87a96b9fc465951dcf36e459ca2 upstream.

The sched_clock_remote() implementation has the following inatomicity
problem on 32bit systems when accessing the remote scd->clock, which
is a 64bit value.

CPU0 CPU1

sched_clock_local() sched_clock_remote(CPU0)
...
remote_clock = scd[CPU0]->clock
    read_low32bit(scd[CPU0]->clock)
cmpxchg64(scd->clock,...)
    read_high32bit(scd[CPU0]->clock)

While the update of scd->clock is using an atomic64 mechanism, the
readout on the remote cpu is not, which can cause completely bogus
readouts.

It is a quite rare problem, because it requires the update to hit the
narrow race window between the low/high readout and the update must go
across the 32bit boundary.

The resulting misbehaviour is, that CPU1 will see the sched_clock on
CPU1 ~4 seconds ahead of it's own and update CPU1s sched_clock value
to this bogus timestamp. This stays that way due to the clamping
implementation for about 4 seconds until the synchronization with
CLOCK_MONOTONIC undoes the problem.

The issue is hard to observe, because it might only result in a less
accurate SCHED_OTHER timeslicing behaviour. To create observable
damage on realtime scheduling classes, it is necessary that the bogus
update of CPU1 sched_clock happens in the context of an realtime
thread, which then gets charged 4 seconds of RT runtime, which results
in the RT throttler mechanism to trigger and prevent scheduling of RT
tasks for a little less than 4 seconds. So this is quite unlikely as
well.

The issue was quite hard to decode as the reproduction time is between
2 days and 3 weeks and intrusive tracing makes it less likely, but the
following trace recorded with trace_clock=global, which uses
sched_clock_local(), gave the final hint:

  <idle>-0   0d..30 400269.477150: hrtimer_cancel: hrtimer=0xf7061e80
  <idle>-0   0d..30 400269.477151: hrtimer_start:  hrtimer=0xf7061e80 ...
irq/20-S-587 1d..32 400273.772118: sched_wakeup:   comm= ... target_cpu=0
  <idle>-0   0dN.30 400273.772118: hrtimer_cancel: hrtimer=0xf7061e80

What happens is that CPU0 goes idle and invokes
sched_clock_idle_sleep_event() which invokes sched_clock_local() and
CPU1 runs a remote wakeup for CPU0 at the same time, which invokes
sched_remote_clock(). The time jump gets propagated to CPU0 via
sched_remote_clock() and stays stale on both cores for ~4 seconds.

There are only two other possibilities, which could cause a stale
sched clock:

1) ktime_get() which reads out CLOCK_MONOTONIC returns a sporadic
   wrong value.

2) sched_clock() which reads the TSC returns a sporadic wrong value.

#1 can be excluded because sched_clock would continue to increase for
   one jiffy and then go stale.

#2 can be excluded because it would not make the clock jump
   forward. It would just result in a stale sched_clock for one jiffy.

After quite some brain twisting and finding the same pattern on other
traces, sched_clock_remote() remained the only place which could cause
such a problem and as explained above it's indeed racy on 32bit
systems.

So while on 64bit systems the readout is atomic, we need to verify the
remote readout on 32bit machines. We need to protect the local->clock
readout in sched_clock_remote() on 32bit as well because an NMI could
hit between the low and the high readout, call sched_clock_local() and
modify local->clock.

Thanks to Siegfried Wulsch for bearing with my debug requests and
going through the tedious tasks of running a bunch of reproducer
systems to generate the debug information which let me decode the
issue.

Reported-by: Siegfried Wulsch <Siegfried.Wulsch@rovema.de>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1304051544160.21884@ionos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agotarget: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs
Nicholas Bellinger [Wed, 10 Apr 2013 22:00:27 +0000 (15:00 -0700)]
target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs

commit 30f359a6f9da65a66de8cadf959f0f4a0d498bba upstream.

This patch fixes a bug where a handful of informational / control CDBs
that should be allowed during ALUA access state Standby/Offline/Transition
where incorrectly returning CHECK_CONDITION + ASCQ_04H_ALUA_TG_PT_*.

This includes INQUIRY + REPORT_LUNS, which would end up preventing LUN
registration when LUN scanning occured during these ALUA access states.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agoPM / reboot: call syscore_shutdown() after disable_nonboot_cpus()
Huacai Chen [Sun, 7 Apr 2013 02:14:14 +0000 (02:14 +0000)]
PM / reboot: call syscore_shutdown() after disable_nonboot_cpus()

commit 6f389a8f1dd22a24f3d9afc2812b30d639e94625 upstream.

As commit 40dc166c (PM / Core: Introduce struct syscore_ops for core
subsystems PM) say, syscore_ops operations should be carried with one
CPU on-line and interrupts disabled. However, after commit f96972f2d
(kernel/sys.c: call disable_nonboot_cpus() in kernel_restart()),
syscore_shutdown() is called before disable_nonboot_cpus(), so break
the rules. We have a MIPS machine with a 8259A PIC, and there is an
external timer (HPET) linked at 8259A. Since 8259A has been shutdown
too early (by syscore_shutdown()), disable_nonboot_cpus() runs without
timer interrupt, so it hangs and reboot fails. This patch call
syscore_shutdown() a little later (after disable_nonboot_cpus()) to
avoid reboot failure, this is the same way as poweroff does.

For consistency, add disable_nonboot_cpus() to kernel_halt().

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agotracing: Fix double free when function profile init failed
Namhyung Kim [Mon, 1 Apr 2013 12:46:23 +0000 (21:46 +0900)]
tracing: Fix double free when function profile init failed

commit 83e03b3fe4daffdebbb42151d5410d730ae50bd1 upstream.

On the failure path, stat->start and stat->pages will refer same page.
So it'll attempt to free the same page again and get kernel panic.

Link: http://lkml.kernel.org/r/1364820385-32027-1-git-send-email-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agoASoC: wm8903: Fix the bypass to HP/LINEOUT when no DAC or ADC is running
Alban Bedel [Tue, 9 Apr 2013 15:13:59 +0000 (17:13 +0200)]
ASoC: wm8903: Fix the bypass to HP/LINEOUT when no DAC or ADC is running

commit f1ca493b0b5e8f42d3b2dc8877860db2983f47b6 upstream.

The Charge Pump needs the DSP clock to work properly, without it the
bypass to HP/LINEOUT is not working properly. This requirement is not
mentioned in the datasheet but has been confirmed by Mark Brown from
Wolfson.

Signed-off-by: Alban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agox86-32, mm: Rip out x86_32 NUMA remapping code
Dave Hansen [Thu, 31 Jan 2013 00:56:16 +0000 (16:56 -0800)]
x86-32, mm: Rip out x86_32 NUMA remapping code

commit f03574f2d5b2d6229dcdf2d322848065f72953c7 upstream.

[was already included in 3.0, but I missed the patch hunk for
 arch/x86/mm/numa_32.c  - gregkh]

This code was an optimization for 32-bit NUMA systems.

It has probably been the cause of a number of subtle bugs over
the years, although the conditions to excite them would have
been hard to trigger.  Essentially, we remap part of the kernel
linear mapping area, and then sometimes part of that area gets
freed back in to the bootmem allocator.  If those pages get
used by kernel data structures (say mem_map[] or a dentry),
there's no big deal.  But, if anyone ever tried to use the
linear mapping for these pages _and_ cared about their physical
address, bad things happen.

For instance, say you passed __GFP_ZERO to the page allocator
and then happened to get handed one of these pages, it zero the
remapped page, but it would make a pte to the _old_ page.
There are probably a hundred other ways that it could screw
with things.

We don't need to hang on to performance optimizations for
these old boxes any more.  All my 32-bit NUMA systems are long
dead and buried, and I probably had access to more than most
people.

This code is causing real things to break today:

https://lkml.org/lkml/2013/1/9/376

I looked in to actually fixing this, but it requires surgery
to way too much brittle code, as well as stuff like
per_cpu_ptr_to_phys().

[ hpa: Cc: this for -stable, since it is a memory corruption issue.
  However, an alternative is to simply mark NUMA as depends BROKEN
  rather than EXPERIMENTAL in the X86_32 subclause... ]

Link: http://lkml.kernel.org/r/20130131005616.1C79F411@kernel.stglabs.ibm.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agoALSA: usb-audio: fix endianness bug in snd_nativeinstruments_*
Eldad Zack [Fri, 5 Apr 2013 18:49:46 +0000 (20:49 +0200)]
ALSA: usb-audio: fix endianness bug in snd_nativeinstruments_*

commit 889d66848b12d891248b03abcb2a42047f8e172a upstream.

The usb_control_msg() function expects __u16 types and performs
the endianness conversions by itself.
However, in three places, a conversion is performed before it is
handed over to usb_control_msg(), which leads to a double conversion
(= no conversion):
* snd_usb_nativeinstruments_boot_quirk()
* snd_nativeinstruments_control_get()
* snd_nativeinstruments_control_put()

Caught by sparse:

sound/usb/mixer_quirks.c:512:38: warning: incorrect type in argument 6 (different base types)
sound/usb/mixer_quirks.c:512:38:    expected unsigned short [unsigned] [usertype] index
sound/usb/mixer_quirks.c:512:38:    got restricted __le16 [usertype] <noident>
sound/usb/mixer_quirks.c:543:35: warning: incorrect type in argument 5 (different base types)
sound/usb/mixer_quirks.c:543:35:    expected unsigned short [unsigned] [usertype] value
sound/usb/mixer_quirks.c:543:35:    got restricted __le16 [usertype] <noident>
sound/usb/mixer_quirks.c:543:56: warning: incorrect type in argument 6 (different base types)
sound/usb/mixer_quirks.c:543:56:    expected unsigned short [unsigned] [usertype] index
sound/usb/mixer_quirks.c:543:56:    got restricted __le16 [usertype] <noident>
sound/usb/quirks.c:502:35: warning: incorrect type in argument 5 (different base types)
sound/usb/quirks.c:502:35:    expected unsigned short [unsigned] [usertype] value
sound/usb/quirks.c:502:35:    got restricted __le16 [usertype] <noident>

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Acked-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
5 years agoMerge branch 'SLE11-SP3' of kerncvs.suse.de:/home/git/kernel-source into SLE11-SP3
Torsten Duwe [Tue, 16 Apr 2013 15:41:53 +0000 (17:41 +0200)]
Merge branch 'SLE11-SP3' of kerncvs.suse.de:/home/git/kernel-source into SLE11-SP3

suse-commit: 818600644d2732a73470b24bfaed58c5ec234f4b

5 years agoUpdate patches.suse/zcrypt-feed-hwrandom:
Torsten Duwe [Tue, 16 Apr 2013 15:39:19 +0000 (17:39 +0200)]
Update patches.suse/zcrypt-feed-hwrandom:
do not crash on rmmod after offlining the hardware
(bnc#814948).

suse-commit: ae44e46cc6fe77954eea66c965186d2b06750f5a

5 years agoPCI: msi: fix imbalanced refcount of msi irq sysfs objects
Benjamin Poirier [Tue, 16 Apr 2013 14:59:42 +0000 (10:59 -0400)]
PCI: msi: fix imbalanced refcount of msi irq sysfs objects
(bnc#806674).

suse-commit: 4f9fdfcd6f0405c13997cc09ea8236c2831de07c

5 years agoMerge branch 'SLE11-SP2' into SLE11-SP3
Michal Marek [Tue, 16 Apr 2013 08:52:25 +0000 (10:52 +0200)]
Merge branch 'SLE11-SP2' into SLE11-SP3

Conflicts:
kernel-source.changes
patches.fixes/mm-jbd-Refine-commit-writeout-logic.patch

suse-commit: 022a245c2c6cb48422782b1fe36be332eb56945c

5 years ago- agp: iommu_gfx_mapped only available if CONFIG_INTEL_IOMMU
Jan Beulich [Tue, 16 Apr 2013 07:12:17 +0000 (09:12 +0200)]
- agp: iommu_gfx_mapped only available if CONFIG_INTEL_IOMMU
  is set.
- drm/i915: disable ppgtt on snb when dmar is enabled.
- drm/i915: enable semaphores on gen6 if dmar is not active.
- drm/i915: Stop using AGP layer for GEN6+.
- drm/i915: Disable WC PTE updates to w/a buggy IOMMU on ILK
  (bnc#806406).
- Do not allow access to /dev/cpu/microcode in secure boot mode
  (bnc#813166).
- Refresh other Xen patches.

suse-commit: 6cf0c46144b2e9ba3c27b421fceace26f3976b14

5 years agozfcp: block queue limits with data router (bnc#813708,
John Jolly [Tue, 16 Apr 2013 05:08:34 +0000 (07:08 +0200)]
zfcp: block queue limits with data router (bnc#813708,
LTC#91760).

suse-commit: bc41a36e5d5f45275b61836b38e69bc58b1c9550

5 years agohibernate: Save and restore absolute zero pages (bnc#813708,
John Jolly [Tue, 16 Apr 2013 05:07:29 +0000 (07:07 +0200)]
hibernate: Save and restore absolute zero pages (bnc#813708,
LTC#91615).

suse-commit: 1d987d03e5655057b19c04ddea5faac5eae82801

5 years agokdump: Add PM notifier for kdump (bnc#813708, LTC#91616).
John Jolly [Tue, 16 Apr 2013 05:06:52 +0000 (07:06 +0200)]
kdump: Add PM notifier for kdump (bnc#813708, LTC#91616).

suse-commit: 1a7bb82487a8cb7a7f52cf162df392b9e5554c66

5 years agokernel: kernel module cannot be loaded (bnc#813708, LTC#91552).
John Jolly [Tue, 16 Apr 2013 05:05:52 +0000 (07:05 +0200)]
kernel: kernel module cannot be loaded (bnc#813708, LTC#91552).

suse-commit: 49957476d41764d3a5f16a25610e589167e6301b

5 years agocxgb4: fix SQ allocation when On-Chip SQ is disabled
John Jolly [Mon, 15 Apr 2013 17:42:45 +0000 (19:42 +0200)]
cxgb4: fix SQ allocation when On-Chip SQ is disabled
(bnc#812812,LTC#90789).

suse-commit: d5771138b62bad092e30686122bb9cc29e335433