[PATCH] of/fdt: add const to char *pathp in of_scan_flat_dt()

2012-11-08 Thread Jingoo Han
Fixed build warning as below: drivers/of/fdt.c: In function 'of_scan_flat_dt': drivers/of/fdt.c:490:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Jingoo Han --- This patch is based on linux-next-20121109 code tree. drivers/of/f

Re: [PATCH v2 04/10] pwm: pwm-tiecap: Add device-tree binding support for APWM driver

2012-11-08 Thread Thierry Reding
On Thu, Nov 08, 2012 at 01:23:11PM +0530, Philip, Avinash wrote: > This patch > 1. Add support for device-tree binding for ECAP APWM driver. > 2. Set size of pwm-cells set to 3 to support PWM channel number, PWM >period & polarity configuration from device tree. > 3. Add enable/disable clock ga

Re: [PATCH] virtio-scsi: Fix incorrect lock release order in virtscsi_kick_cmd

2012-11-08 Thread Wanlong Gao
On 11/09/2012 02:29 PM, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch fixes a regression bug in virtscsi_kick_cmd() that relinquishes > the acquired spinlocks in the incorrect order using the wrong spin_unlock > macros, namely releasing vq->vq_lock before tgt->tgt_lock wh

[PATCH] mm: mmap: remove unused variable

2012-11-08 Thread Jingoo Han
Fixed build warning as below: arch/arm/mm/mmap.c: In function 'arch_get_unmapped_area': arch/arm/mm/mmap.c:60:16: warning: unused variable 'start_addr' [-Wunused-variable] Signed-off-by: Jingoo Han --- This patch is based on linux-next-20121109 code tree. arch/arm/mm/mmap.c |1 - 1 files

Re: [PATCH v2] loop: Limit the number of requests in the bio list

2012-11-08 Thread Jens Axboe
On 2012-11-08 20:14, Andrew Morton wrote: > On Tue, 16 Oct 2012 11:21:45 +0200 > Lukas Czerner wrote: > >> Currently there is not limitation of number of requests in the loop bio >> list. This can lead into some nasty situations when the caller spawns >> tons of bio requests taking huge amount of

[PATCH] misc: apds9802als: Fix checking timeout in als_wait_for_data_ready()

2012-11-08 Thread Axel Lin
In the case of timeout waiting for data ready, the retry variable is -1. This also fixes a bug: current code returns -ETIMEDOUT if latest retry success ( which means retry is 0 when exiting the while loop ). Signed-off-by: Axel Lin --- drivers/misc/apds9802als.c |2 +- 1 file changed, 1 inse

Re: [PATCH 1/8] aoe: avoid running request handler on plugged queue

2012-11-08 Thread Jens Axboe
On 2012-11-09 01:17, Ed Cashin wrote: > Calling the request handler directly on a plugged queue defeats > the performance improvements provided by the plugging mechanism. > Use the __blk_run_queue function instead of calling the request > handler directly, so that we don't interfere with the block

Re: [PATCH v2 01/10] PWMSS: Add PWM Subsystem driver for parent<->child relationship

2012-11-08 Thread Thierry Reding
On Thu, Nov 08, 2012 at 01:23:08PM +0530, Philip, Avinash wrote: > diff --git a/Documentation/devicetree/bindings/pwm/tipwmss.txt > b/Documentation/devicetree/bindings/pwm/tipwmss.txt > new file mode 100644 > index 000..b6c2814 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pwm/tipw

RE: [PATCH 2/3] [SCSI] mvsas: fix shift in mvs_94xx_free_reg_set()

2012-11-08 Thread Xiangliang Yu
> On 11/6/12 7:06 AM, James Bottomley wrote: > > > > Why is this necessary? As I read the reg set assignment code, it finds > > a free bit in the 64 bit register and uses that ... which can never be > > greater than 64 so there's no need for the check. > > This patch just tries to be more defens

[PATCH] PCI: Fix bit definitions of PCI_EXP_LNKCAP2 register

2012-11-08 Thread Jingoo Han
According to the PCIe 3.0 spec, PCI_EXP_LNKCAP2_SLS_2_5GB is 1st bit of PCI_EXP_LNKCAP2 register, not 0th bit. So, the bit definition of supported link speed vector should be fixed. Signed-off-by: Jingoo Han --- include/uapi/linux/pci_regs.h |6 +++--- 1 files changed, 3 insertions(+), 3 del

[PATCH] virtio-scsi: Fix incorrect lock release order in virtscsi_kick_cmd

2012-11-08 Thread Nicholas A. Bellinger
From: Nicholas Bellinger This patch fixes a regression bug in virtscsi_kick_cmd() that relinquishes the acquired spinlocks in the incorrect order using the wrong spin_unlock macros, namely releasing vq->vq_lock before tgt->tgt_lock while invoking the calls to virtio_ring.c:virtqueue_add_buf() and

Re: [next:akpm 157/313] arch/tile/mm/hugetlbpage.c:256:20: error: 'mm' undeclared

