Re: regression: from 3.8 to 3.9: headphones output no sound on Intel HDA, codec VIA VT1802

2013-05-13 Thread Takashi Iwai
At Mon, 13 May 2013 20:24:42 +0200, Alex Riesen wrote: > > On Mon, May 13, 2013 at 5:53 PM, Takashi Iwai wrote: > > At Mon, 13 May 2013 17:26:04 +0200, Takashi Iwai wrote: > >> At Sun, 12 May 2013 11:53:41 +0200, Alex Riesen wrote: > >> > > >> > I just noticed (use the headphones rarely) that

Re: [PATCH] ARM: PL011: add support for extended FIFO-size of PL011-r1p5

2013-05-13 Thread Stephen Warren
On 04/12/2013 03:18 AM, Jongsung Kim wrote: > The latest r1p5-revision of the ARM PL011 UART has 32-byte FIFOs, while all > earlier ones have 16-byte FIFOs. This patch suggests a way to set the > FIFO-size correctly & flexibly by using a > function(vendor_data::get_fifosize) rather than using the

Re: [PATCH] x86, 64bit: Fix a possible bug in switchover in head_64.S

2013-05-13 Thread Yinghai Lu
On Mon, May 13, 2013 at 5:37 AM, Zhang Yanfei wrote: > From: Zhang Yanfei > It seems line 119 has a potential bug there. For example, > the kernel is loaded at physical address 511G+1008M, that is > 0 1 11000 0 > and the kernel _end is 512G+2M, that

[PATCH 4/4] media: pci: remove duplicate checks for EPERM

2013-05-13 Thread Lad Prabhakar
From: Lad, Prabhakar This patch removes check for EPERM in dbg_g/s_register and vidioc_g/s_register as this check is already performed by core. Signed-off-by: Lad, Prabhakar --- drivers/media/pci/bt8xx/bttv-driver.c |6 -- drivers/media/pci/cx18/cx18-av-core.c |4

[PATCH 3/4] media: usb: remove duplicate checks for EPERM in vidioc_g/s_register

2013-05-13 Thread Lad Prabhakar
From: Lad, Prabhakar This patch removes check for EPERM in vidioc_g/s_register as this check is already performed by core. Signed-off-by: Lad, Prabhakar --- drivers/media/usb/pvrusb2/pvrusb2-hdw.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[PATCH 2/4] media: dvb-frontends: remove duplicate checks for EPERM in dbg_g/s_register

2013-05-13 Thread Lad Prabhakar
From: Lad, Prabhakar This patch removes check for EPERM in dbg_g/s_register as this check is already performed by core. Signed-off-by: Lad, Prabhakar --- drivers/media/dvb-frontends/au8522_decoder.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git

[PATCH 1/4] media: i2c: remove duplicate checks for EPERM in dbg_g/s_register

2013-05-13 Thread Lad Prabhakar
From: Lad, Prabhakar This patch removes check for EPERM in dbg_g/s_register of subdevice drivers as this check is already performed by core. Signed-off-by: Lad, Prabhakar --- drivers/media/i2c/ad9389b.c |4 drivers/media/i2c/adv7183.c |4

[PATCH 0/4] media: remove duplicate check for EPERM

2013-05-13 Thread Lad Prabhakar
From: Lad, Prabhakar This patch series cleanups the check for EPERM in dbg_g/s_register and vidioc_g/s_register. Lad, Prabhakar (4): media: i2c: remove duplicate checks for EPERM in dbg_g/s_register media: dvb-frontends: remove duplicate checks for EPERM in dbg_g/s_register media:

Re: [PATCH] sched: Add nr_running_cpu() to get current of running threads of each core

2013-05-13 Thread Chanwoo Choi
On 05/13/2013 05:59 PM, Peter Zijlstra wrote: > On Mon, May 13, 2013 at 05:33:12PM +0900, Chanwoo Choi wrote: >> This patch add nr_running_cpu() function to get current >> number of running threads of each core. >> > Uhm, not without a very good reason. > I am implementing the cpu hotplug policy

Re: [Patch] quota: do not leak info to user-space

2013-05-13 Thread Cong Wang
On Mon, 2013-05-13 at 12:18 +0200, Jan Kara wrote: > On Mon 13-05-13 12:04:23, Jan Kara wrote: > > On Fri 10-05-13 17:24:33, Cong Wang wrote: > > > From: Cong Wang > > > > > > There is a hole in struct fs_quota_stat, so we have to > > > zero the struct on stack before copying it to user-space. >

[PATCH v2] PCI: Reset PCIe devices to stop ongoing DMA

2013-05-13 Thread Takao Indoh
This patch resets PCIe devices on boot to stop ongoing DMA. When "pci=pcie_reset_endpoint_devices" is specified, a hot reset is triggered on each PCIe root port and downstream port to reset its downstream endpoint. Problem: This patch solves the problem that kdump can fail when intel_iommu=on is

Re: [PATCH v3 0/2] dma: support Lynxpoint DMA

