[PATCH 2/4] ARM: multi_v7_defconfig: Enable support for ST's LPC Watchdog

2014-10-23 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 99a8a4a..e34d5c6 100644 --- a/arch/arm/configs/multi_v7_defconfig +++

[PATCH 1/4] ARM: STi: DT: STiH407: Add Device Tree node for LPC Watchdog

2014-10-23 Thread Lee Jones
Signed-off-by: David Paris Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/stih407.dtsi b/arch/arm/boot/dts/stih407.dtsi index f539627a..303df6c 100644 --- a/arch/arm/boot/dts/stih407.dtsi +++

[PATCH 4/4] watchdog: st_wdt: Add new driver for ST's LPC Watchdog

2014-10-23 Thread Lee Jones
Signed-off-by: David Paris Signed-off-by: Lee Jones --- drivers/watchdog/Kconfig | 16 +++ drivers/watchdog/Makefile | 1 + drivers/watchdog/st_wdt.c | 317 ++ 3 files changed, 334 insertions(+) create mode 100644 drivers/watchdog/st_wdt.c diff

[PATCH v4 0/4] watchdog: Introduce new driver to support ST's Watchdog

2014-10-23 Thread Lee Jones
Hi Wim, Basic driver to support ST's LPC Watchdog device. Kind regards, Lee v3 => v4: - Fixed undefined 'clk' error (caused my rushing) - Fixed up Mark's DT Doc comments v2 => v3: - Don't stop Watchdog during .remove() - Remove superflous {EN,DIS}ABLE defines - Add missing

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-23 Thread Jiri Olsa
On Thu, Oct 23, 2014 at 11:26:34AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Oct 23, 2014 at 04:12:13PM +0200, Jiri Olsa escreveu: > > On Thu, Oct 23, 2014 at 10:37:24AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Wed, Oct 22, 2014 at 10:46:59AM -0700, Sukadev Bhattiprolu escreveu: > >

Re: [patch] mm: memcontrol: don't pass a NULL memcg to mem_cgroup_end_move()

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 10:33:50, Johannes Weiner wrote: > mem_cgroup_end_move() checks if the passed memcg is NULL, along with a > lengthy comment to explain why this seemingly non-sensical situation > is even possible. > > Check in cancel_attach() itself whether can_attach() set up the move > context

Re: [PATCHv5 7/7] usb: dwc2: Update Kconfig to support dual-role