2012-11-08 Thread Michel Lespinasse
On Fri, Nov 09, 2012 at 01:51:54PM +0800, kbuild test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm > head: 6703d59701f7592c897b975de3952ba6bbb98b83 > commit: 921a29df6a2bab7c1bfbb11eb5648b92bdc250e8 [157/313] mm: use > vm_unmapped_area() in hugetl

Re: [next:akpm 136/313] mm/mmap.c:1878:6: error: 'mm' undeclared

2012-11-08 Thread Michel Lespinasse
On Fri, Nov 09, 2012 at 01:59:21PM +0800, kbuild test robot wrote: > tree: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm > head: 6703d59701f7592c897b975de3952ba6bbb98b83 > commit: db877c95d306d688818542d49e9b63eb7a3b0894 [136/313] mm: augment vma > rbtree with rb_subtr

Re: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-08 Thread Amit Kachhap
On 9 November 2012 09:21, Zhang Rui wrote: > On Thu, 2012-11-08 at 11:56 +0530, Amit Kachhap wrote: >> On 8 November 2012 11:31, Zhang Rui wrote: >> > On Thu, 2012-11-08 at 09:56 +0530, Amit Daniel Kachhap wrote: >> >> This modification adds 2 new thermal trend type THERMAL_TREND_RAISE_FULL >> >>

Re: [PATCH 4/4] DMA: PL330: add device tree property for DMA_MEMCPY capability

2012-11-08 Thread Jassi Brar
On 30 October 2012 14:51, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Monday 29 October 2012 22:45:48 Jassi Brar wrote: >> On Mon, Oct 29, 2012 at 10:59 AM, Bartlomiej Zolnierkiewicz >> wrote: >> > * Add device tree (DT) property ("pl330,dma-memcpy") for DMA_MEMCPY >> > capability and inste

[PATCH V2] gpio: tegra: read output value when gpio is set in direction_out

2012-11-08 Thread Laxman Dewangan
Read the output value when gpio is set for the output mode for gpio_get_value(). Reading input value in direction out does not give correct value. Signed-off-by: Laxman Dewangan --- Changes from V1: - Keep the if part implementation same the else part to have implementation same kind. drivers

[PATCH] uio_pdrv: set memory mapping name

2012-11-08 Thread Manuel Traut
If uio_pdrv[_genirq] is used, the uio maps have currently no name set. This patch sets the uio_mem name to the name of the memory resource. Signed-off-by: Manuel Traut Reported-by: Stefan Staedtler Tested-by: Stefan Staedtler diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_g

Re: [PATCH] vmxnet3: convert BUG_ON(true) into a simple BUG()

2012-11-08 Thread Shreyas Bhatewara
- Original Message - > Signed-off-by: Sasha Levin > --- > drivers/net/vmxnet3/vmxnet3_drv.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Signed-off-by: Shreyas N Bhatewara -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message

[PATCH v3 2/3] perf annotate: Merge same lines in summary view

2012-11-08 Thread Namhyung Kim
From: Namhyung Kim The --print-line option of perf annotate command shows summary for each source line. But it didn't merge same lines so that it can appear multiple times. * before: Sorted summary for file /home/namhyung/bin/mcol -- 21.71 /home/n

RE: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-08 Thread R, Durgadoss
Hi Amit/Rui, > -Original Message- > From: Zhang, Rui > Sent: Friday, November 09, 2012 9:21 AM > To: Amit Kachhap > Cc: linux...@lists.linux-foundation.org; linux-samsung- > s...@vger.kernel.org; linux-kernel@vger.kernel.org; R, Durgadoss; > l...@kernel.org; linux-a...@vger.kernel.org; jon

Re: [PATCH] gpio: tegra: read output value when gpio is set in direction_out

2012-11-08 Thread Laxman Dewangan
On Thursday 08 November 2012 10:28 PM, Stephen Warren wrote: On 11/07/2012 11:27 PM, Laxman Dewangan wrote: Read the output value when gpio is set for the output mode for gpio_get_value(). Reading input value in direction out does not give correct value. That's an unfortunate HW design, but oh

[PATCH v2 2/3] perf annotate: Merge same lines in summary view

2012-11-08 Thread Namhyung Kim
From: Namhyung Kim The --print-line option of perf annotate command shows summary for each source line. But it didn't merge same lines so that it can appear multiple times. * before: Sorted summary for file /home/namhyung/bin/mcol -- 24.40 /home/

Re: [PATCH] dw_mmc: fix more const pointer warnings

2012-11-08 Thread Jaehoon Chung
Great..Thanks Arnd and Chris. Best Regards, Jaehoon Chung On 11/08/2012 11:35 PM, Chris Ball wrote: > Hi Arnd, > > On Thu, Nov 08 2012, Arnd Bergmann wrote: >> The patch "dw_mmc: fix multiple drv_data NULL dereferences" has >> unfortunately clashed with my "mmc: dw_mmc: constify >> dw_mci_idmac_o

[git pull] drm radeon + nouveau fixes

