Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-02 Thread Davidlohr Bueso
On Tue, 2015-02-03 at 07:58 +0100, Alexander Holler wrote: > Am 03.02.2015 um 07:05 schrieb Al Viro: > > On Mon, Feb 02, 2015 at 06:05:09PM +0100, Alexander Holler wrote: > >> + if (inode) { > >> + // TODO: > >> + // if (inode is file and 's' flag is set) > >> + //

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-02 Thread Al Viro
On Tue, Feb 03, 2015 at 07:58:50AM +0100, Alexander Holler wrote: > > Charming. Now, what exactly happens if two such syscalls overlap in time? > > What do you think will happen? I assume you haven't looked at how I've > implemented set_secure_delete(). CHarming. AFAICS, you get random

Re: [RFC PATCH] ASoC: wm8731: let codec to manage clock by itself

2015-02-02 Thread Manuel Lauss
On Tue, Feb 3, 2015 at 4:33 AM, Bo Shen wrote: > Let the wm8731 codec to manage clock by itself. > > As all at91 related boards have been switch to CCF framework. So, on > the at91 related boards which use wm8731 will let it manage the clock, > or else the board use wm8731 is broken. > > However,

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-02 Thread Alexander Holler
Am 03.02.2015 um 07:05 schrieb Al Viro: On Mon, Feb 02, 2015 at 06:05:09PM +0100, Alexander Holler wrote: + if (inode) { + // TODO: + // if (inode is file and 's' flag is set) + // secure = true; + if (!secure) +

[LKP] [x86_64, entry] 103dd9885d1: +7.3% will-it-scale.per_process_ops

2015-02-02 Thread Huang Ying
FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git x86/entry commit 103dd9885d1e96be0c7493ce9a33af0732e35441 ("x86_64, entry: Use sysret to return to userspace when possible") testbox/testcase/testparams: lkp-sb03/will-it-scale/open2

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Daniel Vetter
On Mon, Feb 02, 2015 at 05:36:10PM -0500, Rob Clark wrote: > well, I guess anyways when it comes to sharing buffers, it won't be > the vram placement of the bo that gets shared ;-) Actually that's pretty much what I'd like to be able to do for i915. Except that vram is just a specially protected

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Daniel Vetter
On Mon, Feb 02, 2015 at 03:30:21PM -0500, Rob Clark wrote: > On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: > >> My initial thought is for dma-buf to not try to prevent something than > >> an exporter can actually do.. I think the scenario you describe could > >> be handled by two

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Daniel Vetter
On Mon, Feb 02, 2015 at 09:46:16PM +, Russell King - ARM Linux wrote: > On Mon, Feb 02, 2015 at 03:30:21PM -0500, Rob Clark wrote: > > On Mon, Feb 2, 2015 at 11:54 AM, Daniel Vetter wrote: > > >> My initial thought is for dma-buf to not try to prevent something than > > >> an exporter can

[LKP] [mm] 721c21c17ab: +11.7% will-it-scale.per_thread_ops

2015-02-02 Thread Huang Ying
FYI, we noticed the below changes on commit 721c21c17ab958abf19a8fc611c3bd4743680e38 ("mm: mmu_gather: use tlb->end != 0 only for TLB invalidation") testbox/testcase/testparams: nhm4/will-it-scale/performance-readseek1 v3.19-rc4 721c21c17ab958abf19a8fc611

[PATCH 2/2] ALSA: line6: fixup of line6_start_timer argument type

2015-02-02 Thread Nicholas Mc Guire
is against 3.0.19-rc6 (localversion = -next-20150202) sound/usb/line6/driver.c |2 +- sound/usb/line6/driver.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c index 3cf12cc..e2a2603 100644 --- a/sound/usb/line6/driver.c

[PATCH 1/2] ALSA: line6: use msecs_to_jiffies for conversion

2015-02-02 Thread Nicholas Mc Guire
and handles all corner cases correctly. This is a minor API cleanup only. Patch was only compile tested for x86_64_defconfig + CONFIG_SOUND=y, CONFIG_SND_USB_POD=m (implies CONFIG_SND_USB_LINE6=y) Patch is against 3.0.19-rc6 (localversion = -next-20150202) sound/usb/line6/driver.c |2 +- 1 file

Re: [PATCH 0/6] PCI: MMCONFIG clean up

2015-02-02 Thread Tomasz Nowicki
On 02.02.2015 21:42, Bjorn Helgaas wrote: On Wed, Nov 19, 2014 at 05:04:45PM +0100, Tomasz Nowicki wrote: MMCFG ACPI table has no arch dependencies so it can be used across all architectures. Currently MMCONFIG related code resides in arch/x86 directories. This patch set is goint to isolate

Re: [PATCH v2] kprobes/x86: Use 5-byte NOP when the code might be modified by ftrace

2015-02-02 Thread Masami Hiramatsu
(2015/02/03 2:48), Petr Mladek wrote: > can_probe() checks if the given address points to the beginning of > an instruction. It analyzes all the instructions from the beginning > of the function until the given address. The code might be modified > by another Kprobe. In this case, the current code

[PATCH v3] gianfar: correct the bad expression while writing bit-pattern

2015-02-02 Thread Sanjeev Sharma
This patch correct the bad expression while writing the bit-pattern from software's buffer to hardware registers. Signed-off-by: Sanjeev Sharma --- Changes in v3: - corrected the expression by introducing tab->fe[i].prop. drivers/net/ethernet/freescale/gianfar_ethtool.c | 2 +- 1 file

Re: [RFC PATCH 1/8] nsproxy - refactor setns()

2015-02-02 Thread Ian Kent
Oops! Please ignore these, mistakenly sent. On Tue, 2015-02-03 at 15:16 +0800, Ian Kent wrote: > For usermode helpers to execute within a namspace a slightly different > entry point to setns() that takes a namspace inode is needed. > > Signed-off-by: Ian Kent > Cc: Benjamin Coddington > Cc: Al

linux-next: Tree for Feb 3

2015-02-02 Thread Stephen Rothwell
Hi all, Changes since 20150202: The target-updates tree gained a conflict against Linus' tree. The clk tree gained conflicts against the arm-soc tree. Non-merge commits (relative to Linus' tree): 7173 7143 files changed, 301126 insertions(+), 167764 deletions

[RFC PATCH 1/8] nsproxy - refactor setns()

2015-02-02 Thread Ian Kent
For usermode helpers to execute within a namspace a slightly different entry point to setns() that takes a namspace inode is needed. Signed-off-by: Ian Kent Cc: Benjamin Coddington Cc: Al Viro Cc: J. Bruce Fields Cc: David Howells Cc: Trond Myklebust Cc: Oleg Nesterov Cc: Eric W. Biederman

[RFC PATCH 2/8] kmod - rename call_usermodehelper() flags parameter

2015-02-02 Thread Ian Kent
The wait parameter of call_usermodehelper() is not quite a parameter that describes the wait behaviour alone and will later be used to request exec within a namespace. So change its name to flags. Signed-off-by: Ian Kent Cc: Benjamin Coddington Cc: Al Viro Cc: J. Bruce Fields Cc: David

RE: [RFC] change non-atomic bitops method

2015-02-02 Thread Wang, Yalin
> -Original Message- > From: Andrew Morton [mailto:a...@linux-foundation.org] > Sent: Tuesday, February 03, 2015 2:39 PM > To: Wang, Yalin > Cc: 'Kirill A. Shutemov'; 'a...@arndb.de'; 'linux-a...@vger.kernel.org'; > 'linux-kernel@vger.kernel.org'; 'li...@arm.linux.org.uk'; 'linux-arm- >

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Tomeu Vizoso
On 02/02/2015 11:41 PM, Mike Turquette wrote: > Quoting Tero Kristo (2015-02-02 11:32:01) >> On 02/01/2015 11:24 PM, Mike Turquette wrote: >>> Quoting Tomeu Vizoso (2015-01-23 03:03:30) Moves clock state to struct clk_core, but takes care to change as little API as possible.

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-02 Thread Alexander Holler
Am 03.02.2015 um 07:05 schrieb Al Viro: > On Mon, Feb 02, 2015 at 06:05:09PM +0100, Alexander Holler wrote: >> +if (inode) { >> +// TODO: >> +// if (inode is file and 's' flag is set) >> +// secure = true; >> +if (!secure) >> +

Re: [RFC PATCH v3 3/3] mm/compaction: enhance compaction finish condition

2015-02-02 Thread Joonsoo Kim
On Mon, Feb 02, 2015 at 09:51:01PM +0800, Zhang Yanfei wrote: > Hello, > > At 2015/2/2 18:20, Vlastimil Babka wrote: > > On 02/02/2015 08:15 AM, Joonsoo Kim wrote: > >> Compaction has anti fragmentation algorithm. It is that freepage > >> should be more than pageblock order to finish the

Re: [RFC PATCH 0/5] compaction: changing initial position of scanners

2015-02-02 Thread Joonsoo Kim
On Mon, Jan 19, 2015 at 11:05:15AM +0100, Vlastimil Babka wrote: > Even after all the patches compaction received in last several versions, it > turns out that its effectivneess degrades considerably as the system ages > after reboot. For example, see how success rates of stress-highalloc from >

[PATCH] arch/cpuidle-powernv: Avoid endianness conversions while parsing DT

2015-02-02 Thread Preeti U Murthy
We currently read the information about idle states from the DT so as to find out the cpu idle states supported by the platform. Use those APIs to read from the DT that can avoid endianness conversions of the property values. Signed-off-by: Preeti U Murthy ---

Re: [RFC] change non-atomic bitops method

2015-02-02 Thread Andrew Morton
On Tue, 3 Feb 2015 13:42:45 +0800 "Wang, Yalin" wrote: > > ... > > #ifdef CHECK_BEFORE_SET > if (p[i] != times) > #endif > > ... > > > One run on CPU0, reader thread run on CPU1, > Test result: > sudo ./cache_test > reader:8.426228173 > 8.672198335 > > With

[PATCH] driver/cpuidle-powernv: Avoid endianness conversions while parsing DT

2015-02-02 Thread Preeti U Murthy
We currently read the information about idle states from the DT so as to populate the cpuidle table. Use those APIs to read from the DT that can avoid endianness conversions of the property values in the cpuidle driver. Signed-off-by: Preeti U Murthy --- This patch is based ontop of the mainline

[PATCH V4] cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-02-02 Thread Preeti U Murthy
The device tree now exposes the residency values for different idle states. Read these values instead of calculating residency from the latency values. The values exposed in the DT are validated for optimal power efficiency. However to maintain compatibility with the older firmware code which

Re: nvram and generic_nvram modules are problematic, was Re: [PATCH] arch: m68k: mac: misc.c: Remove some unused functions

2015-02-02 Thread Finn Thain
On Sun, 1 Feb 2015, Russell King - ARM Linux wrote: > On Sun, Feb 01, 2015 at 02:39:42PM +1100, Finn Thain wrote: > > I find the ARM support in drivers/char/nvram to be surprising, not to > > say questionable. The /proc/driver/nvram implementation, given > > defined(__arm__), decodes the NVRAM

Re: [PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-02 Thread Al Viro
On Mon, Feb 02, 2015 at 06:05:09PM +0100, Alexander Holler wrote: > + if (inode) { > + // TODO: > + // if (inode is file and 's' flag is set) > + // secure = true; > + if (!secure) > + iput(inode);/* truncate the

Re: [PATCH v2] i7core_edac: release resources on error in i7core_create_sysfs_devices

2015-02-02 Thread Junjie Mao
Guenter Roeck writes: > On Tue, Feb 03, 2015 at 10:40:14AM +0800, Junjie Mao wrote: >> v2: do not call kfree on allocated devs after device_initialize is called >> >> Signed-off-by: Junjie Mao >> --- >> drivers/edac/i7core_edac.c | 37 + >> 1 file changed,

[PATCH] i7core_edac: release resources on error in i7core_create_sysfs_devices

2015-02-02 Thread Junjie Mao
v3: call device_remove_file on failure v2: do not call kfree on allocated devs after device_initialize is called Signed-off-by: Junjie Mao --- drivers/edac/i7core_edac.c | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v3 14/24] vfio: powerpc/spapr: Register memory

2015-02-02 Thread Alexey Kardashevskiy
On 02/03/2015 11:11 AM, Alex Williamson wrote: > On Thu, 2015-01-29 at 20:21 +1100, Alexey Kardashevskiy wrote: >> The existing implementation accounts the whole DMA window in >> the locked_vm counter which is going to be even worse with multiple >> containers and huge DMA windows. >> >> This

[PATCHv2] kvmppc: Implement H_LOGICAL_CI_{LOAD,STORE} in KVM

2015-02-02 Thread David Gibson
On POWER, storage caching is usually configured via the MMU - attributes such as cache-inhibited are stored in the TLB and the hashed page table. This makes correctly performing cache inhibited IO accesses awkward when the MMU is turned off (real mode). Some CPU models provide special registers

RE: [RFC] change non-atomic bitops method

2015-02-02 Thread Wang, Yalin
> -Original Message- > From: Wang, Yalin > Sent: Tuesday, February 03, 2015 10:13 AM > To: 'Kirill A. Shutemov'; Andrew Morton > Cc: 'a...@arndb.de'; 'linux-a...@vger.kernel.org'; 'linux- > ker...@vger.kernel.org'; 'li...@arm.linux.org.uk'; 'linux-arm- > ker...@lists.infradead.org' >

[PATCH 5/5] powerpc: Remove unused st_le*() and ld_le* functions

2015-02-02 Thread David Gibson
The powerpc specific st_le*() and ld_le*() functions in arch/powerpc/asm/swab.h no longer have any users. They are also misleadingly named, since they always byteswap, even on a little-endian host. This patch removes them. Signed-off-by: David Gibson --- arch/powerpc/include/asm/swab.h | 26

[PATCH 0/5] powerpc: Get rid of redundant arch specific swab functions

2015-02-02 Thread David Gibson
arch/powerpc/include/asm/swab.h includes some powerpc specific byteswapping functions, which are implemented in terms of powerpc's built in byte reversed load/store instructions. There are two problems with this: 1) They're not necessary - gcc is perfectly capable of generating the

[PATCH 1/5] powerpc: Move Power Macintosh drivers to generic byteswappers

2015-02-02 Thread David Gibson
ppc has special instruction forms to efficiently load and store values in non-native endianness. These can be accessed via the arch-specific {ld,st}_le{16,32}() inlines in arch/powerpc/include/asm/swab.h. However, gcc is perfectly capable of generating the byte-reversing load/store instructions

[PATCH 4/5] powerpc: Cleanup KVM emulated load/store endian handling

2015-02-02 Thread David Gibson
Sometimes the KVM code on powerpc needs to emulate load or store instructions from the guest, which can include both normal and byte reversed forms. We currently (AFAICT) handle this correctly, but some variable names are very misleading. In particular we use "is_bigendian" in several places to

[PATCH 2/5] powerpc: Remove powerpc specific byteswap from bt8xx DVB driver

2015-02-02 Thread David Gibson
The bt8xx PCI DVB driver includes a powerpc specific hack, using one of the powerpc specific byteswapping functions in an IO helper macro. There's no reason to use the powerpc specific function instead of a generic byteswap, so this patch removes it. I'm not sure if the powerpc specific memory

[PATCH 3/5] powerpc: Remove arch specific byteswappers from the MXC MMC driver

2015-02-02 Thread David Gibson
When the MXC MMUC driver is used on a Freescale MPC512x machine, it contains some additional byteswapping code (I'm assuming this is a workaround for a hardware defect). This uses the ppc specific st_le32() function, but there's no reason not to use the generic swab32() function instead. gcc is

linux-next: manual merge of the clk tree with the arm-soc tree

2015-02-02 Thread Stephen Rothwell
Hi Mike, Today's linux-next merge of the clk tree got a conflict in arch/arm/mach-omap2/cclock3xxx_data.c between commit ca662ee7b8a8 ("ARM: OMAP2+: Remove unused ti81xx platform init code") from the arm-soc tree and commit d6540b193719 ("ARM: OMAP3: remove legacy clock data") from the clk tree.

linux-next: manual merge of the clk tree with the arm-soc tree

2015-02-02 Thread Stephen Rothwell
Hi Mike, Today's linux-next merge of the clk tree got a conflict in arch/arm/mach-omap2/io.c between commit c27964b5d2f3 ("ARM: OMAP2+: Fix ti81xx class type") from the arm-soc tree and commit eded36fe29e1 ("ARM: OMAP3: use clock data from TI clock driver for legacy boot") from the clk tree. I

[PATCH v2 4/6] power: max77843_battery: Add Max77843 fuel gauge device driver

2015-02-02 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 fuel gauge. The driver support for battery fuel gauge in Maxim Max77843. It is fuel-gauge systems for lithuum-ion batteries in handled and portable devices. Cc: Sebastian Reichel Signed-off-by: Beomho Seo --- drivers/power/Kconfig

[PATCH v2 2/6] extcon: max77843: Add max77843 MUIC driver

2015-02-02 Thread Jaewon Kim
This patch adds MAX77843 extcon driver to support for MUIC(Micro USB Interface Controller) device by using EXTCON subsystem to handle various external connectors. Cc: Chanwoo Choi Signed-off-by: Jaewon Kim --- drivers/extcon/Kconfig | 10 + drivers/extcon/Makefile |1 +

[PATCH v2 6/6] Documentation: Add device tree bindings document for max77843

2015-02-02 Thread Jaewon Kim
Add document describing device tree bindings for max77843 MFD. Drivers: MFD core, regulator, extcon, charger and fuelgauge. Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: Lee Jones Cc: Chanwoo Choi Cc: Sebastian Reichel Cc: Mark Brown Signed-off-by:

[PATCH v2 0/6] Add new MFD driver for MAX77843

2015-02-02 Thread Jaewon Kim
This patch series adds MAX77843(Multi Function Device) driver. The MAX77843 includes MUIC(Micro USB Interface Circuit), Li+ Charger with Fuel Gauge and 2 safeout LDOs for USB device. It is interfaced to host controller using I2C. Changes in V2: MFD Core - Fix charger regmap handle and typo. MUIC

[PATCH v2 3/6] power: max77843_charger: Add Max77843 charger device driver

2015-02-02 Thread Jaewon Kim
From: Beomho Seo This patch adds device driver of max77843 charger. This driver provide initialize each charging mode(e.g. fast charge, top-off mode and constant charging mode so on.). Additionally, control charging paramters to use i2c interface. Cc: Sebastian Reichel Signed-off-by: Beomho

[PATCH v2 5/6] regulator: max77843: Add max77843 regulator driver

2015-02-02 Thread Jaewon Kim
This patch adds new regulator driver to support max77843 MFD(Multi Function Device) chip`s regulators. The Max77843 has two voltage regulators for USB safeout. Cc: Mark Brown Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- drivers/regulator/Kconfig|8 ++

[PATCH v2 1/6] mfd: max77843: Add max77843 MFD driver core driver

2015-02-02 Thread Jaewon Kim
This patch adds MAX77843 core/irq driver to support PMIC, MUIC(Micro USB Interface Controller), Charger, Fuel Gauge, LED and Haptic device. Cc: Lee Jones Signed-off-by: Jaewon Kim Signed-off-by: Beomho Seo --- drivers/mfd/Kconfig | 14 ++ drivers/mfd/Makefile

linux-next: manual merge of the target-updates tree with Linus' tree

2015-02-02 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in drivers/vhost/scsi.c between commit 46243860806b ("vhost-scsi: Add missing virtio-scsi -> TCM attribute conversion") from Linus' tree and commit 2936f1d4f3e8 ("vhost/scsi: Global tcm_vhost -> vhost_scsi rename")

Re: [PATCH] lib/int_sqrt.c: Optimize square root function

2015-02-02 Thread Davidlohr Bueso
On Mon, 2015-02-02 at 20:41 -0800, Davidlohr Bueso wrote: > On Mon, 2015-02-02 at 11:13 -0800, Linus Torvalds wrote: > > IOW, instead of > > > > m = 1UL << (BITS_PER_LONG - 2); > > > > perhaps something like > > > >m = 1UL << (BITS_PER_LONG/2- 2); > >if (m < x) > >m <<=

Re: [PATCH] zram: check bd_openers instead bd_holders

2015-02-02 Thread Sergey Senozhatsky
On (02/03/15 13:50), Minchan Kim wrote: > Signed-off-by: Minchan Kim Acked-by: Sergey Senozhatsky > --- > drivers/block/zram/zram_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c > index

[PATCH] zram: check bd_openers instead bd_holders

2015-02-02 Thread Minchan Kim
744153] Buffer I/O error on dev zram0, logical block 180827, lost async page write [ 33.745807] Buffer I/O error on dev zram0, logical block 180828, lost async page write [ 33.747419] Buffer I/O error on dev zram0, logical block 180829, lost async page write [ 33.749060] Buffer I/O error on d

Re: [PATCH] lib/int_sqrt.c: Optimize square root function

2015-02-02 Thread Davidlohr Bueso
On Mon, 2015-02-02 at 11:00 -0800, Linus Torvalds wrote: > Hmm. I don't disagree, but would like some more feedback. > > Davidlohr - you were the person to touch this function last (commit > 30493cc9dddb: "lib/int_sqrt.c: optimize square root algorithm"), and > you did so for performance reasons.

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Yoshinori Sato
At Mon, 2 Feb 2015 22:07:50 +0100, Geert Uytterhoeven wrote: > > Hi Sato-san, > > Your second version looks fine to me, except for this part: > > On Mon, Feb 2, 2015 at 4:48 PM, Yoshinori Sato > wrote: > > --- a/arch/um/Kconfig.common > > +++ b/arch/um/Kconfig.common > > @@ -9,6 +9,7 @@ config

Re: [PATCH] lib/int_sqrt.c: Optimize square root function

2015-02-02 Thread Davidlohr Bueso
On Mon, 2015-02-02 at 11:13 -0800, Linus Torvalds wrote: > IOW, instead of > > m = 1UL << (BITS_PER_LONG - 2); > > perhaps something like > >m = 1UL << (BITS_PER_LONG/2- 2); >if (m < x) >m <<= BITS_PER_LONG/2; > > (assuming gcc can change that code into a "cmov") might cut

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Yoshinori Sato
At Mon, 02 Feb 2015 21:11:50 +0100, Arnd Bergmann wrote: > > On Tuesday 03 February 2015 00:48:20 Yoshinori Sato wrote: > > At Mon, 2 Feb 2015 09:10:06 +0100, > > Geert Uytterhoeven wrote: > > > > > > Hi Sato-san, > > > > > > > > > On Mon, Feb 2, 2015 at 8:24 AM, Yoshinori Sato > > > wrote: >

Re: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread Jason Wang
On Mon, Feb 2, 2015 at 12:35 PM, Dexuan Cui wrote: Before the line vmbus_open() returns, srv->util_cb can be already running and the variables, like util_fw_version, are needed by the srv->util_cb. So we have to make sure the variables are initialized before the vmbus_open(). CC: "K. Y.

RE: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread Jason Wang
On Tue, Feb 3, 2015 at 11:40 AM, KY Srinivasan wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Monday, February 2, 2015 7:38 PM To: KY Srinivasan Cc: Dexuan Cui; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org;

RE: [alsa-devel] [PATCH v4 3/3] ARM: dts: Add sound nodes for exynos4412-trats2

2015-02-02 Thread Kukjin Kim
Sylwester Nawrocki wrote: > > On 23/01/15 06:03, Inha Song wrote: > > This patch add WM1811 audio codec, I2S interface and the sound > > machine nodes to enable audio on exynos4412-trats2 board. > > > > Signed-off-by: Inha Song > > Reviewed-by: Sylwester Nawrocki > Applied, thanks. - Kukjin

Re: [PATCH v2] i7core_edac: release resources on error in i7core_create_sysfs_devices

2015-02-02 Thread Guenter Roeck
On Tue, Feb 03, 2015 at 10:40:14AM +0800, Junjie Mao wrote: > v2: do not call kfree on allocated devs after device_initialize is called > > Signed-off-by: Junjie Mao > --- > drivers/edac/i7core_edac.c | 37 + > 1 file changed, 25 insertions(+), 12

RE: [RESEND PATCH] ARM: EXYNOS: Add missing static to file-scope declarations

2015-02-02 Thread Kukjin Kim
Krzysztof Kozlowski wrote: > > The 'pm_data', 'exynos_release_ret_regs' and > 'exynos5420_release_ret_regs' are not exported nor used outside of > suspend.c file. Make them static. > > This fixes following sparse warnings: > arch/arm/mach-exynos/suspend.c:83:23: warning: symbol 'pm_data' was not

Re: [PATCH v1 2/2] zram: remove init_lock in zram_make_request

2015-02-02 Thread Sergey Senozhatsky
On (02/03/15 12:02), Minchan Kim wrote: > On Tue, Feb 03, 2015 at 10:54:33AM +0900, Sergey Senozhatsky wrote: > > On (02/02/15 16:06), Sergey Senozhatsky wrote: > > > So, guys, how about doing it differently, in less lines of code, > > > hopefully. Don't move reset_store()'s work to

[PATCH v2] selftests/exec: Check if the syscall exists and bail if not

2015-02-02 Thread Michael Ellerman
On systems which don't implement sys_execveat(), this test produces a lot of output. Add a check at the beginning to see if the syscall is present, and if not just note one error and return. When we run on a system that doesn't implement the syscall we will get ENOSYS back from the kernel, so

Re: [PATCH v3 0/2][request for stable inclusion] several pstore related bugfixs

2015-02-02 Thread Greg KH
On Wed, Jan 28, 2015 at 04:06:24PM +0800, HuKeping wrote: > Hi greg, > We want to use pstore on linux 3.10. But we found several bugfixs have not > been merged yet. Most of them are obvious and can be cherry-picked cleanly. > Would you please apply them to stable 3.10? > > v1 -> v2: > - remove

RE: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread KY Srinivasan
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, February 2, 2015 7:09 PM > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev- > de...@linuxdriverproject.org; o...@aepfle.de; a...@canonical.com; KY > Srinivasan;

RE: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread KY Srinivasan
> -Original Message- > From: Jason Wang [mailto:jasow...@redhat.com] > Sent: Monday, February 2, 2015 7:38 PM > To: KY Srinivasan > Cc: Dexuan Cui; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; > driverdev-de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com;

RE: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread Jason Wang
On Tue, Feb 3, 2015 at 11:30 AM, KY Srinivasan wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Monday, February 2, 2015 7:09 PM To: Dexuan Cui Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev-

[PATCH v1] spi: imx: use pio mode for i.mx6dl

2015-02-02 Thread Robin Gong
For TKT238285 hardware issue which may cause txfifo store data twice can only be caught on i.mx6dl, we use pio mode instead of DMA mode on i.mx6dl. Signed-off-by: Robin Gong --- drivers/spi/spi-imx.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-imx.c

[RFC PATCH] ASoC: wm8731: let codec to manage clock by itself

2015-02-02 Thread Bo Shen
Let the wm8731 codec to manage clock by itself. As all at91 related boards have been switch to CCF framework. So, on the at91 related boards which use wm8731 will let it manage the clock, or else the board use wm8731 is broken. However, at the same time the wm8731 codec is used on other boards,

Re: [PATCH v4 6/6] KVM: nVMX: Enable nested posted interrupt processing

2015-02-02 Thread Wincy Van
On Tue, Feb 3, 2015 at 9:21 AM, Zhang, Yang Z wrote: > Paolo Bonzini wrote on 2015-02-03: >> >> >> On 02/02/2015 16:33, Wincy Van wrote: >>> static void vmx_accomp_nested_posted_intr(struct kvm_vcpu *vcpu) { >>> struct vcpu_vmx *vmx = to_vmx(vcpu); >>> >>> if (is_guest_mode(vcpu)

Re: [PATCH] net: sctp: Deletion of an unnecessary check before the function call "kfree"

2015-02-02 Thread David Miller
From: SF Markus Elfring Date: Sat, 31 Jan 2015 18:15:59 +0100 > From: Markus Elfring > Date: Sat, 31 Jan 2015 18:10:03 +0100 > > The kfree() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by

RE: [PATCH] ARM: dts: exynos4412-trats2: Add max77693 charger node

2015-02-02 Thread Kukjin Kim
Krzysztof Kozlowski wrote: > > Add to Trats2 DTS new node for configuring the max77693 charger driver. > Only the maxim,constant-microvolt differs from default value but set all > of the optional properties anyway. > > Signed-off-by: Krzysztof Kozlowski > --- >

RE: [PATCH 0/3] ARM: dts: Regulator changes and fuel gauge for exynos4412-trats2

2015-02-02 Thread Kukjin Kim
Krzysztof Kozlowski wrote: > > Hi Kukjin, > Hi, > > I grouped into one patchset already posted patches for Trats2 board: > 1. Fuel gauge: >https://lkml.org/lkml/2015/1/7/167 > 2. Suspend configuration for max77686 regulators: >https://lkml.org/lkml/2014/10/29/262 > 3. GPIO control for

Re: [PATCH v2 2/2] task_mmu: Add user-space support for resetting mm->hiwater_rss (peak RSS)

2015-02-02 Thread Petr Cermak
On Mon, Jan 26, 2015 at 04:00:20PM -0800, David Rientjes wrote: > [...] > This is a result of allowing something external (process B) be able to > clear hwm so that you never knew the value went to 100MB. That's the > definition of a race, I don't know how to explain it any better and making >

Re: nvram and generic_nvram modules are problematic, was Re: [PATCH] arch: m68k: mac: misc.c: Remove some unused functions

2015-02-02 Thread Finn Thain
On Sun, 1 Feb 2015, Geert Uytterhoeven wrote: > On Sun, Feb 1, 2015 at 4:39 AM, Finn Thain wrote: > > On Sun, 4 Jan 2015, Geert Uytterhoeven wrote: > > > On Sun, Jan 4, 2015 at 8:21 AM, Finn Thain wrote: > > > > On Thu, 1 Jan 2015, Rickard Strandqvist wrote: > > > > > Removes some functions that

RE: [PATCH] ARM: EXYNOS: Handle of of_iomap() failure

2015-02-02 Thread Kukjin Kim
Krzysztof Kozlowski wrote: > > Prevent possible NULL pointer dereference if of_iomap() fails. Handle > the error by skipping such power domain. > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/mach-exynos/pm_domains.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git

RE: [PATCH v2 1/3] hv: hv_util: move vmbus_open() to a later place

2015-02-02 Thread Jason Wang
On Mon, Feb 2, 2015 at 6:09 PM, Dexuan Cui wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Monday, February 2, 2015 17:36 PM To: Dexuan Cui Cc: gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; driverdev- de...@linuxdriverproject.org;

Re: [PATCH v2 08/12] drm: bridge/dw_hdmi: add audio config interfaces

2015-02-02 Thread Yang Kuankuan
On 02/02/2015 08:09 AM, Russell King - ARM Linux wrote: On Mon, Feb 02, 2015 at 07:32:05AM -0500, Yang Kuankuan wrote: On 02/02/2015 06:53 AM, Russell King - ARM Linux wrote: On Mon, Feb 02, 2015 at 12:02:50PM +0800, Daniel Kurtz wrote: Hi ykk, On Sat, Jan 31, 2015 at 10:34 PM, Yang

Re: [PATCH v1 2/2] zram: remove init_lock in zram_make_request

2015-02-02 Thread Minchan Kim
On Tue, Feb 03, 2015 at 10:54:33AM +0900, Sergey Senozhatsky wrote: > On (02/02/15 16:06), Sergey Senozhatsky wrote: > > So, guys, how about doing it differently, in less lines of code, > > hopefully. Don't move reset_store()'s work to zram_reset_device(). > > Instead, move > > > >

Re: [PATCH] zram: fix umount-reset_store-mount race condition

2015-02-02 Thread Minchan Kim
[ 33.812038] WARNING: CPU: 11 PID: 1996 at fs/block_dev.c:57 __blkdev_put+0x1d7/0x210() [ 33.812817] Modules linked in: [ 33.813142] CPU: 11 PID: 1996 Comm: dd Not tainted 3.19.0-rc6-next-20150202+ #1125 [ 33.813837] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2

Re: [PATCH] net/tulip: don't warn about unknown ARM architecture

2015-02-02 Thread David Miller
From: Arnd Bergmann Date: Fri, 30 Jan 2015 22:58:19 +0100 > ARM has 32-byte cache lines, which according to the comment in > the init registers function seems to work best with the default > value of 0x4800 that is also used on sparc and parisc. > > This adds ARM to the same list, to use that

Re: [PATCH v3 24/24] vfio: powerpc/spapr: Support Dynamic DMA windows

2015-02-02 Thread Alex Williamson
On Thu, 2015-01-29 at 20:22 +1100, Alexey Kardashevskiy wrote: > This adds create/remove window ioctls to create and remove DMA windows. > > This changes VFIO_IOMMU_SPAPR_TCE_GET_INFO handler to return additional > information such as a number of supported windows and maximum number > levels of

Re: [Patch Part2 v4 00/33] Clean up obsoleted x86 interrupt manangement code and interfaces

2015-02-02 Thread Jiang Liu
Ping) On 2015/1/20 13:51, Jiang Liu wrote: > This is a following-on patch of "[Patch Part1 v7 00/38] Convert x86 to > hierarchy irqdomain and stacked irqchip" at > https://lkml.org/lkml/2015/1/19/685 > > The precedent patch has convert x86 interrupt management subsystem to > hierarchy irqdomain

Re: [PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-02 Thread Chen Gang S
On 2/3/15 10:32, Chen Gang S wrote: > On 2/3/15 05:20, Joe Perches wrote: >> On Tue, 2015-02-03 at 05:14 +0800, Chen Gang S wrote: >>> hci_test_bit() does not modify 2nd parameter, so it is better to let it >>> be constant, or may cause build warning. The related warning (with >>> allmodconfig

Re: [Patch Part1 v7 00/38] Convert x86 to hierarchy irqdomain and stacked irqchip

2015-02-02 Thread Jiang Liu
Ping:) On 2015/1/20 11:08, Jiang Liu wrote: > Hi all, > The generic hierarchy irqdomain and stacked irqchip implementation > has been merged into v3.19, so this patch set converts x86 interupt > management to hierarchy irqdomain and stacked irqchip. I will send out > another following-on

Re: [f2fs-dev] [PATCH 5/5 v2] f2fs: introduce a batched trim

2015-02-02 Thread Changman Lee
Hi Jaegeuk, IMHO, it looks better user could decide the size of trim considering latency of trim. Otherwise, additional checkpoints user doesn't want will occur. Regards, Changman On Mon, Feb 02, 2015 at 03:29:25PM -0800, Jaegeuk Kim wrote: > Change long from v1: > o add description > o

Re: [PATCH] Documentation: Update netlink_mmap.txt

2015-02-02 Thread David Miller
From: Richard Weinberger Date: Fri, 30 Jan 2015 20:50:44 +0100 > Update netlink_mmap.txt wrt. commit 4682a0358639b29cf > ("netlink: Always copy on mmap TX."). > > Signed-off-by: Richard Weinberger Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[PATCH v2] i7core_edac: release resources on error in i7core_create_sysfs_devices

2015-02-02 Thread Junjie Mao
v2: do not call kfree on allocated devs after device_initialize is called Signed-off-by: Junjie Mao --- drivers/edac/i7core_edac.c | 37 + 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c

[PATCH] i7core_edac: release resources on error in i7core_create_sysfs_devices

2015-02-02 Thread Junjie Mao
Signed-off-by: Junjie Mao --- drivers/edac/i7core_edac.c | 39 +++ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index 9cd0b301f81b..98911150411b 100644 --- a/drivers/edac/i7core_edac.c

Re: [PATCH v2] net: bluetooth: hci_sock: Use 'const void *' instead of 'void *' for 2nd parameter of hci_test_bit()

2015-02-02 Thread Chen Gang S
On 2/3/15 05:20, Joe Perches wrote: > On Tue, 2015-02-03 at 05:14 +0800, Chen Gang S wrote: >> hci_test_bit() does not modify 2nd parameter, so it is better to let it >> be constant, or may cause build warning. The related warning (with >> allmodconfig under xtensa): > [] >> diff --git

RE: [RFC] change non-atomic bitops method

2015-02-02 Thread Wang, Yalin
> -Original Message- > From: Kirill A. Shutemov [mailto:kir...@shutemov.name] > Sent: Tuesday, February 03, 2015 9:18 AM > To: Andrew Morton > Cc: Wang, Yalin; 'a...@arndb.de'; 'linux-a...@vger.kernel.org'; 'linux- > ker...@vger.kernel.org'; 'li...@arm.linux.org.uk'; 'linux-arm- >

[PATCH V3] acpi:apd:add AMD ACPI2Platform device support for x86 system.

2015-02-02 Thread Ken Xue
This new feature is to interpret AMD specific ACPI device to platform device such as I2C, UART found on AMD CZ and later chipsets. It based on example intel LPSS. Now, it can support AMD I2C & UART. Signed-off-by: Ken Xue --- arch/x86/Kconfig| 11 +++ drivers/acpi/Makefile | 2 +-

Re: [Patch v2 1/6] soc: qcom: gsbi: Add support for ADM CRCI muxing

2015-02-02 Thread Stephen Boyd
On 01/30/15 13:48, Kumar Gala wrote: > On Jan 30, 2015, at 3:37 PM, Stephen Boyd wrote: > >> On 01/30/15 08:32, Kumar Gala wrote: >>> On Jan 30, 2015, at 12:25 AM, Andy Gross wrote: >>> Required properties if child node exists: - #address-cells: Must be 1 - #size-cells: Must be 1

[for-next][PATCH 3/5] trace: Use 64-bit timekeeping

2015-02-02 Thread Steven Rostedt
From: Tina Ruchandani The ring_buffer_producer uses 'struct timeval' to measure its start and end times. 'struct timeval' on 32-bit systems will have its tv_sec value overflow in year 2038 and beyond. This patch replaces struct timeval with 'ktime_t' which uses 64-bit representation for

[for-next][PATCH 1/5] tracing: Remove newline from trace_printk warning banner

2015-02-02 Thread Steven Rostedt
From: Borislav Petkov Remove the output-confusing newline below: [0.191328] ** [0.191493] ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** [0.191586] ** ** ...

[for-next][PATCH 2/5] tracing: Add array printing helper

2015-02-02 Thread Steven Rostedt
From: Dave Martin If a trace event contains an array, there is currently no standard way to format this for text output. Drivers are currently hacking around this by a) local hacks that use the trace_seq functionailty directly, or b) just not printing that information. For fixed size arrays,

[for-next][PATCH 0/5] tracing: Updates for 3.20

2015-02-02 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 7eeafbcab47fe9860e5106286db83d60e3f35644 Borislav Petkov (1): tracing: Remove newline from trace_printk warning banner Dave Martin (1): tracing: Add array printing helper Steven Rostedt

[PATCH v3 2/4] pinctrl: Broadcom Cygnus pinctrl device tree binding

2015-02-02 Thread Ray Jui
Device tree binding documentation for Broadcom Cygnus IOMUX driver Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/pinctrl/brcm,cygnus-pinmux.txt| 159 1 file changed, 159 insertions(+) create mode 100644

[PATCH v3 3/4] pinctrl: cygnus: add initial IOMUX driver support

2015-02-02 Thread Ray Jui
This adds the initial driver support for the Broadcom Cygnus IOMUX controller. The Cygnus IOMUX controller supports group based mux configuration but allows certain pins to be muxed to GPIO individually Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- drivers/pinctrl/bcm/Kconfig

  1   2   3   4   5   6   7   8   9   10   >