2013-05-13 Thread Vinod Koul
On Wed, May 08, 2013 at 11:55:47AM +0300, Andy Shevchenko wrote: > This is the rest of patch series related to ACPI DMA helpers and Lynxpoint > DMAC. > Patches are rebased against current Linus' tree and Vinod's branch for-linus. > > Since v2: > - remove patches that are already in the Vinod's

Re: [PATCH RFC v3] media: i2c: mt9p031: add OF support

2013-05-13 Thread Sascha Hauer
On Tue, May 14, 2013 at 12:59:27AM +0200, Laurent Pinchart wrote: > Hi Sascha, > > On Monday 13 May 2013 12:46:04 Sascha Hauer wrote: > > On Wed, May 08, 2013 at 12:37:29PM +0200, Laurent Pinchart wrote: > > > Hi Prabhakar, > > > > > > On Wednesday 08 May 2013 10:19:57 Prabhakar Lad wrote: > > >

Re: [PATCH] efivarfs: Never return ENOENT from firmware again

2013-05-13 Thread joeyli
Hi Matt, 於 一,2013-05-13 於 20:21 +0100,Matt Fleming 提到: > On 05/10/2013 11:29 AM, Lingzhu Xiang wrote: > > Previously in 1fa7e69 efi_status_to_err() translated firmware status > > EFI_NOT_FOUND to -EIO instead of -ENOENT for efivarfs operations to > > avoid confusion. After refactoring in

Re: [PATCH] checkpatch: add check for wrong "if (IS_ERR_OR_NULL()) return PTR_ERR()" uses

2013-05-13 Thread Joe Perches
On Tue, 2013-05-14 at 03:41 +0300, Ruslan Bilovol wrote: > This was many times discussed by Russell King > and I also was about wrong usage of IS_ERR_OR_NULL() > in my patch. So I added this check and other people will > be at least warned about potentially wrong usage > of mentioned macro. [] >

linux-next: Tree for May 14