2012-11-08 Thread Dave Airlie
Hi Linus, just radeon and nouveau, mostly regressions fixers, and a couple of radeon register checker fixes. Dave. The following changes since commit 695ddeb457584a602f2ba117d08ce37cf6ec1589: drm/radeon: fix typo in evergreen_mc_resume() (2012-11-07 10:53:49 +1000) are available in the git

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-08 Thread Dmitry Torokhov
On Fri, Nov 09, 2012 at 08:06:29AM +0530, Viresh Kumar wrote: > On 8 November 2012 22:08, Dmitry Torokhov wrote: > > On Thu, Nov 08, 2012 at 07:10:47PM +0530, Viresh Kumar wrote: > > It also breaks the error unwinding/removal of the driver as it frees > > input device while IRQ handler is still ac

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-08 Thread Joel A Fernandes
Hi Pantelis, I hope I'm not too late to reply as I'm traveling. On Nov 6, 2012, at 5:30 AM, Pantelis Antoniou wrote: > >> >> Joanne has purchased one of Jane's capes and packaged it into a rugged >> case for data logging. As far as Joanne is concerned, the BeagleBone and >> cape together are a

Re: WARNING: at kernel/rcutree.c:1562 rcu_do_batch()

2012-11-08 Thread Michael Wang
Hi, Fengguang On 11/09/2012 12:23 PM, Fengguang Wu wrote: > Paul, > > I got the below warning in stable kernel 3.6.3. linux-next does > not have this issue. Bisect shows that the first bad commit is Please allow me to ask few questions: 1. is it 100% sure that linux-next don't show this issue on

[PATCH] mfd: rtsx_pcr: Include linux/slab.h to fix build error

2012-11-08 Thread Axel Lin
Fix below build error: CC [M] drivers/mfd/rtsx_pcr.o drivers/mfd/rtsx_pcr.c: In function 'rtsx_pci_init_chip': drivers/mfd/rtsx_pcr.c:985:2: error: implicit declaration of function 'kcalloc' [-Werror=implicit-function-declaration] drivers/mfd/rtsx_pcr.c:985:13: warning: assignment makes pointe

RE: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-08 Thread R, Durgadoss
Hi Rui/Amit, Sorry for the late response.. > -Original Message- > From: Amit Kachhap [mailto:amit.kach...@linaro.org] > Sent: Thursday, November 08, 2012 11:56 AM > To: Zhang, Rui > Cc: linux...@lists.linux-foundation.org; linux-samsung- > s...@vger.kernel.org; linux-kernel@vger.kernel.or

Re: [RFC PATCH 0/8][Sorted-buddy] mm: Linux VM Infrastructure to support Memory Power Management

2012-11-08 Thread Vaidyanathan Srinivasan
* Mel Gorman [2012-11-08 18:02:57]: > On Wed, Nov 07, 2012 at 01:22:13AM +0530, Srivatsa S. Bhat wrote: > > Hi Mel, Thanks for detailed review and comments. The goal of this patch series is to brainstorm on ideas that enable Linux VM

Re: [PATCH] virtio: Don't access index after unregister.

2012-11-08 Thread Michael S. Tsirkin
On Thu, Nov 08, 2012 at 11:43:47AM +0100, Cornelia Huck wrote: > Virtio wants to release used indices after the corresponding > virtio device has been unregistered. However, virtio does not > hold an extra reference, giving up its last reference with > device_unregister(), making accessing dev->ind

[PATCH 4/4] thermal: exynos: Use the new thermal trend type for quick cooling action.

2012-11-08 Thread Amit Daniel Kachhap
This patch uses the quick thermal cooling trend type macros. This is needed as exynos5 and other thermal sensors now supports only interrupt method for thresold temperature check. Signed-off-by: Amit Daniel Kachhap Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/exynos_thermal.c |6 +

Re: [RFC] arm: memtest

2012-11-08 Thread Alexander Holler
Am 08.11.2012 23:39, schrieb Yinghai Lu: On Thu, Nov 8, 2012 at 12:48 PM, Alexander Holler wrote: Hello, I've recently discovered the lack of the command line parameter memtest for ARM. So I've made a patch. But I have some questions: 1. arch/x86/mm/memtest.c looks platform independ. The onl

[PULL] virtio and two module fixes

2012-11-08 Thread Rusty Russell
The following changes since commit bc909421a9c7083fcde795846d22b36a51a7be54: Merge tag 'gpio-fixes-v3.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio (2012-10-30 15:56:22 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git

Re: [PATCH] virtio: Don't access index after unregister.

2012-11-08 Thread Rusty Russell
Cornelia Huck writes: > Virtio wants to release used indices after the corresponding > virtio device has been unregistered. However, virtio does not > hold an extra reference, giving up its last reference with > device_unregister(), making accessing dev->index afterwards > invalid. > > I actually

linux-next: Tree for Nov 9

2012-11-08 Thread Stephen Rothwell
Hi all, Changes since 20121108: The pci tree still has its build failure for which I applied a merge fix patch. The v4l-dvb tree still has its build failure so I used the version from next-20121026. The net-next tree gained a conflict against Linus' tree. The pinctrl tree lost its

