platform/kernel/linux-amlogic.git
7 years agoperf callchain: Reference count maps
Krister Johansen [Sun, 12 Mar 2017 08:24:16 +0000 (08:24 +0000)]
perf callchain: Reference count maps
am: 11a4d644d6

Change-Id: I36d191c4483064fbbf016cf0e783612d19748e99

7 years agoDrivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()
Vitaly Kuznetsov [Sun, 12 Mar 2017 08:24:07 +0000 (08:24 +0000)]
Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()
am: 65013a93b6

Change-Id: I7c460754abc682e56314035f41dcf17ce1a21b2a

7 years agoPCI: altera: Fix TLP_CFG_DW0 for TLP write
Ley Foon Tan [Sun, 12 Mar 2017 08:23:56 +0000 (08:23 +0000)]
PCI: altera: Fix TLP_CFG_DW0 for TLP write
am: 730b1b20c6

Change-Id: If53b6c7aa03023c5146a0ac50e634c54c6daa197

7 years agopci/hotplug/pnv-php: Disable MSI and PCI device properly
Gavin Shan [Sun, 12 Mar 2017 08:23:46 +0000 (08:23 +0000)]
pci/hotplug/pnv-php: Disable MSI and PCI device properly
am: 1fb738a3dc

Change-Id: I589c33c3742d7ad34566df4b21be894fe11ab120

7 years agoPCI: hv: Fix wslot_to_devfn() to fix warnings on device removal
Dexuan Cui [Sun, 12 Mar 2017 08:23:36 +0000 (08:23 +0000)]
PCI: hv: Fix wslot_to_devfn() to fix warnings on device removal
am: bc5338a4fd

Change-Id: I5e0427ff5a79b26eaf0d4506bf94d084fae90862

7 years agoath9k: use correct OTP register offsets for the AR9340 and AR9550
Christian Lamparter [Sun, 12 Mar 2017 08:23:26 +0000 (08:23 +0000)]
ath9k: use correct OTP register offsets for the AR9340 and AR9550
am: 787fd7a6c8

Change-Id: I574a2971548223bd7338568702f9730826352c55

7 years agoath9k: fix race condition in enabling/disabling IRQs
Felix Fietkau [Sun, 12 Mar 2017 08:23:17 +0000 (08:23 +0000)]
ath9k: fix race condition in enabling/disabling IRQs
am: c41cae06bf

Change-Id: I38dc41a4dc542e28510f3895cadfc21446871bd6

7 years agoath5k: drop bogus warning on drv_set_key with unsupported cipher
Felix Fietkau [Sun, 12 Mar 2017 08:23:09 +0000 (08:23 +0000)]
ath5k: drop bogus warning on drv_set_key with unsupported cipher
am: 93c1f1db1a

Change-Id: If7f4b650f817cdb97b849a9006971e4d98d9ff6e

7 years agoath10k: fix boot failure in UTF mode/testmode
Tamizh chelvam [Sun, 12 Mar 2017 08:22:59 +0000 (08:22 +0000)]
ath10k: fix boot failure in UTF mode/testmode
am: bac7f7135d

Change-Id: I26e6f4e01765ee2ab0b35bad764477ad9e550de5

7 years agomei: remove support for broken parallel read
Alexander Usyskin [Sun, 12 Mar 2017 08:22:49 +0000 (08:22 +0000)]
mei: remove support for broken parallel read
am: d2a8cd3eee

Change-Id: I3b183c9a7d42599ad16dfbeb1c61bc073aaa3f2e

7 years agosamples/seccomp: fix 64-bit comparison macros
Mathias Svensson [Sun, 12 Mar 2017 08:22:40 +0000 (08:22 +0000)]
samples/seccomp: fix 64-bit comparison macros
am: d6407e10bc

Change-Id: I1e49fcbc1f179446c318a7f94d0f8850fab25738

7 years agoext4: return EROFS if device is r/o and journal replay is needed
Theodore Ts'o [Sun, 12 Mar 2017 08:22:30 +0000 (08:22 +0000)]
ext4: return EROFS if device is r/o and journal replay is needed
am: d6dcec965b

Change-Id: Iba4e08fe8cabe8dd16be7c3e6f6477018711ec22

7 years agoext4: preserve the needs_recovery flag when the journal is aborted
Theodore Ts'o [Sun, 12 Mar 2017 08:22:18 +0000 (08:22 +0000)]
ext4: preserve the needs_recovery flag when the journal is aborted
am: 269bf7b8c5

Change-Id: I8cd80b3671d35f1a197e228cb9b115d12f2b3afb

7 years agoext4: fix inline data error paths
Theodore Ts'o [Sun, 12 Mar 2017 08:22:09 +0000 (08:22 +0000)]
ext4: fix inline data error paths
am: 0b37d0c0c6

Change-Id: I358eec4ef069865d949c86f7f93bb64db810eb2e

7 years agoext4: fix use-after-iput when fscrypt contexts are inconsistent
Eric Biggers [Sun, 12 Mar 2017 08:21:57 +0000 (08:21 +0000)]
ext4: fix use-after-iput when fscrypt contexts are inconsistent
am: 68ca0fdac4

