Re: [PATCH v6] NVMe: conversion to blk-mq

2014-06-09 Thread Matias Bjørling
On Mon, Jun 9, 2014 at 6:35 AM, Ming Lei tom.leim...@gmail.com wrote: On Fri, Jun 6, 2014 at 8:20 PM, Matias Bjørling m...@bjorling.me wrote: This converts the current NVMe driver to utilize the blk-mq layer. Looks it can't be applied cleanly against 3.15-rc8 + Jens's for-linux branch, when I

Re: [PATCH v2] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-09 Thread Yang,Wei
Hi Alan, Sorry for my late response, as I was 000, Additionally, I am very grateful for your review. On 06/06/2014 02:08 AM, Alan Stern wrote: On Wed, 4 Jun 2014 wei.y...@windriver.com wrote: From: Yang Wei wei.y...@windriver.com While loading g_mass_storage module, the following warning

[PATCH] block: make nr_requests tunable for loop

2014-06-09 Thread Junxiao Bi
commit 7b5a3522 (loop: Limit the number of requests in the bio list) limit the request number in loop queue to not over 128. Make the number tunable from sysfs can improve performance. The following test is done on a machine with 512M memory. The backend of /dev/loop1 is a nfs file. [root@bijx

[git pull] Input updates for 3.16-rc0

2014-06-09 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus or master.kernel.org:/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get a big update to Atmel touchscreen driver, devm

[PATCHv3 2/3] regulator: s2mps11: Add support S2MPU02 regulator device

2014-06-09 Thread Chanwoo Choi
This patch add S2MPU02 regulator device to existing S2MPS11 device driver because of little difference between S2MPS1x and S2MPU02. The S2MPU02 regulator device includes LDO[1-28] and BUCK[1-7]. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com [Add missing linear_min_sel of S2MPU02 LDO

[PATCHv3 1/3] mfd: sec-core: Add support for S2MPU02 device

2014-06-09 Thread Chanwoo Choi
Add support for Samsung S2MPU02 PMIC device to the MFD sec-core driver. The S2MPU02 device includes PMIC/RTC/Clock devices. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com --- drivers/mfd/sec-core.c | 19 +

[PATCHv3 0/3] mfd: sec-core: Add support S2MPU02 PMIC device

2014-06-09 Thread Chanwoo Choi
This patch add Samsung S2MPU02 PMIC device driver in exiting S2MPS11 PMIC driver because S2MPU02 has a little different between S2MPU02 and S2MPS1x. The S2MPU02 PMIC has LDO[1-28] and BUCK[1-7] regulators. This patchset had a dependency on regulator.git (Mark Brown) because following

[PATCHv3 3/3] dt-bindings: mfd: s2mps11: Add support S2MPU02 PMIC

2014-06-09 Thread Chanwoo Choi
This patch add documentation for S2MPU02 PMIC device. S2MPU02 has a little difference from S2MPS11/S2MPS14 PMIC and has LDO[1-28]/Buck[1-7]. Signed-off-by: Chanwoo Choi cw00.c...@samsung.com Reviewed-by: Krzysztof Kozlowski k.kozlow...@samsung.com Cc: Rob Herring robh...@kernel.org Cc: Pawel Moll

[PATCH v3] USB:gadget: Fix a warning while loading g_mass_storage

2014-06-09 Thread Wei.Yang
From: Yang Wei wei.y...@windriver.com While loading g_mass_storage module, the following warning is triggered. WARNING: at drivers/usb/gadget/composite.c: usb_composite_setup_continue: Unexpected call Modules linked in: fat vfat minix nls_cp437 nls_iso8859_1 g_mass_storage [800179cc]

Re: [RFC PATCH] rt/aio: fix rcu garbage collection might_sleep() splat

2014-06-09 Thread Mike Galbraith
On Mon, 2014-06-09 at 05:17 +0200, Mike Galbraith wrote: On Mon, 2014-06-09 at 10:08 +0800, Lai Jiangshan wrote: Hi, rt-people I don't think it is the correct direction. Yup, it's a band-aid, ergo RFC. Making aio play by the rules is safe. Another option is to bend the rules up a

Re: sparc64 WARNING: at mm/mmap.c:2757 exit_mmap+0x13c/0x160()

2014-06-09 Thread Meelis Roos
This is todays fresh git with 3.15.0-rc6-00190-g1ee1cea on V210, THP enabled always on. Got this and a segfault on apt-spawned xz. Thanks a lot for the report. I've been bogged down with other things but I will come back to this stuff soon. Just to document a strangeness that does

[PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-09 Thread Wang, Xiaoming
The size of struct snd_compr_avail is 0x1c in 32bit kernel, while it is 0x20 in 64bit kernel 0x4 bytes added because of alignment. It is OK when 32bit kernel met 32bit user space. There exist stack corruption if 64bit kernel met 32bit user space, because the size of struct snd_compr_avail is 0x1c

[PATCH] Doc: mfd: as3722: Add details of optional missing property

2014-06-09 Thread Laxman Dewangan
Add details of following properties which are used on driver but not documented on DT binding document. - ams,enable-internal-int-pullup - ams,enable-internal-i2c-pullup Signed-off-by: Laxman Dewangan ldewan...@nvidia.com Reported-by: Lee Jones lee.jo...@linaro.org ---

Re: [PATCH] cpufreq: governor: remove copy_prev_load from 'struct cpu_dbs_common_info'

2014-06-09 Thread Srivatsa S. Bhat
On 06/09/2014 10:54 AM, Viresh Kumar wrote: 'copy_prev_load' was recently added by commit: 18b46ab (cpufreq: governor: Be friendly towards latency-sensitive bursty workloads). It actually is a bit redundant as we also have 'prev_load' which can store any integer value and can be used instead

Re: [PATCH V5 REPOST] mfd: add support for ams AS3722 PMIC

2014-06-09 Thread Laxman Dewangan
On Friday 06 June 2014 08:58 PM, Lee Jones wrote: Laxman, This patch has already been applied, but ... + as3722-en_intern_int_pullup = of_property_read_bool(np, + ams,enable-internal-int-pullup); + as3722-en_intern_i2c_pullup =

Re: [PATCH v2 5/5] staging: ft1000: ft1000-usb: ft1000_debug.c: Misc. fixes.

2014-06-09 Thread Dan Carpenter
On Fri, Jun 06, 2014 at 08:02:18PM -0700, Thomas Wood wrote: Remove initialization of static value. Invert the empty if statement's test to replace the else statement. Remove parentheses from a return statement. Fix some code indentation. Signed-off-by: Thomas Wood tommyandr...@gmail.com

Re: [PATCH] ALSA: compress: Fix the mismatch size of struc between share lib(32bit) and kernel(64bit)

2014-06-09 Thread Takashi Iwai
At Mon, 09 Jun 2014 16:46:32 -0400, Wang, Xiaoming wrote: The size of struct snd_compr_avail is 0x1c in 32bit kernel, while it is 0x20 in 64bit kernel 0x4 bytes added because of alignment. It is OK when 32bit kernel met 32bit user space. There exist stack corruption if 64bit kernel met

Re: [PATCH] block: make nr_requests tunable for loop

2014-06-09 Thread Andreas Mohr
Hi, having had a look at current mainline sources, frankly I've (well, initially...) got trouble understanding what this patch is doing. It's replacing an aggressive error-type bail-out (-EINVAL) for NULL request_fn with an inoccuous-looking return ret;, yet that ret content currently

Re: [Question] Why CONFIG_SHELL

2014-06-09 Thread Sam Ravnborg
On Mon, Jun 09, 2014 at 02:04:12PM +0900, Masahiro Yamada wrote: Hi experts. I think all the macros with CONFIG_ prefix are supposed to be defined in Kconfig. But I've been long wondering why there exists one exception: CONFIG_SHELL. Is there any historical, or special reason? It has

Re: [fuse-devel] [PATCH 0/5] fuse: close file synchronously (v2)

2014-06-09 Thread Maxim Patlasov
On 06/06/2014 05:51 PM, John Muir wrote: On 2014.06.06, at 15:27 , Maxim Patlasov mpatla...@parallels.com wrote: The patch-set resolves the problem by making fuse_release synchronous: wait for ACK from userspace for FUSE_RELEASE if the feature is ON. Why not make this feature per-file with a

Re: [PATCH v6] NVMe: conversion to blk-mq

2014-06-09 Thread Ming Lei
On Mon, Jun 9, 2014 at 2:00 PM, Matias Bjørling m...@bjorling.me wrote: On Mon, Jun 9, 2014 at 6:35 AM, Ming Lei tom.leim...@gmail.com wrote: On Fri, Jun 6, 2014 at 8:20 PM, Matias Bjørling m...@bjorling.me wrote: This converts the current NVMe driver to utilize the blk-mq layer. Looks it

Re: [PATCH v6] NVMe: conversion to blk-mq

2014-06-09 Thread Ming Lei
On Mon, Jun 9, 2014 at 3:50 PM, Ming Lei tom.leim...@gmail.com wrote: On Mon, Jun 9, 2014 at 2:00 PM, Matias Bjørling m...@bjorling.me wrote: On Mon, Jun 9, 2014 at 6:35 AM, Ming Lei tom.leim...@gmail.com wrote: On Fri, Jun 6, 2014 at 8:20 PM, Matias Bjørling m...@bjorling.me wrote: This

Re: Interactivity regression since v3.11 in mm/vmscan.c

2014-06-09 Thread Michal Hocko
On Fri 06-06-14 18:11:14, Felipe Contreras wrote: On Fri, Jun 6, 2014 at 5:33 AM, Felipe Contreras felipe.contre...@gmail.com wrote: On Fri, Jun 6, 2014 at 4:16 AM, Michal Hocko mho...@suse.cz wrote: Mel has a nice systemtap script (attached) to watch for stalls. Maybe you can give it a

Re: [PATCH 1/2] i2c/ACPI: Support for multiple serial bus addresses

2014-06-09 Thread Mika Westerberg
On Fri, Jun 06, 2014 at 02:32:14PM +0200, Wolfram Sang wrote: Mika: Your review for ACPI specific details would be much appreciated here. Sure. Srinivas, is this the latest version of the patch series? -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a

Re: [Patch V3 4/5] I2C/ACPI: Add i2c ACPI operation region support

2014-06-09 Thread Mika Westerberg
On Sat, Jun 07, 2014 at 12:48:13AM +0200, Rafael J. Wysocki wrote: Do I believe correctly that you have reviewed this patch already? Yes, I did :) -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [RFC PATCH v5 1/4] KEYS: special dot prefixed keyring name bug fix

2014-06-09 Thread Dmitry Kasatkin
On 07/06/14 01:00, Mimi Zohar wrote: On Sat, 2014-06-07 at 00:48 +0300, Dmitry Kasatkin wrote: On 3 June 2014 20:58, Mimi Zohar zo...@linux.vnet.ibm.com wrote: Dot prefixed keyring names are supposed to be reserved for the kernel, but add_key() calls key_get_type_from_user(), which

Re: possible typo

2014-06-09 Thread Warren Turkal
commit 4ce2f36b4b06b7df569b1875c7ab834270786882 Author: Warren Turkal w...@penguintechs.org Date: Sun Jun 8 22:19:29 2014 -0700 Fix a typo. Signed-off-by: Warren Turkal w...@penguintechs.org diff --git a/Documentation/kbuild/modules.txt b/Documentation/kbuild/modules.txt index

Re: [PATCH 2/2] fs: proc/stat: use usual seq_file ops rather than single_open

2014-06-09 Thread Ian Kent
On Wed, 2014-05-28 at 15:37 -0700, Andrew Morton wrote: On Wed, 28 May 2014 11:01:53 +0200 Heiko Carstens heiko.carst...@de.ibm.com wrote: Now, /proc/stat uses single_open() for showing information. This means the all data will be gathered and buffered once to a (big) buf. Now,

[Patch V4 01/42] x86, irq: update high address field when updating affinity for MSI IRQ

2014-06-09 Thread Jiang Liu
If x2apic is enabled, the MSI high address field should also be aslo updated when setting affinity for MSI IRQ, otherwise the MSI IRQ may target wrong APIC IDs. Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: sta...@vger.kernel.org --- arch/x86/kernel/apic/io_apic.c |4 1 file

[Patch V4 00/42] use irqdomain to dynamically allocate IRQ for IOAPIC

2014-06-09 Thread Jiang Liu
On x86 platforms, IRQ number are statically allocated to IOAPIC pins at boot. There are two issues with this design. First it causes trouble to IOAPIC hotplug because we need to allocate a block of IRQ numbers for each IOAPIC. Second it may waste IRQ nubmers even if some IOAPIC pins are not used

Re: [RFC PATCH v5 1/4] KEYS: special dot prefixed keyring name bug fix

2014-06-09 Thread Dmitry Kasatkin
On 09/06/14 10:56, Dmitry Kasatkin wrote: On 07/06/14 01:00, Mimi Zohar wrote: On Sat, 2014-06-07 at 00:48 +0300, Dmitry Kasatkin wrote: On 3 June 2014 20:58, Mimi Zohar zo...@linux.vnet.ibm.com wrote: Dot prefixed keyring names are supposed to be reserved for the kernel, but add_key() calls

[Patch V4 04/42] x86, acpi: reorganize code to avoid forward declaration in boot.c

2014-06-09 Thread Jiang Liu
Reorganize code to avoid forward declaration in boot.c, no function changes. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 236 +-- 1 file changed, 116 insertions(+), 120 deletions(-) diff --git

[Patch V4 02/42] x86, mpparse: use pr_lvl() helper utilities to replace printk(KERN_LVL)

2014-06-09 Thread Jiang Liu
Use pr_lvl() helper utilities to replace printk(KERN_LVL) for readability, no function changes. Also use pr_cont() to avoid multiple newlines in one printk(). Acked-by: David Rientjes rient...@google.com Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c | 95

[Patch V4 03/42] x86, mpparse: simplify arch/x86/include/asm/mpspec.h

2014-06-09 Thread Jiang Liu
Simplify arch/x86/include/asm/mpspec.h by 1) Change max_physical_apicid to static as it's only used in apic.c. 2) Kill declaration of mpc_default_type, it's never defined. 3) Delete default_acpi_madt_oem_check(), it has already been declared in apic.h. 4) Make default_acpi_madt_oem_check()