Re: [PATCH] bcm_wimax.ko - Modified supported device list [Correction]

2012-11-08 Thread Kevin McKinney
On Thu, Nov 8, 2012 at 10:27 AM, Muhammad Minhazul Haque wrote: > Mr. Kevin and everyone, > > There was a serious mistake in the previous message. I forgot to > attach the patch. Please ignore it. I am posting it again. > > I was never reported for that product id 0x0132. Yet you can continue > su

Re: linux-next: build warning after merge of the final tree (akpm tree related)

2012-11-08 Thread Michel Lespinasse
On Fri, Nov 09, 2012 at 03:19:03PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the final tree, today's linux-next build (arm defconfig) > produced this warning: > > arch/arm/mm/mmap.c: In function 'arch_get_unmapped_area': > arch/arm/mm/mmap.c:60:16: warning: unused variable 'start

Re: kswapd0: excessive CPU usage

2012-11-08 Thread Seth Jennings
On 11/02/2012 02:45 PM, Jiri Slaby wrote: > On 11/02/2012 11:53 AM, Jiri Slaby wrote: >> On 11/02/2012 11:44 AM, Zdenek Kabelac wrote: > Yes, applying this instead of the revert fixes the issue as well. >>> >>> I've applied this patch on 3.7.0-rc3 kernel - and I still see excessive >>> CPU usag

linux-next: build warning after merge of the final tree (akpm tree related)

2012-11-08 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (arm defconfig) produced this warning: arch/arm/mm/mmap.c: In function 'arch_get_unmapped_area': arch/arm/mm/mmap.c:60:16: warning: unused variable 'start_addr' [-Wunused-variable] Introduced by commit "mm: use vm_unmapped_area() on

linux-next: build failure after merge of the final tree (akpm tree related)

2012-11-08 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (sparc32 defconfig) failed like this: arch/sparc/kernel/sys_sparc_32.c: In function 'arch_get_unmapped_area': arch/sparc/kernel/sys_sparc_32.c:41:26: error: unused variable 'vmm' [-Werror=unused-variable] Caused by commit "mm: use v

linux-next: build failure after merge of the final tree (akpm tree related)

2012-11-08 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (sparc64 defconfig) failed like this: arch/sparc/kernel/sys_sparc_64.c: In function 'arch_get_unmapped_area': arch/sparc/kernel/sys_sparc_64.c:92:16: error: unused variable 'start_addr' [-Werror=unused-variable] arch/sparc/kernel/sys

Re: Why Cypress does not upstream its trackpad driver?

2012-11-08 Thread Robert Hancock
On 11/07/2012 06:26 PM, David Solda wrote: Dmitry, all, To clarify my comment. Our protocol utilizes 8 bytes which are needed in our driver. In order for the Linux system to accept 8 bytes of data, the Linux psmouse system driver is required to be modified. Without this modification, the d

Re: linux-next: build failure after merge of the final tree (akpm tree related)

2012-11-08 Thread Andrew Morton
On Fri, 9 Nov 2012 14:58:32 +1100 Stephen Rothwell wrote: > Hi all, > > After merging the final tree, today's linux-next build (i386 defconfig) > failed like this: > > arch/x86/mm/hugetlbpage.c: In function 'hugetlb_get_unmapped_area_topdown': > arch/x86/mm/hugetlbpage.c:299:20: error: 'mm' un

Re: SR-IOV problem with Intel 82599EB (not enough MMIO resources for SR-IOV)

2012-11-08 Thread Jason Gao
> The BIOS in your machine doesn't support SR-IOV. You'll need to ask the > manufacturer for a BIOS upgrade, if in fact one is available. Sometimes > they're not. very thanks Greg,my server Dell R710 with latest BIOS version and option for SR-IOV(SR-IOV Global Enable->Enabled) opened,I'm conf

linux-next: build failure after merge of the final tree (akpm tree related)

2012-11-08 Thread Stephen Rothwell
Hi all, After merging the final tree, today's linux-next build (i386 defconfig) failed like this: arch/x86/mm/hugetlbpage.c: In function 'hugetlb_get_unmapped_area_topdown': arch/x86/mm/hugetlbpage.c:299:20: error: 'mm' undeclared (first use in this function) arch/x86/mm/hugetlbpage.c:299:20: no

Re: [PATCH 1/4] thermal: Add new thermal trend type to support quick cooling

2012-11-08 Thread Zhang Rui
On Thu, 2012-11-08 at 11:56 +0530, Amit Kachhap wrote: > On 8 November 2012 11:31, Zhang Rui wrote: > > On Thu, 2012-11-08 at 09:56 +0530, Amit Daniel Kachhap wrote: > >> This modification adds 2 new thermal trend type THERMAL_TREND_RAISE_FULL > >> and THERMAL_TREND_DROP_FULL. This thermal trend c

Re: macbook pro 9.2 stat/ata bus error

