Re: [PATCH 09/27] mtd: nand: pxa3xx: show device structure in sysfs

2014-05-27 Thread Alexander Holler
Am 27.05.2014 05:12, schrieb Alexander Shiyan: Tue, 27 May 2014 00:12:34 +0200 от Alexander Holler hol...@ahsoftware.de: Fix a common error in nand-drivers which do not set up a parent devicefor the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de

[PATCH] regulator: ltc3589: Remove ltc3589_list_voltage_fixed function

2014-05-27 Thread Axel Lin
When fixed_uV is set and n_voltage is 1, regulator core will return rdev-desc-fixed_uV in regulator_get_voltage() and regulator_list_voltage(). Rename ltc3589_standby_regulator_ops to ltc3589_fixed_standby_regulator_ops, this makes the code clear that the ops is for fixed voltage regulator.

Re: [PATCH 03/17] phy: ti-pipe3: add external clock support for PCIe PHY

2014-05-27 Thread Kishon Vijay Abraham I
Hi, On Thursday 15 May 2014 06:03 PM, Nishanth Menon wrote: On 05/15/2014 07:18 AM, Kishon Vijay Abraham I wrote: Hi, On Thursday 15 May 2014 05:42 PM, Nishanth Menon wrote: On Thu, May 15, 2014 at 6:59 AM, Kishon Vijay Abraham I kis...@ti.com wrote: Hi Nishant, On Thursday 15 May 2014

Re: [GIT PULL] qcom SoC changes for v3.16

2014-05-27 Thread Ivan T. Ivanov
On Mon, 2014-05-26 at 16:47 +0300, Georgi Djakov wrote: On 05/26/2014 03:49 PM, Paul Bolle wrote: On Fri, 2014-05-23 at 13:42 -0500, Kumar Gala wrote: Ivan T. Ivanov (1): ARM: debug: qcom: make UART address selection configuration option This one just landed in linux-next

[PATCH] regulator: pfuze100: Remove *regulators[] from struct pfuze_chip

2014-05-27 Thread Axel Lin
This driver is using devm_regulator_register() so we don't need to save the pointer for cleanup. Signed-off-by: Axel Lin axel@ingics.com --- drivers/regulator/pfuze100-regulator.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v4] gpio: Add support for Intel SoC PMIC (Crystal Cove)

2014-05-27 Thread Alexandre Courbot
On Tue, May 27, 2014 at 2:38 PM, Alexandre Courbot gnu...@gmail.com wrote: + gpiochip_irqchip_add(cg-chip, crystalcove_irqchip, 0, +handle_simple_irq, IRQ_TYPE_NONE); + + retval = request_threaded_irq(irq, NULL, crystalcove_gpio_irq_handler, +

Re: [PATCH linux-next] DRM: Armada: update dma_buf_export use

2014-05-27 Thread Stephen Rothwell
Hi Dave, On Tue, 27 May 2014 15:52:46 +1000 Dave Airlie airl...@gmail.com wrote: Then we should cc him. He was cc'd on my email that you replied to ... But I guess the extra prod won't hurt :-) -- Cheers, Stephen Rothwells...@canb.auug.org.au signature.asc Description:

Re: [PATCH v4] gpio: Add support for Intel SoC PMIC (Crystal Cove)

