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 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 whet

[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 --- 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 index 53b771d..25cc71c

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 (currently managed by Alan Cox). However, this should pro

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 > 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 > >> wrote: > >> > >> >>> >> diff --git > >> >>>

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

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.o

[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 --- drivers/hid/hid-ids.h| 3 +++ drivers/hid/hid-sensor-hub.c | 9 + 2 files changed, 12 insertions(+) diff --git a/drivers

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 wrote: > "Power" is a very ba

[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: git://git.kernel.org/pub/scm/linux

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(); > > +} > >

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/add

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 aft

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 Acked-by: Antoine Ténart Thanks! Antoine > --- > drivers/pinctrl/berlin/berlin-bg2.c |

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 page

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 wo

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 sett

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) > > +{ > > + c

[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 "-Wno-maybe-uninit

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 > wrote: > > Add S2MPA01 support to the s2mps11 regulator driver. This obsoletes the > > s2mpa01 regulator driver. > > > > Signed-off-by: Krzysztof Kozlowski > > > @@ -216,30 +25

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 >>> wh

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 wrote: > On Fri, May 23, 2014 at 3:02 AM, Geert Uytterhoeven > wrote: >> From: Laurent Pinchart >> >> The MSTP[SC]R registers have clock stop bits, not clock enable bits. The >> bit value should thus be inverted in the is_enabled() operati

[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 be

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

2014-05-27 Thread Jiang Liu
Signed-off-by: Jiang Liu --- 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 b/Documentation/IRQ-domain.txt index 03df71aeb38c..

[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 --- arch/x86/kernel/apic/io_apic.c |4 1 file changed, 4 insertions(+) diff --git a/arch/x86/kernel/

[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(), mp_conf

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

2014-05-27 Thread Jiang Liu
Signed-off-by: Jiang Liu --- 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 --- a/arch/x86/include/asm/io_a

[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 --- arch/x86/include/asm/hardirq.h |3 --- arch/x86/include/asm/io_apic.h | 16 +

[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 isa_irq_to_gsi

[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 --- 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 acpi_registe

[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 --- arch/x86/kernel/apic/io_apic.c | 61 ++-- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b

[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 implement

[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 IOAPIC

[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 --- arch/x86/pci/intel_mid_pci.c |3 +++ arch/x86/platform/intel-mid/sfi.c |2 ++ arch/x86/platform/sfi/sfi.c | 11 ++- 3 files changed, 15 inserti

[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 --- arch/x86/kernel/acpi/boot.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c index 9525498e41d5..063

[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 --- arch/x86/kernel/acpi/boot.c | 44 --- 1 file changed, 12 insertions(+), 32 deletions(-) diff --git

[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 --- arch/x86/include/asm/prom.h |2 -- arch/x86/kernel/devicetree.c | 81 +- arch/x86/kernel/irqinit.c|6 -

[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 --- arch/x86/kernel/mpparse.c |4 +++- arch/x86/pci/irq.c|2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a

[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 --- arch/x86/kernel/devicetree.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/x86/kernel/devic

[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 mp_map_pin_to

[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 --- arch/x86/kernel/acpi/boot.c | 28 drivers/acpi/pci_irq.c |3 ++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/acpi

[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 --- arch/x86/include/asm/io_apic.

[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 --- arch/x86/include/asm/io_apic.h |9 -- arch/x8

[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 --- 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 337d165c64f1..09fece368592 1006

[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 be

[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 --- 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 17535c5bbe65..9beb9f28b5bd 100644 ---

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 /proc/sys/

[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 --- arch/x86/kernel/mpparse.c |1 + arch/x86/pci/irq.c| 13 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/ker

[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 communicatio

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 > --- > arch/x86/ker

[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 --- drivers/leds/Kconfig | 6 ++

[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 --- arch/x86/pci/intel_mid_pci.c | 19 +--- arch/x86/platform/intel-mid/sfi.c | 58 - arch/x8

[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 --- include/linux/irqdomain.h |2 ++ kernel/irq/irqdomain.c|2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/in

[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 --- drivers/watchdog/Kconfig| 7 ++ drivers/w

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 th

[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 --- arch/x86/kernel/mpparse.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index

[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 --- arch/x86/ke

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 > 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 CPU power so that we can

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.

[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 --- arch/x86/kernel/apic/io_apic.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/a

[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 --- arch/x86/kernel/acpi/boot.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/acpi/boot.c

[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 --- 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 index 01edac6c5e18..91bef49

[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 --- arch/x86/kernel/acpi/boot.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/arch/

[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 --- arch/x86/kernel/acpi/boot.c | 50 ++- 1 file changed, 16 insertions(

[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 --- arch/x86/kernel/apic/io_apic.c | 120 ++

[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 --- Compile tested. Does this still qualify as trivial? fs/befs/linuxvfs.c | 2 -- 1 file changed, 2 deletions(-

[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 --- arch/x86/kernel/mpparse.c | 84 + 1 file changed, 39 insertions(+), 45 deletions(-) diff --git a/arch/x86/kernel/mpparse.c b

[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 3)

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 3:21 PM > 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]

[RFC Patch V1 3/4] x86, irq, ACPI: implement interface to support ACPI based IOAPIC hot-addition

2014-05-27 Thread Jiang Liu
Implement acpi_register_ioapic() and enhance mp_register_ioapic() to support ACPI based IOAPIC hot-addition. Signed-off-by: Jiang Liu --- arch/x86/kernel/acpi/boot.c| 18 -- arch/x86/kernel/apic/io_apic.c | 24 +--- 2 files changed, 37 insertions(+), 5

[RFC Patch V1 4/4] x86, irq, ACPI: implement interface to support ACPI based IOAPIC hot-removal

2014-05-27 Thread Jiang Liu
Implement acpi_unregister_ioapic() to support ACPI based IOAPIC hot-removal. An IOAPIC could only be removed when all its pins are unused. Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |1 + arch/x86/kernel/acpi/boot.c| 13 arch/x86/kernel/apic/io_apic.c |

[RFC Patch V1 1/4] x86, irq: refine mp_register_ioapic() to prepare for IOAPIC hotplug

2014-05-27 Thread Jiang Liu
Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |4 +- arch/x86/kernel/apic/io_apic.c | 143 ++-- 2 files changed, 94 insertions(+), 53 deletions(-) diff --git a/arch/x86/include/asm/io_apic.h b/arch/x86/include/asm/io_apic.h index 6b40122bec0

Re: [PATCH 22/22] ARM: sun8i: dt: Add Ippo-q8h v5 support

2014-05-27 Thread Maxime Ripard
On Mon, May 26, 2014 at 12:23:09PM +0800, Chen-Yu Tsai wrote: > On Mon, May 26, 2014 at 3:39 AM, Maxime Ripard > wrote: > > On Fri, May 23, 2014 at 03:51:25PM +0800, Chen-Yu Tsai wrote: > >> The Ippo-q8h is a tablet circiut board commonly found in cheap Android > >> tablets with A23 SoCs. There ar

[tip:irq/core] genirq: Improve documentation to match current implementation

2014-05-27 Thread tip-bot for Jiang Liu
Commit-ID: a257954bb38ab23dbf93df812b4b2c01cae29d8b Gitweb: http://git.kernel.org/tip/a257954bb38ab23dbf93df812b4b2c01cae29d8b Author: Jiang Liu AuthorDate: Tue, 27 May 2014 16:07:37 +0800 Committer: Thomas Gleixner CommitDate: Tue, 27 May 2014 10:16:44 +0200 genirq: Improve documentat

Re: [PATCH 5/5] regulator: tps65917: Add Regulator driver for tps65917 PMIC

2014-05-27 Thread Lee Jones
> >>This patch adds support for TPS65917 PMIC regulators. > >> > >>The regulators set consists of 5 SMPSs and 5 LDOs. The output > >>voltages are configurable and are meant to supply power to the > >>main processor and other components. > >This appears to look *very* like the Palmas driver, should

Re: [PATCH 19/22] ARM: sunxi: Add earlyprintk support using R_UART (sun6i/sun8i)

2014-05-27 Thread Maxime Ripard
On Mon, May 26, 2014 at 05:25:43PM +0800, Chen-Yu Tsai wrote: > On Mon, May 26, 2014 at 2:46 AM, Maxime Ripard > wrote: > > Hi, > > > > On Fri, May 23, 2014 at 03:51:22PM +0800, Chen-Yu Tsai wrote: > >> sun6i/sun8i have a UART in the RTC block group, which can be used > >> as an early console. Thi

Re: [PATCH 03/22] clk: sunxi: add "pll6" to sun6i protected clock list

2014-05-27 Thread Maxime Ripard
On Mon, May 26, 2014 at 12:47:30PM +0800, Chen-Yu Tsai wrote: > On Mon, May 26, 2014 at 2:48 AM, Maxime Ripard > wrote: > > On Fri, May 23, 2014 at 03:51:06PM +0800, Chen-Yu Tsai wrote: > >> PLL6 is used by some important but undocumented module, most likely > >> memory related, such as mbus or th

Build regressions/improvements in v3.15-rc7

2014-05-27 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v3.15-rc7[1] compared to v3.14[2]. Summarized: - build errors: +9/-3 - build warnings: +124/-117 JFYI, when comparing v3.15-rc7[1] to v3.15-rc6[3], the summaries are: - build errors: +4/-1 - build warnings: +41/-30 As

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

2014-05-27 Thread Grygorii Strashko
Hi Lejun, On 05/27/2014 08:38 AM, Alexandre Courbot wrote: > On Fri, May 23, 2014 at 11:00 AM, Zhu, Lejun > wrote: >> Devices based on Intel SoC products such as Baytrail have a Power >> Management IC. In the PMIC there are subsystems for voltage regulation, >> A/D conversion, GPIO and PWMs. The

[PATCH] clk: exynos4: Add PPMU IP block source clocks.

2014-05-27 Thread Jonghwa Lee
Exynos4 has saveral PPMUs and each of them has operation clock which can be gated through CMU's SFR control. New clocks are listed below. All clocks are added as a gate-typed clock. CLK_PPMULEFT, CLK_PPMURIGHT, CLK_PPMUG3D, CLK_PPMUCAMIF, CLK_PPMUTV, CLK_PPMUMFC_L, CLK_PPMUMFC_R, CLK_PPMUIMAGE, C

Re: [PATCH 17/22] mfd: sun6i-prcm: Add support for Allwinner A23 PRCM

2014-05-27 Thread Maxime Ripard
On Mon, May 26, 2014 at 12:36:38PM +0800, Chen-Yu Tsai wrote: > On Mon, May 26, 2014 at 3:14 AM, Maxime Ripard > wrote: > > On Fri, May 23, 2014 at 03:51:20PM +0800, Chen-Yu Tsai wrote: > >> The Allwinner A23 SoC has a PRCM unit like the previous A31 SoC. > >> The differences are the AR100 clock c

Re: [PATCH 4/5] mfd: palmas: Add tps65917 support

2014-05-27 Thread Lee Jones
On Mon, 26 May 2014, Keerthy wrote: > Add tps65917 PMIC support. tps65917 is a subset of palmas PMIC. > Some of the register definitions and the interrupt mappings > are different. > > Signed-off-by: Keerthy > --- > drivers/mfd/palmas.c | 177 >

Re: [PATCH 4/18] qla4xxx: Use kmemdup instead of kmalloc + memcpy

2014-05-27 Thread Vikas Chaudhary
On 26/05/14 8:51 pm, "Benoit Taine" wrote: >This issue was reported by coccicheck using the semantic patch >at scripts/coccinelle/api/memdup.cocci > >Signed-off-by: Benoit Taine >--- >Tested by compilation without errors. > > drivers/scsi/qla4xxx/ql4_os.c |7 +++ > 1 file changed, 3 ins

Re: Build regressions/improvements in v3.15-rc7

2014-05-27 Thread Geert Uytterhoeven
On Tue, 27 May 2014, Geert Uytterhoeven wrote: > JFYI, when comparing v3.15-rc7[1] to v3.15-rc6[3], the summaries are: > - build errors: +4/-1 + /scratch/kisskb/src/drivers/tty/serial/nwpserial.c: error: implicit declaration of function 'udelay' [-Werror=implicit-function-declaration]: =>

Re: [PATCH 4/5] mfd: palmas: Add tps65917 support

2014-05-27 Thread Keerthy
On Tuesday 27 May 2014 02:08 PM, Lee Jones wrote: On Mon, 26 May 2014, Keerthy wrote: Add tps65917 PMIC support. tps65917 is a subset of palmas PMIC. Some of the register definitions and the interrupt mappings are different. Signed-off-by: Keerthy --- drivers/mfd/palmas.c | 177 +++

Re: [PATCH 3/5] mfd: palmas: Add tps65917 specific definitions and enums

2014-05-27 Thread Lee Jones
> Add tps65917 specific definitions and enums. > > Signed-off-by: Keerthy > --- > include/linux/mfd/palmas.h | 793 > > 1 file changed, 793 insertions(+) Looks okay to me: Acked-by: Lee Jones Do the MFD patches have dependencies or are they de

[PATCH] regulator: tps6586x: Remove unused to_tps6586x_dev() function

2014-05-27 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/tps6586x-regulator.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c index e045b7f..0a3bb3a 100644 --- a/drivers/regulator/tps6586x-regulator.c +++ b/drivers/regu

Re: [jet.c...@intel.com: [bio] kernel BUG at drivers/block/virtio_blk.c:166!]

2014-05-27 Thread Maurizio Lombardi
On Tue, May 27, 2014 at 12:03:29PM +0800, Ming Lei wrote: > On Tue, May 27, 2014 at 3:43 AM, Maurizio Lombardi > wrote: > > Hi Jens, > > > > looks like that commit 3979ef4dcf3d1de55a560a3a4016c30a835df44d > > ("bio-modify-__bio_add_page-to-accept-pages-that-dont-start-a-new-segment-v3") > > intr

Re: [PATCH 3/5] mfd: palmas: Add tps65917 specific definitions and enums

2014-05-27 Thread Keerthy
On Tuesday 27 May 2014 02:11 PM, Lee Jones wrote: Add tps65917 specific definitions and enums. Signed-off-by: Keerthy --- include/linux/mfd/palmas.h | 793 1 file changed, 793 insertions(+) Looks okay to me: Acked-by: Lee Jones Do the MFD

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

2014-05-27 Thread Yadwinder Singh Brar
On Tue, May 27, 2014 at 1:26 PM, Krzysztof Kozlowski wrote: > On wto, 2014-05-27 at 12:00 +0530, Yadwinder Singh Brar wrote: >> On Mon, May 26, 2014 at 6:50 PM, Krzysztof Kozlowski >> wrote: >> > Add S2MPA01 support to the s2mps11 regulator driver. This obsoletes the >> > s2mpa01 regulator driver

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

2014-05-27 Thread Mika Westerberg
On Tue, May 27, 2014 at 12:24:56PM +0300, Grygorii Strashko wrote: > >> + > >> + if (retval) { > >> + dev_warn(&pdev->dev, "request irq failed: %d\n", retval); > >> + goto out; > >> + } > >> + > >> + retval = gpiochip_add(&cg->chip); > >> + if (re

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

2014-05-27 Thread Chao Yu
Hi changman, > -Original Message- > From: Changman Lee [mailto:cm224@samsung.com] > Sent: Tuesday, May 27, 2014 2:23 PM > 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] [PATC

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

2014-05-27 Thread Jiang Liu
Yes, I think it should be marked for stable branches. On 2014/5/27 16:11, Thomas Gleixner wrote: > 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 wron

Re: kernel-doc (was Re: + lib-digsigc-kernel-doc-warning-fixes.patch added to -mm tree)

2014-05-27 Thread Alexey Dobriyan
On Mon, May 26, 2014 at 5:02 PM, Theodore Ts'o wrote: > On Mon, May 26, 2014 at 04:27:04PM +0300, Alexey Dobriyan wrote: >> On Thu, May 22, 2014 at 10:28 PM, wrote: >> > * digsig_verify() - digital signature verification with public key >> > * @keyring: keyring to search key in >> > * @s

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

2014-05-27 Thread Zhu, Lejun
On 5/27/2014 5:24 PM, Grygorii Strashko wrote: > Hi Lejun, > > On 05/27/2014 08:38 AM, Alexandre Courbot wrote: >> On Fri, May 23, 2014 at 11:00 AM, Zhu, Lejun >> wrote: >>> +static int crystalcove_gpio_probe(struct platform_device *pdev) >>> +{ >>> + int irq = platform_get_irq(pdev, 0);

  1   2   3   4   5   6   7   8   9   >