Change-Id: Ib125136b30c773718c8c2ec4e4a504da0ff92cbd

7 years agoext4: fix data corruption in data=journal mode
Jan Kara [Sun, 12 Mar 2017 08:21:45 +0000 (08:21 +0000)]
ext4: fix data corruption in data=journal mode
am: a5a9cf387d

Change-Id: Ia3c5c062ed2c7f59128ea30be63a55ef69b20d20

7 years agoext4: trim allocation requests to group size
Jan Kara [Sun, 12 Mar 2017 08:21:35 +0000 (08:21 +0000)]
ext4: trim allocation requests to group size
am: fc6c2da174

Change-Id: I7c04f8c54dc5faf0be363bfa87c2784ba798f3fa

7 years agoext4: do not polute the extents cache while shifting extents
Roman Pen [Sun, 12 Mar 2017 08:21:25 +0000 (08:21 +0000)]
ext4: do not polute the extents cache while shifting extents
am: e0b53d6729

Change-Id: I31462a97e306c198855f17663b856e3e97867f97

7 years agoext4: Include forgotten start block on fallocate insert range
Roman Pen [Sun, 12 Mar 2017 08:21:16 +0000 (08:21 +0000)]
ext4: Include forgotten start block on fallocate insert range
am: 72ae476d04

Change-Id: Ie2b55eef531dcf4720c88e4c63916dc4c3e066de

7 years agoloop: fix LO_FLAGS_PARTSCAN hang
Omar Sandoval [Sun, 12 Mar 2017 08:21:07 +0000 (08:21 +0000)]
loop: fix LO_FLAGS_PARTSCAN hang
am: 8ca25e39ec

Change-Id: Idac54a2bda307c466a1637bd7d7275aab2dd60df

7 years agoblock/loop: fix race between I/O and set_status
Ming Lei [Sun, 12 Mar 2017 08:20:58 +0000 (08:20 +0000)]
block/loop: fix race between I/O and set_status
am: 50447afd96

Change-Id: I2e2e33ae3df438a0754fbfa723b05bcc5f2b2325

7 years agojbd2: don't leak modified metadata buffers on an aborted journal
Theodore Ts'o [Sun, 12 Mar 2017 08:20:48 +0000 (08:20 +0000)]
jbd2: don't leak modified metadata buffers on an aborted journal
am: a9b0c14ba1

Change-Id: Id97b18a6f7b7c9b2c089b5c65dc06370ea98e951

7 years agoFix: Disable sys_membarrier when nohz_full is enabled
Mathieu Desnoyers [Sun, 12 Mar 2017 08:20:39 +0000 (08:20 +0000)]
Fix: Disable sys_membarrier when nohz_full is enabled
am: 3de5a92847

Change-Id: Ib7d8806d40c785e0128af2d846bda76727aa1255

7 years agopower: reset: at91-poweroff: timely shutdown LPDDR memories
Alexandre Belloni [Sun, 12 Mar 2017 08:20:30 +0000 (08:20 +0000)]
power: reset: at91-poweroff: timely shutdown LPDDR memories
am: 206af3d97f

Change-Id: Ia12c6648a103471fc42f49883df2ac34f4efcc8e

7 years agoscsi: use 'scsi_device_from_queue()' for scsi_dh
Hannes Reinecke [Sun, 12 Mar 2017 08:20:19 +0000 (08:20 +0000)]
scsi: use 'scsi_device_from_queue()' for scsi_dh
am: e9dc8334d7

Change-Id: I2d5516fc61216433ba12dde3d6919e95e85a4dbf

7 years agoscsi: aacraid: Reorder Adapter status check
Raghava Aditya Renukunta [Sun, 12 Mar 2017 08:20:10 +0000 (08:20 +0000)]
scsi: aacraid: Reorder Adapter status check
am: 73f5176eca

Change-Id: I7dd8c58d19212accedcbe5ac85178ad71aaf31ab

7 years agoscsi: storvsc: properly set residual data length on errors
Long Li [Sun, 12 Mar 2017 08:20:00 +0000 (08:20 +0000)]
scsi: storvsc: properly set residual data length on errors
am: a50781fe6e

Change-Id: I5413195647ecd402a5383006a5ad57bf2c3e0a8e

7 years agoscsi: storvsc: properly handle SRB_ERROR when sense message is present
Long Li [Sun, 12 Mar 2017 08:19:51 +0000 (08:19 +0000)]
scsi: storvsc: properly handle SRB_ERROR when sense message is present
am: e59693753e

Change-Id: Ic6e4debf549cdd2fe08a72d3c79887370d3825ed

7 years agoscsi: storvsc: use tagged SRB requests if supported by the device
Long Li [Sun, 12 Mar 2017 08:19:42 +0000 (08:19 +0000)]
scsi: storvsc: use tagged SRB requests if supported by the device
am: 27f5ef378d