2014-05-27 Thread Zhu, Lejun
On 5/27/2014 1:38 PM, Alexandre Courbot wrote: On Fri, May 23, 2014 at 11:00 AM, Zhu, Lejun lejun@linux.intel.com wrote: +static void crystalcove_update_irq_type(int gpio, int type) +{ + u8 ctli = GPIO_TO_CTL(gpio, I); + + type = IRQ_TYPE_EDGE_BOTH; +

Re: [f2fs-dev] [PATCH] f2fs: avoid overflow when large directory feathure is enabled

2014-05-27 Thread Changman Lee
Hi, Chao Good catch. Please, modify Documentation/filesytems/f2fs.txt On Tue, May 27, 2014 at 09:06:52AM +0800, Chao Yu wrote: When large directory feathure is enable, We have one case which could cause overflow in dir_buckets() as following: special case: level + dir_level = 32 and level

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-27 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 03:57 PM, Kirill A. Shutemov wrote: Rusty Russell wrote: Kirill A. Shutemov kirill.shute...@linux.intel.com writes: Andrew Morton wrote: On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins hu...@google.com wrote: Shouldn't FAULT_AROUND_ORDER and fault_around_order

Re: [PATCH 1/3] regulator: s2mps11: Refactor setting ramp delay

2014-05-27 Thread Yadwinder Singh Brar
Hi Krzysztof, On Mon, May 26, 2014 at 6:50 PM, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Prepare for merging the s2mpa01 regulator driver into s2mps11 by: 1. Adding common id for buck regulators. 2. Splitting shared ramp delay settings to match S2MPA01. 3. Adding a configuration of

[PATCH v2] pinctrl: Enable power-source to be extracted from DT files

2014-05-27 Thread Ivan T. Ivanov
From: Ivan T. Ivanov iiva...@mm-sol.com Add power-source property to generic options used for DT parsing files. This enables drivers, which use generic pin configurations, to get the value passed to this property. Signed-off-by: Ivan T. Ivanov iiva...@mm-sol.com ---

[PATCH 07/27 v2] mtd: nand: gpmi: show device structure in sysfs

2014-05-27 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- Changes to v1: add owner to module drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 7 ++- 1 file changed, 2

[PATCH 09/27 v2] mtd: nand: pxa3xx: show device structure in sysfs

2014-05-27 Thread Alexander Holler
Fix a common error in nand-drivers which do not set up a parent device for the mtd-device by using a new inline function. Signed-off-by: Alexander Holler hol...@ahsoftware.de --- Changes to v1: add owner to module drivers/mtd/nand/pxa3xx_nand.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] pinctrl: berlin: Use devm_ioremap_resource()

2014-05-27 Thread Jingoo Han
Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han jg1@samsung.com --- drivers/pinctrl/berlin/berlin-bg2.c |6 +++--- drivers/pinctrl/berlin/berlin-bg2cd.c |6 +++--- drivers/pinctrl/berlin/berlin-bg2q.c

Re: [PATCH 2/3] regulator: s2mps11: Merge S2MPA01 driver

2014-05-27 Thread Yadwinder Singh Brar
On Mon, May 26, 2014 at 6:50 PM, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Add S2MPA01 support to the s2mps11 regulator driver. This obsoletes the s2mpa01 regulator driver. Signed-off-by: Krzysztof Kozlowski k.kozlow...@samsung.com @@ -216,30 +250,20 @@ static int

[RFT PATCH -next v2] [BUGFIX] kprobes: Fix Failed to find blacklist error on ia64 and ppc64

2014-05-27 Thread Masami Hiramatsu
On ia64 and ppc64, the function pointer does not point the entry address of the function, but the address of function discriptor (which contains the entry address and misc data.) Since the kprobes passes the function pointer stored by NOKPROBE_SYMBOL() to kallsyms_lookup_size_offset() for

RE: [f2fs-dev] [PATCH v2] f2fs: avoid crash when trace f2fs_submit_page_mbio event in ra_sum_pages

2014-05-27 Thread Chao Yu
Hi changman, -Original Message- From: Changman Lee [mailto:cm224@samsung.com] Sent: Tuesday, May 27, 2014 9:25 AM To: Chao Yu Cc: Jaegeuk Kim; linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net Subject: Re: [f2fs-dev] [PATCH v2]

Re: [PATCH 13/18] drm/edid: Use kmemdup instead of kmalloc + memcpy

2014-05-27 Thread Jani Nikula
On Mon, 26 May 2014, Benoit Taine benoit.ta...@lip6.fr wrote: This issue was reported by coccicheck using the semantic patch at scripts/coccinelle/api/memdup.cocci Reviewed-by: Jani Nikula jani.nik...@intel.com Signed-off-by: Benoit Taine benoit.ta...@lip6.fr --- Tested by compilation

[PATCH] This is my first commit