[Patch V4 07/42] x86, ACPI, trivial: minor improvements to arch/x86/kernel/acpi/boot.c

2014-06-09 Thread Jiang Liu
1) Remove out-of-date comment 2) Kill unused function acpi_set_irq_model_pic() 3) Use NR_IRQS_LEGACY instead of hard-coded 16 4) Trivial syntax improvements Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 50 ++- 1

[Patch V4 06/42] x86, acpi, irq: kill static function irq_to_gsi()

2014-06-09 Thread Jiang Liu
Static function irq_to_gsi() is only called by acpi_isa_irq_to_gsi(), so kill function irq_to_gsi() and simplify acpi_isa_irq_to_gsi(). Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 26 ++ 1 file changed, 6 insertions(+), 20

[Patch V4 08/42] x86, ACPI, irq: enhance error handling in function acpi_register_gsi()

2014-06-09 Thread Jiang Liu
Function mp_register_gsi() may return invalid GSI if error happens, so enhance acpi_register_gsi() to handle possible error cases. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

[Patch V4 11/42] x86, ioapic: kill unused global variable timer_through_8259

2014-06-09 Thread Jiang Liu
Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/io_apic.h |4 arch/x86/kernel/apic/io_apic.c |3 --- 2 files changed, 7 deletions(-) diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h index 8dd1e13f2989..de3d8b04cf64 100644 ---

