[PATCH] perf/x86/intel/uncore: fix IMC missing box initialization

2015-04-22 Thread Stephane Eranian
This patch fixes a bug introduced by: commit c05199e5a57a579fea1e8fa65e2b511ceb524ffc Author: Kan Liang Date: Tue Jan 20 04:54:25 2015 + perf/x86/intel/uncore: Move uncore_box_init() out of driver initialization It moves uncore_box_init() out of place but this meant that for desktop

Re: [Linux-nvdimm] [PATCH 00/21] ND: NFIT-Defined / NVDIMM Subsystem

2015-04-22 Thread Ingo Molnar
* Elliott, Robert (Server Storage) wrote: > > -Original Message- > > From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On Behalf Of > > Dan Williams > > Sent: Friday, April 17, 2015 8:35 PM > > To: linux-nvd...@lists.01.org > > Subject: [Linux-nvdimm] [PATCH 00/21] ND:

Re: Issues with capability bits and meta-data in kdbus

2015-04-22 Thread Havoc Pennington
On Wed, Apr 22, 2015 at 5:48 PM, Linus Torvalds wrote: > > Conditional byte order is worse than silly - it's terminally stupid. > Hey, usually I write a long rant myself, but I was trying to keep it to one bullet point for once in my life. Way to ruin it, geez. Havoc -- To unsubscribe from this

Re: Is it OK to export symbols 'getname' and 'putname'?

2015-04-22 Thread Boqun Feng
On Tue, Apr 21, 2015 at 10:50:15PM -0700, Christoph Hellwig wrote: > On Mon, Apr 20, 2015 at 05:55:07PM +0200, Jan Kara wrote: > > > Is that a good idea to export these symbols, given that lustre may be > > > the only user? > > Yes, it is a good idea. > > It was if lustre was in core code and

Re: [RFC][PATCHSET] non-recursive link_path_walk() and reducing stack footprint

2015-04-22 Thread Al Viro
On Tue, Apr 21, 2015 at 10:20:07PM +0100, Al Viro wrote: > I agree that unlazy_walk() attempted when walking a symlink ought to fail > with -ECHILD; we can't legitimize the symlink itself, so once we are out > of RCU mode, there's nothing to hold the inode of symlink (and its body) > from getting

Re: [PATCH v2] tpm: enable PPI for TPM 2.0

2015-04-22 Thread Jarkko Sakkinen
On Tue, Apr 21, 2015 at 01:33:38PM -0600, Jason Gunthorpe wrote: > On Tue, Apr 21, 2015 at 09:30:55PM +0300, Jarkko Sakkinen wrote: > > Enabled PPI interface to the character device sysfs directory accessible > > both for 1.x and 2.0 devices. > > > > The ppi group is moved from the platform

linux-next: Tree for Apr 23

