Re: [Bugfix v5] x86/PCI/ACPI: Fix regression caused by commit 63f1789ec716

2015-04-12 Thread Ingo Molnar
* Jiang Liu wrote: > Before commit 593669c2ac0f("Use common ACPI resource interfaces to > simplify implementation"), arch/x86/pci/acpi.c applies following s/applies following /applied the following > rules when parsing ACPI resources for PCI host bridge: > 1) Ignore IO port resources defined

[GIT PULL] hwmon changes for v4.1

2015-04-12 Thread Guenter Roeck
Hi Linus, Please pull hwmon changes for Linux v4.1 from signed tag: git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-for-linus-v4.1 Thanks, Guenter -- The following changes since commit 9eccca0843205f87c00404b663188b88eb248051: Linux 4.0-rc3 (2015-03-08 1

RE: [linux-next PATCH] mlx5: wrong page mask if CONFIG_ARCH_DMA_ADDR_T_64BIT enabled for 32Bit architectures

2015-04-12 Thread Eli Cohen
On Mon, Apr 13, 2015 at 08:33:33AM +0800, Honggang LI wrote: > > Yes, replaced all of the PAGE_MASK in the file. Please see attched new > patch. > I think you need to send the new patch inline in your email. > > > > @@ -241,7 +243,7 @@ static void free_4k(struct mlx5_core_dev *dev, u64 > > a

[GIT PULL] locking changes for v4.1

2015-04-12 Thread Ingo Molnar
Linus, Please pull the latest locking-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-for-linus # HEAD: 58995a9a5b292458f94a2356b8c878230fa56fe0 powerpc, jump_label: Include linux/jump_label.h to get HAVE_JUMP_LABEL define Main change

[GIT PULL] EFI changes for v4.1

2015-04-12 Thread Ingo Molnar
Linus, Please pull the latest core-efi-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-efi-for-linus # HEAD: 84a87c628a12f95d8b0c86cc7b8edb28ea5edf90 Merge tag 'efi-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi into core/efi T

[Bugfix v5] x86/PCI/ACPI: Fix regression caused by commit 63f1789ec716

2015-04-12 Thread Jiang Liu
Before commit 593669c2ac0f("Use common ACPI resource interfaces to simplify implementation"), arch/x86/pci/acpi.c applies following rules when parsing ACPI resources for PCI host bridge: 1) Ignore IO port resources defined by acpi_resource_io and acpi_resource_fixed_io, which should be used to d

Re: [PATCH v2] vfs: avoid recopying file names in getname_flags

2015-04-12 Thread Boqun Feng
Hi Al, On Sun, Apr 12, 2015 at 12:56:55AM +0100, Al Viro wrote: > On Tue, Apr 07, 2015 at 04:38:26PM +0800, Boqun Feng wrote: > > Ping again... > > What exactly does it buy us? You need a pathname just a bit under 4Kb, which, > with all due respect, is an extremely rare case. Resulting code is

Re: [PATCH v3] kvm: mmu: lazy collapse small sptes into large sptes

2015-04-12 Thread Andres Lagar-Cavilla
On Sun, Apr 12, 2015 at 6:45 PM, Xiao Guangrong wrote: > > > On 04/11/2015 02:05 AM, Andres Lagar-Cavilla wrote: >> >> On Fri, Apr 3, 2015 at 12:40 AM, Wanpeng Li >> wrote: >>> >>> >>> There are two scenarios for the requirement of collapsing small sptes >>> into large sptes. >>> - dirty logging

Re: [PATCH 13/13] thermal: of: implement .set_trips for device tree thermal zones

2015-04-12 Thread Sascha Hauer
Hi Eduardo, On Mon, Apr 06, 2015 at 07:43:08PM -0700, Eduardo Valentin wrote: > On Thu, Mar 26, 2015 at 04:54:00PM +0100, Sascha Hauer wrote: > > Signed-off-by: Sascha Hauer > > --- > > drivers/thermal/of-thermal.c | 12 > > include/linux/thermal.h | 1 + > > 2 files changed,

[Patch Part1 v8 13/37] x86/MSI: Use hierarchy irqdomain to manage MSI interrupts

2015-04-12 Thread Jiang Liu
Enhance MSI code to support hierarchy irqdomain, it helps to make the architecture more clear. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc:

Re: [PATCH] smp/call: Detect stuck CSD locks

2015-04-12 Thread Ingo Molnar
* Chris J Arges wrote: > /sys/module/kvm_intel/parameters/enable_apicv on the affected > hardware is not enabled, and unfortunately my hardware doesn't have > the necessary features to enable it. So we are dealing with KVM's > lapic implementation only. That's actually pretty fortunate, as w

[Patch Part1 v8 27/37] x86/irq: Simplify MSI/DMAR/HPET implementation by using common code

2015-04-12 Thread Jiang Liu
Use common MSI interfaces to simplify DMAR/HPET driver implementation. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav

Re: [PATCH] iwlwifi: Move each system tracepoints to their own header

2015-04-12 Thread Emmanuel Grumbach
On Sun, Apr 12, 2015 at 8:37 PM, Emmanuel Grumbach wrote: > On Wed, Apr 8, 2015 at 10:44 AM, Johannes Berg > wrote: >> On Tue, 2015-04-07 at 12:13 -0400, Steven Rostedt wrote: >>> Every tracing file must have its own TRACE_SYSTEM defined. >>> The iwlwifi tracepoint header broke this and added in

Re: [Patch Part1 v8 00/37] Convert x86 to hierarchy irqdomain and stacked irqchip

2015-04-12 Thread Jiang Liu
On 2015/4/13 14:19, Ingo Molnar wrote: > > * Jiang Liu wrote: > >> Hi all, >> The generic hierarchy irqdomain and stacked irqchip implementation >> has been merged into v3.19, so this patch set converts x86 interupt >> management to hierarchy irqdomain and stacked irqchip. You may access it

Re: [PATCH 1/2] perf tools: Add 'perf-config' command

2015-04-12 Thread Namhyung Kim
Hi Taeung, On Sun, Apr 12, 2015 at 11:44:48PM +0900, Taeung Song wrote: > The perf configuration file contains many variables which can make > the perf command's action more effective and more skilful. > But looking through state of configuration is difficult and > there's no knowing what kind of

[Patch Part1 v8 23/37] x86/irq: Normalize x86 irq_chip name

2015-04-12 Thread Jiang Liu
Some irq_chip names use underscore, others use hyphen. So normalize them to use hythen as separator. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap

[Patch Part1 v8 32/37] x86/irq: Prepare IOAPIC interfaces to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Introduce helper functions to manipulate struct irq_alloc_info for IOAPIC. Also add extra parameter to IOAPIC interfaces to prepare for hierarchy irqdomain. Function mp_set_gsi_attr() will be killed once we have switched to hierarchy irqdomain. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk

Re: [Patch Part1 v8 00/37] Convert x86 to hierarchy irqdomain and stacked irqchip

2015-04-12 Thread Ingo Molnar
* Jiang Liu wrote: > Hi all, > The generic hierarchy irqdomain and stacked irqchip implementation > has been merged into v3.19, so this patch set converts x86 interupt > management to hierarchy irqdomain and stacked irqchip. You may access it at: > https://github.com/jiangliu/linux.git irq

[Patch Part1 v8 33/37] x86/irq: Implement callbacks to enable hierarchy irqdomain on IOAPICs

2015-04-12 Thread Jiang Liu
Implement required callbacks to prepare for enabling hierarchy irqdomain on IOAPICs. Later we will clean up IOAPIC code a lot by using hierarchy irqdomain framework. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc:

[Patch Part1 v8 34/37] x86/irq: Refine the way to allocate irq_cfg for legacy IRQs

2015-04-12 Thread Jiang Liu
To support legacy ISA IRQs, we need to preallocate irq_cfg structures for legacy ISA IRQs. Refine the way to allocate irq_cfg for legacy ISA IRQs, so it's more friend to hierarchy irqdomain implementation. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Gr

[Patch Part1 v8 37/37] x86/irq: Convert IOAPIC to use hierarchy irqdomain interfaces

2015-04-12 Thread Jiang Liu
Convert IOAPIC driver to support and use hierarchy irqdomain interfaces. It's a little big, but it always break bisectings if we split it into multiple patches. Fold in a patch from Andy Shevchenko to make it bisectable. http://lkml.org/lkml/2014/12/10/622 Signed-off-by: Jiang Liu Cc: Andy Shev

[Patch Part1 v8 35/37] x86/irq: Simplify the way to print IOAPIC entry

2015-04-12 Thread Jiang Liu
Simplify the way to print IOAPIC entry content, so we could kill native_io_apic_print_entries(), intel_ir_io_apic_print_entries() and x86_io_apic_ops.print_entries() later. Folded a patch from Thomas to fix errors in printed pin attributes, http://www.spinics.net/lists/linux-tip-commits/msg26108.h

[Patch Part1 v8 31/37] x86/irq: Kill unused pre_init_apic_IRQ0()

2015-04-12 Thread Jiang Liu
Now there's no user of pre_init_apic_IRQ0(), so kill it. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav Petkov Cc: Gr

Re: [PATCH v3] kvm: mmu: lazy collapse small sptes into large sptes

2015-04-12 Thread Wanpeng Li
On Mon, Apr 13, 2015 at 09:45:39AM +0800, Xiao Guangrong wrote: > > >On 04/11/2015 02:05 AM, Andres Lagar-Cavilla wrote: >>On Fri, Apr 3, 2015 at 12:40 AM, Wanpeng Li >>wrote: >>> >>>There are two scenarios for the requirement of collapsing small sptes >>>into large sptes. >>>- dirty logging trac

Re: sched: Improve load balancing in the presence of idle CPUs

2015-04-12 Thread Preeti U Murthy
Hi Jason, On 04/08/2015 05:37 AM, Jason Low wrote: > On Tue, 2015-04-07 at 16:28 -0700, Jason Low wrote: > >> Okay, so perhaps we can also try continuing nohz load balancing if we >> find that there are overloaded CPUs in the system. Sorry about the delay. Ok I will test out the below patch and

[Patch Part1 v8 36/37] x86/irq: Introduce helper functions to support hierarchy irqdomain for IOAPIC

2015-04-12 Thread Jiang Liu
Introduce several helper functions, which will be used to enable hierarchy irqdomain for IOAPIC. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part1 v8 30/37] x86/intel-mid, trivial: Refine code syntax for sfi_parse_mtmr()