2014-05-27 Thread hnnnet48
From: kevin hnnne...@gmail.com --- gtserio.c | 188 ++ 1 file changed, 188 insertions(+) create mode 100755 gtserio.c diff --git a/gtserio.c b/gtserio.c new file mode 100755 index 000..24f1e00 --- /dev/null +++ b/gtserio.c @@ -0,0

Re: [PATCH v4] openrisc: irq: use irqchip framework

2014-05-27 Thread Jonas Bonn
On 05/26/2014 10:52 PM, Geert Uytterhoeven wrote: CC devicetree for the bindings On Mon, May 26, 2014 at 10:31 PM, Stefan Kristiansson stefan.kristians...@saunalahti.fi wrote: +++ b/Documentation/devicetree/bindings/interrupt-controller/opencores,or1k-pic.txt @@ -0,0 +1,23 @@ +OpenRISC

linux-next: manual merge of the tty tree with the m68k tree

2014-05-27 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the tty tree got a conflict in Documentation/kernel-parameters.txt between commit d5ebf7cc86a7 (m68k: Multi-platform EARLY_PRINTK) from the m68k tree and commit 0d3c673e7881 (tty/serial: pl011: add generic earlycon support) from the tty tree. I fixed it up

[PATCH 1/1] sound/aoa/codecs/onyx.c: use static const for texts

2014-05-27 Thread Fabian Frederick
'texts' is only used as source in strcpy Cc: Johannes Berg johan...@sipsolutions.net Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: Fabian Frederick f...@skynet.be --- This is untested. sound/aoa/codecs/onyx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 1/1] sound/aoa/codecs/onyx.c: use static const for texts

2014-05-27 Thread Johannes Berg
On Tue, 2014-05-27 at 08:54 +0200, Fabian Frederick wrote: 'texts' is only used as source in strcpy Looks fine to me, but you should probably send it to the alsa list and the audio maintainer, not lkml and Andrew. johannes -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH] Staging: rtl8192u: r8180_93cx6.c r8192U_wx.c fix checkpatch.pl errors and warnings

2014-05-27 Thread DaeSeok Youn
Hi, 2014-05-27 14:43 GMT+09:00 Chaitanya Hazarey c...@24.io: Fixed the following: ERROR: do not use C99 // comments ERROR: else should follow close brace '}' ERROR: need consistent spacing around '*' (ctx:WxV) ERROR: need consistent spacing around '|' (ctx:VxW) ERROR: space prohibited

Re: [PATCH 1/3] regulator: s2mps11: Refactor setting ramp delay

2014-05-27 Thread Krzysztof Kozlowski
On wto, 2014-05-27 at 11:56 +0530, Yadwinder Singh Brar wrote: Hi Krzysztof, On Mon, May 26, 2014 at 6:50 PM, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Prepare for merging the s2mpa01 regulator driver into s2mps11 by: 1. Adding common id for buck regulators. 2. Splitting

[PATCH 1/1] sound/soc/codecs/wm0010.c: add static to local variable

2014-05-27 Thread Fabian Frederick
Also add const to array text data bss dec hex filename 10946 29043528 1737843e2 sound/soc/codecs/wm0010.o-before 10891 28403512 17243435b sound/soc/codecs/wm0010.o-after Cc: Liam Girdwood lgirdw...@gmail.com Cc: Mark Brown broo...@kernel.org

Re: [PATCH] This is my first commit

2014-05-27 Thread Joe Perches
On Tue, 2014-05-27 at 14:44 +0800, hnnne...@gmail.com wrote: From: kevin hnnne...@gmail.com Hi Kevin. You subject line should be something like: [PATCH] Add support for GeneralTouch serial screen There should be a commit message too. --- gtserio.c | 188

[PATCH V2] staging: dgap: implement proper error handling in dgap_firmware_load()

2014-05-27 Thread Daeseok Youn
When dgap_tty_init() and dgap_tty_register_ports() are failed, these are needed to free some memory properly. It can be handled by calling dgap_tty_uninit() and dgap_cleanup_board(). But tty's ports are not registered yet when these function are failed, so it need to switch with boolean value

