[Patch v2] lapic need be checked if available when initialize acpi processor id

2014-04-29 Thread Baoquan He
In acpi_processor_get_info(), acpi processor info is initialized including id, namely cpu index. Currently, if on UP system running SMP kerenl with no LAPIC in MADT, cpu0_initialized is checked if acpi processor id is initialized. However this check maybe is not correct for kdump kernel. Most of

Re: [PATCH v2 1/1] Driver for Beckhoff CX5020 EtherCAT master module.

2014-04-29 Thread Darek Marcinkiewicz
On Tue, Apr 29, 2014 at 03:45:08PM -0400, David Miller wrote: > From: Darek Marcinkiewicz > Date: Mon, 28 Apr 2014 07:36:58 +0200 > > > +void *ec_bh_alloc_dma_mem(struct bh_priv *priv, > > +int channel, > > +u8 **buf, > > +

Re: [PATCH v8 1/2] dma: Add Xilinx Video DMA DT Binding Documentation

2014-04-29 Thread Vinod Koul
On Wed, Apr 23, 2014 at 08:23:25PM +0530, Srikanth Thokala wrote: > Device-tree binding documentation of Xilinx Video DMA Engine > > Signed-off-by: Srikanth Thokala > Acked-by: Rob Herring Applied, both Thanks -- ~Vinod -- To unsubscribe from this list: send the line "unsubscribe

RE: [PATCH v2 1/4] powercap/rapl: further relax energy counter checks

2014-04-29 Thread R, Durgadoss
> -Original Message- > From: David E. Box [mailto:david.e@linux.intel.com] > Sent: Wednesday, April 30, 2014 4:03 AM > To: david.e@linux.intel.com; jacob.jun@linux.intel.com; linux- > p...@vger.kernel.org; Wysocki, Rafael J; linux-kernel@vger.kernel.org; >

[PATCHv3 1/2] dt/bindings: Add the DT binding documentation for endianness

2014-04-29 Thread Xiubo Li
Signed-off-by: Xiubo Li --- .../devicetree/bindings/endianness/endianness.txt | 47 ++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/endianness/endianness.txt diff --git a/Documentation/devicetree/bindings/endianness/endianness.txt

[PATCHv3 2/2] regmap: add DT endianness binding support.

2014-04-29 Thread Xiubo Li
For many drivers which will support rich endianness of CPU<-->Dev need define DT properties by itself without the binding support. The endianness using regmap: IndexCPU Device Endianess flag for DT bool property 1

[PATCHv3 0/2] add DT endianness binding support

2014-04-29 Thread Xiubo Li
Changes in V3: - Follow Mark Rutland's advice. - Document common case of the endianess usage. Changes in V2: - Namespace the properties using the prefix sring. - Add one binding ducomentation off regmap. Xiubo Li (2): dt/bindings: Add the DT binding documentation for endianness regmap: add

[PATCH v2 2/4] usb: ehci-exynos: Use struct device instead of platform_device

2014-04-29 Thread Vivek Gautam
Change to use struct device instead of struct platform_device for some static functions. Signed-off-by: Vivek Gautam Cc: Alan Stern Acked-by: Jingoo Han --- Changes from v1: - none drivers/usb/host/ehci-exynos.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH v2 1/4] usb: ohci-exynos: Use struct device instead of platform_device

2014-04-29 Thread Vivek Gautam
Change to use struct device instead of struct platform_device for some static functions. Signed-off-by: Vivek Gautam Cc: Alan Stern Acked-by: Jingoo Han --- Changes from v1: - none drivers/usb/host/ohci-exynos.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-)

[PATCH v10 4/4] usb: ehci-exynos: Change to use phy provided by the generic phy framework

2014-04-29 Thread Vivek Gautam
From: Kamil Debski Add the phy provider, supplied by new Exynos-usb2phy using Generic phy framework. Keeping the support for older USB phy intact right now, in order to prevent any functionality break in absence of relevant device tree side change for ehci-exynos. Once we move to new phy in the

[PATCH v4 3/4] usb: ohci-exynos: Add facility to use phy provided by the generic phy framework

2014-04-29 Thread Vivek Gautam
Add support to consume phy provided by Generic phy framework. Keeping the support for older usb-phy intact right now, in order to prevent any functionality break in absence of relevant device tree side change for ohci-exynos. Once we move to new phy in the device nodes for ohci, we can remove the

Re: [PATCH] mbcache: LLVMLinux: Remove double calculation from mbcache

2014-04-29 Thread H. Peter Anvin
On 04/29/2014 06:13 PM, H. Peter Anvin wrote: > I suspect this will generate FP instructions on x86 which will corrupt user > space state. This is thus a critical bug!! It looks like at least x86-64 gcc does the evaluation at compile time and there aren't any fp instructions left in the code.

Re: [PATCH v2] powerpc 32: Provides VIRT_CPU_ACCOUNTING

2014-04-29 Thread Benjamin Herrenschmidt
On Mon, 2014-04-07 at 09:31 +0200, Christophe Leroy wrote: > This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. > Unlike PPC64, PPC32 doesn't use the PACA convention. Therefore the > implementation is taken from the IA64 architecture. > It is based on additional information added to the