[Patch V4 10/42] x86, irq, trivial: minor improvements of IRQ related code

2014-06-09 Thread Jiang Liu
1) Kill unused MAX_HARDIRQS_PER_CPU. 2) Improve function prototype declararions. 3) Simple typo fix, change gsit to gsi. 4) Use macro VECTOR_UNDEFINED instead of hard-coded -1. 5) Kill redundant comments. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/hardirq.h |

[Patch V4 14/42] x86, ioapic: use irq_cfg() instead of irq_get_chip_data() for better readability

2014-06-09 Thread Jiang Liu
Use defined helper function irq_cfg() instead of irq_get_chip_data() for better readability. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[Patch V4 13/42] x86, ioapic: introduce helper utilities to walk ioapics and pins

2014-06-09 Thread Jiang Liu
Introduce helper utilities for_each_ioapic(), for_each_ioapic_reverse(), for_each_pin() and for_each_ioapic_pin() to walk ioapics and pins. They will be rewritten e will rewrite later to support IOAPIC hotplug. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c

[Patch V4 16/42] x86, irq: introduce some helper utilities to improve readability

2014-06-09 Thread Jiang Liu
It also fixes an off by one bug in if ((ioapic_idx 0) (irq NR_IRQS_LEGACY)) It should be if ((ioapic_idx 0) (irq = NR_IRQS_LEGACY)) Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/io_apic.h |2 ++ arch/x86/kernel/apic/io_apic.c | 29