[PATCHv2] HID: Debug: Add labels for HID Sensor Usages

2014-05-27 Thread Reyad Attiyat
Add in debugfs report descriptor labels for HID Sensor Usages. Signed-off-by: Reyad Attiyat reyad.atti...@gmail.com --- drivers/hid/hid-debug.c | 79 + 1 file changed, 79 insertions(+) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c

Re: [PATCH] This is my first commit

2014-05-27 Thread H. Peter Anvin
Hi Kevin, I suggest reading the file Documentation/SubmittingPatches for general guidance as how to submit patches. +#define MAJOR_NUM 100 +#define MAJOR_MIN 0 Fixed device numbers need to be allocated from dev...@lanana.org (currently managed by Alan Cox). However,

Re: [PATCHv5 1/3] dts: socfpga: Add bindings for Altera SoC SDRAM controller

2014-05-27 Thread Steffen Trumtrar
On Wed, May 21, 2014 at 10:38:34AM -0500, Thor Thayer wrote: On Tue, May 20, 2014 at 9:44 AM, Steffen Trumtrar s.trumt...@pengutronix.de wrote: Hi! On Tue, May 20, 2014 at 09:31:06AM -0500, Alan Tull wrote: On Mon, May 19, 2014 at 2:37 PM, Thor Thayer tthayer.li...@gmail.com wrote:

Re: [lxc-devel] [RFC PATCH 11/11] loop: Allow priveleged operations for root in the namespace which owns a device

2014-05-27 Thread Seth Forshee
On Mon, May 26, 2014 at 10:39:22PM -0400, Michael H. Warfield wrote: On Tue, 2014-05-27 at 03:36 +0200, Serge E. Hallyn wrote: Quoting Michael H. Warfield (m...@wittsend.com): On Mon, 2014-05-26 at 11:16 +0200, Seth Forshee wrote: On Fri, May 23, 2014 at 08:48:25AM +0300, Marian Marinov

Re: [f2fs-dev] [PATCH v2] f2fs: avoid crash when trace f2fs_submit_page_mbio event in ra_sum_pages

2014-05-27 Thread Changman Lee
On Tue, May 27, 2014 at 02:32:57PM +0800, Chao Yu wrote: Hi changman, -Original Message- From: Changman Lee [mailto:cm224@samsung.com] Sent: Tuesday, May 27, 2014 9:25 AM To: Chao Yu Cc: Jaegeuk Kim; linux-fsde...@vger.kernel.org; linux-kernel@vger.kernel.org;

[PATCH] HID: hid-sensor-hub: Set report quirk for Microsoft Surface

2014-05-27 Thread Reyad Attiyat
Add the Microsoft Surface Pro 2 Type/Touch and default device hardware ID's Set report quirk for the device in hid-sensor-hub Signed-off-by: Reyad Attiyat reyad.atti...@gmail.com --- drivers/hid/hid-ids.h| 3 +++ drivers/hid/hid-sensor-hub.c | 9 + 2 files changed, 12

Re: [PATCH v2 0/6] sched: expel confusing usage of the term power

2014-05-27 Thread Vincent Guittot
Hi Nicolas, There are still some use of power instead of capacity in the sched directory like SD_SHARE_CPUPOWER, ARCH_POWER or NONTASK_POWER. They should also be renamed in capacity as there are also used for capacity Vincent On 27 May 2014 00:19, Nicolas Pitre nicolas.pi...@linaro.org wrote:

[GIT PULL] final pin control fix for v3.15

2014-05-27 Thread Linus Walleij
Hi Linus, here is a final single patch for v3.15. Details in the signed tag, please pull it in. The following changes since commit 4b660a7f5c8099d88d1a43d8ae138965112592c7: Linux 3.15-rc6 (2014-05-22 06:42:02 +0900) are available in the git repository at:

Re: [PATCH 06/14] perf tools: Cache dso data file descriptor

2014-05-27 Thread Jiri Olsa
On Tue, May 27, 2014 at 10:05:28AM +0900, Namhyung Kim wrote: Hi Jiri, On Thu, 15 May 2014 19:23:27 +0200, Jiri Olsa wrote: [SNIP] +static void data_close(void) +{ + bool cache_fd = may_cache_fd(); + + if (!cache_fd) + close_first_dso(); +} Why do you do this

