[PATCH V3 10/11] MIPS: Reorder MIPS_L1_CACHE_SHIFT priorities

2014-11-23 Thread Kevin Cernekee
Enabling support for more than one BMIPS CPU in the same build may result in different L1_CACHE_SHIFT values, e.g. CPU_BMIPS5000 selects MIPS_L1_CACHE_SHIFT_7 CPU_BMIPS4380 selects MIPS_L1_CACHE_SHIFT_6 anything else defaults to MIPS_L1_CACHE_SHIFT_5 Ensure that if more than one

Re: [PATCH V3] ACPI: Add _DEP(Operation Region Dependencies) support to fix battery issue on the Asus T100TA

2014-11-23 Thread Li, Aubrey
On 2014/11/23 21:22, Lan Tianyu wrote: > ACPI 5.0 introduces _DEP to designate device objects that OSPM should > assign a higher priority in start ordering due to future operation region > accesses. > > On Asus T100TA, ACPI battery info are read from a I2C slave device via > I2C operation region.

[PATCH V3 02/11] irqchip: brcmstb-l2: don't clear wakeable interrupts at init time

2014-11-23 Thread Kevin Cernekee
From: Brian Norris Wakeable interrupts might be pending at boot/init time, because wakeup interrupts might have triggered a resume from S5. So don't clear such wakeups. This means that any driver which requests a wakeable interrupt bit should be prepared to handle an interrupt as soon as they

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

2014-11-23 Thread Xue, Ken
On Tuesday, November 18, 2014 01:58:11 PM Ken Xue wrote: > 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 is > based on example INTEL LPSS. Now, it can support AMD I2C & UART. > > Signed-off-by: Ken Xue >

Re: [CFT PATCH 2/2] KVM: x86: support XSAVES usage in the host

2014-11-23 Thread Wanpeng Li
Hi Paolo, On Fri, Nov 21, 2014 at 07:31:18PM +0100, Paolo Bonzini wrote: [...] >+ u64 feature = valid & -valid; >+ int index = fls64(feature) - 1; >+ void *src = get_xsave_addr(xsave, feature); >+ >+ if (src) { >+ u32 size,

Re: KVM causes #GP on XRSTORS

2014-11-23 Thread Wanpeng Li
Hi Paolo, On Fri, Nov 21, 2014 at 03:46:55PM +0100, Paolo Bonzini wrote: > > >On 20/11/2014 17:34, Nadav Amit wrote: >> Fenghua, >> >> I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears >> to get a #GP when it is trying to load the guest FPU. >> One reason for the #GP is

[PATCH] mm,vmacache: count number of system-wide flushes

2014-11-23 Thread Davidlohr Bueso
These flushes deal with sequence number overflows, such as for long lived threads. These are rare, but interesting from a debugging PoV. As such, display the number of flushes when vmacache debugging is enabled. Signed-off-by: Davidlohr Bueso --- include/linux/vm_event_item.h | 1 +

Re: [PATCH v4] clocksource: arch_timer: Fix code to use physical timers when requested

2014-11-23 Thread Sonny Rao
On Fri, Nov 21, 2014 at 12:58 PM, Olof Johansson wrote: > On Thu, Nov 20, 2014 at 8:58 AM, Catalin Marinas > wrote: >> Doug, >> >> On Thu, Nov 20, 2014 at 04:24:09PM +, Doug Anderson wrote: >>> On Thu, Nov 20, 2014 at 8:10 AM, Catalin Marinas >>> wrote: >>> > On Wed, Oct 08, 2014 at

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

2014-11-23 Thread Stephen Rothwell
Hi Mauro, Today's linux-next merge of the v4l-dvb tree got a conflict in arch/arm/mach-omap2/devices.c between commit e7e42b9d2a7f ("ARM: OMAP4+: Remove unused omap_l3_noc platform init") from the arm-soc tree and commit 1b65729a186b ("[media] mach-omap2: remove deprecated VIDEO_OMAP2 support")

[PATCH v4 3/5] driver: soc: exynos-pmu: Add an API to be called after wakeup

2014-11-23 Thread Amit Daniel Kachhap
This patch adds an API exynos_sys_powerup_conf to be called after system sleep wakeup. This will useful for exynos7 SoC to perform resume related initialisations. This is similar to currently existing API exynos_sys_powerdown_conf. Reviewed-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap

[PATCH v4 5/5] arm: exynos: Select SOC_SAMSUNG config option

2014-11-23 Thread Amit Daniel Kachhap
The config option SOC_SAMSUNG is needed to enable all soc samsung drivers inside driver/soc/samsung folder. Currently, this will be useful to enable exynos pmu driver which is moved to that folder. Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/Kconfig |1 + 1 file changed, 1

[PATCH v4 4/5] drivers: soc: exynos-pmu: Add support for Exynos7

2014-11-23 Thread Amit Daniel Kachhap
Add PMU settings for exynos7. This is required for future suspend-to-ram, cpuidle and power domain support. Note: In this patch some static declarations lines are over 80 characters per line for easy redability. Reviewed-by: Pankaj Dubey Signed-off-by: Eunseok Choi Signed-off-by: Abhilash

[PATCH v4 2/5] drivers: soc: Add support for Exynos PMU driver

2014-11-23 Thread Amit Daniel Kachhap
This patch moves Exynos PMU driver implementation from "arm/mach-exynos" to "drivers/soc/samsung". This driver is mainly used for setting misc bits of register from PMU IP of Exynos SoC which will be required to configure before Suspend/Resume. Currently all these settings are done in

[PATCH v4 1/5] ARM: EXYNOS: Move pmu specific headers under "linux/soc/samsung"

2014-11-23 Thread Amit Daniel Kachhap
Moving Exynos PMU specific header file into "include/linux/soc/samsung" thus updated affected files under "mach-exynos" to use new location of these header files. Signed-off-by: Pankaj Dubey Signed-off-by: Amit Daniel Kachhap --- arch/arm/mach-exynos/exynos.c |2 +-

[PATCH v4 0/5] exynos: Move pmu driver to driver/soc folder and add exynos7 support

2014-11-23 Thread Amit Daniel Kachhap
This patch series [1 - 5] performs, 1) Moves pmu driver to driver/soc/samsung folder. This is needed as exynos7 is an arm64 based platform and hence PMU driver should be in driver folder. Some discussion happened about this in the v1 version. Finally adding it in driver/soc folder as it

