[PATCH V4 1/3] x86: Make page cache mode a real type

2014-10-26 Thread Juergen Gross
At the moment there are a lot of places that handle setting or getting the page cache mode by treating the pgprot bits equal to the cache mode. This is only true because there are a lot of assumptions about the setup of the PAT MSR. Otherwise the cache type needs to get translated into pgprot bits

[PATCH V4 0/3] x86: Full support of PAT

2014-10-26 Thread Juergen Gross
The x86 architecture offers via the PAT (Page Attribute Table) a way to specify different caching modes in page table entries. The PAT MSR contains 8 entries each specifying one of 6 possible cache modes. A pte references one of those entries via 3 bits: _PAGE_PAT, _PAGE_PWT and _PAGE_PCD. The Lin

[PATCH V4 2/3] x86: Enable PAT to use cache mode translation tables

2014-10-26 Thread Juergen Gross
Update the translation tables from cache mode to pgprot values according to the PAT settings. This enables changing the cache attributes of a PAT index in just one place without having to change at the users side. With this change it is possible to use the same kernel with different PAT configurat

[PATCH V4 3/3] Support Xen pv-domains using PAT

2014-10-26 Thread Juergen Gross
With the dynamical mapping between cache modes and pgprot values it is now possible to use all cache modes via the Xen hypervisor PAT settings in a pv domain. All to be done is to read the PAT configuration MSR and set up the translation tables accordingly. Signed-off-by: Juergen Gross Reviewed-

Re: [RFC V2] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-26 Thread Joe Perches
On Mon, 2014-10-27 at 14:37 +0800, Wang, Yalin wrote: > this change add CONFIG_HAVE_ARCH_BITREVERSE config option, > so that we can use arm/arm64 rbit instruction to do bitrev operation > by hardware. > > Signed-off-by: Yalin Wang > --- > arch/arm/Kconfig| 1 + > arch/arm/includ

Re: [PATCH 1/5] mm, compaction: pass classzone_idx and alloc_flags to watermark checking

2014-10-26 Thread Joonsoo Kim
On Tue, Oct 07, 2014 at 05:33:35PM +0200, Vlastimil Babka wrote: > Compaction relies on zone watermark checks for decisions such as if it's worth > to start compacting in compaction_suitable() or whether compaction should stop > in compact_finished(). The watermark checks take classzone_idx and all

Re: [PATCH 2/2] staging: rtl8723au:core

2014-10-26 Thread Jes Sorensen
Joe Perches writes: > On Mon, 2014-10-27 at 07:16 +0100, Jes Sorensen wrote: >> Joe Perches writes: >> > On Mon, 2014-10-27 at 06:45 +0100, Jes Sorensen wrote: >> >> Joe Perches writes: >> >> > On Sun, 2014-10-26 at 16:18 +, Paul McQuade wrote: >> >> >> ERROR: spaces required around that ':'

Re: CXL: Fix PSL error due to duplicate segment table entries

2014-10-26 Thread Michael Ellerman
On Mon, 2014-27-10 at 04:24:35 UTC, Ian Munsie wrote: > From: Ian Munsie > > In certain circumstances the PSL can send an interrupt for a segment Define PSL before using it please. > miss that the kernel has already handled. This can happen if multiple > translations for the same segment are qu

[RFC V2] arm/arm64:add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-26 Thread Wang, Yalin
this change add CONFIG_HAVE_ARCH_BITREVERSE config option, so that we can use arm/arm64 rbit instruction to do bitrev operation by hardware. Signed-off-by: Yalin Wang --- arch/arm/Kconfig| 1 + arch/arm/include/asm/bitrev.h | 21 + arch/arm64/Kconfig

Re: [PATCH v2] Security: smack: replace kzalloc with kmem_cache for inode_smack

2014-10-26 Thread Rohit
On Sun, 26 Oct 2014 17:41:37 -0700 Casey Schaufler wrote: > On 10/17/2014 10:37 AM, Casey Schaufler wrote: > > On 10/17/2014 9:34 AM, PINTU KUMAR wrote: > >> Hi, > >> > >> > >>> > >>> From: Casey Schaufler > >>> To: Rohit > >>> Cc: a...@linux-foundation.org; ja

Re: [PATCH] i915: Add module option to support VGA arbiter on HD devices

2014-10-26 Thread Nikolay Yakimov
Sorry for butting in, but as a concerned user, let me add my two cents. I have just about enough expertise in kernel to port this patch to newer kernel versions. I have absolutely no idea on how to fix this proper. And porting (in my case) is time-consuming and error-prone. I wish this patch was