2015-04-12 Thread Jiang Liu
Correctly indent code in function sfi_parse_mtmr(). Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: H. Peter Anvin Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc: Yinghai Lu Cc: Borislav

[Patch Part1 v8 20/37] x86/irq: Use hierarchy irqdomain to manage DMAR interrupts

2015-04-12 Thread Jiang Liu
Enhance DMAR code to support hierarchy irqdomain, it helps to make the architecture more clear. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part1 v8 24/37] x86/MSI: Simplify the way to deal with remapped MSI interrupts

2015-04-12 Thread Jiang Liu
Simplify the way to deal with remapped MSI interrupts, so we could kill irq_chip.irq_print_chip later. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunla

[Patch Part1 v8 25/37] x86/MSI: Replace msi_update_msg() with irq_chip_compose_msi_msg()

2015-04-12 Thread Jiang Liu
Function irq_chip_compose_msi_msg() can achieve the same goal as msi_update_msg(), so kill msi_update_msg(). Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy

[Patch Part1 v8 29/37] x86/intel-mid: Delay initialization of APB timer

2015-04-12 Thread Jiang Liu
From: Thomas Gleixner MID has no PIC, but depending on the platform it requires the abt_timer, which is connected to irq0. The timer is set up at late_time_init(). But, looking at the MID code it seems, that there is no reason to do so. The only code which might need the timer working is the TSC