Re: [PATCH ftrace/core v6 2/5] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-11-23 Thread Masami Hiramatsu
(2014/11/22 4:43), Steven Rostedt wrote: > On Fri, 21 Nov 2014 13:05:29 -0500 > Steven Rostedt wrote: > >> On Fri, 21 Nov 2014 05:25:16 -0500 >> Masami Hiramatsu wrote: > >>> + * IPMODIFY - The ops can modify the IP register. This can only be set with >>> + *SAVE_REGS. If another

Re: [PATCH] clk: rockchip: rk3288 export i2s0_clkout for use in DT

2014-11-23 Thread Sonny Rao
On Sun, Nov 23, 2014 at 4:07 PM, Heiko Stübner wrote: > Hi Sonny, > > Am Dienstag, 18. November 2014, 23:15:19 schrieb Sonny Rao: >> This exposes the clock that comes out of the i2s block which generally >> goes to the audio codec. >> >> Signed-off-by: Sonny Rao >> --- >>

Re: [PATCH ftrace/core v6 2/5] ftrace, kprobes: Support IPMODIFY flag to find IP modify conflict

2014-11-23 Thread Masami Hiramatsu
(2014/11/22 3:05), Steven Rostedt wrote: > On Fri, 21 Nov 2014 05:25:16 -0500 > Masami Hiramatsu wrote: > >> Documentation/trace/ftrace.txt |5 + >> include/linux/ftrace.h | 16 - >> kernel/trace/ftrace.c | 142 >> +++- >> 3 files

Re: [PATCH 17/17] rds: switch rds_message_copy_from_user() to iov_iter

2014-11-23 Thread Ben Hutchings
On Sat, 2014-11-22 at 04:39 +, Al Viro wrote: [...] > - ret = rds_page_copy_from_user(sg_page(sg), sg->offset + sg_off, > - iov->iov_base + iov_off, > - to_copy); [...] It looks like

Re: [PATCH 3/3] intel_pstate: add module and kernel command line parameter to ignore ACPI _PPC

2014-11-23 Thread ethan zhao
Linda, On 2014/11/21 13:00, Linda Knippers wrote: On 11/20/2014 10:07 PM, Ethan Zhao wrote: Kristen, Whatever I would like there is a way to load intel_pstate and give it a try even it does not support all the PM features. I think 'force' is OK. Linda, Do you like it ? if the

Re: [PATCH 1/3] intel_pstate: skip the driver if Sun server has ACPI _PPC method

2014-11-23 Thread ethan zhao
Linda, On 2014/11/21 12:44, Linda Knippers wrote: On 11/20/2014 07:37 PM, ethan zhao wrote: Dirk, On 2014/11/21 0:50, Dirk Brandewie wrote: On 11/19/2014 12:22 PM, Linda Knippers wrote: On 11/18/2014 3:37 AM, Ethan Zhao wrote: Oracle Sun X86 servers have dynamic power capping capability

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

2014-11-23 Thread Rafael J. Wysocki
On Monday, November 24, 2014 01:02:30 AM Xue, Ken wrote: > > On Tuesday, November 18, 2014 01:58:11 PM Ken Xue wrote: > > 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 is > > based on example INTEL LPSS.

Re: [PATCH v5 03/18] ACPI / table: Count matched and successfully parsed entries without specifying max entries

2014-11-23 Thread Rafael J. Wysocki
On Friday, October 17, 2014 09:36:59 PM Hanjun Guo wrote: > From: Tomasz Nowicki > > It is very useful to traverse all available table entries without max > number of expected entries type. Current acpi_parse_entries() > implementation gives that feature but it does not count those entries, > it

Re: [PATCH net-net 0/4] Increase the limit of tuntap queues

2014-11-23 Thread David Miller
From: "Michael S. Tsirkin" Date: Sun, 23 Nov 2014 22:30:32 +0200 > qemu runs in the host, but it's unpriveledged: it gets > passed tun FDs by a priveledged daemon, and it only > has the rights to some operations, > in particular to attach and detach queues. > > The assumption always was that

[RFC][PATCH 2/2] handle ITER_KVEC without copy_..._user

2014-11-23 Thread Al Viro
This allows ITER_KVEC iterators work regardless of set_fs() - they can use memcpy() instead of uaccess.h stuff. While we are at it, they don't need to bother with "it's walked into an unmapped area" logics either and copying itself is atomic, which simplifies the copy_page_..._iter() for those

