[PATCH] pinctrl: msm: fix up out-of-order merge conflict

2014-03-13 Thread Linus Walleij
Commit 051a58b4622f0e1b732acb750097c64bc00ddb93 "pinctrl: msm: Simplify msm_config_reg() and callers" removed the local "reg" variable in the msm_config_reg() function, but the earlier commit ed118a5fd951bd2def8249ee251842c4f81fe4bd "pinctrl-msm: Support output-{high,low} configuration" introduced

Re: [PATCH v2] scsi: Change sense buffer size to 252

2014-03-13 Thread Hannes Reinecke
On 03/14/2014 07:00 AM, Fam Zheng wrote: > According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So > increase the values. > > Tested by hacking QEMU to fake virtio-scsi request sense len to 252. > Without this patch the driver stops working immediately when it gets the > request. >

Re: [sched/balance] INFO: possible recursive locking detected

2014-03-13 Thread Fengguang Wu
On Fri, Mar 14, 2014 at 02:26:24PM +0800, Alex Shi wrote: > On 03/14/2014 02:16 PM, Fengguang Wu wrote: > > Alex, > > > > Here are the test results for branch alexshi/single-balance > > > Thanks a lot! Fengguang. > Is the nex04 machine 4P*8 core * HT? and are a04/a06 atom box? nex04 is Nehalem-

Re: [PATCH] i2c-davinci: Handle signals gracefully

2014-03-13 Thread Mike Looijmans
On 03/10/2014 04:24 PM, Wolfram Sang wrote: Even more, you should complete the whole transfer. There are devices where things can really go wrong if you send a half-complete command and then start with the next one. So, not checking signals at all is the way to go for I2C drivers. There is som

[PATCH] i2c-davinci: Handle signals gracefully

2014-03-13 Thread Mike Looijmans
When a signal is caught while the i2c-davinci bus driver is transferring, the drive just "abandons" the transfer and leaves the controller to fend for itself. The next I2C transaction will find the controller in an undefined state and often results in a stream of "initiating i2c bus recovery" messa

[PATCH 1/2] cpufreq: arm_big_little: make vexpress driver dependent on bL core driver

2014-03-13 Thread Viresh Kumar
Currently vexpress big LITTLE driver selects ARM_BIG_LITTLE_CPUFREQ and so if CONFIG_BIG_LITTLE isn't enabled and CONFIG_ARM_VEXPRESS_SPC_CPUFREQ is enabled we get below warnings while compiling: warning: (ARM_VEXPRESS_SPC_CPUFREQ) selects ARM_BIG_LITTLE_CPUFREQ which has unmet direct dependencies

[PATCH 2/2] cpufreq: arm_big_little: set 'physical_cluster' for each cpu

2014-03-13 Thread Viresh Kumar
We have a per-cpu variable for managing which cluster does a CPU belong to. Currently physical_cluster is set only for the policy->cpu. And that results in following on some SoC's: - There are two clusters: - Cluster 0 has four ARM Cortex A7 CPUs (slower ones): 0,1,2,3 - Cluster 1 has four ARM

Re: [PATCH v3 36/52] zsmalloc: Fix CPU hotplug callback registration

2014-03-13 Thread Minchan Kim
On Tue, Mar 11, 2014 at 02:09:59AM +0530, Srivatsa S. Bhat wrote: > Subsystems that want to register CPU hotplug callbacks, as well as perform > initialization for the CPUs that are already online, often do it as shown > below: > > get_online_cpus(); > > for_each_online_cpu(cpu) >

[RFC 0/6] mm: support madvise(MADV_FREE)

2014-03-13 Thread Minchan Kim
This patch is an attempt to support MADV_FREE for Linux. Rationale is following as. Allocators call munmap(2) when user call free(3) if ptr is in mmaped area. But munmap isn't cheap because it have to clean up all pte entries, unlinking a vma and returns free pages to buddy so overhead would be i

[RFC 4/6] mm: add stat about lazyfree pages

2014-03-13 Thread Minchan Kim
This patch adds new vmstat for lazyfree pages so that admin could check how many of lazyfree pages remains each zone and how many of lazyfree pages purged until now. Signed-off-by: Minchan Kim --- include/linux/mm.h| 4 include/linux/mmzone.h| 1 + include/linux/vm_event

[RFC 5/6] mm: reclaim lazyfree pages in swapless system

2014-03-13 Thread Minchan Kim
If there are lazyfree pages in system, shrink inactive anonymous LRU to discard lazyfree pages regardless of existing avaialable swap. Signed-off-by: Minchan Kim --- mm/vmscan.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 98a1c3ffc

[RFC 2/6] mm: work deactivate_page with anon pages

2014-03-13 Thread Minchan Kim
Now, deactivate_page works for file page but MADV_FREE will use it to move lazyfree pages to inactive LRU's tail so this patch makes deactivate_page work with anon pages as well as file pages. Signed-off-by: Minchan Kim --- include/linux/mm_inline.h | 9 + mm/swap.c | 20