Re: [PATCH 09/14] perf tools: Add dso__data_* interface descriptons

2014-05-27 Thread Jiri Olsa
On Tue, May 27, 2014 at 10:06:48AM +0900, Namhyung Kim wrote: On Thu, 15 May 2014 19:23:30 +0200, Jiri Olsa wrote: [SNIP] +/** + * dso__data_read_addr - Read data from dso address + * @dso: dso object + * @machine: machine object + * @offset: file offset s/offset/addr/ oops..

Re: [PATCH 10/14] perf tests: Spawn child for each test

2014-05-27 Thread Jiri Olsa
On Tue, May 27, 2014 at 10:08:25AM +0900, Namhyung Kim wrote: On Thu, 15 May 2014 19:23:31 +0200, Jiri Olsa wrote: In upcoming tests we will setup process limits, which might affect other tests. Spawning child for each test to prevent this. But you can restore original limits after the

Re: [PATCH] pinctrl: berlin: Use devm_ioremap_resource()

2014-05-27 Thread Antoine Ténart
On Tue, May 27, 2014 at 03:29:17PM +0900, Jingoo Han wrote: Use devm_ioremap_resource() because devm_request_and_ioremap() is obsoleted by devm_ioremap_resource(). Signed-off-by: Jingoo Han jg1@samsung.com Acked-by: Antoine Ténart antoine.ten...@free-electrons.com Thanks! Antoine

Re: [patch 9/9] mm: memcontrol: rewrite uncharge API

2014-05-27 Thread Kamezawa Hiroyuki
(2014/05/01 5:25), Johannes Weiner wrote: The memcg uncharging code that is involved towards the end of a page's lifetime - truncation, reclaim, swapout, migration - is impressively complicated and fragile. Because anonymous and file pages were always charged before they had their

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/26 22:03, Mike Galbraith wrote: On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: how to turn off SD_SHARE_PKG_RESOURCES in userspace ? I use a script Ingo gave me years and years ago to twiddle /proc/sys/kernel/sched_domain/cpuN/domainN/flags domain wise. Doing that won't do

Re: [PATCH 12/14] perf tests: Add test interface for dso data fd limit

2014-05-27 Thread Jiri Olsa
On Tue, May 27, 2014 at 10:10:40AM +0900, Namhyung Kim wrote: On Thu, 15 May 2014 19:23:33 +0200, Jiri Olsa wrote: Adding a way to setup test dso limit by global variable test_dso_data__fd_limit. It'll be used in the dso data cache tests. Why is this needed? Why not justing setting

Re: [PATCH 13/14] perf tests: Add test for caching dso file descriptors

2014-05-27 Thread Jiri Olsa
On Tue, May 27, 2014 at 10:36:44AM +0900, Namhyung Kim wrote: On Thu, 15 May 2014 19:23:34 +0200, Jiri Olsa wrote: Adding test that setup test_dso_data__fd_limit and test dso data file descriptors are cached appropriately. [SNIP] +static long open_files_cnt(void) +{ + char

[PATCH] Makefile: Fix unrecognized cross-compiler command line options

2014-05-27 Thread Geert Uytterhoeven
On architectures that setup CROSS_COMPILE in their arch/*/Makefile (arc, blackfin, m68k, mips, parisc, score, sh, tile, unicore32, xtensa), cc-option and cc-disable-warning may check against the wrong compiler, causing errors like cc1: error: unrecognized command line option

Re: [PATCH 2/3] regulator: s2mps11: Merge S2MPA01 driver

2014-05-27 Thread Krzysztof Kozlowski
On wto, 2014-05-27 at 12:00 +0530, Yadwinder Singh Brar wrote: On Mon, May 26, 2014 at 6:50 PM, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: Add S2MPA01 support to the s2mps11 regulator driver. This obsoletes the s2mpa01 regulator driver. Signed-off-by: Krzysztof Kozlowski

Re: balance storm