2012-11-08 Thread Robert Hancock
On 11/06/2012 09:41 PM, Azat Khuzhin wrote: Anybody? On Mon, Nov 5, 2012 at 7:28 PM, Azat Khuzhin wrote: After installing linux on macbook 9.2 (mid 2012), I have next errors in dmesg log: [ 389.623828] EXT4-fs (sda4): re-mounted. Opts: errors=remount-ro,data=ordered,commit=600 [ 410.03846

Re: [PATCH 3/3] i2c / ACPI: add ACPI enumeration support

2012-11-08 Thread Mika Westerberg
On Thu, Nov 08, 2012 at 06:58:47PM +, Grant Likely wrote: > On Sat, Nov 3, 2012 at 7:46 AM, Mika Westerberg > wrote: > > ACPI 5 introduced I2cSerialBus resource that makes it possible to enumerate > > and configure the I2C slave devices behind the I2C controller. This patch > > adds helper fun

Re: [PATCH 2/3] spi / ACPI: add ACPI enumeration support

2012-11-08 Thread Mika Westerberg
On Thu, Nov 08, 2012 at 06:48:05PM +, Grant Likely wrote: > On Sat, Nov 3, 2012 at 7:46 AM, Mika Westerberg > wrote: > > ACPI 5 introduced SPISerialBus resource that allows us to enumerate and > > configure the SPI slave devices behind the SPI controller. This patch adds > > support for this t

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

2012-11-08 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc allnoconfig - among others) produced this warning: drivers/of/fdt.c: In function 'of_scan_flat_dt': drivers/of/fdt.c:490:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Int

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

2012-11-08 Thread Stephen Rothwell
Hi Andrew, After merging the akpm tree, today's linux-next build (powerpc_ppc64_defconfig) failed like this: mm/mmap.c: In function 'SYSC_mmap_pgoff': mm/mmap.c:1271:15: error: 'MAP_HUGE_SHIFT' undeclared (first use in this function) mm/mmap.c:1271:15: note: each undeclared identifier is reporte

Re: [PATCH v6 28/29] slub: slub-specific propagation changes.

2012-11-08 Thread Sasha Levin
On 11/08/2012 01:51 AM, Glauber Costa wrote: > On 11/07/2012 04:53 PM, Sasha Levin wrote: >> On 11/01/2012 08:07 AM, Glauber Costa wrote: >>> SLUB allows us to tune a particular cache behavior with sysfs-based >>> tunables. When creating a new memcg cache copy, we'd like to preserve >>> any tunabl

Re: [PATCH] tcp: Avoid infinite loop on recvmsg bug

2012-11-08 Thread Eric Dumazet
On Wed, 2012-11-07 at 18:25 -0800, Julius Werner wrote: > > So you probably are fighting a bug we already fixed in upstream kernel. > > > > (commit c8628155ece363 "tcp: reduce out_of_order memory use" did not > > played well with cloned skbs.) > > > > This issue was already discussed on netdev in t

[PATCH] firmware loader: Fix the concurrent request_firmware() race for kref_get/put

2012-11-08 Thread Chuansheng Liu
There is one race that both request_firmware() with the same firmware name. The race scenerio is as below: CPU1 CPU2 request_firmware() --> _request_firmware_load() return err another request_firmware() is coming --> _request_fir

Re: [PATCH RESEND v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-08 Thread Paul E. McKenney
On Thu, Nov 08, 2012 at 04:41:36PM -0800, Paul E. McKenney wrote: > On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote: > > > > > > On Thu, 8 Nov 2012, Paul E. McKenney wrote: > > > > > On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote: > > > > On Thu, 8 Nov 2012 14:48:4

[PATCH] staging/vme: Use dev_ or pr_ printks in devices/vme_user.c

2012-11-08 Thread YAMANE Toshiaki
fixed below checkpatch warnings. - WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... - WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... - WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(

Re: [PATCH 1/3] rtc: rtc-spear: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
On 8 November 2012 20:07, Viresh Kumar wrote: > This patch frees rtc-spear driver from tension of freeing resources :) > devm_* derivatives of multiple routines are used while allocating resources, > which would be freed automatically by kernel. > > Signed-off-by: Viresh Kumar Hi Andrew, Can yo

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
On 9 November 2012 08:06, Viresh Kumar wrote: > On 8 November 2012 22:08, Dmitry Torokhov wrote: >> There is devm_request_and_ioremap() which you can use here. > > Should have been done in V1 only. Hi Dmitry, Please apply below fixup to original patch: x

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-08 Thread Huang Ying
On Thu, 2012-11-08 at 12:07 -0500, Alan Stern wrote: > On Thu, 8 Nov 2012, Rafael J. Wysocki wrote: > > > > > > is it a good idea to allow to set device state to SUSPENDED if the > > > > > device > > > > > is disabled? > > > > > > > > No, it is not. The status should always be ACTIVE as long as

Re: [PATCHv2] mm: Fix calculation of dirtyable memory

2012-11-08 Thread Fengguang Wu
On Thu, Nov 08, 2012 at 04:52:33PM -0800, Sonny Rao wrote: > The system uses global_dirtyable_memory() to calculate > number of dirtyable pages/pages that can be allocated > to the page cache. A bug causes an underflow thus making > the page count look like a big unsigned number. This in turn > c

Re: [PATCH 1/3] input: spear-keyboard: Use devm_*() routines

2012-11-08 Thread Viresh Kumar
On 8 November 2012 22:08, Dmitry Torokhov wrote: > On Thu, Nov 08, 2012 at 07:10:47PM +0530, Viresh Kumar wrote: > It also breaks the error unwinding/removal of the driver as it frees > input device while IRQ handler is still active. I have heard of this argument before, probably from you. :) Jus