Change-Id: Iddc56ae5b242dd3d01e9a20b3564bb060aff06ca

7 years agodm raid: fix data corruption on reshape request
Heinz Mauelshagen [Sun, 12 Mar 2017 08:19:33 +0000 (08:19 +0000)]
dm raid: fix data corruption on reshape request
am: 2937e22c23

Change-Id: I3a55981aab612685064716fad5c0e70d021c62bb

7 years agodm round robin: revert "use percpu 'repeat_count' and 'current_path'"
Mike Snitzer [Sun, 12 Mar 2017 08:19:24 +0000 (08:19 +0000)]
dm round robin: revert "use percpu 'repeat_count' and 'current_path'"
am: b7f874eedc

Change-Id: I27c857c373193aff5b5699f1e5052a9f95d1762c

7 years agodm stats: fix a leaked s->histogram_boundaries array
Mikulas Patocka [Sun, 12 Mar 2017 08:19:14 +0000 (08:19 +0000)]
dm stats: fix a leaked s->histogram_boundaries array
am: bad6c16b81

Change-Id: I2e0f245f2f4080cd374009a7f5b834b160cfedc4

7 years agodm cache: fix corruption seen when using cache > 2TB
Joe Thornber [Sun, 12 Mar 2017 08:19:04 +0000 (08:19 +0000)]
dm cache: fix corruption seen when using cache > 2TB
am: 9987feba90

Change-Id: Id78e8b92c942e93784f7c68ef800d0a6f345207c

7 years agoPM / devfreq: Fix wrong trans_stat of passive devfreq device
Chanwoo Choi [Sun, 12 Mar 2017 08:18:55 +0000 (08:18 +0000)]
PM / devfreq: Fix wrong trans_stat of passive devfreq device
am: fe8f92c7be

Change-Id: I7be00653758f0382cf537713eca12c988c0432ae

7 years agoPM / devfreq: Fix available_governor sysfs
Chanwoo Choi [Sun, 12 Mar 2017 08:18:44 +0000 (08:18 +0000)]
PM / devfreq: Fix available_governor sysfs
am: 2294b771a4

Change-Id: Ic585f8f044c6544450539391aefac8d5dcaae51f

7 years agoima: fix ima_d_path() possible race with rename
Mimi Zohar [Sun, 12 Mar 2017 08:18:34 +0000 (08:18 +0000)]
ima: fix ima_d_path() possible race with rename
am: d9cc31683a

Change-Id: I1b44484dab9a62445e9da169e4b30e5f4a122ea6

7 years agoipc/shm: Fix shmat mmap nil-page protection
Davidlohr Bueso [Sun, 12 Mar 2017 08:18:26 +0000 (08:18 +0000)]
ipc/shm: Fix shmat mmap nil-page protection
am: 270e84a1e6

Change-Id: Ibcc5e2d46f533a60c0d1cabb24c42e2c72e5a24a

7 years agosigaltstack: support SS_AUTODISARM for CONFIG_COMPAT
Stas Sergeev [Sun, 12 Mar 2017 08:18:16 +0000 (08:18 +0000)]
sigaltstack: support SS_AUTODISARM for CONFIG_COMPAT
am: 6d94a6b32e

Change-Id: I972940b00813db773e278ce8b6bc46f3cba15988

7 years agomm, vmscan: consider eligible zones in get_scan_count
Michal Hocko [Sun, 12 Mar 2017 08:18:06 +0000 (08:18 +0000)]
mm, vmscan: consider eligible zones in get_scan_count
am: 521e92b198

Change-Id: I39482c52cd53db294f51f2e2956f546487e2f1f9

7 years agomm, vmscan: cleanup lru size claculations
Michal Hocko [Sun, 12 Mar 2017 08:17:57 +0000 (08:17 +0000)]
mm, vmscan: cleanup lru size claculations
am: 710531320a

Change-Id: Ia652a70a9cb48a9372af989cbda7142db4a7b798

7 years agomm balloon: umount balloon_mnt when removing vb device
Yisheng Xie [Sun, 12 Mar 2017 08:17:48 +0000 (08:17 +0000)]
mm balloon: umount balloon_mnt when removing vb device
am: 8f6620e391

Change-Id: I0109a7006112a7eae7172d182b2f658a4b0a60e3

7 years agomm: do not access page->mapping directly on page_endio
Minchan Kim [Sun, 12 Mar 2017 08:17:39 +0000 (08:17 +0000)]
mm: do not access page->mapping directly on page_endio
am: 2c290eede9

Change-Id: I1aefdd04229ab592d2978115d311317a3c6a28d0

7 years agomm: vmpressure: fix sending wrong events on underflow
Vinayak Menon [Sun, 12 Mar 2017 08:17:30 +0000 (08:17 +0000)]
mm: vmpressure: fix sending wrong events on underflow
am: 58d1dbb904

Change-Id: I15c4bffe29045f21eeeb6c554a6771a28ade4733

7 years agomm/page_alloc: fix nodes for reclaim in fast path
Gavin Shan [Sun, 12 Mar 2017 08:17:20 +0000 (08:17 +0000)]
mm/page_alloc: fix nodes for reclaim in fast path
am: d1e8042628

