Re: [PATCH v3] mm: add mremap flag for preserving the old mapping

2014-09-29 Thread Andy Lutomirski
On Mon, Sep 29, 2014 at 9:55 PM, Daniel Micay wrote: > This introduces the MREMAP_RETAIN flag for preserving the source mapping > when MREMAP_MAYMOVE moves the pages to a new destination. Accesses to > the source location will fault and cause fresh pages to be mapped in. > > For consistency, the

Re: [PATCH 29/38] Introduce dev_printk_string() and dev_printk_header()

2014-09-29 Thread Hannes Reinecke
On 09/29/2014 06:58 PM, Greg Kroah-Hartman wrote: On Mon, Sep 29, 2014 at 01:58:58PM +0200, Hannes Reinecke wrote: Introducing dev_printk_string() and dev_printk_header() to allow using an external buffer for printing via dev_printk(). Cc: Greg Kroah-Hartman Cc: Steven Rostedt Cc: LKML

Re: checkpatch: CHECK: No space is necessary after a cast

2014-09-29 Thread Kalle Valo
Joe Perches writes: > On Mon, 2014-09-29 at 14:49 +0300, Kalle Valo wrote: >> Hi Joe, >> >> I have a problem with checkpatch. On ath10k we have this function: >> >> static inline struct ath10k_skb_cb *ATH10K_SKB_CB(struct sk_buff *skb) >> { >> BUILD_BUG_ON(sizeof(struct ath10k_skb_cb) >

Re: [PATCH v2 4/6] drivers: uio: Add X-Gene QMTM UIO driver

2014-09-29 Thread Guenter Roeck
On Tue, Sep 30, 2014 at 09:56:07AM +0530, Ankit Jindal wrote: > The Applied Micro X-Gene SOC has on-chip QMTM (Queue manager > and Traffic manager) which is hardware based Queue or Ring > manager. This QMTM device can be used in conjunction with > other devices such as DMA Engine, Ethernet,

Re: [PATCH] s390: remove unused Kconfig params

2014-09-29 Thread Michael Opdenacker
Hi Heiko, On 09/27/2014 09:57 AM, Heiko Carstens wrote: > On Sat, Sep 27, 2014 at 08:25:30AM +0200, Michael Opdenacker wrote: >> Remove the below Kconfig parameters, which are no longer >> used anywhere in the source code and Makefiles: >> >> HAVE_MARCH_Z900_FEATURES >> HAVE_MARCH_Z990_FEATURES

Re: [PATCH net 1/1 V2] hyperv: Fix a bug in netvsc_start_xmit()

2014-09-29 Thread David Miller
From: "K. Y. Srinivasan" Date: Sun, 28 Sep 2014 22:16:43 -0700 > After the packet is successfully sent, we should not touch the skb > as it may have been freed. This patch is based on the work done by > Long Li . > > In this version of the patch I have fixed issues pointed out by David. >

Re: [PATCH 2/4] ARM: DT: apq8064: Add usb host support.

2014-09-29 Thread Bjorn Andersson
On Mon 29 Sep 02:15 PDT 2014, Srinivas Kandagatla wrote: > This patch adds device tree nodes to support two usb hosts on APQ8064 > SOC. > Sorry for not looking at the entire series before answering patch 1. I still think you should add all the regulators in the first patch anyways. > +++

Re: [PATCH 1/4] ARM: DT: apq8064: add rpm support

2014-09-29 Thread Bjorn Andersson
On Mon 29 Sep 02:14 PDT 2014, Srinivas Kandagatla wrote: > This patch adds rpm node to apq8064 dt as rpm would be used by other > devices for regulator support. > > Signed-off-by: Srinivas Kandagatla > --- > arch/arm/boot/dts/qcom-apq8064.dtsi | 19 +++ > 1 file changed, 19

RE: [PATCH] regmap: fix possible ZERO_SIZE_PTR pointer dereferencing error.

2014-09-29 Thread li.xi...@freescale.com
Hi, > > > diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c > > index 455a877..3d93e38 100644 > > --- a/drivers/base/regmap/regmap.c > > +++ b/drivers/base/regmap/regmap.c > > @@ -1716,6 +1716,9 @@ out: > > Whatever you're using to generate the patches isn't annotating

[PATCH v3 1/2] clocksource: Update to the newer memory functions.

2014-09-29 Thread Xiubo Li
Use ioread{16,32} instead of read{w,l}_relaxed. For read{w,l}_relaxed accessor, if one arch has its own defination, then used it. Or will use the generic one, which will be read as LE endian as default. For some ARCHes, such PowerPC, if using the clocksource mmio, the read{w,l}_relaxed will

[PATCH v3 2/2] clocksource: Add BE APIs support for clocksource counter reading.

2014-09-29 Thread Xiubo Li
Signed-off-by: Xiubo Li --- drivers/clocksource/mmio.c | 20 include/linux/clocksource.h | 4 2 files changed, 24 insertions(+) diff --git a/drivers/clocksource/mmio.c b/drivers/clocksource/mmio.c index d3cbf70..d35a407 100644 --- a/drivers/clocksource/mmio.c +++

[PATCH v3 0/2] clocksource: Add BE APIs support.

2014-09-29 Thread Xiubo Li
Change in V3: - Provide a separate patch for using newer memory accessors. Change in V2: - Using ioread{16,32}[be]() instead of readl_relaxed(). - Add clocksource_mmio_readX_Y_be() supports only. Xiubo Li (2): clocksource: Update to the newer memory functions. clocksource: Add BE APIs

Re: [PULL for 3.18] overlay filesystem v24

2014-09-29 Thread J. R. Okajima
David Howells: > Miklos Szeredi wrote: > > > I'd like to propose overlayfs for inclusion into 3.18. > > > > Al, would you mind giving it a review? > > > > Git tree is here: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git > > overlayfs.current > > Tested-by: David

Re: [PATCH 1/4] ARM: DT: apq8064: add rpm support

2014-09-29 Thread Bjorn Andersson
On Mon 29 Sep 15:17 PDT 2014, Stephen Boyd wrote: > On 09/29/14 02:14, Srinivas Kandagatla wrote: > > @@ -246,6 +247,24 @@ > > #reset-cells = <1>; > > }; > > > > + apcs: syscon@2011000 { > > + compatible = "syscon"; > > +

Re: [PATCH] Fix getsockopt(SO_PEERNAME) buffer size against potential future buffer overflow

2014-09-29 Thread David Miller
From: Samuel Thibault Date: Sun, 28 Sep 2014 15:55:45 +0200 > In net/core/sock.c's sock_getsockopt, the address buffer size is > hardcoded to 128. It happens that sizeof(struct sockaddr_storage) is > indeed 128, but that is just luck and would probably not get updated > whenever sockaddr_storage

Re: [PATCH 3/3] drivers/rtc/rtc-snvs: Add clock support

2014-09-29 Thread Sanchayan Maity
>> This patch adds clock enable and disable support >> for the SNVS peripheral which is required by the >> SNVS RTC. >> >> Signed-off-by: Sanchayan Maity >> --- >> drivers/rtc/rtc-snvs.c | 48 >> +++- >> 1 file changed, 39 insertions(+), 9

[PATCH v3] mm: add mremap flag for preserving the old mapping

2014-09-29 Thread Daniel Micay
This introduces the MREMAP_RETAIN flag for preserving the source mapping when MREMAP_MAYMOVE moves the pages to a new destination. Accesses to the source location will fault and cause fresh pages to be mapped in. For consistency, the old_len >= new_len case could decommit the pages instead of

Re: [PATCH v3 3/5] mm/hugetlb: fix getting refcount 0 page in hugetlb_fault()

2014-09-29 Thread Hugh Dickins
On Mon, 15 Sep 2014, Naoya Horiguchi wrote: > When running the test which causes the race as shown in the previous patch, > we can hit the BUG "get_page() on refcount 0 page" in hugetlb_fault(). Two minor comments... > @@ -3192,22 +3208,19 @@ int hugetlb_fault(struct mm_struct *mm, struct >

[PATCH 4/4] Documentation: Add documentation for the PCI switch PEX8xxx I2C driver

2014-09-29 Thread Rajat Jain
Signed-off-by: Rajat Jain Signed-off-by: Rajat Jain Signed-off-by: Guenter Roeck --- Documentation/PCI/pex8xxx_i2c.txt | 134 + 1 file changed, 134 insertions(+) create mode 100644 Documentation/PCI/pex8xxx_i2c.txt diff --git

[PATCH 2/4] pci/pex8xxx: Add sysfs interface for userspace access.

2014-09-29 Thread Rajat Jain
Add the sysfs ABI for the I2C interface the PLX pex8xxx PCIe switch. The ABI is documented, and a patch to "Documentation" accompanies this patch. Signed-off-by: Rajat Jain Signed-off-by: Rajat Jain Signed-off-by: Guenter Roeck --- drivers/pci/Kconfig |4 +-

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

2014-09-29 Thread Stephen Rothwell
Hi Sebastian, Today's linux-next merge of the battery tree got conflicts in drivers/power/reset/Kconfig and drivers/power/reset/Makefile between commit 0e545f57b708 ("power: reset: driver for the Versatile syscon reboot") from the arm-soc tree and commit f0745f3696e8 ("power: reset: Add restart

[PATCH 3/4] MAINTAINERS: Add new device driver entry for PEX pex8xxx

2014-09-29 Thread Rajat Jain
Signed-off-by: Rajat Jain Signed-off-by: Rajat Jain Signed-off-by: Guenter Roeck --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 3705430..0ef7a92 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7003,6 +7003,13 @@ S: Maintained

[PATCH 1/4] pci: Add I2C driver for the PLX PEX8xxx PCIe switch

2014-09-29 Thread Rajat Jain
Add a driver that allows talking to the I2C interface of the PLX PEX8xxx family of PCI Express switches. More details about the need and use cases have been described in the documentation being added as part of this patchset. Currently the devices supported and tested with this driver are:

[PATCH 0/4] Driver for talking to PLX PEX8xxx PCIe switch over I2C

2014-09-29 Thread Rajat Jain
Most of the PLX PCI Express switches (and also switches from other vendors such IDT) provide an I2C based secondary interface to access and program the switch. This can be used to program the switch in situations where the PCIe interface may not be suitable, or even available. (For instance, we

Re: [PATCH 02/15] powerpc/cell: Move data segment faulting code out of cell platform

2014-09-29 Thread Michael Neuling
On Mon, 2014-09-29 at 14:00 +0530, Aneesh Kumar K.V wrote: > Michael Neuling writes: > > > From: Ian Munsie > > > > __spu_trap_data_seg() currently contains code to determine the VSID and ESID > > required for a particular EA and mm struct. > > > > This code is generically useful for other

Re: pipe/page fault oddness.

2014-09-29 Thread Al Viro
On Mon, Sep 29, 2014 at 09:27:09PM -0700, Linus Torvalds wrote: > On Mon, Sep 29, 2014 at 8:33 PM, Dave Jones wrote: > > > > Looking at the dump, there's only one running trinity child, > > with all the others blocking on it. > > > > trinity-c49 R running task12856 19464 7633

[PATCH v4] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2014-09-29 Thread Bjorn Andersson
From: Kumar Gala Add driver for Qualcomm Hardware Mutex block that exists on newer Qualcomm SoCs. Cc: Jeffrey Hugo Cc: Eric Holmberg Cc: Courtney Cavin Signed-off-by: Kumar Gala [bjorn: added pm_runtime calls, from Courtney, added sfpb-mutex compatible, updated DT binding

Re: [resend rfc v4]pwm: add BCM2835 PWM driver

2014-09-29 Thread Stephen Warren
On 09/29/2014 08:40 AM, Bart Tanghe wrote: > Add pwm driver for Broadcom BCM2835 processor (Raspberry Pi) > Signed-off-by: Bart Tanghe There needs to be a blank line between the description and the tags. > diff --git a/Documentation/devicetree/bindings/pwm/pwm-bcm2835.txt >

Re: [PATCH v3 2/5] mm/hugetlb: take page table lock in follow_huge_pmd()

2014-09-29 Thread Hugh Dickins
On Mon, 15 Sep 2014, Naoya Horiguchi wrote: > We have a race condition between move_pages() and freeing hugepages, I've been looking through these 5 today, and they're much better now, thank you. But a new concern below, and a minor correction to 3/5. > --- mmotm-2014-09-09-14-42.orig/mm/gup.c

[PATCH v2 2/6] uio: Add new UIO_MEM_PHYS_CACHE type for mem regions

2014-09-29 Thread Ankit Jindal
Currently, three types of mem regions are supported: UIO_MEM_PHYS, UIO_MEM_LOGICAL and UIO_MEM_VIRTUAL. Among these UIO_MEM_PHYS helps UIO driver export physcial memory to user space as non-cacheable user memory. Typcially memory-mapped registers of a device are exported to user space as

Re: pipe/page fault oddness.

2014-09-29 Thread Dave Jones
On Mon, Sep 29, 2014 at 09:27:09PM -0700, Linus Torvalds wrote: > On Mon, Sep 29, 2014 at 8:33 PM, Dave Jones wrote: > > > > Looking at the dump, there's only one running trinity child, > > with all the others blocking on it. > > > > trinity-c49 R running task12856 19464 7633

Re: [PATCH v2] thermal: Add QPNP PMIC temperature alarm driver

2014-09-29 Thread Kiran Padwal
On Monday 29 September 2014 07:24 PM, Ivan T. Ivanov wrote: > On Fri, 2014-09-26 at 16:51 +0530, Kiran Padwal wrote: >> On Thursday 25 September 2014 07:00 PM, Ivan T. Ivanov wrote: >>> Add support for the temperature alarm peripheral found inside >>> Qualcomm plug-and-play (QPNP) PMIC chips. The

[PATCH v2 4/6] drivers: uio: Add X-Gene QMTM UIO driver

2014-09-29 Thread Ankit Jindal
The Applied Micro X-Gene SOC has on-chip QMTM (Queue manager and Traffic manager) which is hardware based Queue or Ring manager. This QMTM device can be used in conjunction with other devices such as DMA Engine, Ethernet, Security Engine, etc to assign work based on queues or rings. This patch

[PATCH v2 5/6] Documentation: dt-bindings: Add binding info for X-Gene QMTM UIO driver

2014-09-29 Thread Ankit Jindal
This patch adds device tree binding documentation for X-Gene QMTM UIO driver. Signed-off-by: Ankit Jindal Signed-off-by: Tushar Jagad --- .../devicetree/bindings/uio/uio_xgene_qmtm.txt | 53 1 file changed, 53 insertions(+) create mode 100644

[PATCH v2 1/6] uio: code style cleanup

2014-09-29 Thread Ankit Jindal
This patch fixes the indentation of switch-case block in uio driver. Signed-off-by: Ankit Jindal Signed-off-by: Tushar Jagad --- drivers/uio/uio.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index a673e5b..97e6444

[PATCH v2 6/6] MAINTAINERS: Add entry for APM X-Gene QMTM UIO driver

2014-09-29 Thread Ankit Jindal
Add entry to maintainer list for APM X-Gene QMTM UIO driver. Signed-off-by: Ankit Jindal Signed-off-by: Tushar Jagad --- MAINTAINERS |7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5e7866a..138663f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH v2 0/6] UIO driver for APM X-Gene QMTM

2014-09-29 Thread Ankit Jindal
This patchset enables user space access to APM X-Gene QMTM using UIO framework. The patchset also introduces new type UIO_MEM_PHYS_CACHE for mem regions because APM X-Gene QMTM device supports cache coherency with CPU caches. Changes since v1: - Factor-out formating related change in uio/uio.c

[PATCH v2 3/6] Documentation: Update documentation for UIO_MEM_PHYS_CACHE

2014-09-29 Thread Ankit Jindal
This patch updates UIO documentation for new mem region type UIO_MEM_PHYS_CACHE. Signed-off-by: Ankit Jindal Signed-off-by: Tushar Jagad --- Documentation/DocBook/uio-howto.tmpl |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/DocBook/uio-howto.tmpl

Re: [PATCH 0/5] ARM: move #include into cacheflush.h

2014-09-29 Thread Nicolas Pitre
On Mon, 29 Sep 2014, Brian Norris wrote: > There are several places where an explicit include of is needed > just because cacheflush.h uses one of its macros in v7_exit_coherency_flush(). > Let's put the include in the proper header. > > These obviously have some dependencies, so I'd focus on:

Re: pipe/page fault oddness.

2014-09-29 Thread Linus Torvalds
On Mon, Sep 29, 2014 at 8:33 PM, Dave Jones wrote: > > Looking at the dump, there's only one running trinity child, > with all the others blocking on it. > > trinity-c49 R running task12856 19464 7633 0x0004 > 8800a09bf960 0002 8800a09bf9f8 88021965 >

[PATCH v4 1/3] cap11xx: make driver generic for variant support

2014-09-29 Thread Matt Ranostay
cap1106 driver can support much more one device make the driver generic for support of similiar parts. Signed-off-by: Matt Ranostay --- .../bindings/input/{cap1106.txt => cap11xx.txt}| 5 +- drivers/input/keyboard/Kconfig | 8 +- drivers/input/keyboard/Makefile

[PATCH v4 0/3] cap1106: add support for cap11xx variants

2014-09-29 Thread Matt Ranostay
Changes from v3: * Resubmit with "git format-patch -M" to make file rename clear in cover letter Matt Ranostay (3): cap11xx: make driver generic for variant support cap11xx: Add support for various cap11xx devices cap11xx: support for irq-active-high option

[PATCH v4 2/3] cap11xx: Add support for various cap11xx devices

2014-09-29 Thread Matt Ranostay
Several other variants of the cap11xx device exists with a varying number of capacitance detection channels. Add support for creating the channels dynamically. Signed-off-by: Matt Ranostay --- .../devicetree/bindings/input/cap11xx.txt | 3 +- drivers/input/keyboard/cap11xx.c

[PATCH v4 3/3] cap11xx: support for irq-active-high option

2014-09-29 Thread Matt Ranostay
Some applications need to use the irq-active-high push-pull option. This allows it be enabled in the device tree child node. Signed-off-by: Matt Ranostay --- Documentation/devicetree/bindings/input/cap11xx.txt | 4 drivers/input/keyboard/cap11xx.c| 8 2 files

Re: [PATCH 1/1] perf/x86: Use KERN_INFO when checking PMU fails on virtual environment

2014-09-29 Thread Wei Huang
Hi Ingo, tglx and hpa, Any comment on this patch? Thanks. -Wei On 09/24/2014 10:55 PM, Wei Huang wrote: PMU checking can fail due to various reasons. On native machine, this is mostly caused by faulty hardware and it is reasonable to use KERN_ERR in reporting. However, when kernel is running

RE: [PATCH v6] mfd: syscon: Decouple syscon interface from platform devices

2014-09-29 Thread Pankaj Dubey
Hi, On Monday, September 29, 2014 9:38 PM, Heiko Stübner wrote, > Am Montag, 29. September 2014, 14:17:38 schrieb Pankaj Dubey: > > Currently a syscon entity can be only registered directly through a > > platform device that binds to a dedicated syscon driver. However in > > certain use cases it

[PATCH] cpufreq: update 'cpufreq_suspended' after stopping governors

2014-09-29 Thread Viresh Kumar
Commit 8e30444e1530 ("cpufreq: fix cpufreq suspend/resume for intel_pstate") introduced a bug where the governors wouldn't be stopped anymore for ->target{_index}() drivers during suspend. This happens because 'cpufreq_suspended' is updated before stopping the governors during suspend and due to

Re: [PATCH 0/5] fuse: handle release synchronously (v4)

2014-09-29 Thread Linus Torvalds
On Thu, Sep 25, 2014 at 5:05 AM, Maxim Patlasov wrote: > > There is a long-standing demand for synchronous behaviour of fuse_release: That's just complete bullshit. The fact is, release() is not synchronous. End of story. If you want to catch "close()" synchronously, you use flush(). The two

Re: [PATCH] clk: rockchip: rk3288: i2s_frac adds flag to set parent's rate

2014-09-29 Thread Jianqun
在 09/30/2014 11:38 AM, Kever Yang 写道: > Hi Jianqun, > > pls add linux-rockc...@lists.infradead.org next time. > OK, thanks > On 09/30/2014 11:12 AM, Jianqun wrote: >> The relation of i2s nodes as follows: >>i2s_src 0 059400 0 >>

Please backport commit 3812c8c8f39 to stable

2014-09-29 Thread Cong Wang
Hi, Johannes and Greg Please consider to backport the following commit to stable kernels < 3.12. commit 3812c8c8f3953921ef18544110dafc3505c1ac62 Author: Johannes Weiner Date: Thu Sep 12 15:13:44 2013 -0700 mm: memcg: do not trap chargers with full callstack on OOM It should solve some

Re: [PATCH 1/3] x86: Bugfix bit-rot in the calling of legacy_cache_size

2014-09-29 Thread Dave Jones
On Tue, Sep 30, 2014 at 04:11:48AM +0100, Bryan O'Donoghue wrote: > Make an update to identify_cpu to make an explicit call to default_init() > We want to do this since some processors that report vendor strings via > cpuid also want to run legacy_cache_size callbacks - which won't happen >

Re: [PATCH] clk: rockchip: rk3288: i2s_frac adds flag to set parent's rate

2014-09-29 Thread Kever Yang
Hi Jianqun, pls add linux-rockc...@lists.infradead.org next time. On 09/30/2014 11:12 AM, Jianqun wrote: The relation of i2s nodes as follows: i2s_src 0 059400 0 i2s_frac 0 011289600 0

pipe/page fault oddness.

2014-09-29 Thread Dave Jones
My fuzz tester ground to a halt, with many child processes blocked on pipe_lock. sysrq-t output: http://codemonkey.org.uk/junk/pipe-lock-wtf.txt Looking at the dump, there's only one running trinity child, with all the others blocking on it. trinity-c49 R running task12856 19464 7633

Re: linux-next: build failure after merge of the net-next tree

2014-09-29 Thread Stephen Rothwell
Hi all, On Tue, 30 Sep 2014 13:13:54 +1000 Stephen Rothwell wrote: > > Hi all, > > After merging the net-next tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > net/bridge/br_nf_core.c:77:1: error: expected identifier or '(' before '{' > token > { > ^ >

Re: [PATCH 0/5] fuse: handle release synchronously (v4)

2014-09-29 Thread Miklos Szeredi
On Fri, Sep 26, 2014 at 5:28 PM, Miklos Szeredi wrote: > [Adding CC's] > > On Thu, Sep 25, 2014 at 2:05 PM, Maxim Patlasov > wrote: > >> In short, the problem is that fuse_release (that's usually called on last >> user close(2)) sends FUSE_RELEASE to userspace and returns without waiting >> for

[PATCH] clk: rockchip: rk3288: i2s_frac adds flag to set parent's rate

2014-09-29 Thread Jianqun
The relation of i2s nodes as follows: i2s_src 0 059400 0 i2s_frac 0 011289600 0 i2s_pre 0 011289600 0 sclk_i2s00 0

linux-next: build failure after merge of the net-next tree

2014-09-29 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: net/bridge/br_nf_core.c:77:1: error: expected identifier or '(' before '{' token { ^ net/bridge/br_nf_core.c:88:12: error: redefinition of 'br_nf_core_init' int __init

[PATCH 1/3] x86: Bugfix bit-rot in the calling of legacy_cache_size

2014-09-29 Thread Bryan O'Donoghue
legacy_cache_size is used by certain processors to report the size of cache. Currently only X86_VENDOR_UNKNOWN could call default_init() => cpu_detect_cache_sizes() => legacy_cache_size() Make an update to identify_cpu to make an explicit call to default_init() We want to do this since some

[PATCH 0/3] Quark X1000 Cache/TLB reporting/fixes

2014-09-29 Thread Bryan O'Donoghue
First patch: legacy_cache_size is currently not reachable code from kernels compiled CONFIG_X86_32 despite most/all legacy_cache_size code being ifdef'd CONFIG_X86_32. Added to which for Intel, AMD and VIA processors that return a valid vendor string via cpuid and hook code into c_init and friends

[PATCH 2/3] x86: Quark: Update cache reporting, add Quark SoC X1000 string

2014-09-29 Thread Bryan O'Donoghue
Adds a path for legacy_cache_size to get a Quark SoC X1000 cache size Update init_intel to take account of PIII Tualatin and Quark X1000 reporting cache size via legacy_cache_size Add string to family/model structure for completeness and better output of /proc/cpuinfo Signed-off-by: Bryan

[PATCH 3/3] x86: Quark: Comment setup_arch for TLB/PGE bugfix

2014-09-29 Thread Bryan O'Donoghue
Quark X1000 requires CR3 to be rewritten to flush TLB entries irrespective of the PGE bits in CR4 or PTE.PGE Add a comment to setup_arch to indicate that the code load_cr3(swapper_pg_dir); __flush_tlb_all(); Will already have flushed the TLB @ the CR3 reload allowing us to skip over a potential

[PATCH V1] regulator: DA9211 : Fix a bug in update of mask bit

2014-09-29 Thread James Ban
This is a patch for fixing a bug about mask bit operation. Signed-off-by: James Ban --- This patch is relative to linux-next repository tag next-20140926. drivers/regulator/da9211-regulator.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/1 v2] driver:mtd:spi-nor: Add Micron quad I/O support

2014-09-29 Thread Marek Vasut
On Monday, September 29, 2014 at 02:30:04 AM, bpqw wrote: > >> For Micron spi norflash,you can enable Quad spi transfer by clear > >> EVCR(Enhanced Volatile Configuration Register) Quad I/O protocol bit. > > > >OK, this information is nice and all, but what does this patch do? I can't > >learn

[PATCH] toshiba_acpi: Adapt kbd_bl_timeout_store to the new kbd type

2014-09-29 Thread Azael Avalos
With the introduccion of the new keyboard backlight implementation, the *_timeout_store function is broken, as it only supports the first kbd_type. This patch adapt such function for the new kbd_type, as well as convert from using sscanf to kstrtoint. Signed-off-by: Azael Avalos ---

linux-next: manual merge of the net-next tree with the net tree

2014-09-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in net/netfilter/nfnetlink.c between commit cbb8125eb40b ("netfilter: nfnetlink: deliver netlink errors on batch completion") from the net tree and commit fc04733a1a71 ("netfilter: nfnetlink: use original skbuff when

linux-next: manual merge of the net-next tree with the net tree

2014-09-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in drivers/net/usb/r8152.c between commit 445f7f4d6262 ("r8152: fix the carrier off when autoresuming") from the net tree and commit b209af9981ee ("r8152: check code with checkpatch.pl") from the net-next tree. I fixed it up

[PATCH 1/1 v3] driver:mtd:spi-nor: Add Micron quad I/O support

2014-09-29 Thread beanhuo
For Micron spi norflash,enables or disables quad I/O protocol ,which controled by EVCR(Enhanced Volatile Configuration Register) Quad I/O protocol bit 7.When EVCR bit 7 is reset to 0, the spi norflash will operate in quad I/O following the next WRITE ENHANCED VOLATILE CONFIGURATION command.

[PATCH 1/2] sysfs - allow attributes to request write buffer be pre-allocated.

2014-09-29 Thread NeilBrown
md/raid allows metadata management to be performed in user-space. A various times, particularly on device failure, the metadata needs to be updated before further writes can be permitted. This means that the user-space program which updates metadata much not block on writeout, and so must not

[PATCH 2/2] sysfs/kernfs: make read requests on pre-alloc files use the buffer.

2014-09-29 Thread NeilBrown
To match the previous patch which used the pre-alloc buffer for writes, this patch causes reads to use the same buffer. This is not strictly necessary as the current seq_read() will allocate on first read, so user-space can trigger the required pre-alloc. But consistency is valuable. The read

[PATCH 0/2] Allow access to sysfs attributes without mem allocations.

2014-09-29 Thread NeilBrown
Hi Tejun, is this closer to what you would like? I do really need this functionality, but I honestly don't like this patch. The need to identify just which attributes need special care seems backwards to me. 1/ it is the process (which has called mlock etc) which needs special care,

[PATCH v2 1/3] toshiba_acpi: Rename hci_raw to tci_raw

2014-09-29 Thread Azael Avalos
The function name hci_raw was used before to reflect a raw (read/write) call to Toshiba's Hardware Configuration Interface (HCI), however, since the introduction of the System Configuration Interface (SCI), that "name" no longer applies. This patch changes the name of that function to tci_raw

Re: Removing shared subtrees?

2014-09-29 Thread Andy Lutomirski
On Mon, Sep 29, 2014 at 7:21 PM, Al Viro wrote: > On Mon, Sep 29, 2014 at 06:24:05PM -0700, Andy Lutomirski wrote: >> On Mon, Sep 29, 2014 at 6:14 PM, Al Viro wrote: >> > On Mon, Sep 29, 2014 at 05:36:27PM -0700, Andy Lutomirski wrote: >> > >> >> Ideally it would leave them around until the

[PATCH v2 2/3] toshiba_acpi: Unify return codes prefix from HCI/SCI to TOS

2014-09-29 Thread Azael Avalos
The return codes are split in between HCI/SCI prefixes, but they are shared (used) by both interfaces, mixing hci_read/write calls with SCI_* return codes, and sci_read/write calls with HCI_* ones. This patch changes the prefix of the return codes definitions, dropping the HCI/SCI naming and

[PATCH v2 0/3] Return codes cleanup

2014-09-29 Thread Azael Avalos
Up for review. This series of patches are a cleanup to the Toshiba configuration interface return codes (unification), since we are now using both the HCI and the SCI, as well as changing the returned type of the HCI/SCI read/write functions from acpi_status to u32, since the "status" was never

[PATCH v2 3/3] toshiba_acpi: Change HCI/SCI functions return code type

2014-09-29 Thread Azael Avalos
Currently the HCI/SCI read/write functions are returning the status of the ACPI call and also assigning the returned value of the HCI/SCI function, however, only the HCI/SCI status is being checked. This patch changes such functions, returning the value of the HCI/SCI function instead of the ACPI

Re: [torture] BUG: unable to handle kernel NULL pointer dereference at (null)

2014-09-29 Thread Fengguang Wu
On Fri, Sep 26, 2014 at 12:42:23AM -0700, Paul E. McKenney wrote: > On Thu, Sep 18, 2014 at 09:17:51PM +0800, Fengguang Wu wrote: > > Hi Paul, > > > > > > > > plymouth-upstart-bridge: ply-event-loop.c:497: ply_event_loop_new: > > > > > > Assertion `loop->epoll_fd >= 0' failed. > > > > > >

Re: [PATCH v1 5/5] driver-core: add driver asynchronous probe support

2014-09-29 Thread Luis R. Rodriguez
On Sun, Sep 28, 2014 at 07:07:24PM +0200, Tom Gundersen wrote: > On Fri, Sep 26, 2014 at 11:57 PM, Luis R. Rodriguez > wrote: > > From: "Luis R. Rodriguez" > > Systemd has a general timeout for all workers currently set to 180 > > seconds after which it will send a sigkill signal. Systemd now

Re: [PATCH v2] x86: Quark: Add if/else to setup_arch for Quark TLB bug

2014-09-29 Thread Bryan O'Donoghue
On 30/09/14 02:46, Ong, Boon Leong wrote: My view is that the CR3 load should have flushed the TLB in it's entirety. Ong Boong Leong said that a discussion he had which included HPA concluded with a flush of the TLB being required after the CR3 reload. The proposed patch was discussed in

Re: Removing shared subtrees?

2014-09-29 Thread Al Viro
On Mon, Sep 29, 2014 at 06:24:05PM -0700, Andy Lutomirski wrote: > On Mon, Sep 29, 2014 at 6:14 PM, Al Viro wrote: > > On Mon, Sep 29, 2014 at 05:36:27PM -0700, Andy Lutomirski wrote: > > > >> Ideally it would leave them around until the whole subtree had no > >> references, at which point /mnt

Re: [PATCH] umount.2: Correct the description of MNT_DETACH

2014-09-29 Thread Andy Lutomirski
On Mon, Sep 29, 2014 at 7:15 PM, Eric W. Biederman wrote: > Andy Lutomirski writes: > >> On Mon, Sep 29, 2014 at 6:04 PM, Eric W. Biederman >> wrote: >>> >>> I recently realized that I had been reasoning improperly about what >>> umount(MNT_DETACH) did based on an insufficient description in

Re: [PATCH] umount.2: Correct the description of MNT_DETACH

2014-09-29 Thread Eric W. Biederman
Andy Lutomirski writes: > On Mon, Sep 29, 2014 at 6:04 PM, Eric W. Biederman > wrote: >> >> I recently realized that I had been reasoning improperly about what >> umount(MNT_DETACH) did based on an insufficient description in >> the umount.2 man page, that matched my intuition but not the >>

RE: [PATCH v2] clocksource: Add BE APIs support for clocksource counter reading.

2014-09-29 Thread li.xi...@freescale.com
Hi, > Subject: RE: [PATCH v2] clocksource: Add BE APIs support for clocksource > counter reading. > > On Sun, 28 Sep 2014, li.xi...@freescale.com wrote: > > > Subject: Re: [PATCH v2] clocksource: Add BE APIs support for clocksource > > > counter reading. > > > > > > On Fri, 26 Sep 2014, Xiubo Li

Microsoft

2014-09-29 Thread Soroka A, Anna
Your-email-won-£1,000.000.00.From-Microsoft/Yahoo-Email-lottery-SEND-NAME,ADDRESS,TEL-NO:.to-barr.jenniferbr...@hotmail.com -- 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

Re: [PATCH] i2c: qup: Fix order of runtime pm initialization

2014-09-29 Thread Bjorn Andersson
On Mon 29 Sep 15:00 PDT 2014, Andy Gross wrote: > The runtime pm calls need to be done before populating the children via the > i2c_add_adapter call. If this is not done, a child can run into issues trying > to do i2c read/writes due to the pm_runtime_sync failing. > May I ask in what case

[PATCH net-next 1/2] bpf: add search pruning optimization to verifier

2014-09-29 Thread Alexei Starovoitov
consider C program represented in eBPF: int filter(int arg) { int a, b, c, *ptr; if (arg == 1) ptr = else if (arg == 2) ptr = else ptr = *ptr = 0; return 0; } eBPF verifier has to follow all possible paths through the program to recognize that

[PATCH net-next 2/2] bpf: add tests to verifier testsuite

2014-09-29 Thread Alexei Starovoitov
add 4 extra tests to cover jump verification better Signed-off-by: Alexei Starovoitov --- samples/bpf/test_verifier.c | 130 +++ 1 file changed, 130 insertions(+) diff --git a/samples/bpf/test_verifier.c b/samples/bpf/test_verifier.c index

[PATCH net-next 0/2] bpf: add search pruning optimization and tests

2014-09-29 Thread Alexei Starovoitov
Hi All, patch #1 commit log explains why eBPF verifier has to examine some instructions multiple times and describes the search pruning optimization that improves verification speed for branchy programs and allows more complex programs to be verified successfully. This patch completes the core

[PATCH 2/5] mm: constify dump_page and friends

2014-09-29 Thread Sasha Levin
Constify dump_page so that we could dump_page const pages, there is no functional change here. Signed-off-by: Sasha Levin --- include/linux/memcontrol.h | 8 include/linux/mm.h | 2 +- include/linux/mmdebug.h | 4 ++-- include/linux/page_cgroup.h | 4 ++-- mm/debug.c

[PATCH 4/5] mm: poison vm_area_struct

2014-09-29 Thread Sasha Levin
Add poisoning to vm_area_struct to catch corruption at either the beginning or the end of the struct. Signed-off-by: Sasha Levin --- fs/exec.c| 5 + include/linux/mm_types.h | 6 ++ include/linux/mmdebug.h | 6 ++ kernel/fork.c| 2 ++ mm/debug.c

[PATCH 5/5] mm: poison page struct

2014-09-29 Thread Sasha Levin
Add poisoning to page struct to catch corruption at either the beginning or the end of the struct. Signed-off-by: Sasha Levin --- include/linux/mm.h | 9 + include/linux/mm_types.h | 6 ++ include/linux/mmdebug.h| 6 ++ include/linux/page-flags.h | 24

[PATCH 3/5] mm: poison mm_struct

2014-09-29 Thread Sasha Levin
Add poisoning to mm_struct to catch corruption at either the beginning or the end of the struct. Signed-off-by: Sasha Levin --- include/linux/mm_types.h | 6 ++ include/linux/mmdebug.h | 8 kernel/fork.c| 11 +++ mm/debug.c | 7 +++

[PATCH 1/5] mm: add poisoning basics

2014-09-29 Thread Sasha Levin
Add poisining basics along with a config option to enable poisoning. Signed-off-by: Sasha Levin --- include/linux/poison.h | 6 ++ lib/Kconfig.debug | 9 + 2 files changed, 15 insertions(+) diff --git a/include/linux/poison.h b/include/linux/poison.h index 2110a81..db4d03e

[PATCH 0/5] mm: poison critical mm/ structs

2014-09-29 Thread Sasha Levin
Currently we're seeing a few issues which are unexplainable by looking at the data we see and are most likely caused by a memory corruption caused elsewhere. This is wasting time for folks who are trying to figure out an issue provided a stack trace that can't really point out the real issue.

Re: linux-next: build failure after merge of the arm-soc tree

2014-09-29 Thread Wei Xu
On 2014/9/30 8:12, Stephen Rothwell wrote: > Hi all, > > On Fri, 26 Sep 2014 11:55:39 +1000 Stephen Rothwell > wrote: >> >> After merging the arm-soc tree, today's linux-next build (arm >> multi_v7_defconfig) failed like this: >> >> Error: arch/arm/boot/dts/hisi-x5hd2.dtsi:374.22-23 syntax

RE: [PATCH v2] x86: Quark: Add if/else to setup_arch for Quark TLB bug

2014-09-29 Thread Ong, Boon Leong
> > My view is that the CR3 load should have flushed the TLB in it's entirety. > > Ong Boong Leong said that a discussion he had which included HPA concluded > with a flush of the TLB being required after the CR3 reload. The proposed patch was discussed in April and after much thought into

Re: [PATCH v2] bq27x00_battery: Add support to bq27742

2014-09-29 Thread Sebastian Reichel
Hi, On Mon, Sep 29, 2014 at 02:25:11PM -0700, Puthikorn Voravootivat wrote: > Add support to bq27742 in bq27x00 driver. bq27742 register > addresses are mostly mostly the same as bq27500 addresses > with minor differences. > > Signed-off-by: Puthikorn Voravootivat > Reviewed-by: Gwendal Grignou

Re: [RFC] clk: Make clk API return per-user struct clk instances

2014-09-29 Thread Stephen Boyd
On 09/29/14 11:17, Tomeu Vizoso wrote: > Also moves clock state to struct clk_core, but takes care to change as little > API as possible. > > struct clk_hw still has a pointer to a struct clk, which is the > implementation's per-user clk instance, for backwards compatibility. > > Signed-off-by:

[PATCH 2/5] ARM: mvebu: drop unnecessary include

2014-09-29 Thread Brian Norris
is only being included because of the implicit requirements of v7_exit_coherency_flush(). Now that the implicit include is provided for us, we can drop it from our explicit list. Signed-off-by: Brian Norris Cc: Jason Cooper Cc: Andrew Lunn Cc: Gregory Clement Cc: Sebastian Hesselbarth ---

[PATCH 3/5] ARM: rockchip: drop unnecessary include

2014-09-29 Thread Brian Norris
is only being included because of the implicit requirements of v7_exit_coherency_flush(). Now that the implicit include is provided for us, we can drop it from our explicit list. Signed-off-by: Brian Norris Cc: Heiko Stuebner Cc: linux-rockc...@lists.infradead.org ---

[PATCH 5/5] ARM: brcmstb: drop unnecessary include

2014-09-29 Thread Brian Norris
is only being included because of the implicit requirements of v7_exit_coherency_flush(). Now that the implicit include is provided for us, we can drop it from our explicit list. Signed-off-by: Brian Norris Cc: Marc Carino --- This is based on code queued for 3.18

  1   2   3   4   5   6   7   8   9   10   >