2013-05-13 Thread Stephen Rothwell
Hi all, Changes since 20130513: I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git (patches at http://www.kernel.org/pub/linux/kernel/next/ ). If you

Re: [PATCH V2 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-05-13 Thread Tang Chen
Hi Mel, On 05/13/2013 05:19 PM, Mel Gorman wrote: For memory hot-remove case, the aio pages are pined in memory and making the pages cannot be offlined, furthermore, the pages cannot be removed. IIUC, you mean implement migrate_unpin() and migrate_pin() callbacks in aio subsystem, and call

Re: [PATCH v2] mtd: fsmc_nand: fix error return code in fsmc_nand_probe()

2013-05-13 Thread Viresh Kumar
On 14 May 2013 08:00, Wei Yongjun wrote: > From: Wei Yongjun > > Fix to return -ENODEV in the dma channel request error handling > case instead of 0, as done elsewhere in this function. > > Signed-off-by: Wei Yongjun > --- > v1 -> v2: set ret for error cases only > --- >

Re: [PATCH 2/7] PCI: move resources and bus_list releasing to pci_release_dev

2013-05-13 Thread Yinghai Lu
On Mon, May 13, 2013 at 8:20 PM, Yijing Wang wrote: > On 2013/5/14 10:28, Yinghai Lu wrote: >> We should not release resource in pci_destroy that is too early > > Hi Yinghai, >"too early" means that after pci_stop_dev(), if someone else > hold the device reference, it still care the device

Re: [Linux-zigbee-devel] [PATCH 2/2] mrf24j40: Keep the interrupt line enabled

2013-05-13 Thread Alan Ott
On 5/9/13 11:19 AM, David Hauweele wrote: Disabling the interrupt line could miss an IRQ and leave the line into a low state hence locking the driver. Have you observed this? My understanding is that the interrupt won't be lost but instead delayed until enable_irq() is called. I got this

Re: [PATCH -next] ashmem: Fix ashmem_shrink deadlock.

2013-05-13 Thread Raul Xiong
2013/5/14 Neil Zhang : > 2013/5/14 Greg Kroah-Hartman : >> On Wed, May 01, 2013 at 09:56:13AM -0400, Robert Love wrote: >>> Don't acquire ashmem_mutex in ashmem_shrink if we've somehow recursed >>> into the >>> shrinker code from within ashmem. Just bail out, avoiding a deadlock. >>> This is >>>

Re: 3.9.0: panic during boot - kernel BUG at include/linux/gfp.h:323!

2013-05-13 Thread Lingzhu Xiang
On 05/06/2013 03:55 PM, CAI Qian wrote: [0.928031] [ cut here ] [0.934231] kernel BUG at include/linux/gfp.h:323! [0.940581] invalid opcode: [#1] SMP [0.945982] Modules linked in: [0.950048] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.9.0+ #1 [

Re: [PATCH 3/4] ARM: mxs: remove the .map_io declaration

2013-05-13 Thread Shawn Guo
On Mon, May 13, 2013 at 12:16:08PM +0200, Maxime Ripard wrote: > Now that the ARM core code calls debug_ll_io_init, we can remove it from > the machine_desc declaration. > > Signed-off-by: Maxime Ripard Acked-by: Shawn Guo > --- > arch/arm/mach-mxs/mach-mxs.c | 1 - > 1 file changed, 1

Re: [PATCH -next] ashmem: Fix ashmem_shrink deadlock.

2013-05-13 Thread Neil Zhang
2013/5/14 Greg Kroah-Hartman : > On Wed, May 01, 2013 at 09:56:13AM -0400, Robert Love wrote: >> Don't acquire ashmem_mutex in ashmem_shrink if we've somehow recursed >> into the >> shrinker code from within ashmem. Just bail out, avoiding a deadlock. >> This is >> fine, as ashmem cache pruning is

Re: [Linux-zigbee-devel] [PATCH 1/2] mrf24j40: Avoid transmission while receiving a frame

2013-05-13 Thread Alan Ott
On 5/9/13 11:19 AM, David Hauweele wrote: The transceiver may fail under heavy traffic when a frame is transmitted while receiving another frame. This patch uses a mutex to separate the transmission and reception of frames along with a secondary working queue to avoid a deadlock while waiting

Re: [PATCH 2/7] PCI: move resources and bus_list releasing to pci_release_dev

2013-05-13 Thread Yijing Wang
On 2013/5/14 10:28, Yinghai Lu wrote: > We should not release resource in pci_destroy that is too early Hi Yinghai, "too early" means that after pci_stop_dev(), if someone else hold the device reference, it still care the device resource ? e.g.? Thanks! Yijing. > as there could be still

Re: [PATCH] fs/fat: Use fat_msg() to replace printk() in __fat_fs_error()

2013-05-13 Thread Gu Zheng
On 05/13/2013 05:28 PM, OGAWA Hirofumi wrote: > Gu Zheng writes: > >> >From 87141ec058aad35ac55bc7c3fc2eb378566a5a6a Mon Sep 17 00:00:00 2001 >> From: Gu Zheng >> Date: Mon, 13 May 2013 17:48:19 +0900 >> Subject: [PATCH] fs/fat: Use fat_msg() to replace printk() in >> __fat_fs_error() > >> -

Re: [PATCH 1/1] NVMe: Remove redundant version.h header include

2013-05-13 Thread Sachin Kamat
On 13 May 2013 19:20, Wilcox, Matthew R wrote: > I can't apply this patch. Instead of following what it says in MAINTAINERS, > you've sent it to my Exchange address. And now it's all mangled. I ran the get_maintainer.pl on the patch and this is what it gave me: scripts/get_maintainer.pl

Re: [PATCH] ARM: EXYNOS: Update defconfig for Arndale and Origen board

2013-05-13 Thread Tushar Behera
On 05/14/2013 05:36 AM, Kevin Hilman wrote: > Tushar Behera writes: > >> It updates following drivers for EXYNOS based DT platform. >> >> * S5M8767 driver >> * MAX8997 driver >> * MMC SDHCI driver >> >> Signed-off-by: Tushar Behera > > I tested this using v3.10-rc1 on Arndale, but still don't

Re: [PATCH 3/3] target: simplify target_wait_for_sess_cmds()

2013-05-13 Thread Nicholas A. Bellinger
On Mon, 2013-05-13 at 18:00 -0400, Jörn Engel wrote: > On Mon, 13 May 2013 16:00:03 -0700, Nicholas A. Bellinger wrote: > > On Mon, 2013-05-13 at 16:30 -0400, Joern Engel wrote: > > > The second parameter was always 0, leading to effectively dead code. It > > > called list_del() and

Re: [PATCH 1/3] evm: calculate HMAC after initializing posix acl

2013-05-13 Thread Hugh Dickins
On Wed, 24 Apr 2013, Mimi Zohar wrote: > (Reposting with expanded 'cc' list.) > > Included in the EVM hmac calculation is the i_mode. Any changes to > the i_mode need to be reflected in the hmac. shmem_mknod() currently > calls posix_acl_init(), which modifies the i_mode, after calling

Re: [PATCH] crypto: remove dependency on EXPERIMENTAL

2013-05-13 Thread Herbert Xu
On Sun, May 12, 2013 at 01:57:19PM +0200, Paul Bolle wrote: > The Kconfig symbol EXPERIMENTAL was removed in v3.9. So this dependency > makes it impossible to set CRYPTO_DEV_SAHARA. It's unlikely that this is > what is intended, so let's remove this dependency. > > Signed-off-by: Paul Bolle

Re: [PATCH 1/4] hwrng: atmel - remove unnecessary platform_set_drvdata()

2013-05-13 Thread Herbert Xu
On Mon, May 06, 2013 at 01:37:13PM +0900, Jingoo Han wrote: > The driver core clears the driver data to NULL after device_release > or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d > (device-core: Ensure drvdata = NULL when no driver is bound). > Thus, it is not needed to

Re: [PATCH] drivers: crypto: use devm_ioremap_resource()

2013-05-13 Thread Herbert Xu
On Thu, May 02, 2013 at 02:00:38PM +0200, Laurent Navet wrote: > Replace calls to deprecated devm_request_and_ioremap by devm_ioremap_resource. > > Found with coccicheck and this semantic patch: > scripts/coccinelle/api/devm_request_and_ioremap.cocci. > > Signed-off-by: Laurent Navet Patch

Re: [PATCH v3 0/4] Patchset to use PCLMULQDQ to accelerate CRC-T10DIF checksum computation

2013-05-13 Thread Herbert Xu
On Wed, May 01, 2013 at 12:52:47PM -0700, Tim Chen wrote: > Currently the CRC-T10DIF checksum is computed using a generic table lookup > algorithm. By switching the checksum to PCLMULQDQ based computation, > we can speedup the computation by 8x for checksumming 512 bytes and > even more for

Re: [PATCH] crypto: caam - FIX RNG init for RNG greater than equal to 4

2013-05-13 Thread Herbert Xu
On Fri, Apr 26, 2013 at 11:34:19AM +, Garg Vakul-B16394 wrote: > Reviewed-by: Vakul Garg Patch applied. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line

[PATCH 0/7] PCI: fix pci dev add and remove sequence

2013-05-13 Thread Yinghai Lu
The patchset is started while we try to address double remove pci devices via sysfs that is found by Gu. main point is from Bjorn that add reference for bus, and he also pointed out that release should be done in pci_release_device. After reviewing the add and remove path, found more problem

[PATCH 3/7] PCI: Detach driver in pci_stop_device

2013-05-13 Thread Yinghai Lu
Make pci_stop_dev actually detach driver only, and pci_remove_dev device will do device_del instead. Then also could make hostbridge to use device_unregister to be pair with device_register before. Add is_removed to record if device_del is called already. So mutliple calling will not cause false

[PATCH 2/7] PCI: move resources and bus_list releasing to pci_release_dev

2013-05-13 Thread Yinghai Lu
We should not release resource in pci_destroy that is too early as there could be still other use hold reference. release them or remove it from bus devices list at last in pci_release_dev instead. Signed-off-by: Yinghai Lu --- drivers/pci/probe.c | 20

[PATCH 7/7] PCI: use pf as dma_dev for vf that does not have func0 sibling

2013-05-13 Thread Yinghai Lu
Fix crash: [ 122.181002] pci :c4:00.4: [10df:e228] type 00 class 0x02 [ 122.188541] BUG: unable to handle kernel NULL pointer dereference at 0010 [ 122.197324] IP: [] intel_iommu_add_device+0x108/0x1e0 [ 122.204753] PGD 0 [ 122.207019] Oops: [#1] SMP [ 122.210655]

[PATCH 6/7] PCI: Make sure VF's driver get attached after PF's

2013-05-13 Thread Yinghai Lu
Found kernel try to load mlx4 drivers for VFs before PF's is really loaded when the drivers are built-in, and kernel command line include probe_vfs=63, num_vfs=63. It turns that it also happen for hotadd path even drivers are compiled as modules and if they loaded. Esp some VF share the same

[PATCH 5/7] PCI, ACPI: Don't glue ACPI dev with pci VFs

2013-05-13 Thread Yinghai Lu
When sriov is enabled, VF could just start after PF in pci tree. like c1:00.0 will be PF, and c1:00.1 and after will be VF. acpi do have dev with same ADR. that will make them get glued wrongly. Skip that if it is virtfn. Also need to set is_virtfn before pci_device_add(), as gluing is

[PATCH 4/7] PCI: Fix racing for pci device removing via sysfs

2013-05-13 Thread Yinghai Lu
Gu found nested removing through echo -n 1 > /sys/bus/pci/devices/\:10\:00.0/remove ; echo -n 1 > /sys/bus/pci/devices/\:1a\:01.0/remove will cause kernel crash as bus get freed. [ 418.946462] CPU 4 [ 418.968377] Pid: 512, comm: kworker/u:2 Tainted: GW3.8.0 #2

[PATCH 1/7] PCI: move back pci_proc_attach_devices calling

2013-05-13 Thread Yinghai Lu
We stop detach proc when pci_stop_device. So should attach that during pci_bus_add_device. Signed-off-by: Yinghai Lu --- drivers/pci/bus.c |1 + drivers/pci/probe.c |2 -- 2 files changed, 1 insertion(+), 2 deletions(-) Index: linux-2.6/drivers/pci/probe.c

[RFC PATCH v4 1/5] powerpc: Syscall hooks for context tracking subsystem

2013-05-13 Thread Li Zhong
This is the syscall slow path hooks for context tracking subsystem, corresponding to [PATCH] x86: Syscall hooks for userspace RCU extended QS commit bf5a3c13b939813d28ce26c01425054c740d6731 TIF_MEMDIE is moved to the second 16-bits (with value 17), as it seems there is no asm code using it.

Re: [PATCH v2] kernel/module.c: cleanup patch for looping, let return 'bool' value instead of real error number.

2013-05-13 Thread Chen Gang
Oh, sorry, my fix is incorrect !! The return value is used by caller of caller ... it seems the user mode can sense it !! So we still should return the correct error code to outside when error occurs. I think we can reference 'using compiler': it prints all errors and warnings as far as it can,

[RFC PATCH v4 0/5] powerpc: Support context tracking for Power pSeries

2013-05-13 Thread Li Zhong
These patches try to support context tracking for Power arch, beginning with 64-bit pSeries. The codes are ported from that of the x86_64, and in each patch, I listed the corresponding patch for x86. v4: fixed some cosmetic issues suggested by Ben. Li Zhong (5): powerpc: Syscall hooks for

[RFC PATCH v4 5/5] powerpc: select HAVE_CONTEXT_TRACKING for pSeries

2013-05-13 Thread Li Zhong
Start context tracking support from pSeries. Signed-off-by: Li Zhong --- arch/powerpc/platforms/pseries/Kconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/pseries/Kconfig b/arch/powerpc/platforms/pseries/Kconfig index 9a0941b..023b288 100644 ---

[RFC PATCH v4 2/5] powerpc: Exception hooks for context tracking subsystem

2013-05-13 Thread Li Zhong
This is the exception hooks for context tracking subsystem, including data access, program check, single step, instruction breakpoint, machine check, alignment, fp unavailable, altivec assist, unknown exception, whose handlers might use RCU. This patch corresponds to [PATCH] x86: Exception hooks

[RFC PATCH v4 4/5] powerpc: Use the new schedule_user API on userspace preemption

2013-05-13 Thread Li Zhong
This patch corresponds to [PATCH] x86: Use the new schedule_user API on userspace preemption commit 0430499ce9d78691f3985962021b16bf8f8a8048 Signed-off-by: Li Zhong --- arch/powerpc/include/asm/context_tracking.h | 10 ++ arch/powerpc/kernel/entry_64.S |3 ++- 2

[RFC PATCH v4 3/5] powerpc: Exit user context on notify resume

2013-05-13 Thread Li Zhong
This patch allows RCU usage in do_notify_resume, e.g. signal handling. It corresponds to [PATCH] x86: Exit RCU extended QS on notify resume commit edf55fda35c7dc7f2d9241c3abaddaf759b457c6 Signed-off-by: Li Zhong --- arch/powerpc/kernel/signal.c |5 + 1 file changed, 5 insertions(+)

[PATCH 1/9] perf top: Fix -E option behavior

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim The -E/--entries option controls how many lines to be printed on stdio output but it doesn't work as it should be: If -E option is specified, print that many lines regardless of current window size, if not automatically adjust number of lines printed to fit into the window

[PATCH 2/9] perf top: Fix percent output when no samples collected

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim If there's no sample, kernel and exact percent output at the header looked like "-nan%". Signed-off-by: Namhyung Kim --- tools/perf/util/top.c | 23 +-- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/tools/perf/util/top.c

[PATCHSET 0/9] perf tools: Assorted fixes and changes on perf top/report

2013-05-13 Thread Namhyung Kim
Hi, This patchset is a collection of 3 changes on perf top and report tools. I wanted to make them independent, but failed due to laziness. :) Patch 1 is a fix for -E option handling in perf top. IIUC it only shows a given number of entries. Patch 2 is a simple fix. Patch 3-5 remove a set of

[PATCH 5/9] perf report: Don't be bothered with locking when adding hist entries

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim The perf report is single-threaded, so no need to grab a lock. Although the fast path of pthread_mutex_[un]lock() is very fast, there's ~3% gain by eliminating it when we have huge sample data. $ perf record -a -F 10 -o perf.data.bench -- perf bench sched all $ perf

[PATCH 8/9] perf report: Add report.percent-limit config variable

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim Now an user can set a default value of --percent-limit option into the perfconfig file. $ cat ~/.perfconfig [report] percent-limit = 0.1 Cc: Andi Kleen Cc: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 7 ++- 1 file changed, 6

[PATCH 9/9] perf top: Reuse report.percent-limit config variable

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim Make the config variable also works for perf top. Cc: Andi Kleen Cc: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/builtin-top.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index

[PATCH 3/9] perf top: Get rid of *_threaded() functions

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim Those _threaded() functions are needed to make hist tree handling thread-safe, but AFAICS the only thing it does is forcing it to use the intermediate 'collapsed' tree. It can be acheived by setting sort__need_collapse to 1 in cmd_top() so no need to keep those _threaded()

[PATCH 4/9] perf hists: Move locking to its call-sites

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim It's a preparation patch to eliminate unneeded locking in the perf report path. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 26 ++ tools/perf/builtin-top.c| 3 +++ tools/perf/util/hist.c | 6 +- 3 files changed, 18

[PATCH 7/9] perf top: Add --percent-limit option

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim The --percent-limit option is for not showing small overheaded entries in the output. Cc: Andi Kleen Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-top.txt | 4 tools/perf/builtin-top.c | 17 +++--

[PATCH 6/9] perf report: Add --percent-limit option

2013-05-13 Thread Namhyung Kim
From: Namhyung Kim The --percent-limit option is for not showing small overheaded entries in the output. Maybe we want to set a certain default value like 0.1. Cc: Andi Kleen Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-report.txt | 4 ++

[PATCH v5 1/8] vmcore: allocate buffer for ELF headers on page-size alignment

2013-05-13 Thread HATAYAMA Daisuke
Allocate ELF headers on page-size boundary using __get_free_pages() instead of kmalloc(). Later patch will merge PT_NOTE entries into a single unique one and decrease the buffer size actually used. Keep original buffer size in variable elfcorebuf_sz_orig to kfree the buffer later and actually

[PATCH v5 8/8] vmcore: support mmap() on /proc/vmcore

2013-05-13 Thread HATAYAMA Daisuke
This patch introduces mmap_vmcore(). Don't permit writable nor executable mapping even with mprotect() because this mmap() is aimed at reading crash dump memory. Non-writable mapping is also requirement of remap_pfn_range() when mapping linear pages on non-consecutive physical pages; see

[PATCH v5 7/8] vmcore: calculate vmcore file size from buffer size and total size of vmcore objects

2013-05-13 Thread HATAYAMA Daisuke
The previous patches newly added holes before each chunk of memory and the holes need to be count in vmcore file size. There are two ways to count file size in such a way: 1) supporse p as a poitner to the last program header entry with PT_LOAD type, then roundup(p->p_offset + p->p_memsz,

[PATCH v5 5/8] vmcore: allocate ELF note segment in the 2nd kernel vmalloc memory

2013-05-13 Thread HATAYAMA Daisuke
The reasons why we don't allocate ELF note segment in the 1st kernel (old memory) on page boundary is to keep backward compatibility for old kernels, and that if doing so, we waste not a little memory due to round-up operation to fit the memory to page boundary since most of the buffers are in

[PATCH v5 6/8] vmcore: treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list

2013-05-13 Thread HATAYAMA Daisuke
Treat memory chunks referenced by PT_LOAD program header entries in page-size boundary in vmcore_list. Formally, for each range [start, end], we set up the corresponding vmcore object in vmcore_list to [rounddown(start, PAGE_SIZE), roundup(end, PAGE_SIZE)]. This change affects layout of

[PATCH v5 4/8] vmalloc: introduce remap_vmalloc_range_partial

2013-05-13 Thread HATAYAMA Daisuke
We want to allocate ELF note segment buffer on the 2nd kernel in vmalloc space and remap it to user-space in order to reduce the risk that memory allocation fails on system with huge number of CPUs and so with huge ELF note segment that exceeds 11-order block size. Although there's already

[PATCH v5 3/8] vmalloc: make find_vm_area check in range

2013-05-13 Thread HATAYAMA Daisuke
Currently, __find_vmap_area searches for the kernel VM area starting at a given address. This patch changes this behavior so that it searches for the kernel VM area to which the address belongs. This change is needed by remap_vmalloc_range_partial to be introduced in later patch that receives any

[PATCH v5 0/8] kdump, vmcore: support mmap() on /proc/vmcore

2013-05-13 Thread HATAYAMA Daisuke
Currently, read to /proc/vmcore is done by read_oldmem() that uses ioremap/iounmap per a single page. For example, if memory is 1GB, ioremap/iounmap is called (1GB / 4KB)-times, that is, 262144 times. This causes big performance degradation. In particular, the current main user of this mmap() is

[PATCH v5 2/8] vmcore: clean up read_vmcore()

2013-05-13 Thread HATAYAMA Daisuke
Rewrite part of read_vmcore() that reads objects in vmcore_list in the same way as part reading ELF headers, by which some duplicated and redundant codes are removed. Signed-off-by: HATAYAMA Daisuke --- fs/proc/vmcore.c | 68 -- 1 files

WARNING: at lib/dma-debug.c:937 check_unmap+0x45f/0x8b0() (ioat_dma_self_test [ioatdma])

2013-05-13 Thread Vladislav Bolkhovitin
Hello, I keep getting on each reboot of my kernel 3.9.1 debug system: [ 42.037225] [ cut here ] [ 42.037237] WARNING: at lib/dma-debug.c:937 check_unmap+0x45f/0x8b0() [ 42.037240] Hardware name: PowerEdge R710 [ 42.037243] ioatdma :00:16.0: DMA-API: device

RE: [PATCH v2 1/3] driver: add TXT driver in kernel

2013-05-13 Thread Ren, Qiaowei
On 2013-05-14, Matthew Garrett wrote: > On Tue, 2013-05-14 at 01:24 +0800, Qiaowei Ren wrote: > > static int __init txt_sysfs_init(void) > > +{ > > + if (!tboot_enabled()) > > + return -ENODEV; > > If there's a CPU flag that indicates tboot support, you should add a modalias > for >

RE: [PATCH v2 2/3] driver: provide sysfs interfaces to access TXT config space

2013-05-13 Thread Ren, Qiaowei
On 2013-05-14, Matthew Garrett wrote: > On Tue, 2013-05-14 at 01:24 +0800, Qiaowei Ren wrote: > > These interfaces are located > > in /sys/devices/platform/intel_txt/config, > > and including totally 37 files, providing access to Intel TXT > > configuration registers. > > Do you have any example

Re: [PATCH] net/macb: fix ISR clear-on-write behavior only for some SoC

2013-05-13 Thread Hein Tibosch
On 5/14/2013 12:05 AM, Jean-Christophe PLAGNIOL-VILLARD wrote: > On May 14, 2013, at 12:05 AM, Nicolas Ferre wrote: > >> Commit 749a2b6 (net/macb: clear tx/rx completion flags in ISR) >> introduces clear-on-write on ISR register. This behavior is not always >> implemented when using Cadence

[PATCH 03/21] aio: percpu reqs_available

2013-05-13 Thread Kent Overstreet
See the previous patch ("aio: reqs_active -> reqs_available") for why we want to do this - this basically implements a per cpu allocator for reqs_available that doesn't actually allocate anything. Note that we need to increase the size of the ringbuffer we allocate, since a single thread won't

[PATCH 05/21] aio: percpu ioctx refcount

2013-05-13 Thread Kent Overstreet
This just converts the ioctx refcount to the new generic dynamic percpu refcount code. Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Mark Fasheh Cc: Joel Becker Cc: Rusty Russell Cc: Jens Axboe Cc: Asai Thambi S P Cc: Selvan Mani Cc: Sam

[PATCH 04/21] Generic percpu refcounting

2013-05-13 Thread Kent Overstreet
This implements a refcount with similar semantics to atomic_get()/atomic_dec_and_test() - but percpu. It also implements two stage shutdown, as we need it to tear down the percpu counts. Before dropping the initial refcount, you must call percpu_ref_kill(); this puts the refcount in "shutting

[PATCH 01/21] aio: fix kioctx not being freed after cancellation at exit time

2013-05-13 Thread Kent Overstreet
From: Benjamin LaHaise The recent changes overhauling fs/aio.c introduced a bug that results in the kioctx not being freed when outstanding kiocbs are cancelled at exit_aio() time. Specifically, a kiocb that is cancelled has its completion events discarded by batch_complete_aio(), which then

AIO refactoring/performance improvements/cancellation

2013-05-13 Thread Kent Overstreet
This is a respin of the AIO patches that were deferred until 3.11, along with some other stuff I had queued up. Changes: * Took the dynamic allocation stuff out of the percpu refcounting patch, which Tejun was wanting. I split the dynamic bits out into another patch, which I may resend

[PATCH 06/21] aio: io_cancel() no longer returns the io_event

2013-05-13 Thread Kent Overstreet
Originally, io_event() was documented to return the io_event if cancellation succeeded - the io_event wouldn't be delivered via the ring buffer like it normally would. But this isn't what the implementation was actually doing; the only driver implementing cancellation, the usb gadget code, never

[PATCH 09/21] aio: Kill unneeded kiocb members

2013-05-13 Thread Kent Overstreet
The old aio retry infrastucture needed to save the various arguments to to aio operations. But with the retry infrastructure gone, we can trim struct kiocb quite a bit. Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Mark Fasheh Cc: Joel Becker Cc:

[PATCH 02/21] aio: reqs_active -> reqs_available

2013-05-13 Thread Kent Overstreet
The number of outstanding kiocbs is one of the few shared things left that has to be touched for every kiocb - it'd be nice to make it percpu. We can make it per cpu by treating it like an allocation problem: we have a maximum number of kiocbs that can be outstanding (i.e. slots) - then we just

[PATCH 10/21] aio: Kill ki_users

2013-05-13 Thread Kent Overstreet
The kiocb refcount is only needed for cancellation - to ensure a kiocb isn't freed while a ki_cancel callback is running. But if we restrict ki_cancel callbacks to not block (which they currently don't), we can simply drop the refcount. Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Felipe

[PATCH 11/21] aio: Kill ki_dtor

2013-05-13 Thread Kent Overstreet
sock_aio_dtor() is dead code - and stuff that does need to do cleanup can simply do it before calling aio_complete(). Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Mark Fasheh Cc: Joel Becker Cc: Rusty Russell Cc: Jens Axboe Cc: Asai Thambi S P

[PATCH 15/21] virtio-blk: convert to batch completion

2013-05-13 Thread Kent Overstreet
Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: Mark Fasheh Cc: Joel Becker Cc: Rusty Russell Cc: Jens Axboe Cc: Asai Thambi S P Cc: Selvan Mani Cc: Sam Bradshaw Cc: Jeff Moyer Cc: Al Viro Cc: Benjamin LaHaise Reviewed-by: "Theodore Ts'o"

[PATCH 07/21] aio: Don't use ctx->tail unnecessarily

2013-05-13 Thread Kent Overstreet
aio_complete() (arguably) needs to keep its own trusted copy of the tail pointer, but io_getevents() doesn't have to use it - it's already using the head pointer from the ring buffer. So convert it to use the tail from the ring buffer so it touches fewer cachelines and doesn't contend with the

Re: [PATCH V2 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-05-13 Thread Tang Chen
Hi Mel, Benjamin, Jeff, On 05/13/2013 11:01 PM, Benjamin LaHaise wrote: On Mon, May 13, 2013 at 10:54:03AM -0400, Jeff Moyer wrote: How do you propose to move the ring pages? It's the same problem as doing a TLB shootdown: flush the old pages from userspace's mapping, copy any existing data

[PATCH 14/21] block, aio: batch completion for bios/kiocbs

2013-05-13 Thread Kent Overstreet
When completing a kiocb, there's some fixed overhead from touching the kioctx's ring buffer the kiocb belongs to. Some newer high end block devices can complete multiple IOs per interrupt, much like many network interfaces have been for some time. This plumbs through infrastructure so we can

[PATCH 16/21] mtip32xx: convert to batch completion

2013-05-13 Thread Kent Overstreet
[asamymuth...@micron.com: * changes for conversion to bio batch completion from Kent * fix to apply the above changes cleanly on latest mtip32xx code * batch bio completion changes in * mtip_command_cleanup() * mtip_timeout_function()

Re: rcu_preempt running flat out on idle desktop.

2013-05-13 Thread Frederic Weisbecker
On Thu, May 09, 2013 at 05:10:26PM -0400, Dave Jones wrote: > On Thu, May 09, 2013 at 11:02:08PM +0200, Frederic Weisbecker wrote: > > > > RCU options for this build are.. > > > > > I can't reproduce that issue even with the above setting. Could you > > please send me your whole config? > >

[PATCH 17/21] Percpu tag allocator

2013-05-13 Thread Kent Overstreet
Allocates integers out of a predefined range - for use by e.g. a driver to allocate tags for communicating with the device. Signed-off-by: Kent Overstreet Cc: Tejun Heo Cc: Oleg Nesterov Cc: Christoph Lameter Cc: Ingo Molnar --- include/linux/tags.h | 38 lib/Kconfig

[PATCH 21/21] block: Bio cancellation

2013-05-13 Thread Kent Overstreet
If a bio is associated with a kiocb, allow it to be cancelled. This is accomplished by adding a pointer to a kiocb in struct bio, and when we go to dequeue a request we check if its bio has been cancelled - if so, we end the request with -ECANCELED. We don't currently try to cancel bios if IO

[PATCH] ARM: EXYNOS: add PM dependency to PM_GENERIC_DOMAINS for Exynos4210

2013-05-13 Thread Jingoo Han
PM_GENERIC_DOMAINS needs PM dependency. Fixed build warning as below: warning: (PLAT_S3C64XX && CPU_EXYNOS4210) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM) warning: (PLAT_S3C64XX && CPU_EXYNOS4210) selects PM_GENERIC_DOMAINS which has unmet direct dependencies (PM)

[PATCH 19/21] aio/usb: Update cancellation for new synchonization

2013-05-13 Thread Kent Overstreet
Previous patch got rid of kiocb->ki_users; this was done by having kiocb_cancel()/aio_complete() explicitly synchronize with each other. The new rule is that when a driver calls aio_complete(), after aio_complete() returns ki_cancel cannot be running and it's safe to dispose of kiocb->priv. But,

[PATCH 20/21] direct-io: Set dio->io_error directly

2013-05-13 Thread Kent Overstreet
The way io errors are returned in the dio code was rather convoluted, and also meant that the specific error code was lost. We need to return the actual error so that for cancellation we can pass up -ECANCELED. Signed-off-by: Kent Overstreet Cc: Zach Brown Cc: Joel Becker Cc: Jens Axboe Cc:

[PATCH 18/21] aio: Allow cancellation without a cancel callback, new kiocb lookup

2013-05-13 Thread Kent Overstreet
This patch does a couple things: * Allows cancellation of any kiocb, even if the driver doesn't implement a ki_cancel callback function. This will be used for block layer cancellation - there, implementing a callback is problematic, but we can implement useful cancellation by just

[PATCH 12/21] aio: convert the ioctx list to radix tree

2013-05-13 Thread Kent Overstreet
From: Octavian Purdila When using a large number of threads performing AIO operations the IOCTX list may get a significant number of entries which will cause significant overhead. For example, when running this fio script: rw=randrw; size=256k ;directory=/mnt/fio; ioengine=libaio; iodepth=1

[PATCH 08/21] aio: Kill aio_rw_vect_retry()

2013-05-13 Thread Kent Overstreet
This code doesn't serve any purpose anymore, since the aio retry infrastructure has been removed. This change should be safe because aio_read/write are also used for synchronous IO, and called from do_sync_read()/do_sync_write() - and there's no looping done in the sync case (the read and write

Re: [PATCH 12/14] perf ftrace: Use pager for displaying result

2013-05-13 Thread Namhyung Kim
On Mon, 13 May 2013 15:42:28 +0200, Jiri Olsa wrote: > On Mon, May 13, 2013 at 05:53:22PM +0900, Namhyung Kim wrote: >> Hi Jiri, >> >> On Fri, 10 May 2013 11:04:05 +0200, Jiri Olsa wrote: >> > On Wed, May 08, 2013 at 02:49:10PM +0900, Namhyung Kim wrote: >> > yep, that did it.. seems I'm getting

[PATCH v2 04/12] VFS hot tracking: register one shrinker

2013-05-13 Thread zwu . kernel
From: Zhi Yong Wu Register a shrinker to control the amount of memory that is used in tracking hot regions. If we are throwing inodes out of memory due to memory pressure, we most definitely are going to need to reduce the amount of memory the tracking code is using, even if it means losing

  1   2   3   4   5   6   7   8   9   10   >