Re: [PATCH] ACPI/Processor: Fix failure of loading acpi-cpufreq driver

2014-04-29 Thread Jiang Liu
Hi Tianyu, Found another issue at the second glance. In case of x2apic, "if (apic_id < 0)" should be replaced by "if (apic_id == -1)" for safety. Best Regards! Gerry On 2014/4/30 13:08, Jiang Liu wrote: > Hi Tianyu, > With the suggested fix, we still need to protect >

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-29 Thread H. Peter Anvin
On 04/29/2014 10:08 PM, Andrew Pinski wrote: > > restoring the values is hard since even the ptrace interface does not > allow for that. > So that begs the ultimate question, which is: given the fact that there is *state missing* from the state vector (this is the core of the problem), is there

Re: [PATCH 1/1] Revert "affs: use ->kill_sb() to simplify ->put_super() and failure exits of ->mount()"

2014-04-29 Thread Fabian Frederick
On Tue, 29 Apr 2014 15:30:22 -0700 Andrew Morton wrote: > On Tue, 29 Apr 2014 21:35:12 +0200 Fabian Frederick wrote: > > > This reverts commit 842a859db26b70 due to permanent crash issues. > > > > Sample scenario: > > > > dd if=/dev/zero of=f1 bs=1M count=1 > > losetup -f f1 > > mount -t

RE: [PATCHv2 1/3] dt/bindings: Add the DT binding documentation for endianness

2014-04-29 Thread li.xi...@freescale.com
> > diff --git a/Documentation/devicetree/bindings/endianness/endianness.txt > b/Documentation/devicetree/bindings/endianness/endianness.txt > > new file mode 100644 > > index 000..64f1d5e > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/endianness/endianness.txt > > @@ -0,0

Re: [PATCH] ACPI/Processor: Fix failure of loading acpi-cpufreq driver

2014-04-29 Thread Jiang Liu
Hi Tianyu, With the suggested fix, we still need to protect acpi_processor_hotadd_init() when pr->apic_id is -1, otherwise it may cause invalid memory access. Best Regards! Gerry diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index c29c2c3ec0ad..e17befc54c34

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-29 Thread Andrew Pinski
On Tue, Apr 29, 2014 at 9:50 PM, H. Peter Anvin wrote: > On 04/29/2014 08:44 PM, Hui Zhu wrote: >> >> I am sorry that the root cause of issue has something wrong. >> The right root cause is: >> When inferior call 32 bits syscall "read", Linux kernel function >> "ia32_cstar_target" will set

[PATCH v3 09/12] ARM: EXYNOS: Refactored code for using PMU address via DT

2014-04-29 Thread Pankaj Dubey
Under "arm/mach-exynos" many files are using PMU register offsets. Since we have added support for accessing PMU base address via DT, now we can remove PMU mapping from exynosX_iodesc. Let's convert all these access using either of iomapped address or regmap handle. This will help us in removing

[PATCH v3 06/12] ARM: EXYNOS: Remove regs-pmu.h header dependency from pm_domain

2014-04-29 Thread Pankaj Dubey
From: Young-Gun Jang Current "pm_domain.c" file uses "S5P_INT_LOCAL_PWR_EN" definition from "regs-pmu.h" and hence needs to include this header file. As there is no other user of "S5P_INT_LOCAL_PWR_EN" definition other than pm_domain, to remove "regs-pmu.h" header file dependency from

[PATCH v3 07/12] ARM: EXYNOS: Add support for mapping PMU base address via DT

2014-04-29 Thread Pankaj Dubey
From: Young-Gun Jang Add support for mapping Samsung Power Management Unit (PMU) base address from device tree. This patch also adds helper function as "get_exynos_pmuregmap". This function can be used by other machine files such as "pm.c", "hotplug.c" for accessing PMU regmap handle.

[PATCH v3 10/12] ARM: EXYNOS: Move "mach/map.h" inclusion from regs-pmu.h to platsmp.c

2014-04-29 Thread Pankaj Dubey
As we have removed static mappings from "regs-pmu.h" it does not need map.h anymore. But "platsmp.c" needed this and till now it got included indirectly. So lets move header inclusion of "mach/map.h" from "regs-pmu.h" to "platsmp.c". Signed-off-by: Pankaj Dubey ---

[PATCH v3 00/12] ARM: Exynos: PMU cleanup and refactoring for using DT

2014-04-29 Thread Pankaj Dubey
This patch series, does some minor cleanup of exynos machine files. It also modifies Exynos Power Management Unit (PMU) related code for converting it into a platform_driver. This is also preparation for moving PMU related code out of machine folder into a either "drivers/mfd", or "drivers/power"

[PATCH v3 05/12] ARM: EXYNOS: Remove file path from comment section

2014-04-29 Thread Pankaj Dubey
Many files under "arm/mach-exynos" are having file path in file comment section which is invalid now. So for better code maintainability let's remove them. Signed-off-by: Pankaj Dubey Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/headsmp.S |2 --

