[PATCH 3.17 045/122] powerpc/pseries: Honor the generic "no_64bit_msi" flag

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit 415072a041bf50dbd6d56934ffc0cbbe14c97be8 upstream. Instead of the arch specific quirk which we are deprecating Signed-off-by: Benjamin Herrenschmidt Signed-off-

[PATCH 3.17 085/122] iser-target: Handle DEVICE_REMOVAL event on network portal listener correctly

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Sagi Grimberg commit 3b726ae2de02a406cc91903f80132daee37b6f1b upstream. In this case the cm_id->context is the isert_np, and the cm_id->qp is NULL, so use that to distinct the cases. Since we

[PATCH 3.17 026/122] ipx: fix locking regression in ipx_sendmsg and ipx_recvmsg

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Bohac [ Upstream commit 01462405f0c093b2f8dfddafcadcda6c9e4c5cdf ] This fixes an old regression introduced by commit b0d0d915 (ipx: remove the BKL). When a recvmsg syscall blocks waiting

[PATCH 3.17 088/122] spi: sirf: fix word width configuration

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Qipan Li commit 9c4b19a07a3ba35a2eb9b4134d485908e2f5 upstream. commit 8c328a262f ("spi: sirf: Avoid duplicate code in various bits_per_word cases") is wrong in setting data width register

[PATCH 3.17 087/122] spi: Fix mapping from vmalloc-ed buffer to scatter list

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Charles Keepax commit c1aefbdd050e1fb15e92bcaf34d95b17ea952097 upstream. We can only use page_address on memory that has been mapped using kmap, when the buffer passed to the SPI has been allo

[PATCH 3.17 086/122] spi: dw: Fix dynamic speed change.

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Thor Thayer commit 0a8727e69778683495058852f783eeda141a754e upstream. An IOCTL call that calls spi_setup() and then dw_spi_setup() will overwrite the persisted last transfer speed. On each tra

[PATCH 3.17 107/122] drm/radeon: fix endian swapping in vbios fetch for tdp table

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit 28731d5818ae25b92d1fb82fe0ac196e97102c1b upstream. Value needs to be swapped on BE. Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/r

[PATCH 3.17 090/122] vhost-scsi: Take configfs group dependency during VHOST_SCSI_SET_ENDPOINT

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit ab8edab132829b26dd13db6caca3c242cce35dc1 upstream. This patch addresses a bug where individual vhost-scsi configfs endpoint groups can be removed from below while act

[PATCH 3.17 106/122] clk-divider: Fix READ_ONLY when divider > 1

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: James Hogan commit e6d5e7d90be92cee626d7ec16ca9b06f1eed710b upstream. Commit 79c6ab509558 (clk: divider: add CLK_DIVIDER_READ_ONLY flag) in v3.16 introduced the CLK_DIVIDER_READ_ONLY flag whic

