Re: [PATCH 2/5] DMA: Remove .owner field for driver

2014-09-24 Thread Thierry Reding
On Wed, Sep 24, 2014 at 12:09:23PM +0530, Kiran Padwal wrote: [...] > diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c > index 16efa60..a6c0b3f 100644 > --- a/drivers/dma/tegra20-apb-dma.c > +++ b/drivers/dma/tegra20-apb-dma.c > @@ -1597,7 +1597,6 @@ static const struct de

Re: [PATCH] pwm: atmel-pwm: fix calculation of prescale value

2014-09-24 Thread Thierry Reding
On Tue, Sep 23, 2014 at 03:30:21PM +0200, Nikolaus Voss wrote: > The prescale value used for calculating the period was incremented > afterwards, thus the resulting prescale value is by one too high. > This resulted in a pwm frequency only half as high as requested. > > This patch moves the 64 bit

Re: Device tree vs hardware configurations

2014-09-24 Thread Sascha Hauer
Hi Nikita, On Tue, Sep 23, 2014 at 09:58:08PM +0400, Nikita Yushchenko wrote: > Hi > > I'm currently forward-porting a BSP for imx6-based custom board from > pre-devicetree kernel to modern kernel. > > In old BSP there was a board setup file, that registered all board's > devices. For new BSP, I

RE: [PATCHv3] dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model

2014-09-24 Thread Jingchang Lu
>-Original Message- >From: Lothar Waßmann [mailto:l...@karo-electronics.de] >Sent: Wednesday, September 24, 2014 7:05 PM >To: Lu Jingchang-B35083 >Cc: vinod.k...@intel.com; li...@arm.linux.org.uk; a...@arndb.de; linux- >ker...@vger.kernel.org; dmaeng...@vger.kernel.org; linux-arm- >ker...@l

[PATCH v3] powerpc/iommu/ddw: Fix endianness

2014-09-24 Thread Alexey Kardashevskiy
rtas_call() accepts and returns values in CPU endianness. The ddw_query_response and ddw_create_response structs members are defined and treated as BE but as they are passed to rtas_call() as (u32 *) and they get byteswapped automatically, the data is CPU-endian. This fixes ddw_query_response and d

[PATCH v2 2/2] dt: bindings: tps65217: add compatible property for subnodes

2014-09-24 Thread Johannes Pointner
Add documentation for compatible property of subnodes. Signed-off-by: Johannes Pointner --- Documentation/devicetree/bindings/regulator/tps65217.txt | 7 ++- .../devicetree/bindings/video/backlight/tps65217-backlight.txt | 9 ++--- 2 files changed, 12 insertions(+), 4 deletions

[PATCH v2 0/2] mfd: tps65217: adds support for compatible string of subdevices

2014-09-24 Thread Johannes Pointner
This patchset adds the of_compatible string for the subdevices of the tps65217. The TPS65217 is missing of_compatible string in the mfd_cell for its subdevices. This compatible string is necessary to use functions like of_find_backlight_by_node in backlight.c. Change since v1: 1. Clarified new co

[PATCH v2 1/2] mfd: tps65217: add compatible string for subdevices

2014-09-24 Thread Johannes Pointner
Adds of_compatible strings to mfd_cells for sub devices of the tps65217. Signed-off-by: Johannes Pointner --- drivers/mfd/tps65217.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 3cc4c70..77708f9 100644 --- a/drivers/mfd/tps65217.c ++

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

2014-09-24 Thread Stephen Rothwell
"tty: Serialize tcflow() with other tty flow control changes") and 99416322dd16 ("tty: Workaround Alpha non-atomic byte storage in tty_struct"). There are still 32 bit architectures out there! ;-) I have used the tty tree from next-20140924 for today. -- Cheers, Stephen Rothwells...@canb.auug.org.au signature.asc Description: PGP signature

Re: [RFC PATCH] ARM: at91: remove no-MMU at91x40 support

2014-09-24 Thread Uwe Kleine-König
Hello Nicolas, On Wed, Sep 24, 2014 at 04:18:01PM +0200, Nicolas Ferre wrote: > As there is currently no-one to take care of this old !MMU target and as its > support in recent kernels is a bit rotten, remove this at91x40 support and the > board file associated with it (at91eb01). > There are mode

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

2014-09-24 Thread bpqw
For Micron spi norflash,you can enable Quad spi transfer by clear EVCR(Enhanced Volatile Configuration Register) Quad I/O protocol bit. Signed-off-by: bean huo --- drivers/mtd/spi-nor/spi-nor.c | 45 + include/linux/mtd/spi-nor.h |6 ++ 2 files

Re: [PATCH v2] zsmalloc: merge size_class to reduce fragmentation

2014-09-24 Thread Joonsoo Kim
On Wed, Sep 24, 2014 at 12:24:14PM -0400, Dan Streetman wrote: > On Wed, Sep 24, 2014 at 2:03 AM, Joonsoo Kim wrote: > > zsmalloc has many size_classes to reduce fragmentation and they are > > in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. > > And, zsmalloc has constraint t

Re: [PATCH v2] zsmalloc: merge size_class to reduce fragmentation