Re: [GIT PULL] ftrace/x86: Add frames pointers to trampoline as necessary

2014-11-23 Thread Steven Rostedt
On Sun, 23 Nov 2014 14:51:57 -0800 Linus Torvalds wrote: > On Sat, Nov 22, 2014 at 5:05 AM, Steven Rostedt wrote: > > > > Honestly, I did it this way because it was the simplest way to do it. > > So the thing is, I already dislike the whole setup, and your patch > just makes it worse. > > And

[PATCH] media: platform: add VPFE capture driver support for AM437X

2014-11-23 Thread Lad, Prabhakar
From: Benoit Parrot This patch adds Video Processing Front End (VPFE) driver for AM437X family of devices Driver supports the following: - V4L2 API using MMAP buffer access based on videobuf2 api - Asynchronous sensor/decoder sub device registration - DT support Signed-off-by: Benoit Parrot

[RFC][PATCH 1/2] reduce the amount of boilerplate in iov_iter.c

2014-11-23 Thread Al Viro
iov_iter.c has already grown pretty large, and there is a couple of pending changes to it that promise to make it even bigger. On the other hand, there's a lot of duplicated logics in there. Generally, we'd want something like iterate(iter, size, f_iovec, f_bvec, data, move) that would apply the

Re: [PATCH 08/17] {macvtap,tun}_get_user(): switch to iov_iter

2014-11-23 Thread Ben Hutchings
On Mon, 2014-11-24 at 00:27 +, Ben Hutchings wrote: > On Sat, 2014-11-22 at 04:33 +, Al Viro wrote: [...] > Does skb_copy_datagram_from_iter() really need a len parameter? Here it > is equal to iov_iter_count(from). [...] > Again len is equal to iov_iter_count(from), so I think that

Re: [PATCH v5 02/18] ACPI / table: Add new function to get table entries

2014-11-23 Thread Rafael J. Wysocki
On Friday, October 17, 2014 09:36:58 PM Hanjun Guo wrote: > From: Ashwin Chaugule > > The acpi_table_parse() function has a callback that > passes a pointer to a table_header. Add a new function > which takes this pointer and parses its entries. This > eliminates the need to re-traverse all the

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

2014-11-23 Thread Rafael J. Wysocki
On Tuesday, November 18, 2014 01:58:11 PM Ken Xue wrote: > 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 is based on example > INTEL LPSS. Now, it can support AMD I2C & UART. > > Signed-off-by: Ken Xue >

Re: [PATCH v3 3/3] ACPI / PMIC: AXP288: support virtual GPIO in ACPI table

2014-11-23 Thread Rafael J. Wysocki
On Friday, November 21, 2014 03:11:51 PM Aaron Lu wrote: > The same virtual GPIO strategy is also used for the AXP288 PMIC in that > various control methods that are used to do power rail handling and > sensor reading/setting will touch GPIO fields defined under the PMIC > device. The GPIO fileds

Re: [PATCH v3 2/3] ACPI / PMIC: support PMIC operation region for XPower AXP288

2014-11-23 Thread Rafael J. Wysocki
On Friday, November 21, 2014 03:11:50 PM Aaron Lu wrote: > The Baytrail-T-CR platform firmware has defined two customized operation > regions for PMIC chip Dollar Cove XPower - one is for power resource > handling and one is for thermal just like the CrystalCove one. This patch > adds support for

Re: [PATCH v3 1/3] ACPI / PMIC: support PMIC operation region for CrystalCove

2014-11-23 Thread Rafael J. Wysocki
On Friday, November 21, 2014 03:11:49 PM Aaron Lu wrote: > The Baytrail-T platform firmware has defined two customized operation > regions for PMIC chip Crystal Cove - one is for power resource handling > and one is for thermal: sensor temperature reporting, trip point setting, > etc. This patch

[PATCH v6] tracing: add additional marks to signal very large time

2014-11-23 Thread byungchul . park
From: Byungchul Park Currently, function graph tracer prints "!" or "+" just before function execution time to signal a function overhead, depending on the time. And some tracers tracing latency also print "!" or "+" just after time to signal overhead, depending on the interval between events.

Re: [PATCH v2 09/11] sched: test the cpu's capacity in wake affine

2014-11-23 Thread Wanpeng Li
Hi Vincent, On 5/28/14, 7:15 PM, Vincent Guittot wrote: On 28 May 2014 12:58, Peter Zijlstra wrote: On Fri, May 23, 2014 at 05:53:03PM +0200, Vincent Guittot wrote: [snip] Now I'm only struggling to understand the rationale for this, its got LLC in there somewhere, but I'm failing to

Re: [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-23 Thread Josh Triplett
On Sun, Nov 23, 2014 at 07:28:10PM -0500, Jeff Layton wrote: > On Sun, 23 Nov 2014 15:36:37 -0800 > Josh Triplett wrote: > > > On Sun, Nov 23, 2014 at 09:30:40PM +0100, Pieter Smith wrote: > > > On Sun, Nov 23, 2014 at 11:43:26AM -0800, Josh Triplett wrote: > > > > On Sun, Nov 23, 2014 at

Re: [PATCH 07/17] new helpers: skb_copy_datagram_from_iter() and zerocopy_sg_from_iter()

2014-11-23 Thread Ben Hutchings
On Mon, 2014-11-24 at 00:02 +, Ben Hutchings wrote: > On Sat, 2014-11-22 at 04:33 +, Al Viro wrote: > [...] > > --- a/net/core/datagram.c > > +++ b/net/core/datagram.c > > @@ -572,6 +572,77 @@ fault: > > } > > EXPORT_SYMBOL(skb_copy_datagram_from_iovec); > > > > Missing kernel-doc.