[PATCH 3.17 089/122] mac80211: Fix regression that triggers a kernel BUG with CCMP

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Ronald Wahl commit 4f031fa9f188b2b0641ac20087d9e16bcfb4e49d upstream. Commit 7ec7c4a9a686c608315739ab6a2b0527a240883c (mac80211: port CCMP to cryptoapi's CCM driver) introduced a regression wh

[PATCH 3.17 108/122] drm/radeon: disable native backlight control on pre-r6xx asics (v2)

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit b7bc596ebbe0cddc97d76ef9309f64471bbf13eb upstream. Just use the acpi interface. That's what windows uses on this generation and it's the only thing that seems to work reli

[PATCH 3.17 093/122] dmaengine: sun6i: Fix memcpy operation

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Maxime Ripard commit 1f9cd915b64bb95f7b41667b4bf8b22f0a0a557b upstream. The prep_memcpy call was not setting any meaningful burst and width because it was relying on the dma_slave_config was n

[PATCH 3.17 075/122] of: Fix crash if an earlycon driver is not found

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Kevin Cernekee commit ab74d00a39f70e1bc34a01322bb59f3750ca7a8c upstream. __earlycon_of_table_sentinel.compatible is a char[128], not a pointer, so it will never be NULL. Checking it against N

[PATCH 3.17 034/122] ASoC: rsnd: remove unsupported PAUSE flag

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Kuninori Morimoto commit 706c66213e5e623e23f521b1acbd8171af7a3549 upstream. R-Car sound doesn't support PAUSE. Remove SNDRV_PCM_INFO_PAUSE flags from snd_pcm_hardware info Signed-off-by: Kuni

[PATCH 3.17 096/122] nfsd: correctly define v4.2 support attributes

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 6d0ba0432a5e10bc714ba9c5adc460e726e5fbb4 upstream. Even when security labels are disabled we support at least the same attributes as v4.1. Signed-off-by: Christoph He

Re: [PATCH] kernel: sysctl: use 'unsigned long' type for 'zero' variable

2014-12-05 Thread Andrew Morton
On Thu, 04 Dec 2014 07:12:45 +0100 Manfred Spraul wrote: > Hi Andrew, > > On 12/04/2014 12:25 AM, Andrew Morton wrote: > > On Wed, 03 Dec 2014 15:41:21 +0300 Andrey Ryabinin > > wrote: > > > >> Use the 'unsigned long' type for 'zero' variable to fix this. > >> Changing type to 'unsigned long'

[PATCH 3.17 094/122] rt2x00: do not align payload on modern H/W

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Stanislaw Gruszka commit cfd9167af14eb4ec21517a32911d460083ee3d59 upstream. RT2800 and newer hardware require padding between header and payload if header length is not multiple of 4. For his

[PATCH 3.17 095/122] iwlwifi: pcie: fix prph dump length

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Liad Kaufman commit 87dd634ae72bb8f6d0dd12f1cbbc67c7da6dba3b upstream. The length counting previously done had an error in it, causing the length down the data dumping function to be shorter t

[PATCH 3.17 097/122] nfsd: Fix slot wake up race in the nfsv4.1 callback code

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit c6c15e1ed303ffc47e696ea1c9a9df1761c1f603 upstream. The currect code for nfsd41_cb_get_slot() and nfsd4_cb_done() has no locking in order to guarantee atomicity, and so a

[PATCH 3.17 098/122] sound/radeon: Move 64-bit MSI quirk from arch to driver

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Benjamin Herrenschmidt commit db79afa1e57925ba96ab18514c0ebe42a28e393e upstream. A number of radeon cards have a HW limitation causing them to be unable to generate the full 64-bit of address

[PATCH 3.17 099/122] hwmon: (g762) fix call to devm_hwmon_device_register_with_groups()

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Arnaud Ebalard commit 6b19b66013cfe608d63f0dab38834bbaceb0217a upstream. g762_remove() needs to first call hwmon_device_unregister() and then g762_of_clock_disable(). For that reason, it is no

[PATCH 3.17 101/122] Revert "xhci: clear root port wake on bits if controller isnt wake-up capable"

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Lu Baolu commit 9b41ebd3cf0f68d8cad779d3eeba336f78262e43 upstream. commit ff8cbf250b44 ("xhci: clear root port wake on bits if controller isn't") can cause device detection error if runtime PM

[PATCH 3.17 100/122] net/ping: handle protocol mismatching scenario

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Jane Zhou commit 91a0b603469069cdcce4d572b7525ffc9fd352a6 upstream. ping_lookup() may return a wrong sock if sk_buff's and sock's protocols dont' match. For example, sk_buff's protocol is ETH_

[PATCH 3.17 035/122] ASoC: fsi: remove unsupported PAUSE flag

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Kuninori Morimoto commit c1b9b9b1ad2df6144ca3fbe6989f7bd9ea5c5562 upstream. FSI doesn't support PAUSE. Remove SNDRV_PCM_INFO_PAUSE flags from snd_pcm_hardware info Signed-off-by: Kuninori Mor

[PATCH 3.17 102/122] ixgbe: Correctly disable VLAN filter in promiscuous mode

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Vlad Yasevich commit 4556dc591691fca743518edb24f15fbc83b5c8ef upstream. IXGBE adapter seems to require that VLAN filtering be enabled if VMDQ or SRIOV are enabled. When those functions are di

[PATCH 3.17 103/122] ixgbe: fix use after free adapter->state test in ixgbe_remove/ixgbe_probe

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit b5b2ffc0574e1f271d79b6b992ee382dc9d5eaa8 upstream. While working on a different issue, I noticed an annoying use after free bug on my machine when unloading the ixgbe dr

[PATCH 3.17 076/122] of/selftest: Fix off-by-one error in removal path

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Grant Likely commit c1a2086e2d8c4eb4e8630ba752e911ec180dec67 upstream. The removal path for selftest data has an off by one error that causes the code to dereference beyond the end of the node

[PATCH 3.17 083/122] srp-target: Retry when QP creation fails with ENOMEM

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit ab477c1ff5e0a744c072404bf7db51bfe1f05b6e upstream. It is not guaranteed to that srp_sq_size is supported by the HCA. So if we failed to create the QP with ENOMEM, try wi

[PATCH 3.17 084/122] target: Dont call TFO->write_pending if data_length == 0

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Roland Dreier commit 885e7b0e181c14e4d0ddd26c688bad2b84c1ada9 upstream. If an initiator sends a zero-length command (e.g. TEST UNIT READY) but sets the transfer direction in the transport laye

[PATCH 3.17 074/122] of/irq: Drop obsolete interrupts vs interrupts-extended text

2014-12-05 Thread Greg Kroah-Hartman
3.17-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Helgaas commit 66865de4314caca30598244b86817e774c188afa upstream. a9ecdc0fdc54 ("of/irq: Fix lookup to use 'interrupts-extended' property first") updated the description to say that:

Re: [PATCH] staging: lustre: fix sparse warning on LPROC_SEQ_FOPS macros

2014-12-05 Thread Tristan Lelong
On Fri, Dec 05, 2014 at 01:27:23PM -0800, Greg KH wrote: > On Fri, Dec 05, 2014 at 12:03:47AM -0800, Tristan Lelong wrote: > > static ssize_t > > -fld_proc_hash_seq_write(struct file *file, const char *buffer, > > - size_t count, loff_t *off) > > +fld_proc_hash_seq_write(struct f

[PATCH v2] kernfs: Fix kernfs_name_compare

2014-12-05 Thread Rasmus Villemoes
Returning a difference from a comparison functions is usually wrong (see acbbe6fbb240 "kcmp: fix standard comparison bug" for the long story). Here there is the additional twist that if the void pointers ns and kn->ns happen to differ by a multiple of 2^32, kernfs_name_compare returns 0, falsely re

Re: [PATCH] staging: lustre: fix sparse warning on LPROC_SEQ_FOPS macros

2014-12-05 Thread Tristan Lelong
On Fri, Dec 05, 2014 at 12:44:07AM -0800, Joe Perches wrote: > On Fri, 2014-12-05 at 00:37 -0800, Tristan Lelong wrote: > > On Fri, Dec 05, 2014 at 12:28:11AM -0800, Joe Perches wrote: > > > On Fri, 2014-12-05 at 00:03 -0800, Tristan Lelong wrote: > [] > > > > diff --git a/drivers/staging/lustre/lu

Re: [RFC] mm:add KPF_ZERO_PAGE flag for /proc/kpageflags

2014-12-05 Thread Andrew Morton
On Fri, 5 Dec 2014 18:22:33 +0800 "Wang, Yalin" wrote: > > -Original Message- > > From: Konstantin Khlebnikov [mailto:koc...@gmail.com] > > Sent: Friday, December 05, 2014 5:21 PM > > To: Wang, Yalin > > Cc: linux-kernel@vger.kernel.org; linux...@kvack.org; linux-arm- > > ker...@lists.in

Re: [PATCH 2/2] mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller.

2014-12-05 Thread Rafał Miłecki
On 5 December 2014 at 20:35, Graham Moore wrote: > + if (of_modalias_node(np, modalias, sizeof(modalias)) < 0) > + goto probe_failed; > + > + ret = spi_nor_scan(nor, modalias, SPI_NOR_QUAD); > + if (ret) > + goto

[PATCH] mm: memcontrol: Skip test_mem_cgroup_node_reclaimable() when no MAX_NUMNODES or not more than 1

2014-12-05 Thread Chen Gang
test_mem_cgroup_node_reclaimable() is only used when "MAX_NUMNODES > 1", so move it into related quote. The related warning (with allmodconfig under parisc): CC mm/memcontrol.o mm/memcontrol.c:1629:13: warning: 'test_mem_cgroup_node_reclaimable' defined but not used [-Wunused-function

Re: [PATCH] PM QoS: Add debugfs support to view the list of constraints

2014-12-05 Thread Rafael J. Wysocki
On Friday, December 05, 2014 11:19:08 AM Dave Gerlach wrote: > From: Nishanth Menon > > PM QoS requests are notoriously hard to debug and made even > more so due to their highly dynamic nature. Having visibility > into the internal data representation per constraint allows > us to have much bette

Re: [PATCH -v2 3/5] PM: convert printk to pr_* equivalent

2014-12-05 Thread Rafael J. Wysocki
On Friday, December 05, 2014 05:41:45 PM Michal Hocko wrote: > While touching this area let's convert printk to pr_*. This also makes > the printing of continuation lines done properly. > > Signed-off-by: Michal Hocko This is fine by me. Please let me know if you want me to take it. Otherwise,

Re: [PATCH 2/2 V8] intel_pstate: add kernel parameter to force loading.

2014-12-05 Thread Rafael J. Wysocki
On Friday, December 05, 2014 11:09:29 AM Linda Knippers wrote: > On 12/5/2014 4:40 AM, Ethan Zhao wrote: > > To force loading on Oracle Sun X86 servers, provide one kernel command line > > parameter > > > > intel_pstate = force > > > > For those who be aware of the risk of no power capping capa

Re: [PATCH v4 4/5] crypto: AF_ALG: add random number generator support

2014-12-05 Thread Stephan Mueller
Am Freitag, 5. Dezember 2014, 23:53:59 schrieb Herbert Xu: Hi Herbert, > On Wed, Dec 03, 2014 at 08:59:01PM +0100, Stephan Mueller wrote: > > +static int rng_recvmsg(struct kiocb *unused, struct socket *sock, > > + struct msghdr *msg, size_t len, int flags) > > +{ > > + struct

Re: [PATCH] ASLRv3: randomize_va_space=3 preventing offset2lib attack

2014-12-05 Thread Andy Lutomirski
On Thu, Dec 4, 2014 at 4:07 PM, Hector Marco wrote: > [PATCH] ASLRv3: randomize_va_space=3 preventing offset2lib attack > > The issue appears on PIE linked executables when all memory areas of > a process are randomized (randomize_va_space=2). In this case, the > attack "offset2lib" de-rando

Re: [PATCH] arch: uapi: asm: mman.h: Let MADV_FREE have same value for all architectures

2014-12-05 Thread Chen Gang
On 12/05/2014 02:54 PM, Minchan Kim wrote: > On Fri, Dec 05, 2014 at 06:58:29AM +0800, Chen Gang wrote: >> For uapi, need try to let all macros have same value, and MADV_FREE is >> added into main branch recently, so need redefine MADV_FREE for it. >> >> At present, '8' can be shared with all archi

[PATCH 1/4] iio: accel: kxcjk-1013: always power on device in resume

2014-12-05 Thread Irina Tirdea
When the system resumes, it will first call system resume and then runtime suspend (if CONFIG_RUNTIME_PM is enabled). There is no need to conditionally power on the device in system resume, so always power it on and leave runtime suspend to power it off if needed. Suggested-by: Srinivas Pandruvada

[PATCH 2/4] iio: accel: kxcjk-1013: only set power state if CONFIG_PM is defined

2014-12-05 Thread Irina Tirdea
When CONFIG_PM is not defined and the driver tries to power off the device, kxcjk1013_set_power_state will call pm_runtime_put_autosuspend, which is not implemented (wil return -ENOSYS). Only call pm_runtime calls to change power state when CONFIG_PM is defined. Signed-off-by: Irina Tirdea Revi

[PATCH 3/4] iio: accel: kxcjk-1013: error handling when set mode fails

2014-12-05 Thread Irina Tirdea
If there is an error in set mode at runtime resume, reset the state of the runtime usage count. If there is an error in set mode at runtime suspend, make sure the framework retries to suspend the device. Signed-off-by: Irina Tirdea --- drivers/iio/accel/kxcjk-1013.c | 12 +++- 1 file

[PATCH 4/4] iio: accel: kxcjk-1013: power off device if probe fails

2014-12-05 Thread Irina Tirdea
When the device is initialized in probe, it is also powered on. If there is an error after the initialization, the device will remain powered on. Power off the device in case probe fails after device initialization. Signed-off-by: Irina Tirdea Suggested-by: Daniel Baluta --- drivers/iio/accel/

[PATCH 0/4] PM fixes for kxcjk-1013

2014-12-05 Thread Irina Tirdea
This is a small set of power manangement fixes for kxcjk-1013 accel driver, mostly related to error handling. Irina Tirdea (4): iio: accel: kxcjk-1013: always power on device in resume iio: accel: kxcjk-1013: only set power state if CONFIG_PM is defined iio: accel: kxcjk-1013: error handling

Re: [PATCHv2 net] i40e: Implement ndo_gso_check()

2014-12-05 Thread Jesse Gross
On Tue, Dec 2, 2014 at 10:26 AM, Jesse Gross wrote: > On Mon, Dec 1, 2014 at 4:09 PM, Tom Herbert wrote: >> On Mon, Dec 1, 2014 at 3:53 PM, Jesse Gross wrote: >>> On Mon, Dec 1, 2014 at 3:47 PM, Tom Herbert wrote: On Mon, Dec 1, 2014 at 3:35 PM, Joe Stringer wrote: > On 21 Novem

Re: [PATCH v4 2/5] crypto: AF_ALG: add AEAD support

2014-12-05 Thread Stephan Mueller
Am Freitag, 5. Dezember 2014, 23:46:06 schrieb Herbert Xu: Hi Herbert, > On Wed, Dec 03, 2014 at 08:57:24PM +0100, Stephan Mueller wrote: > > + if (ctx->merge) { > > + sg = sgl->sg + sgl->cur - 1; > > + len = min_t(unsigned long, len, > > + PAGE_SIZE -

Re: [PATCH] arch: uapi: asm: mman.h: Let MADV_FREE have same value for all architectures

2014-12-05 Thread Chen Gang
On 12/05/2014 08:14 AM, Darrick J. Wong wrote: > On Fri, Dec 05, 2014 at 06:58:29AM +0800, Chen Gang wrote: >> For uapi, need try to let all macros have same value, and MADV_FREE is >> added into main branch recently, so need redefine MADV_FREE for it. >> >> At present, '8' can be shared with all a

Re: [PATCH 0/3] Dell Airplane Mode Switch driver

2014-12-05 Thread Gabriele Mazzotta
On Friday 05 December 2014 22:23:25 Pali Rohár wrote: > On Friday 05 December 2014 22:12:42 Gabriele Mazzotta wrote: > > On Friday 05 December 2014 22:03:24 Pali Rohár wrote: > > > On Friday 05 December 2014 21:53:10 Gabriele Mazzotta wrote: > > > > On Friday 05 December 2014 21:38:17 Pali Rohár wr

Re: [RESEND PATCHv2] drivers/rtc/rtc-snvs: Add clock support

2014-12-05 Thread Andrew Morton
On Fri, 05 Dec 2014 15:54:15 +0100 Stefan Agner wrote: > It can be fixed, with something like this: > > @@ -346,7 +347,10 @@ static int snvs_rtc_resume(struct device *dev) > } > #endif > > -static SIMPLE_DEV_PM_OPS(snvs_rtc_pm_ops, snvs_rtc_suspend, > snvs_rtc_resume); > +static const struct

Re: [PATCH] ARM: dts: rockchip: set dw_mmc max-freq 150Mhz

2014-12-05 Thread Heiko Stübner
Am Donnerstag, 4. Dezember 2014, 10:49:35 schrieb Addy Ke: > All of mmc controllers include SDMMC, SDIO0, SDIO1, and EMMC on RK3288 > are limited to 150Mhz. It was mainly caused by two reasons: > - RK3288's IO pad(except DDR IO pad) is generic, which can only support > the max of 150Mhz. > - Mmc

Re: [PATCH] Revert "MIPS: Remove race window in page fault handling"

2014-12-05 Thread Leonid Yegoshin
Lars, On 12/05/2014 01:32 AM, Lars Persson wrote: Hi Our setup includes both a non-DMA block device and a compressing file-system (UBIFS). A flush_dcache_page() is issued by UBIFS so your patch fixes another problem that we do not hit. The stack trace is not available now. Do we need it for an

Re: [PATCH v3 3/3] MIPS: set stack/data protection as non-executable

2014-12-05 Thread David Daney
On 12/05/2014 11:44 AM, Christoph Lameter wrote: On Fri, 5 Dec 2014, David Daney wrote: The problem is not with "modern" executables that are properly annotated with PT_GNU_STACK. My objection is to the intentional breaking of old executables that have no PT_GNU_STACK annotation, but require a

[RESEND][PATCH] crypto: drbg - panic on continuous self test error

2014-12-05 Thread Stephan Mueller
This patch adds a panic if the FIPS 140-2 self test error failed. Note, that entire code is only executed with fips_enabled (i.e. when the kernel is booted with fips=1. It is therefore not executed for 99.9% of all user base. As mathematically such failure cannot occur, this panic should never be

Re: 3.12.33 - BUG xfrm_selector_match+0x25/0x2f6

2014-12-05 Thread Julian Anastasov
Hello, On Fri, 5 Dec 2014, Smart Weblications GmbH - Florian Wiessner wrote: > thank you for the fast responses! I would like to test any patch for 3.12. I hope I'll have time this weekend... > If i understand correctly, i set: > > echo 0 > /proc/sys/net/ipv4/vs/snat_reroute

Re: [PATCH] ARM: dts: qcom: Correct IPQ tlmm interrupt

2014-12-05 Thread Andy Gross
On Fri, Dec 05, 2014 at 12:53:33PM -0800, Stephen Boyd wrote: > The interrupt is 16, not 32 (which it would be if we include PPIs > in the count of interrupts). > > Cc: Andy Gross > Signed-off-by: Stephen Boyd This fixed my issue! Reviewed-by: Andy Gross Tested-by: Andy Gross -- Qualcomm I

Re: [PATCH 1/9] kernel: Provide READ_ONCE and ASSIGN_ONCE

2014-12-05 Thread George Spelvin
> Of prefer it to match the put_user model, which is (val, ptr). But as long > as there is your safety (and the whole point of the macro is that it > figures out the type from the pointer), I guess it doesn't matter too much > in practice. > > I think my original suggestion also wrote it in lower

Re: [PATCH] clk: rockchip: Add CLK_SET_RATE_PARENT to sclk_uart clocks

2014-12-05 Thread Heiko Stübner
Am Donnerstag, 4. Dezember 2014, 13:33:05 schrieb Doug Anderson: > We'd like to be able to set the clock rate of the sclk_uart clocks and > actually be able to achieve clock rates greater than 24MHz. To do > this we need to be able to pass rate changes upward. > > Signed-off-by: Doug Anderson a

Re: [PATCH] sched/fair: tiny clearup of -1

2014-12-05 Thread Greg Kroah-Hartman
On Fri, Dec 05, 2014 at 02:02:45PM +0800, jun.zh...@intel.com wrote: > From: zhang jun > > find_idlest_cpu don't return -1, so clearup it. > > Signed-off-by: zhang jun > Signed-off-by: Chuansheng Liu > Signed-off-by: Changcheng Liu > Cc: Greg Kroah-Hartman Why me? I don't care about this f

Re: [PATCH 1/4] dma: add dma_get_required_mask_from_max_pfn()

2014-12-05 Thread Greg Kroah-Hartman
On Fri, Dec 05, 2014 at 02:08:00PM +, David Vrabel wrote: > A generic dma_get_required_mask() is useful even for architectures (such > as ia64) that define ARCH_HAS_GET_REQUIRED_MASK. > > Signed-off-by: David Vrabel > Reviewed-by: Stefano Stabellini > --- > drivers/base/platform.c | 1

[PATCH 2/2] drm/msm: Add the eDP connector in msm drm driver

2014-12-05 Thread Hai Li
Modified the hard-coded hdmi connector/encoder implementations in msm drm driver to support both edp and hdmi. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c | 38 +-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 47 - drive

Re: [PATCHv5 0/4] dma, x86, xen: reduce SWIOTLB usage in Xen guests

2014-12-05 Thread Greg Kroah-Hartman
On Fri, Dec 05, 2014 at 02:07:59PM +, David Vrabel wrote: > On systems where DMA addresses and physical addresses are not 1:1 > (such as Xen PV guests), the generic dma_get_required_mask() will not > return the correct mask (since it uses max_pfn). > > Some device drivers (such as mptsas, mpt2

[PATCH 1/2] drm/msm: Initial add eDP support in msm drm driver (V2)

2014-12-05 Thread Hai Li
This change adds a new eDP connector in msm drm driver. With this change, eDP panel can work with msm platform under drm framework. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Makefile|6 + drivers/gpu/drm/msm/edp/edp.c | 211 drivers/gpu/drm/msm/edp/edp.h

[PATCH v2] staging: panel: Remove magic numbers in LCD commands

2014-12-05 Thread Mariusz Gorski
Get rid of magic numbers in LCD commands and replace them with defined values, so that it's more obvious that the commands are doing. Signed-off-by: Mariusz Gorski --- v2: Found and got rid of two more magic number usages drivers/staging/panel/panel.c | 96 +-

[PATCH] uio/uio_pci_generic: don't return zero on failure path in probe()

2014-12-05 Thread Alexey Khoroshilov
If uio_register_device() fails in probe(), it breaks off initialization, deallocates all resources, but returns zero. The patch adds proper error code propagation. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/uio/uio_pci_generic.c

Re: [PATCH] staging: lustre: fix sparse warning on LPROC_SEQ_FOPS macros

2014-12-05 Thread Greg KH
On Fri, Dec 05, 2014 at 12:03:47AM -0800, Tristan Lelong wrote: > This patch fix a sparse warning in lustre sources > > warning: incorrect type in argument 1 (different address spaces) > expected void [noderef] *to > got char * > > This is done by adding the missing __user attribute on us

Re: [PATCH 0/3] Dell Airplane Mode Switch driver

2014-12-05 Thread Pali Rohár
On Friday 05 December 2014 22:12:42 Gabriele Mazzotta wrote: > On Friday 05 December 2014 22:03:24 Pali Rohár wrote: > > On Friday 05 December 2014 21:53:10 Gabriele Mazzotta wrote: > > > On Friday 05 December 2014 21:38:17 Pali Rohár wrote: > > > > On Wednesday 03 December 2014 14:00:23 Darren Har

Re: [PATCH 0/3] Dell Airplane Mode Switch driver

2014-12-05 Thread Gabriele Mazzotta
On Friday 05 December 2014 22:03:24 Pali Rohár wrote: > On Friday 05 December 2014 21:53:10 Gabriele Mazzotta wrote: > > On Friday 05 December 2014 21:38:17 Pali Rohár wrote: > > > On Wednesday 03 December 2014 14:00:23 Darren Hart wrote: > > > > On Thu, Dec 04, 2014 at 10:55:32AM +0100, Pali Rohár

[PATCH] staging: panel: Remove magic numbers in LCD commands

2014-12-05 Thread Mariusz Gorski
Get rid of magic numbers in LCD commands and replace them with defined values, so that it's more obvious that the commands are doing. Signed-off-by: Mariusz Gorski --- drivers/staging/panel/panel.c | 83 +-- 1 file changed, 57 insertions(+), 26 deletions(-

Re: [PATCH 4/6] UBI: Fastmap: Fix races in ubi_wl_get_peb()

2014-12-05 Thread Richard Weinberger
Tanya, Am 05.12.2014 um 17:54 schrieb Tanya Brokhman: > Hi Richard > > On 12/5/2014 3:20 PM, Richard Weinberger wrote: >> Tanya, >> >> Am 05.12.2014 um 14:09 schrieb Tanya Brokhman: >>> On 11/24/2014 3:20 PM, Richard Weinberger wrote: ubi_wl_get_peb() has two problems, it reads the pool

Re: [PATCH 0/3] dell-wmi: Don't send unneeded keypresses

2014-12-05 Thread Pali Rohár
On Friday 05 December 2014 21:41:22 Pavel Machek wrote: > On Fri 2014-12-05 21:31:34, Pali Rohár wrote: > > On Wednesday 03 December 2014 14:34:32 Darren Hart wrote: > > > On Thu, Dec 04, 2014 at 12:16:20AM +0100, Gabriele > > > Mazzotta > > > > wrote: > > > > Currently dell-wmi reports keypresses

Re: [PATCH] optimize ktime_divns for constant divisors

2014-12-05 Thread Arnd Bergmann
On Friday 05 December 2014 13:00:22 Nicolas Pitre wrote: > > BTW this is worth applying despite the on-going discussion with Arnd > on a separate optimization. Agreed > On Wed, 3 Dec 2014, Nicolas Pitre wrote: > > > At least on ARM, do_div() is optimized to turn constant divisors into > > an i

Re: [PATCH 0/3] Dell Airplane Mode Switch driver

2014-12-05 Thread Pali Rohár
On Friday 05 December 2014 21:53:10 Gabriele Mazzotta wrote: > On Friday 05 December 2014 21:38:17 Pali Rohár wrote: > > On Wednesday 03 December 2014 14:00:23 Darren Hart wrote: > > > On Thu, Dec 04, 2014 at 10:55:32AM +0100, Pali Rohár wrote: > > > > Darren, I think that if we do not solve proble

Re: [PATCH 5/6] UBI: Split __wl_get_peb()

2014-12-05 Thread Richard Weinberger
Tanya, Am 05.12.2014 um 18:41 schrieb Tanya Brokhman: > On 11/24/2014 3:20 PM, Richard Weinberger wrote: >> Make it two functions, wl_get_wle() and wl_get_peb(). >> wl_get_peb() works exactly like __wl_get_peb() but wl_get_wle() >> does not call produce_free_peb(). >> While refilling the fastmap u

Re: [PATCH v2 5/6] net-PPP: Delete an unnecessary assignment in mppe_alloc()

2014-12-05 Thread SF Markus Elfring
>> That is true. > > In that case, I misunderstood what you wrote. I find it a bit interesting how this misunderstanding could happen here somehow. > Looking at it now, this patch is actually ok. Does that mean that you would like to add any tag like "Acked-by" or "Reviewed-by" to any of the

Re: [Bisected] linux-next 20141205 fails to mount ext4 fs on arm64 with CONFIG_ARM64_64K_PAGES=y

2014-12-05 Thread Theodore Ts'o
On Fri, Dec 05, 2014 at 10:54:20PM +0400, Dmitry Monakhov wrote: > Liviu Dudau writes: > > Yes. This is my crap. > - sbi->s_group_desc[group_desc] > + gd_bh = *rcu_dereference(sbi->s_group_desc) + group_desc; > > Ted I have to admit that I'm an idiot. > I already have fix where I've fixed the ty

Re: [PATCH 6/6] UBI: Fastmap: Make ubi_refill_pools() fair

2014-12-05 Thread Richard Weinberger
Tanya, Am 05.12.2014 um 18:55 schrieb Tanya Brokhman: > Hi Richard, > > On 11/24/2014 3:20 PM, Richard Weinberger wrote: >> Currently ubi_refill_pools() first fills the first and then >> the second one. >> If only very few free PEBs are available the second pool can get >> zero PEBs. >> Change ub

[PATCH] ARM: dts: qcom: Correct IPQ tlmm interrupt

2014-12-05 Thread Stephen Boyd
The interrupt is 16, not 32 (which it would be if we include PPIs in the count of interrupts). Cc: Andy Gross Signed-off-by: Stephen Boyd --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/b

Re: [PATCH 0/3] Dell Airplane Mode Switch driver

2014-12-05 Thread Gabriele Mazzotta
On Friday 05 December 2014 21:38:17 Pali Rohár wrote: > On Wednesday 03 December 2014 14:00:23 Darren Hart wrote: > > On Thu, Dec 04, 2014 at 10:55:32AM +0100, Pali Rohár wrote: > > > Darren, I think that if we do not solve problem with > > > duplicate key events (in dell-wireless.c) we should > >

Re: [tpmdd-devel] [PATCH v9 8/8] tpm: TPM 2.0 FIFO Interface

2014-12-05 Thread Stefan Berger
On 12/05/2014 10:01 AM, Peter Huewe wrote: Am Donnerstag, 4. Dezember 2014, 06:55:18 schrieb Jarkko Sakkinen: From: Will Arthur Detect TPM 2.0 by using the extended STS (STS3) register. For TPM 2.0, instead of calling tpm_get_timeouts(), assign duration and timeout values defined in the TPM 2.

Re: [PATCH 0/3] dell-wmi: Don't send unneeded keypresses

2014-12-05 Thread Pavel Machek
On Fri 2014-12-05 21:31:34, Pali Rohár wrote: > On Wednesday 03 December 2014 14:34:32 Darren Hart wrote: > > On Thu, Dec 04, 2014 at 12:16:20AM +0100, Gabriele Mazzotta > wrote: > > > Currently dell-wmi reports keypresses for WMI events that > > > are notifications of changes performed by the BIO

Re: [PATCH 0/3] Dell Airplane Mode Switch driver

2014-12-05 Thread Pali Rohár
On Wednesday 03 December 2014 14:00:23 Darren Hart wrote: > On Thu, Dec 04, 2014 at 10:55:32AM +0100, Pali Rohár wrote: > > Darren, I think that if we do not solve problem with > > duplicate key events (in dell-wireless.c) we should > > postpone these patches to later kernel version. It is > > bett

Re: [PATCH 0/3] dell-wmi: Don't send unneeded keypresses

2014-12-05 Thread Pali Rohár
On Wednesday 03 December 2014 14:34:32 Darren Hart wrote: > On Thu, Dec 04, 2014 at 12:16:20AM +0100, Gabriele Mazzotta wrote: > > Currently dell-wmi reports keypresses for WMI events that > > are notifications of changes performed by the BIOS. > > This patch series make sure that no keypresses ar

TTY layer need a lock to copy data to user space

2014-12-05 Thread Denis Du
Hi, Guys: It was found that the 3.12 kernel tty layer will lose or corrupt data when have a full-duplex communication, especcially in high baudrate, for example 230k for my OMAP5 uart. Eventually I found there is lock missing between copy data to ldisc layer buffer and copy data from the same

Re: [PATCH v3 0/5] iio: common: ssp_sensors: Add sensorhub driver

2014-12-05 Thread Karol Wrona
On 12/05/2014 08:54 PM, Karol Wrona wrote: This patchset adds support for sensorhub. It is an external mcu which manages and collects data from several sensors i.e. on Galaxy Gear 2 watch. It contains: - spi driver for sensorhub device - DT binding for the device - IIO common utils for ssp senso

Re: [PATCH] OHCI: add a quirk for ULi M5237 blocking on reset

2014-12-05 Thread Alan Stern
On Fri, 5 Dec 2014, Arseny Solokha wrote: > From: Arseny Solokha > > Commit 8dccddbc2368 ("OHCI: final fix for NVIDIA problems (I hope)") > introduced into 3.1.9 broke boot on e.g. Freescale P2020DS development > board. The code path that was previously specific to NVIDIA controllers > had then

Re: [PATCH] usb: gadget: f_mass_storage: restore address range on exit

2014-12-05 Thread Alan Stern
On Fri, 5 Dec 2014, Sanjay Singh Rawat wrote: > At the start of the thread we are changing the address limit, restoring it > to the default while exiting. What for? The thread is about to exit anyway. Who cares what the address limit is set to? Alan Stern -- To unsubscribe from this list: se

Re: [PATCH] PCI: Add disabling pm async quirk for JMicron chips

2014-12-05 Thread Alan Stern
On Fri, 5 Dec 2014, Chuansheng Liu wrote: > Some history from > commit e6b7e41cdd8c ("ata: Disabling the async PM for JMicron chip 363/361") > == > Since v3.15, the PM feature of async noirq > commit 76569faa62c4 ("PM / sleep: Asynchronous threads for resume_noirq") is > introduced. > > Then Jay

Re: [PATCH] ASLRv3: randomize_va_space=3 preventing offset2lib attack

2014-12-05 Thread Kees Cook
Hi, Thanks for working on this! On Thu, Dec 4, 2014 at 4:07 PM, Hector Marco wrote: > [PATCH] ASLRv3: randomize_va_space=3 preventing offset2lib attack > > The issue appears on PIE linked executables when all memory areas of > a process are randomized (randomize_va_space=2). In this case, th

[PATCH 4/4] mm: microoptimize zonelist operations

2014-12-05 Thread Vlastimil Babka
The function next_zones_zonelist() returns zoneref pointer, as well as zone pointer via extra parameter. Since the latter can be trivially obtained by dereferencing the former, the overhead of the extra parameter is unjustified. This patch thus removes the zone parameter from next_zones_zonelist()

[RFC PATCH 2/4] mm, page_alloc: reduce number of alloc_pages* functions' parameters

2014-12-05 Thread Vlastimil Babka
Introduce struct alloc_context to accumulate the numerous parameters passed between the alloc_pages* family of functions and get_page_from_freelist(). This excludes gfp_flags and alloc_info, which mutate too much along the way. The result is shorter function signatures, as well as code size and st

[PATCH 1/4] mm: set page->pfmemalloc in prep_new_page()

2014-12-05 Thread Vlastimil Babka
The function prep_new_page() sets almost everything in the struct page of the page being allocated, except page->pfmemalloc. This is not obvious and has at least once led to a bug where page->pfmemalloc was forgotten to be set correctly, see commit 8fb74b9fb2b1 ("mm: compaction: partially revert ca

[RFC PATCH V2 0/4] Reducing parameters of alloc_pages* family of functions

2014-12-05 Thread Vlastimil Babka
Hey all, this is a V2 of attempting something that has been discussed when Minchan proposed to expand the x86 kernel stack [1], namely the reduction of huge number of parameters that the alloc_pages* family and get_page_from_freelist() functions have. The result is this series, ordered in the sub

[RFC PATCH 3/4] mm: reduce try_to_compact_pages parameters

2014-12-05 Thread Vlastimil Babka
Use the struct alloc_context introduced in the previous patch also when calling try_to_compact_pages(), to reduce the number of parameters. Since it's in different compilation modeule, definition of the struct is moved to mm.h. With this change we get small savings of code size and stack usage. Si

[PATCH v3 5/5] iio: common: ssp_sensors: Add sensorhub gyroscope sensor

2014-12-05 Thread Karol Wrona
This patch adds gyroscope iio driver which uses sensorhub as data provider. Change-Id: Ia16bc92159d062a29957de8e62ea3fefdcd7985a Signed-off-by: Karol Wrona Acked-by: Kyungmin Park --- drivers/iio/gyro/Makefile |2 + drivers/iio/gyro/ssp_gyro_sensor.c | 202

Re: [PATCH v12 7/7] ARM: kprobes: enable OPTPROBES for ARM 32

2014-12-05 Thread Peter Maydell
On 5 December 2014 at 10:10, Jon Medhurst (Tixy) wrote: > I don't know much about QEMU and have never used it, but I'm assuming > QEMU doesn't make any attempt to simulate caches like the data cache, > instruction cache, TLBs, branch predictor? Does it even emulate multiple > CPUs with multiple ho

[PATCH v3 1/5] iio: common: ssp_sensors: Add sensorhub driver

2014-12-05 Thread Karol Wrona
Sensorhub is MCU dedicated to collect data and manage several sensors. Sensorhub is a spi device which provides a layer for IIO devices. It provides some data parsing and common mechanism for sensorhub sensors. Adds common sensorhub library for sensorhub driver and iio drivers which uses sensorhu

[PATCH v3 3/5] iio: common: ssp_sensors: Add sensorhub iio commons

2014-12-05 Thread Karol Wrona
This patch adds common library for sensorhub iio drivers. Change-Id: I1038cb31c051f7e8ffde696a4121518daa5af081 Signed-off-by: Karol Wrona Acked-by: Kyungmin Park --- drivers/iio/common/ssp_sensors/ssp_iio.c| 82 +++ drivers/iio/common/ssp_sensors/ssp_iio_sensor.h |

<    1   2   3   4   5   6   7   8   >