[PATCH v3 02/12] ARM: EXYNOS: Move cpufreq and cpuidle device registration to init_machine

2014-04-29 Thread Pankaj Dubey
As exynos_cpuidle_init and exynos_cpufreq_init function have just one lines of code for registering platform devices. We can move these lines to exynos_dt_machine_init and delete exynos_cpuidle_init and exynos_cpufreq_init function. This will help in reducing lines of code in exynos.c, making it

[PATCH v3 11/12] ARM: EXYNOS: Add platform driver support for Exynos PMU.

2014-04-29 Thread Pankaj Dubey
This patch modifies Exynos Power Management Unit (PMU) initialization implementation in following way: - Added platform_device support by registering static platform device. - Added platform struct exynos_pmu_data to hold platform specific data. - For each SoC's PMU support now we can add

[PATCH v3 03/12] ARM: EXYNOS: Cleanup "mach-exynos/common.h" file

2014-04-29 Thread Pankaj Dubey
Remove unused and unwanted declarations from "mach-exynos/common.h" Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/common.h |9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index 30123a0..8a4aa0b 100644 ---

[PATCH v3 08/12] ARM: EXYNOS: Remove "linux/bug.h" from pmu.c

2014-04-29 Thread Pankaj Dubey
This patch removes unnecessary header file inclusion from pmu.c. Signed-off-by: Young-Gun Jang Reviewed-by: Tomasz Figa --- arch/arm/mach-exynos/pmu.c |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-exynos/pmu.c b/arch/arm/mach-exynos/pmu.c index 05c7ce1..4c3453a 100644 ---

[PATCH v3 12/12] ARM: EXYNOS: Move PMU specific definitions from common.h

2014-04-29 Thread Pankaj Dubey
From: Young-Gun Jang This patch moves PMU specific definitions into a new file as exynos-pmu.h. This will help in making PMU implementation independent of common.h header. Signed-off-by: Young-Gun Jang Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/common.h | 17 -

[PATCH v3 04/12] ARM: EXYNOS: Move SYSREG definition into sys-reg specific file.

2014-04-29 Thread Pankaj Dubey
From: Young-Gun Jang While making PMU implementation to be device tree based, there are few register offsets related with SYSREG present in regs-pmu.h, so let's make a new header file "regs-sys.h" to keep all such SYSREG related register offsets and remove them from "regs-pmu.h" Signed-off-by:

[PATCH v3 01/12] ARM: EXYNOS: Make exynos machine_ops as static

2014-04-29 Thread Pankaj Dubey
As machine function ops are used only in this file let's make them static. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/exynos.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index

Re: [PATCH 5/7] x86: Make old K8 swapgs workaround conditional

2014-04-29 Thread H. Peter Anvin
On 04/28/2014 03:12 PM, Andi Kleen wrote: > From: Andi Kleen > > Every gs selector/index reload always paid an extra MFENCE > between the two SWAPGS. This was to work around an old > bug in early K8 steppings. All other CPUs don't need the extra > mfence. Patch the extra MFENCE only in for K8.

Re: [PATCH 4/7] x86: Add support for rd/wr fs/gs base

2014-04-29 Thread H. Peter Anvin
On 04/29/2014 09:52 PM, H. Peter Anvin wrote: > > It matters -- greatly -- if (and only if) we can enter the kernel with > usergs == kernelgs and then want to change usergs inside a paranoid > routine. At that point we risk being upside down, which basically means > we're rooted. > > However, I

Re: [PATCH] powerpc 32: Provides VIRT_CPU_ACCOUNTING

2014-04-29 Thread Benjamin Herrenschmidt
On Wed, 2014-03-19 at 17:05 -0500, Scott Wood wrote: > On Wed, 2014-03-19 at 22:52 +0100, Christophe Leroy wrote: > > This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. > > Unlike PPC64, PPC32 doesn't provide the PACA register. Therefore the > > implementation is similar to the one done

Re: [PATCH 4/7] x86: Add support for rd/wr fs/gs base

2014-04-29 Thread H. Peter Anvin
On 04/29/2014 04:39 PM, Andi Kleen wrote: >> Case 3 is annoying. If nothing tries to change the user gs base, then >> everything is okay because the user gs base and the kernel gs bases are >> equal. But if something does try to change the user gs base, then it >> will accidentally change the

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-29 Thread H. Peter Anvin
On 04/29/2014 08:44 PM, Hui Zhu wrote: > > I am sorry that the root cause of issue has something wrong. > The right root cause is: > When inferior call 32 bits syscall "read", Linux kernel function > "ia32_cstar_target" will set TS_COMPAT to current_thread_info->status. > > syscall read is

Re: [PATCH v12 00/31] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2014-04-29 Thread Shaik Ameer Basha
On Mon, Apr 28, 2014 at 2:04 PM, Arnd Bergmann wrote: > On Sunday 27 April 2014 13:07:32 Shaik Ameer Basha wrote: >> The current exynos-iommu(System MMU) driver does not work autonomously >> since it is lack of support for power management of peripheral blocks. >> For example, MFC device driver

Re: [Bugfix v2] sched: fix possible invalid memory access caused by CPU hot-addition