Re: [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-23 Thread Jeff Layton
On Sun, 23 Nov 2014 15:36:37 -0800 Josh Triplett wrote: > On Sun, Nov 23, 2014 at 09:30:40PM +0100, Pieter Smith wrote: > > On Sun, Nov 23, 2014 at 11:43:26AM -0800, Josh Triplett wrote: > > > On Sun, Nov 23, 2014 at 01:46:23PM -0500, David Miller wrote: > > > > Truly removing sendfile/sendpage

Re: [GIT PULL] Btrfs deadlock fix

2014-11-23 Thread Chris Mason
On Sun, Nov 23, 2014 at 7:23 PM, Benjamin Herrenschmidt wrote: On Sun, 2014-11-23 at 10:14 -0500, Chris Mason wrote: Hi Linus, My for-linus branch: Not sure if this is related, but with -rc4, on this ppc64el box, when grub updates (it starts trying to mount everything under the sun

Re: [PATCH 08/17] {macvtap,tun}_get_user(): switch to iov_iter

2014-11-23 Thread Ben Hutchings
On Sat, 2014-11-22 at 04:33 +, Al Viro wrote: > allows to switch macvtap and tun from ->aio_write() to ->write_iter() > > Signed-off-by: Al Viro > --- > drivers/net/macvtap.c | 43 --- > drivers/net/tun.c | 43

Re: Linux 3.18-rc6

2014-11-23 Thread Dave Jones
On Sun, Nov 23, 2014 at 04:08:21PM -0800, Linus Torvalds wrote: > Really not a whole lot of code changed, and if it wasn't for the > pending trouble from DaveJ, I'd probably be perfectly happy. Let's see > how that all unfolds, but in the meantime, the more testing this can > get, the better.

Re: [PATCH] clk: rockchip: rk3288 export i2s0_clkout for use in DT

2014-11-23 Thread Heiko Stübner
Hi Sonny, Am Dienstag, 18. November 2014, 23:15:19 schrieb Sonny Rao: > This exposes the clock that comes out of the i2s block which generally > goes to the audio codec. > > Signed-off-by: Sonny Rao > --- > drivers/clk/rockchip/clk-rk3288.c | 3 ++- >

Re: [GIT PULL] Btrfs deadlock fix

2014-11-23 Thread Benjamin Herrenschmidt
On Sun, 2014-11-23 at 10:14 -0500, Chris Mason wrote: > Hi Linus, > > My for-linus branch: Not sure if this is related, but with -rc4, on this ppc64el box, when grub updates (it starts trying to mount everything under the sun with every filesystem), the box hangs with: [ 177.344522] INFO:

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

2014-11-23 Thread Stephen Rothwell
Hi Maxime, Today's linux-next merge of the sunxi tree got a conflict in arch/arm/boot/dts/sun6i-a31.dtsi between commit 123ccfcc632a ("Revert merge of sunxi/dt") from the arm-soc tree and commits from the sunxi tree. I fixed it up (I just used the version from the sunxi tree) and can carry the

systemctl equivalent of /sys/block/sda/device/state

2014-11-23 Thread Chaitanya Gotkhindikar
Hi folks, Not sure if this is right place to ask this doubt. I am trying to port my old script to centos7, in which earlier device state was set using echo "offline" > /sys/block/sda/device/state. I am looking for systemctl equivalent for it. Can anyone please help? Thank you. -Chaitanya --

Linux 3.18-rc6

2014-11-23 Thread Linus Torvalds
Steady progress towards final release, although we still have a big unknown worry in a regression that Dave Jones reported and that we haven't solved yet. In the process of chasing that one down, there's been a fair amount of looking at various low-level details, and that found some dubious

Re: [PATCH 07/17] new helpers: skb_copy_datagram_from_iter() and zerocopy_sg_from_iter()

2014-11-23 Thread Ben Hutchings
On Sat, 2014-11-22 at 04:33 +, Al Viro wrote: [...] > --- a/net/core/datagram.c > +++ b/net/core/datagram.c > @@ -572,6 +572,77 @@ fault: > } > EXPORT_SYMBOL(skb_copy_datagram_from_iovec); > Missing kernel-doc. > +int skb_copy_datagram_from_iter(struct sk_buff *skb, int offset, > +

Re: [PATCH 2/5] X.509: Support X.509 lookup by Issuer+Serial form AuthorityKeyIdentifier

2014-11-23 Thread Mimi Zohar
Don't assume that the issuer & serialNumber are specified. Signed-off-by: Mimi Zohar --- crypto/asymmetric_keys/x509_public_key.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c

Re: [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-23 Thread Josh Triplett
On Sun, Nov 23, 2014 at 09:30:40PM +0100, Pieter Smith wrote: > On Sun, Nov 23, 2014 at 11:43:26AM -0800, Josh Triplett wrote: > > On Sun, Nov 23, 2014 at 01:46:23PM -0500, David Miller wrote: > > > Truly removing sendfile/sendpage means that you can't even compile NFS > > > into the tree. > > >

Re: [PATCH 06/17] switch macvtap to ->read_iter()

2014-11-23 Thread Ben Hutchings
On Sat, 2014-11-22 at 04:32 +, Al Viro wrote: > Signed-off-by: Al Viro > --- > drivers/net/macvtap.c | 39 --- > 1 file changed, 16 insertions(+), 23 deletions(-) > > diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c > index cea99d4..cdd820f

Re: [fuse-devel] [PATCH 4/6] fs/fuse: support compiling out splice

2014-11-23 Thread Josh Triplett
On Sun, Nov 23, 2014 at 11:29:08PM +0100, Richard Weinberger wrote: > On Sun, Nov 23, 2014 at 3:20 PM, Pieter Smith wrote: > > To implement splice support, fs/fuse makes use of nosteal_pipe_buf_ops. This > > struct is exported by fs/splice. The goal of the larger patch set is to > > completely

Re: [GIT PULL] ftrace/x86: Add frames pointers to trampoline as necessary

2014-11-23 Thread Linus Torvalds
On Sat, Nov 22, 2014 at 5:05 AM, Steven Rostedt wrote: > > Honestly, I did it this way because it was the simplest way to do it. So the thing is, I already dislike the whole setup, and your patch just makes it worse. And part of the problem is that there is *already* too many stupid layers of

Re: [fuse-devel] [PATCH 4/6] fs/fuse: support compiling out splice

2014-11-23 Thread Richard Weinberger
On Sun, Nov 23, 2014 at 3:20 PM, Pieter Smith wrote: > To implement splice support, fs/fuse makes use of nosteal_pipe_buf_ops. This > struct is exported by fs/splice. The goal of the larger patch set is to > completely compile out fs/splice, so uses of the exported struct need to be > compiled

Linux 2.6.32.64

2014-11-23 Thread Willy Tarreau
I've just released Linux 2.6.32.64. The patch and changelog will appear soon at the following locations: https://www.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.32/ https://www.kernel.org/pub/linux/kernel/v2.6/longterm/v2.6.32/patch-2.6.32.64.xz

[PATCH] sched: Provide update_curr callbacks for stop/idle scheduling classes

2014-11-23 Thread Thomas Gleixner
Chris bisected a NULL pointer deference in task_sched_runtime() to commit 6e998916dfe3 'sched/cputime: Fix clock_nanosleep()/clock_gettime() inconsistency'. Chris observed crashes in atop or other /proc walking programs when he started fork bombs on his machine. He assumed that this is a new exit

Re: New crashes walking proc with Saturday's git

2014-11-23 Thread Chris Mason
On Sun, Nov 23, 2014 at 4:38 PM, Thomas Gleixner wrote: On Sun, 23 Nov 2014, Chris Mason wrote: On Sun, Nov 23, 2014 at 4:05 PM, Thomas Gleixner wrote: > On Sun, 23 Nov 2014, Chris Mason wrote: > > On Sun, Nov 23, 2014 at 11:32 AM, Borislav Petkov wrote: > > > On Sun, Nov 23, 2014

Re: [PATCH v4] clocksource: arch_timer: Allow the device tree to specify uninitialized timer registers

2014-11-23 Thread Daniel Lezcano
On 11/20/2014 12:01 AM, Doug Anderson wrote: Daniel, On Wed, Oct 8, 2014 at 12:33 AM, Sonny Rao wrote: From: Doug Anderson Some 32-bit (ARMv7) systems are architected like this: * The firmware doesn't know and doesn't care about hypervisor mode and we don't want to add the complexity of

Re: New crashes walking proc with Saturday's git

2014-11-23 Thread Borislav Petkov
On Sun, Nov 23, 2014 at 04:29:53PM -0500, Chris Mason wrote: > 11 minutes later and it's still alive. I'll keep an eye on it and yell > if it falls over. Ditto. Box here suspends and resumes fine even while the fork bomb is running. I'll watch it the next days just in case though.

Re: New crashes walking proc with Saturday's git

2014-11-23 Thread Thomas Gleixner
On Sun, 23 Nov 2014, Chris Mason wrote: > On Sun, Nov 23, 2014 at 4:05 PM, Thomas Gleixner wrote: > > On Sun, 23 Nov 2014, Chris Mason wrote: > > > On Sun, Nov 23, 2014 at 11:32 AM, Borislav Petkov wrote: > > > > On Sun, Nov 23, 2014 at 11:16:51AM -0500, Chris Mason wrote: > > > > > It must

Re: [PATCH] ipc,sem block sem_lock on sma->lock during sma initialization

2014-11-23 Thread Davidlohr Bueso
On Sun, 2014-11-23 at 16:03 -0500, Rik van Riel wrote: > On 11/23/2014 01:23 PM, Manfred Spraul wrote: > > Hi Rik, > > > > On 11/21/2014 08:52 PM, Rik van Riel wrote: > >> When manipulating just one semaphore with semop, sem_lock only > >> takes that single semaphore's lock. This creates a

Re: New crashes walking proc with Saturday's git

2014-11-23 Thread Chris Mason
On Sun, Nov 23, 2014 at 4:11 PM, Chris Mason wrote: On Sun, Nov 23, 2014 at 4:05 PM, Thomas Gleixner wrote: On Sun, 23 Nov 2014, Chris Mason wrote: On Sun, Nov 23, 2014 at 11:32 AM, Borislav Petkov wrote: > On Sun, Nov 23, 2014 at 11:16:51AM -0500, Chris Mason wrote: > > It must be:

Re: New crashes walking proc with Saturday's git

2014-11-23 Thread Chris Mason
On Sun, Nov 23, 2014 at 4:05 PM, Thomas Gleixner wrote: On Sun, 23 Nov 2014, Chris Mason wrote: On Sun, Nov 23, 2014 at 11:32 AM, Borislav Petkov wrote: > On Sun, Nov 23, 2014 at 11:16:51AM -0500, Chris Mason wrote: > > It must be: > > > > commit

Re: New crashes walking proc with Saturday's git

2014-11-23 Thread Thomas Gleixner
On Sun, 23 Nov 2014, Chris Mason wrote: > On Sun, Nov 23, 2014 at 11:32 AM, Borislav Petkov wrote: > > On Sun, Nov 23, 2014 at 11:16:51AM -0500, Chris Mason wrote: > > > It must be: > > > > > > commit 6e998916dfe327e785e7c2447959b2c1a3ea4930 > > > Author: Stanislaw Gruszka > > > Date: Wed

Re: [PATCH] ipc,sem block sem_lock on sma->lock during sma initialization

2014-11-23 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/23/2014 01:23 PM, Manfred Spraul wrote: > Hi Rik, > > On 11/21/2014 08:52 PM, Rik van Riel wrote: >> When manipulating just one semaphore with semop, sem_lock only >> takes that single semaphore's lock. This creates a problem during >>

Re: [PATCH v3] x86/mce: Try printing all machine check banks known before panic

2014-11-23 Thread Borislav Petkov
On Fri, Nov 21, 2014 at 09:59:49PM +, Luck, Tony wrote: > > Oh, cpu errata. So this would mean that we can't even rely on the > > contents of the MCA banks, can we? > > > > In any case, is any of the information in the MCA banks in such cases > > even usable then? Because if not, we're

[PATCH] staging: lustre: Fix sparse warnings for lnet/lnet/router.c

2014-11-23 Thread Giedrius Statkevicius
Fix the following sparse errors: drivers/staging/lustre/lnet/lnet/router.c:756:1: warning: symbol 'lnet_wait_known_routerstate' was not declared. Should it be static? drivers/staging/lustre/lnet/lnet/router.c:788:1: warning: symbol 'lnet_update_ni_status_locked' was not declared. Should it be

Re: [4/5] i2c: davinci: use bus recovery infrastructure

2014-11-23 Thread Uwe Kleine-König
Hello Grygorii, On Fri, Nov 21, 2014 at 09:33:22PM +0200, Grygorii Strashko wrote: > On 11/21/2014 09:07 PM, Uwe Kleine-König wrote: > > On Thu, Nov 20, 2014 at 12:03:07PM +0200, Grygorii Strashko wrote: > > Just another general comment about the driver that doesn't influence the > > correctness

Re: [2/5] i2c: davinci: query STP always when NACK is received

2014-11-23 Thread Uwe Kleine-König
Hello Grygorii, On Fri, Nov 21, 2014 at 05:33:37PM +0200, Grygorii Strashko wrote: > On 11/21/2014 03:10 PM, Uwe Kleine-König wrote: > > On Fri, Nov 21, 2014 at 02:48:57PM +0200, Grygorii Strashko wrote: > >> On 11/21/2014 12:19 AM, Uwe Kleine-König wrote: > diff --git

Re: [PATCH net-net 0/4] Increase the limit of tuntap queues

2014-11-23 Thread Michael S. Tsirkin
On Sun, Nov 23, 2014 at 01:43:23PM -0500, David Miller wrote: > From: "Michael S. Tsirkin" > Date: Sun, 23 Nov 2014 12:46:23 +0200 > > > At the moment attaching/detaching queues is an unpriveledged operation. > > > > Shouldn't we worry that an application can cause large > > allocations, and

Re: [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-23 Thread Pieter Smith
On Sun, Nov 23, 2014 at 11:43:26AM -0800, Josh Triplett wrote: > On Sun, Nov 23, 2014 at 01:46:23PM -0500, David Miller wrote: > > Truly removing sendfile/sendpage means that you can't even compile NFS > > into the tree. > > If you mean the in-kernel nfsd (CONFIG_NFSD), that already has a large >

Re: [PATCH 1/1] scripts: add a graph generator based on checkpatch reports

2014-11-23 Thread Joe Perches
On Sat, 2014-11-22 at 21:56 +0100, Fabian Frederick wrote: > This script generates a graph based on errors/warnings/checks detected > by checkpatch -f recursively on each files of a directory. > Results are grouped by subfolders and pushed in gnuplot datasets. Why is this useful? Ingo's badly

Re: [PATCH 2/3] i2c: slave-eeprom: add eeprom simulator driver

2014-11-23 Thread Uwe Kleine-König
Hello Wolfram, On Sat, Nov 22, 2014 at 07:26:30PM +0100, Wolfram Sang wrote: > > > this mail is thematically more a reply to patch 1 and maybe just serves > > my understanding of the slave support. > > Sure. This shows how badly needed the documentation is :) > > ... > > > + break; > >

Re: [PATCH 1/3] PCI/MSI: Initial hook for archs to declare multivector MSI support

2014-11-23 Thread Thomas Gleixner
On Fri, 21 Nov 2014, Alex Williamson wrote: > For the most part multivector MSI is not supported and drivers and > hardware wanting multiple vectors opt for MSI-X instead. It seems > though that having the ability to query the arch/platform code to > determine whether allocating multiple MSI

Re: [PATCH] x86: Intel Cache Allocation Technology support

2014-11-23 Thread Thomas Gleixner
On Fri, 21 Nov 2014, Vikas Shivappa wrote: > On Fri, 21 Nov 2014, Thomas Gleixner wrote: > > On Wed, 19 Nov 2014, Vikas Shivappa wrote: > > > + rdmsr(IA32_PQR_ASSOC, l, h); > > > > Why on earth do we want to read an MSR on every context switch? What's > > wrong with having > > > >

Re: [PATCH]: cross-compiling x86_64 kernel on i386 user-space fails

2014-11-23 Thread Borislav Petkov
On Sun, Nov 23, 2014 at 08:27:24PM +0100, Thomas Gleixner wrote: > While that works, this wants to be: > > +RUN_SIZE = $(shell $(OBJDUMP) -h vmlinux | \ Ah, true: $ git grep OBJDUMP Makefile Makefile:363:OBJDUMP= $(CROSS_COMPILE)objdump Makefile:420:export CPP AR NM STRIP OBJCOPY

Re: [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-23 Thread Josh Triplett
On Sun, Nov 23, 2014 at 01:46:23PM -0500, David Miller wrote: > Truly removing sendfile/sendpage means that you can't even compile NFS > into the tree. If you mean the in-kernel nfsd (CONFIG_NFSD), that already has a large stack of "select" and "depends on", both directly and indirectly; adding a

Re: [PATCH 4/6] solos-pci: fix error return code

2014-11-23 Thread David Miller
From: Julia Lawall Date: Sat, 22 Nov 2014 15:39:17 +0100 > From: Julia Lawall > > Return a negative error code on failure. > > A simplified version of the semantic match that finds this problem is as > follows: (http://coccinelle.lip6.fr/) ... > Signed-off-by: Julia Lawall Applied, thanks

Re: [PATCH] x86: Intel Cache Allocation Technology support

2014-11-23 Thread Thomas Gleixner
On Sun, 23 Nov 2014, Matt Fleming wrote: > Something like this? > > first_bit = find_next_bit(map, nr_bits, -1); > zero_bit = find_next_zero_bit(map, nr_bits, first_bit); > > if (find_next_bit(map, nr_bits, zero_bit) < nr_bits) > return -EINVAL; /* non-contiguous

Re: [PATCH]: cross-compiling x86_64 kernel on i386 user-space fails

2014-11-23 Thread Thomas Gleixner
On Sat, 22 Nov 2014, Borislav Petkov wrote: > On Sat, Nov 22, 2014 at 09:51:10AM +, Chris Clayton wrote: > > Hi, > > Yeah, next time make sure you actually CC people :-) > > I've added them to CC now. > > > Commit e6023367d779060fddc9a52d1f474085b2b36298 broke building an x86_64 > >

Re: [PATCH] x86: Intel Cache Allocation Technology support

2014-11-23 Thread Matt Fleming
On Fri, 21 Nov, at 03:19:52PM, Thomas Gleixner wrote: > > + barrier(); > > + cqe_genable = true; > > What's the exact point of that barrier? Yes, this definitely needs documenting. Vikas? > > + > > +/* > > + * Tests if only contiguous bits are set. > > + */ > > + > >

Re: [PATCH ] drivers/md: use proper rcu accessor

2014-11-23 Thread Mike Snitzer
On Sun, Nov 23 2014 at 12:31pm -0500, Eric Dumazet wrote: > On Sun, 2014-11-23 at 11:53 -0500, Mike Snitzer wrote: > > On Sun, Nov 23, 2014 at 11:40 AM, Eric Dumazet > > wrote: > > > From: Eric Dumazet > > > > > > rcu_dereference() should be used in sections protected by rcu_read_lock. > > >

Re: [PATCH 6/9] sound/pci/ctxfi/ctatc.c: fix error return code

2014-11-23 Thread Julia Lawall
On Sun, 23 Nov 2014, Sudip Mukherjee wrote: > On Sun, Nov 23, 2014 at 01:48:06PM +0100, Julia Lawall wrote: > > From: Julia Lawall > > > > Initialize err before returning on failure, as done elsewhere in the > > function. > > > > > Signed-off-by: Julia Lawall > > > > --- > >

Re: thunderbolt: Deletion of unnecessary checks before the function call "ring_free"

2014-11-23 Thread Joe Perches
On Sun, 2014-11-23 at 20:03 +0100, SF Markus Elfring wrote: > > Why not just make the static source code analysis aware of the problem? > > This is also possible, of course. > > > > You can treat static functions differently that non-static ones. > > I have added this detail to my ideas around

Re: [RFC] proc interface to show file page cache usage details

2014-11-23 Thread Vladimir Shebordaev
On Sun, 2014-11-23 at 14:51 +0400, Vladimir Shebordaev wrote: > Hi, > > I would like to suggest an interface to list inodes that currently > occupy page cache in human readable form. > > A piece of code below creates a dedicated proc entry, namely, > /proc/kpagecache. Upon read request it

Hierarchical irqdomains - Status update

2014-11-23 Thread Thomas Gleixner
Folks, I've rebased the hierarchical irqdomain code on top of Bjorns msi_controller rework. Changes versus the previous version: - Bjorns new pci/mci branch. See also: http://lkml.kernel.org/r/20141121172018.ga6...@google.com Thanks Bjorn for fixing that just before your

Re: thunderbolt: Deletion of unnecessary checks before the function call "ring_free"

2014-11-23 Thread SF Markus Elfring
> Why not just make the static source code analysis aware of the problem? This is also possible, of course. > You can treat static functions differently that non-static ones. I have added this detail to my ideas around the next fine-tuning for the published semantic patch approach. > There

Re: [PATCH] ARM: dts: meson: enable Ethernet controller

2014-11-23 Thread Carlo Caione
On Sun, Nov 23, 2014 at 5:08 PM, Beniamino Galvani wrote: > Add a node for the Ethernet controller to Meson DTS file and > enable it on the Geniatech ATV1200 board. > > Signed-off-by: Beniamino Galvani > --- > arch/arm/boot/dts/meson.dtsi | 11 +++ >

Re: [PATCH 1/2] staging: lustre: lnet: lnet: do not initialise statics to 0 or NULL

2014-11-23 Thread Greg KH
On Mon, Nov 24, 2014 at 12:15:21AM +0530, Balavasu kuppusammyprathaban wrote: > This patch fixes the checkpatch.pl issue > Error: do not initialise statics to 0 or NULL > > Signed-off-by: Balavasu You seem to have ignored everything I said in my last response to your previous submission, which

Re: [PATCH 2/3] i2c: slave-eeprom: add eeprom simulator driver

2014-11-23 Thread Uwe Kleine-König
Hallo Wolfram, On Sat, Nov 22, 2014 at 07:14:06PM +0100, Wolfram Sang wrote: > > > > + case I2C_SLAVE_REQ_READ_END: > > > > + eeprom->buffer_idx++; > > > You don't check here for buffer_idx >= ARRAY_SIZE(buffer)? > > > Ditto in the I2C_SLAVE_REQ_WRITE_END case. > > I just

[PATCH 2/2] staging: lustre: lnet: lnet: trailing statements should be on next line

2014-11-23 Thread Balavasu
This patch fixes the checkpatch.pl issue Error: trailing statements should be on next line Signed-off-by: Balavasu --- drivers/staging/lustre/lnet/lnet/router.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/router.c

Re: [PATCH 0/6] kernel tinification: optionally compile out splice family of syscalls (splice, vmsplice, tee and sendfile)

2014-11-23 Thread David Miller
Truly removing sendfile/sendpage means that you can't even compile NFS into the tree. I cannot take this patch series seriously, sorry. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH 1/2] staging: lustre: lnet: lnet: do not initialise statics to 0 or NULL

2014-11-23 Thread Balavasu kuppusammyprathaban
This patch fixes the checkpatch.pl issue Error: do not initialise statics to 0 or NULL Signed-off-by: Balavasu --- drivers/staging/lustre/lnet/lnet/router.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/router.c

[PATCH 2/2] staging: android: ion: One function call less in ion_buffer_create() after error detection

2014-11-23 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 23 Nov 2014 19:12:29 +0100 The jump label "err1" was used by the ion_buffer_create() function in case of a memory allocation failure just to pass a null pointer to a vfree() function call by a data structure element. This implementation detail could be improved by

Re: [PATCH net-net 0/4] Increase the limit of tuntap queues

2014-11-23 Thread David Miller
From: "Michael S. Tsirkin" Date: Sun, 23 Nov 2014 12:46:23 +0200 > At the moment attaching/detaching queues is an unpriveledged operation. > > Shouldn't we worry that an application can cause large > allocations, and provide a way to limit these? > > David, could you comment on this please? I

[PATCH v3 0/8] KVM-VFIO IRQ forward control

2014-11-23 Thread Eric Auger
This series proposes an integration of "ARM: Forwarding physical interrupts to a guest VM" (http://lwn.net/Articles/603514/) in KVM. It enables to transform a VFIO platform driver IRQ into a forwarded IRQ. When a physical IRQ is forwarded (to a guest), the host does not deactivates this latter.

[PATCH v3 1/8] KVM: arm: Enable the KVM-VFIO device

2014-11-23 Thread Eric Auger
From: Kim Phillips Used by KVM-enabled VFIO-based device passthrough support in QEMU. Signed-off-by: Kim Phillips --- arch/arm/kvm/Kconfig | 1 + arch/arm/kvm/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig index

[PATCH v3 3/8] VFIO: platform: forwarded state tested when selecting IRQ handler

2014-11-23 Thread Eric Auger
In case the IRQ is forwarded, the VFIO platform IRQ handler does not need to disable the IRQ anymore. When setting the IRQ handler we now also test the forwarded state. In case the IRQ is forwarded we select the edge handler (no automaske). Signed-off-by: Eric Auger --- v2 -> v3: - forwarded

Re: net: Hyper-V: Deletion of an unnecessary check before the function call "vfree"

2014-11-23 Thread David Miller
From: SF Markus Elfring Date: Sun, 23 Nov 2014 08:18:31 +0100 >> Whereas if you learn how to base your changes cleanly on the correct >> base now, all of your future submissions will go quickly and smoothly >> into my tree. > > My reluctance to work with more Linux repositories will evolve >

[PATCH 1/2] staging: android: ion: Deletion of unnecessary checks before two function calls

2014-11-23 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 23 Nov 2014 18:48:15 +0100 The functions ion_heap_destroy() and vfree() perform also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

<    1   2   3   4   5   6   7   >