[Patch V4 18/42] ce4100, irq: do not set legacy_pic to null_legacy_pic

2014-06-09 Thread Jiang Liu
Intel CE4100 platforms has i8259 legacy interrupt controllers, so don't set legacy_pic to null_legacy_pic in late booting stage because we need legacy_pic to mask i8259 pins when enabling IOAPIC pins for safety. Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[Patch V4 20/42] x86, irq: simplify arch_early_irq_init()

2014-06-09 Thread Jiang Liu
Simplify function arch_early_irq_init() and kill static array irq_cfgx[]. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 33 +++-- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c

[Patch V4 19/42] x86, irq: count legacy IRQs by legacy_pic-nr_legacy_irqs instead of NR_IRQS_LEGACY

2014-06-09 Thread Jiang Liu
Some platforms, such as Intel MID and mshypv, do not support legacy interrupt controllers. So count legacy IRQs by legacy_pic-nr_legacy_irqs instead of hard-coded NR_IRQS_LEGACY. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/i8259.h |5 +

[Patch V4 17/42] ce4100, irq: make CE4100 depend on CONFIG_X86_IO_APIC

2014-06-09 Thread Jiang Liu
Intel CE4100 platforms need IOAPIC support becasue some devices are always connected to the second IOAPIC, so make CONFIG_CE depends on CONFIG_X86_IO_APIC. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/Kconfig |1 + arch/x86/platform/ce4100/ce4100.c |9

[Patch V4 21/42] x86, ACPI, irq: consolidate algorithm of mapping (ioapic, pin) to IRQ number

2014-06-09 Thread Jiang Liu
Currently ACPI and ioapic both implement algorithms to map (ioapic, pin) to IRQ number. So consolidate the common part into one place, which is also preparing for irqdomain support. It introduces mp_map_gsi_to_irq(), which will be used to allocate IRQ number IOAPIC pins when irqdomain is enabled.

[Patch V4 23/42] x86, irq: introduce mechanisms to support dynamically allocate IRQ for IOAPIC

2014-06-09 Thread Jiang Liu
Currently x86 support identity mapping between GSI(IOAPIC pin) and IRQ number, so continous IRQs at low end are statically allocated to IOAPICs at boot time. This design causes trouble to support IOAPIC hotplug. This patch implements basic mechanism to dynamically allocate IRQ on demand for