[Patch Part1 v8 21/37] x86/htirq: Use hierarchy irqdomain to manage Hypertransport interrupts

2015-04-12 Thread Jiang Liu
Use hierarchy irqdomain to manage Hypertransport interrupts. We have slightly changed the architecture interfaces to support htirq PCI driver, it should be safe because currently Hypertransport interrupt is only enabled on x86 platforms. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Ton

[Patch Part1 v8 26/37] x86/irq: Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chips

2015-04-12 Thread Jiang Liu
Implement irq_chip.irq_write_msi_msg for MSI/DMAR/HPET irq_chips, they will be used to share common code later. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Ra

[Patch Part1 v8 28/37] irq_remapping: Kill unused function irq_remapping_print_chip()

2015-04-12 Thread Jiang Liu
Now there's no user of irq_remapping_print_chip(), so kill it. Signed-off-by: Jiang Liu --- arch/x86/include/asm/irq_remapping.h |2 -- drivers/iommu/irq_remapping.c| 13 - 2 files changed, 15 deletions(-) diff --git a/arch/x86/include/asm/irq_remapping.h b/arch/x86/i

[Patch Part1 v8 22/37] x86/uv: Use hierarchy irqdomain to manage UV interrupts

2015-04-12 Thread Jiang Liu
Enhance UV code to support hierarchy irqdomain, it helps to make the architecture more clear. We should construct hwirq based on mmr_blade and mmr_offset, but mmr_offset is type of unsigned long, it may exceed the range of irq_hw_number_t. So help about the way to construct hwirq based on mmr_blad

[Patch Part1 v8 09/37] irq_remapping/vt-d: Change prototypes to prepare for enabling hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Prepare for support hierarchy irqdomain by changing function prototypes, should be no function changes. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrensch

[Patch Part1 v8 17/37] irq_remapping: Clean up unused MSI related code

2015-04-12 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code and interfaces. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt

[Patch Part1 v8 19/37] iommu/vt-d: Refine the interfaces to create IRQ for DMAR unit

2015-04-12 Thread Jiang Liu
Refine the interfaces to create IRQ for DMAR unit. It's a preparation for converting DMAR IRQ to hierarchy irqdomain on x86. It also moves dmar_alloc_hwirq()/dmar_free_hwirq() from irq_remapping.h to dmar.h. They are not irq_remapping specific. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk

[Patch Part1 v8 18/37] x86/MSI: Clean up unused MSI related code and interfaces

