[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 a

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' > Subjec

[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 t

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 intro

[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 a/drivers/edac/i7co

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, 2

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 inode

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

[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 doe

[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

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 -DCHECK_BEF

[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 --- arch/powerpc/platforms/powernv/set

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 > mm

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 compactio

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] 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- > ker

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. >>

[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 Howell

[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

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

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

[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 changed

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 non-

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 1/2] ALSA: line6: use msecs_to_jiffies for conversion

2015-02-02 Thread Nicholas Mc Guire
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

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

2015-02-02 Thread Nicholas Mc Guire
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

[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 --

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 actu

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 sg-lists,

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 c

[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 261ebee6aee55

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] 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 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 unlink()

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) > >> + //

<    4   5   6   7   8   9