Re: [PATCH ftrace/core V5] ftrace: Introduce saved_cmdlines_size file

2014-06-09 Thread Namhyung Kim
Hi Yoshihiro, Sorry for being late, but just wanna give you some (minor) feedbacks.. On Thu, 05 Jun 2014 10:24:27 +0900, Yoshihiro YUNOMAE wrote: +static int trace_create_savedcmd(void) +{ + int ret; + + savedcmd = kmalloc(sizeof(struct saved_cmdlines_buffer), GFP_KERNEL);

[Patch V4 26/42] x86, mpparse, irq: provide basic irqdomain support

2014-06-09 Thread Jiang Liu
Enhance mpparse to provide basic support of irqdomain. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index

[Patch V4 24/42] x86, irq: enhance mp_register_ioapic() to support irqdomain

2014-06-09 Thread Jiang Liu
Enhance function mp_register_ioapic() to support irqdomain. When registering IOAPIC, caller may provide callbacks and parameters for creating irqdomain. The IOAPIC core will create irqdomain later if caller has passed in corresponding parameters. Signed-off-by: Jiang Liu jiang@linux.intel.com

[Patch V4 27/42] x86, SFI, irq: provide basic irqdomain support

2014-06-09 Thread Jiang Liu
Enhance SFI to provide basic support of irqdomain with identity mapping between GSIs and IRQs. Some Intel MID platforms assumes identity mapping between GSI and IRQ, so we can't dynamically allocate IRQ number on demand. Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[Patch V4 31/42] x86, irq, mpparse: use common irqdomain map interface to program IOAPIC pins

2014-06-09 Thread Jiang Liu
Refine mpparse to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c |4 +++- arch/x86/pci/irq.c|2 -- 2 files changed, 3 insertions(+), 3

[Patch V4 28/42] x86, devicetree, irq: use common mechanism to support irqdomain

2014-06-09 Thread Jiang Liu
Now the ioapic driver provides a common interface to create irqdomain, so replace the private implementation. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/prom.h |2 - arch/x86/kernel/devicetree.c | 195 +-

[Patch V4 29/42] x86, irq: introduce two helper functions to support irqdomain map operation

2014-06-09 Thread Jiang Liu
Currently there are multiple entries to program IOAPIC pins, such as io_apic_setup_irq_pin_once(), io_apic_set_pci_routing() and setup_IO_APIC_irq_extra() etc. This patch introduces two functions to help consolidate the code to program IOAPIC pins. Function mp_set_pin_attr() is used to optionally

[Patch V4 33/42] x86, irq, devicetree: use common irqdomain map interface to program IOAPIC pins

2014-06-09 Thread Jiang Liu
Refine devicetree to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/devicetree.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff

[Patch V4 36/42] genirq: export irq_domain_disassociate() to architecture interrupt drivers

2014-06-09 Thread Jiang Liu
Export irq_domain_disassociate() to architecture interrupt drivers, so it could be used to handle legacy IRQ descriptors on x86. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irqdomain.h |2 ++ kernel/irq/irqdomain.c|2 +- 2 files changed, 3 insertions(+), 1

[Patch V4 32/42] x86, irq, SFI: use common irqdomain map interface to program IOAPIC pins

2014-06-09 Thread Jiang Liu
Refine SFI to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/intel_mid_pci.c | 19 +--- arch/x86/platform/intel-mid/sfi.c | 58

[Patch V4 41/42] x86, irq, devicetree: release IOAPIC pin when PCI device is disabled

2014-06-09 Thread Jiang Liu
Release IOAPIC pin associated with PCI device when the PCI device is disabled. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/devicetree.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/devicetree.c b/arch/x86/kernel/devicetree.c index

[Patch V4 38/42] x86, irq, ACPI: release IOAPIC pin when PCI device is disabled

2014-06-09 Thread Jiang Liu
Release IOAPIC pin associated with PCI device when the PCI device is disabled. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 27 +++ drivers/acpi/pci_irq.c |3 ++- 2 files changed, 29 insertions(+), 1 deletion(-) diff

[Patch V4 35/42] x86, irq: simplify the way to handle ISA IRQ

2014-06-09 Thread Jiang Liu
On startup, setup_IO_APIC_irqs() will program all IOAPIC pins for ISA IRQs. Later when mp_map_pin_to_irq() is called, it just returns ISA IRQ number without programming corresponding IOAPIC pin. This patch consolidates the way to program IOAPIC pins for both ISA and non-ISA IRQs into

[Patch V4 40/42] x86, irq, SFI: release IOAPIC pin when PCI device is disabled

2014-06-09 Thread Jiang Liu
Release IOAPIC pin associated with PCI device when the PCI device is disabled. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/intel_mid_pci.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c index

[Patch V4 39/42] x86, irq, mpparse: release IOAPIC pin when PCI device is disabled

2014-06-09 Thread Jiang Liu
Release IOAPIC pin associated with PCI device when the PCI device is disabled. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c |1 + arch/x86/pci/irq.c| 13 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git

[Patch V4 42/42] x86, irq: clean up irqdomain transition code

2014-06-09 Thread Jiang Liu
Now we have completely switched to irqdomain, so clean up transition code in IOAPIC drivers. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git

RE: [PATCHv2 5/5] tools: ffs-test: add compatibility code for old kernels

2014-06-09 Thread Krzysztof Opasiak
Hi Michal, -Original Message- From: Michal Nazarewicz [mailto:min...@mina86.com] Sent: Friday, June 06, 2014 11:13 AM To: Felipe Balbi; Krzysztof Opasiak Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Michal Nazarewicz Subject: [PATCHv2 5/5] tools: ffs-test: add

[Patch V4 34/42] x86, irq: clean up unused IOAPIC interface

2014-06-09 Thread Jiang Liu
Now we have converted all x86 platforms to use the common irqdomain map interface. There's no caller of io_apic_set_pci_routing(), setup_IO_APIC_irq_extra() and io_apic_setup_irq_pin_once() any more, so kill them. Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[Patch V4 30/42] x86, irq, ACPI: use common irqdomain map interface to program IOAPIC pins

2014-06-09 Thread Jiang Liu
Refine ACPI to use common irqdomain map interface to program IOAPIC pins, so we can unify the callsite to progam IOAPIC pins. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 44 --- 1 file changed, 12 insertions(+),

[Patch V4 37/42] x86, irq: introduce helper functions to release IOAPIC pin

2014-06-09 Thread Jiang Liu
Introduce function mp_unmap_irq() to release IOAPIC IRQ when IRQ is not used any more, which will typically called by pcibios_disabled_irq. And function mp_irqdomain_unmap() is a common implementation of irq_domain_ops.unmap for IOAPIC. Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[Patch V4 25/42] x86, ACPI, irq: provide basic irqdomain support

2014-06-09 Thread Jiang Liu
Enhance ACPI driver to provide basic irqdomain support for IOAPIC. We will build identity mapping for IOAPICs hosting legacy IRQs, otherwise dynamically allocate IRQ numbers for IOAPIC pins on demand. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 15

Re: [PATCH 4/9] usb: phy: add the Berlin USB PHY driver

2014-06-09 Thread Jisheng Zhang
Dear Sebastian and Antoine, On Fri, 6 Jun 2014 03:54:06 -0700 Sebastian Hesselbarth sebastian.hesselba...@gmail.com wrote: + +#define to_berlin_phy_priv(p) container_of((p), struct berlin_phy_priv, phy) + +struct berlin_phy_priv { + void __iomem*base; + struct

Re: [RFC PATCH 06/16] arm: topology: Define TC2 sched energy and provide it to scheduler

2014-06-09 Thread Morten Rasmussen
On Sat, Jun 07, 2014 at 03:33:58AM +0100, Nicolas Pitre wrote: On Fri, 6 Jun 2014, Ingo Molnar wrote: In any case, even with turbo frequencies, switching power use is probably an order of magnitude higher than leakage current power use, on any marketable chip, so we should concentrate

[Patch V4 22/42] x86, irq, ACPI: change __acpi_register_gsi to return IRQ number instead of GSI

2014-06-09 Thread Jiang Liu
Currently __acpi_register_gsi is defined to return GSI number and may be set to acpi_register_gsi_pic(), acpi_register_gsi_ioapic(), acpi_register_gsi_xen_hvm() and acpi_register_gsi_xen(). Among which, acpi_register_gsi_ioapic() returns GSI number, but acpi_register_gsi_xen_hvm() and

Re: [PATCH 2/2] memcg: Allow hard guarantee mode for low limit reclaim

2014-06-09 Thread Michal Hocko
On Fri 06-06-14 11:29:14, Tejun Heo wrote: Hello, Michal. On Fri, Jun 06, 2014 at 04:46:50PM +0200, Michal Hocko wrote: +choice + prompt Memory Resource Controller reclaim protection + depends on MEMCG + help Why is this necessary? It allows user/admin to set the default

[Patch V4 05/42] x86, PCI, ACPI: use kmalloc_node() to optimize for performance

2014-06-09 Thread Jiang Liu
Use kmalloc_node() instead of kmalloc() when possible to optimize for performance on NUMA platforms. Acked-by: Bjorn Helgaas bhelg...@google.com Acked-by: David Rientjes rient...@google.com Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/acpi.c |6 +++--- 1 file changed,

[Patch V4 09/42] x86, ACPI, irq: fix possible eror in GSI to IRQ mapping for legacy IRQ

2014-06-09 Thread Jiang Liu
A default identity mapping between GSI and IRQ is built for legacy IRQs. So when overriding the default identity mapping for legacy IRQs, we should also invalidate isa_irq_to_gsi[gsi] when setting isa_irq_to_gsi[irq] = gsi. Otherwise there may be two entries with the same GSI in the

[Patch V4 15/42] x86, irq: reorganize IO_APIC_get_PCI_irq_vector() to prepare for irqdomain

2014-06-09 Thread Jiang Liu
Reorganize function IO_APIC_get_PCI_irq_vector() a bit to better support coming irqdomain. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c | 61 ++-- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git

[Patch V4 12/42] x86, ioapic: kill static variable nr_irqs_gsi

2014-06-09 Thread Jiang Liu
Static variable nr_irqs_gsi is used to maintain the lowest dynamic allocatable IRQ number. It may cause trouble when enabling dynamic IRQ allocation for IOAPIC, so use arch_dynirq_lower_bound() to avoid directly accessing nr_irqs_gsi and kill nr_irqs_gsi. Signed-off-by: Jiang Liu

We offer all purpose loan at 3% interest rate

2014-06-09 Thread Santander Finance
We offer all purpose loan at 3% interest rate. Contact Us for more details by Email:santanderfinancegr...@gmail.com -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH] dt-binding: mfd: as3722: correct macro name