2014-05-27 Thread Libo Chen
On 2014/5/26 22:19, Mike Galbraith wrote: On Mon, 2014-05-26 at 20:16 +0800, Libo Chen wrote: On 2014/5/26 13:11, Mike Galbraith wrote: Your synthetic test is the absolute worst case scenario. There has to be work between wakeups for select_idle_sibling() to have any chance whatsoever of

Re: [PATCH 14/14] perf tests: Add test for closing dso objects on EMFILE error

2014-05-27 Thread Jiri Olsa
On Tue, May 27, 2014 at 10:43:57AM +0900, Namhyung Kim wrote: On Thu, 15 May 2014 19:23:35 +0200, Jiri Olsa wrote: Testing that perf properly closes opened dso objects and tries to reopen in case we run out of allowed file descriptors for dso data. Cc: Arnaldo Carvalho de Melo

Re: [PATCH v3] clk: shmobile: mstp: Fix the is_enabled() operation

2014-05-27 Thread Geert Uytterhoeven
Hi Magnus, On Tue, May 27, 2014 at 3:02 AM, Magnus Damm magnus.d...@gmail.com wrote: On Fri, May 23, 2014 at 3:02 AM, Geert Uytterhoeven geert+rene...@glider.be wrote: From: Laurent Pinchart laurent.pinchart+rene...@ideasonboard.com The MSTP[SC]R registers have clock stop bits, not clock

[Patch V3 00/37] use irqdomain to dynamically allocate IRQ for IOAPIC

2014-05-27 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

[Patch V3 02/37] genirq, trivial: improve documentation to match current implementation

2014-05-27 Thread Jiang Liu
Signed-off-by: Jiang Liu jiang@linux.intel.com --- Documentation/IRQ-domain.txt |3 +-- kernel/irq/internals.h |2 +- kernel/irq/irqdomain.c |6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Documentation/IRQ-domain.txt

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

2014-05-27 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 --- arch/x86/kernel/apic/io_apic.c |4 1 file changed, 4 insertions(+)

[Patch V3 04/37] x86, mpparse: simplify arch/x86/include/asm/mpspec.h

2014-05-27 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) Change mp_override_legacy_irq(),

[Patch V3 11/37] x86, ioapic: kill unused global variable timer_through_8259

2014-05-27 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 V3 10/37] x86, irq, trivial: minor improvements of IRQ related code

2014-05-27 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. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/include/asm/hardirq.h |3 ---

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

2014-05-27 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 V3 16/37] x86, irq: introduce some helper utilities to improve readability

2014-05-27 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 V3 18/37] x86, irq, ACPI: change __acpi_register_gsi to return IRQ number instead of GSI

2014-05-27 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

[Patch V3 17/37] x86, ACPI, irq: consolidate algorithm of mapping (ioapic, pin) to IRQ number

2014-05-27 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 V3 15/37] x86, irq: reorganize IO_APIC_get_PCI_irq_vector() to prepare for irqdomain

2014-05-27 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 V3 20/37] x86, irq: enhance mp_register_ioapic() to support irqdomain

2014-05-27 Thread Jiang Liu
Add extra arguments to function mp_register_ioapic() to support irqdomain. When registering IOAPIC, caller may provide a callback and corresponding argument to create irqdomain for this IOAPIC. The callback will be called later when initializing IOAPIC subsystem. We also provide a common

[Patch V3 19/37] x86, irq: introduce mechanisms to support dynamically allocate IRQ for IOAPIC

2014-05-27 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

[Patch V3 23/37] x86, SFI, irq: provide basic irqdomain support

2014-05-27 Thread Jiang Liu
Enhance SFI to provide basic support of irqdomain with identity mapping between GSIs and IRQs. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/intel_mid_pci.c |3 +++ arch/x86/platform/intel-mid/sfi.c |2 ++ arch/x86/platform/sfi/sfi.c | 11 ++- 3

[Patch V3 21/37] x86, ACPI, irq: provide basic irqdomain support

2014-05-27 Thread Jiang Liu
Enhance ACPI driver to provide basic irqdomain support for IOAPIC. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/acpi/boot.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/acpi/boot.c