Change-Id: I8535fbab1eede643a486709df9910876daa511b9

7 years agomm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done}
Dan Williams [Sun, 12 Mar 2017 08:17:09 +0000 (08:17 +0000)]
mm, devm_memremap_pages: hold device_hotplug lock over mem_hotplug_{begin, done}
am: f1faaec484

Change-Id: I7e37ea31b7376f63e9ff38b5d40020e793a64c1a

7 years agoCIFS: Fix splice read for non-cached files
Pavel Shilovsky [Sun, 12 Mar 2017 08:17:00 +0000 (08:17 +0000)]
CIFS: Fix splice read for non-cached files
am: c06d74df4e

Change-Id: I5be916690073405f640982ecc15c60f40c02e2f9

7 years agoiommu/vt-d: Tylersburg isoch identity map check is done too late.
Ashok Raj [Sun, 12 Mar 2017 08:16:50 +0000 (08:16 +0000)]
iommu/vt-d: Tylersburg isoch identity map check is done too late.
am: 24427cd71d

Change-Id: Ic7b5db5e24e4c05065038aabc65b0b455e482726

7 years agoiommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
CQ Tang [Sun, 12 Mar 2017 08:16:41 +0000 (08:16 +0000)]
iommu/vt-d: Fix some macros that are incorrectly specified in intel-iommu
am: 61cb3c6357

Change-Id: I2818b12005c1683156e0042b20ae75b3535a8967

7 years agotpm_tis: fix the error handling of init_tis()
Wei Yongjun [Sun, 12 Mar 2017 08:16:32 +0000 (08:16 +0000)]
tpm_tis: fix the error handling of init_tis()
am: 84c2697c9c

Change-Id: I02ecd01133a00a9f80f0e752c4c35a4111ba3424

7 years agoregulator: Fix regulator_summary for deviceless consumers
Leonard Crestez [Sun, 12 Mar 2017 08:16:23 +0000 (08:16 +0000)]
regulator: Fix regulator_summary for deviceless consumers
am: 2f714ba128

Change-Id: Id9a0b50e5aac52ae70403b220f8f81a77962b500

7 years agocoresight: STM: Balance enable/disable
Suzuki K Poulose [Sun, 12 Mar 2017 08:16:13 +0000 (08:16 +0000)]
coresight: STM: Balance enable/disable
am: 59cd503c8c

Change-Id: Ica27d5cba60c63bed9afe197a07fc122cd7312f9

7 years agostaging: rtl: fix possible NULL pointer dereference
Arnd Bergmann [Sun, 12 Mar 2017 08:16:03 +0000 (08:16 +0000)]
staging: rtl: fix possible NULL pointer dereference
am: c7472b964d

Change-Id: I47f0d514222016b00d200d2c4642e18c23f494fb

7 years agostaging/lustre/lnet: Fix allocation size for sv_cpt_data
Oleg Drokin [Sun, 12 Mar 2017 08:15:54 +0000 (08:15 +0000)]
staging/lustre/lnet: Fix allocation size for sv_cpt_data
am: 148c4526d7

Change-Id: Ib4f7fa4a40c994607381e13db156ad50169bf5a6

7 years agostaging: greybus: loopback: fix broken udelay
Johan Hovold [Sun, 12 Mar 2017 08:15:45 +0000 (08:15 +0000)]
staging: greybus: loopback: fix broken udelay
am: 2893a55e39

Change-Id: I6eddb42dbb3e57bc51b7dbf0b932a30b540ee78c

7 years agohwmon: (it87) Ensure that pwm control cache is current before updating values
Guenter Roeck [Sun, 12 Mar 2017 08:15:37 +0000 (08:15 +0000)]
hwmon: (it87) Ensure that pwm control cache is current before updating values
am: 6c95eba9ca

Change-Id: I5f06541ef3e2cbe962135210fa90372fcb495994

7 years agohwmon: (it87) Do not overwrite bit 2..6 of pwm control registers
Guenter Roeck [Sun, 12 Mar 2017 08:15:27 +0000 (08:15 +0000)]
hwmon: (it87) Do not overwrite bit 2..6 of pwm control registers
am: 4401e4779e

Change-Id: Ida7381d431c60735badcd92e16e8cc922f74cd5c

7 years agoALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
Hui Wang [Sun, 12 Mar 2017 08:15:18 +0000 (08:15 +0000)]
ALSA: hda - Fix micmute hotkey problem for a lenovo AIO machine
am: acb06ff2d5

Change-Id: I15f2ef78c23f327eabcb841ff948bdf910b61028

7 years agoALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
Takashi Iwai [Sun, 12 Mar 2017 08:15:09 +0000 (08:15 +0000)]
ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming
am: 2abe620e01

Change-Id: I97a18d5ede44249a3755a5e43403f188aad0efdc