2014-06-09 Thread Laxman Dewangan
The macro name for enable3 pin is named as AS3722_EXT_CONTROL_PIN_ENABLE2 which is conflict with the enable2 pin. Correct this macro name to correctly reflect the enable pin i.e. AS3722_EXT_CONTROL_PIN_ENABLE3. Signed-off-by: Laxman Dewangan ldewan...@nvidia.com Reported-by: Dan Willemsen

Re: [PATCH] cpufreq: governor: remove copy_prev_load from 'struct cpu_dbs_common_info'

2014-06-09 Thread Viresh Kumar
On 9 June 2014 12:36, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: On 06/09/2014 10:54 AM, Viresh Kumar wrote: Well, to be honest, I'm not a great fan of writing tricky code (i.e., overloading multiple semantics onto one single thing). However, in this case, I am somewhat, but it

Re: [RFC PATCH v5 3/4] ima: define '.ima' as a builtin 'trusted' keyring

2014-06-09 Thread Dmitry Kasatkin
On 07/06/14 02:27, Mimi Zohar wrote: On Sat, 2014-06-07 at 00:53 +0300, Dmitry Kasatkin wrote: On 3 June 2014 20:58, Mimi Zohar zo...@linux.vnet.ibm.com wrote: Require all keys added to the IMA keyring be signed by an existing trusted key on the system trusted keyring. Changelog v5: - Move