2014-10-23 Thread Dinh Nguyen
On 10/22/2014 03:27 PM, Paul Bolle wrote: > On Tue, 2014-10-21 at 15:47 -0500, Dinh Nguyen wrote: >> On 10/20/2014 02:42 PM, Paul Bolle wrote: >>> (Side note: drivers/usb/dwc2/Kconfig is sourced (in drivers/usb/Kconfig) >>> even if USB is _not_ set. But USB_DCW2 still depends on USB. Why is >>>

Re: [patch] mm: memcontrol: inline memcg->move_lock locking

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 10:33:02, Johannes Weiner wrote: > The wrappers around taking and dropping the memcg->move_lock spinlock > add nothing of value. Inline the spinlock calls into the callsites. > > Signed-off-by: Johannes Weiner > Acked-by: Vladimir Davydov Acked-by: Michal Hocko > --- >

Re: [PATCH] block: wrong return value

2014-10-23 Thread Sudip Mukherjee
On Thu, Oct 23, 2014 at 08:12:06AM -0600, Jens Axboe wrote: > On 10/23/2014 07:20 AM, Sudip Mukherjee wrote: > > while compiling integer err was showing as a set but unused variable. > > elevator_init_fn can be either cfq_init_queue or deadline_init_queue > > or noop_init_queue. > > all three of

Re: [RFC][PATCH 3/6] mm: VMA sequence count

2014-10-23 Thread Kirill A. Shutemov
On Thu, Oct 23, 2014 at 04:22:24PM +0200, Peter Zijlstra wrote: > On Thu, Oct 23, 2014 at 03:36:16PM +0300, Kirill A. Shutemov wrote: > > On Wed, Oct 22, 2014 at 03:44:16PM +0200, Peter Zijlstra wrote: > > > On Wed, Oct 22, 2014 at 02:15:54PM +0200, Peter Zijlstra wrote: > > > > On Wed, Oct 22,

Re: [resend PATCH 1/3] ACPI / platform: provide default DMA mask

2014-10-23 Thread Felipe Balbi
On Wed, Oct 22, 2014 at 04:19:45PM +0200, Rafael J. Wysocki wrote: > On Wednesday, October 22, 2014 10:33:08 AM Adrian Hunter wrote: > > On 21/10/14 16:13, Adrian Hunter wrote: > > > On 21/10/14 16:08, Rafael J. Wysocki wrote: > > >> On Tuesday, October 21, 2014 03:27:45 PM Adrian Hunter wrote: >

Re: [PATCHv3] reset: add reset_control_status helper function

2014-10-23 Thread Dinh Nguyen
Hi Philipp, On 10/10/2014 10:21 AM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen > > There are cases where a system will want to read a reset status bit before > doing any other toggling. Add a reset_control_status helper function to the > reset controller API. > > Signed-off-by:

Re: [PATCH v3 2/2] socfpga: support suspend to ram

2014-10-23 Thread Dinh Nguyen
Hi Alan, On 10/14/2014 02:33 PM, at...@opensource.altera.com wrote: > From: Alan Tull > > Add code that requests that the sdr controller go into > self-refresh mode. This code is run from ocram. > > This patch assumes that u-boot has already configured sdr: >

Re: [patch 2/2] mm: memcontrol: fix missed end-writeback page accounting

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 09:57:29, Johannes Weiner wrote: [...] > From b518d88254b01be8c6c0c4a496d9f311f0c71b4a Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Thu, 23 Oct 2014 09:29:06 -0400 > Subject: [patch] mm: rmap: split out page_remove_file_rmap() > > page_remove_rmap() has too many

Re: [PATCH 3/4] watchdog: st_wdt: Provide binding documentation for ST's LPC Watchdog driver

2014-10-23 Thread Lee Jones
On Thu, 09 Oct 2014, Mark Rutland wrote: > On Wed, Oct 08, 2014 at 10:33:29AM +0100, Lee Jones wrote: > > Cc: devicet...@vger.kernel.org > > Signed-off-by: David Paris > > Signed-off-by: Lee Jones > > --- > > .../devicetree/bindings/watchdog/st-lpc-wdt.txt| 30 > > ++ >

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Marcel Apfelbaum
On Thu, 2014-10-23 at 08:49 -0600, Alex Williamson wrote: > On Thu, 2014-10-23 at 17:33 +0300, Marcel Apfelbaum wrote: > > On Thu, 2014-10-23 at 07:57 -0600, Alex Williamson wrote: > > > On Thu, 2014-10-23 at 13:44 +, Stuart Yoder wrote: > > > > > > > > > -Original Message- > > > > >

Re: [patch 2/2] mm: memcontrol: fix missed end-writeback page accounting

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 09:54:12, Johannes Weiner wrote: [...] > From 1808b8e2114a7d3cc6a0a52be2fe568ff6e1457e Mon Sep 17 00:00:00 2001 > From: Johannes Weiner > Date: Thu, 23 Oct 2014 09:12:01 -0400 > Subject: [patch] mm: memcontrol: fix missed end-writeback page accounting fix > > Add kernel-doc to

Re: lockdep splat in CPU hotplug

2014-10-23 Thread Paul E. McKenney
On Thu, Oct 23, 2014 at 10:11:25AM +0200, Borislav Petkov wrote: > On Wed, Oct 22, 2014 at 02:09:43PM -0700, Paul E. McKenney wrote: > > > Yes, this works. FWIW, please feel free to add > > > > > > Reported-and-tested-by: Jiri Kosina > > > > > > once merging it. > > > > Done, and thank you

Re: [patch 2/2] mm: memcontrol: fix missed end-writeback page accounting

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 10:14:43, Johannes Weiner wrote: > On Thu, Oct 23, 2014 at 03:03:31PM +0200, Michal Hocko wrote: > > On Wed 22-10-14 14:29:28, Johannes Weiner wrote: > > > 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API") changed page > > > migration to uncharge the old page right away. The

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Alex Williamson
On Thu, 2014-10-23 at 17:33 +0300, Marcel Apfelbaum wrote: > On Thu, 2014-10-23 at 07:57 -0600, Alex Williamson wrote: > > On Thu, 2014-10-23 at 13:44 +, Stuart Yoder wrote: > > > > > > > -Original Message- > > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > >

[patch] mm: memcontrol: fold mem_cgroup_start_move()/mem_cgroup_end_move()

2014-10-23 Thread Johannes Weiner
Having these functions and their documentation split out and somewhere makes it harder, not easier, to follow what's going on. Inline them directly where charge moving is prepared and finished, and put an explanation right next to it. Signed-off-by: Johannes Weiner --- mm/memcontrol.c | 40

Re: [PATCH v2 2/3] ARM: keystone: pm: switch to use generic pm domains

2014-10-23 Thread Grygorii Strashko
Hi Ulf, On 10/23/2014 11:11 AM, Ulf Hansson wrote: > On 22 October 2014 17:44, Geert Uytterhoeven wrote: >> On Wed, Oct 22, 2014 at 5:28 PM, Ulf Hansson wrote: >>> On 22 October 2014 17:09, Geert Uytterhoeven wrote: On Wed, Oct 22, 2014 at 5:01 PM, Ulf Hansson wrote: +void

[PATCH 1/4] mm: cma: Don't crash on allocation if CMA area can't be activated

2014-10-23 Thread Laurent Pinchart
If activation of the CMA area fails its mutex won't be initialized, leading to an oops at allocation time when trying to lock the mutex. Fix this by failing allocation if the area hasn't been successfully actived, and detect that condition by moving the CMA bitmap allocation after page block

[patch] mm: memcontrol: don't pass a NULL memcg to mem_cgroup_end_move()

2014-10-23 Thread Johannes Weiner
mem_cgroup_end_move() checks if the passed memcg is NULL, along with a lengthy comment to explain why this seemingly non-sensical situation is even possible. Check in cancel_attach() itself whether can_attach() set up the move context or not, it's a lot more obvious from there. Then remove the

[PATCH 3/4] mm: cma: Ensure that reservations never cross the low/high mem boundary

2014-10-23 Thread Laurent Pinchart
Commit 95b0e655f914 ("ARM: mm: don't limit default CMA region only to low memory") extended CMA memory reservation to allow usage of high memory. It relied on commit f7426b983a6a ("mm: cma: adjust address limit to avoid hitting low/high memory boundary") to ensure that the reserved block never

[PATCH 2/4] mm: cma: Always consider a 0 base address reservation as dynamic

2014-10-23 Thread Laurent Pinchart
The fixed parameter to cma_declare_contiguous() tells the function whether the given base address must be honoured or should be considered as a hint only. The API considers a zero base address as meaning any base address, which must never be considered as a fixed value. Part of the implementation

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Marcel Apfelbaum
On Thu, 2014-10-23 at 07:57 -0600, Alex Williamson wrote: > On Thu, 2014-10-23 at 13:44 +, Stuart Yoder wrote: > > > > > -Original Message- > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > > Sent: Wednesday, October 22, 2014 1:33 PM > > > To: Marcel Apfelbaum > > >

[PATCH 0/4] Low/high memory CMA reservation fixes

2014-10-23 Thread Laurent Pinchart
Hello, This patch set fixes an issue introduced by commits 95b0e655f914 ("ARM: mm: don't limit default CMA region only to low memory") and f7426b983a6a ("mm: cma: adjust address limit to avoid hitting low/high memory boundary") resulting in reserved areas crossing the low/high memory boundary.

[PATCH 4/4] mm: cma: Use %pa to print physical addresses

2014-10-23 Thread Laurent Pinchart
Casting physical addresses to unsigned long and using %lu truncates the values on systems where physical addresses are larger than 32 bits. Use %pa and get rid of the cast instead. Signed-off-by: Laurent Pinchart --- mm/cma.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-)