2014-09-24 Thread Joonsoo Kim
On Wed, Sep 24, 2014 at 05:12:20PM +0900, Minchan Kim wrote: > Hi Joonsoo, > > On Wed, Sep 24, 2014 at 03:03:46PM +0900, Joonsoo Kim wrote: > > zsmalloc has many size_classes to reduce fragmentation and they are > > in 16 bytes unit, for example, 16, 32, 48, etc., if PAGE_SIZE is 4096. > > And, zs

Re: [RFC PATCH v3 1/4] mm/page_alloc: fix incorrect isolation behavior by rechecking migratetype

2014-09-24 Thread Joonsoo Kim
On Wed, Sep 24, 2014 at 03:30:26PM +0200, Vlastimil Babka wrote: > On 09/15/2014 04:31 AM, Joonsoo Kim wrote: > >On Mon, Sep 08, 2014 at 10:31:29AM +0200, Vlastimil Babka wrote: > >>On 08/26/2014 10:08 AM, Joonsoo Kim wrote: > >> > >>>diff --git a/mm/page_alloc.c b/mm/page_alloc.c > >>>index f86023

Re: [PATCH] Drivers: hv: util: Implement Time Synchronization using host time sample

2014-09-24 Thread Sitsofe Wheeler
On Tue, Sep 23, 2014 at 09:56:10AM +0200, Olaf Hering wrote: > On Tue, Sep 23, Thomas Shao wrote: > > > In current hyper-v time sync service,it only gets the initial clock time > > from the host. It didn't process the following time samples. This change > > introduced a module parameter called hos

Re: mount BTRFS filesystems created with 3.8+ under 2.6.32 kernels ?

2014-09-24 Thread Chuck Ebbert
On Mon, 22 Sep 2014 19:07:39 +0100 Jason Vas Dias wrote: > Of course the solution was to have created the filesystem in the first > place with > 'mkfs.btrfs -O ^extref' . Found this after some more googling ... > Shouldn't this be the default ? Even worse, your vendor might change the default, l

[PATCH v2 1/3] mfd: add support for Cypress CYUSBS234 USB Serial Bridge controller

2014-09-24 Thread Muthu Mani
Adds support for USB-I2C/GPIO interfaces of Cypress Semiconductor CYUSBS234 USB-Serial Bridge controller. Details about the device can be found at: http://www.cypress.com/?rID=84126 Signed-off-by: Muthu Mani Signed-off-by: Rajaram Regupathy --- drivers/mfd/Kconfig | 12 +++ drivers/

RE: [PATCH 1/3] mfd: add support for Cypress CYUSBS234 USB Serial Bridge controller

2014-09-24 Thread Muthu Mani
> -Original Message- > From: Johan Hovold [mailto:jhov...@gmail.com] On Behalf Of Johan Hovold > Sent: Monday, September 22, 2014 4:29 PM > To: Muthu Mani > Cc: Samuel Ortiz; Lee Jones; Wolfram Sang; linux-...@vger.kernel.org; Linus > Walleij; Alexandre Courbot; linux-g...@vger.kernel.org;

Re: [PATCH v5 4/4] thermal: Add Tegra SOCTHERM thermal management driver

