Re: [PATCH net-next 1/3] lib: Resizable, Scalable, Concurrent Hash Table

2014-08-01 Thread Thomas Graf
On 08/01/14 at 12:26pm, Patrick McHardy wrote: > On Fri, Aug 01, 2014 at 10:51:58AM +0200, Thomas Graf wrote: > > --- /dev/null > > +++ b/include/linux/rhashtable.h > > @@ -0,0 +1,213 @@ > > +/* > > + * Resizable, Scalable, Concurrent Hash Table > > + * > > + * Copyright (c) 2014 Thomas Graf > > +

Re: [PATCH net-next 1/3] lib: Resizable, Scalable, Concurrent Hash Table

2014-08-01 Thread Thomas Graf
On 08/01/14 at 12:01pm, Nikolay Aleksandrov wrote: > I see that ht->shift is being set but then ht is being zeroed, wouldn't this > allow for the table to double ilog2(tbl->size) times more ? Absolutely, thanks for catching this! -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [printk] INFO: possible circular locking dependency detected

2014-08-01 Thread Jan Kara
Hello, On Fri 01-08-14 09:26:38, Wu Fengguang wrote: > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit 939f04bec1a4ef6ba4370b0f34b01decc844b1b1 > Author: Jan Kara > AuthorDate: Wed Jun 4 16:11:37 2014 -0700 > Commit: Linus Torvalds > CommitDate: Wed Jun

Re: [PATCH v1.3 2/18] arcmsr: Add code to support MSI-X, MSI interrupt

2014-08-01 Thread Ching Huang
Hi Alexander, Thanks for your advice. This patch was revised according to your comment. Signed-off-by: Ching --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2014-04-28 16:02:46.0 +0800 +++ b/drivers/scsi/arcmsr/arcmsr.h

Re: [PATCH net-next 3/3] nftables: Convert nft_hash to use generic rhashtable

2014-08-01 Thread Thomas Graf
On 08/01/14 at 11:17am, Patrick McHardy wrote: > On 1. August 2014 09:52:00 GMT+01:00, Thomas Graf wrote: > >If the set size is known in advance, the table is sized accordingly, > >otherwise the table size will default to 64. This is a slight change > >in behaviour as previously the default was 4

[BUG cpufreq] Invalid argument on writing to scaling_governor

2014-08-01 Thread Fengguang Wu
Hi Prarit, I noticed that commit dbcbfe6aa0d61ae5e13cab43b30802482007c199 ("cpufreq: hold policy->rwsem for duration of changing governors") will cause this problem: root@nhm4 ~# echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor -bash: echo: write error: Invalid argument

Re: [BUG cpufreq] Invalid argument on writing to scaling_governor

2014-08-01 Thread Prarit Bhargava
On 08/01/2014 06:43 AM, Fengguang Wu wrote: > Hi Prarit, > > I noticed that commit dbcbfe6aa0d61ae5e13cab43b30802482007c199 ("cpufreq: hold > policy->rwsem for duration of changing governors") will cause this problem: > > root@nhm4 ~# echo performance > > /sys/devices/system/cpu/cpu3/cpufreq/s

Re: [PATCH 04/19] ARM64 / ACPI: Introduce arch_fix_phys_package_id() for cpu topology

2014-08-01 Thread Sudeep Holla
On 01/08/14 07:35, Hanjun Guo wrote: On 2014-7-29 2:51, Sudeep Holla wrote: On 24/07/14 14:00, Hanjun Guo wrote: arch_fix_phys_package_id() will be called in ACPI core to use the slot number provided by ACPI to update the physical package id, then we can get the right value in the "physical i

Re: [PATCH net-next 3/3] nftables: Convert nft_hash to use generic rhashtable

2014-08-01 Thread Patrick McHardy
On 1. August 2014 11:39:01 GMT+01:00, Thomas Graf wrote: >On 08/01/14 at 11:17am, Patrick McHardy wrote: >> On 1. August 2014 09:52:00 GMT+01:00, Thomas Graf >wrote: >> >If the set size is known in advance, the table is sized accordingly, >> >otherwise the table size will default to 64. This is a

Re: [PATCH v1.3 2/18] arcmsr: Add code to support MSI-X, MSI interrupt

2014-08-01 Thread Dan Carpenter
On Fri, Aug 01, 2014 at 06:38:48PM +0800, Ching Huang wrote: > Hi Alexander, > > Thanks for your advice. > This patch was revised according to your comment. > > Signed-off-by: Ching This patch is something that can't be applied at all. There is no changelog. Apply the patch with `cat email.txt

Re: [PATCH] xen-netback: Turn off the carrier if the guest is not able to receive

2014-08-01 Thread Wei Liu
On Wed, Jul 30, 2014 at 08:50:49PM +0100, Zoltan Kiss wrote: > Currently when the guest is not able to receive more packets, qdisc layer > starts > a timer, and when it goes off, qdisc is started again to deliver a packet > again. > This is a very slow way to drain the queues, consumes unnecessar

Re: [PATCH] x86, irq: Keep IRQ assignment for PCI devices during suspend/hibernation, bisected

2014-08-01 Thread Borislav Petkov
Ok, so I went and looked at tip and which branches could be the usual suspects. And whaddya know, tip/x86/apic was the first to pick and it contained the culprit: 6a38fa0e3c94 ("x86, irq, ACPI: Release IOAPIC pin when PCI device is disabled") It seems like my machine doesn't like releasing the I

Re: [PATCH -tip ] [BUGFIX] kprobes: Skip kretprobe hit in NMI context to avoid deadlock

2014-08-01 Thread Ingo Molnar
* Masami Hiramatsu wrote: > Skip kretprobe hit in NMI context, because if an NMI happens > inside the critical section protected by kretprobe_table.lock > and another(or same) kretprobe hit, pre_kretprobe_handler > tries to lock kretprobe_table.lock again. > Normal interrupts have no problem bec

Re: [FIX][RESEND PATCH v3] ARM: EXYNOS: Fix suspend/resume sequences

2014-08-01 Thread Bartlomiej Zolnierkiewicz
Hi, On Friday, August 01, 2014 10:51:37 AM Tomasz Figa wrote: > From: Tomasz Figa > > Due to recent consolidation of Exynos suspend and cpuidle code, some > parts of suspend and resume sequences are executed two times, once from > exynos_pm_syscore_ops and then from exynos_cpu_pm_notifier() and

Re: [PATCH] xen-netfront: Fix handling packets on compound pages with skb_segment

2014-08-01 Thread Wei Liu
On Thu, Jul 31, 2014 at 01:25:20PM -0700, David Miller wrote: > From: Zoltan Kiss > Date: Wed, 30 Jul 2014 14:25:30 +0100 [...] > Secondly, for something like UDP you can't just split the packet up > like this, or for any other datagram protocol for that matter. > > I know you're in a difficult s

Re: [Query] How to pass reboot arguments to secure firmware with PSCI spec

2014-08-01 Thread Jisheng Zhang
Hi Sudeep, On Fri, 1 Aug 2014 03:21:12 -0700 Sudeep Holla wrote: > > > On 01/08/14 11:06, Jisheng Zhang wrote: > > Hi Catalin and Will, > > > > I noticed that the following commit implement reboot via. PSCI > > SYSTEM_RESET function. So my question is how to handle the reboot > > arguments? >

Re: [RFC PATCH] mm: Add helpers for locked_vm

2014-08-01 Thread Benjamin Herrenschmidt
On Wed, 2014-07-30 at 14:47 +0200, Peter Zijlstra wrote: > On Wed, Jul 30, 2014 at 10:30:48PM +1000, Alexey Kardashevskiy wrote: > > > > No, this is not my intention here. Here I only want to increment the > > counter. > > Full and hard nack on that. It should always be tied to actual pages, we

[PATCH RFC] sysfs: fix the race of "parent deleted before child added"

2014-08-01 Thread Jianyu Zhan
From: Jianyu Zhan I've met such a race conditon the same as what commit 3a198886 ("sysfs: handle 'parent deleted before child added'") tackled. The senario got triggered under a torturing test of quick disk removal and plugging. The forementioned commit 3a198886 didn't really fix this race, it

Re: [PATCH v3 1/4] mfd: pm8xxx-spmi: add support for Qualcomm SPMI PMICs

2014-08-01 Thread Lee Jones
On Fri, 01 Aug 2014, Stanimir Varbanov wrote: > On 07/31/2014 11:48 AM, Stanimir Varbanov wrote: > > On 07/30/2014 12:54 AM, David Collins wrote: > >> On 07/24/2014 05:45 AM, Stanimir Varbanov wrote: > >>> From: Josh Cartwright > >>> > >>> The Qualcomm SPMI PMIC chips are components used with the

[REBASED PATCH] ARM: multi_v7_defconfig: Enable TI PIPE3 PHY driver

2014-08-01 Thread Roger Quadros
From: Roger Quadros This driver is needed by SATA, PCIe and USB modules on TI SoCs. Signed-off-by: Roger Quadros Acked-by: Tony Lindgren --- 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

Re: [PATCH] perf script: Fix possible memory leaks

2014-08-01 Thread Adrian Hunter
On 1/08/2014 11:24 a.m., Namhyung Kim wrote: Some paths in perf script don't call perf_session__delete() after creating a new session. Signed-off-by: Namhyung Kim --- tools/perf/builtin-script.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --g

[PATCH] staging: rtl8723au: Fix static symbol sparse warning

2014-08-01 Thread Miguel Oliveira
Fix sparse warning: drivers/staging/rtl8723au/core/rtw_efuse.c:579:5: warning: symbol 'efuse_GetCurrentSize23a' was not declared. Should it be static? Signed-off-by: Miguel Oliveira --- drivers/staging/rtl8723au/include/rtw_efuse.h |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

[PATCH] ata: libahci: Make host flags unsigned long

2014-08-01 Thread Thierry Reding
From: Thierry Reding Commit 725c7b570fda (ata: libahci_platform: move port_map parameters into the AHCI structure) moves flags into the struct ahci_host_priv's .flags field, which causes compiler warnings on 64-bit builds when that value is cast to a void * pointer. Rather than adding additional

Re: [PATCH 1/6] thermal: of: Add support for hardware-tracked trip points

2014-08-01 Thread Mikko Perttunen
Moi Eduardo :) On 30/07/14 17:16, Eduardo Valentin wrote: Terve Mikko, On Fri, Jun 27, 2014 at 11:11:34AM +0300, Mikko Perttunen wrote: This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number of trip points. Wh

Re: [PATCH v5 06/10] ARM: dts: Clean up exynos5250-smdk5250

2014-08-01 Thread Andreas Färber
Am 01.08.2014 06:54, schrieb Andreas Färber: > diff --git a/arch/arm/boot/dts/exynos5250.dtsi > b/arch/arm/boot/dts/exynos5250.dtsi > index ff1c09607631..30482fc523f9 100644 > --- a/arch/arm/boot/dts/exynos5250.dtsi > +++ b/arch/arm/boot/dts/exynos5250.dtsi > @@ -215,7 +215,7 @@ > cl

[PATCH net-next v4 0/3] Lockless netlink_lookup() with new concurrent hash table

2014-08-01 Thread Thomas Graf
Netlink sockets are maintained in a hash table to allow efficient lookup via the port ID for unicast messages. However, lookups currently require a read lock to be taken. This series adds a new generic, resizable, scalable, concurrent hash table based on the paper referenced in the first patch. It

[PATCH net-next 3/3] nftables: Convert nft_hash to use generic rhashtable

2014-08-01 Thread Thomas Graf
The sizing of the hash table and the practice of requiring a lookup to retrieve the pprev to be stored in the element cookie before the deletion of an entry is left intact. Signed-off-by: Thomas Graf Acked-by: Patrick McHardy --- net/netfilter/nft_hash.c | 292 +-

[PATCH net-next 2/3] netlink: Convert netlink_lookup() to use RCU protected hash table

2014-08-01 Thread Thomas Graf
Heavy Netlink users such as Open vSwitch spend a considerable amount of time in netlink_lookup() due to the read-lock on nl_table_lock. Use of RCU relieves the lock contention. Makes use of the new resizable hash table to avoid locking on the lookup. The hash table will grow if entries exceeds 75

[PATCH net-next 1/3] lib: Resizable, Scalable, Concurrent Hash Table

2014-08-01 Thread Thomas Graf
Generic implementation of a resizable, scalable, concurrent hash table based on [0]. The implementation supports both, fixed size keys specified via an offset and length, or arbitrary keys via own hash and compare functions. Lookups are lockless and protected as RCU read side critical sections. Au

[PATCH] serial/option: Add support for Option GTM671WFS

2014-08-01 Thread Ricardo Ribalda Delgado
After this patch: [5.389385] usbserial: USB Serial support registered for GSM modem (1-port) [5.390181] option 2-1.4:1.0: GSM modem (1-port) converter detected [5.390556] usb 2-1.4: GSM modem (1-port) converter now attached to ttyUSB0 [5.390636] option 2-1.4:1.1: GSM modem (1-port)

Re: [PATCH] Save command pool address of Scsi_Host

2014-08-01 Thread Christoph Hellwig
On Fri, Aug 01, 2014 at 08:27:05AM +0200, jgr...@suse.com wrote: > From: Juergen Gross > > If a scsi host driver specifies .cmd_len in it's scsi_host_template, a > driver's > private command pool is needed. scsi_find_host_cmd_pool() will locate it, but > scsi_alloc_host_cmd_pool() isn't saving t

PCI/x86 CPU Hangs: Need to enable CRS Software Visibility (Configuration Request Retry Status)

2014-08-01 Thread Rajat Jain
Hello, I'm using an Intel Haswell CPU (/proc/cpu at the end of mail). I have a PCIe endpoint (a PLX 8713 NT bridge) that will take a long time to initialize itself after a reset. In accordance with the PCIe spec, the device responds with the CRS when the kernel tries to enumerate the endpoint

[PATCH] clk: tegra: Implement memory-controller clock

2014-08-01 Thread Thierry Reding
From: Thierry Reding The memory controller clock runs either at half or the same frequency as the EMC clock. Signed-off-by: Thierry Reding --- Changes in v2: - split registration into a separate function that can be reused for all SoC generations, but pass in the name and parent parameters fo

Re: [PATCH] staging: rtl8723au: Fix static symbol sparse warning

2014-08-01 Thread Paul Bolle
On Fri, 2014-08-01 at 14:06 +0100, Miguel Oliveira wrote: > Fix sparse warning: > drivers/staging/rtl8723au/core/rtw_efuse.c:579:5: warning: symbol > 'efuse_GetCurrentSize23a' was not declared. Should it be static? > > Signed-off-by: Miguel Oliveira > --- > drivers/staging/rtl8723au/include/rtw

[PATCH v2 2/2] PCI: tegra: Implement a proper resource hierarchy

2014-08-01 Thread Thierry Reding
From: Thierry Reding Currently the resource hierarchy generated from the PCIe host bridge is completely flat: $ cat /proc/iomem -0fff : /pcie-controller@3000/pci@1,0 3000-37ff : pads 3800-39ff : afi 1000-1fff : cs

[PATCH v2 1/2] resource: Add device-managed request/release_resource()

2014-08-01 Thread Thierry Reding
From: Thierry Reding Provide device-managed implementations of the request_resource() and release_resource() functions. Upon failure to request a resource, the new devm_request_resource() function will output an error message for consistent error reporting. Signed-off-by: Thierry Reding --- Cha

Re: [ANNOUNCE] scsi patch queue tree updated

2014-08-01 Thread Christoph Hellwig
I've pushed out updates to both the core-for-3.17 and drivers-for-3.17 branches. I think we're in a good shape for the merge window, but I'd still like to get reviewers attention for a few driver updates that I'd love to get in still: - my eata patch to remove the driver_lock - the partially re

Re: [PATCH RFC 0/4] xen/pvhvm: fix shared_info and pirq issues with kexec

2014-08-01 Thread Vitaly Kuznetsov
David Vrabel writes: > On 15/07/14 14:40, Vitaly Kuznetsov wrote: >> With this patch series I'm trying to address several issues with kexec on >> pvhvm: >> - shared_info issue (1st patch, just sending Olaf's work with Konrad's fix) >> - create specific pvhvm shutdown handler for kexec (2nd patch

Re: [PATCH] Add support to check for FALLOC_FL_COLLAPSE_RANGE and FALLOC_FL_ZERO_RANGE crap modes

2014-08-01 Thread Theodore Ts'o
On Thu, Jul 31, 2014 at 08:09:10PM +0100, Hugo Mills wrote: > On Thu, Jul 31, 2014 at 01:53:33PM -0400, Nicholas Krause wrote: > > This adds checks for the stated modes as if they are crap we will return > > error > > not supported. > >You've just enabled two options, but you haven't actually

Re: [PATCH 2/2 v2] serial: Add support for Fintek F81216A LPC to 4 UART

2014-08-01 Thread One Thousand Gnomes
On Thu, 31 Jul 2014 21:22:26 +0200 Ricardo Ribalda Delgado wrote: > This patch lets you set the RS485 cappabilites of the device through > TIOCSRS485 and TIOCGRS485 as defined on Documentation/serial/serial-rs485.txt > > In order to probe the device, the PNP id and the device id is used. > > Si

Re: [PATCH 29/35] arm: omap: intc: switch over to linear irq domain

2014-08-01 Thread Tero Kristo
On 07/31/2014 04:49 PM, Felipe Balbi wrote: Hi, On Thu, Jul 31, 2014 at 10:57:09AM +0300, Tero Kristo wrote: On 07/31/2014 09:28 AM, Tony Lindgren wrote: * Felipe Balbi [140730 09:23]: Hi, On Wed, Jul 30, 2014 at 10:45:41AM -0500, Nishanth Menon wrote: On Wed, Jul 30, 2014 at 9:40 AM, Feli

Re: [PATCH 0/2] staging: comedi: addi_apci_1564: provide interface to read diagnostic status

2014-08-01 Thread Ian Abbott
On 01/08/14 02:55, Chase Southwood wrote: This patchset creates a simple subdevice to allow for reading of the board's diagnostic status, and then removes any code which is related to diagnostic interrupts, as the driver will not support these at this time. Chase Southwood (2): staging: comed

Re: [PATCH] x86, irq: Keep IRQ assignment for PCI devices during suspend/hibernation, bisected

2014-08-01 Thread Jiang Liu
On 2014/8/1 18:56, Borislav Petkov wrote: > Ok, > > so I went and looked at tip and which branches could be the usual > suspects. And whaddya know, tip/x86/apic was the first to pick and it > contained the culprit: > > 6a38fa0e3c94 ("x86, irq, ACPI: Release IOAPIC pin when PCI device is > disab

Re: [PATCH net-next 3/3] nftables: Convert nft_hash to use generic rhashtable

2014-08-01 Thread Nikolay Aleksandrov
On 08/01/2014 01:58 PM, Thomas Graf wrote: > The sizing of the hash table and the practice of requiring a lookup > to retrieve the pprev to be stored in the element cookie before the > deletion of an entry is left intact. > > Signed-off-by: Thomas Graf > Acked-by: Patrick McHardy > --- <> > @@ -

Re: [PATCH 2/2 v2] serial: Add support for Fintek F81216A LPC to 4 UART

2014-08-01 Thread Ricardo Ribalda Delgado
Hello >> Signed-off-by: Ricardo Ribalda Delgado > > This half of things looks good to me. Thanks!, What about the other half? Would you accept a two step approach? 1st: add support for 8250_core 2nd: handle rs485 ioctl on serial_core and modify all the other drivers to use that? (to avoid code

Re: [BUG cpufreq] Invalid argument on writing to scaling_governor

2014-08-01 Thread Rafael J. Wysocki
On Friday, August 01, 2014 06:46:51 AM Prarit Bhargava wrote: > > On 08/01/2014 06:43 AM, Fengguang Wu wrote: > > Hi Prarit, > > > > I noticed that commit dbcbfe6aa0d61ae5e13cab43b30802482007c199 ("cpufreq: > > hold > > policy->rwsem for duration of changing governors") will cause this problem:

[PATCHv10 0/4] Common Mailbox Framework

2014-08-01 Thread Jassi Brar
Hello, Here's v10. Not much different from v9. The code and the generic bindings looked good enough to relevant gods, but the patchset still needs some formal loving in the form of Acked-by's. Changes since v9: o Purely cosmetic changes - added headers and used BIT() Changes since v8: o Nits

[PATCHv10 1/4] mailbox: rename pl320-ipc specific mailbox.h

2014-08-01 Thread Jassi Brar
From: Suman Anna The patch 30058677 "ARM / highbank: add support for pl320 IPC" added a pl320 IPC specific header file as a generic mailbox.h. This file has been renamed appropriately to allow the introduction of the generic mailbox API framework. Acked-by: Mark Langsdorf Cc: Rafael J. Wysocki

[PATCHv10 2/4] mailbox: Introduce framework for mailbox

2014-08-01 Thread Jassi Brar
Introduce common framework for client/protocol drivers and controller drivers of Inter-Processor-Communication (IPC). Client driver developers should have a look at include/linux/mailbox_client.h to understand the part of the API exposed to client drivers. Similarly controller driver developers s

[PATCHv10 3/4] doc: add documentation for mailbox framework

2014-08-01 Thread Jassi Brar
Some explanations with examples of how to write to implement users and providers of the mailbox framework. Signed-off-by: Jassi Brar --- Documentation/mailbox.txt | 122 ++ 1 file changed, 122 insertions(+) create mode 100644 Documentation/mailbox.tx

[cxgb4i] INFO: suspicious RCU usage. ]

2014-08-01 Thread Fengguang Wu
Hi Anish, FYI, here is one more bug message for git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6 ("cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api") [7.671997] Key type encrypted registered [7.676647]

[PATCHv10 4/4] dt: mailbox: add generic bindings

2014-08-01 Thread Jassi Brar
Define generic bindings for the framework clients to request mailbox channels. Signed-off-by: Jassi Brar --- .../devicetree/bindings/mailbox/mailbox.txt| 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mailbox/mailbox.txt

[PATCH 0/3] perf: Remove orphaned children events

2014-08-01 Thread Jiri Olsa
hi, adding a support to remove orphaned children events, so they do not eat resources once parent event is gone as discussed here: lkml.kernel.org/r/1405079782-8139-3-git-send-email-jo...@kernel.org and here: http://marc.info/?l=linux-kernel&m=140568679618148&w=2 Also reachable in here: git:

[PATCH 2/3] perf: Set owner pointer for kernel events

2014-08-01 Thread Jiri Olsa
Adding fake EVENT_OWNER_KERNEL owner pointer value for kernel perf events, so we could distinguish it from user events, which needs special care in following patch. Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Mark Rutland Cc: Paul Mackerras Cc: Peter Zijlstra S

Re: [PATCH v1.3 6/18] arcmsr: precise checking adapter ID

2014-08-01 Thread Christoph Hellwig
> -static void arcmsr_define_adapter_type(struct AdapterControlBlock *acb) > +static bool arcmsr_define_adapter_type(struct AdapterControlBlock *acb) > { > struct pci_dev *pdev = acb->pdev; > u16 dev_id; > + > pci_read_config_word(pdev, PCI_DEVICE_ID, &dev_id); > acb->dev_i

[PATCH 3/3] perf: Add queued work to remove orphaned child events

2014-08-01 Thread Jiri Olsa
In cases when the owner task exits before the workload and the workload made some forks, all the events stay in until the last workload process exits. Thats' because each child event holds parent reference. We want to release all children events once the parent is gone, because at that time there

[PATCH 1/3] perf: Do not allow to create kernel events without handler

2014-08-01 Thread Jiri Olsa
Force kernel events to specify the handler, because there's no use for kernel perf event without it. Cc: Arnaldo Carvalho de Melo Cc: Corey Ashford Cc: Frederic Weisbecker Cc: Mark Rutland Cc: Paul Mackerras Cc: Peter Zijlstra Signed-off-by: Jiri Olsa --- kernel/events/core.c | 3 +++ 1 fi

Re: [PATCH v1.3 4/18] arcmsr: limit max. number of SCSI command request

2014-08-01 Thread Christoph Hellwig
> @@ -2220,8 +2220,7 @@ static int arcmsr_queue_command_lck(stru > arcmsr_handle_virtual_command(acb, cmd); > return 0; > } > - if (atomic_read(&acb->ccboutstandingcount) >= > - ARCMSR_MAX_OUTSTANDING_CMD) > + if (atomic_read(&acb->ccbou

Re: [PATCH v2] dma-mapping: Provide write-combine allocations

2014-08-01 Thread Thierry Reding
On Fri, Jun 27, 2014 at 11:56:58AM +0200, Thierry Reding wrote: > From: Thierry Reding > > Provide an implementation for dma_{alloc,free,mmap}_writecombine() when > the architecture supports DMA attributes. > > Signed-off-by: Thierry Reding > --- > Changes in v2: > - Add a generic dma_mmap_writ

[PATCH 2/2] iommu: Implement a dummy bus_set_iommu()

2014-08-01 Thread Thierry Reding
From: Thierry Reding This allows IOMMU drivers to compile even if IOMMU_API is not selected and helps improve compile coverage. Signed-off-by: Thierry Reding --- include/linux/iommu.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index

[PATCH 1/2] iommu: Always define struct iommu_ops

2014-08-01 Thread Thierry Reding
From: Thierry Reding With this structure always defined, drivers can be always compiled, irrespective of whether or not IOMMU_API is enabled. This helps to increase compile coverage without having to build with two separate configurations. Unused code can still be discarded by the compiler if th

[V2 PATCH] Save command pool address of Scsi_Host

2014-08-01 Thread jgross
From: Juergen Gross If a scsi host driver specifies .cmd_len in it's scsi_host_template, a driver's private command pool is needed. scsi_find_host_cmd_pool() will locate it, but scsi_alloc_host_cmd_pool() isn't saving the pool address in the host template. This will result in an access error whe

Re: Killing process in D state on mount to dead NFS server. (when process is in fsync)

2014-08-01 Thread Jan Kara
On Fri 01-08-14 07:50:53, NeilBrown wrote: > On Thu, 31 Jul 2014 14:20:07 -0700 Ben Greear wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On 07/31/2014 01:42 PM, NeilBrown wrote: > > > On Thu, 31 Jul 2014 11:00:35 -0700 Ben Greear > > > wrote: > > > > > >> So, this has be

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-01 Thread Sergei Shtylyov
Hello. On 01-08-2014 9:22, Peter Ujfalusi wrote: The board uses aic3106 for audio. Signed-off-by: Peter Ujfalusi --- arch/arm/boot/dts/da850-evm.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts i

Re: [PATCH RFC] sysfs: fix the race of "parent deleted before child added"

2014-08-01 Thread Tejun Heo
Hello, On Fri, Aug 01, 2014 at 07:18:12PM +0800, Jianyu Zhan wrote: > A proper fix for this is to pin the parent kernfs_node on the > dir_entry creation point (sysfs_create_dir_ns), and to de-pin the parent > on the dir_entry deletion point(sysfs_remove_dir). The *only* reason we have the warning

[RFC 1/1] fs/befs/linuxvfs.c: check superblock before dump operation

2014-08-01 Thread Fabian Frederick
befs_dump_super_block was called between befs_load_sb and befs_check_sb. It has been reported to crash (5/900) with null block testing. This patch loads, checks and only dump superblock if it's a valid one then brelse bh. (befs_dump_super_block uses disk_sb (bh->b_data) so it seems we need to cal

Re: [PATCH] ata: libahci: Make host flags unsigned long

2014-08-01 Thread Tejun Heo
On Fri, Aug 01, 2014 at 01:39:41PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Commit 725c7b570fda (ata: libahci_platform: move port_map parameters > into the AHCI structure) moves flags into the struct ahci_host_priv's > .flags field, which causes compiler warnings on 64-bit builds w

Re: [PATCH v2 1/2] resource: Add device-managed request/release_resource()

2014-08-01 Thread Tejun Heo
On Fri, Aug 01, 2014 at 02:15:10PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Provide device-managed implementations of the request_resource() and > release_resource() functions. Upon failure to request a resource, the > new devm_request_resource() function will output an error messa

Re: [PATCH v2] dma-mapping: Provide write-combine allocations

2014-08-01 Thread Arnd Bergmann
On Friday 27 June 2014, Thierry Reding wrote: > From: Thierry Reding > > Provide an implementation for dma_{alloc,free,mmap}_writecombine() when > the architecture supports DMA attributes. > > Signed-off-by: Thierry Reding > --- Acked-by: Arnd Bergmann I'd suggest this gets merged through Ru

Re: [PATCH] locking/mutexes: Revert "locking/mutexes: Add extra reschedule point"

2014-08-01 Thread Ilya Dryomov
On Thu, Jul 31, 2014 at 6:39 PM, Peter Zijlstra wrote: > On Thu, Jul 31, 2014 at 04:30:52PM +0200, Mike Galbraith wrote: >> On Thu, 2014-07-31 at 15:13 +0200, Peter Zijlstra wrote: >> >> > Smells like maybe current->state != TASK_RUNNING >> >> Bingo >> >> [ 1200.851004] kjournald D 0

Re: [PATCH RFC 0/4] xen/pvhvm: fix shared_info and pirq issues with kexec

2014-08-01 Thread David Vrabel
On 01/08/14 13:21, Vitaly Kuznetsov wrote: > David Vrabel writes: > >> On 15/07/14 14:40, Vitaly Kuznetsov wrote: >>> With this patch series I'm trying to address several issues with kexec on >>> pvhvm: >>> - shared_info issue (1st patch, just sending Olaf's work with Konrad's fix) >>> - create

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-01 Thread Peter Ujfalusi
On 08/01/2014 03:49 PM, Sergei Shtylyov wrote: >I do. We should follow the standard consistently. Why not call the node > "sound-codec"? Well, there is _zero_ cases when the audio codec node is named as "sound-codec" in linux-next but we have wm, tlv, twl, max etc. Yeah, there

Re: [PATCH 0/3] platform/chrome: chromeos_laptop - Add Haswell Chromebooks

2014-08-01 Thread Oliver Neukum
On Thu, 2014-07-10 at 14:11 +0100, Scot Doyle wrote: > Hi Olof, > > Have these been applied? If not, where should I watch for them? Hi, could you tell me from which tree I could get these patches? Regards Oliver -- To unsubscribe from this list: send the line "unsubsc

Re: [PATCH 5/6] ARM: DTS: da850-evm: Add node for tlv320aic3106 codec

2014-08-01 Thread Sergei Shtylyov
Hello. On 08/01/2014 05:02 PM, Peter Ujfalusi wrote: I do. We should follow the standard consistently. Why not call the node "sound-codec"? Well, there is _zero_ cases when the audio codec node is named as "sound-codec" in linux-next but we have wm, tlv, twl, max etc.

Re: [PATCH 1/6] thermal: of: Add support for hardware-tracked trip points

2014-08-01 Thread edubez...@gmail.com
Moro, On Fri, Aug 1, 2014 at 7:42 AM, Mikko Perttunen wrote: > Moi Eduardo :) > > > On 30/07/14 17:16, Eduardo Valentin wrote: >> >> Terve Mikko, >> >> On Fri, Jun 27, 2014 at 11:11:34AM +0300, Mikko Perttunen wrote: >>> >>> This adds support for hardware-tracked trip points to the device tree >>

Re: [Intel-gfx] [BUG?] 3.16-rc6 ... at drivers/gpu/drm/i915/intel_pm.c:5997 intel_display_power_put+0x12d/0x160()

2014-08-01 Thread Imre Deak
On Thu, 2014-07-31 at 23:47 +0200, Ian Kumlien wrote: > On tor, 2014-07-31 at 14:39 +0300, Imre Deak wrote: > > On Wed, 2014-07-30 at 22:52 +0200, Ian Kumlien wrote: > > > Sorry for the delay, it's been damned hot - vacation is over and > > > overtime has been all the rage at work... > > > > No pr

Re: [RFC PATCH 00/11] Refactor MSI to support Non-PCI device

2014-08-01 Thread Arnd Bergmann
On Wednesday 30 July 2014, Yijing Wang wrote: > >>> > >>> The other part I'm not completely sure about is how you want to > >>> have MSIs map into normal IRQ descriptors. At the moment, all > >>> MSI users are based on IRQ numbers, but this has known scalability > >>> problems. > >> > >> Hmmm, I s

Re: [PATCH v2 0/9] thermal: exynos: various cleanups

2014-08-01 Thread edubez...@gmail.com
Bartlomiej, On Thu, Jul 31, 2014 at 1:37 PM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Tuesday, July 29, 2014 08:58:48 AM Eduardo Valentin wrote: >> On Mon, Jul 28, 2014 at 08:30:53PM +0530, amit daniel kachhap wrote: >> > Hi Eduardo, >> >> Hello Amit, >> >> > >> > Please reject this entire

Re: [PATCH 2/3] x86 perf: Protect LBR msrs accessing against potential #GP

2014-08-01 Thread Andi Kleen
> > NAK! > > > > I already said this isn't going to ever happen. > > > > Both PT and LBR are arbitrated through the kernel, therefore we can (and > > must) deny PT when there's existing LBR usage and vice versa. > > > > We will not hijack resources like this full stop end of story. > > > > Fuck

[PATCH] HID: hyperv: register as a wakeup source

2014-08-01 Thread Dexuan Cui
With this patch, we can move the mouse to wake up the VM after the VM executes "echo freeze > /sys/power/state". This addresses part of https://bugzilla.redhat.com/show_bug.cgi?id=1086100 Cc: K. Y. Srinivasan Signed-off-by: Dexuan Cui --- drivers/hid/hid-hyperv.c | 6 ++ 1 file changed, 6

[PATCH] Input: hyperv-keyboard: register as a wakeup source

2014-08-01 Thread Dexuan Cui
With this patch, we can press a key to wake up the VM after the VM executes "echo freeze > /sys/power/state". This addresses part of https://bugzilla.redhat.com/show_bug.cgi?id=1086100 Cc: K. Y. Srinivasan Signed-off-by: Dexuan Cui --- drivers/input/serio/hyperv-keyboard.c | 13 +

Re: [PATCH 1/3] irq / PM: New driver interface for wakeup interruptsn

2014-08-01 Thread Rafael J. Wysocki
On Friday, August 01, 2014 11:40:55 AM Thomas Gleixner wrote: > On Fri, 1 Aug 2014, Rafael J. Wysocki wrote: > > On Friday, August 01, 2014 12:16:23 AM Thomas Gleixner wrote: [cut] > > > > And now there's one more piece of it which is suspend-to-idle (aka > > > > "freeze"). > > > > That doesn't

[PATCH v9 11/22] Replace XIP documentation with DAX documentation

2014-08-01 Thread Matthew Wilcox
From: Matthew Wilcox Based on the original XIP documentation, this documents the current state of affairs, and includes instructions on how users can enable DAX if their devices and kernel support it. Signed-off-by: Matthew Wilcox Reviewed-by: Randy Dunlap --- Documentation/filesystems/dax.tx

Re: [PATCH] locking/mutexes: Revert "locking/mutexes: Add extra reschedule point"

2014-08-01 Thread Peter Zijlstra
On Fri, Aug 01, 2014 at 04:56:27PM +0400, Ilya Dryomov wrote: > I'm going to fix up rbd_request_fn(), but I want to make sure > I understand this in full. > > - Previously the danger of calling blocking primitives on the way to > schedule(), i.e. with task->state != TASK_RUNNING, was that if the

[PATCH v9 18/22] Get rid of most mentions of XIP in ext2

2014-08-01 Thread Matthew Wilcox
To help people transition, accept the 'xip' mount option (and report it in /proc/mounts), but print a message encouraging people to switch over to the 'dax' option. --- fs/ext2/ext2.h | 13 +++-- fs/ext2/file.c | 2 +- fs/ext2/inode.c | 6 +++--- fs/ext2/namei.c | 8 fs/ext2/

[PATCH v9 12/22] Remove get_xip_mem

2014-08-01 Thread Matthew Wilcox
All callers of get_xip_mem() are now gone. Remove checks for it, initialisers of it, documentation of it and the only implementation of it. Also remove mm/filemap_xip.c as it is now empty. Signed-off-by: Matthew Wilcox --- Documentation/filesystems/Locking | 3 --- fs/exofs/inode.c

Re: [Intel-gfx] [BUG?] 3.16-rc6 ... at drivers/gpu/drm/i915/intel_pm.c:5997 intel_display_power_put+0x12d/0x160()

2014-08-01 Thread Ian Kumlien
On Fri, Aug 1, 2014 at 3:16 PM, Imre Deak wrote: [--8<--] > Ok, I see the trace of suspend/resume now, but the bug has vanished.. I > can't see the WARN backtrace in your original report, nor the debug > message from the above fix, that would indicate that it had fixed > anything ("VDD left on b

[PATCH v9 13/22] ext2: Remove ext2_xip_verify_sb()

2014-08-01 Thread Matthew Wilcox
Jan Kara pointed out that calling ext2_xip_verify_sb() in ext2_remount() doesn't make sense, since changing the XIP option on remount isn't allowed. It also doesn't make sense to re-check whether blocksize is supported since it can't change between mounts. Replace the call to ext2_xip_verify_sb()

[PATCH v9 20/22] ext4: Avoid lock inversion between i_mmap_mutex and transaction start

2014-08-01 Thread Matthew Wilcox
From: Jan Kara When DAX is enabled, it uses i_mmap_mutex as a protection against truncate during page fault. This inevitably forces i_mmap_mutex to rank outside of a transaction start and thus we have to avoid calling pagecache purging operations when transaction is started. Signed-off-by: Jan K

[PATCH v9 02/22] Change direct_access calling convention

2014-08-01 Thread Matthew Wilcox
In order to support accesses to larger chunks of memory, pass in a 'size' parameter (counted in bytes), and return the amount available at that address. Add a new helper function, bdev_direct_access(), to handle common functionality including partition handling, checking for the sector being page-

[PATCH v9 03/22] Fix XIP fault vs truncate race

2014-08-01 Thread Matthew Wilcox
Pagecache faults recheck i_size after taking the page lock to ensure that the fault didn't race against a truncate. We don't have a page to lock in the XIP case, so use the i_mmap_mutex instead. It is locked in the truncate path in unmap_mapping_range() after updating i_size. So while we hold it

[PATCH v9 06/22] Add copy_to_iter(), copy_from_iter() and iov_iter_zero()

2014-08-01 Thread Matthew Wilcox
From: Matthew Wilcox For DAX, we want to be able to copy between iovecs and kernel addresses that don't necessarily have a struct page. This is a fairly simple rearrangement for bvec iters to kmap the pages outside and pass them in, but for user iovecs it gets more complicated because we might t

[PATCH v9 17/22] ext2: Remove ext2_aops_xip

2014-08-01 Thread Matthew Wilcox
We shouldn't need a special address_space_operations any more Signed-off-by: Matthew Wilcox --- fs/ext2/ext2.h | 1 - fs/ext2/inode.c | 7 +-- fs/ext2/namei.c | 4 ++-- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index b30c3bd..b8b1c11 1006

[PATCH v9 09/22] Replace the XIP page fault handler with the DAX page fault handler

2014-08-01 Thread Matthew Wilcox
Instead of calling aops->get_xip_mem from the fault handler, the filesystem passes a get_block_t that is used to find the appropriate blocks. Signed-off-by: Matthew Wilcox Reviewed-by: Jan Kara --- fs/dax.c | 194 + fs/ext2/file.c |

[PATCH v9 19/22] xip: Add xip_zero_page_range

2014-08-01 Thread Matthew Wilcox
This new function allows us to support hole-punch for XIP files by zeroing a partial page, as opposed to the xip_truncate_page() function which can only truncate to the end of the page. Reimplement xip_truncate_page() as a macro that calls xip_zero_page_range(). Signed-off-by: Matthew Wilcox [po

[PATCH v9 07/22] Replace XIP read and write with DAX I/O

2014-08-01 Thread Matthew Wilcox
Use the generic AIO infrastructure instead of custom read and write methods. In addition to giving us support for AIO, this adds the missing locking between read() and truncate(). Signed-off-by: Matthew Wilcox Reviewed-by: Ross Zwisler Reviewed-by: Jan Kara --- fs/Makefile| 1 + fs/

[PATCH v9 14/22] ext2: Remove ext2_use_xip

2014-08-01 Thread Matthew Wilcox
Replace ext2_use_xip() with test_opt(XIP) which expands to the same code Signed-off-by: Matthew Wilcox --- fs/ext2/ext2.h | 4 fs/ext2/inode.c | 2 +- fs/ext2/namei.c | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/ext2/ext2.h b/fs/ext2/ext2.h index d9a17d0..5ec

[PATCH v9 08/22] Replace ext2_clear_xip_target with dax_clear_blocks

2014-08-01 Thread Matthew Wilcox
This is practically generic code; other filesystems will want to call it from other places, but there's nothing ext2-specific about it. Make it a little more generic by allowing it to take a count of the number of bytes to zero rather than fixing it to a single page. Thanks to Dave Hansen for sug

[PATCH v9 21/22] ext4: Add DAX functionality

2014-08-01 Thread Matthew Wilcox
From: Ross Zwisler This is a port of the DAX functionality found in the current version of ext2. Signed-off-by: Ross Zwisler Reviewed-by: Andreas Dilger [heavily tweaked] Signed-off-by: Matthew Wilcox --- Documentation/filesystems/dax.txt | 1 + Documentation/filesystems/ext4.txt | 2 ++

[PATCH v9 00/22] Support ext4 on NV-DIMMs

2014-08-01 Thread Matthew Wilcox
From: Matthew Wilcox One of the primary uses for NV-DIMMs is to expose them as a block device and use a filesystem to store files on the NV-DIMM. While that works, it currently wastes memory and CPU time buffering the files in the page cache. We have support in ext2 for bypassing the page cache

<    1   2   3   4   5   6   >