[Patch V3 26/37] x86, irq, ACPI: use common irqdomain map interface to program IOAPIC pins

2014-05-27 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 V3 25/37] x86, irq: introduce two helper functions to support irqdomain map operation

2014-05-27 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 V3 24/37] x86, devicetree, irq: use common mechanism to support irqdomain

2014-05-27 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 | 81 +-

[Patch V3 27/37] x86, irq, mpparse: use common irqdomain map interface to program IOAPIC pins

2014-05-27 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 V3 29/37] x86, irq, devicetree: use common irqdomain map interface to program IOAPIC pins

2014-05-27 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 V3 31/37] x86, irq: simplify the way to handle ISA IRQ

2014-05-27 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 V3 34/37] x86, irq, ACPI: release IOAPIC pin when PCI device is disabled

2014-05-27 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 | 28 drivers/acpi/pci_irq.c |3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) diff

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

2014-05-27 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 V3 30/37] x86, irq: clean up unused IOAPIC interface

2014-05-27 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 V3 36/37] x86, irq, SFI: release IOAPIC pin when PCI device is disabled

2014-05-27 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 v2 0/3] Introduce MEN 14F02100 BMC driver series

2014-05-27 Thread Andreas Werner
This patch set add support for the MEN 14F021P00 Board Management called BMC. The BMC is a PIC Mikrocontroller which assembled on almost all of our 3U Compact PCI CPU board and a few Box PCs. The main part of the BMC is to start and monitor the board, but there are a lot more features which can

[Patch V3 37/37] x86, irq, devicetree: release IOAPIC pin when PCI device is disabled

2014-05-27 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

Re: balance storm

2014-05-27 Thread Mike Galbraith
On Tue, 2014-05-27 at 15:44 +0800, Libo Chen wrote: On 2014/5/26 22:03, Mike Galbraith wrote: On Mon, 2014-05-26 at 19:49 +0800, Libo Chen wrote: how to turn off SD_SHARE_PKG_RESOURCES in userspace ? I use a script Ingo gave me years and years ago to twiddle

[Patch V3 35/37] x86, irq, mpparse: release IOAPIC pin when PCI device is disabled

2014-05-27 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 v2 1/3] drivers/mfd/menf21bmc: introduce MEN 14F021P00 BMC MFD Core driver

2014-05-27 Thread Andreas Werner
The MEN 14F021P00 Board Management Controller provides an I2C interface to the host to access the feature implemented in the BMC. The BMC is a PIC Microntroller assembled on CPCI Card from MEN Mikroelektronik and on a few Box/Display Computer. Added MFD Core driver, supporting the I2C

Re: [Patch V3 01/37] x86, irq: update high address field when updating affinity for MSI IRQ

2014-05-27 Thread Thomas Gleixner
On Tue, 27 May 2014, Jiang Liu wrote: 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. That should be tagged for stable, right? Signed-off-by: Jiang Liu jiang@linux.intel.com

[PATCH v2 3/3] drivers/leds/leds-menf21bmc: introduce MEN 14F021P00 BMC LED driver

2014-05-27 Thread Andreas Werner
Added driver to support the 14F021P00 BMC LEDs. The BMC is a Board Management Controll include four LEDs which can be switched on and off. This driver use the I2C interface to the BMC using the menf21bmc MFD Core driver. Signed-off-by: Andreas Werner andreas.wer...@men.de ---

[Patch V3 28/37] x86, irq, SFI: use common irqdomain map interface to program IOAPIC pins

2014-05-27 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 V3 32/37] genirq: export irq_domain_disassociate() to architecture interrupt drivers

2014-05-27 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 v2 2/3] drivers/watchdog/menf21bmc_wd: introduce MEN 14F021P00 BMC Watchdog driver

2014-05-27 Thread Andreas Werner
Added driver to support the 14F021P00 BMC Watchdog. The BMC is a Board Management Controller including watchdog functionality. This driver use the I2C interface to the BMC using the menf21bmc MFD Core driver. Signed-off-by: Andreas Werner andreas.wer...@men.de --- drivers/watchdog/Kconfig