2015-04-12 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code and interfaces. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wys

[Patch Part1 v8 12/37] x86/hpet: Enhance HPET IRQ to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Enhance HPET code to support hierarchy irqdomain, it helps to make the architecture more clear. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Dunlap Cc:

[Patch Part1 v8 15/37] irq_remapping/vt-d: Clean up unused MSI related code

2015-04-12 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herr

[Patch Part1 v8 14/37] x86/irq: Directly call native_compose_msi_msg() for DMAR IRQ

2015-04-12 Thread Jiang Liu
DMAR interrupt won't be remapped by interrupt remapping hardware, so directly call native_compose_msi_msg() for DMAR IRQ to compose MSI message data. This will help to simplify MSI code later. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hart

[Patch Part1 v8 16/37] irq_remapping/amd: Clean up unused MSI related code

2015-04-12 Thread Jiang Liu
Now MSI interrupt has been converted to new hierarchy irqdomain interfaces, so kill legacy MSI related code. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herr

[Patch Part1 v8 11/37] irq_remapping/amd: Enhance AMD IR driver to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Enhance AMD interrupt remapping driver to support hierarchy irqdomain, it will simplify the code eventually. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...@lists.linux-foundation.org Cc: Bjorn Helgaas Cc: Benjamin Herr

[Patch Part1 v8 06/37] x86/htirq: Use new irqdomain interfaces to allocate/free IRQ

2015-04-12 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ for HTIRQ, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. This patch changes the interfaces between arch independent PCI driver and arch specific code. Currently HT_IRQ is only enabled on x86, so it shouldn't break other architectures. Sig

[Patch Part1 v8 10/37] irq_remapping/vt-d: Enhance Intel IR driver to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Enhance Intel interrupt remapping driver to support hierarchy irqdomain, it will simplify the code eventually. It also implements intel_ir_chip to support stacked irq_chip. Signed-off-by: Jiang Liu Acked-by: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Greg Kroah-Hartman Cc: io...

[Patch Part1 v8 05/37] x86/uv: Use new irqdomain interfaces to allocate/free IRQ

2015-04-12 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc: Randy Du

[Patch Part1 v8 04/37] x86/MSI: Use new irqdomain interfaces to allocate/free IRQ

2015-04-12 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ for PCI MSI, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki

[Patch Part1 v8 08/37] irq_remapping: Introduce new interfaces to support hierarchy irqdomain

2015-04-12 Thread Jiang Liu
Introduce new interfaces for interrupt remapping drivers to support hierarchy irqdomain: 1) irq_remapping_get_ir_irq_domain(): get irqdomain associated with an interrupt remapping unit. IOAPIC/HPET drivers use this interface to get parent interrupt remapping irqdomain. 2) irq_remapping_get_ir

[Patch Part1 v8 07/37] x86/dmar: Use new irqdomain interfaces to allocate/free IRQ

2015-04-12 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ for DMAR and interrupt remapping, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. The private definition of irq_alloc_hwirqs()/irq_free_hwirqs() are temporary solution, it will be removed once we have converted interrupt remapping driver to

Re: linux-next: manual merge of the powerpc-mpe tree with the powerpc tree

2015-04-12 Thread Wei Yang
On Mon, Apr 13, 2015 at 01:27:15PM +1000, Stephen Rothwell wrote: >Hi all, > >Today's linux-next merge of the powerpc-mpe tree got a conflict in >arch/powerpc/include/asm/machdep.h between commit 6e628c7d33d9 >("powerpc/powernv: Reserve additional space for IOV BAR according to >the number of total

[Patch Part1 v8 01/37] x86/irq: Save destination CPU ID in irq_cfg

2015-04-12 Thread Jiang Liu
Cache destination CPU APIC ID into struct irq_cfg when assigning vector for interrupt. Upper layer just needs to read the cached APIC ID instead of calling apic->cpu_mask_to_apicid_and(), it helps to hide APIC driver details from IOAPIC/HPET/MSI drivers.. Signed-off-by: Jiang Liu Cc: Konrad Rzesz

[Patch Part1 v8 02/37] x86/irq: Use hierarchy irqdomain to manage CPU interrupt vectors

2015-04-12 Thread Jiang Liu
Abstract CPU local APIC as an interrupt controller and create an irqdomain for it to manage CPU interrupt vectors. It's the base to enable hierarchy irqdomain on x86 systems. Eventually we will build a irqdomain hierarchy as below: IOAPIC domain---| MSI/MSI-x domain--> [Inerrupt Remapping

[Patch Part1 v8 03/37] x86/hpet: Use new irqdomain interfaces to allocate/free IRQ