2014-04-29 Thread Jiang Liu
Thanks Peter, I will try to find other solutions. On 2014/4/28 15:09, Peter Zijlstra wrote: > On Mon, Apr 28, 2014 at 10:48:13AM +0800, Jiang Liu wrote: >> Intel platforms with Nehalem/Westmere/IvyBridge CPUs may support socket >> hotplug/online at runtime. The CPU hot-addition flow is: >> 1)

Re: [PATCH v3 3/4] usb: ohci-exynos: Add facility to use phy provided by the generic phy framework

2014-04-29 Thread Vivek Gautam
Hi, On Mon, Apr 28, 2014 at 9:11 PM, Alan Stern wrote: > On Mon, 28 Apr 2014, Vivek Gautam wrote: > >> Add support to consume phy provided by Generic phy framework. >> Keeping the support for older usb-phy intact right now, in order >> to prevent any functionality break in absence of relevant

Re: [PATCH] cpufreq: intel_pstate: Remove sample parameter in intel_pstate_calc_busy

2014-04-29 Thread Viresh Kumar
On 29 April 2014 23:23, Stratos Karafotis wrote: > Since commit d37e2b7644 ("intel_pstate: remove unneeded sample buffers") > we use only one sample. So, there is no need to pass the sample > pointer to intel_pstate_calc_busy. Instead, get the pointer from > cpudata. Also, remove the unused

Re: [PATCH] cpufreq: powernow-k8: Fix checkpatch warnings

2014-04-29 Thread Viresh Kumar
On 30 April 2014 04:09, Rafael J. Wysocki wrote: > It should be cleaned up generally, so if you have the time and you're willing > to do such things, please do them. > > That said things like lines in excess of 80 characters may stay as they are. I have tried this sort of stuff earlier, but

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Tue, Apr 29, 2014 at 07:56:13PM -0700, Linus Torvalds wrote: > On Tue, Apr 29, 2014 at 7:31 PM, Al Viro wrote: > > > > OK, aggregate diff follows, more readable splitup (3 commits) attached. > > It seems to survive beating here; testing, review and comments are > > welcome. > > Miklos, did

Re: Is heap_stack_gap useless?

2014-04-29 Thread Jidong Xiao
Resend to kernel-development list. The original email wasn't plaintext mode and was rejected by kernel-development list. On Tue, Apr 29, 2014 at 11:31 PM, Jidong Xiao wrote: > Hi, > > I noticed this variable, defined in mm/nommu.c, > > mm/nommu.c:int heap_stack_gap = 0; > > This variable only

Re: [PATCH 04/15] ASoC: samsung-idma: avoid 64-bit division

2014-04-29 Thread Tushar Behera
On 04/29/2014 04:48 PM, Xia Kaixu wrote: > From: Arnd Bergmann > > dma_addr_t may be 64 bit wide, which causes a build failure > when doing a division on it. Here it is safe to cast to an > u32 type, which avoids the problem. > > Signed-off-by: Arnd Bergmann > Signed-off-by: Xia Kaixu > Cc:

Re: [3.15-rc3] rtmutex-debug assertion.

2014-04-29 Thread Dave Jones
On Tue, Apr 29, 2014 at 07:24:30PM -0700, Davidlohr Bueso wrote: > > futex(uaddr=0x7f55ff8c4000, op=0x6, val=0x20006223800b, > > utime=0x7f55ff8c4000, uaddr2=0x7f55ff8c4000, val3=-123) > > Perhaps because of chance. Even for pi futexes, if the lock is > uncontended, the kernel will

Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

2014-04-29 Thread Hui Zhu
On Tue, Apr 22, 2014 at 12:33 AM, H. Peter Anvin wrote: > On 04/21/2014 09:19 AM, Hui Zhu wrote: >> } >> Now ax is in 32 bits now, need sign-extend to 64 bits. But >> current_thread_info()->status TS_COMPAT is cleared when GDB call "call >> func1()". >> Linux kernel don't know this is a 32 bits

Re: [PATCH] mmc: rtsx: usb backend needs LED support

2014-04-29 Thread Roger
On 04/29/2014 08:46 PM, Arnd Bergmann wrote: On Tuesday 29 April 2014 13:05:15 Ulf Hansson wrote: On 29 April 2014 11:45, Arnd Bergmann wrote: drivers/built-in.o: In function `rtsx_usb_sdmmc_drv_remove': :(.text+0x806480): undefined reference to `led_classdev_unregister' drivers/built-in.o:

Re: [PATCH 18/47] staging/lustre/hsm: HSM requests not delivered

2014-04-29 Thread Oleg Drokin
On Apr 29, 2014, at 5:08 AM, Dan Carpenter wrote: > On Sun, Apr 27, 2014 at 01:06:42PM -0400, Oleg Drokin wrote: >> diff --git a/drivers/staging/lustre/lustre/llite/dir.c >> b/drivers/staging/lustre/lustre/llite/dir.c >> index 7fbc18e..c391b60 100644 >> ---

Re: [PATCH v7 1/2] phy: Add new Exynos5 USB 3.0 PHY driver