Re: [PATCH 1/2] kfifo: round up the fifo size power of 2

2012-11-08 Thread Yuanhan Liu
On Thu, Nov 08, 2012 at 01:37:15PM +0100, Stefani Seibold wrote: > Am Donnerstag, den 08.11.2012, 20:24 +0800 schrieb Yuanhan Liu: > > On Tue, Oct 30, 2012 at 11:52:10PM -0700, Andrew Morton wrote: > > > On Wed, 31 Oct 2012 07:30:33 +0100 Stefani Seibold > > > wrote: > > > > > > > > Yes, and I g

linux-next: manual merge of the arm-soc tree with the pinctrl tree

2012-11-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/pinctrl/pinctrl-nomadik.c between commit 241e51ebd3b2 ("pinctrl/nomadik: make independent of prcmu driver") from the pinctrl tree and commit 44e47ccf8ab6 ("Merge branch 'next/multiplatform' into for-next") from the arm-

Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

2012-11-08 Thread David Gibson
On Mon, Nov 05, 2012 at 08:40:30PM +, Grant Likely wrote: > Hey folks, > > As promised, here is my early draft to try and capture what device > tree overlays need to do and how to get there. Comments and > suggestions greatly appreciated. > > Device Tree Overlay Feature Hrm. So, you may yet

[PATCH v3 9/9] net: batman-adv: use per_cpu_add helper

2012-11-08 Thread Shan Wei
From: Shan Wei this_cpu_add is an atomic operation. and be more faster than per_cpu_ptr operation. Signed-off-by: Shan Wei Reviewed-by: Christoph Lameter --- v3: change commit message. --- net/batman-adv/main.h |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/net/ba

[PATCH v3 8/9] clocksource: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei Signed-off-by: Shan Wei Reviewed-by: Christoph Lameter --- no changes vs v2. --- drivers/clocksource/arm_generic.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/clocksource/arm_generic.c b/drivers/clocksource/arm_generic.c index c4d9f95..cb4

[PATCH v3 7/9] trace: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei Signed-off-by: Shan Wei --- v3: directly return member address of per-cpu variable. --- kernel/trace/blktrace.c |2 +- kernel/trace/trace.c|5 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/kernel/trace/blktrace.c b/kernel/trace/blktrace.c ind

[PATCH v3 6/9] rcu: use __this_cpu_read helper instead of per_cpu_ptr(p, raw_smp_processor_id())

2012-11-08 Thread Shan Wei
From: Shan Wei Signed-off-by: Shan Wei --- no changes vs v2. --- kernel/rcutree.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kernel/rcutree.c b/kernel/rcutree.c index 74df86b..441b945 100644 --- a/kernel/rcutree.c +++ b/kernel/rcutree.c @@ -1960,7 +1960,7 @@ stati

[PATCH v3 5/9] kernel: padata : use __this_cpu_read per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei For bottom halves off, __this_cpu_read is better. Signed-off-by: Shan Wei --- v3: use __this_cpu_read instead of this_cpu_read. --- kernel/padata.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/padata.c b/kernel/padata.c index 89fe3d1..072f4