[PATCH 3.12 025/146] timer: Prevent overflow in apply_slack

2014-06-09 Thread Jiri Slaby
From: Jiri Bohac jbo...@suse.cz 3.12-stable review patch. If anyone has any objections, please let me know. === commit 98a01e779f3c66b0b11cd7e64d531c0e41c95762 upstream. On architectures with sizeof(int) sizeof (long), the computation of mask inside apply_slack() can be undefined

[PATCH 3.12 000/146] 3.12.22-stable review

2014-06-09 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.22 release. There are 146 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed Jun 11 08:50:21 2014 Anything received

[PATCH 3.12 007/146] netfilter: Fix potential use after free in ip6_route_me_harder()

2014-06-09 Thread Jiri Slaby
From: Sergey Popovich popovich_ser...@mail.ru 3.12-stable review patch. If anyone has any objections, please let me know. === commit a8951d5814e1373807a94f79f7ccec7041325470 upstream. Dst is released one line before we access it again with dst-error. Fixes: 58e35d147128

[PATCH 3.12 051/146] drm/radeon: check buffer relocation offset

2014-06-09 Thread Jiri Slaby
From: Leo Liu leo@amd.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 695daf1a8e731a4b5b89de89a61f32a4d7ad7094 upstream. Signed-off-by: Leo Liu leo@amd.com Signed-off-by: Christian König christian.koe...@amd.com Signed-off-by:

[PATCH 3.12 049/146] drm/radeon/uvd: use lower clocks on old UVD to boot v2

2014-06-09 Thread Jiri Slaby
From: Christian König christian.koe...@amd.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit e45187620f9fc103edf68fa5ea78e73033e1668c upstream. Some RV7xx generation hardware crashes after you raise the UVD clocks for the first time. Try to

[PATCH 3.12 047/146] drm/radeon/pm: don't walk the crtc list before it has been initialized (v2)

2014-06-09 Thread Jiri Slaby
From: Alex Deucher alexdeuc...@gmail.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3ed9a335cfc64b2c83545f341cdddf2347b12b97 upstream. Avoids a crash in certain cases when thermal irqs are generated before the display structures have

[PATCH 3.12 079/146] drm/nouveau: fix another lock unbalance in nouveau_crtc_page_flip