2014-04-29 Thread Vivek Gautam
Hi Kishon, Tomasz, On Mon, Apr 28, 2014 at 11:47 AM, Vivek Gautam wrote: > Add a new driver for the USB 3.0 PHY on Exynos5 series of SoCs. > The new driver uses the generic PHY framework and will interact > with DWC3 controller present on Exynos5 series of SoCs. > Thereby, removing old

Re: [PATCH 11/47] staging/lustre/ptlrpc: add rpc_cache

2014-04-29 Thread Oleg Drokin
Hello! On Apr 29, 2014, at 5:46 AM, Dan Carpenter wrote: >> >> +/* Fall through */ >> case 7: >> sptlrpc_fini(); >> -case 5: >> +/* Fall through */ >> +case 6: >> ldlm_exit(); >> -case 4: >> +/* Fall through */ >> +

Re: [PATCH 41/47] staging/lustre/llite: remove dead code

2014-04-29 Thread Oleg Drokin
Hello! On Apr 29, 2014, at 7:02 AM, Dan Carpenter wrote: >> diff --git a/drivers/staging/lustre/lustre/llite/statahead.c >> b/drivers/staging/lustre/lustre/llite/statahead.c >> index 51c5327..1b47774 100644 >> --- a/drivers/staging/lustre/lustre/llite/statahead.c >> +++

[PATCH] ACPI/Processor: Fix failure of loading acpi-cpufreq driver

2014-04-29 Thread Lan Tianyu
According commit d640113fe(ACPI: processor: fix acpi_get_cpuid for UP processor), Bios may not provide _MAT or MADT tables and acpi_get_apicid() always returns -1. For these cases, original code will pass apic_id with vaule of -1 to acpi_map_cpuid() and it will check the acpi_id. If acpi_id is

Re: [alsa-devel] [PATCH 01/15] ASoC: CS42L51 and WM8962 codecs depend on INPUT

2014-04-29 Thread Brian Austin
On Tue, 29 Apr 2014, Xia Kaixu wrote: From: Arnd Bergmann Building ARM randconfig got into a situation where CONFIG_INPUT is turned off and SND_SOC_ALL_CODECS is turned on, which failed for two codecs trying to use the input subsystem. Some other drivers also select one of these codecs and

[PATCH] lib/spinlock_debug: avoid one thread can not obtain the spinlock for a long time.

2014-04-29 Thread Wang, Xiaoming
loops_per_jiffy is larger than expectation that possible causes one thread can not obtain the spin lock for a long time. So use cpu_clock() to reach timeout in one second which can avoid HARD LOCKUP. Signed-off-by: Chuansheng Liu Signed-off-by: xiaoming wang --- kernel/locking/spinlock_debug.c

Re: [PATCH] ARM: OMAP5: Switch to THUMB mode if needed on secondary CPU

2014-04-29 Thread Joel Fernandes
On 04/29/2014 01:31 PM, Dave Martin wrote: > On Tue, Apr 29, 2014 at 05:36:30PM +0100, Joel Fernandes wrote: > > [...] > Sorry what I meant is, say its of Type function. What tells the firmware to switch to THUMB? What's typically done is a boot address register is written by

Re: dcache shrink list corruption?

2014-04-29 Thread Linus Torvalds
On Tue, Apr 29, 2014 at 7:31 PM, Al Viro wrote: > > OK, aggregate diff follows, more readable splitup (3 commits) attached. > It seems to survive beating here; testing, review and comments are > welcome. Miklos, did you have some particular load that triggered this, or was it just some reports?

[PATCH] ARM: OMAP5: Redo THUMB mode switch on secondary CPU

2014-04-29 Thread Joel Fernandes
Here's a redo of the patch [1] that effectively does the same thing but is the right way to do things by using ENDPROC instead. The firmware correctly switches to THUMB before entry. The patch applies ontop of the earlier patch [1]. [1] https://lkml.org/lkml/2014/4/22/1044 Suggested-by: Dave

Re: [PATCH v4 2/7] arm64: Decouple page size from level of translation tables

2014-04-29 Thread Jungseok Lee
On Tuesday, April 29, 2014 11:41 PM, Catalin Marinas wrote: > Jungseok, Hi, Catalin > On Tue, Apr 29, 2014 at 05:59:20AM +0100, Jungseok Lee wrote: > > +choice > > + prompt "Level of translation tables" > > + default ARM64_3_LEVELS if ARM64_4K_PAGES > > + default ARM64_2_LEVELS if

linux-next: manual merge of the drm-intel tree with the drm-intel-fixes tree

2014-04-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in drivers/gpu/drm/i915/i915_gem_gtt.c between commitcfa7c862982b ("drm/i915: Sanitize the enable_ppgtt module option once") from the drm-intel-fixes tree tree and commit 5db6c735ead5 ("drm/i915: dmesg output for VT-d testing")

[PATCH 2/4] f2fs: avoid grab_cache_page_write_begin for data pages

2014-04-29 Thread Jaegeuk Kim
We don't need to wait on page writeback for these cases. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 4 ++-- fs/f2fs/inline.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 273fe16..91ff104 100644 ---