[PATCH v3 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei just use more faster this_cpu_ptr instead of per_cpu_ptr(p, smp_processor_id()); Signed-off-by: Shan Wei --- no changes vs v2. --- net/openvswitch/datapath.c |4 ++-- net/openvswitch/vport.c|5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/net

[PATCH v3 3/9] net: xfrm: use __this_cpu_read per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei Signed-off-by: Shan Wei --- v3 fix compile warning: net/xfrm/xfrm_ipcomp.c: In function 'ipcomp_alloc_tfms': net/xfrm/xfrm_ipcomp.c:285: warning: assignment from incompatible pointer type --- net/xfrm/xfrm_ipcomp.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-

[PATCH v3 2/9] net: rds: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei Signed-off-by: Shan Wei Reviewed-by: Christoph Lameter --- no changes vs v2. --- net/rds/ib_recv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 8d19491..a4a5064 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/

[PATCH v3 1/9] net: core: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
From: Shan Wei flush_tasklet is a struct, not a pointer in percpu var. so use this_cpu_ptr to get the member pointer. Signed-off-by: Shan Wei --- net/core/flow.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/net/core/flow.c b/net/core/flow.c index e318c7e..b0901ee

[PATCH 0/9 v3] use efficient this_cpu_* helper

2012-11-08 Thread Shan Wei
this_cpu_ptr/this_cpu_read is faster than per_cpu_ptr(p, smp_processor_id()) and can reduce memory accesses. The latter helper needs to find the offset for current cpu, and needs more assembler instructions which objdump shows in following. this_cpu_ptr relocates and address. this_cpu_read() re

How to debug system freeze (not detected by kernel debug options)

2012-11-08 Thread Jongman Heo
Dear kernel hackers, I have a problem in SMP environment, in x86 platform (Intel Atom based embedded system) In UP, there is no issue, but in SMP, system freezed in tens of minutes (or shorter), if I perform IO test with flash memory and HDD simultaneously (using dd). I enabled relevant kern

[PATCH 3/3] ipgre: capture inner headers during encapsulation

2012-11-08 Thread Joseph Gasparakis
Populating the inner header pointers of skb for ipgre This patch has been compile-tested only. Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- net/ipv4/ip_gre.c | 12 1 file changed, 12 insertions(+) diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c inde

[PATCH 1/3] net: Add support for hardware-offloaded encapsulation

2012-11-08 Thread Joseph Gasparakis
This patch adds support in the kernel for offloading in the NIC Tx and Rx checksumming for encapsulated packets (such as VXLAN and IP GRE) Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- Documentation/networking/netdev-features.txt | 10 +++ include/linux/if_ether.h

Re: [PATCH 2/8] aoe: provide ATA identify device content to user on request

2012-11-08 Thread Ed Cashin
On Nov 8, 2012, at 7:40 PM, Jeff Garzik wrote: > On 11/08/2012 11:32 AM, Ed Cashin wrote: >> This patch makes the aoe driver follow expected behavior when >> the user uses ioctl to get the ATA device identify information. >> >> Signed-off-by: Ed Cashin >> --- >> drivers/block/aoe/aoe.h|

[PATCH 2/3] vxlan: capture inner headers during encapsulation

2012-11-08 Thread Joseph Gasparakis
Populating the inner header pointers of skb for vxlan Signed-off-by: Joseph Gasparakis Signed-off-by: Peter P Waskiewicz Jr --- drivers/net/vxlan.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 030559d..14e6c8f 100644 --- a/dri

[PATCH net-next 0/3 ] tunneling: Add support for hardware-offloaded encapsulation

2012-11-08 Thread Joseph Gasparakis
The series contains updates to add in the NIC Rx and Tx checksumming support for encapsulated packets. The sk_buff needs to somehow have information of the inner packet, and adding three fields for the inner mac, network and transport headers was the prefered approach. Not adding these fields wo

Re: scsi target, likely GPL violation

2012-11-08 Thread Nicholas A. Bellinger
On Thu, 2012-11-08 at 13:22 -0800, Andy Grover wrote: > On 11/08/2012 12:05 PM, Nicholas A. Bellinger wrote: > > Accusing us of violating GPL is a serious legal claim. > > > > In fact, we are not violating GPL. In short, this is because we wrote > > the code you are referring to (the SCSI targe

Re: Is this a kernel bug?

2012-11-08 Thread Andrew Morton
On Fri, 9 Nov 2012 08:53:49 +0800 Cyberman Wu wrote: > A lot of these message on many CPU: > > ... > > Starting stack dump of tid 906, pid 906 (kworker/16:1) on cpu 16 at > cycle 416925426066163 > frame 0: 0xfff700375f58 kthread_data+0x18/0x20 (sp 0xfe00f9fbf430) > frame 1: 0xfff

Re: [PATCH 06/11] ARM: pxa: convert timer suspend/resume to clock_event_device

2012-11-08 Thread Eric Miao
On Fri, Nov 9, 2012 at 5:01 AM, Stephen Warren wrote: > From: Stephen Warren > > Move PXA's timer suspend/resume functions from struct sys_timer > pxa_timer into struct clock_event_device ckevt_pxa_osmr0. This > will allow the sys_timer suspend/resume fields to be removed, and > eventually lead t

[PATCH v2] sched: add a tuning knob to allow changing RR tmeslice

2012-11-08 Thread Clark Williams
This version stores the user-input value in a separate location from the jiffies values used by the scheduler, to prevent a race condition. Subject: [PATCH v2] sched: add a tuning knob to allow changing RR timeslice User wanted a facility simliar to the ability on Solaris to adjust the SCHED_RR

Re: [PATCH] smack: SMACK_MAGIC to include/uapi/linux/magic.h

2012-11-08 Thread Casey Schaufler
On 11/8/2012 10:08 AM, Jarkko Sakkinen wrote: > SMACK_MAGIC moved to a proper place for easy user space access > (i.e. libsmack). > > Signed-off-by: Jarkko Sakkinen I will apply once James updates the next branch of his security tree. > --- > include/uapi/linux/magic.h |1 + > security/smac

Re: [PATCH 4/9] net: openvswitch: use this_cpu_ptr per-cpu helper

2012-11-08 Thread Shan Wei
Christoph Lameter said, at 2012/11/9 1:18: > On Thu, 8 Nov 2012, Shan Wei wrote: > >> Christoph Lameter said, at 2012/11/3 1:46: u64_stats_update_begin(&stats->sync); stats->tx_packets++; >>> >>> Use this_cpu_inc(vport->percpu_stats->packets) here? >> >> Lots of net

[PATCH V2 3/5] checkpatch: Remove reference to feature-removal-schedule.txt.

2012-11-08 Thread Tao Ma
From: Tao Ma In 9c0ece069, Linus removes feature-removal-schedule.txt from Documentation, but there is still some reference to this file. So remove them. Cc: Andrew Morton Cc: Andy Whitcroft Signed-off-by: Tao Ma --- scripts/checkpatch.pl | 37 - 1 files

Re: 82571EB: Detected Hardware Unit Hang

2012-11-08 Thread Joe Jin
On 11/09/12 04:35, Dave, Tushar N wrote: > Are you sure this is not similar issue as before that you reported. > i.e. Tushar, Thanks for your quick response, I'll check with customer if they can modify the Max payload size from BIOS, this time issue hit on HP's server. Thanks again, Joe > On

Re: Is this a kernel bug?

2012-11-08 Thread Tejun Heo
Hello, On Fri, Nov 09, 2012 at 08:53:49AM +0800, Cyberman Wu wrote: > A lot of these message on many CPU: What I'm really curious about is the *first* exception. Is the following the first one? Some lines (why the stackdump is happening) are missing at the top. > Pid: 906, comm: kwork

[PATCH 2/3] perf annotate: Merge same lines in summary view

2012-11-08 Thread Namhyung Kim
From: Namhyung Kim The --print-line option of perf annotate command shows summary for each source line. But it didn't merge same lines so that it can appear multiple times. * before: Sorted summary for file /home/namhyung/bin/mcol -- 24.40 /home/

[PATCH 1/3] perf annotate: Parse --asm-raw output properly

2012-11-08 Thread Namhyung Kim
From: Namhyung Kim If --asm-raw option was given, objdump output will contain hex numbers of the instruction before the symbolic name. However current parser code doesn't handle it properly. Fix it. Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/annotate.c | 2 ++ tools/perf/util/an

[PATCH 3/3] perf annotate: Don't try to follow jump target on PLT symbols

2012-11-08 Thread Namhyung Kim
From: Namhyung Kim The perf annotate browser on TUI can identify a jump target for a selected instruction. It assumes that the jump target is within the function but it's not the case of PLT symbols which have offset out of the function as a target. Since it caused a segmentation fault, do not

Re: [PATCH v4 net-next] bonding: extend bond_arp_send_all to bridge devices

2012-11-08 Thread Jay Vosburgh
Chris J Arges wrote: >ARP monitoring does not work when we have a network in the >following configuration: > >eth0+ +bond0.100br0-100---{+virtual machines > | | > +bond0+br0---(fixed IP)->--{LAN arp_ip_target} > | | >eth1+ +bond0.200b

[PATCH RESEND] perf test: fix a build error on builtin-test

2012-11-08 Thread Vinson Lee
From: Zheng Liu Recently I build perf and get a build error on builtin-test.c. The error is as following: $ make CC perf.o CC builtin-test.o cc1: warnings being treated as errors builtin-test.c: In function ‘sched__get_first_possible_cpu’: builtin-test.c:977: warning: implicit declaratio

Re: Is this a kernel bug?

2012-11-08 Thread Cyberman Wu
A lot of these message on many CPU: Pid: 906, comm: kworker/16:1, CPU: 16 r0 : 0xfe00f9fbfea0 r1 : 0x0010 r2 : 0x0002 r3 : 0xfff5001017e4 r4 : 0xfe00 r5 : 0xfea4 r6 : 0xfe00 r7 : 0x0002 r8 : 0x

[PATCHv2] mm: Fix calculation of dirtyable memory

2012-11-08 Thread Sonny Rao
The system uses global_dirtyable_memory() to calculate number of dirtyable pages/pages that can be allocated to the page cache. A bug causes an underflow thus making the page count look like a big unsigned number. This in turn confuses the dirty writeback throttling to aggressively write back pag

Re: [PATCHv2] mm: Fix calculation of dirtyable memory

2012-11-08 Thread Sonny Rao
On Thu, Nov 8, 2012 at 4:42 PM, Sonny Rao wrote: > add apkm's suggestion > Oops, sorry, will add akpm's suggestion and re-post -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kerne

[PATCHv2] mm: Fix calculation of dirtyable memory

2012-11-08 Thread Sonny Rao
add apkm's suggestion -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH RESEND v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily

2012-11-08 Thread Paul E. McKenney
On Thu, Nov 08, 2012 at 06:41:10PM -0500, Mikulas Patocka wrote: > > > On Thu, 8 Nov 2012, Paul E. McKenney wrote: > > > On Thu, Nov 08, 2012 at 12:07:00PM -0800, Andrew Morton wrote: > > > On Thu, 8 Nov 2012 14:48:49 +0100 > > > Oleg Nesterov wrote: > > > > > > > Currently the writer does msl

  1   2   3   4   5   6   >