2015-04-12 Thread Jiang Liu
Use new irqdomain interfaces to allocate/free IRQ for HPET, so we could kill GENERIC_IRQ_LEGACY_ALLOC_HWIRQ later. Signed-off-by: Jiang Liu Cc: Konrad Rzeszutek Wilk Cc: Tony Luck Cc: Joerg Roedel Cc: Greg Kroah-Hartman Cc: Bjorn Helgaas Cc: Benjamin Herrenschmidt Cc: Rafael J. Wysocki Cc:

[Patch Part1 v8 00/37] Convert x86 to hierarchy irqdomain and stacked irqchip

2015-04-12 Thread Jiang Liu
Hi all, The generic hierarchy irqdomain and stacked irqchip implementation has been merged into v3.19, so this patch set converts x86 interupt management to hierarchy irqdomain and stacked irqchip. You may access it at: https://github.com/jiangliu/linux.git irqdomain/x86_p1_v8 This

Re: [PATCH v6 1/6] clk: iproc: define Broadcom iProc clock binding

2015-04-12 Thread Michael Turquette
Quoting Ray Jui (2015-04-12 21:08:32) > > > On 4/10/2015 5:12 PM, Michael Turquette wrote: > > Quoting Ray Jui (2015-03-17 22:45:17) > >> Document the device tree binding for Broadcom iProc architecture based > >> clock controller > >> > >> Signed-off-by: Ray Jui > >> Reviewed-by: Scott Branden

linux-next: manual merge of the tip tree with the mips tree

2015-04-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in tools/perf/config/Makefile between commit 4fd6ce055817 ("perf tools: Hook up MIPS unwind and dwarf-regs in the Makefile") from the mips tree and commit 3bc3374cc50c ("perf build: Add perf regs objects building") from the tip tree.

Re: [PATCH] Revert "drm/i915: Performed deferred clflush inside set-cache-level"

2015-04-12 Thread Sudip Mukherjee
On Wed, Apr 01, 2015 at 10:01:50AM +0530, Sudip Mukherjee wrote: > On Tue, Mar 31, 2015 at 04:35:49PM +0100, Chris Wilson wrote: > > On Tue, Mar 31, 2015 at 08:40:12PM +0530, Sudip Mukherjee wrote: > > > This reverts commit <0f71979ab7fbd0c71c41c2798de3d33937915434>. > > > > > > my display was get

Re: [PATCH] hrtimer: Replace cpu_base->active_bases with a direct check of the active list