[PATCH 3/4] f2fs: no need to wait on page writebck to meta pages

2014-04-29 Thread Jaegeuk Kim
This patch removes grab_cache_page_write_begin for meta pages. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/checkpoint.c b/fs/f2fs/checkpoint.c index 1346ce9..b6f6ead 100644 --- a/fs/f2fs/checkpoint.c +++

[PATCH 1/4] f2fs: split grab_cache_page and wait_on_page_writeback for node pages

2014-04-29 Thread Jaegeuk Kim
This patch splits grab_cache_page_write_begin into grab_cache_page and wait_on_page_writeback for node pages. This patch intends to enhance the latency to get node pages by alleviating unnecessary wait_on_page_writeback. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c|

[PATCH 4/4] f2fs: decrease the lock granularity during write_begin

2014-04-29 Thread Jaegeuk Kim
This patch reduces the lock granularity during write_begin. When the system is under memory pressure, it would be better to reduce the locking time for the data pages. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v4 1/7] arm64: Use pr_* instead of printk

2014-04-29 Thread Jungseok Lee
On Wednesday, April 30, 2014 5:35 AM, Mitchel Humpherys wrote: > On Mon, Apr 28 2014 at 09:59:14 PM, Jungseok Lee wrote: > > This patch fixed the following checkpatch complaint as using pr_* > > instead of printk. > > > > WARNING: printk() should include KERN_ facility level > > > > Cc: Catalin

Re: dcache shrink list corruption?

2014-04-29 Thread Al Viro
On Wed, Apr 30, 2014 at 12:20:13AM +0100, Al Viro wrote: > On Tue, Apr 29, 2014 at 04:04:11PM -0700, Linus Torvalds wrote: > > But at a minimum, we have "d_op->d_prune()" that would now be possibly > > be called for the old dentry *after* a new dentry has been allocated. > > Not to mention the

Re: [PATCH/RFC] SCHED: allow wait_on_bit functions to support a timeout.

2014-04-29 Thread NeilBrown
On Tue, 29 Apr 2014 12:32:17 +0200 Peter Zijlstra wrote: > So I'm sure I'm not getting it; but why is all the wait_bit crap so > entirely different from the normal wait stuff? > > Surely something like: > > wait_event_timeout(, test_bit(bit, word), timeout); > > Is pretty much the same,

Re: [PATCH v4 6/7] arm64: mm: Implement 4 levels of translation tables

2014-04-29 Thread Jungseok Lee
On Wednesday, April 30, 2014 2:04 AM, Catalin Marinas wrote: > On Tue, Apr 29, 2014 at 05:59:33AM +0100, Jungseok Lee wrote: > > diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index > > 0fd5650..03ec424 100644 > > --- a/arch/arm64/kernel/head.S > > +++ b/arch/arm64/kernel/head.S

Re: [3.15-rc3] rtmutex-debug assertion.

2014-04-29 Thread Davidlohr Bueso
On Tue, 2014-04-29 at 20:14 -0400, Dave Jones wrote: > On Tue, Apr 29, 2014 at 11:16:55AM -0400, Dave Jones wrote: > > Just hit this while fuzzing the futex() syscall. > > > > > > WARNING: CPU: 2 PID: 6202 at kernel/locking/rtmutex-debug.c:151 > debug_rt_mutex_proxy_unlock+0x4e/0x60() > >

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-04-29 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年4月24日 1:08 > To: Neil Zhang > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Sudeep Holla; devicet...@vger.kernel.org > Subject: Re: [PATCH v4] ARM: perf:

Re: [PATCH v4 3/7] arm64: Introduce a kernel configuration option for VA_BITS

2014-04-29 Thread Jungseok Lee
On Tuesday, April 29, 2014 11:45 PM, Catalin Marinas wrote: > On Tue, Apr 29, 2014 at 05:59:23AM +0100, Jungseok Lee wrote: > > +config ARM64_VA_BITS > > + int "Virtual address space size" > > + range 39 39 if ARM64_4K_PAGES && ARM64_3_LEVELS > > + range 42 42 if ARM64_64K_PAGES &&

[PATCH] earlyprintk=efi,keep fix

2014-04-29 Thread Dave Young
earlyprintk=efi,keep will cause kernel hangs while freeing initmem like below: [2.826089] VFS: Mounted root (ext4 filesystem) readonly on device 254:2. [2.846592] devtmpfs: mounted [2.856974] Freeing unused kernel memory: 880K (817d4000 - 818b) It is caused by

[PATCH 00/27] ACPICA: 20140424 Release

2014-04-29 Thread Lv Zheng
ACPICA 20140424 Release Notes for kernel-resident subsystem: Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. Some of these tables are known to contain a trailing NULL entry. Lv Zheng. Removed an extraneous error message for the case where there are a large number of

[PATCH 04/27] ACPICA: Update global variable definitions. No functional change.