7 years agoALSA: seq: Fix link corruption by event error handling
Takashi Iwai [Sun, 12 Mar 2017 08:14:59 +0000 (08:14 +0000)]
ALSA: seq: Fix link corruption by event error handling
am: 09cd5d3479

Change-Id: I57ce19f2798f3d059d592706a79627d2d5fa35da

7 years agoALSA: ctxfi: Fallback DMA mask to 32bit
Takashi Iwai [Sun, 12 Mar 2017 08:14:50 +0000 (08:14 +0000)]
ALSA: ctxfi: Fallback DMA mask to 32bit
am: 074f6db61f

Change-Id: I7bad93a4a27884ada4da2eb0576de0af8dfc26aa

7 years agoALSA: timer: Reject user params with too small ticks
Takashi Iwai [Sun, 12 Mar 2017 08:14:41 +0000 (08:14 +0000)]
ALSA: timer: Reject user params with too small ticks
am: 5ac9276dd1

Change-Id: I10e2d71df6afce32a43d3d7a9656937a4113ab7b

7 years agoALSA: hda - fix Lewisburg audio issue
Jaroslav Kysela [Sun, 12 Mar 2017 08:14:32 +0000 (08:14 +0000)]
ALSA: hda - fix Lewisburg audio issue
am: 51ce9867c2

Change-Id: Idcc9ef1ea1219407fdbe7d31432b00d2e9bbf32d

7 years agoALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
Kai-Heng Feng [Sun, 12 Mar 2017 08:14:24 +0000 (08:14 +0000)]
ALSA: hda/realtek - Cannot adjust speaker's volume on a Dell AIO
am: ebc3e95502

Change-Id: I882f3c7433e5ca2a9e33e18657362fafc0ee2972

7 years agoARM: dts: at91: Enable DMA on sama5d2_xplained console
Alexandre Belloni [Sun, 12 Mar 2017 08:14:14 +0000 (08:14 +0000)]
ARM: dts: at91: Enable DMA on sama5d2_xplained console
am: 9971863fdd

Change-Id: I9585a72bbc8717c831cb64c495862b5207fa1655

7 years agoARM: dts: at91: Enable DMA on sama5d4_xplained console
Alexandre Belloni [Sun, 12 Mar 2017 08:14:05 +0000 (08:14 +0000)]
ARM: dts: at91: Enable DMA on sama5d4_xplained console
am: f9a1949f8f

Change-Id: Idc392f1a7615552a2173916999283a4d029e41e1

7 years agoARM: at91: define LPDDR types
Alexandre Belloni [Sun, 12 Mar 2017 08:13:56 +0000 (08:13 +0000)]
ARM: at91: define LPDDR types
am: 37e70c4de5

Change-Id: Ia6592a9db0e2d1053b433213a884143637d8acb8

7 years agospi: s3c64xx: fix inconsistency between binding and driver
Andi Shyti [Sun, 12 Mar 2017 08:13:47 +0000 (08:13 +0000)]
spi: s3c64xx: fix inconsistency between binding and driver
am: 404950add4

Change-Id: If19098198f6a85b04b1611e6a193be207ecda379

7 years agoext4: fix deadlock between inline_data and ext4_expand_extra_isize_ea()
Theodore Ts'o [Sun, 12 Mar 2017 08:13:38 +0000 (08:13 +0000)]
ext4: fix deadlock between inline_data and ext4_expand_extra_isize_ea()
am: da1e40237f

Change-Id: I5c85cefcb10cba1d3a0edf6f6968927896929512

7 years agomedia: Properly pass through media entity types in entity enumeration
Sakari Ailus [Sun, 12 Mar 2017 08:13:29 +0000 (08:13 +0000)]
media: Properly pass through media entity types in entity enumeration
am: 719f1765b0

Change-Id: Ia9b9e295799255ca56ddf1dae49a6e372b5055a8

7 years agolirc_dev: LIRC_{G,S}ET_REC_MODE do not work
Sean Young [Sun, 12 Mar 2017 08:13:20 +0000 (08:13 +0000)]
lirc_dev: LIRC_{G,S}ET_REC_MODE do not work
am: ce1e60b492

Change-Id: I23c1e7dfc017e45dd514f41bd6fe9d15fdf469c9

7 years agocxd2820r: fix gpio null pointer dereference
Antti Palosaari [Sun, 12 Mar 2017 08:13:10 +0000 (08:13 +0000)]
cxd2820r: fix gpio null pointer dereference
am: 238442c2b5

Change-Id: I7ceb8c838cda13ea13ce4c669bc87735ab9dd385

7 years agomedia: fix dm1105.c build error
Randy Dunlap [Sun, 12 Mar 2017 08:13:01 +0000 (08:13 +0000)]
media: fix dm1105.c build error
am: 7e5b7798d0

Change-Id: Iaecc7a94ac72a2d9f0ad5a12e241583947a74bfe

7 years agouvcvideo: Fix a wrong macro
Guennadi Liakhovetski [Sun, 12 Mar 2017 08:12:52 +0000 (08:12 +0000)]
uvcvideo: Fix a wrong macro
am: 02789ccd59