[patch] mm: memcontrol: inline memcg->move_lock locking

2014-10-23 Thread Johannes Weiner
The wrappers around taking and dropping the memcg->move_lock spinlock add nothing of value. Inline the spinlock calls into the callsites. Signed-off-by: Johannes Weiner Acked-by: Vladimir Davydov --- mm/memcontrol.c | 28 ++-- 1 file changed, 6 insertions(+), 22

[patch] mm: memcontrol: uncharge pages on swapout fix

2014-10-23 Thread Johannes Weiner
Vladimir notes: > > + local_irq_disable(); > > + mem_cgroup_charge_statistics(memcg, page, -1); > > + memcg_check_events(memcg, page); > > + local_irq_enable(); > > AFAICT mem_cgroup_swapout() is called under mapping->tree_lock with irqs > disabled, so we should use irq_save/restore here.

Re: [PATCH v4 3/7] [RFC] arm/arm64: introduce is_dma_coherent

2014-10-23 Thread Stefano Stabellini
On Wed, 22 Oct 2014, Stefano Stabellini wrote: > On Mon, 13 Oct 2014, Stefano Stabellini wrote: > > On Mon, 13 Oct 2014, Will Deacon wrote: > > > On Mon, Oct 13, 2014 at 12:16:14PM +0100, Stefano Stabellini wrote: > > > > On Fri, 10 Oct 2014, Stefano Stabellini wrote: > > > > > On Fri, 10 Oct

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-23 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 23, 2014 at 04:12:13PM +0200, Jiri Olsa escreveu: > On Thu, Oct 23, 2014 at 10:37:24AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Oct 22, 2014 at 10:46:59AM -0700, Sukadev Bhattiprolu escreveu: > > > Jiri Olsa [jo...@redhat.com] wrote: > > > | > + goto out;

[PATCH v3 1/5] PM / clock_ops: Add pm_clk_add_clk()

2014-10-23 Thread Grygorii Strashko
From: Geert Uytterhoeven The existing pm_clk_add() allows to pass a clock by con_id. However, when referring to a specific clock from DT, no con_id is available. Add pm_clk_add_clk(), which allows to specify the struct clk * directly. CC: Ulf Hansson CC: Dmitry Torokhov Reviewed-by: Santosh

[PATCH v3 0/5] ARM: keystone: pm: switch to use generic pm domains

2014-10-23 Thread Grygorii Strashko
Hi Santosh, Kevin, This series switches Keystone 2 PM code to use Generic PM domains instead of PM clock domains because of the lack of DT support for the last. It will finally allow to enable Runtime PM for Keystone 2. Patch 1 was reused from [1]. RFC version of patches can be found at [2].

[PATCH v3 4/5] ARM: keystone: pm: switch to use generic pm domains

2014-10-23 Thread Grygorii Strashko
This patch switches Keystone 2 PM code to use Generic PM domains instead of PM clock domains because of the lack of DT support for the last. CC: Ulf Hansson CC: Geert Uytterhoeven CC: Dmitry Torokhov Reviewed-by: Santosh Shilimkar Reviewed-by: Kevin Hilman Signed-off-by: Grygorii Strashko

[PATCH v3 2/5] PM / clock_ops: make __pm_clk_enable more generic

2014-10-23 Thread Grygorii Strashko
Now there are two places in code which do the same things, so allow __pm_clk_enable() to accept pointer on pm_clock_entry structure as second parameter instead of pointer on clock and remove duplicated code. Also, updated function intended to be used by the following patch. CC: Santosh Shilimkar

[PATCH v3 3/5] PM / clock_ops: add and enable clocks always if !CONFIG_PM_RUNTIME