2015-04-12 Thread Preeti U Murthy
On 04/09/2015 02:48 PM, Thomas Gleixner wrote: > On Thu, 9 Apr 2015, Peter Zijlstra wrote: >> On Thu, Apr 09, 2015 at 09:20:39AM +0200, Ingo Molnar wrote: >>> if at least one base is active (on my fairly standard system all cpus >>> have at least one active hrtimer base all the time - and many cpu

Re: clk: clock rates can overflow 32-bit fields

2015-04-12 Thread Michael Turquette
Quoting Brian Norris (2015-04-12 21:24:22) > Hi, > > I've recently been looking at using the common clock framework to > handle my CPU clocks for use by the cpufreq-dt driver, and I ran > across a few problems with integer overflow. On a 32-bit system, > 'unsigned long' (the type used in clk_set_r

[PATCH] ibmveth: Fix off-by-one error in ibmveth_change_mtu()

2015-04-12 Thread David Gibson
AFAIK the PAPR document which defines the virtual device interface used by the ibmveth driver doesn't specify a specific maximum MTU. So, in the ibmveth driver, the maximum allowed MTU is determined by the maximum allocated buffer size of 64k (corresponding to one page in the common case) minus th

Re: Invitation and RFC: Linux Plumbers Device Tree track proposed

2015-04-12 Thread David Gibson
On Sat, Apr 11, 2015 at 09:20:33PM +0200, Rowand, Frank wrote: > In recent years there have been proposed tools to aid in the creation of valid > device trees and in debugging device tree issues. An example of this is the > various approaches proposed (with source code provided) to validate device

linux-next: manual merge of the block tree with Linus' tree

2015-04-12 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in block/blk-mq.c between commit ac2111753ca9 ("blk-mq: initialize 'struct request' and associated data to zero") from Linus' tree and commit cef4e5c345d3 ("blk-mq: ensure that request and PDU data are zeroed at init time") from th

Re: [PATCH] clk: Show clock rate instead of return value

2015-04-12 Thread Michael Turquette
+Sylwester Quoting Chanwoo Choi (2015-04-01 23:40:36) > This patch shows the current clock rate instead of return value > when clk_set_rate() return fail because log message means the clock rate. > > Cc: Mike Turquette > Cc: Stephen Boyd > Signed-off-by: Chanwoo Choi > --- > drivers/clk/clk-c

Re: [PATCH] clk: at91: pll: fix input range validity check

2015-04-12 Thread Michael Turquette
Quoting Boris Brezillon (2015-03-28 18:53:43) > The PLL impose a certain input range to work correctly, but it appears that > this input range does not apply on the input clock (or parent clock) but > on the input clock after it has passed the PLL divisor. > Fix the implementation accordingly. > >

Re: [Bugfix v3] x86/PCI/ACPI: Fix regression caused by commit 63f1789ec716

2015-04-12 Thread Jiang Liu
On 2015/4/10 8:28, Rafael J. Wysocki wrote: > On Fri, Apr 10, 2015 at 12:37 AM, Rafael J. Wysocki > wrote: >> On Thursday, April 09, 2015 05:00:08 PM Bjorn Helgaas wrote: >>> On Thu, Apr 9, 2015 at 4:37 PM, Rafael J. Wysocki >>> wrote: On Thursday, April 09, 2015 10:50:02 AM Jiang Liu wrot

linux-next: build failure after merge of the pm tree

2015-04-12 Thread Stephen Rothwell
Hi Rafael, After merging the pm tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from arch/x86/include/asm/msr.h:131:0, from arch/x86/include/asm/processor.h:20, from arch/x86/include/asm/thread_info.h:23, f

clk: clock rates can overflow 32-bit fields

2015-04-12 Thread Brian Norris
Hi, I've recently been looking at using the common clock framework to handle my CPU clocks for use by the cpufreq-dt driver, and I ran across a few problems with integer overflow. On a 32-bit system, 'unsigned long' (the type used in clk_set_rate() and similar APIs) is often a 32-bit integer. This

Re: [PATCH 3.4 000/176] 3.4.107-rc1 review

2015-04-12 Thread Guenter Roeck
On 04/12/2015 07:01 PM, Zefan Li wrote: Build results: total: 105 pass: 86 fail: 19 Failed builds: arm:omap1_defconfig arm:at91rm9200_defconfig i386:allyesconfig mips:defconfig mips:allmodconfig mips:bcm47xx_defconfig mips:bcm63xx_de

Re: [PATCH V3 5/6] dts: msm8974: Add blsp2_bam dma node

2015-04-12 Thread Sricharan R
Hi, On 04/12/2015 03:42 AM, Sergei Shtylyov wrote: Hello. On 04/11/2015 10:09 AM, Sricharan R wrote: Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-msm8974.dtsi | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/

Re: [PATCH] crypto: arm: workaround for building with old binutils

2015-04-12 Thread Herbert Xu
On Sat, Apr 11, 2015 at 03:32:34PM +0200, Ard Biesheuvel wrote: > From: Arnd Bergmann > > How about something like this: > > A warning will be emitted by make when descending into the arch/arm/crypto > directory, but only if any ARMv8 Crypto modules were in fact selected. > > /home/ard/linux-2.

Re: [PATCH] usb: chipidea: Use extcon framework for VBUS and ID detection

2015-04-12 Thread Peter Chen
On Thu, Apr 09, 2015 at 11:33:38AM +0300, Ivan T. Ivanov wrote: > On recent Qualcomm platforms VBUS and ID lines are not routed to > USB PHY LINK controller. Use extcon framework to receive connect > and disconnect ID and VBUS notification. > > Signed-off-by: Ivan T. Ivanov > --- > > Suggestions

Re: [PATCH v6 1/6] clk: iproc: define Broadcom iProc clock binding

2015-04-12 Thread Ray Jui
On 4/10/2015 5:12 PM, Michael Turquette wrote: > Quoting Ray Jui (2015-03-17 22:45:17) >> Document the device tree binding for Broadcom iProc architecture based >> clock controller >> >> Signed-off-by: Ray Jui >> Reviewed-by: Scott Branden >> --- >> .../bindings/clock/brcm,iproc-clocks.txt

Re: [PATCH] clk: samsung: exynos4: Disable ARMCLK down feature on Exynos4210 SoC

2015-04-12 Thread Michael Turquette
Quoting Krzysztof Kozlowski (2015-03-28 09:37:05) > 2015-03-27 17:27 GMT+01:00 Bartlomiej Zolnierkiewicz > : > > Commit 42773b28e71d ("clk: samsung: exynos4: Enable ARMCLK > > down feature") enabled ARMCLK down feature on all Exynos4 > > SoCs. Unfortunately on Exynos4210 SoC ARMCLK down feature >

linux-next: build warning after merge of the vfs tree

2015-04-12 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/nfs/file.c:677:9: warning: unused variable 'pos' [-Wunused-variable] loff_t pos = iocb->ki_pos; ^ Introduced by commit f52cbe4c9838 ("nfs: generic_write_checks() shouldn't b

[PATCH 01/31] ACPICA: Linuxize: Reduce divergences for 20150410 release.

2015-04-12 Thread Lv Zheng
This patch reduces source code differences between the Linux kernel and the ACPICA upstream so that the linuxized ACPICA 20150410 release can be applied with reduced human intervention. Signed-off-by: Lv Zheng --- drivers/acpi/acpica/acresrc.h |2 +- drivers/acpi/acpica/acutils.h |2 --

[PATCH 00/31] ACPICA: 20150410 Release

2015-04-12 Thread Lv Zheng
The 20150410 ACPICA kernel-resident subsystem updates are linuxized based on the linux-pm/linux-next branch. The patchset has passed the following build/boot tests. Build tests are performed as follows: 1. i386 + default + COFNIG_ACPI=y 2. i386 + allyes + CONFIG_ACPI=y 3. i386 + default + COFNIG_A

Re: [PATCH] smp/call: Detect stuck CSD locks

2015-04-12 Thread Chris J Arges
> So it would be really important to see the stack dump of CPU#0 at this > point, and also do an APIC state dump of it. > > Because from previous dumps it appeared that the 'stuck' CPU was just > in its idle loop - which is 'impossible' as the idle loop should still > allow APIC irqs arriving

[PATCH 03/31] ACPICA: Unix: Cleanup to use ACPI_TO_INTEGER() to calc page offset.

2015-04-12 Thread Lv Zheng
ACPICA commit 9e2d8180f4d5e61949b17513bae8aff6412f62dd The offset calculation needn't convert a pointer to a special integer type. So this patch uses ACPI_TO_INTEGER() instead. This patch only affects acpidump tool. Link: https://github.com/acpica/acpica/commit/9e2d8180 Signed-off-by: Lv Zheng

[PATCH 10/31] ACPICA: Events: Add support to return both enable/status register values for GPE and fixed event.

2015-04-12 Thread Lv Zheng
ACPICA commit e25d791e4b3d5b9f4ead298269610cb05f89749a There is a facility in Linux, developers can obtain GPE and fixed event status via /sys/firmware/interrupts/. This is implemented using acpi_get_event_status() and acpi_get_gpe_status(). Recently while debugging some GPE race issues, it is fou

[added to the 3.18 stable tree] net: ethernet: pcnet32: Setup the SRAM and NOUFLO on Am79C97{3, 5}

2015-04-12 Thread Sasha Levin
From: Markos Chandras This patch has been added to the 3.18 stable tree. If you have any objections, please let us know. === [ Upstream commit 87f966d97b89774162df04d2106c6350c8fe4cb3 ] On a MIPS Malta board, tons of fifo underflow errors have been observed when using u-boot as boo

[PATCH 22/31] ACPICA: Add infrastructure for External() opcode.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit d115fe2ffdab449d6107d58580c5afd0a81d65fe This change adds the basic low-level infrastructure for the External AML opcode. The interpreter will simply ignore this op, as the op is intended for use by the disassembler only. Note that External() opcode is useful for d

[PATCH 17/31] ACPICA: Fix a sscanf format string.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 84f3569db7accc576ace2dae81d101467254fe9d Was using %d instead of properly using %u. This patch only affects acpidump tool. Link: https://github.com/acpica/acpica/commit/84f3569d Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- tools/power/acpi/os_specific/s

[PATCH 24/31] ACPICA: Permanently set _REV to the value '2'.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 7af00219681ab35ebe57d64a9189fd04a5a026d8 Windows uses a value of 2, and has no plans to ever change this. So, _REV is essentially useless for its primary purpose. Worse, some BIOS vendors have used the difference in _REV values between Windows and ACPICA to indicat

[PATCH 18/31] ACPICA: Update Resource descriptor dump module.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 184f3cc4d162a6b6b2005eacd8be2fe55f19a245 - Change global #ifdef to check for ACPI_DEBUGGER only. - Cleanup some long lines and misaligned code. Link: https://github.com/acpica/acpica/commit/184f3cc4 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/ac

[PATCH 27/31] ACPICA: Update for SLIC ACPI table.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit c73195e13d6ad53dd7f03f86cea03c7dec72ffd3 Update to latest table definition, which contains major changes. SLIC table is not used in the Linux kernel. Link: https://github.com/acpica/acpica/commit/c73195e1 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- inc

[PATCH 16/31] ACPICA: Casting changes around acpi_physical_address/acpi_size.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 46dc081e570b1363af1e368980201cbb65c4100f Update for some recent changes, detected by MSVC and FreeBSD builds. Link: https://github.com/acpica/acpica/commit/46dc081e Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/exregion.c |4 ++--

[PATCH 31/31] ACPICA: Update version to 20150410.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 06198cfd96ef271f554a50f1830a5975468c39ac ACPICA commit 8a3c1df1edb5f9fc5c940500c598c0107d30df71 Version 20150410. Link: https://github.com/acpica/acpica/commit/06198cfd Link: https://github.com/acpica/acpica/commit/8a3c1df1 Signed-off-by: Bob Moore Signed-off-by:

[PATCH 28/31] ACPICA: iASL: Add support for MSDM ACPI table.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit a2c590ce9bff850e3abf4fd430cede860a3cb1fa This is the Microsoft Data Management table. MSDM table is not used in the Linux kernel. Link: https://github.com/acpica/acpica/commit/a2c590ce Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/actbl2.h |

[PATCH 19/31] ACPICA: Update AML Debugger global variables.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit f65d0e5b880860a6da0c336b7c48139d1469f5b4 - Remove unused variables - Update to use standard naming/capitalization convention. Linux kernel is not affected by this patch. Link: https://github.com/acpica/acpica/commit/f65d0e5b Signed-off-by: Bob Moore Signed-off-by

[PATCH 25/31] ACPICA: Remove unused internal AML opcode.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 3ec867764b079a98d8097d705c9f7b68270c04ec This patch removes unused AML_INT_STATICSTRING_OP. Lv Zheng. Link: https://github.com/acpica/acpica/commit/3ec86776 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/amlcode.h |1 - 1 file chang

[PATCH 15/31] ACPICA: Resources: Correct conditional compilation definitions.

2015-04-12 Thread Lv Zheng
ACPICA commit f92a08512b0b35dce4a7fc6a73216674a3c2541b Some conditional compilation definitions are wrong across header and source files. This patch corrects them for the resources component. NOTE that a further patch in this patchset cleans up all ACPI_EXEC_APP, converting them into ACPI_DEBUGGE

[PATCH 29/31] ACPICA: Disassembler: Some cleanup of the table dump module.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 330e3b7ec96fbd2e0677b786c09d86be36dd5673 Cleanup of LPIT table output (Dean Nelson) Split some long lines. Link: https://github.com/acpica/acpica/commit/330e3b7e Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/actbl2.h |3 ++- 1 file change

[PATCH 20/31] ACPICA: iASL/Disassembler: Add option to assume table contains valid AML.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit f5d2ff3fa05341d9fe27250fcb2e14c7f871432c For dynamically loaded tables that have unknown ACPI signatures, this option (-df) forces the disassembler to treat the table as if it contains valid AML code (like a DSDT or SSDT). Otherwise, the disassembler will treat the

[PATCH 23/31] ACPICA: Add "Windows 2015" string to _OSI support.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit b293f602a67da478ae0bec129e68bd99787d9908 This change adds this string for Windows 10. Link: https://github.com/acpica/acpica/commit/b293f602 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/utosi.c |1 + include/acpi/actypes.h |

[PATCH 30/31] ACPICA: Fix a couple issues with the local printf module.

2015-04-12 Thread Lv Zheng
ACPICA commit 6853da4c0a99b49d62d6c58d22956cd6ff5759a9 The following commit has fixed local printf issue in width.prec: Commit: 3589b8b8af6bdc3aafe520d76a73b77d965006b6 Subject: ACPICA: Utilities: Fix local printf issue. But this commit only resets width/precision/quialifier to fix the repor

[PATCH 26/31] ACPICA: Add "//" before ascii output of buffers.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 657dc227672709895df3192fa5ea59a649b9a76f Updates the dump buffer utility to comment out the ascii part of buffer dump. Prevents some tools from getting confused. Link: https://github.com/acpica/acpica/commit/657dc227 Signed-off-by: Bob Moore Signed-off-by: Lv Zhen

[PATCH 21/31] ACPICA: iASL: Enhancement for constant folding.

2015-04-12 Thread Lv Zheng
From: Bob Moore ACPICA commit 4f9e950d41cd6f6c704d5d6cf518647620d65e99 Add support to fold expressions with a target operand -- these are folded and converted to a Store operator: Add (4, 3, INT1) --> Store (7, INT1) Also supports ASL+ constructs: INT1 = 4 + 3 --> Store (7, INT1) Linux kerne

[PATCH 04/31] ACPICA: Executer: Cleanup to remove an unnecessary conversion.

2015-04-12 Thread Lv Zheng
ACPICA commit c327986430b7eb170c17d0f45735fe71bb62a810 The conversion converts an acpi_physical_address to acpi_physical_address, this patch thus removes such useless conversion. Link: https://github.com/acpica/acpica/commit/c3279864 Signed-off-by: Lv Zheng Signed-off-by: Bob Moore --- drivers

[PATCH 14/31] ACPICA: Utilities: Correct conditional compilation definitions.

2015-04-12 Thread Lv Zheng
ACPICA commit 9a5982afbebc56289c4834b5f6dac87e0f04af14 Some conditional compilation definitions are wrong across header and source files. This patch corrects them for the utilities component. Link: https://github.com/acpica/acpica/commit/9a5982af Reported-by: Rickard Strandqvist Signed-off-by: L

  1   2   3   4   >