[RFC 6/6] mm: ksm: don't merge lazyfree page

2014-03-13 Thread Minchan Kim
I didn't test this patch but just wanted to make lagefree pages KSM. Signed-off-by: Minchan Kim --- mm/ksm.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 68710e80994a..43ca73aa45e7 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -470,7

[RFC 1/6] mm: clean up PAGE_MAPPING_FLAGS

2014-03-13 Thread Minchan Kim
It's preparation to squeeze a new flag PAGE_MAPPING_LZFREE so functions to get a anon_vma from mapping shouldn't assume that +/- PAGE_MAPPING_ANON is enough. Signed-off-by: Minchan Kim --- mm/rmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/rmap.c b/mm/rmap.c ind

[RFC 3/6] mm: support madvise(MADV_FREE)

2014-03-13 Thread Minchan Kim
Linux doesn't have an ability to free pages lazy while other OS already have been supported that named by madvise(MADV_FREE). The gain is clear that kernel can evict freed pages rather than swapping out or OOM if memory pressure happens. Without memory pressure, freed pages would be reused by use

Re: [sched/balance] INFO: possible recursive locking detected

2014-03-13 Thread Alex Shi
On 03/14/2014 02:16 PM, Fengguang Wu wrote: > Alex, > > Here are the test results for branch alexshi/single-balance Thanks a lot! Fengguang. Is the nex04 machine 4P*8 core * HT? and are a04/a06 atom box? Would you like to share the machine info for nhm8, nhm-white and xps2? -- Thanks Alex

Re: [PATCH 0/3] Improve 32 bit vDSO time

2014-03-13 Thread Stefani Seibold
Am Donnerstag, den 13.03.2014, 15:08 -0700 schrieb H. Peter Anvin: > On 03/13/2014 01:11 AM, Stefani Seibold wrote: > > Am Mittwoch, den 12.03.2014, 20:48 -0700 schrieb H. Peter Anvin: > >> On 03/12/2014 04:11 PM, stef...@seibold.net wrote: > >>> > >>> I will do this when your patch is pulled into

[sched] 373e9ec30ad: -11.2% qperf.udp_bw.send_bw.MB_sec

2014-03-13 Thread Fengguang Wu
Alex, we noticed the below changes on https://github.com/alexshi/power-scheduling.git single-balance commit 373e9ec30ad1efee2c4ba6b58fc317626e6482d0 ("sched: only do load balance on tick_do_timer_cpu") test case: lkp-a06/micro/qperf/600s v3.14-rc6 373e9ec30ad1efee2c4ba6b58

Re: [sched/balance] INFO: possible recursive locking detected

2014-03-13 Thread Fengguang Wu
Alex, Here are the test results for branch alexshi/single-balance v3.14-rc6 c3ccbcb772e3b1c7b976dfb1c --- - 100 ~ 0% +69.7%170 ~ 0% lkp-nex04/micro/ebizzy/200%-100-10 100 ~ 0% +69.7%170 ~ 0% TOTAL ebizzy.thro

[PATCH v2] scsi: Change sense buffer size to 252

2014-03-13 Thread Fam Zheng
According to SPC-4, section 4.5.2.1, 252 is the limit of sense data. So increase the values. Tested by hacking QEMU to fake virtio-scsi request sense len to 252. Without this patch the driver stops working immediately when it gets the request. Signed-off-by: Fam Zheng --- include/linux/virtio_s

Oops in follow_page_mask when running 3.14.0-rc6-next-20140312-smp

2014-03-13 Thread Michalis Pappas
Hello, last night I ran into an oops on -next-20140312. Hasn't occurred again since and I don't have a clue on how to reproduce it either. Anyway, here it goes: === Mar 13 21:07:00 darkstar kernel: [10579.371582] BUG

Re: [Intel-gfx] i915: black screen after boot on 915GM (Linux >= 3.4-rc1)