2014-10-23 Thread Grygorii Strashko
Device's clocks need to be enabled always at probing time if !CONFIG_PM_RUNTIME - in that way, device will become accessible and, later, its clocks can be disabled/enabled during system suspend/resume by using pm_clk_suspend/pm_clk_resume APIs. But now, the clocks management code doesn't enable

[PATCH v3 5/5] ARM: dts: keystone: add generic pm controller node

2014-10-23 Thread Grygorii Strashko
Add TI Keystone 2 Generic PM Controller node and attach the Davinci MDIO device to it. CC: Santosh Shilimkar CC: Kevin Hilman CC: Ulf Hansson CC: Geert Uytterhoeven Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/keystone.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [RFC][PATCH 3/6] mm: VMA sequence count

2014-10-23 Thread Peter Zijlstra
On Thu, Oct 23, 2014 at 03:36:16PM +0300, Kirill A. Shutemov wrote: > On Wed, Oct 22, 2014 at 03:44:16PM +0200, Peter Zijlstra wrote: > > On Wed, Oct 22, 2014 at 02:15:54PM +0200, Peter Zijlstra wrote: > > > On Wed, Oct 22, 2014 at 02:53:04PM +0300, Kirill A. Shutemov wrote: > > > > Em, no. In

Re: [RFC 0/4] [RFC] slub: Fastpath optimization (especially for RT)

2014-10-23 Thread Christoph Lameter
On Thu, 23 Oct 2014, Joonsoo Kim wrote: > Preemption disable during very short code would cause large problem for RT? This is the hotpath and preempt enable/disable adds a significant number of cycles. > And, if page_address() and virt_to_head_page() remain as current patchset > implementation,

Re: [PATCH/TRIVIAL 5/5] usb: gadget: zero: Spelling s/infrastucture/infrastructure/

2014-10-23 Thread Felipe Balbi
On Wed, Oct 22, 2014 at 11:49:03AM +0200, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven > Cc: Felipe Balbi I'd like to have a commit log, but no strong feelings. Can you just resend with linux-usb in Cc ? You can add my Acked-by: Felipe Balbi Jiri, let me know if you prefer

Re: [patch 2/2] mm: memcontrol: fix missed end-writeback page accounting

2014-10-23 Thread Johannes Weiner
On Thu, Oct 23, 2014 at 03:03:31PM +0200, Michal Hocko wrote: > On Wed 22-10-14 14:29:28, Johannes Weiner wrote: > > 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API") changed page > > migration to uncharge the old page right away. The page is locked, > > unmapped, truncated, and off the LRU,

Re: [PATCH] usb: serial: Perform verification for FTDI FT232R devices