2015-04-22 Thread Stephen Rothwell
Hi all, Please do not add any v4.2 material to your linux-next included trees until after v4.1-rc1 is released. Changes since 20150422: Removed tree: exec-domain (merged) Non-merge commits (relative to Linus' tree): 1466 1311 files changed, 78501 insertions(+), 20869 deletions

[GIT PULL] ARC changes for 4.1-rc1

2015-04-22 Thread Vineet Gupta
Hi Linus, Please pull. Thx, -Vineet --> he following changes since commit e42391cd048809d903291d07f86ed3934ce138e9: Linux 4.0-rc6 (2015-03-29 15:26:31 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git/

Re: iwlwifi getting stuck with current Linus' tree (646da63172)

2015-04-22 Thread Grumbach, Emmanuel
Hi, On Wed, 2015-04-22 at 22:42 +0200, Jiri Kosina wrote: > Hi, > > I've been running current Linus' tree and have been getting system lockups > frequently. After a few "silent" lockups, I was able to obtain a dmesg > before the machine turned dead again (wifi stopped working shortly before

[PATCHv2] ibmveth: Fix off-by-one error in ibmveth_change_mtu()

2015-04-22 Thread David Gibson
AFAIK the PAPR document which defines the virtual device interface used by the ibmveth driver doesn't specify a specific maximum MTU. So, in the ibmveth driver, the maximum allowed MTU is determined by the maximum allocated buffer size of 64k (corresponding to one page in the common case) minus

Re: [PATCH] kvm: powerpc: Fix ppc64_defconfig + PPC_POWERNV=n build error

2015-04-22 Thread Shreyas B Prabhu
Any suggestions on this? On Thursday 16 April 2015 04:28 PM, Shreyas B. Prabhu wrote: > kvm_no_guest function calls power7_wakeup_loss to put the thread into > the deepest supported idle state. power7_wakeup_loss is defined in > arch/powerpc/kernel/idle_power7.S, which is compiled only when

Re: [PATCHv2 03/10] zram: use idr instead of `zram_devices' array

2015-04-22 Thread Sergey Senozhatsky
On (04/23/15 11:23), Minchan Kim wrote: [..] > > +static int zram_exit_cb(int id, void *ptr, void *data) > > trivial: I prefer remove to exit. > ok. > > +{ > > + zram_remove(ptr); > > + return 0; > > +} > > > > - kfree(zram_devices); > > +static void destroy_devices(void) > > +{ > > +

EC Finance Loan Offer !!!Apply Now.......

2015-04-22 Thread EC Finance Pty Ltd
-- Dear Valued Customer, Apply for personal and business loans with EC finance today on a fixed interest rate of 3.9%.You can as well consolidate your debts within maximum 24 working hours.Open attached file for details. Regards, EC Finance Pty Ltd (Online Application Center). Welcome To

Re: [PATCHv2 04/10] zram: factor out device reset from reset_store()

2015-04-22 Thread Sergey Senozhatsky
On (04/23/15 11:29), Minchan Kim wrote: > On Thu, Apr 16, 2015 at 08:55:50PM +0900, Sergey Senozhatsky wrote: > > Device reset currently includes two steps: > > a) holding ->bd_mutex we ensure that there are no device users > > (bdev->bd_openers) > > > > b) and "internal" part (executed under

Re: [PATCHv2 06/10] zram: remove max_num_devices limitation

2015-04-22 Thread Sergey Senozhatsky
On (04/23/15 11:36), Minchan Kim wrote: > Date: Thu, 23 Apr 2015 11:36:36 +0900 > From: Minchan Kim > To: Sergey Senozhatsky > Cc: Andrew Morton , Nitin Gupta > , linux-kernel@vger.kernel.org, Sergey Senozhatsky > > Subject: Re: [PATCHv2 06/10] zram: remove max_num_devices limitation >

Re: [PATCHv2 07/10] zram: report every added and removed device

2015-04-22 Thread Sergey Senozhatsky
On (04/23/15 11:38), Minchan Kim wrote: > > + > > + pr_info("Removed device: %s\n", zram->disk->disk_name); > > trivial: > > why did you add the info in the middle of logic functions? > Without special reason, let's add it top of the zram_remove. > ok. -ss > Acked-by: Minchan Kim

Re: [PATCHv2 10/10] zram: add dynamic device add/remove functionality

2015-04-22 Thread Sergey Senozhatsky
On (04/23/15 12:06), Minchan Kim wrote: > > +Example: > > + cat /sys/class/zram-control/zram_add > > Why do we put zram-contol there rather than /sys/block/zram that's what clsss_register() does. [..] > > @@ -1168,8 +1172,15 @@ static int zram_add(int device_id) > > Why do zram_add need

Re: [PATCH] mn10300: add io{read,write}{16,32}be functions

2015-04-22 Thread Rob Herring
On Mon, Apr 20, 2015 at 10:37 AM, Guenter Roeck wrote: > These functions are used in various drivers, including the latest > version of the 8250 driver. The latter causes the following build failure. > > drivers/tty/serial/8250/8250_core.c: In function 'mem32be_serial_out': >

Re: [PATCH] frv: add io{read,write}{16,32}be functions

2015-04-22 Thread Rob Herring
On Mon, Apr 20, 2015 at 10:36 AM, Guenter Roeck wrote: > These functions are used in various drivers, including the latest > version of the 8250 driver. The latter causes the following build > failure. > > drivers/tty/serial/8250/8250_core.c: In function 'mem32be_serial_out': >

Re: [PATCH RESEND] Documentation: DT bindings: add doc for Altera's SoCFPGA platform

2015-04-22 Thread Rob Herring
On Mon, Apr 20, 2015 at 9:55 AM, wrote: > From: Dinh Nguyen > > Document "altr,socfpga-cyclone5", "altr,socfpga-arria5", and > "altr,socfpga-arria10". > > Signed-off-by: Dinh Nguyen Applied for 4.1. Thanks. Rob > --- > Documentation/devicetree/bindings/arm/altera.txt | 14 ++ >

[GIT PULL] 2nd batch of DeviceTree for 4.1

2015-04-22 Thread Rob Herring
Hi LInus, As Grant mentioned, here is the 2nd batch of DT changes for 4.1. The main remaining item here is the endianness bindings and related 8250 driver support. Please pull. Rob The following changes since commit 01218bf14ee60d4a2d6c667ebdbba3ae9a7a1d66: of: Explicitly include

[PATCH] touchscreen:atmel_mxt_ts: suspend/resume cause panic if input_dev fails to init

2015-04-22 Thread Pan Xinhui
input_dev may be NULL if mxt_initialize_input_device fails. But pm ops is still available and suspend/resume assume input_dev is not NULL. To fix this issue, we add a check if (!input_dev). Signed-off-by: xinhui.pan --- drivers/input/touchscreen/atmel_mxt_ts.c | 6 ++ 1 file changed, 6

Re: [PATCH v4 1/4] ARM: UniPhier: add basic support for UniPhier architecture

2015-04-22 Thread Masahiro Yamada
Hi Heiko, 2015-04-21 23:56 GMT+09:00 Heiko Stübner : > Am Dienstag, 21. April 2015, 16:21:27 schrieb Masahiro Yamada: >> Initial commit for a new SoC family, UniPhier, developed by >> Socionext Inc. (formerly, System LSI Business Division of >> Panasonic Corporation). >> >> This commit includes

[PATCH v5 2/4] ARM: multi_v7_defconfig: enable UniPhier SoC family

2015-04-22 Thread Masahiro Yamada
Add UniPhier, a new citizen in the ARM multi platform. Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v5 4/4] MAINTAINERS: add myself as ARM/UniPhier maintainer

2015-04-22 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ea00017..c0cfc14 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1525,6

[PATCH v5 0/4] ARM: SoC: add a new platform, UniPhier (arch/arm/mach-uniphier)

2015-04-22 Thread Masahiro Yamada
This is an initial series for supporting Socionext UniPhier SoCs, based on ARM Cortex-A9, mainly used for digital TVs, video recorders, etc. Masahiro Yamada (4): ARM: UniPhier: add basic support for UniPhier architecture ARM: multi_v7_defconfig: enable UniPhier SoC family ARM: dts:

[PATCH v5 3/4] ARM: dts: UniPhier: add support for UniPhier SoCs and boards

2015-04-22 Thread Masahiro Yamada
Initial device trees for UniPhier SoCs: PH1-sLD3, PH1-LD4, PH1-Pro4, and PH1-sLD8. Signed-off-by: Masahiro Yamada --- Changes in v5: None Changes in v4: - Add system-bus-controller-misc node instead of uniphier-smp-reg node Changes in v3: - License under GPL/X11 - Drop "earlyprintk"

[PATCH v5 1/4] ARM: UniPhier: add basic support for UniPhier architecture

2015-04-22 Thread Masahiro Yamada
Initial commit for a new SoC family, UniPhier, developed by Socionext Inc. (formerly, System LSI Business Division of Panasonic Corporation). This commit includes a minimal set of components for booting the kernel, including SMP support. Signed-off-by: Masahiro Yamada --- Changes in v5: -

Re: [RFC PATCH 1/2] x86/cpu hotplug: make apicid <--> cpuid mapping persistent

2015-04-22 Thread Gu Zheng
ping... On 04/17/2015 08:48 PM, Gu Zheng wrote: > Yasuaki Ishimatsu found that with node online/offline, cpu<->node relationship > is established. Because workqueue uses a info which was established at boot > time, but it may be changed by node hotpluging. > > Once pool->node points to a

Re: [PATCH v2 4/8] moduleparam.h: add module_param_config_*() helpers

2015-04-22 Thread Rusty Russell
"Luis R. Rodriguez" writes: > From: "Luis R. Rodriguez" > > This adds a couple of bool module_param_config_*() helpers > which are designed to let us easily associate a boolean > module parameter with an associated kernel configuration > option. OK. > Folks can use this to avoid what typically

Re: [PATCH v2] mm/slab_common: Support the slub_debug boot option on specific object size

2015-04-22 Thread Andrew Morton
On Thu, 23 Apr 2015 11:10:40 +0800 Gavin Guo wrote: > >> for (i = KMALLOC_SHIFT_LOW; i <= KMALLOC_SHIFT_HIGH; i++) { > >> if (!kmalloc_caches[i]) { > >> - kmalloc_caches[i] = create_kmalloc_cache(NULL, > >> + kmalloc_caches[i] =

Linux 3.18.12

2015-04-22 Thread Sasha Levin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm announcing the release of the 3.18.12 kernel. All users of the 3.18 kernel series must upgrade. The updated 3.18.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.y and can be

[PATCH V2 4/5] drivers: hv: vmbus: Get rid of some unused definitions

2015-04-22 Thread K. Y. Srinivasan
Get rid of some unused definitions. Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 1744148..e29ccdd 100644 --- a/include/linux/hyperv.h

[PATCH V2 1/5] Drivers: hv: vmbus: introduce vmbus_acpi_remove

2015-04-22 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov In case we do request_resource() in vmbus_acpi_add() we need to tear it down to be able to load the driver again. Otherwise the following crash in observed when hv_vmbus unload/load sequence is performed on a Generation2 instance: [ 38.165701] BUG: unable to handle

[PATCH V2 2/5] Drivers: hv: vmbus: unregister panic notifier on module unload

2015-04-22 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Commit 96c1d0581d00f7abe033350edb021a9d947d8d81 ("Drivers: hv: vmbus: Add support for VMBus panic notifier handler") introduced atomic_notifier_chain_register() call on module load. We also need to call atomic_notifier_chain_unregister() on module unload as otherwise the

[PATCH V2 3/5] hv: vmbus_free_channels(): remove the redundant free_channel()

2015-04-22 Thread K. Y. Srinivasan
From: Dexuan Cui free_channel() has been invoked in vmbus_remove() -> hv_process_channel_removal(), or vmbus_remove() -> ... -> vmbus_close_internal() -> hv_process_channel_removal(). We also change to use list_for_each_entry_safe(), because the entry is removed in hv_process_channel_removal().

[PATCH V2 0/5] Drivers: hv: vmbus: Cleanup the vmbus unload path

2015-04-22 Thread K. Y. Srinivasan
This patch-set have several fixes to enable the clean unload of the vmbus. Typically, vmbus will not be unloadable when Linux is hosted on Hyper-V since the driver managing the root device needs the vmbus driver. In this version of the patch-set, the patch Drivers: hv: vmbus: Implement the

[PATCH V2 5/5] Drivers: hv: vmbus: Implement the protocol for tearing down vmbus state

2015-04-22 Thread K. Y. Srinivasan
Implement the protocol for tearing down the monitor state established with the host. Signed-off-by: K. Y. Srinivasan Tested-by: Vitaly Kuznetsov --- Changes in V2: Call vmbus_disconnect earlier - Vitaly Kuznetsov drivers/hv/channel_mgmt.c | 25 +

Re: [PATCHv2 10/10] zram: add dynamic device add/remove functionality

2015-04-22 Thread Minchan Kim
On Thu, Apr 23, 2015 at 12:06 PM, Minchan Kim wrote: > On Thu, Apr 16, 2015 at 08:55:56PM +0900, Sergey Senozhatsky wrote: >> We currently don't support on-demand device creation. The one and only way >> to have N zram devices is to specify num_devices module parameter (default >> value 1). That

Re: [PATCH v2] mm/slab_common: Support the slub_debug boot option on specific object size

2015-04-22 Thread Gavin Guo
On Thu, Apr 23, 2015 at 5:00 AM, Andrew Morton wrote: > On Wed, 22 Apr 2015 16:33:38 +0800 Gavin Guo wrote: > >> The slub_debug=PU,kmalloc-xx cannot work because in the >> create_kmalloc_caches() the s->name is created after the >> create_kmalloc_cache() is called. The name is NULL in the >>

Re: [PATCH V6 00/10] namespaces: log namespaces per task

2015-04-22 Thread Richard Guy Briggs
On 15/04/20, Eric W. Biederman wrote: > Richard Guy Briggs writes: > > > The purpose is to track namespace instances in use by logged processes from > > the > > perspective of init_*_ns by logging the namespace IDs (device ID and > > namespace > > inode - offset). > > In broad strokes the

Re: [PATCHv2 10/10] zram: add dynamic device add/remove functionality

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:56PM +0900, Sergey Senozhatsky wrote: > We currently don't support on-demand device creation. The one and only way > to have N zram devices is to specify num_devices module parameter (default > value 1). That means that if, for some reason, at some point, user wants >

Re: [PATCH] iio:st_sensors: Fix oops when probing SPI devices

2015-04-22 Thread Denis Ciocca
Hi Alban, after several months I'm finally back. I already did this patch, but I had no time to submit. Thanks to your support it is ok for me! We need to propagate also the patch to fix previous kernel versions... Acked-by: Denis Ciocca Denis On 04/20/2015 07:57 PM, Alban Bedel wrote:

[PATCH v2 1/5] Documentation: devicetree: add Broadcom SATA binding

2015-04-22 Thread Brian Norris
Signed-off-by: Brian Norris --- v2: no change .../devicetree/bindings/ata/brcm,sata-brcmstb.txt | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/ata/brcm,sata-brcmstb.txt diff --git

[PATCH v2 5/5] ARM: dts: brcmstb: add nodes for SATA controller and PHY

2015-04-22 Thread Brian Norris
Signed-off-by: Brian Norris --- v2: - fix up some typos - account for binding changes in previous patches arch/arm/boot/dts/bcm7445.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/bcm7445.dtsi b/arch/arm/boot/dts/bcm7445.dtsi

[PATCH v2 4/5] phy: add Broadcom SATA3 PHY driver for Broadcom STB SoCs

2015-04-22 Thread Brian Norris
Supports up to two ports which can each be powered on/off and configured independently. Signed-off-by: Brian Norris --- v2: - stop sharing SATA_TOP_CTRL registers with SATA driver - kill custom xlate function drivers/phy/Kconfig| 9 ++ drivers/phy/Makefile | 1 +

Re: [PATCH v6 2/3] sched/rt: Fix wrong SMP scheduler behavior for equal prio cases

2015-04-22 Thread Steven Rostedt
On Thu, 23 Apr 2015 09:35:12 +0800 pang.xun...@zte.com.cn wrote: > Hi Steve, Peter, > > Steven Rostedt wrote 2015-04-21 AM 01:48:03: > > On Mon, 20 Apr 2015 19:20:48 +0200 > > Peter Zijlstra wrote: > > > > > > > + */ > > > > > + if (preempt_count() & PREEMPT_ACTIVE) > > > > > +

[PATCH v2 2/5] Documentation: devicetree: add Broadcom SATA PHY binding

2015-04-22 Thread Brian Norris
For 28nm STB chips, based on BCM7445. Signed-off-by: Brian Norris --- v2: - make each subnode into a provider, so we can use direct phandle references to them - drop the 'port-ctrl' register range, since this was shared with the SATA node .../bindings/phy/brcm,brcmstb-sata-phy.txt

[PATCH v2 3/5] ata: add Broadcom AHCI SATA3 driver for STB chips

2015-04-22 Thread Brian Norris
Pretty straightforward driver, using the nice library-ization of the generic ahci_platform driver. Signed-off-by: Brian Norris --- v2: - move port enabling into this driver, since the affected registers are in the SATA_TOP_CTRL block. This means we need to check for the implemented

[PATCH v2 0/5] AHCI and SATA PHY support for Broadcom STB SoCs

2015-04-22 Thread Brian Norris
Hi, Here are my updates based on everyone's feedback. I'll try to include most of the changelog info in each patch, but a few summary points for v1 -> v2: - reworked the PHY DT binding so that we don't need do any custom xlate in the PHY driver - moved all handling of the 'SATA_TOP_CTRL'

Re: Thunderbolt hotplug not working on MacMini7,1

2015-04-22 Thread Adam Goode
On Wed, Apr 22, 2015 at 12:05 AM, Adam Goode wrote: > (resending in plain text) > (please CC me on replies, I am not on LKML) > > Hi, > > I have a new Mac Mini (MacMini7,1). This model supports hotplugging of > Thunderbolt on Windows 8 and above. Unfortunately hotplug does not > seem to be

RE: Adding subpage support to NAND driver -- backwards compatibility concerns

2015-04-22 Thread Iwo Mergler
On Thu, 23 Apr 2015 03:29:44 +1000 Ben Shelton wrote: > We'd like to upstream our patch, but my concern is that UBIFS behaves > differently when it knows that the flash device supports subpages. I > have a couple of questions related to that: > > - I know from experience that bad things happen

Re: [PATCH] blackfin: Makefile: Skip reloc overflow issue when COMPILE_TEST enabled

2015-04-22 Thread Steven Miao
On Wed, Apr 22, 2015 at 10:32 PM, Chen Gang wrote: > On 4/22/15 17:00, Steven Miao wrote: >> Hi, >> >> On Thu, Apr 9, 2015 at 5:03 AM, Chen Gang >> wrote: >>> l1_text is at L1_CODE_START (e.g. for bf533, 0xff80). If the kernel >>> is too big, it may be overwritten, the related issue: >>>

Re: [PATCH v16] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-04-22 Thread Steven Rostedt
On Wed, 22 Apr 2015 17:40:51 -0700 Stephen Hemminger wrote: > The syscall should just return 0. > Let the application not worry about how many CPU's are present +1 -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCHv2 09/10] zram: return zram device_id value from zram_add()

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:55PM +0900, Sergey Senozhatsky wrote: > zram_add requires valid device_id to be provided, that can be a bit > inconvenient. Change zram_add() to return negative value upon new device > creation failure, and device_id (>= 0) value otherwise. > > This prepares

Re: [PATCHv2 08/10] zram: trivial: correct flag operations comment

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:54PM +0900, Sergey Senozhatsky wrote: > We don't have meta->tb_lock anymore and use meta table entry bit_spin_lock > instead. update corresponding comment. > > Signed-off-by: Sergey Senozhatsky Acked-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscribe

Re: [PATCHv2 07/10] zram: report every added and removed device

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:53PM +0900, Sergey Senozhatsky wrote: > With dynamic device creation/removal (which will be introduced later in the > series) printing num_devices in zram_init() will not make a lot of sense, as > well as printing the number of destroyed devices in destroy_devices().

Re: Interacting with coherent memory on external devices

2015-04-22 Thread Benjamin Herrenschmidt
On Wed, 2015-04-22 at 13:17 -0500, Christoph Lameter wrote: > > > But again let me stress that application that want to be in control will > > stay in control. If you want to make the decission yourself about where > > things should end up then nothing in all we are proposing will preclude > >

Re: [PATCHv2 06/10] zram: remove max_num_devices limitation

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:52PM +0900, Sergey Senozhatsky wrote: > Limiting the number of zram devices to 32 (default max_num_devices value) > is confusing, let's drop it. A user with 2TB or 4TB of RAM, for example, > can request as many devices as he can handle. > > Signed-off-by: Sergey

Re: Interacting with coherent memory on external devices

2015-04-22 Thread Benjamin Herrenschmidt
On Wed, 2015-04-22 at 12:14 -0500, Christoph Lameter wrote: > > > Bottom line is we want today anonymous, share or file mapped memory > > to stay the only kind of memory that exist and we want to choose the > > backing store of each of those kind for better placement depending > > on how memory

Re: [PATCH next] ocfs2: Reduce object size of mlog uses

2015-04-22 Thread Joe Perches
On Wed, 2015-04-22 at 15:46 -0700, Andrew Morton wrote: > On Fri, 17 Apr 2015 00:17:50 -0700 Joe Perches wrote: > > > Using a function for __mlog_printk instead of a macro > > reduces the object size of built-in.o more than 120KB, or > > ~10% overall (x86-64 defconfig with all ocfs2 options) > >

Re: [Xen-devel] [PATCH] xen: Add __GFP_DMA flag when xen_swiotlb_init gets free pages.

2015-04-22 Thread Chen Baozi
On Tue, Apr 21, 2015 at 12:11:01PM +0100, Stefano Stabellini wrote: > Chen, > could you please try the patch below in your repro scenario? > I have only build tested it. > > --- > > xen: Add __GFP_DMA flag when xen_swiotlb_init gets free pages on ARM > > From: Chen Baozi > > Make sure that

Re: [PATCHv2 05/10] zram: reorganize code layout

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:51PM +0900, Sergey Senozhatsky wrote: > This patch looks big, but basically it just moves code blocks. > No functional changes. > > Our current code layout looks like a sandwitch. > > For example, > a) between read/write handlers, we have update_used_max() helper

Re: Interacting with coherent memory on external devices

2015-04-22 Thread Benjamin Herrenschmidt
On Wed, 2015-04-22 at 11:16 -0500, Christoph Lameter wrote: > On Wed, 22 Apr 2015, Paul E. McKenney wrote: > > > I completely agree that some critically important use cases, such as > > yours, will absolutely require that the application explicitly choose > > memory placement and have the memory

Re: [PATCHv2 04/10] zram: factor out device reset from reset_store()

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:50PM +0900, Sergey Senozhatsky wrote: > Device reset currently includes two steps: > a) holding ->bd_mutex we ensure that there are no device users > (bdev->bd_openers) > > b) and "internal" part (executed under bdev->bd_mutex and partially > under zram->init_lock)

Re: Interacting with coherent memory on external devices

2015-04-22 Thread Benjamin Herrenschmidt
On Wed, 2015-04-22 at 10:25 -0500, Christoph Lameter wrote: > On Wed, 22 Apr 2015, Benjamin Herrenschmidt wrote: > > > Right, it doesn't look at all like what we want. > > Its definitely a way to map memory that is outside of the kernel managed > pool into a user space process. For that matter

Re: [PATCHv2 03/10] zram: use idr instead of `zram_devices' array

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:49PM +0900, Sergey Senozhatsky wrote: > This patch makes some preparations for on-demand device add/remove > functionality. > > Remove `zram_devices' array and switch to id-to-pointer translation (idr). > idr doesn't bloat zram struct with additional members, f.e.

Re: [PATCHv2 02/10] zram: cosmetic ZRAM_ATTR_RO code formatting tweak

2015-04-22 Thread Minchan Kim
On Thu, Apr 16, 2015 at 08:55:48PM +0900, Sergey Senozhatsky wrote: > Fix a misplaced backslash. > > Signed-off-by: Sergey Senozhatsky Acked-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

[PATCH] ipmi: Fix a problem that messages are not issued in run_to_completion mode

2015-04-22 Thread Hidehiro Kawai
start_next_msg() issues a message placed in smi_info->waiting_msg if it is non-NULL. However, sender() sets a message to smi_info->curr_msg and NULL to smi_info->waiting_msg in the context of run_to_completion mode. As the result, it leads an infinite loop by waiting the completion of unissued

Re: [alsa-devel] [PATCH 8/8] Documentation: Add WM8998/WM1814 device tree bindings

2015-04-22 Thread Austin, Brian
> On Apr 21, 2015, at 07:38, Richard Fitzgerald > wrote: > > Signed-off-by: Richard Fitzgerald > --- > Documentation/devicetree/bindings/mfd/arizona.txt |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/Documentation/devicetree/bindings/mfd/arizona.txt >

[GIT PULL] xfs: updates for 4.1-rc1

2015-04-22 Thread Dave Chinner
Hi Linus, Can you please pull the XFS updates from the tag below? The changes are detailed in the tag message, so I won't go over them again here. The only thing of note is the direct IO fixes that we merged last week after the window opened. Even though a little late, they fix a user reported

Re: [RFC][PATCH v2 00/13] USB: OTG/DRD Core functionality

2015-04-22 Thread Peter Chen
On Wed, Apr 22, 2015 at 03:42:32PM +0300, Roger Quadros wrote: > > So we will have a separate drd fsm file, and the CONFIG_USB_OTG > > and CONFIG_USB_OTG_FSM are not needed to be defined, right? > > > > for drd case CONFIG_USB_OTG_FSM is definitely not needed. > I'm not sure if we can operate

Re:[PATCH 0/3] clk: mmp: fix and add new clock

2015-04-22 Thread Chao Xie
hi, Mike These patches are bug fix and enhancement patches for mmp clock.  If it does not have any problem, can you help to merge it? Thanks. At 2015-04-07 14:17:01, "Chao Xie" wrote: >From: Chao Xie > >There are three patches >First two are fix patches. >The last one will add the

Re: [PATCH 3/3] powerpc/8xx: Implementation of PAGE_EXEC

2015-04-22 Thread Scott Wood
On Wed, 2015-04-22 at 12:06 +0200, Christophe Leroy wrote: > diff --git a/arch/powerpc/include/asm/mmu-8xx.h > b/arch/powerpc/include/asm/mmu-8xx.h > index d41200c..1407034 100644 > --- a/arch/powerpc/include/asm/mmu-8xx.h > +++ b/arch/powerpc/include/asm/mmu-8xx.h > @@ -27,6 +27,19 @@ > #define

performance changes on c9dc4c65: 9.8% fsmark.files_per_sec

2015-04-22 Thread Yuanhan Liu
FYI, we found performance increasement, which is expected as commit patch says, on `fsmark.files_per_sec' by c9dc4c6578502c2085705347375b82089aad18d0: > commit c9dc4c6578502c2085705347375b82089aad18d0 > Author: Chris Mason > AuthorDate: Sat Apr 4 17:14:42 2015 -0700 > Commit:

Re: [PATCH] ocfs2: use retval instead of status for checking error

2015-04-22 Thread DaeSeok Youn
Hi, Joseph. 2015-04-23 9:49 GMT+09:00 Joseph Qi : > On 2015/4/19 13:43, Daeseok Youn wrote: >> The use of 'status' in __ocfs2_add_entry() can return wrong >> value. Some functions' return value in __ocfs2_add_entry(), >> i.e ocfs2_journal_access_di() is saved to 'status'. >> But 'status' is not

Re: [PATCH v2] ata: ahci_st: fixup layering violations / drvdata errors

2015-04-22 Thread Brian Norris
On Mon, Apr 20, 2015 at 02:41:04PM +0100, Peter Griffin wrote: > Brian - I'm not sure of the correct patch etiquette here. Currently I have > taken authorship of the patch and added a "Suggested-by" tag on the V2. > Maybe I should have also kept your "Signed-off-by" or done something else? >

[PATCH 2/3] power: increment wakeup_count when save_wakeup_count failed.

2015-04-22 Thread Jin Qian
user-space aborts suspend attempt if writing wakeup_count failed. Count the write failure towards wakeup_count. Signed-off-by: Jin Qian --- drivers/base/power/wakeup.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/base/power/wakeup.c

[PATCH 3/3] power: add a dummy wakeup_source to record statistics

2015-04-22 Thread Jin Qian
After a wakeup_source is destroyed, we lost all information such as how long this wakeup_source has been active. Add a dummy wakeup_source to record such info. Signed-off-by: Jin Qian --- drivers/base/power/wakeup.c | 35 +++ 1 file changed, 35 insertions(+)

[PATCH 1/3] power: validate wakeup source before activating it.

2015-04-22 Thread Jin Qian
A rogue wakeup source not registered in wakeup_sources list is not visible from wakeup_sources_stats_show. Check if the wakeup source is registered properly by looking at the timer function. Signed-off-by: Jin Qian --- drivers/base/power/wakeup.c | 19 +++ 1 file changed, 19

Re: [PATCH] ocfs2: use retval instead of status for checking error

2015-04-22 Thread Joseph Qi
On 2015/4/19 13:43, Daeseok Youn wrote: > The use of 'status' in __ocfs2_add_entry() can return wrong > value. Some functions' return value in __ocfs2_add_entry(), > i.e ocfs2_journal_access_di() is saved to 'status'. > But 'status' is not used in 'bail' label for returning result > of

Re: [PATCH v10 4/4] cgroups: implement the PIDs subsystem

2015-04-22 Thread Aleksa Sarai
Hi Tejun, >> + rcu_read_lock(); >> + css = task_css(current, pids_cgrp_id); >> + if (!css_tryget_online(css)) { >> + retval = -EBUSY; >> + goto err_rcu_unlock; >> + } >> + rcu_read_unlock(); > > Hmmm... so, the above is guaranteed to succeed in finite

Re: [PATCH v16] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-04-22 Thread Stephen Hemminger
On Wed, 22 Apr 2015 20:37:08 -0400 Pranith Kumar wrote: > >> I understand why this syscall makes sense on SMP only, but you are > >> anyways checking num_online_cpus() and returning if it is only one. Is > >> this limitation necessary then? How do !SMP systems handle this > >> syscall? (I am

Re: [PATCH v16] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-04-22 Thread Pranith Kumar
On Wed, Apr 22, 2015 at 4:40 PM, Mathieu Desnoyers wrote: > - Original Message - >> On Fri, Apr 17, 2015 at 11:06 AM, Mathieu Desnoyers >> wrote: >> > diff --git a/init/Kconfig b/init/Kconfig >> > index f5dbc6d..89bad6a 100644 >> > --- a/init/Kconfig >> > +++ b/init/Kconfig >> > @@

Re: [PATCH Bugfix v2 2/4] x86/xsaves: Define and use user_xstate_size for xstate size in signal context

2015-04-22 Thread Dave Hansen
On 04/22/2015 05:06 PM, Yu, Fenghua wrote: > We need to copy ALL of supported xstates to user. Using xstate_bv only copies > partial xstates that are in non-init status. > > Xstate_bv only has xstates that are in non-init status. The xstates that are > in > init status will not be copied to user

RE: [PATCH 2/6] mtd: diskonchip: don't call nand_scan_bbt() directly

2015-04-22 Thread peterpandong
On Thu, Apr 23, 2015 at 01:51:27PM +, Brian Norris wrote: > > On Thu, Apr 16, 2015 at 02:11:24AM +, Peter Pan 潘栋 (peterpandong) > wrote: > > The diskonchip driver almost uses the default nand_base hooks as-is, > > except that it provides custom on-flash BBT descriptors and avoids > using

Re: [PATCH 0/2] powerpc/kvm: Enable running guests on RT Linux

2015-04-22 Thread Scott Wood
On Wed, 2015-04-22 at 15:06 +0300, Purcareata Bogdan wrote: > On 21.04.2015 03:52, Scott Wood wrote: > > On Mon, 2015-04-20 at 13:53 +0300, Purcareata Bogdan wrote: > >> There was a weird situation for .kvmppc_mpic_set_epr - its corresponding > >> inner > >> function is kvmppc_set_epr, which is a

RE: [PATCH Bugfix v2 2/4] x86/xsaves: Define and use user_xstate_size for xstate size in signal context

2015-04-22 Thread Yu, Fenghua
> From: Hansen, Dave > Sent: Wednesday, April 22, 2015 5:21 PM > To: Yu, Fenghua; H. Peter Anvin; Ingo Molnar; Thomas Gleixner; Mallick, Asit > K; Williamson, Glenn P > Cc: linux-kernel; x86 > Subject: Re: [PATCH Bugfix v2 2/4] x86/xsaves: Define and use > user_xstate_size for xstate size in

Re: [PATCH Bugfix v2 2/4] x86/xsaves: Define and use user_xstate_size for xstate size in signal context

2015-04-22 Thread Dave Hansen
On 04/22/2015 05:06 PM, Yu, Fenghua wrote: > Xsave->xsave_hdr.xstate_bv is equal to pcntxt_mask (see > setup_init_fpu_buf()). This is going to be a long thread. But, let's take it a step at a time. Do you agree that this earlier statement is incorrect? -- To unsubscribe from this list: send the

RE: [PATCH Bugfix v2 2/4] x86/xsaves: Define and use user_xstate_size for xstate size in signal context

2015-04-22 Thread Yu, Fenghua
> From: Hansen, Dave > Sent: Wednesday, April 22, 2015 12:34 PM > To: Yu, Fenghua; H. Peter Anvin; Ingo Molnar; Thomas Gleixner; Mallick, Asit > K; Williamson, Glenn P > Cc: linux-kernel; x86 > Subject: Re: [PATCH Bugfix v2 2/4] x86/xsaves: Define and use > user_xstate_size for xstate size in

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-22 Thread Nishanth Menon
On 04/22/2015 06:30 AM, Alexandre Belloni wrote: Apologies on a tardy response, got dragged into another issue and got cooped up in lab whole day. > On 21/04/2015 at 20:59:15 -0500, Nishanth Menon wrote : Why is that so? when set alarm is requested for time X, you want interrupt at

Re: [PATCH V2] drivers/rtc/rtc-ds1307.c: Enable the mcp794xx alarm after programming time

2015-04-22 Thread Nishanth Menon
On 04/22/2015 08:26 AM, grygorii.stras...@linaro.org wrote: > Hi, > > On 04/21/2015 03:51 AM, Nishanth Menon wrote: >> Alarm interrupt enable register is at offset 0x7, while the time >> registers for the alarm follow that. When we program Alarm interrupt >> enable prior to programming the time,

Re: [PATCH] [RFC] tracing xsave operations

2015-04-22 Thread Andi Kleen
> Am I doing something wrong? Are there good alternatives for when > we want to trace something that's done in a header? I had to out of line multiple inlines too to trace them. Like the MSR tracing. The trace includes just have too many dependencies. Most of it comes from RCU i believe. It

Re: Device mapper failed to open temporary keystore device

2015-04-22 Thread Murilo Opsfelder Araújo
bert/pubkey.txt > > Hello, Herbert. > > Sorry for my ignorance but which tree and branch does this commit come from? > > -- > Murilo I tried next-20150422 (that contained Herbert's patch) and it worked just fine. Thank you, guys. -- Murilo -- To unsubscribe from this list:

[PATCH v2] Documentation: kasan: fix a typo

2015-04-22 Thread Wang Long
This patch just fix a typo (s/witch/which) Signed-off-by: Wang Long --- Documentation/kasan.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kasan.txt b/Documentation/kasan.txt index 092fc10..063095a 100644 --- a/Documentation/kasan.txt +++

Re: [PATCH 10/13] x86: mm: Enable deferred struct page initialisation on x86-64

2015-04-22 Thread Andrew Morton
On Wed, 22 Apr 2015 18:07:50 +0100 Mel Gorman wrote: > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -32,6 +32,7 @@ config X86 > select HAVE_UNSTABLE_SCHED_CLOCK > select ARCH_SUPPORTS_NUMA_BALANCING if X86_64 > select ARCH_SUPPORTS_INT128 if X86_64 > + select

[PATCH] [RFC] tracing xsave operations

2015-04-22 Thread Dave Hansen
There has been a glut of tough debug issues lately that all come back to the xsave code. This trace point helped us find and fix a long-lived bug today, just from the data it showed. But, the xsave operations are in a header and they're inlined all over the place. Including a tracepoint header

Re: [PATCH 0/4] cpufreq: use generic cpufreq drivers for Exynos5250 platform

2015-04-22 Thread Kevin Hilman
Bartlomiej Zolnierkiewicz writes: [...] >> However, with the default governor set to userspace it boots fine until >> my userspace (ubuntu) tries to enable the ondemand governor, and then it >> hangs. >> >> For it to boot, I have to disable the ondemand governor, and set the >> default

Re: [PATCH v2] w1: introduce an ability to specify microseconds bus scanning intervals

2015-04-22 Thread Evgeniy Polyakov
Hi Looks good to me. Greg, please pull it into your tree. Acked-by: Evgeniy Polyakov 23.04.2015, 00:56, "Dmitry Khromov" : > Signed-off-by: Dmitry Khromov > --- >  drivers/w1/w1.c | 17 - >  1 file changed, 16 insertions(+), 1 deletion(-) > > diff --git a/drivers/w1/w1.c

[PATCH 1/2] misc: Add DT binding for cygnus Digital Timing Engine (DTE) driver.

2015-04-22 Thread Jonathan Richardson
Reviewed-by: Scott Branden Tested-by: Scott Branden Signed-off-by: Jonathan Richardson --- .../bindings/arm/bcm/brcm,cygnus-dte.txt | 24 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/bcm/brcm,cygnus-dte.txt diff

  1   2   3   4   5   6   7   8   9   10   >