2014-04-29 Thread Lv Zheng
Move all of the public globals to acpixf.h for the convenience of users. Also: Adds #ifndef/#endif conditions arround ACPI_GLOBAL and ACPI_INIT_GLOBAL definition so that OSPMs might be able to: 1. Redefine ACPI_GLOBAL/ACPI_INIT_GLOBAL into no-op, and 2. Redefine external global variables into

[PATCH 20/27] ACPICA: Tables: Fix invalid pointer accesses in acpi_tb_parse_root_table().

2014-04-29 Thread Lv Zheng
The commit of back porting Linux XSDT validation mechanism has introduced a regreession: Commit: 671cc68dc61f029d44b43a681356078e02d8dab8 Subject: ACPICA: Back port and refine validation of the XSDT root table. There is a pointer still accessed after unmapping. This patch fixes this issue.

[PATCH 26/27] ACPICA: Comment/format update, no functional change.

2014-04-29 Thread Lv Zheng
From: Bob Moore Add some additional commenting the the public acpixf.h file. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/acpixf.h | 73 - 1 file changed, 54 insertions(+), 19 deletions(-) diff --git

[PATCH 09/27] ACPICA: Comment updates - no functional change.

2014-04-29 Thread Lv Zheng
From: Bob Moore Change all instances of "sub-table" to "subtable" for consistency. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/actbl1.h |4 ++-- include/acpi/actbl2.h |6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/acpi/actbl1.h

[PATCH 17/27] ACPICA: acpidump: Fix truncated RSDP signature validation.

2014-04-29 Thread Lv Zheng
This patch enforces a rule to always use ACPI_VALIDATE_RSDP_SIG for RSDP signatures passed from table header or ACPI_SIG_RSDP so that truncated string comparison can be avoided. This could help to fix the issue that "RSD " matches but "RSD PTR " doesn't match. Lv Zheng. Signed-off-by: Lv Zheng

[PATCH 27/27] ACPICA: Update version to 20140424.

2014-04-29 Thread Lv Zheng
From: Bob Moore Version 20140424. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/acpixf.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/acpixf.h b/include/acpi/acpixf.h index b3b2108..4e3044c 100644 --- a/include/acpi/acpixf.h +++

[PATCH 21/27] ACPICA: acpidump: Add support to force using RSDT.

2014-04-29 Thread Lv Zheng
This patch adds "-x" and "-x -x" options to disable XSDT for acpidump. The single "-x" can be used to stop using XSDT, RSDT will be forced to find static tables, note that XSDT will still be dumped. The double "-x" can stop dumping XSDT, which is useful when the XSDT address reported by RSDP is

[PATCH 25/27] ACPICA: Events: Update GPE handling and initialization code.

2014-04-29 Thread Lv Zheng
From: Bob Moore 1) Eliminate most use of GAS structs, since they are not needed for GPEs. 2) Allow raw GPE numbers > 255. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/acevents.h |5 +++-- drivers/acpi/acpica/aclocal.h |9 +

[PATCH 23/27] ACPICA: Tables: Remove old mechanism to validate if XSDT contains NULL entries.

2014-04-29 Thread Lv Zheng
With the NULL entry sanity check implemented, the XSDT validation is useless because: 1. If XSDT contains NULL entries, it can be bypassed by the new sanity check mechanism; 2. If RSDP contains a bad XSDT address, invoking XSDT validation will still lead to a kernel crash. This patch

[PATCH 14/27] ACPICA: OSL: Add section to collect the divergence in acpixf.h.

2014-04-29 Thread Lv Zheng
This patch re-orders the interface prototypes defined in acpixf.h, moving those having not back ported to ACPICA into a seperate section to reduce the source code differences between Linux and ACPICA. This can help to reduce the cost of linuxizing the follow up commits. Signed-off-by: Lv Zheng

[PATCH 24/27] ACPICA: Remove extraneous error message for large number of GPEs.

2014-04-29 Thread Lv Zheng
From: Bob Moore Fixes a problem where an extraneous error message was emitted during initialization if there is a GPE block larger than 255 bits. Any GPE block larger than 120 GPEs could generate the error. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/tbfadt.c |

[PATCH 22/27] ACPICA: Tables: Add new mechanism to skip NULL entries in RSDT and XSDT.

2014-04-29 Thread Lv Zheng
It is reported that there are buggy BIOSes in the world: AMI uses an XSDT compiler for early BIOSes, this compiler will generate XSDT with a NULL entry. The affected BIOS versions are "AMI BIOS F2-F4". Original solution on Linux is to use an alternative heathy root table instead of the ill one.

[PATCH 19/27] ACPICA: Back port of improvements on exception code.

2014-04-29 Thread Lv Zheng
From: Bob Moore This is the linuxize result of the following commit: Subject: ACPICA: Improve handling of exception code blocks. Split exception codes into three distinct blocks; for the main ASL compiler, Table compiler, and the preprocessor. This allows easy addition of new codes into

[PATCH 18/27] ACPICA: Back port of _PRP update.

2014-04-29 Thread Lv Zheng
From: Bob Moore This patch is the linuxize result of the following commit: Subject: ACPICA: Add check for _PRP/_HID dependency, with error message. _PRP requires that a _HID appears in the same scope. The iASL changes are not in this patch as iASL currently is not shipped in the kernel.