Change-Id: I73c8f1df95f61399bdfa6596f36cb4671ba81224

7 years agoam437x-vpfe: always assign bpp variable
Nicolas Iooss [Sun, 12 Mar 2017 08:12:43 +0000 (08:12 +0000)]
am437x-vpfe: always assign bpp variable
am: d6b88a09cc

Change-Id: Ib0feaa9ffe319659036937417271b180ab21ba4d

7 years agommc: sdhci-acpi: support deferred probe
Zhang Rui [Sun, 12 Mar 2017 08:12:33 +0000 (08:12 +0000)]
mmc: sdhci-acpi: support deferred probe
am: 80bbadbc42

Change-Id: I8c7a37edef67fef67815c832cb20d228ea4b6606

7 years agoMIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
Paul Burton [Sun, 12 Mar 2017 08:12:24 +0000 (08:12 +0000)]
MIPS: Handle microMIPS jumps in the same way as MIPS32/MIPS64 jumps
am: 8d06cbd365

Change-Id: I1269796847ae8d9dc0a4a3d427a559b18ef7f89b

7 years agoMIPS: Calculate microMIPS ra properly when unwinding the stack
Paul Burton [Sun, 12 Mar 2017 08:12:14 +0000 (08:12 +0000)]
MIPS: Calculate microMIPS ra properly when unwinding the stack
am: 209ad1941d

Change-Id: I0dd0947122b2efcced99fe0761732f41bd910a30

7 years agoMIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
Paul Burton [Sun, 12 Mar 2017 08:12:06 +0000 (08:12 +0000)]
MIPS: Fix is_jump_ins() handling of 16b microMIPS instructions
am: b14e085086

Change-Id: I13bd3881ddb2f2999b82c111de9d1630d977a858

7 years agoMIPS: Fix get_frame_info() handling of microMIPS function size
Paul Burton [Sun, 12 Mar 2017 08:11:57 +0000 (08:11 +0000)]
MIPS: Fix get_frame_info() handling of microMIPS function size
am: b0b4eb58c5

Change-Id: Ic0a244312e3f1b9cb9a297d9fd692f34dddd4545

7 years agoMIPS: Prevent unaligned accesses during stack unwinding
Paul Burton [Sun, 12 Mar 2017 08:11:49 +0000 (08:11 +0000)]
MIPS: Prevent unaligned accesses during stack unwinding
am: ce449cbdcf

Change-Id: I7e6e790cb8db07930f08cfc1e61a19b516163ae2

7 years agoMIPS: Clear ISA bit correctly in get_frame_info()
Paul Burton [Sun, 12 Mar 2017 08:11:39 +0000 (08:11 +0000)]
MIPS: Clear ISA bit correctly in get_frame_info()
am: d0eae5bbd1

Change-Id: If9cf0de485b0caf623a10b330f9ca3ca743c0e3f

7 years agoMIPS: Lantiq: Keep ethernet enabled during boot
Felix Fietkau [Sun, 12 Mar 2017 08:11:30 +0000 (08:11 +0000)]
MIPS: Lantiq: Keep ethernet enabled during boot
am: 3660e62cfc

Change-Id: I0aa5c31f0205a33589f00b05a7853d90bc5e1004

7 years agoMIPS: OCTEON: Fix copy_from_user fault handling for large buffers
James Cowgill [Sun, 12 Mar 2017 08:11:22 +0000 (08:11 +0000)]
MIPS: OCTEON: Fix copy_from_user fault handling for large buffers
am: 6f35f1fc14

Change-Id: Ie987dd591b46d46b35d3f40a25588543783e55ab

7 years agoMIPS: BCM47XX: Fix button inversion for Asus WL-500W
Mirko Parthey [Sun, 12 Mar 2017 08:11:13 +0000 (08:11 +0000)]
MIPS: BCM47XX: Fix button inversion for Asus WL-500W
am: ef9e73be03

Change-Id: I3390484d5a10ac9c13dca526f392201d9b380d1b

7 years agoMIPS: Fix special case in 64 bit IP checksumming.
Ralf Baechle [Sun, 12 Mar 2017 08:11:05 +0000 (08:11 +0000)]
MIPS: Fix special case in 64 bit IP checksumming.
am: ef674c5eb8

Change-Id: I1314700d061976af7208b99d2792f971e3af971f

7 years agoMIPS: pic32mzda: Fix linker error for pic32_get_pbclk()
Purna Chandra Mandal [Sun, 12 Mar 2017 08:10:57 +0000 (08:10 +0000)]
MIPS: pic32mzda: Fix linker error for pic32_get_pbclk()
am: a8af2054e9

Change-Id: Ide50cfd761d7869693aad1b35b8673fb4bc90bfa

7 years agoperf callchain: Reference count maps
Krister Johansen [Fri, 6 Jan 2017 06:23:31 +0000 (22:23 -0800)]
perf callchain: Reference count maps

commit aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36 upstream.