Re: Extend irq_set_affinity_notifier() to use a call chain

2014-05-27 Thread Amir Vadai
On 5/26/2014 3:39 PM, Thomas Gleixner wrote: [...] The rmap _IS_ instantiated by the driver, and both the driver and the networking core know about it. So it's not completely different consumers. Just because it's a library does not mean it's disjunct from the code which uses it. Aside of

[Patch V3 22/37] x86, mpparse, irq: provide basic irqdomain support

2014-05-27 Thread Jiang Liu
Enhance mpparse to provide basic support of irqdomain with identity mapping between GSIs and IRQs. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/mpparse.c

[Patch V3 12/37] x86, ioapic: kill static variable nr_irqs_gsi

2014-05-27 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

Re: [PATCH 20/22] ARM: sun8i: Add SMP support for the Allwinner A23

2014-05-27 Thread Marc Zyngier
On 26/05/14 04:57, Chen-Yu Tsai wrote: On Mon, May 26, 2014 at 3:26 AM, Maxime Ripard maxime.rip...@free-electrons.com wrote: On Fri, May 23, 2014 at 03:51:23PM +0800, Chen-Yu Tsai wrote: The A23 is a dual Cortex-A7. Add the logic to use the IPs used to control the CPU configuration and the

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

2014-05-27 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in fs/ext4/page-io.c between commit a3f79014dc44 (ext4: fix zeroing of page during writeback) from the ext4 tree and commit 97527831700a (fs/buffer.c: remove block_write_full_page_endio()) from the akpm-current tree. I

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

2014-05-27 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 V3 08/37] x86, ACPI, irq: enhance error handling in function acpi_register_gsi()

2014-05-27 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 V3 05/37] x86, PCI, ACPI: use kmalloc_node() to optimize for performance

2014-05-27 Thread Jiang Liu
Use kmalloc_node() instead of kmalloc() when possible to optimize for performance on NUMA platforms. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/pci/acpi.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c

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

2014-05-27 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 V3 07/37] x86, ACPI, trivial: minor improvements to arch/x86/kernel/acpi/boot.c

2014-05-27 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 V3 13/37] x86, ioapic: introduce helper utilities to walk ioapics and pins

2014-05-27 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

[RFC Patch V1 0/4] enhance IOAPIC core to support hotplug

2014-05-27 Thread Jiang Liu
This patch set enhances IOAPIC core to support IOAPIC hotplug on x86 platforms. It's based on another patch set use irqdomain to dynamically allocate IRQ for IOAPIC at https://lkml.org/lkml/2014/5/27/86 You may pull from https://github.com/jiangliu/linux.git ioapic/hotplug Once passed review,

[PATCH] [TRIVIAL] befs: remove check for CONFIG_BEFS_RW

2014-05-27 Thread Paul Bolle
Befs contains a check for CONFIG_BEFS_RW for over a decade now. The related Kconfig symbol never existed, so this check always evaluated to true. Remove it. Signed-off-by: Paul Bolle pebo...@tiscali.nl --- Compile tested. Does this still qualify as trivial? fs/befs/linuxvfs.c | 2 -- 1 file

[Patch V3 03/37] x86, mpparse: use pr_lvl() helper utilities to replace printk(KERN_LVL)

2014-05-27 Thread Jiang Liu
Use pr_lvl() helper utilities to replace printk(KERN_LVL) for readability, no function changes. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/mpparse.c | 84 + 1 file changed, 39 insertions(+), 45 deletions(-) diff --git

[RFC Patch V1 2/4] x86, irq, ACPI: introduce a rwsem to protect IOAPIC operations from hotplug

2014-05-27 Thread Jiang Liu
We are going to support ACPI based IOAPIC hotplug, so introduce a rwsem to protect IOAPIC data structures from IOAPIC hotplug. We choose to serialize in ACPI instead of in the IOAPIC core because: 1) currently we are only plan to support ACPI based IOAPIC hotplug 2) it's much more clean and easy

  1   2   3   4   5   6   7   8   9   >