[PATCH 16/27] ACPICA: Linux header: Add support for stubbed externals.

2014-04-29 Thread Lv Zheng
Linux wants to include all header files but leave empty inline stub variables for a feature that is not configured during build. This patch configures ACPICA external globals/macros/functions out and defines them into no-op when CONFIG_ACPI is not enabled. Lv Zheng. Signed-off-by: Lv Zheng

[PATCH 12/27] ACPICA: OSL: Add configurability for error message functions.

2014-04-29 Thread Lv Zheng
This patch extends ACPI_HW_DEPENDENT_x mechanism to all error message related functions so that the OSPMs can have full control to configure them into stub functions. This patch doesn't include code for Linux to use this new mechanism, thus no functional change. Lv Zheng. Signed-off-by: Lv

[PATCH 13/27] ACPICA: OSL: Add configurability for debug output functions.

2014-04-29 Thread Lv Zheng
This patch extends ACPI_HW_DEPENDENT_x mechanism to all debugging output related functions so that the OSPMs can have full control to configure them into stub functions. This patch doesn't include code for Linux to use this new mechanism, thus no functional change. Lv Zheng. Signed-off-by: Lv

[PATCH 15/27] ACPICA: OSL: Add configurability for generic external functions.

2014-04-29 Thread Lv Zheng
OSPMs like Linux trend to include all header files but leave empty inline stub functions for a feature that is not configured during build. This patch adds wrappers mechanism to be used around ACPICA external interfaces to facilitate OSPM with such configurability. This patch doesn't include code

[PATCH 11/27] ACPICA: OSL: Add configurability for memory allocation macros.

2014-04-29 Thread Lv Zheng
OSPMs like Linux trend to include all header files but leave empty stub macros for a feature that is not configured during build. For macros defined without other symbols referencesd it is safe to leave them without protections. By investigation, there are only the following internal/external

[PATCH 08/27] ACPICA: Update handling of PCI ID lists.

2014-04-29 Thread Lv Zheng
From: "David E. Box" More of a style cleanup. if hw_build_pci_list is to return a non-zero status, it now deletes any partial ID list that has been constructed. if it returns AE_OK, the caller is responsible for list deletion. David Box. Signed-off-by: David E. Box Signed-off-by: Bob Moore

[PATCH 10/27] ACPICA: OSL: Move external globals from utglobal.c to acpixf.h using ACPI_INIT_GLOBAL/ACPI_GLOBAL.

2014-04-29 Thread Lv Zheng
OSPMs like Linux trend to include all header files but leave empty stub macros for a feature that is not configured during build. This patch cleans up global variables that are defined in utglobal.c using ACPI_INIT_GLOBAL mechanism. In Linux, such global variables are used by the subsystems

[PATCH 07/27] ACPICA: Add support for _LPD and _PRP methods.

2014-04-29 Thread Lv Zheng
From: Bob Moore This patch currently only affects acpihelp and iASL which are not shipped in the Linux kernel. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/acpredef.h |4 1 file changed, 4 insertions(+) diff --git a/drivers/acpi/acpica/acpredef.h

[PATCH 06/27] ACPICA: Add support for LPIT table.

2014-04-29 Thread Lv Zheng
From: Bob Moore Adds header, disassembler, table compiler, and template support for the Low Power Idle Table (LPIT). Note that the disassembler and table compiler are not shipped in the kernel. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/actbl2.h | 65

[PATCH 01/27] ACPICA: Utilities: Cleanup obsoleted global variables.

2014-04-29 Thread Lv Zheng
This patch deletes global variable declarations that are no longer used by ACPICA. No functional changes. Lv Zheng. Signed-off-by: Lv Zheng Signed-off-by: Bob Moore --- drivers/acpi/acpica/acglobal.h |7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/acpi/acpica/acglobal.h

[PATCH 02/27] ACPICA: Utilities: Deploy ACPI_DEBUGGER_EXEC for ACPI_DEBUGGER enabled code in utglobal.c.

2014-04-29 Thread Lv Zheng
This patch deploys ACPI_DEBUGGER_EXEC usage to utglobal.c to reduce "ifdef" of ACPI_DEBUGGER. No functional changes. Lv Zheng. Signed-off-by: Lv Zheng Signed-off-by: Bob Moore --- drivers/acpi/acpica/utglobal.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 03/27] ACPICA: acpidump: Fix code issue in invoking fread in the loop.

2014-04-29 Thread Lv Zheng
This patch fixes an issue that the while loop is not needed as fread() should return exact the bytes of expected. The patch is tested by runing diff against the output of "-c" mode and the normal mode, and only finds the following differences: 1. table addresses: the "-c" mode will always fill

[PATCH 05/27] ACPICA: Update acpi_buffer_to_resource interface.

2014-04-29 Thread Lv Zheng
From: Bob Moore 1) Add standard trace mechanism. 2) Add ACPI_EXPORT_SYMBOL macro. Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/rscreate.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/acpi/acpica/rscreate.c

  1   2   3   4   5   6   7   8   9   10   >