Re: [RFC/PATCH] PM / Sleep: Timer quiesce in freeze state

2014-10-26 Thread Li, Aubrey
On 2014/10/24 23:36, Peter Zijlstra wrote: > On Tue, Oct 21, 2014 at 11:15:10PM +0800, Li, Aubrey wrote: >> +++ b/arch/x86/kernel/apic/apic.c >> @@ -917,6 +917,14 @@ static void local_apic_timer_interrupt(void) >> */ >> inc_irq_stat(apic_timer_irqs); >> >> +/* >> + * if timekee

Re: [PATCH 2/2] staging: rtl8723au:core

2014-10-26 Thread Joe Perches
On Mon, 2014-10-27 at 07:16 +0100, Jes Sorensen wrote: > Joe Perches writes: > > On Mon, 2014-10-27 at 06:45 +0100, Jes Sorensen wrote: > >> Joe Perches writes: > >> > On Sun, 2014-10-26 at 16:18 +, Paul McQuade wrote: > >> >> ERROR: spaces required around that ':' (ctx:VxE) > > [] > >> >> di

Re: [PATCH 2/2] staging: rtl8723au:core

2014-10-26 Thread Jes Sorensen
Joe Perches writes: > On Mon, 2014-10-27 at 06:45 +0100, Jes Sorensen wrote: >> Joe Perches writes: >> > On Sun, 2014-10-26 at 16:18 +, Paul McQuade wrote: >> >> ERROR: spaces required around that ':' (ctx:VxE) > [] >> >> diff --git a/drivers/staging/rtl8723au/core/rtw_ieee80211.c >> >> b/dri

RE: [PATCH 07/11] iwlwifi: dvm: Fix probable mask then right shift defect

2014-10-26 Thread Grumbach, Emmanuel
> > Precedence of & and >> is not the same and is not left to right. > shift has higher precedence and should be done after the mask. > > Add parentheses around the mask. > > Signed-off-by: Joe Perches > --- Applied - thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH 2/2] staging: rtl8723au:core

2014-10-26 Thread Joe Perches
On Mon, 2014-10-27 at 06:45 +0100, Jes Sorensen wrote: > Joe Perches writes: > > On Sun, 2014-10-26 at 16:18 +, Paul McQuade wrote: > >> ERROR: spaces required around that ':' (ctx:VxE) [] > >> diff --git a/drivers/staging/rtl8723au/core/rtw_ieee80211.c > >> b/drivers/staging/rtl8723au/core/r

[PATCH RFC 04/12] time: Add rtc_tm_to_time() safe version(using time64_t)

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 saftey for in-kernel uses, this patch adds the safe rtc_tm_to_time() using time64_t. Af

[PATCH RFC 06/12] time: Fix build warnings for time64_t to __kernel_time_t warning on 64-bit systems.

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. This patch fixed the build warnings brought by former patches. Signed-off-by: pang.xunlei --- include/linux/time64

[PATCH RFC 09/12] time: Convert rtc_time_to_tm_unsafe() to rtc_time_to_tm() in alarm_set_rtc()

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 saftey for in-kernel uses, this patch creates no functional change in existing users, and

[PATCH RFC 11/12] time: Convert xen_read_wallclock() to use timespec64

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 safety for in-kernel uses, this patch creates no functional change in existing users, con

[PATCH RFC 12/12] time: Convert pvclock_read_wallclock() to use timespec64

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 safety for in-kernel uses, this patch creates no functional change in existing users, con

[PATCH RFC 08/12] time: Add rtc_time_to_tm() safe version(using time64_t)

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 saftey for in-kernel uses, this patch adds the safe rtc_time_to_tm() using time64_t. Af

[PATCH RFC 05/12] time: Convert rtc_tm_to_time_unsafe() to rtc_tm_to_time() in rtc_hctosys()

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 saftey for in-kernel uses, this patch creates no functional change in existing users, and

[PATCH RFC 07/12] time: Rename rtc_time_to_tm() to rtc_time_to_tm_unsafe()

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. Currently, rtc_time_to_tm() deals with "unsigned long" which is 2038 unsafe on 32-bit systems. As part of address

[PATCH RFC 02/12] time: Add mktime() safe version(using time64_t)

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 saftey for in-kernel uses, this patch adds the safe mktime() using time64_t. After this

[PATCH RFC 10/12] time: Convert do_settimeofday() to use timespec64

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. As part of addressing 2038 safety for in-kernel uses, convert do_settimeofday() to use the timespec64 structure, and

[PATCH RFC 03/12] time: Rename rtc_tm_to_time() to rtc_tm_to_time_unsafe()

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. Currently, rtc_tm_to_time() deals with "unsigned long" which is 2038 unsafe on 32-bit systems. As part of address

Re: [PATCH v3] sched/fair: Care divide error in update_task_scan_period()

2014-10-26 Thread Yasuaki Ishimatsu
Could you review my patch? Thanks, Yasuaki Ishimatsu (2014/10/22 16:04), Yasuaki Ishimatsu wrote: > While offling node by hot removing memory, the following divide error > occurs: > >divide error: [#1] SMP >[...] >Call Trace: > [...] handle_mm_fault > [...] ? try_to_wake

[PATCH RFC 01/12] time: Rename mktime() to mktime_unsafe()

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, thus it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. Currently, mktime() deals with "unsigned long" which is 2038 unsafe on 32-bit systems. As part of addressing 2038

Re: [PATCH] staging: rtl8723au: create macro get_max_rate

2014-10-26 Thread Jes Sorensen
Paul McQuade writes: > create marco for max_rate values > > Signed-off-by: Paul McQuade > --- > drivers/staging/rtl8723au/core/rtw_ieee80211.c | 58 > -- > 1 file changed, 26 insertions(+), 32 deletions(-) > > diff --git a/drivers/staging/rtl8723au/core/rtw_ieee80211.c

[PATCH RFC 00/12] time: Convert do_settimeofday() to use timespec64

2014-10-26 Thread pang.xunlei
The kernel uses 32-bit signed value(time_t) for seconds since 1970-01-01:00:00:00, so it will overflow at 2038-01-19 03:14:08 on 32-bit systems. We call this "2038 safety" issue. This series doesn't involve any functional change, and mainly converts do_settimeofday() to use timespec64. During t

Re: [PATCH 2/2] staging: rtl8723au:core

2014-10-26 Thread Jes Sorensen
Joe Perches writes: > On Sun, 2014-10-26 at 16:18 +, Paul McQuade wrote: >> ERROR: spaces required around that ':' (ctx:VxE) >> >> Signed-off-by: Paul McQuade >> --- >> drivers/staging/rtl8723au/core/rtw_ieee80211.c | 16 >> 1 file changed, 8 insertions(+), 8 deletions(-) >

[PATCH] MAINTAINERS: Update ivtv mailing lists as subscriber-only

2014-10-26 Thread Joe Perches
Mark these as subscriber-only mailing lists. Signed-off-by: Joe Perches --- I got rejects not moderation emails for patches to these lists... MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1b063fc..2e353c7 100644 --- a/MAINTAI

[PATCH] checkpatch: Try to avoid mask and shift errors

2014-10-26 Thread Joe Perches
Shift has a higher precedence that mask so warn when a mask then shift operation is done without parentheses around the mask. This test works well for a right shift, but the left shift is pretty commonly done correctly so only warn on the right shift. Signed-off-by: Joe Perches --- scripts/chec

[PATCH 03/11] aiptek: Fix probable mask then right shift defects

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Here the shifts are unnecessary and a non-zero value can be used as the test to set 1 or zero. Signed-off-by: Joe Perches --- drivers/input/tablet/aiptek.c | 6 +++---

[PATCH 02/11] radeon: evergreen: Fix probable mask then right shift defects

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Use the already #defined values instead of hardcoding. Signed-off-by: Joe Perches --- drivers/gpu/drm/radeon/evergreen.c | 3 ++- 1 f

[PATCH 00/11] treewide: mask then shift defects and style updates

2014-10-26 Thread Joe Perches
logical mask has lower precedence than shift but should be done before the shift so parentheses are generally required. And when masking with a fixed value after a shift, normal kernel style has the shift on the left, then the shift on the right so convert a few non-conforming uses. Joe Perches (

[PATCH 06/11] wm8350-core: Fix probable mask then right shift defect

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- drivers/mfd/wm8350-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/m

[PATCH 01/11] block: nvme-scsi: Fix probable mask then right shift defects

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- drivers/block/nvme-scsi.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --gi

[PATCH 11/11] sound: ad1889: Fix probable mask then right shift defects

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- sound/pci/ad1889.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pc

[PATCH 08/11] ssb: driver_chip_comon_pmu: Fix probable mask then right shift defect

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- drivers/ssb/driver_chipcommon_pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[PATCH 07/11] iwlwifi: dvm: Fix probable mask then right shift defect

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- drivers/net/wireless/iwlwifi/dvm/lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 09/11] tty: ipwireless: Fix probable mask then right shift defects

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the masks. Signed-off-by: Joe Perches --- drivers/tty/ipwireless/hardware.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[PATCH 10/11] hwa-hc: Fix probable mask then right shift defect

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- drivers/usb/host/hwa-hc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/u

[PATCH 05/11] cx25840/cx18: Use standard ordering of mask and shift

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. This use has a mask then shift which is not the normal style. Move the shift before the mask to match nearly all the other uses in kernel. Signed-off-by: Joe Perches -

[PATCH 04/11] dvb-net: Fix probable mask then right shift defects

2014-10-26 Thread Joe Perches
Precedence of & and >> is not the same and is not left to right. shift has higher precedence and should be done after the mask. Add parentheses around the mask. Signed-off-by: Joe Perches --- drivers/media/dvb-core/dvb_net.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a

[Patch v7 06/18] ACPI: Fix minor syntax issues in processor_core.c

2014-10-26 Thread Jiang Liu
Fix minor syntax issues in processor_core.c to follow coding styles. Signed-off-by: Jiang Liu --- drivers/acpi/processor_core.c |9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index ef58f46c8442..342942

[Patch v7 16/18] x86, irq, ACPI: Implement interfaces to support ACPI based IOAPIC hot-removal

2014-10-26 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 | 55

[Patch v7 14/18] x86, irq, ACPI: Introduce a rwsem to protect IOAPIC operations from hotplug

2014-10-26 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 cleaner and easie

[Patch v7 18/18] x86, irq, ACPI: Implement ACPI driver to support IOAPIC hotplug

2014-10-26 Thread Jiang Liu
Enable support of IOAPIC hotplug by: 1) reintroducing ACPI based IOAPIC driver 2) enhance pci_root driver to hook hotplug events The ACPI IOAPIC driver is always enabled if all of ACPI, PCI and IOAPIC are enabled. Signed-off-by: Jiang Liu --- drivers/acpi/Kconfig|6 ++ drivers/acpi/Make

Re: [PATCH] ACPI / GPIO: Driver GPIO mappings for ACPI GPIOs

2014-10-26 Thread Alexandre Courbot
On Sat, Oct 25, 2014 at 7:05 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Provide a way for device drivers using GPIOs described by ACPI > GpioIo resources in _CRS to tell the GPIO subsystem what names > (connection IDs) to associate with specific GPIO pins defined > in there. > > T

[Patch v7 17/18] x86, irq: Introduce helper to check whether an IOAPIC has been registered

2014-10-26 Thread Jiang Liu
Introduce acpi_ioapic_registered() to check whether an IOAPIC has already been registered, it will be used when enabling IOAPIC hotplug. Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |1 + arch/x86/kernel/acpi/boot.c| 22 ++ arch/x86/kernel/apic/io_api

[Patch v7 13/18] x86, irq: Refine mp_register_ioapic() to prepare for IOAPIC hotplug

2014-10-26 Thread Jiang Liu
Refine mp_register_ioapic() to prepare for IOAPIC hotplug by: 1) change return value from void to int. 2) check for gsi range conflicts 3) check for IOAPIC physical address conflicts 4) enhance the way to allocate IOAPIC index Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |4 +-

[Patch v7 15/18] x86, irq, ACPI: Implement interface to support ACPI based IOAPIC hot-addition

2014-10-26 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| 31 +-- arch/x86/kernel/apic/io_apic.c | 22 +- 2 files changed, 50 inser

[Patch v7 12/18] x86, irq: Keep balance of IOAPIC pin reference count

2014-10-26 Thread Jiang Liu
To keep balance of IOAPIC pin reference count, we need to protect pirq_enable_irq(), acpi_pci_irq_enable() and intel_mid_pci_irq_enable() from reentrance. There are two cases which will cause reentrance. The first case is caused by suspend/hibernation. If pcibios_disable_irq is called during suspe

[Patch v7 11/18] x86, irq: Remove __init marker for functions will be used by IOAPIC hotplug

2014-10-26 Thread Jiang Liu
Remove __init marker for functions which will be used by IOAPIC hotplug at runtime. Signed-off-by: Jiang Liu --- arch/x86/include/asm/io_apic.h |4 ++-- arch/x86/kernel/apic/io_apic.c | 18 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/x86/include

[Patch v7 07/18] ACPI: Add interfaces to parse IOAPIC ID for IOAPIC hotplug

2014-10-26 Thread Jiang Liu
From: Yinghai Lu We need to parse APIC ID for IOAPIC registration for IOAPIC hotplug. ACPI _MAT method and MADT table are used to figure out IOAPIC ID, just like parsing CPU APIC ID for CPU hotplug. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu --- drivers/acpi/processor_core.c | 122 ++

[Patch v7 09/18] x86, irq: Split out alloc_ioapic_save_registers()

2014-10-26 Thread Jiang Liu
From: Yinghai Lu Split out alloc_ioapic_save_registers() from early_irq_init(), so it could be used for ioapic hotplug later. Signed-off-by: Yinghai Lu Signed-off-by: Jiang Liu Cc: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Sebastian Andrzej Siewior --- arch/x86/kernel/apic/io_apic.c | 2

[Patch v7 10/18] x86, irq: Prefer assigned ID in APIC ID register for x86_64

2014-10-26 Thread Jiang Liu
From: Yinghai Lu Perfer the assigned ID in APIC ID register for x86_64 if it's still available. Signed-off-by: Yinghai Lu Cc: Joerg Roedel Cc: Konrad Rzeszutek Wilk Cc: Sebastian Andrzej Siewior Signed-off-by: Jiang Liu --- arch/x86/kernel/apic/io_apic.c | 35

[Patch v7 08/18] PCI: Remove PCI ioapic driver

2014-10-26 Thread Jiang Liu
To support IOAPIC hotplug on x86 and IA64 platforms, OS needs to figure out global interrupt source number(GSI) and IOAPIC enumeration ID through ACPI interfaces. So BIOS must implement an ACPI IOAPIC device with _GSB/_UID or _MAT method to support IOAPIC hotplug. OS also needs to figure out base p

[Patch v7 05/18] ACPI: Correct return value of acpi_dev_resource_address_space()

2014-10-26 Thread Jiang Liu
Change acpi_dev_resource_address_space() to return failure if the acpi_resource structure can't be converted to an ACPI address64 structure, so caller could correctly detect failure. Signed-off-by: Jiang Liu --- drivers/acpi/resource.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[Patch v7 04/18] x86, PCI, ACPI: Kill private function resource_to_addr() in arch/x86/pci/acpi.c

2014-10-26 Thread Jiang Liu
Private function resource_to_addr() is used to parse ACPI resources for PCI host bridge. There are public interfaces available for that purpose, so replace resource_to_addr() with public interfaces. Reviewed-by: Bjorn Helgaas Signed-off-by: Jiang Liu --- arch/x86/pci/acpi.c | 144 +

[Patch v7 03/18] ACPI, irq, x86: Return IRQ instead of GSI in mp_register_gsi()

2014-10-26 Thread Jiang Liu
The GSI for ACPI SCI may be shared with other devices. For example, Function mp_register_gsi() should return IRQ number, so fix a regression by returning mp_map_gsi_to_irq(gsi, 0) instead of gsi. The regression was caused by commit 84245af7297ced9e8fe "x86, irq, ACPI: Change __acpi_register_gsi t

[Patch v7 02/18] x86, intel-mid: Create IRQs for APB timers and RTC timers

2014-10-26 Thread Jiang Liu
Intel MID platforms has no legacy interrupts, so no IRQ descriptors preallocated. We need to call mp_map_gsi_to_irq() to create IRQ descriptors for APB timers and RTC timers, otherwise it may cause invalid memory access as: [0.116839] BUG: unable to handle kernel NULL pointer dereference at 000

[Patch v7 01/18] ACPI, irq: fix regression casued by 6b9fb7082409

2014-10-26 Thread Jiang Liu
When IOAPIC is disabled, acpi_gsi_to_irq() should return gsi directly instead of calling mp_map_gsi_to_irq() to translate gsi to IRQ by IOAPIC. It fixes https://bugzilla.kernel.org/show_bug.cgi?id=84381. Reported-by: Thomas Richter Signed-off-by: Jiang Liu Cc: rui.zh...@intel.com Cc: # 3.17 ---

[Patch v7 00/18] Enable support of IOAPIC hotplug on x86 platforms

2014-10-26 Thread Jiang Liu
This patch set enhances IOAPIC core and ACPI drivers to support IOAPIC hotplug on x86 platforms. It's based on v3.18-rc2 at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git You may pull it from https://github.com/jiangliu/linux.git ioapic/hotplug_v7 We have pick up several patc

[Patch v7 00/18] Enable support of IOAPIC hotplug on x86 platforms

2014-10-26 Thread Jiang Liu
This patch set enhances IOAPIC core and ACPI drivers to support IOAPIC hotplug on x86 platforms. It's based on v3.18-rc2 at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git You may pull it from https://github.com/jiangliu/linux.git ioapic/hotplug_v7 We have pick up several patc

linux-next: Tree for Oct 27

2014-10-26 Thread Stephen Rothwell
Hi all, Changes since 20141023: New trees: thermal-soc, y2038 The bluetooth tree gained a build failure so I used the version from next-20141023. The sound-asoc tree lost its build failure. The pinctrl tree gained a build failure so I used the version from next-20141023. The akpm-current tree

[PATCH v2] timekeeping: Added a function to return tv_sec portion of ktime_get_real_ts64()

2014-10-26 Thread Heena Sirwani
The following patch adds a function to return tv_sec portion of ktime_get_real_ts64() function in order to have a function that returns seconds as 64-bit integers instead of 32-bit integers to address the y2038 problem. The function is similar to get_seconds() function except that it includes read

Re: [PATCH] gpio: msm-v1: Fix typo in function argument

2014-10-26 Thread Alexandre Courbot
On Fri, Oct 24, 2014 at 11:29 PM, Daniel Thompson wrote: > irq_set_irq_wake() treats its second argument as a boolean. It is much > easier to read code when constant booleans are either 0 or 1! > > This particular line of code distracted me somewhat when I was doing a bit of > work in a code brows

linux-next: build failure after merge of the akpm-current tree

2014-10-26 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: mm/cma.c: In function 'cma_declare_contiguous': mm/cma.c:288:4: error: implicit declaration of function 'phys_to_virt' [-Werror=implicit-function-declaration] kmemleak_ignore(

[PATCH] CXL: Fix PSL error due to duplicate segment table entries

2014-10-26 Thread Ian Munsie
From: Ian Munsie In certain circumstances the PSL can send an interrupt for a segment miss that the kernel has already handled. This can happen if multiple translations for the same segment are queued in the PSL before the kernel has restarted the first translation. The CXL driver did not expect

nanosleep truncated on 64 bit Linux by 292 billion years

2014-10-26 Thread Pádraig Brady
I noticed that nanosleep() on 64 bit, "only" supports 292 years, rather than the full potential 292 billion years with 64 bit time_t, due to: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/time.h?id=refs/tags/v3.16#n87 Attached is a program from Paul Eggert that

Re: [PATCH v2 09/15] net: dsa: Add support for switch EEPROM access

2014-10-26 Thread Guenter Roeck
On 10/26/2014 07:41 PM, Andrew Lunn wrote: On Sun, Oct 26, 2014 at 09:52:39AM -0700, Guenter Roeck wrote: On some chips it is possible to access the switch eeprom. Add infrastructure support for it. Signed-off-by: Guenter Roeck --- v2: - Add support for configuring switch EEPROM size through p

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-26 Thread Yuantian Tang
> -Original Message- > From: Viresh Kumar [mailto:viresh.ku...@linaro.org] > Sent: Tuesday, October 21, 2014 5:04 PM > To: Tang Yuantian-B29983 > Cc: Rafael J. Wysocki; Linux Kernel Mailing List; linux...@vger.kernel.org; > linuxppc-...@ozlabs.org > Subject: Re: [PATCH] cpufreq: qoriq: Mak

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

2014-10-26 Thread Stephen Rothwell
Hi Linus, After merging the pinctrl tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/pinctrl/samsung/pinctrl-exynos.c:1194:43: error: array type has incomplete element type static const struct samsung_pin_bank_data exynos7_pin_banks0[] __initconst = {

Re: [PATCH v9 05/12] x86, mpx: on-demand kernel allocation of bounds tables

2014-10-26 Thread Ren Qiaowei
On 10/24/2014 08:08 PM, Thomas Gleixner wrote: On Sun, 12 Oct 2014, Qiaowei Ren wrote: + /* +* Go poke the address of the new bounds table in to the +* bounds directory entry out in userspace memory. Note: +* we may race with another CPU instantiating the same tabl

Re: [PATCH v2 02/16] pci: quirks: add quirk to avoid AMD NL to bind with xhci

2014-10-26 Thread Huang Rui
On Fri, Oct 24, 2014 at 10:35:29AM -0600, Bjorn Helgaas wrote: > On Fri, Oct 17, 2014 at 04:53:27PM +0800, Huang Rui wrote: > > The dwc3 controller is the PCI-E device in AMD NL platform, but the class > > code > > of PCI header is 0x0c0330, the same with xHC. That's because it needs to > > meet

Re: [PATCH v9 11/12] x86, mpx: cleanup unused bound tables

2014-10-26 Thread Ren Qiaowei
On 10/24/2014 10:40 PM, Thomas Gleixner wrote: On Sun, 12 Oct 2014, Qiaowei Ren wrote: Since we are doing the freeing from munmap() (and other paths like it), we hold mmap_sem for write. If we fault, the page fault handler will attempt to acquire mmap_sem for read and we will deadlock. For now,

[PATCH] sched:skip loop non-idle cpus after find an idle cpu while find_idlest_cpu

2014-10-26 Thread Yao Dongdong
Idle cpu is idler than non-idle cpu, so we needn't loop non-idle cpus after find an idle cpu. Signed-off-by:yaodongd...@huawei.com --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 0b069bf..2445a23 100644

RE: ACPI regression: New Acer workarounds break Samsung NP900X

2014-10-26 Thread Zheng, Lv
Hi, Thanks for letting me know. Though IMO the ACER behavior is not ACPI spec compliant, but following it still shouldn't break the others. Because it just requires EC firmware to always flag SCI_EVT when there is an event queued up. I couldn't see a special reason that a correct EC firmware sh

[PATCH] quirk for Lenovo Yoga 3: no rfkill switch

2014-10-26 Thread Stephan Mueller
The Yoga 3 does not contain any physical rfkill switch. Therefore disable the rfkill switch identically to the Yoga 2 approach. Signed-off-by: Stephan Mueller --- drivers/platform/x86/ideapad-laptop.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/platform/x86/ideapad-laptop

[PATCH V2] Driver cpu: update online when cpu_up/down besides sysfs

2014-10-26 Thread Neil Zhang
The current per-cpu offline info won't be updated when we use any other method besides sysfs to call cpu_up/down. Thus the cpu/online can't reflect the real online status. This patch is going to fix the issue introduced by commit 0902a9044fa5b7a0456ea4daacec2c2b3189ba8c (Driver core: Use generic o

Re: [LKP] [rcu] BUG: kernel_boot_hang mode:0x10d0

2014-10-26 Thread Joe Perches
On Mon, 2014-10-27 at 10:04 +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > commit eea203fea3484598280a07fe503e025e886297fb ("rcu: Use pr_alert/pr_cont > for printing logs") > > > +--++---

Re: [PATHC] net: napi_reuse_skb() should check pfmemalloc

2014-10-26 Thread David Miller
From: Eric Dumazet Date: Thu, 23 Oct 2014 06:30:30 -0700 > From: Eric Dumazet > > Do not reuse skb if it was pfmemalloc tainted, otherwise > future frame might be dropped anyway. > > Signed-off-by: Eric Dumazet Applied, thanks Eric. -- To unsubscribe from this list: send the line "unsubscrib

[PATCH v14 2/5] dt-bindings: document Rockchip thermal

2014-10-26 Thread Caesar Wang
This add the necessary binding documentation for the thermal found on Rockchip SoCs Signed-off-by: zhaoyifeng Signed-off-by: Caesar Wang --- .../bindings/thermal/rockchip-thermal.txt | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/device

Re: [PATCH v2 09/15] net: dsa: Add support for switch EEPROM access

2014-10-26 Thread Andrew Lunn
On Sun, Oct 26, 2014 at 09:52:39AM -0700, Guenter Roeck wrote: > On some chips it is possible to access the switch eeprom. > Add infrastructure support for it. > > Signed-off-by: Guenter Roeck > --- > v2: > - Add support for configuring switch EEPROM size through platform data > or devicetree d

[PATCH v14 0/5] Rockchip soc thermal driver

2014-10-26 Thread Caesar Wang
This series patchs tested on rk3288 SDK board and pinky-v1,v2 board. I believe the driver can be used on the rk3288-evb board. Add this driver, The system can reset the entire chip when the thermal temperture over 120C, In case of rising over 125C when tha hardware shorting,The sodftware will shut

[PATCH v14 5/5] ARM: dts: enable Thermal on rk3288-evb board

2014-10-26 Thread Caesar Wang
when a thermal temperature over TSHUT.Default to via CRU reset the entire chip on rk3288-evb Board, TSHUT is low active on rk3288-evb board. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-evb.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-evb.dts

[PATCH v14 3/5] ARM: dts: add RK3288 Thermal data

2014-10-26 Thread Caesar Wang
This patch changes a dtsi file to contain the thermal data on RK3288 and later SoCs. This data will enable a thermal shutdown over 120C. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3288-thermal.dtsi | 65 +++ 1 file changed, 65 insertions(+) create mode 10

[PATCH v14 4/5] ARM: dts: add main Thermal info to rk3288

2014-10-26 Thread Caesar Wang
This patch is depend on rk3288-thermal.dtsi,or it will compile error. If for some reason we are unable to shut it down in orderly fashion (kernel is stuck holding a lock or similar), then hardware TSHUT will reset it. If the temperature over a period of time High,over 125C the resulting TSHUT gav

[PATCH v14 1/5] thermal: rockchip: add driver for thermal

2014-10-26 Thread Caesar Wang
Thermal is TS-ADC Controller module supports user-defined mode and automatic mode. User-defined mode refers,TSADC all the control signals entirely by software writing to register for direct control. Automaic mode refers to the module automatically poll TSADC output, and the results were checked.I

[PATCH] i386/audit: stop scribbling on the stack frame

2014-10-26 Thread Richard Guy Briggs
git commit b4f0d3755c5e9cc86292d5fd78261903b4f23d4a was very very dumb. It was writing over %esp/pt_regs semi-randomly on i686 with the expected "system can't boot" results. As noted in: https://bugs.freedesktop.org/show_bug.cgi?id=85277 This patch stops fscking with pt_regs. Instead it sets up

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-26 Thread Neil Zhang
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: 2014年10月27日 10:27 > To: Neil Zhang > Cc: Dan Streetman; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplug > > On Sun, Oct 26, 2014 at 07:17:14PM -0700

Re: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-26 Thread Greg KH
On Sun, Oct 26, 2014 at 07:17:14PM -0700, Neil Zhang wrote: > > > > -Original Message- > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > Sent: 2014年10月27日 9:59 > > To: Neil Zhang > > Cc: Dan Streetman; linux-kernel@vger.kernel.org > > Subject: Re: [PATCH] drivers: base: update cpu

[LKP] [ACPI / processor] f3ca4164529: -48.3% will-it-scale.per_process_ops

2014-10-26 Thread kernel test robot
FYI, we noticed the below changes on commit f3ca4164529b875374c410193bbbac0ee960895f ("ACPI / processor: Rework processor throttling with work_on_cpu()") v3.14-rc4 f3ca4164529b875374c410193b testbox/testcase/testparams -- -

Re: [LKP] [futex] 76835b0ebf8: -12.1% will-it-scale.per_process_ops

2014-10-26 Thread Davidlohr Bueso
On Mon, 2014-10-27 at 10:18 +0800, kernel test robot wrote: > FYI, we noticed the below changes on > > commit 76835b0ebf8a7fe85beb03c75121419a7dec52f0 ("futex: Ensure > get_futex_key_refs() always implies a barrier") fwiw I was also able to reproduce similar results, with the hashing costing (un

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

2014-10-26 Thread Stephen Rothwell
Hi Gustavo, After merging the bluetooth tree, today's linux-next build (x86_64 allmodconfig) failed like this: net/bluetooth/smp.o: In function `test_smp': smp.c:(.init.text+0x0): multiple definition of `init_module' net/bluetooth/af_bluetooth.o:af_bluetooth.c:(.init.text+0x0): first defined here

RE: [PATCH v9 10/12] x86, mpx: add prctl commands PR_MPX_ENABLE_MANAGEMENT, PR_MPX_DISABLE_MANAGEMENT

2014-10-26 Thread Ren, Qiaowei
On 2014-10-24, Thomas Gleixner wrote: > On Sun, 12 Oct 2014, Qiaowei Ren wrote: >> +int mpx_enable_management(struct task_struct *tsk) { >> +struct mm_struct *mm = tsk->mm; >> +void __user *bd_base = MPX_INVALID_BOUNDS_DIR; > > What's the point of initializing bd_base here. I had to look

[LKP] [futex] 76835b0ebf8: -12.1% will-it-scale.per_process_ops

2014-10-26 Thread kernel test robot
FYI, we noticed the below changes on commit 76835b0ebf8a7fe85beb03c75121419a7dec52f0 ("futex: Ensure get_futex_key_refs() always implies a barrier") 0429fbc0bdc297d6 76835b0ebf8a7fe85beb03c751 testbox/testcase/testparams -- --

  1   2   3   >