2014-03-13 Thread Jani Nikula
On Thu, 13 Mar 2014, Krzysztof Mazur wrote: > Hi, > > The commit 3f2dc5ac05714711fc14f2bf0ee5e42d5c08c581 (drm/i915: Fix 915GM > self-refresh enable/disable) causes strange regression on the HP Compaq > nc6120. During and after boot to framebuffer console with just LVDS > the screen is black (back

Re: [PATCH v3 10/52] arm, kvm: Fix CPU hotplug callback registration

2014-03-13 Thread Srivatsa S. Bhat
On 03/13/2014 04:51 AM, Christoffer Dall wrote: > On Tue, Mar 11, 2014 at 02:05:38AM +0530, Srivatsa S. Bhat wrote: >> Subsystems that want to register CPU hotplug callbacks, as well as perform >> initialization for the CPUs that are already online, often do it as shown >> below: >> >> get_onl

Re: [PATCH 3/3] ACPI: Don't re-select SBS battery if it's already selected

2014-03-13 Thread Lan Tianyu
2014-03-12 6:20 GMT+08:00 Matthew Garrett : > The existing SBS code explicitly sets the selected battery in the SBS > manager regardless of whether the battery in question is already selected. > This causes bus timeouts on Apple hardware. Check for this case and avoid > it. > Hi Matthew:

Re: Zynq macb

2014-03-13 Thread Michal Simek
On 03/13/2014 11:33 PM, Sören Brinkmann wrote: > On Thu, 2014-03-13 at 03:16PM -0700, Sören Brinkmann wrote: >> Hi Nicolas, >> >> I did some testing on the current linux-next tree and ran iperf on Zynq. >> It seems that network and even the whole system can collapse when doing >> that. >> I don't r

Re: [PATCH v6 5/7] arm64: ftrace: Add dynamic ftrace support

2014-03-13 Thread AKASHI Takahiro
Thank you for you clarification, Steven. -Takahiro AKASHI On 03/14/2014 03:33 AM, Steven Rostedt wrote: On Thu, 2014-03-13 at 18:10 +, Will Deacon wrote: +#else /* CONFIG_DYNAMIC_FTRACE */ +/* + * _mcount() is used to build the kernel with -pg option, but all the branch + * instructions

Re: [PATCH v6 5/7] arm64: ftrace: Add dynamic ftrace support

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 03:10 AM, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:48AM +, AKASHI Takahiro wrote: This patch allows "dynamic ftrace" if CONFIG_DYNAMIC_FTRACE is enabled. Here we can turn on and off tracing dynamically per-function base. On arm64, this is done by patching single branch

[PATCH] media: davinci: vpbe: fix build warning

2014-03-13 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch fixes following build warning drivers/media/platform/davinci/vpbe_display.c: In function 'vpbe_start_streaming': drivers/media/platform/davinci/vpbe_display.c:344: warning: unused variable 'vpbe_dev' Signed-off-by: Lad, Prabhakar --- drivers/media/platform/d

[PATCH v11 27/27] iommu/exynos: enhanced error messages

2014-03-13 Thread Cho KyongHo
Some redundant error message is removed and some error messages are changed to error level from debug level. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/d

[PATCH v11 25/27] iommu/exynos: use simpler function to get MMU version

2014-03-13 Thread Cho KyongHo
This commit changes the function to get MMU version simpler. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 30 ++ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 6e716cc

Question for ARM926T mtune values in ARM Makfile

2014-03-13 Thread V JobNickname
For ARM926T, the value in the Makefile are assigned to arm9tdmi. Actually all ARM9xxx are assigned by value arm9tdmi. But in some cross compile GCC toolchains, such as from Buildroot, they have different specified tune value for example, in buildroot GCC config BR2_GCC_TARGET_TUNE ... default arm

[PATCH v11 26/27] iommu/exynos: apply workaround of caching fault page table entries

2014-03-13 Thread Cho KyongHo
This patch contains 2 workaround for the System MMU v3.x. System MMU v3.2 and v3.3 has FLPD cache that caches first level page table entries to reduce page table walking latency. However, the FLPD cache is filled with a first level page table entry even though it is not accessed by a master H/W be

[PATCH v11 24/27] iommu/exynos: use exynos-iommu specific typedef

2014-03-13 Thread Cho KyongHo
This commit introduces sysmmu_pte_t for page table entries and sysmmu_iova_t vor I/O virtual address that is manipulated by exynos-iommu driver. The purpose of the typedef is to remove dependencies to the driver code from the change of CPU architecture from 32 bit to 64 bit. Signed-off-by: Cho Kyo

[PATCH v11 23/27] iommu/exynos: fix address handling

2014-03-13 Thread Cho KyongHo
Use of __pa and __va macro is changed to virt_to_phys and phys_to_virt which are recommended in driver code. printk formatting of physical address is also fixed to %pa. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 45 +++--- 1 file changed,

[PATCH v11 22/27] iommu/exynos: add devices attached to the System MMU to an IOMMU group

2014-03-13 Thread Cho KyongHo
Patch written by Antonios Motakis : IOMMU groups are expected by certain users of the IOMMU API, e.g. VFIO. Since each device is behind its own System MMU, we can allocate a new IOMMU group for each device. Reviewd-by: Cho KyongHo Signed-off-by: Antonios Motakis --- drivers/iommu/exynos-iommu.

[PATCH v11 19/27] iommu/exynos: add support for power management subsystems.

2014-03-13 Thread Cho KyongHo
This adds support for Suspend to RAM and Runtime Power Management. Since System MMU is located in the same local power domain of its master H/W, System MMU must be initialized before it is working if its power domain was ever turned off. TLB invalidation according to unmapping on page tables must

[PATCH v11 21/27] iommu/exynos: change rwlock to spinlock

2014-03-13 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Reviewed-by: Grant Grundler Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 39 --- 1 file changed, 20

[PATCH v11 20/27] iommu/exynos: allow having multiple System MMUs for a master H/W

2014-03-13 Thread Cho KyongHo
Some master device descriptor like fimc-is which is an abstraction of very complex H/W may have multiple System MMUs. For those devices, the design of the link between System MMU and its master H/W is needed to be reconsidered. A link structure, sysmmu_list_data is introduced that provides a link

[PATCH v11 15/27] iommu/exynos: use convenient macro to handle gate clocks

2014-03-13 Thread Cho KyongHo
exynos-iommu driver must care about master H/W's gate clock as well as System MMU's gate clock. To enhance readability of the source code, macros to gate/ungate those clocks are defined. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 34 ++ 1 file

[PATCH v11 14/27] iommu/exynos: gating clocks of master H/W

2014-03-13 Thread Cho KyongHo
This patch gates clocks of master H/W as well as clocks of System MMU if master clocks are specified. Some Exynos SoCs (i.e. GScalers in Exynos5250) have dependencies in the gating clocks of master H/W and its System MMU. If a H/W is the case, accessing control registers of System MMU is prohibite

[PATCH v11 18/27] iommu/exynos: turn on useful configuration options

2014-03-13 Thread Cho KyongHo
This turns on FLPD_CACHE, ACGEN and SYSSEL. FLPD_CACHE is a cache of 1st level page table entries that contains the address of a 2nd level page table to reduce latency of page table walking. ACGEN is architectural clock gating that gates clocks by System MMU itself if it is not active. Note that

[PATCH v11 13/27] iommu/exynos: support for device tree

2014-03-13 Thread Cho KyongHo
This commit adds device tree support for System MMU. Signed-off-by: Cho KyongHo --- drivers/iommu/Kconfig|5 ++--- drivers/iommu/exynos-iommu.c | 21 + 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig

[PATCH v11 16/27] iommu/exynos: remove custom fault handler

2014-03-13 Thread Cho KyongHo
This commit removes custom fault handler. The device drivers that need to register fault handler can register with iommu_set_fault_handler(). CC: Grant Grundler Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 80 +- 1 file changed, 24 inse

[PATCH v11 17/27] iommu/exynos: remove calls to Runtime PM API functions

2014-03-13 Thread Cho KyongHo
Runtime power management by exynos-iommu driver independently from master H/W's runtime pm is not useful for power saving since attaching master H/W in probing time turns on its local power endlessly. Thus this removes runtime pm API calls. Runtime PM support is added in the following commits to ex

[PATCH v11 12/27] ARM: dts: Add description of System MMU of Exynos SoCs

2014-03-13 Thread Cho KyongHo
This patch adds dts entries for the System MMU devices found on Exynos4 and Exynos5 SoC series and the System MMU binding documentation. CC: Rob Herring CC: Sylwester Nawrocki Signed-off-by: Cho KyongHo --- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 86 +++ arch/arm/boot/dts/ex

[PATCH v11 11/27] clk: exynos: add gate clock descriptions of System MMU

2014-03-13 Thread Cho KyongHo
This adds gate clocks of all System MMUs and their master IPs that are not apeared in clk-exynos5250.c and clk-exynos5420.c Also fixes GATE_IP_ACP to 0x18800 and changed GATE_DA to GATE for System MMU clocks in clk-exynos4.c Signed-off-by: Cho KyongHo --- .../devicetree/bindings/clock/exynos5250

[PATCH v11 10/27] iommu/exynos: use managed device helper functions

2014-03-13 Thread Cho KyongHo
This patch uses managed device helper functions in the probe(). Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 64 +- 1 file changed, 26 insertions(+), 38 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu

[PATCH v11 08/27] iommu/exynos: always use a single clock descriptor

2014-03-13 Thread Cho KyongHo
System MMU driver is changed to control only a single instance of System MMU at a time. Since a single instance of System MMU has only a single clock descriptor for its clock gating, there is no need to obtain two or more clock descriptors. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iom

[PATCH v11 09/27] iommu/exynos: remove dbgname from drvdata of a System MMU

2014-03-13 Thread Cho KyongHo
This patch removes dbgname member from sysmmu_drvdata structure. Kernel message for debugging already has the name of a single System MMU node. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 32 +--- 1 file changed, 13 insertions(+), 19 deletions(-)

[PATCH v11 07/27] iommu/exynos: always enable runtime PM

2014-03-13 Thread Cho KyongHo
Checking if the probing device has a parent device was just to discover if the probing device is involved in a power domain when the power domain controlled by Samsung's custom implementation. Since generic IO power domain is applied, it is required to remove the condition to see if the probing dev

[PATCH v11 06/27] iommu/exynos: allocate lv2 page table from own slab

2014-03-13 Thread Cho KyongHo
Since kmalloc() does not guarantee that the allignment of 1KiB when it allocates 1KiB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KiB Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 34 -- 1 file changed,

[PATCH v11 05/27] iommu/exynos: remove prefetch buffer setting

2014-03-13 Thread Cho KyongHo
Prefetch buffer is a cache of System MMU 3.x and caches a block of page table entries to make effect of larger page with small pages. However, how to control prefetch buffers and the specifications of prefetch buffers different from minor versions of System MMU v3. Prefetch buffers must be controle

[PATCH v11 04/27] iommu/exynos: fix L2TLB invalidation

2014-03-13 Thread Cho KyongHo
L2TLB is 8-way set-associative TLB with 512 entries. The number of sets is 64. A single 4KB(small page) translation information is cached only to a set whose index is the same with the lower 6 bits of the page frame number. A single 64KB(large page) translation information can be cached to any 16 s

[PATCH v11 02/27] iommu/exynos: add missing cache flush for removed page table entries

2014-03-13 Thread Cho KyongHo
This commit adds cache flush for removed small and large page entries in exynos_iommu_unmap(). Missing cache flush of removed page table entries can cause missing page fault interrupt when a master IP accesses an unmapped area. Reviewed-by: Tomasz Figa Tested-by: Grant Grundler Signed-off-by: Ch

[PATCH v11 03/27] iommu/exynos: change error handling when page table update is failed

2014-03-13 Thread Cho KyongHo
This patch changes not to panic on any error when updating page table. Instead prints error messages with callstack. Signed-off-by: Cho KyongHo --- drivers/iommu/exynos-iommu.c | 58 -- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/driv

[PATCH v11 01/27] iommu/exynos: do not include removed header

2014-03-13 Thread Cho KyongHo
Commit 25e9d28d92 (ARM: EXYNOS: remove system mmu initialization from exynos tree) removed arch/arm/mach-exynos/mach/sysmmu.h header without removing remaining use of it from exynos-iommu driver, thus causing a compilation error. This patch fixes the error by removing respective include line from

[PATCH v11 00/27] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2014-03-13 Thread Cho KyongHo
Sorry for the delayed posting the v11 patchset. 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 must ensure that its System MMU is disabled before MFC block is power-down no

Re: [PATCH 0/2] Add exit_prepare callback to the cpufreq_driver interface.

2014-03-13 Thread Viresh Kumar
On Thu, Mar 13, 2014 at 11:06 PM, wrote: > From: Dirk Brandewie > > Some drivers (intel_pstate) need to modify state on a core before it > is completely offline. The ->exit() callback is executed during the > CPU_POST_DEAD phase of the cpu offline process which is too late to > change the state

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 03:07 AM, Steven Rostedt wrote: On Thu, 2014-03-13 at 15:54 +, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: CALLER_ADDRx returns caller's address at specified level in call stacks. They are used for several tracers like irqsoff and preemp

Re: performance regression due to commit e82e0561("mm: vmscan: obey proportional scanning requirements for kswapd")

2014-03-13 Thread Yuanhan Liu
On Wed, Mar 12, 2014 at 04:54:47PM +, Mel Gorman wrote: > On Tue, Feb 18, 2014 at 04:01:22PM +0800, Yuanhan Liu wrote: > > Hi, > > > > Commit e82e0561("mm: vmscan: obey proportional scanning requirements for > > kswapd") caused a big performance regression(73%) for vm-scalability/ > > lru-file

Re: [PATCH] fs: fix i_writecount on shmem and friends

2014-03-13 Thread Al Viro
On Thu, Mar 13, 2014 at 04:55:41PM +1100, NeilBrown wrote: > Can we do direct writes from kernel space yet? If so I'll change the code to > do that so that it will work with any filesystem (which supports direct > writes). You can - see __swap_writepage() (mm/page_io.c). However, that area is a

Re: [PATCH v6 4/7] arm64: Add ftrace support

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 02:08 AM, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:47AM +, AKASHI Takahiro wrote: This patch implements arm64 specific part to support function tracers, such as function (CONFIG_FUNCTION_TRACER), function_graph (CONFIG_FUNCTION_GRAPH_TRACER) and function profiler (CONFI

Re: [PATCH v4] mm: per-thread vma caching

2014-03-13 Thread Andrew Morton
On Fri, 14 Mar 2014 11:05:51 +0800 Li Zefan wrote: > Hi Davidlohr, > > On 2014/3/4 11:26, Linus Torvalds wrote: > > On Mon, Mar 3, 2014 at 7:13 PM, Davidlohr Bueso wrote: > >> > >> Yes, I shortly realized that was silly... but I can say for sure it can > >> happen and a quick qemu run confirms

Re: [PATCH net-next v3 1/2] r8152: addRTL8152_EARLY_AGG_TIMEOUT_SUPER

2014-03-13 Thread David Miller
From: hayeswang Date: Fri, 14 Mar 2014 10:37:21 +0800 > From: David Miller [mailto:da...@davemloft.net] > Sent: Friday, March 14, 2014 1:22 AM > [...] >> And I fundamentally disagree with this being a Kconfig parameter. >> >> Make it run-time calculated _or_ settable via ethtool. > > Excuse

[git pull] drm fixes

2014-03-13 Thread Dave Airlie
Hi Linus, pretty minor set of fixes for radeon, ttm and vmwgfx, ttm ones are a regression and an oops seen on server chipsets. Dave. The following changes since commit fa389e220254c69ffae0d403eac4146171062d08: Linux 3.14-rc6 (2014-03-09 19:41:57 -0700) are available in the git repository at

Re: [PATCH v6 7/7] arm64: ftrace: Add system call tracepoint

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 01:25 AM, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:50AM +, AKASHI Takahiro wrote: This patch allows system call entry or exit to be traced as ftrace events, ie. sys_enter_*/sys_exit_*, if CONFIG_FTRACE_SYSCALLS is enabled. Those events appear and can be controlled under

Re: [PATCHv2 0/8] devfreq: exynos4: Support dt and use common ppmu driver

2014-03-13 Thread Chanwoo Choi
Hi, On 03/14/2014 01:43 AM, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Thursday, March 13, 2014 05:17:21 PM Chanwoo Choi wrote: >> This patchset support devicetree and use common ppmu driver instead of >> individual code of exynos4_bus.c to remove duplicate code. Also this patchset >> get t

Re: [PATCH v4] mm: per-thread vma caching

2014-03-13 Thread Li Zefan
Hi Davidlohr, On 2014/3/4 11:26, Linus Torvalds wrote: > On Mon, Mar 3, 2014 at 7:13 PM, Davidlohr Bueso wrote: >> >> Yes, I shortly realized that was silly... but I can say for sure it can >> happen and a quick qemu run confirms it. So I see your point as to >> asking why we need it, so now I'm

Re: [PATCH v6 6/7] arm64: ftrace: Add CALLER_ADDRx macros

2014-03-13 Thread AKASHI Takahiro
On 03/14/2014 12:54 AM, Will Deacon wrote: On Thu, Mar 13, 2014 at 10:13:49AM +, AKASHI Takahiro wrote: CALLER_ADDRx returns caller's address at specified level in call stacks. They are used for several tracers like irqsoff and preemptoff. Strange to say, however, they are refered even witho

[PATCH] user namespace: fix incorrect memory barriers

2014-03-13 Thread Mikulas Patocka
smp_read_barrier_depends() can be used if there is data dependency between the readers - i.e. if the read operation after the barrier uses address that was obtained from the read operation before the barrier. In this file, there is only control dependency, no data dependecy, so the use of smp_read

[PATCH] procfs: make smp_affinity values go+r

2014-03-13 Thread Chema Gonzalez
Includes: - /proc/irq/default_smp_affinity - /proc/irq/*/affinity_hint - /proc/irq/*/smp_affinity - /proc/irq/*/smp_affinity_list Users can distill the same information by reading /proc/interrupts. Signed-off-by: Chema Gonzalez --- kernel/irq/proc.c | 8 1 file changed, 4 insertions(+)

[tip:x86/vdso] x86, vdso, xen: Remove stray reference to FIX_VDSO

2014-03-13 Thread tip-bot for H. Peter Anvin
Commit-ID: 1f2cbcf648962cdcf511d234cb39745baa9f5d07 Gitweb: http://git.kernel.org/tip/1f2cbcf648962cdcf511d234cb39745baa9f5d07 Author: H. Peter Anvin AuthorDate: Thu, 13 Mar 2014 19:44:47 -0700 Committer: H. Peter Anvin CommitDate: Thu, 13 Mar 2014 19:44:47 -0700 x86, vdso, xen: Remove

Re: [PATCH v3 4/4] x86: Pass memory range via E820 for kdump

2014-03-13 Thread Dave Young
> [..] > > I tested on a prototype system with 231 entries in the map with good results. > Everything succeeds when using kexec to initiate a fast reboot. For crash, it > works with and without --pass-memmap-cmdline when using noefi. I hit the > following panic when initiating a crash leaving EFI

Re: [PATCH] procfs: make smp_affinity values 0644

2014-03-13 Thread Chema Gonzalez
0444 maybe? -Chema On Thu, Mar 13, 2014 at 7:37 PM, Eric Dumazet wrote: > On Thu, 2014-03-13 at 19:05 -0700, Chema Gonzalez wrote: >> Includes: >> - /proc/irq/default_smp_affinity >> - /proc/irq/*/smp_affinity >> - /proc/irq/*/smp_affinity_list >> >> Users can distill the same information by rea

RE: [PATCH net-next v3 1/2] r8152: addRTL8152_EARLY_AGG_TIMEOUT_SUPER

2014-03-13 Thread hayeswang
From: David Miller [mailto:da...@davemloft.net] Sent: Friday, March 14, 2014 1:22 AM [...] > And I fundamentally disagree with this being a Kconfig parameter. > > Make it run-time calculated _or_ settable via ethtool. Excuse me. How should I make it run-time calculated without a Kconfig parame

Re: [PATCH] procfs: make smp_affinity values 0644

2014-03-13 Thread Eric Dumazet
On Thu, 2014-03-13 at 19:05 -0700, Chema Gonzalez wrote: > Includes: > - /proc/irq/default_smp_affinity > - /proc/irq/*/smp_affinity > - /proc/irq/*/smp_affinity_list > > Users can distill the same information by reading /proc/interrupts. > > Signed-off-by: Chema Gonzalez > --- Seems good to me

Re: [RFC 4/6] sched: powerpc: create a dedicated topology table

2014-03-13 Thread Preeti U Murthy
On 03/12/2014 04:34 PM, Dietmar Eggemann wrote: > On 12/03/14 07:44, Vincent Guittot wrote: >> On 12 March 2014 05:42, Preeti U Murthy wrote: >>> On 03/11/2014 06:48 PM, Vincent Guittot wrote: On 11 March 2014 11:08, Preeti U Murthy wrote: > Hi Vincent, > > On 03/05/2014 12:48 PM

[PATCH V3] serial/uart/8250: Add tunable RX interrupt trigger I/F of FIFO buffers

2014-03-13 Thread Yoshihiro YUNOMAE
Add tunable RX interrupt trigger I/F of FIFO buffers. Serial devices are used as not only message communication devices but control or sending communication devices. For the latter uses, normally small data will be exchanged, so user applications want to receive data unit as soon as possible for re

Re: [PATCH] backlight: lm3639: use devm_backlight_device_register()

2014-03-13 Thread Jingoo Han
On Friday, March 14, 2014 11:14 AM, Daniel Jeong wrote: > > change to use devm_backlight_device_register() for simple cleanup. > > Signed-off-by: Daniel Jeong Acked-by: Jingoo Han Lee Jones, Would you merge this patch into your backlight tree? Best regards, Jingoo Han > --- > drivers/vide

Re: [RFC 4/6] sched: powerpc: create a dedicated topology table

2014-03-13 Thread Preeti U Murthy
On 03/12/2014 01:14 PM, Vincent Guittot wrote: > On 12 March 2014 05:42, Preeti U Murthy wrote: >> On 03/11/2014 06:48 PM, Vincent Guittot wrote: >>> On 11 March 2014 11:08, Preeti U Murthy wrote: Hi Vincent, On 03/05/2014 12:48 PM, Vincent Guittot wrote: > Create a dedicated t

Re: [PATCH v3] power: add an API to log wakeup reasons

2014-03-13 Thread Ruchi Kandoi
True, we could create new wakeup sources specifically to track this information, perhaps as needed once an IRQ is first observed to trigger a wakeup. We would want to know which wakeup sources were responsible for the most recent wakeup, since we keep a timeline of suspend/resume events with wakeu

[PATCH] backlight: lm3639: use devm_backlight_device_register()

2014-03-13 Thread Daniel Jeong
change to use devm_backlight_device_register() for simple cleanup. Signed-off-by: Daniel Jeong --- drivers/video/backlight/lm3639_bl.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/video/backlight/lm3639_bl.c b/drivers/video/backlight/lm3639_b

Enquiry

2014-03-13 Thread HARVESTROYALMACHINERY
Dear Sir, Please do you handle Copyright Infringement Cases as our long time business associate has violated our copyright agreement and we need a good lawyer to handle this matter urgently. If your firm is retained, our expectation of your services for now will be within the scenario o

[PATCH v5 0/2] Qualcomm Universal Peripheral (QUP) I2C controller

2014-03-13 Thread Bjorn Andersson
This fifth revision of the QUP I2C driver comes with minor fixes, as per review comments on the second third revision. Regards, Bjorn Changes from second v3: - Reformat device tree binding description related to clocks - Minor cleanup related to dt parsing of clock frequency - Properly return

[PATCH v5 2/2] i2c: New bus driver for the Qualcomm QUP I2C controller

2014-03-13 Thread Bjorn Andersson
This bus driver supports the QUP i2c hardware controller in the Qualcomm SOCs. The Qualcomm Universal Peripheral Engine (QUP) is a general purpose data path engine with input/output FIFOs and an embedded i2c mini-core. The driver supports FIFO mode (for low bandwidth applications) and block mode (i

[PATCH v5 1/2] i2c: qup: Add device tree bindings information

2014-03-13 Thread Bjorn Andersson
From: "Ivan T. Ivanov" The Qualcomm Universal Peripherial (QUP) wraps I2C mini-core and provide input and output FIFO's for it. I2C controller can operate as master with supported bus speeds of 100Kbps and 400Kbps. Signed-off-by: Ivan T. Ivanov [bjorn: reformulated part of binding description

Re: [PATCH 0/3] amd/pci: Add AMD hostbridge supports for newer AMD systems

2014-03-13 Thread Suravee Suthikulpanit
On 3/12/2014 4:13 PM, Bjorn Helgaas wrote: I assume the system is fully functional even without these patches, >right? The only effect of these changes should be a performance >improvement. [Suravee] Yes, the system is fully functional except the numa information for PCI ethernet adapters is

[PATCH] procfs: make smp_affinity values 0644

2014-03-13 Thread Chema Gonzalez
Includes: - /proc/irq/default_smp_affinity - /proc/irq/*/smp_affinity - /proc/irq/*/smp_affinity_list Users can distill the same information by reading /proc/interrupts. Signed-off-by: Chema Gonzalez --- kernel/irq/proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH 3/3] regulator: bcm590xx: Use array to save desc and *info

2014-03-13 Thread Axel Lin
BCM590XX_NUM_REGS is known in compile time. Use array to save desc and *info makes the code simpler. Signed-off-by: Axel Lin --- drivers/regulator/bcm590xx-regulator.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/drivers/regulator/bcm590xx-regulator.c

[PATCH 2/3] regulator: bcm590xx: Remove **rdev from struct bcm590xx_reg

2014-03-13 Thread Axel Lin
The **rdev of 'struct bcm590xx_reg' isn't used anywhere in the driver so remove it. Signed-off-by: Axel Lin --- drivers/regulator/bcm590xx-regulator.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c i

[PATCH 1/3] regulator: bcm590xx: Make the modalias matches the driver name

2014-03-13 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/bcm590xx-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/bcm590xx-regulator.c b/drivers/regulator/bcm590xx-regulator.c index e6b2e8e..d12d6d6 100644 --- a/drivers/regulator/bcm590xx-regulator.c +++ b/

Re: Trusted kernel patchset for Secure Boot lockdown

2014-03-13 Thread Matthew Garrett
On Thu, 2014-03-13 at 23:21 +, One Thousand Gnomes wrote: > On Thu, 13 Mar 2014 21:30:48 + > Matthew Garrett wrote: > > > On Thu, 2014-03-13 at 21:24 +, One Thousand Gnomes wrote: > > > > > If I have CAP_SYS_RAWIO I can make arbitary ring 0 calls from userspace, > > > trivially and i

Re: [PATCH 8/9] PCI: Ignore BAR contents when firmware left decoding disabled

2014-03-13 Thread Ming Lei
On Fri, Mar 14, 2014 at 12:08 AM, Bjorn Helgaas wrote: > On Thu, Mar 13, 2014 at 2:51 AM, Ming Lei wrote: >> Hi Bjorn, >> >> I found this patch broke virtio-pci devices. > > Thanks a lot for testing this. > >> On Thu, Feb 27, 2014 at 3:37 AM, Bjorn Helgaas wrote: >>> Don't rely on BAR contents w

[PATCH] mtip32xx: Fix ERO and NoSnoop values in PCIe upstream on AMD systems

2014-03-13 Thread Asai Thambi S P
A hardware quirk in P320h/P420m interfere with PCIe transactions on some AMD chipsets, making P320h/P420m unusable. This workaround is to disable ERO and NoSnoop bits in the parent and root complex for normal functioning of these devices NOTE: This workaround is specific to AMD chipset with a PCI

Re: [PATCH] control groups: documentation improvements

2014-03-13 Thread Li Zefan
On 2014/3/14 0:04, Glyn Normington wrote: > Hi Tejun > > Stepping back from the patch for a while, we'd like to explore the issues you > raise. Please bear with us as we try to capture the ideas precisely. > > Continued inline... > > Regards, > Glyn (& Steve Powell, copied) > > On 10/03/2014 1

Re: [RC6 Bell Chime] [PATCH 00/24] rfcomm fixes

2014-03-13 Thread Peter Hurley
Hi Sander, On 03/13/2014 08:49 PM, Sander Eikelenboom wrote: Is it just me .. or is this going at the speed of about a bluetooth connection .. and probably missing the boot for 3.14 ? (for no good reason IMHO) (it was not in John's nor Dave's last pull request, although it seems to be rever

Re: [RC6 Bell Chime] [PATCH 00/24] rfcomm fixes

2014-03-13 Thread Marcel Holtmann
Hi Sander, Since: - 3.14-RC6 has been cut - this regression is known and reported since the merge window - the fix (revert of 3 patches) is known for over a month now - but it's still not in mainline - my polite ping request from last week seems to have provoked exact

[PATCH] arch/unicore32/kernel/clock.c: add readl() and writel() for 'PM_' macros

2014-03-13 Thread Chen Gang
Add readl() and writel() for 'PM_' macros, just like another areas have done within unicored32, or will cause compiling issue. The related error (allmodconfig for unicored32): CC arch/unicore32/kernel/clock.o arch/unicore32/kernel/clock.c: In function ‘clk_set_rate’: arch/unicore32/k

Re: [PATCH v3] power: add an API to log wakeup reasons

2014-03-13 Thread Rafael J. Wysocki
On Thursday, March 13, 2014 05:43:20 PM Ruchi Kandoi wrote: > This should be true most of the times. > > But there might be cases otherwise too. > > For instance, there was a bug earlier with wi-fi which would cause the > system to wake up but not get hold of a wakeup source because there > wasn'

Re: [RFC] improve_stack: make stack dump output useful again

2014-03-13 Thread Linus Torvalds
On Thu, Mar 13, 2014 at 4:07 PM, Sasha Levin wrote: > > I figured that I'll just read it from System.map (and do the math when > adding the offset). That should work, right? Yes, although just reading the symbols from the vmlinux file would be *much* more convenient, since I know that not everybo

  1   2   3   4   5   6   7   8   >