2014-06-09 Thread Jiri Slaby
From: Maarten Lankhorst maarten.lankho...@canonical.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 806cbc5026933a781b66adecf6d1658fde9138e6 upstream. Fixes a regression introduced by 060810d7abaabca drm/nouveau: fix locking issues in

[PATCH 3.12 015/146] irqchip: Gic: Support forced affinity setting

2014-06-09 Thread Jiri Slaby
From: Thomas Gleixner t...@linutronix.de 3.12-stable review patch. If anyone has any objections, please let me know. === commit ffde1de64012c406dfdda8690918248b472f24e4 upstream. To support the affinity setting of per cpu timers in the early startup of a not yet online cpu,

[PATCH 3.12 091/146] Input: atkbd - fix keyboard not working on some LG laptops

2014-06-09 Thread Jiri Slaby
From: Sheng-Liang Song s...@chromium.org 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3d725caa9dcc78c3dc9e7ea0c04f626468edd9c9 upstream. After issuing ATKBD_CMD_RESET_DIS, keyboard on some LG laptops stops working. The workaround is to

[PATCH 3.12 093/146] Input: synaptics - add min/max quirk for the ThinkPad W540

2014-06-09 Thread Jiri Slaby
From: Hans de Goede hdego...@redhat.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0b5fe736fe923f1f5e05413878d5990e92ffbdf5 upstream. https://bugzilla.redhat.com/show_bug.cgi?id=1096436 Tested-and-reported-by: aj...@bigfoot.com

[PATCH 3.12 114/146] PCI: shpchp: Check bridge's secondary (not primary) bus speed

2014-06-09 Thread Jiri Slaby
From: Marcel Apfelbaum marce...@redhat.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 93fa9d32670f5592c8e56abc9928fc194e1e72fc upstream. When a new device is added below a hotplug bridge, the bridge's secondary bus speed and the device's

[PATCH 3.12 113/146] genirq: Provide irq_force_affinity fallback for non-SMP

2014-06-09 Thread Jiri Slaby
From: Arnd Bergmann a...@arndb.de 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4c88d7f9b0d5fb0588c3386be62115cc2eaa8f9f upstream. Patch 01f8fa4f01d genirq: Allow forcing cpu affinity of interrupts added an irq_force_affinity() function,

[PATCH 3.12 129/146] ACPI: blacklist win8 OSI for Dell Inspiron 7737

2014-06-09 Thread Jiri Slaby
From: Edward Lin yidi@canonical.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit b753631b3576bf343151a82513c5d56fcda1e24f upstream. With win8 capabiltiy, the machine will boot itself immediately after shutdown command has executed.

[PATCH 3.12 065/146] Bluetooth: Add support for Lite-on [04ca:3007]

2014-06-09 Thread Jiri Slaby
From: Mohammed Habibulla m...@chromium.org 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1fb4e09a7e780b915dbd172592ae7e2a4c071065 upstream. Add support for the AR9462 chip T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=03 Dev#= 3 Spd=12 MxCh= 0

[PATCH 3.12 004/146] oom_kill: add rcu_read_lock() into find_lock_task_mm()

2014-06-09 Thread Jiri Slaby
From: Oleg Nesterov o...@redhat.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4d4048be8a93769350efa31d2482a038b7de73d0 upstream. find_lock_task_mm() expects it is called under rcu or tasklist lock, but it seems that at least

[PATCH 3.12 003/146] oom_kill: has_intersects_mems_allowed() needs rcu_read_lock()

2014-06-09 Thread Jiri Slaby
From: Oleg Nesterov o...@redhat.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit ad96244179fbd55b40c00f10f399bc04739b8e1f upstream. At least out_of_memory() calls has_intersects_mems_allowed() without even rcu_read_lock(), this is

[PATCH 3.12 042/146] drm/i915: Break encoder-crtc link separately in intel_sanitize_crtc()

2014-06-09 Thread Jiri Slaby
From: Egbert Eich e...@suse.de 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7f1950fbb989e8fc5463b307e062b4529d51c862 upstream. Depending on the SDVO output_flags SDVO may have multiple connectors linking to the same encoder (in

[PATCH 3.12 041/146] drm/i915: Don't check gmch state on inherited configs

2014-06-09 Thread Jiri Slaby
From: Daniel Vetter daniel.vet...@ffwll.ch 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9953599bc02dbc1d3330e6a0bfc6c50e9dffcac6 upstream. ... our current modeset code isn't good enough yet to handle this. The scenario is: 1. BIOS sets up

[PATCH 3.12 128/146] ACPI / processor: do not mark present at boot but not onlined CPU as onlined

2014-06-09 Thread Jiri Slaby
From: Igor Mammedov imamm...@redhat.com 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0b9d46dd7debf8e6dc8614106f1c1909fa8de64d upstream. acpi_processor_add() assumes that present at boot CPUs are always onlined, it is not so if a CPU failed

  1   2   3   4   5   6   7   8   9   10   >