2014-10-23 Thread Russ Dill
On Thu, Oct 23, 2014 at 5:44 AM, Hector Martin wrote: > NAK. This patch neither accomplishes what FTDI intended, nor what the > author humorously intended. > >> + /* Attempt to set Vendor ID to 0 */ >> + eeprom_data[1] = 0; >> + >> + /* Calculate new checksum to avoid bricking devices

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-23 Thread Jiri Olsa
On Thu, Oct 23, 2014 at 10:37:24AM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Oct 22, 2014 at 10:46:59AM -0700, Sukadev Bhattiprolu escreveu: > > Jiri Olsa [jo...@redhat.com] wrote: > > | > + goto out; > > | > + } > > | > + dso->dwfl = dwfl;

Re: [PATCH] block: wrong return value

2014-10-23 Thread Jens Axboe
On 10/23/2014 07:20 AM, Sudip Mukherjee wrote: > while compiling integer err was showing as a set but unused variable. > elevator_init_fn can be either cfq_init_queue or deadline_init_queue > or noop_init_queue. > all three of these functions are returning -ENOMEM if they fail to > allocate the

Re: [PATCH] scsi: remove unused label

2014-10-23 Thread Jens Axboe
On 10/23/2014 06:32 AM, Sudip Mukherjee wrote: > commit "374f8fdea4aabec8e918cf9951e51bfa4f570ea8" has fixed a problem by > jumping to the correct label,but the previous incorrect label was not > removed and it was still there in the code unused. This one was fixed yesterday. -- Jens Axboe --

Re: PROBLEM: BUG appearing when trying to allocate interrupt on Exynos MCT after CPU hotplug

2014-10-23 Thread Russell King - ARM Linux
On Thu, Oct 23, 2014 at 03:51:16PM +0200, Marcin Jabrzyk wrote: > [1.] One line summary of the problem: "BUG: sleeping function called from > invalid context at mm/slub.c:1250" after CPU hotplug I'm really not surprised. > When SoC have MCT_INT_SPI interrupt it is being allocated after

RE: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Stuart Yoder
> -Original Message- > From: Marcel Apfelbaum [mailto:marce...@redhat.com] > Sent: Thursday, October 23, 2014 7:32 AM > To: Alex Williamson > Cc: linux-...@vger.kernel.org; bhelg...@google.com; > linux-kernel@vger.kernel.org; mar...@redhat.com; > m...@redhat.com; Yoder Stuart-B08248 >

[PATCH v2 2/2] mtd: hisilicon: add device tree binding documentation

2014-10-23 Thread Zhou Wang
Signed-off-by: Zhou Wang --- .../devicetree/bindings/mtd/hisi504-nand.txt | 40 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/hisi504-nand.txt diff --git a/Documentation/devicetree/bindings/mtd/hisi504-nand.txt

[PATCH v2 1/2] mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc

2014-10-23 Thread Zhou Wang
Signed-off-by: Zhou Wang --- drivers/mtd/nand/Kconfig|5 + drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/hisi504_nand.c | 836 +++ 3 files changed, 842 insertions(+) create mode 100644 drivers/mtd/nand/hisi504_nand.c diff --git

[PATCH v2 0/2] mtd: hisilicon: add a new driver for NAND controller of hisilicon hip04 Soc

2014-10-23 Thread Zhou Wang
This patchset adds the support for NAND controller of hisilicon hip04 Soc. The NAND controller IP was developed by hisilicon and needs a new driver to support it. This patchset is based on v3.18-rc1. I have tested that NAND flash controller works fine in Hip04 D01 board. Changes in v2: - Remove

Re: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-23 Thread Dan Streetman
On Tue, Oct 21, 2014 at 9:02 AM, Dan Streetman wrote: > On Sun, Oct 19, 2014 at 11:29 PM, Neil Zhang wrote: >> The current per-cpu offline info won't be updated if it is >> hotplugged in/out by a kernel governer. >> Let's update it via cpu notifier. >> >> Signed-off-by: Neil Zhang >> --- >>

Re: [PATCH linux-next] iommu: add iommu for s390 platform

2014-10-23 Thread Frank Blaschka
On Thu, Oct 23, 2014 at 02:41:15PM +0200, Joerg Roedel wrote: > On Wed, Oct 22, 2014 at 05:43:20PM +0200, Frank Blaschka wrote: > > Basically there are no limitations. Depending on the s390 maschine > > generation a device starts its IOVA at a specific address (announced by > > the HW). But as I

Re: [PATCH RFC v3 09/16] virtio: set FEATURES_OK

2014-10-23 Thread Michael S. Tsirkin
On Thu, Oct 23, 2014 at 03:30:06PM +0200, Cornelia Huck wrote: > On Thu, 23 Oct 2014 15:51:39 +0300 > "Michael S. Tsirkin" wrote: > > > On Thu, Oct 23, 2014 at 02:28:08PM +0200, Cornelia Huck wrote: > > > On Wed, 22 Oct 2014 21:44:44 +0300 > > > "Michael S. Tsirkin" wrote: > > > > > > > set

Re: [patch 2/2] mm: memcontrol: fix missed end-writeback page accounting

2014-10-23 Thread Johannes Weiner
On Wed, Oct 22, 2014 at 01:39:36PM -0700, Andrew Morton wrote: > On Wed, 22 Oct 2014 14:29:28 -0400 Johannes Weiner wrote: > > @@ -1061,9 +1062,10 @@ void page_add_file_rmap(struct page *page) > > */ > > void page_remove_rmap(struct page *page) > > { > > + struct mem_cgroup

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Alex Williamson
On Thu, 2014-10-23 at 13:44 +, Stuart Yoder wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Wednesday, October 22, 2014 1:33 PM > > To: Marcel Apfelbaum > > Cc: linux-...@vger.kernel.org; bhelg...@google.com; > >

Re: [PATHC] net: napi_reuse_skb() should check pfmemalloc

2014-10-23 Thread Roman Gushchin
Signed-off-by: Roman Gushchin -- @klamm 23.10.2014, 17:30, "Eric Dumazet" : > From: Eric Dumazet > > Do not reuse skb if it was pfmemalloc tainted, otherwise > future frame might be dropped anyway. > > Signed-off-by: Eric Dumazet > --- >  net/core/dev.c |    4 >  1 file changed, 4

Re: [PATCH 10/14] net: dsa/mv88e6352: Implement EEPROM access functions

2014-10-23 Thread Andrew Lunn
On Wed, Oct 22, 2014 at 09:03:18PM -0700, Guenter Roeck wrote: > MV88E6352 supports read and write access to its configuration eeprom. Hi Guenter I don't have the datasheet for the MV88E6352. Is the EEPROM built in, or external on an i2c bus? > +static int mv88e6352_get_eeprom_len(struct

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Marcel Apfelbaum
On Thu, 2014-10-23 at 13:51 +, Stuart Yoder wrote: > > > -Original Message- > > From: Marcel Apfelbaum [mailto:marce...@redhat.com] > > Sent: Thursday, October 23, 2014 7:32 AM > > To: Alex Williamson > > Cc: linux-...@vger.kernel.org; bhelg...@google.com; > >

Re: [patch 2/2] mm: memcontrol: fix missed end-writeback page accounting

2014-10-23 Thread Johannes Weiner
On Wed, Oct 22, 2014 at 01:39:36PM -0700, Andrew Morton wrote: > On Wed, 22 Oct 2014 14:29:28 -0400 Johannes Weiner wrote: > > > 0a31bc97c80c ("mm: memcontrol: rewrite uncharge API") changed page > > migration to uncharge the old page right away. The page is locked, > > unmapped, truncated, and

[PATCH] of: Fix brace position for struct of_device_id definition

2014-10-23 Thread Daniel Thompson
Currently it is not easy to grep for the definition of struct of_device_id. This is trivially fixed by moving the brace to the right place. Signed-off-by: Daniel Thompson Cc: Grant Likely Cc: Rob Herring --- include/linux/mod_devicetable.h | 3 +-- 1 file changed, 1 insertion(+), 2

Re: [PATCH 3/3] selftests/kcmp: Always try to build the test

2014-10-23 Thread Shuah Khan
On 10/23/2014 07:06 AM, Christopher Covington wrote: > Hi Michael, > > On 10/23/2014 01:07 AM, Michael Ellerman wrote: >> Don't prevent the test building on non-x86. Just try and build it and >> let the chips fall where they may. > > As a user of kcmp via CRIU on arm and arm64, thanks! > >>

[PATCH v2] ARM: supplementing IO accessors with 64 bit capability

2014-10-23 Thread mathieu . poirier
From: Mathieu Poirier Some drivers on ARMv7 need 64 bit read and writes. Signed-off-by: Mathieu Poirier --- Changes for v2: - Protecting [readq, writeq]_relaxed with architecture constraint. arch/arm/include/asm/io.h | 25 + 1 file changed, 25 insertions(+) diff

PROBLEM: BUG appearing when trying to allocate interrupt on Exynos MCT after CPU hotplug

2014-10-23 Thread Marcin Jabrzyk
[1.] One line summary of the problem: "BUG: sleeping function called from invalid context at mm/slub.c:1250" after CPU hotplug [2.] Full description of the problem/report: This was tested on Exynos 3250 board with https://lkml.org/lkml/2014/9/24/441 applied. Board is booting to /bin/sh. After

Re: [PATCH v3 58/59] dmaengine: Add a warning for drivers not using the generic slave caps retrieval

2014-10-23 Thread Maxime Ripard
On Thu, Oct 23, 2014 at 04:38:39PM +0300, Laurent Pinchart wrote: > Hi Maxime, > > On Thursday 23 October 2014 15:19:33 Maxime Ripard wrote: > > On Thu, Oct 23, 2014 at 12:21:31AM +0300, Laurent Pinchart wrote: > > > Hi Maxime, > > > > > > Thank you for the patch. > > > > > > On Wednesday 22

[PATCH 0/2] integrity fixes

2014-10-23 Thread Dmitry Kasatkin
Hi, Here is couple of patches to fix bugs reported by Jan Kara to prevent kernel oopses when setxattr() is called without xattr values. - Dmitry Dmitry Kasatkin (2): ima: check xattr value length in ima_inode_setxattr() evm: check xattr value length in evm_inode_setxattr()

[RFC 0/2] PM and DRM: Add runtime PM to Exynos DSI

2014-10-23 Thread Krzysztof Kozlowski
Hi, The goal of the patch 2 is to add runtime PM to the Exynos DSI driver. This allows LCD power domain to be turned off. However after adding this patch an interesing issue came in. The DSI driver could not runtime resume during sustem resume because power domain was not allowed to power on.

[PATCH 2/2] evm: check xattr value length in evm_inode_setxattr()

2014-10-23 Thread Dmitry Kasatkin
evm_inode_setxattr() can be called with no value. Function does not check the length so that following command can be used to produce kernel oops: setfattr -n security.evm FOO. This patch fixes it. [ 1106.396921] BUG: unable to handle kernel NULL pointer dereference at (null) [

[PATCH 1/2] ima: check xattr value length in ima_inode_setxattr()

2014-10-23 Thread Dmitry Kasatkin
ima_inode_setxattr() can be called with no value. Function does not check the length so that following command can be used to produce kernel oops: setfattr -n security.ima FOO. This patch fixes it. [ 261.562522] BUG: unable to handle kernel NULL pointer dereference at (null) [

[RFC 1/2] PM / Domains: Power on domain early during system resume

2014-10-23 Thread Krzysztof Kozlowski
When resuming the system the power domain has to be powered on early so any runtime PM aware devices could resume. This fixes following scenario reproduced on Exynos DRM: 1. Power domain is off before suspending the system. 2. System is suspended to RAM. 3. Resuming starts. The Exynos DRM driver

[RFC 2/2] drm/exynos/dsi: Add runtime PM so LCD power domain could be turned off

2014-10-23 Thread Krzysztof Kozlowski
Add runtime Power Management to the Exynos DSI driver so the LCD power domain could be turned off. This slightly reduces the energy consumption when screen is completely turned off. On Trats2 board when the system was idle the energy consumption dropped by 1% (from 92.2 mA to 91.1 mA). Before

Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

2014-10-23 Thread Andrew Lunn
> >>+static DEVICE_ATTR_RO(temp1_input); > > > >You probably want the number of temperature sensors to come from the > >switch driver, and support arbitrary number of temperature sensors? > > In that case we would need the number of sensors, pass a sensor index, > and create a dynamic number of

RE: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Stuart Yoder
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday, October 22, 2014 1:33 PM > To: Marcel Apfelbaum > Cc: linux-...@vger.kernel.org; bhelg...@google.com; > linux-kernel@vger.kernel.org; mar...@redhat.com; > m...@redhat.com; Yoder

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Marcel Apfelbaum
On Thu, 2014-10-23 at 07:11 -0600, Alex Williamson wrote: > On Thu, 2014-10-23 at 15:32 +0300, Marcel Apfelbaum wrote: > > On Wed, 2014-10-22 at 12:32 -0600, Alex Williamson wrote: > > > [cc+ stuart] > > > > > > On Mon, 2014-10-20 at 17:04 +0300, Marcel Apfelbaum wrote: > > > > Scanning a lot of

Re: [PATCH v3 58/59] dmaengine: Add a warning for drivers not using the generic slave caps retrieval

2014-10-23 Thread Laurent Pinchart
Hi Maxime, On Thursday 23 October 2014 15:19:33 Maxime Ripard wrote: > On Thu, Oct 23, 2014 at 12:21:31AM +0300, Laurent Pinchart wrote: > > Hi Maxime, > > > > Thank you for the patch. > > > > On Wednesday 22 October 2014 17:44:12 Maxime Ripard wrote: > > > For the slave caps retrieval to be

Re: [RESEND PATCH] ioatdma, fix dma mapping errors

2014-10-23 Thread Dan Williams
On Thu, Oct 23, 2014 at 4:38 AM, Prarit Bhargava wrote: > No response from anyone the first time ... > Sorry about that, thanks for re-posting. > P. > > 8< > > Several systems are showing the following stack trace: > > WARNING: CPU: 0 PID: 2352 at lib/dma-debug.c:1140

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-23 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 22, 2014 at 10:46:59AM -0700, Sukadev Bhattiprolu escreveu: > Jiri Olsa [jo...@redhat.com] wrote: > | > + goto out; > | > + } > | > + dso->dwfl = dwfl; > | > | so by this we get powerpc arch code sharing dw handle via dso object, > | but we have lot of

[PATCH v2 2/3] tpm: two-phase chip management functions

2014-10-23 Thread Jarkko Sakkinen
tpm_register_hardware() and tpm_remove_hardware() are called often before initializing the device. This is wrong order since it could be that main TPM driver needs a fully initialized chip to be able to do its job. For example, now it is impossible to move common startup functions such as

[PATCH v2 3/3] tpm: fix multiple race conditions in tpm_ppi.c

2014-10-23 Thread Jarkko Sakkinen
Traversal of the ACPI device tree was not done right. It should lookup PPI only under the ACPI device that it is associated. Otherwise, it could match to a wrong PPI interface if there are two TPM devices in the device tree. Removed global ACPI handle and version string from tpm_ppi.c as this is

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-23 Thread Arnd Bergmann
On Thursday 23 October 2014 10:13:09 Liviu Dudau wrote: > > @@ -335,7 +329,9 @@ void __init cns3xxx_pcie_init_late(void) > > cns3xxx_pwr_soft_rst(0x1 << PM_SOFT_RST_REG_OFFST_PCIE(i)); > > cns3xxx_pcie_check_link(_pcie[i]); > >

[PATCH v2 0/3] prepare for TPM 2.0

2014-10-23 Thread Jarkko Sakkinen
This patch set fixes two race conditions in the TPM subsystem: * Two-phase initialization for struct tpm_chip so that device can initialize fully initialize before exposing itself to the user space. Also, in future TPM2 devices must be flagged before they can be registered. * Machines where

[PATCH v2 1/3] tpm: merge duplicate transmit_cmd() functions

2014-10-23 Thread Jarkko Sakkinen
Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. Added "tpm_" prefix for consistency sake. Changed cmd parameter as opaque. This enables to use separate command structures for TPM1 and TPM2 commands in future. Loose coupling works fine here. Signed-off-by: Jarkko Sakkinen ---

[PATHC] net: napi_reuse_skb() should check pfmemalloc

2014-10-23 Thread Eric Dumazet
From: Eric Dumazet Do not reuse skb if it was pfmemalloc tainted, otherwise future frame might be dropped anyway. Signed-off-by: Eric Dumazet --- net/core/dev.c |4 1 file changed, 4 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index b793e3521a36..945bbd001359 100644

Re: [PATCH RFC v3 09/16] virtio: set FEATURES_OK

2014-10-23 Thread Cornelia Huck
On Thu, 23 Oct 2014 15:51:39 +0300 "Michael S. Tsirkin" wrote: > On Thu, Oct 23, 2014 at 02:28:08PM +0200, Cornelia Huck wrote: > > On Wed, 22 Oct 2014 21:44:44 +0300 > > "Michael S. Tsirkin" wrote: > > > > > set FEATURES_OK as per virtio 1.0 spec > > > > > > Signed-off-by: Michael S. Tsirkin

Re: [PATCH 06/14] net: dsa: Add support for hardware monitoring

2014-10-23 Thread Guenter Roeck
On 10/23/2014 01:24 AM, Richard Cochran wrote: On Wed, Oct 22, 2014 at 10:06:41PM -0700, Guenter Roeck wrote: On 10/22/2014 09:37 PM, Florian Fainelli wrote: You probably want the number of temperature sensors to come from the switch driver, and support arbitrary number of temperature sensors?

Re: [PATCH v2] Staging: iio: adc: fix line over 80 characters

2014-10-23 Thread Alexandre Belloni
Hi, On 23/10/2014 at 07:53:36 -0500, Brian Vandre wrote : > With all the replies I have gotten it seems like there might not be a good > path forward > with this patch. I am starting to agree with what Daniel Baluta said above > that this doesn't > make the code easier to read. All the other

[RFC] pinctrl: Provide a generic device tree binding for per-pin pin controllers

2014-10-23 Thread Sascha Hauer
Most iomux controllers allow a configuration per pin. These currently have no common device tree binding. There are many different SoC specific bindings for this class of iomux controllers. Some controllers artificially group pins together where in hardware no groups exist (for example lantiq).

hung tasks in 3.18.0-rc1-00221-gc3351df

2014-10-23 Thread Meelis Roos
This is first real test on a computer where 3.17 did hang. Fist the hung task info, then full dmesg. [ 960.346611] INFO: task kworker/u16:0:6 blocked for more than 120 seconds. [ 960.346616] Tainted: GW 3.18.0-rc1-00221-gc3351df #150 [ 960.346618] "echo 0 >

Re: [PATCH 02/14] net: dsa: Report known silicon revisions for Marvell 88E6060

2014-10-23 Thread Guenter Roeck
On 10/23/2014 05:51 AM, Sergei Shtylyov wrote: Hello. On 10/23/2014 8:03 AM, Guenter Roeck wrote: Report known silicon revisions when probing Marvell 88E6060 switches. Signed-off-by: Guenter Roeck --- drivers/net/dsa/mv88e6060.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-)

[PATCH] block: wrong return value

2014-10-23 Thread Sudip Mukherjee
while compiling integer err was showing as a set but unused variable. elevator_init_fn can be either cfq_init_queue or deadline_init_queue or noop_init_queue. all three of these functions are returning -ENOMEM if they fail to allocate the queue. so we should actually be returning the error code

Re: [PATCH v3 58/59] dmaengine: Add a warning for drivers not using the generic slave caps retrieval

2014-10-23 Thread Maxime Ripard
Hi, On Thu, Oct 23, 2014 at 12:21:31AM +0300, Laurent Pinchart wrote: > Hi Maxime, > > Thank you for the patch. > > On Wednesday 22 October 2014 17:44:12 Maxime Ripard wrote: > > For the slave caps retrieval to be really useful, most drivers need to > > implement it. > > > > Hence, we need to

Re: [PATCH 1/2] clocksource: enable pxa_timer for SA-1100 platform

2014-10-23 Thread Dmitry Eremin-Solenikov
2014-10-20 23:07 GMT+04:00 Arnd Bergmann : > On Wednesday 15 October 2014 16:50:04 Dmitry Eremin-Solenikov wrote: >> SA-11x0 platform used the same IP block as was used on PXA. Consequently >> it makes sense to have only one driver. Enable pxa_timer clocksource for >> StrongARM platform. >> >>

Re: [PATCH 1/4] perf,x86: De-obfuscate HSW offcore bits

2014-10-23 Thread Peter Zijlstra
On Thu, Oct 23, 2014 at 02:16:19PM +0200, Borislav Petkov wrote: > On Thu, Oct 23, 2014 at 12:51:20PM +0200, Peter Zijlstra wrote: > > Andi introduced the HSW cache events array, but used magic constants > > against convention as set by all the other uarchs. Try and deobfuscate > > these a bit. >

Re: [PATCH v4] PCI: add kernel parameter to override devid<->driver mapping.

2014-10-23 Thread Alex Williamson
On Thu, 2014-10-23 at 15:32 +0300, Marcel Apfelbaum wrote: > On Wed, 2014-10-22 at 12:32 -0600, Alex Williamson wrote: > > [cc+ stuart] > > > > On Mon, 2014-10-20 at 17:04 +0300, Marcel Apfelbaum wrote: > > > Scanning a lot of devices during boot requires a lot of time. > > > On other scenarios

Re: perf: Translating mmap2 ids into socket info?

2014-10-23 Thread Don Zickus
On Thu, Oct 23, 2014 at 01:30:01PM +0200, Peter Zijlstra wrote: > On Wed, Oct 22, 2014 at 04:38:34PM -0400, Don Zickus wrote: > > Ha! I have been telling myself for a year I would try to learn more about > > those offcore/uncore counters. Is there documentation for how to access > > the uncore

Re: [PATCH] [media] gspca_touptek: Add support for ToupTek UCMOS series USB cameras

2014-10-23 Thread Hans de Goede
Hi, On 10/05/2014 08:43 AM, John McMaster wrote: > Adds support for AmScope MU800 / ToupTek UCMOS08000KPB USB microscope camera. First of all many thanks for writing this driver, and also for submitting it upstream. We always appreciate it a lot when people put in the effort to write a driver to

Re: [PATCH 3/3] selftests/kcmp: Always try to build the test

2014-10-23 Thread Christopher Covington
Hi Michael, On 10/23/2014 01:07 AM, Michael Ellerman wrote: > Don't prevent the test building on non-x86. Just try and build it and > let the chips fall where they may. As a user of kcmp via CRIU on arm and arm64, thanks! > diff --git a/tools/testing/selftests/kcmp/Makefile >

Re: linux-next: manual merge of the akpm-current tree with the pm tree

2014-10-23 Thread Michal Hocko
On Thu 23-10-14 14:09:05, Stephen Rothwell wrote: > Hi Andrew, > > Today's linux-next merge of the akpm-current tree got a conflict in > include/linux/oom.h, kernel/power/process.c and mm/oom_kill.c between > commit 5695be142e20 ("OOM, PM: OOM killed task shouldn't escape PM > suspend") from the

[PATCH] virtio_blk: make serial attribute static

2014-10-23 Thread Michael S. Tsirkin
It's never declared so no need to make it extern. Signed-off-by: Michael S. Tsirkin --- drivers/block/virtio_blk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 93e23a7..a68f4c6 100644 ---

<    1   2   3   4   5   6   7   8   9   10   >