If dso__load_kcore frees all of the existing maps, but one has already
been attached to a callchain cursor node, then we can get a SIGSEGV in
any function that happens to try to use this invalid cursor.  Use the
existing map refcount mechanism to forestall cleanup of a map until the
cursor iterates past the node.

Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Fixes: 84c2cafa2889 ("perf tools: Reference count struct map")
Link: http://lkml.kernel.org/r/20170106062331.GB2707@templeofstupid.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoDrivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()
Vitaly Kuznetsov [Wed, 7 Dec 2016 09:16:24 +0000 (01:16 -0800)]
Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()

commit c0bb03924f1a80e7f65900e36c8e6b3dc167c5f8 upstream.

DoS protection conditions were altered in WS2016 and now it's easy to get
-EAGAIN returned from vmbus_post_msg() (e.g. when we try changing MTU on a
netvsc device in a loop). All vmbus_post_msg() callers don't retry the
operation and we usually end up with a non-functional device or crash.

While host's DoS protection conditions are unknown to me my tests show that
it can take up to 10 seconds before the message is sent so doing udelay()
is not an option, we really need to sleep. Almost all vmbus_post_msg()
callers are ready to sleep but there is one special case:
vmbus_initiate_unload() which can be called from interrupt/NMI context and
we can't sleep there. I'm also not sure about the lonely
vmbus_send_tl_connect_request() which has no in-tree users but its external
users are most likely waiting for the host to reply so sleeping there is
also appropriate.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoPCI: altera: Fix TLP_CFG_DW0 for TLP write
Ley Foon Tan [Tue, 28 Feb 2017 10:37:16 +0000 (18:37 +0800)]
PCI: altera: Fix TLP_CFG_DW0 for TLP write

commit 2a7275a3d867b228216886aae35e1f64291180b1 upstream.

eb5767122feb ("PCI: altera: Simplify TLB_CFG_DW0 usage") used
TLP_FMTTYPE_CFGRD* (instead of TLP_FMTTYPE_CFGWR*) for TLP writes, which
causes writing to configuration space to fail.  Fix it by using correct
FMTTYPE for write operation.

Fixes: eb5767122feb ("PCI: altera: Simplify TLB_CFG_DW0 usage")
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agopci/hotplug/pnv-php: Disable MSI and PCI device properly
Gavin Shan [Wed, 15 Feb 2017 23:22:34 +0000 (10:22 +1100)]
pci/hotplug/pnv-php: Disable MSI and PCI device properly

commit 49f4b08e61547a5ccd2db551d994c4503efe5666 upstream.

pnv_php_disable_irq() can be called in two paths: Bailing path in
pnv_php_enable_irq() or releasing slot. The MSI (or MSIx) interrupts
is disabled unconditionally in pnv_php_disable_irq(). It's wrong
because that might be enabled by drivers other than pnv-php.

This disables MSI (or MSIx) interrupts and the PCI device only if
it was enabled by pnv-php. In the error path of pnv_php_enable_irq(),
we rely on the newly added parameter @disable_device. In the path
of releasing slot, @pnv_php->irq is checked.

Fixes: 360aebd85a4c ("drivers/pci/hotplug: Support surprise hotplug in powernv driver")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoPCI: hv: Fix wslot_to_devfn() to fix warnings on device removal
Dexuan Cui [Fri, 10 Feb 2017 21:18:46 +0000 (15:18 -0600)]
PCI: hv: Fix wslot_to_devfn() to fix warnings on device removal

commit 60e2e2fbafdd1285ae1b4ad39ded41603e0c74d0 upstream.

The devfn of 00:02.0 is 0x10.  devfn_to_wslot(0x10) == 0x2, and
wslot_to_devfn(0x2) should be 0x10, while it's 0x2 in the current code.

Due to this, hv_eject_device_work() -> pci_get_domain_bus_and_slot()
returns NULL and pci_stop_and_remove_bus_device() is not called.

Later when the real device driver's .remove() is invoked by
hv_pci_remove() -> pci_stop_root_bus(), some warnings can be noticed
because the VM has lost the access to the underlying device at that
time.

Signed-off-by: Jake Oshins <jakeo@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
CC: K. Y. Srinivasan <kys@microsoft.com>
CC: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoath9k: use correct OTP register offsets for the AR9340 and AR9550
Christian Lamparter [Tue, 14 Feb 2017 19:10:30 +0000 (20:10 +0100)]
ath9k: use correct OTP register offsets for the AR9340 and AR9550

commit c9f1e32600816d695f817477d56490bfc2ba43c6 upstream.

This patch fixes the OTP register definitions for the AR934x and AR9550
WMAC SoC.

Previously, the ath9k driver was unable to initialize the integrated
WMAC on an Aerohive AP121:

| ath: phy0: timeout (1000 us) on reg 0x30018: 0xbadc0ffe & 0x00000007 != 0x00000004
| ath: phy0: timeout (1000 us) on reg 0x30018: 0xbadc0ffe & 0x00000007 != 0x00000004
| ath: phy0: Unable to initialize hardware; initialization status: -5
| ath9k ar934x_wmac: failed to initialize device
| ath9k: probe of ar934x_wmac failed with error -5