2014-09-24 Thread Thierry Reding
On Wed, Sep 24, 2014 at 10:32:13PM +0300, Mikko Perttunen wrote: > On 09/24/2014 10:18 PM, Eduardo Valentin wrote: > > > >Mikko, > > > >On Thu, Aug 21, 2014 at 01:17:22PM +0300, Mikko Perttunen wrote: > >>... > >>+ > >>+static int enable_tsensor(struct tegra_soctherm *tegra, > >>+

RE: [PATCH v2] ARM: cacheflush: Fix v7_exit_coherency_flush exynos build breakage on ARMv6

2014-09-24 Thread Kukjin Kim
Nicolas Pitre wrote: > > On Wed, 24 Sep 2014, Krzysztof Kozlowski wrote: > > > This fixes build breakage of platsmp.c if ARMv6 was chosen for compile > > time options (e.g. by building allmodconfig): > > > > $ make allmodconfig > > $ make > > CC arch/arm/mach-exynos/platsmp.o > > /tmp/ccdQ

RE: [PATCH v3] ARM: dts: add CPU nodes for Exynos4 SoCs

2014-09-24 Thread Kukjin Kim
Bartlomiej Zolnierkiewicz wrote: > > Recent patch by Tomasz Figa ("irqchip: gic: Fix core ID calculation > when topology is read from DT") fixed GIC driver to filter cluster ID > from values returned by cpu_logical_map() for SoCs having registers > mapped without per-CPU banking making it is possi

Re: [PATCH v2 3/5] gpio: vf610: add gpiolib/IRQ chip driver for Vybrid

2014-09-24 Thread Shawn Guo
On Tue, Sep 23, 2014 at 07:37:55PM +0200, Stefan Agner wrote: > diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c > new file mode 100644 > index 000..6649a13 > --- /dev/null > +++ b/drivers/gpio/gpio-vf610.c > @@ -0,0 +1,284 @@ > +/* > + * vf610 GPIO support through PORT and GP

RE: [PATCH v4 1/14] input: cyapa: re-architecture driver to support multi-trackpads in one driver

2014-09-24 Thread Dudley Du
> -Original Message- > From: linux-input-ow...@vger.kernel.org [mailto:linux-input- > ow...@vger.kernel.org] On Behalf Of Dmitry Torokhov > Sent: Thursday, September 25, 2014 8:49 AM > To: Dudley Du > Cc: Rafael J. Wysocki; Benson Leung; Patrik Fimml; > linux-in...@vger.kernel.org; > linux

[PATCH v2 3/3] gpio: add support for Cypress CYUSBS234 USB-GPIO adapter

2014-09-24 Thread Muthu Mani
Adds support for USB-GPIO interface of Cypress Semiconductor CYUSBS234 USB-Serial Bridge controller. The GPIO get/set can be done through vendor command on control endpoint. Details about the device can be found at: http://www.cypress.com/?rID=84126 Signed-off-by: Muthu Mani Signed-off-by: Raja

[PATCH v2 2/3] i2c: add support for Cypress CYUSBS234 USB-I2C adapter

2014-09-24 Thread Muthu Mani
Adds support for USB-I2C interface of Cypress Semiconductor CYUSBS234 USB-Serial Bridge controller. The read/write operation is setup using vendor command through control endpoint and actual data transfer happens through bulk in/out endpoints. Details about the device can be found at: http://www.

RE: [PATCH 3/3] gpio: add support for Cypress CYUSBS234 USB-GPIO adapter

2014-09-24 Thread Muthu Mani
> -Original Message- > From: Johan Hovold [mailto:jhov...@gmail.com] On Behalf Of Johan Hovold > Sent: Monday, September 22, 2014 5:14 PM > To: Muthu Mani > Cc: Samuel Ortiz; Lee Jones; Wolfram Sang; linux-...@vger.kernel.org; Linus > Walleij; Alexandre Courbot; linux-g...@vger.kernel.org;

RE: [PATCH 2/3] i2c: add support for Cypress CYUSBS234 USB-I2C adapter

2014-09-24 Thread Muthu Mani
> -Original Message- > From: Johan Hovold [mailto:jhov...@gmail.com] On Behalf Of Johan Hovold > Sent: Monday, September 22, 2014 5:00 PM > To: Muthu Mani > Cc: Samuel Ortiz; Lee Jones; Wolfram Sang; linux-...@vger.kernel.org; Linus > Walleij; Alexandre Courbot; linux-g...@vger.kernel.org;

linux-next: manual merge of the kvm-arm tree with the kvm tree

2014-09-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in virt/kvm/eventfd.c between commit 29f1b65b5984 ("KVM: EVENTFD: Remove inclusion of irq.h") from the kvm tree and commit 0ba09511ddc3 ("KVM: EVENTFD: remove inclusion of irq.h") from the kvm-arm tree. I fixed it up (I used the

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

2014-09-24 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 --- .../devicetree/bindings/input/cap1106.txt | 53 .../devicetree/bindings/input/cap11xx.txt | 54 drivers/input/keyboard/Kconfig

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

2014-09-24 Thread Matt Ranostay
Changes from v2: * Rename apply relevant CAP1106 references to CAP11XX to make generic for variant support Matt Ranostay (3): cap11xx: make driver generic for variant support cap11xx: Add support for various cap11xx devices cap11xx: support for irq-active-high option .../devicetree/bi

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

2014-09-24 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 ch

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

2014-09-24 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

Re: [PATCH v5 1/2] usb: host: ehci-exynos: Remove unnecessary usb-phy support

2014-09-24 Thread Vivek Gautam
Hi Greg, On Mon, Sep 22, 2014 at 11:15 AM, Vivek Gautam wrote: > Now that we have completely moved from older USB-PHY drivers > to newer GENERIC-PHY drivers for PHYs available with USB controllers > on Exynos series of SoCs, we can remove the support for the same > in our host drivers too. > > W

Re: [PATCH v2 03/13] powerpc/spapr: vfio: Implement spapr_tce_iommu_ops

2014-09-24 Thread Alexey Kardashevskiy
On 09/24/2014 06:42 AM, Alex Williamson wrote: > On Tue, 2014-09-23 at 13:00 +1000, Alexey Kardashevskiy wrote: >> Modern IBM POWERPC systems support multiple IOMMU tables per PE >> so we need a more reliable way (compared to container_of()) to get >> a PE pointer from the iommu_table struct pointe

Re: [PATCH] kernel: acctc.c: Fixed else if not generally userful after a break or return warning

2014-09-24 Thread Joe Perches
On Thu, 2014-09-25 at 06:00 +0100, Al Viro wrote: > It's not you, it's checkpatch.pl plus the fairly common tendency to give > that thing a lot more respect than it deserves... > > Basically, it's OK as a tool that draws ones attention to a subset of > code that might or might not be worth looking

[PATCH] checkpatch: Add exception to return then else test

2014-09-24 Thread Joe Perches
Add an exception to the return before else warning when the line following it is also a return like: if (foo) return bar; else return baz; This form of a test then return is at least as readable as if (foo) return bar;

Re: [PATCH 00/20] arch atomic 'cleanup'

2014-09-24 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Sep 24, 2014 at 05:54:06PM +0100, Will Deacon wrote: > > Hi Peter, > > > > On Thu, May 08, 2014 at 02:58:40PM +0100, Peter Zijlstra wrote: > > > This series continues the arch atomic rework started with the smp_mb__ > > > interface cleanup. > > > > > > In this

Re: [PATCH 1/5 - resend] SCHED: add some "wait..on_bit...timeout()" interfaces.

2014-09-24 Thread Ingo Molnar
* NeilBrown wrote: > > In commit c1221321b7c25b53204447cff9949a6d5a7c >sched: Allow wait_on_bit_action() functions to support a timeout > > I suggested that a "wait_on_bit_timeout()" interface would not meet my > need. This isn't true - I was just over-engineering. > > Including a 'p

Re: [PATCH] kernel: acctc.c: Fixed else if not generally userful after a break or return warning

2014-09-24 Thread Al Viro
On Thu, Sep 25, 2014 at 12:34:11AM -0400, Elshad Mustafayev wrote: > I am sorry if I disturbed you. I just follow the steps in kernel newbies to > get me in kernel development. It's not you, it's checkpatch.pl plus the fairly common tendency to give that thing a lot more respect than it deserves..

Re: [PATCH] x86: Quark: Flush TLB via CR3 not CR4.PGE in setup_arch()

2014-09-24 Thread Ingo Molnar
* Bryan O'Donoghue wrote: > Quark X1000 requires CR3 to be rewritten to flush TLB entries > irrespective of the PGE bits in CR4 or PTE.PGE > > This patch flushes the TLB in the required way for Quark in setup_arch() > See Quark Core_DevMan_001.pdf section 6.4.11 > > Signed-off-by: Bryan O'Dono

[tip:x86/platform] x86/intel/quark: Add comment on TLB flush to setup_arch()

2014-09-24 Thread tip-bot for Bryan O'Donoghue
Commit-ID: 02276a3a677d681f0cd227d7111c71fdbce23832 Gitweb: http://git.kernel.org/tip/02276a3a677d681f0cd227d7111c71fdbce23832 Author: Bryan O'Donoghue AuthorDate: Wed, 24 Sep 2014 21:26:03 +0100 Committer: Ingo Molnar CommitDate: Thu, 25 Sep 2014 06:52:15 +0200 x86/intel/quark: Add co

Re: perf: perf_fuzzer triggers instant reboot

2014-09-24 Thread Vince Weaver
So I noticed Cong Wang's patch (3577af70a2ce4853d58e57d832e687d739281479) perf: Fix a race condition in perf_remove_from_context() and that sounds a lot like the weird fork()/memory-corruption bug that the fuzzer has been triggering. So I applied that patch alone on top of the 3.17-rc4

[PATCH] initramfs: allow again choice of the embedded compression algorithm

2014-09-24 Thread klondike
Choosing the appropriate option (for example on my tests, choosing CONFIG_INITRAMFS_COMPRESSION_NONE when compressing the using XZ) results in up to 500KiB differences (9MiB to 8.5MiB) in the kernel size as the dictionary will not get polluted with uncomprensible data and may reuse kernel data too.

Re: [PATCH v2] vfs: Don't exchange "short" filenames unconditionally.

2014-09-24 Thread Al Viro
On Wed, Sep 24, 2014 at 09:18:13PM +0100, Al Viro wrote: > On Wed, Sep 24, 2014 at 12:20:38PM -0700, Linus Torvalds wrote: > > On Wed, Sep 24, 2014 at 11:55 AM, Al Viro wrote: > > > > > > Yecc... Applied, but it's very ugly. Oh, well - regression is > > > regression, and I don't see a cleane

linux-next: error trying to fetch the devicetree tree

2014-09-24 Thread Stephen Rothwell
Hi Grant, Fetching the devicetree tree (git://git.secretlab.ca/git/linux-2.6#devicetree/next) failes like this: fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. -- Cheers, Stephen Rothwells...@canb.

Re: [PATCH] i2c: rk3x: adjust the LOW divison based on characteristics of SCL

2014-09-24 Thread Doug Anderson
Addy, On Wed, Sep 24, 2014 at 6:56 PM, addy ke wrote: > In my measurement,all paramter but "Data hold time" are match the > characteristics of SCL bus line. > the measured value is 0.928us("data hold time on RK3X" ~= "the low period / > 2") > but the maximum value described in table is 0.9us

Re: [PATCH] kprobes: Update Documentation/kprobes.txt

2014-09-24 Thread Masami Hiramatsu
(2014/09/25 11:32), Li Bin wrote: > The patch 125e564("Move Kconfig.instrumentation to arch/Kconfig and > init/Kconfig") had removed the "Instrumentation Support" menu, > and the configurations under this had be moved to "General setup". > Update Documentation/kprobes.txt to reflect this change. >

Re: [PATCH] kernel: acctc.c: Fixed else if not generally userful after a break or return warning

2014-09-24 Thread Joe Perches
On Wed, Sep 24, 2014 at 11:13:45PM -0400, Elshad Mustafayev wrote: > > Fixed a coding style issue. [] > > diff --git a/kernel/acct.c b/kernel/acct.c [] > > @@ -376,9 +376,8 @@ static comp2_t encode_comp2_t(u64 value) > > if (exp > MAXEXP2) { > > /* Overflow. Return largest represent

linux-next: build warning after merge of the battery tree

2014-09-24 Thread Stephen Rothwell
Hi Sebastian, After merging the battery tree, today's linux-next build (powerpc ppc64_defconfig and x86_64 allmodconfig) produced this warning: fs/sysfs/Kconfig:1:error: recursive dependency detected! fs/sysfs/Kconfig:1: symbol SYSFS is selected by CHARGER_MAX14577 drivers/power/Kconfig:327:

linux-next: manual merge of the mfd tree with the hwmon-staging tree

2014-09-24 Thread Stephen Rothwell
Hi Lee, Today's linux-next merge of the mfd tree got a conflict in drivers/mfd/Makefile between commit dfbdcd7cefca ("mfd: menf21bmc: Introduce MEN 14F021P00 BMC MFD Core driver") from the hwmon-staging tree and commit bc69ade0238e ("mfd: Add HI6421 PMIC Core driver") from the mfd tree. I fixed i

Re: [RFC v3 0/4] vfs: Non-blockling buffered fs read (page cache only)

2014-09-24 Thread Michael Kerrisk
Hello Milosz, On Wed, Sep 24, 2014 at 11:46 PM, Milosz Tanski wrote: > This patcheset introduces an ability to perform a non-blocking read from > regular files in buffered IO mode. This works by only for those filesystems > that have data in the page cache. > > It does this by introducing new sys

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

2014-09-24 Thread Wei Huang
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 on virtualized environment, this checking can fail if virtual PMU is not supported (e.g. KVM on AMD host). It

[PATCH 1/5 - resend] SCHED: add some "wait..on_bit...timeout()" interfaces.

2014-09-24 Thread NeilBrown
In commit c1221321b7c25b53204447cff9949a6d5a7c sched: Allow wait_on_bit_action() functions to support a timeout I suggested that a "wait_on_bit_timeout()" interface would not meet my need. This isn't true - I was just over-engineering. Including a 'private' field in wait_bit_key instead

Re: [PATCH 1/3 v2] drivers/bus: Added Freescale Management Complex APIs

2014-09-24 Thread Kim Phillips
On Wed, 24 Sep 2014 21:23:59 -0500 German Rivera wrote: > On 09/23/2014 07:49 PM, Kim Phillips wrote: > > On Fri, 19 Sep 2014 17:49:39 -0500 > > "J. German Rivera" wrote: > > > >> + * Delay in microseconds between polling iterations while > >> + * waiting for MC command completion > >> + */ > >>

[PATCH] x86, MCE, AMD: detect the threshold at the initialization period

2014-09-24 Thread Chen Yucong
ADM64 APM Volume 2 (9.3.2 Error-Reporting Register Banks)documents that the size of threshold counter is implementation-dependent, and the implementations with less than 16 bits fill the most significant unimplemented bits with zeros. So THRESHOLD_MAX should be detected at the initialization period

Re: [PATCH] [RFC] Using hierarchy irqdomian to implement MTK intpol.

2014-09-24 Thread Jiang Liu
On 2014/9/25 11:17, Jason Cooper wrote: > On Thu, Sep 25, 2014 at 11:04:37AM +0800, Jiang Liu wrote: >> Hi Joe, >> Thanks, I will merge them into my next version. >> Regards! >> Gerry >> >> On 2014/9/25 10:16, Joe.C wrote: >>> >>> Jiang, >>> >>> Please consider merge the following 2 changes

Re: [PATCH 1/5] SCHED: add some "wait..on_bit...timeout()" interfaces.

2014-09-24 Thread Trond Myklebust
On Wed, Sep 24, 2014 at 11:23 PM, NeilBrown wrote: > On Wed, 24 Sep 2014 09:04:18 +0200 Ingo Molnar wrote: > >> >> * NeilBrown wrote: >> >> > @@ -859,6 +860,8 @@ int wake_bit_function(wait_queue_t *wait, unsigned >> > mode, int sync, void *key); >> > >> > extern int bit_wait(struct wait_bit_ke

Re: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-09-24 Thread Tejun Heo
On Wed, Sep 24, 2014 at 03:59:07PM +0100, Alexander Gordeev wrote: > On Wed, Sep 24, 2014 at 10:39:13AM -0400, Tejun Heo wrote: > > Would it be possible for you compare threaded vs. unthreaded under > > relatively heavy load? > > I will try, although not quite soon. > > In the meantime I could fi

Re: linux-next: cgroup_mount() falls asleep forever

2014-09-24 Thread Tejun Heo
Hello, Al. On Thu, Sep 25, 2014 at 03:47:19AM +0100, Al Viro wrote: > > Yeah, it's an ugly thing to work around vfs interface not very > > conducive for filesystems which conditionally create or reuse > > superblocks during mount. There was a thread explaining what's going > > on. Looking up...

Re: [PATCH 1/5] SCHED: add some "wait..on_bit...timeout()" interfaces.

2014-09-24 Thread NeilBrown
On Wed, 24 Sep 2014 09:04:18 +0200 Ingo Molnar wrote: > > * NeilBrown wrote: > > > @@ -859,6 +860,8 @@ int wake_bit_function(wait_queue_t *wait, unsigned > > mode, int sync, void *key); > > > > extern int bit_wait(struct wait_bit_key *); > > extern int bit_wait_io(struct wait_bit_key *);

Re: [PATCH] kernel: acctc.c: Fixed else if not generally userful after a break or return warning.

2014-09-24 Thread Al Viro
On Wed, Sep 24, 2014 at 11:13:45PM -0400, Elshad Mustafayev wrote: > Fixed a coding style issue. > > Signed-off-by: Elshad Mustafayev > --- > kernel/acct.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/kernel/acct.c b/kernel/acct.c > index b4c667d..ed4cf00 100644 >

Re: Re: [RFC][PATCH] ftracetest: Add a couple of ftrace test cases

2014-09-24 Thread Masami Hiramatsu
(2014/09/25 10:14), Steven Rostedt wrote: > On Thu, 25 Sep 2014 09:35:05 +0900 > Masami Hiramatsu wrote: > >> (2014/09/25 0:58), Steven Rostedt wrote: >>> On Wed, 24 Sep 2014 11:42:35 -0400 >>> Steven Rostedt wrote: >>> > I think you'd better use exit_unsupported/exit_xfail to notify > t

[PATCH v2] [media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory().

2014-09-24 Thread Fancy Fang
When user requests V4L2_MEMORY_MMAP type buffers, the videobuf-core will assign the corresponding offset to the 'boff' field of the videobuf_buffer for each requested buffer sequentially. Later, user may call mmap() to map one or all of the buffers with the 'offset' parameter which is equal to its

[PATCH v1] rtc: snvs: add poweroff function

2014-09-24 Thread Robin Gong
On i.mx6 chips, PMIC_ON_REQ can be pulled by snvs LPCR. That can be used poweroff system if PMIC_ON_REQ connected with external PMIC or power control circuit.Power up again if PMIC_ON_REQ pulled high. Signed-off-by: Robin Gong --- Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 4

Re: [PATCH] [RFC] Using hierarchy irqdomian to implement MTK intpol.

2014-09-24 Thread Jason Cooper
On Thu, Sep 25, 2014 at 11:04:37AM +0800, Jiang Liu wrote: > Hi Joe, > Thanks, I will merge them into my next version. > Regards! > Gerry > > On 2014/9/25 10:16, Joe.C wrote: > > > > Jiang, > > > > Please consider merge the following 2 changes into your next round. ummm. I'm confused. I

Re: ACPI/i915: Cannot configure display brightness on Dell Latitude E6440

2014-09-24 Thread Aaron Lu
Hi Hans, Thanks for following up and explaining the situation to Pali. On 09/25/2014 02:21 AM, Pali Rohár wrote: > On Wednesday 24 September 2014 16:34:21 Hans de Goede wrote: >> Ok, so the dell-laptop interface is just an obsolete wrapper >> around the i915 opregion code, which shows that the ri

[PATCH] kernel: acctc.c: Fixed else if not generally userful after a break or return warning.

2014-09-24 Thread Elshad Mustafayev
Fixed a coding style issue. Signed-off-by: Elshad Mustafayev --- kernel/acct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/acct.c b/kernel/acct.c index b4c667d..ed4cf00 100644 --- a/kernel/acct.c +++ b/kernel/acct.c @@ -376,9 +376,8 @@ static comp2_t encode_comp2

Re: [PATCH] [RFC] Using hierarchy irqdomian to implement MTK intpol.

2014-09-24 Thread Jiang Liu
On 2014/9/25 0:04, Joe.C wrote: > From: "Joe.C" > > Here's the first draft of using hierarchy irqdomain to implement MTK intpol > support. I have tested it and intpol works fine. Before continue, I'd like > to get your comments. This is based on Jiang's hierarchy irqdomian [1] and > my mediatek

[PATCH v2] [media] videobuf-dma-contig: set vm_pgoff to be zero to pass the sanity check in vm_iomap_memory().

2014-09-24 Thread Fancy Fang
When user requests V4L2_MEMORY_MMAP type buffers, the videobuf-core will assign the corresponding offset to the 'boff' field of the videobuf_buffer for each requested buffer sequentially. Later, user may call mmap() to map one or all of the buffers with the 'offset' parameter which is equal to its

[PCI/MSI] WARNING: CPU: 0 PID: 1 at drivers/pci/msi.c:1034 pci_enable_msi_range+0x2c1/0x2f0()

2014-09-24 Thread Fengguang Wu
Hi Alexander, FYI, we noticed the below changes on git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/msi commit 4ab2ee7c77875669230a797a3ed2228990f82545 ("PCI/MSI: Rename pci_msi_check_device() to pci_msi_supported()") +-+

Re: [PATCH] [RFC] Using hierarchy irqdomian to implement MTK intpol.

2014-09-24 Thread Jiang Liu
Hi Joe, Thanks, I will merge them into my next version. Regards! Gerry On 2014/9/25 10:16, Joe.C wrote: > > Jiang, > > Please consider merge the following 2 changes into your next round. > > On Thu, 2014-09-25 at 00:04 +0800, Joe.C wrote: >> diff --git a/kernel/irq/irqdomain.c b/kernel/

RE: [RFC] fdt:free the fdt reserved memory

2014-09-24 Thread Wang, Yalin
> On Thu, 18 Sep 2014 17:25:12 +0800, "Wang, Yalin" > wrote: > > This patch make some change to unflatten_dt_node(), make sure the > > device_node don't reference to fdt raw blob memory, so that we can > > free the raw blob reserved memory after initcalls. > > > > Signed-off-by: Yalin Wang > > D

RE: [PATCH RESEND v3 5/6] AHCI: Optimize single IRQ interrupt processing

2014-09-24 Thread Elliott, Robert (Server Storage)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > ow...@vger.kernel.org] On Behalf Of Tejun Heo ... > The thing I don't get is why multiple MSI handling and this patchset > are tied to threaded interrupt handling. Splitting locks don't > necessarily ha

[PATCH 3/3] rheap: move rheap.c from arch/powerpc/lib/ to lib/

2014-09-24 Thread Zhao Qiang
qe need to use the rheap, so move it to public directory. Signed-off-by: Zhao Qiang --- arch/powerpc/Kconfig| 3 --- arch/powerpc/include/asm/fsl_85xx_cache_sram.h | 2 +- arch/powerpc/lib/Makefile | 2 -- arch/powerpc/pl

Re: [PATCH 0/2] sched: deferred set priority (dprio)

2014-09-24 Thread Mike Galbraith
On Wed, 2014-09-24 at 12:29 -0700, Sergey Oboguev wrote: > Message 1/2 contains the patch to the kernel tree (3.16.3). > Message 2/2 contains the patch for man pages tree. Peter/Ingo are unlikely to ship this off to @stable. If you want this to get off the ground, you'll need to submit against t

[PATCH v2 09/22] x86/xen/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Tested-by: Konrad Rzeszutek Wilk Signed-off-by: Yijing Wang Acked-by: David Vrabel Reviewed-by: Konrad Rzeszutek Wilk CC: Konrad Rzeszutek Wilk --- arch/x86

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

2014-09-24 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got conflicts in arch/arm/boot/dts/rk3188.dtsi and arch/arm/boot/dts/rk3xxx.dtsi between commits fd14e6f9b461 ("ARM: dts: rockchip: add dwc2 controllers for rk3066 and rk3188") and 4ff4ae1258a9 ("ARM: dts: rockchip: add emmc nodes for rk3066 an

[PATCH v2 02/22] PCI/MSI: Remove useless bus->msi assignment

2014-09-24 Thread Yijing Wang
Currently, PCI drivers will initialize bus->msi in pcibios_add_bus(). pcibios_add_bus() will be called in every pci bus initialization. So the bus->msi assignment in pci_alloc_child_bus() is useless. Signed-off-by: Yijing Wang CC: Thierry Reding CC: Thomas Petazzoni --- drivers/pci/probe.c |

Re: [patch] mm: memcontrol: do not iterate uninitialized memcgs

2014-09-24 Thread Tejun Heo
Hello, On Wed, Sep 24, 2014 at 10:31:18PM -0400, Johannes Weiner wrote: .. > not meet the ordering requirements for memcg, and so we still may see > partially initialized memcgs from the iterators. It's mainly the other way around - a fully initialized css may not show up in an iteration, but giv

[PATCH v2 10/22] Irq_remapping/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- drivers/iommu/irq_remapping.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/iommu/irq_rem

[PATCH v2 1/2] gpio / CrystalCove: support virtual GPIO

2014-09-24 Thread Aaron Lu
The virtual GPIO introduced in ACPI table of Baytrail-T based system is used to solve a problem under Windows. We do not have such problems under Linux so we do not actually need them. But we have to tell GPIO library that the Crystal Cove GPIO chip has this many GPIO pins or the common GPIO handle

[PATCH v2 04/22] x86/xen/MSI: Eliminate arch_msix_mask_irq() and arch_msi_mask_irq()

2014-09-24 Thread Yijing Wang
Commit 0e4ccb150 added two __weak arch functions arch_msix_mask_irq() and arch_msi_mask_irq() to fix a bug found when running xen in x86. Introduced these two funcntions make MSI code complex. And mask/unmask is the irq actions related to interrupt controller, should not use weak arch functions to

[PATCH v2 03/22] MSI: Remove the redundant irq_set_chip_data()

2014-09-24 Thread Yijing Wang
Currently, pcie-designware, pcie-rcar, pci-tegra drivers use irq chip_data to save the msi_chip pointer. They already call irq_set_chip_data() in their own MSI irq map functions. So irq_set_chip_data() in arch_setup_msi_irq() is useless. Signed-off-by: Yijing Wang --- drivers/pci/msi.c |5 ++

[PATCH v2 11/22] x86/MSI: Remove unused MSI weak arch functions

2014-09-24 Thread Yijing Wang
Now we can clean up MSI weak arch functions in x86. Signed-off-by: Yijing Wang --- arch/x86/include/asm/pci.h |3 --- arch/x86/include/asm/x86_init.h |4 arch/x86/kernel/apic/io_apic.c |2 +- arch/x86/kernel/x86_init.c | 24 drivers/iommu/ir

[PATCH v2 00/22] Use MSI chip framework to configure MSI/MSI-X in all platforms

2014-09-24 Thread Yijing Wang
This series is based Bjorn's pci/msi branch git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git pci/msi Currently, there are a lot of weak arch functions in MSI code. Thierry Reding Introduced MSI chip framework to configure MSI/MSI-X in arm. This series use MSI chip framework to refacto

[PATCH v2 01/22] PCI/MSI: Clean up struct msi_chip argument

2014-09-24 Thread Yijing Wang
Msi_chip functions setup_irq/teardown_irq rarely use msi_chip argument. We can look up msi_chip pointer by the device pointer or irq number, so clean up msi_chip argument. Signed-off-by: Yijing Wang CC: Thierry Reding CC: Thomas Petazzoni --- drivers/irqchip/irq-armada-370-xp.c |8 +++-

[PATCH v2 14/22] MIPS/Xlp/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/mips/pci/msi-xlp.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/mips/pci/msi-

[PATCH v2 07/22] PCI/MSI: Refactor struct msi_chip to make it become more common

2014-09-24 Thread Yijing Wang
Now there are a lot of __weak arch functions in MSI code. These functions make MSI driver complex. Thierry Reding Introduced a new MSI chip framework to configure MSI/MSI-X irq in ARM. Use the new MSI chip framework to refactor all other platform MSI arch code to eliminate weak arch MSI functions.

[PATCH v2 12/22] MIPS/Octeon/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/mips/pci/msi-octeon.c | 35 ++- 1 files changed, 22 insertions(+), 13 deletions(-) diff -

[PATCH v2 13/22] MIPS/Xlp: Remove the dead function destroy_irq() to fix build error

2014-09-24 Thread Yijing Wang
Commit 465665f78a7 ("mips: Kill pointless destroy_irq()") removed the destroy_irq(). So remove the leftover one in xlp_setup_msix() to fix build error. arch/mips/pci/msi-xlp.c: In function 'xlp_setup_msix': arch/mips/pci/msi-xlp.c:447:3: error: implicit declaration of function 'destroy_irq'.. cc1

[PATCH v2 06/22] PCI/MSI: Introduce weak arch_find_msi_chip() to find MSI chip

2014-09-24 Thread Yijing Wang
Introduce weak arch_find_msi_chip() to find the match msi_chip. Currently, MSI chip associates pci bus to msi_chip. Because in ARM platform, there may be more than one MSI controller in system. Associate pci bus to msi_chip help pci device to find the match msi_chip and setup MSI/MSI-X irq correctl

[PATCH v2 15/22] MIPS/Xlr/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/mips/pci/pci-xlr.c | 15 +-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/mips/pci/pci

[PATCH v2 17/22] s390/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang Acked-by: Sebastian Ott --- arch/s390/pci/pci.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git

[PATCH v2 16/22] Powerpc/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang Acked-by: Michael Ellerman --- arch/powerpc/kernel/msi.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) d

[PATCH v2 05/22] s390/MSI: Use __msi_mask_irq() instead of default_msi_mask_irq()

2014-09-24 Thread Yijing Wang
Now only s390/MSI use default_msi_mask_irq() and default_msix_mask_irq(), replace them with the common msi mask irq functions __msi_mask_irq() and __msix_mask_irq(). Remove default_msi_mask_irq() and default_msix_mask_irq(). Signed-off-by: Yijing Wang --- arch/s390/pci/pci.c |4 ++-- include

[PATCH v2 22/22] PCI/MSI: Clean up unused MSI arch functions

2014-09-24 Thread Yijing Wang
Now we use struct msi_chip in all platforms to configure MSI/MSI-X. We can clean up the unused arch functions. Signed-off-by: Yijing Wang Reviewed-by: Lucas Stach --- drivers/iommu/irq_remapping.c |2 +- drivers/pci/msi.c | 100 +++- include/

[PATCH v2 08/22] x86/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/x86/include/asm/pci.h |1 + arch/x86/kernel/apic/io_apic.c | 12 2 files changed, 13 insertions(+), 0

[PATCH v2 20/22] Sparc/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/sparc/kernel/pci.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/sparc/kernel/

[PATCH v2 21/22] tile/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/tile/kernel/pci_gx.c | 14 -- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/tile/kernel

[PATCH v2 19/22] IA64/MSI: Use MSI chip framework to configure MSI/MSI-X irq

2014-09-24 Thread Yijing Wang
Use MSI chip framework instead of arch MSI functions to configure MSI/MSI-X irq. So we can manage MSI/MSI-X irq in a unified framework. Signed-off-by: Yijing Wang --- arch/ia64/kernel/msi_ia64.c | 18 ++ 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/ia64/

  1   2   3   4   5   6   7   8   9   10   >