It turns out that the AR9300_OTP_STATUS and AR9300_OTP_DATA
definitions contain a typo.

Cc: Gabor Juhos <juhosg@openwrt.org>
Fixes: add295a4afbdf5852d0 "ath9k: use correct OTP register offsets for AR9550"
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoath9k: fix race condition in enabling/disabling IRQs
Felix Fietkau [Thu, 2 Feb 2017 09:14:52 +0000 (10:14 +0100)]
ath9k: fix race condition in enabling/disabling IRQs

commit 3a5e969bb2f6692a256352649355d56d018d6b88 upstream.

The code currently relies on refcounting to disable IRQs from within the
IRQ handler and re-enabling them again after the tasklet has run.

However, due to race conditions sometimes the IRQ handler might be
called twice, or the tasklet may not run at all (if interrupted in the
middle of a reset).

This can cause nasty imbalances in the irq-disable refcount which will
get the driver permanently stuck until the entire radio has been stopped
and started again (ath_reset will not recover from this).

Instead of using this fragile logic, change the code to ensure that
running the irq handler during tasklet processing is safe, and leave the
refcount untouched.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoath5k: drop bogus warning on drv_set_key with unsupported cipher
Felix Fietkau [Wed, 11 Jan 2017 14:32:13 +0000 (16:32 +0200)]
ath5k: drop bogus warning on drv_set_key with unsupported cipher

commit a70e1d6fd6b5e1a81fa6171600942bee34f5128f upstream.

Simply return -EOPNOTSUPP instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoath10k: fix boot failure in UTF mode/testmode
Tamizh chelvam [Thu, 2 Feb 2017 06:32:18 +0000 (08:32 +0200)]
ath10k: fix boot failure in UTF mode/testmode

commit cb4281528b62207918b1e95827cad7527aa4dbaa upstream.

Rx filter reset and the dynamic tx switch mode (EXT_RESOURCE_CFG)
configuration are causing the following errors when UTF firmware
is loaded to the target.

Error message 1:
[ 598.015629] ath10k_pci 0001:01:00.0: failed to ping firmware: -110
[ 598.020828] ath10k_pci 0001:01:00.0: failed to reset rx filter: -110
[ 598.141556] ath10k_pci 0001:01:00.0: failed to start core (testmode): -110

Error message 2:
[ 668.615839] ath10k_ahb a000000.wifi: failed to send ext resource cfg command : -95
[ 668.618902] ath10k_ahb a000000.wifi: failed to start core (testmode): -95

Avoiding these configurations while bringing the target in
testmode is solving the problem.

Signed-off-by: Tamizh chelvam <c_traja@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agomei: remove support for broken parallel read
Alexander Usyskin [Tue, 7 Feb 2017 22:41:45 +0000 (00:41 +0200)]
mei: remove support for broken parallel read

commit cb97fbbcac15982406e0c74cd5512a8b6fcf10b3 upstream.

Parallel reads from multiple threads on a file descriptor
are not well defined and racy. It is safer to return to original
behavior and simply fail the additional read.
The solution is to remove request for next read credit.

Fixes: ff1586a7ea57 ("mei: enqueue consecutive reads")
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agosamples/seccomp: fix 64-bit comparison macros
Mathias Svensson [Fri, 6 Jan 2017 21:32:39 +0000 (13:32 -0800)]
samples/seccomp: fix 64-bit comparison macros

commit 916cafdc95843fb9af5fd5f83ca499d75473d107 upstream.

There were some bugs in the JNE64 and JLT64 comparision macros. This fixes
them, improves comments, and cleans up the file while we are at it.

Reported-by: Stephen Röttger <sroettger@google.com>
Signed-off-by: Mathias Svensson <idolf@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoext4: return EROFS if device is r/o and journal replay is needed
Theodore Ts'o [Sun, 5 Feb 2017 06:26:48 +0000 (01:26 -0500)]
ext4: return EROFS if device is r/o and journal replay is needed

commit 4753d8a24d4588657bc0a4cd66d4e282dff15c8c upstream.

If the file system requires journal recovery, and the device is
read-ony, return EROFS to the mount system call.  This allows xfstests
generic/050 to pass.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoext4: preserve the needs_recovery flag when the journal is aborted
Theodore Ts'o [Sun, 5 Feb 2017 04:38:06 +0000 (23:38 -0500)]
ext4: preserve the needs_recovery flag when the journal is aborted

commit 97abd7d4b5d9c48ec15c425485f054e1c15e591b upstream.

If the journal is aborted, the needs_recovery feature flag should not
be removed.  Otherwise, it's the journal might not get replayed and
this could lead to more data getting lost.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoext4: fix inline data error paths
Theodore Ts'o [Sun, 5 Feb 2017 04:04:00 +0000 (23:04 -0500)]
ext4: fix inline data error paths

commit eb5efbcb762aee4b454b04f7115f73ccbcf8f0ef upstream.

The write_end() function must always unlock the page and drop its ref
count, even on an error.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>